const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-CfxD1nqp.js","./html-Xm3MTC80.js","./javascript-Begb3drz.js","./css-g_GSZ1hr.js","./typescript-BeSffZBD.js","./json-DWmkr0yC.js","./vue-html-CZhY4ukh.js"])))=>i.map(i=>d[i]); (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=e(i);fetch(i.href,o)}})();var Dne=Object.create,PN=Object.defineProperty,Nne=Object.getOwnPropertyDescriptor,Xy=Object.getOwnPropertyNames,Bne=Object.getPrototypeOf,Fne=Object.prototype.hasOwnProperty,jne=(t,r)=>function(){return t&&(r=(0,t[Xy(t)[0]])(t=0)),r},Une=(t,r)=>function(){return r||(0,t[Xy(t)[0]])((r={exports:{}}).exports,r),r.exports},Gne=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Xy(r))!Fne.call(t,i)&&i!==e&&PN(t,i,{get:()=>r[i],enumerable:!(n=Nne(r,i))||n.enumerable});return t},Wne=(t,r,e)=>(e=t!=null?Dne(Bne(t)):{},Gne(PN(e,"default",{value:t,enumerable:!0}),t)),nf=jne({"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js"(){}}),Zne=Une({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(t,r){nf(),r.exports=n;function e(o){return o instanceof Buffer?Buffer.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function n(o){if(o=o||{},o.circles)return i(o);const a=new Map;if(a.set(Date,g=>new Date(g)),a.set(Map,(g,h)=>new Map(l(Array.from(g),h))),a.set(Set,(g,h)=>new Set(l(Array.from(g),h))),o.constructorHandlers)for(const g of o.constructorHandlers)a.set(g[0],g[1]);let s=null;return o.proto?u:c;function l(g,h){const d=Object.keys(g),f=new Array(d.length);for(let C=0;Cnew Date(d)),l.set(Map,(d,f)=>new Map(u(Array.from(d),f))),l.set(Set,(d,f)=>new Set(u(Array.from(d),f))),o.constructorHandlers)for(const d of o.constructorHandlers)l.set(d[0],d[1]);let c=null;return o.proto?h:g;function u(d,f){const C=Object.keys(d),v=new Array(C.length);for(let A=0;Anavigator?.platform?navigator?.platform.toLowerCase().includes("mac"):/Macintosh/.test(navigator.userAgent),Xne=/(?:^|[-_/])(\w)/g,qne=/-(\w)/g,Qne=/([a-z0-9])([A-Z])/g;function NN(t,r){return r?r.toUpperCase():""}function BN(t){return t&&`${t}`.replace(Xne,NN)}function Jne(t){return t&&t.replace(qne,NN)}function eie(t){return t&&t.replace(Qne,(r,e,n)=>`${e}-${n}`).toLowerCase()}function tie(t,r){let e=t.replace(/^[a-z]:/i,"").replace(/\\/g,"/");e.endsWith(`index${r}`)&&(e=e.replace(`/index${r}`,r));const n=e.lastIndexOf("/"),i=e.substring(n+1);{const o=i.lastIndexOf(r);return i.substring(0,o)}}function FN(t){return t&&t.slice().sort((r,e)=>r.keye.key?1:0)}var rie=/^https?:\/\//;function nie(t){return t.startsWith("/")||rie.test(t)}var Cv=(0,Yne.default)({circles:!0});function iie(){return Math.random().toString(36).slice(2)}function fM(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}function CM(t){return Array.isArray(t)}const oie={trailing:!0};function Kl(t,r=25,e={}){if(e={...oie,...e},!Number.isFinite(r))throw new TypeError("Expected `wait` to be a finite number");let n,i,o=[],a,s;const l=(c,u)=>(a=aie(t,c,u),a.finally(()=>{if(a=null,e.trailing&&s&&!i){const g=l(c,s);return s=null,g}}),a);return function(...c){return a?(e.trailing&&(s=c),a):new Promise(u=>{const g=!i&&e.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const h=e.leading?n:l(this,c);for(const d of o)d(h);o=[]},r),g?(n=l(this,c),u(n)):o.push(u)})}}async function aie(t,r,e){return await t.apply(r,e)}function S6(t,r={},e){for(const n in t){const i=t[n],o=e?`${e}:${n}`:n;typeof i=="object"&&i!==null?S6(i,r,o):typeof i=="function"&&(r[o]=i)}return r}const sie={run:t=>t()},lie=()=>sie,jN=typeof console.createTask<"u"?console.createTask:lie;function cie(t,r){const e=r.shift(),n=jN(e);return t.reduce((i,o)=>i.then(()=>n.run(()=>o(...r))),Promise.resolve())}function uie(t,r){const e=r.shift(),n=jN(e);return Promise.all(t.map(i=>n.run(()=>i(...r))))}function J4(t,r){for(const e of[...t])e(r)}let gie=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(r,e,n={}){if(!r||typeof e!="function")return()=>{};const i=r;let o;for(;this._deprecatedHooks[r];)o=this._deprecatedHooks[r],r=o.to;if(o&&!n.allowDeprecated){let a=o.message;a||(a=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+r.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[r]=this._hooks[r]||[],this._hooks[r].push(e),()=>{e&&(this.removeHook(r,e),e=void 0)}}hookOnce(r,e){let n,i=(...o)=>(typeof n=="function"&&n(),n=void 0,i=void 0,e(...o));return n=this.hook(r,i),n}removeHook(r,e){if(this._hooks[r]){const n=this._hooks[r].indexOf(e);n!==-1&&this._hooks[r].splice(n,1),this._hooks[r].length===0&&delete this._hooks[r]}}deprecateHook(r,e){this._deprecatedHooks[r]=typeof e=="string"?{to:e}:e;const n=this._hooks[r]||[];delete this._hooks[r];for(const i of n)this.hook(r,i)}deprecateHooks(r){Object.assign(this._deprecatedHooks,r);for(const e in r)this.deprecateHook(e,r[e])}addHooks(r){const e=S6(r),n=Object.keys(e).map(i=>this.hook(i,e[i]));return()=>{for(const i of n.splice(0,n.length))i()}}removeHooks(r){const e=S6(r);for(const n in e)this.removeHook(n,e[n])}removeAllHooks(){for(const r in this._hooks)delete this._hooks[r]}callHook(r,...e){return e.unshift(r),this.callHookWith(cie,r,...e)}callHookParallel(r,...e){return e.unshift(r),this.callHookWith(uie,r,...e)}callHookWith(r,e,...n){const i=this._before||this._after?{name:e,args:n,context:{}}:void 0;this._before&&J4(this._before,i);const o=r(e in this._hooks?[...this._hooks[e]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&i&&J4(this._after,i)}):(this._after&&i&&J4(this._after,i),o)}beforeEach(r){return this._before=this._before||[],this._before.push(r),()=>{if(this._before!==void 0){const e=this._before.indexOf(r);e!==-1&&this._before.splice(e,1)}}}afterEach(r){return this._after=this._after||[],this._after.push(r),()=>{if(this._after!==void 0){const e=this._after.indexOf(r);e!==-1&&this._after.splice(e,1)}}}};function UN(){return new gie}const hie=6e4;function GN(t){return t}const die=GN,{clearTimeout:fie,setTimeout:Cie}=globalThis,vie=Math.random.bind(Math);function Aie(t,r){const{post:e,on:n,off:i=()=>{},eventNames:o=[],serialize:a=GN,deserialize:s=die,resolver:l,bind:c="rpc",timeout:u=hie}=r,g=new Map;let h,d=!1;const f=new Proxy({},{get(A,I){if(I==="$functions")return t;if(I==="$close")return C;if(I==="then"&&!o.includes("then")&&!("then"in t))return;const p=(...b)=>{e(a({m:I,a:b,t:"q"}))};if(o.includes(I))return p.asEvent=p,p;const m=async(...b)=>{if(d)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);if(h)try{await h}finally{h=void 0}return new Promise((_,L)=>{const M=pie();let S;u>=0&&(S=Cie(()=>{try{throw r.onTimeoutError?.(I,b),new Error(`[birpc] timeout on calling "${I}"`)}catch(T){L(T)}g.delete(M)},u),typeof S=="object"&&(S=S.unref?.())),g.set(M,{resolve:_,reject:L,timeoutId:S,method:I}),e(a({m:I,a:b,i:M,t:"q"}))})};return m.asEvent=p,m}});function C(){d=!0,g.forEach(({reject:A,method:I})=>{A(new Error(`[birpc] rpc is closed, cannot call "${I}"`))}),g.clear(),i(v)}async function v(A,...I){const p=s(A);if(p.t==="q"){const{m,a:b}=p;let _,L;const M=l?l(m,t[m]):t[m];if(!M)L=new Error(`[birpc] function "${m}" not found`);else try{_=await M.apply(c==="rpc"?f:t,b)}catch(S){L=S}p.i&&(L&&r.onError&&r.onError(L,m,b),e(a({t:"s",i:p.i,r:_,e:L}),...I))}else{const{i:m,r:b,e:_}=p,L=g.get(m);L&&(fie(L.timeoutId),_?L.reject(_):L.resolve(b)),g.delete(m)}}return h=n(v),f}const Iie="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function pie(t=21){let r="",e=t;for(;e--;)r+=Iie[vie()*64|0];return r}/** * @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function qy(t){const r=Object.create(null);for(const e of t.split(","))r[e]=1;return e=>e in r}const kt={},R2=[],ua=()=>{},mie=()=>!1,BA=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Qy=t=>t.startsWith("onUpdate:"),Vr=Object.assign,Jy=(t,r)=>{const e=t.indexOf(r);e>-1&&t.splice(e,1)},yie=Object.prototype.hasOwnProperty,Ht=(t,r)=>yie.call(t,r),Ge=Array.isArray,D2=t=>af(t)==="[object Map]",Uu=t=>af(t)==="[object Set]",vM=t=>af(t)==="[object Date]",it=t=>typeof t=="function",fr=t=>typeof t=="string",xo=t=>typeof t=="symbol",Wt=t=>t!==null&&typeof t=="object",WN=t=>(Wt(t)||it(t))&&it(t.then)&&it(t.catch),ZN=Object.prototype.toString,af=t=>ZN.call(t),bie=t=>af(t).slice(8,-1),KN=t=>af(t)==="[object Object]",eb=t=>fr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ph=qy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),FA=t=>{const r=Object.create(null);return e=>r[e]||(r[e]=t(e))},wie=/-(\w)/g,Ni=FA(t=>t.replace(wie,(r,e)=>e?e.toUpperCase():"")),$ie=/\B([A-Z])/g,Cs=FA(t=>t.replace($ie,"-$1").toLowerCase()),jA=FA(t=>t.charAt(0).toUpperCase()+t.slice(1)),b5=FA(t=>t?`on${jA(t)}`:""),ai=(t,r)=>!Object.is(t,r),w5=(t,...r)=>{for(let e=0;e{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,writable:n,value:e})},vv=t=>{const r=parseFloat(t);return isNaN(r)?t:r},_ie=t=>{const r=fr(t)?Number(t):NaN;return isNaN(r)?t:r};let AM;const UA=()=>AM||(AM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function kr(t){if(Ge(t)){const r={};for(let e=0;e{if(e){const n=e.split(zie);n.length>1&&(r[n[0].trim()]=n[1].trim())}}),r}function Te(t){let r="";if(fr(t))r=t;else if(Ge(t))for(let e=0;eYl(e,r))}const qN=t=>!!(t&&t.__v_isRef===!0),ze=t=>fr(t)?t:t==null?"":Ge(t)||Wt(t)&&(t.toString===ZN||!it(t.toString))?qN(t)?ze(t.value):JSON.stringify(t,QN,2):String(t),QN=(t,r)=>qN(r)?QN(t,r.value):D2(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((e,[n,i],o)=>(e[ep(n,o)+" =>"]=i,e),{})}:Uu(r)?{[`Set(${r.size})`]:[...r.values()].map(e=>ep(e))}:xo(r)?ep(r):Wt(r)&&!Ge(r)&&!KN(r)?String(r):r,ep=(t,r="")=>{var e;return xo(t)?`Symbol(${(e=t.description)!=null?e:r})`:t};/** * @vue/reactivity v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Vn;class Oie{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vn,!r&&Vn&&(this.index=(Vn.scopes||(Vn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let r,e;if(this.scopes)for(r=0,e=this.scopes.length;r0)return;if(yh){let r=yh;for(yh=void 0;r;){const e=r.next;r.next=void 0,r.flags&=-9,r=e}}let t;for(;mh;){let r=mh;for(mh=void 0;r;){const e=r.next;if(r.next=void 0,r.flags&=-9,r.flags&1)try{r.trigger()}catch(n){t||(t=n)}r=e}}if(t)throw t}function nB(t){for(let r=t.deps;r;r=r.nextDep)r.version=-1,r.prevActiveLink=r.dep.activeLink,r.dep.activeLink=r}function iB(t){let r,e=t.depsTail,n=e;for(;n;){const i=n.prevDep;n.version===-1?(n===e&&(e=i),ab(n),xie(n)):r=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=r,t.depsTail=e}function T6(t){for(let r=t.deps;r;r=r.nextDep)if(r.dep.version!==r.version||r.dep.computed&&(oB(r.dep.computed)||r.dep.version!==r.version))return!0;return!!t._dirty}function oB(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ed))return;t.globalVersion=ed;const r=t.dep;if(t.flags|=2,r.version>0&&!t.isSSR&&t.deps&&!T6(t)){t.flags&=-3;return}const e=qt,n=To;qt=t,To=!0;try{nB(t);const i=t.fn(t._value);(r.version===0||ai(i,t._value))&&(t._value=i,r.version++)}catch(i){throw r.version++,i}finally{qt=e,To=n,iB(t),t.flags&=-3}}function ab(t,r=!1){const{dep:e,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),e.subs===t&&(e.subs=n,!n&&e.computed)){e.computed.flags&=-5;for(let o=e.computed.deps;o;o=o.nextDep)ab(o,!0)}!r&&!--e.sc&&e.map&&e.map.delete(e.key)}function xie(t){const{prevDep:r,nextDep:e}=t;r&&(r.nextDep=e,t.prevDep=void 0),e&&(e.prevDep=r,t.nextDep=void 0)}let To=!0;const aB=[];function O1(){aB.push(To),To=!1}function x1(){const t=aB.pop();To=t===void 0?!0:t}function IM(t){const{cleanup:r}=t;if(t.cleanup=void 0,r){const e=qt;qt=void 0;try{r()}finally{qt=e}}}let ed=0;class Hie{constructor(r,e){this.sub=r,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class GA{constructor(r){this.computed=r,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(r){if(!qt||!To||qt===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==qt)e=this.activeLink=new Hie(qt,this),qt.deps?(e.prevDep=qt.depsTail,qt.depsTail.nextDep=e,qt.depsTail=e):qt.deps=qt.depsTail=e,sB(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const n=e.nextDep;n.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=n),e.prevDep=qt.depsTail,e.nextDep=void 0,qt.depsTail.nextDep=e,qt.depsTail=e,qt.deps===e&&(qt.deps=n)}return e}trigger(r){this.version++,ed++,this.notify(r)}notify(r){ib();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ob()}}}function sB(t){if(t.dep.sc++,t.sub.flags&4){const r=t.dep.computed;if(r&&!t.dep.subs){r.flags|=20;for(let n=r.deps;n;n=n.nextDep)sB(n)}const e=t.dep.subs;e!==t&&(t.prevSub=e,e&&(e.nextSub=t)),t.dep.subs=t}}const Av=new WeakMap,Tl=Symbol(""),L6=Symbol(""),td=Symbol("");function Ln(t,r,e){if(To&&qt){let n=Av.get(t);n||Av.set(t,n=new Map);let i=n.get(e);i||(n.set(e,i=new GA),i.map=n,i.key=e),i.track()}}function Da(t,r,e,n,i,o){const a=Av.get(t);if(!a){ed++;return}const s=l=>{l&&l.trigger()};if(ib(),r==="clear")a.forEach(s);else{const l=Ge(t),c=l&&eb(e);if(l&&e==="length"){const u=Number(n);a.forEach((g,h)=>{(h==="length"||h===td||!xo(h)&&h>=u)&&s(g)})}else switch((e!==void 0||a.has(void 0))&&s(a.get(e)),c&&s(a.get(td)),r){case"add":l?c&&s(a.get("length")):(s(a.get(Tl)),D2(t)&&s(a.get(L6)));break;case"delete":l||(s(a.get(Tl)),D2(t)&&s(a.get(L6)));break;case"set":D2(t)&&s(a.get(Tl));break}}ob()}function Vie(t,r){const e=Av.get(t);return e&&e.get(r)}function Wc(t){const r=pt(t);return r===t?r:(Ln(r,"iterate",td),io(t)?r:r.map(kn))}function WA(t){return Ln(t=pt(t),"iterate",td),t}const Pie={__proto__:null,[Symbol.iterator](){return rp(this,Symbol.iterator,kn)},concat(...t){return Wc(this).concat(...t.map(r=>Ge(r)?Wc(r):r))},entries(){return rp(this,"entries",t=>(t[1]=kn(t[1]),t))},every(t,r){return Ha(this,"every",t,r,void 0,arguments)},filter(t,r){return Ha(this,"filter",t,r,e=>e.map(kn),arguments)},find(t,r){return Ha(this,"find",t,r,kn,arguments)},findIndex(t,r){return Ha(this,"findIndex",t,r,void 0,arguments)},findLast(t,r){return Ha(this,"findLast",t,r,kn,arguments)},findLastIndex(t,r){return Ha(this,"findLastIndex",t,r,void 0,arguments)},forEach(t,r){return Ha(this,"forEach",t,r,void 0,arguments)},includes(...t){return np(this,"includes",t)},indexOf(...t){return np(this,"indexOf",t)},join(t){return Wc(this).join(t)},lastIndexOf(...t){return np(this,"lastIndexOf",t)},map(t,r){return Ha(this,"map",t,r,void 0,arguments)},pop(){return Bg(this,"pop")},push(...t){return Bg(this,"push",t)},reduce(t,...r){return pM(this,"reduce",t,r)},reduceRight(t,...r){return pM(this,"reduceRight",t,r)},shift(){return Bg(this,"shift")},some(t,r){return Ha(this,"some",t,r,void 0,arguments)},splice(...t){return Bg(this,"splice",t)},toReversed(){return Wc(this).toReversed()},toSorted(t){return Wc(this).toSorted(t)},toSpliced(...t){return Wc(this).toSpliced(...t)},unshift(...t){return Bg(this,"unshift",t)},values(){return rp(this,"values",kn)}};function rp(t,r,e){const n=WA(t),i=n[r]();return n!==t&&!io(t)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=e(o.value)),o}),i}const Rie=Array.prototype;function Ha(t,r,e,n,i,o){const a=WA(t),s=a!==t&&!io(t),l=a[r];if(l!==Rie[r]){const g=l.apply(t,o);return s?kn(g):g}let c=e;a!==t&&(s?c=function(g,h){return e.call(this,kn(g),h,t)}:e.length>2&&(c=function(g,h){return e.call(this,g,h,t)}));const u=l.call(a,c,n);return s&&i?i(u):u}function pM(t,r,e,n){const i=WA(t);let o=e;return i!==t&&(io(t)?e.length>3&&(o=function(a,s,l){return e.call(this,a,s,l,t)}):o=function(a,s,l){return e.call(this,a,kn(s),l,t)}),i[r](o,...n)}function np(t,r,e){const n=pt(t);Ln(n,"iterate",td);const i=n[r](...e);return(i===-1||i===!1)&&ub(e[0])?(e[0]=pt(e[0]),n[r](...e)):i}function Bg(t,r,e=[]){O1(),ib();const n=pt(t)[r].apply(t,e);return ob(),x1(),n}const Die=qy("__proto__,__v_isRef,__isVue"),lB=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(xo));function Nie(t){xo(t)||(t=String(t));const r=pt(this);return Ln(r,"has",t),r.hasOwnProperty(t)}class cB{constructor(r=!1,e=!1){this._isReadonly=r,this._isShallow=e}get(r,e,n){const i=this._isReadonly,o=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return o;if(e==="__v_raw")return n===(i?o?Xie:dB:o?hB:gB).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(n)?r:void 0;const a=Ge(r);if(!i){let l;if(a&&(l=Pie[e]))return l;if(e==="hasOwnProperty")return Nie}const s=Reflect.get(r,e,qe(r)?r:n);return(xo(e)?lB.has(e):Die(e))||(i||Ln(r,"get",e),o)?s:qe(s)?a&&eb(e)?s:s.value:Wt(s)?i?H1(s):ya(s):s}}class uB extends cB{constructor(r=!1){super(!1,r)}set(r,e,n,i){let o=r[e];if(!this._isShallow){const l=Xl(o);if(!io(n)&&!Xl(n)&&(o=pt(o),n=pt(n)),!Ge(r)&&qe(o)&&!qe(n))return l?!1:(o.value=n,!0)}const a=Ge(r)&&eb(e)?Number(e)t,U0=t=>Reflect.getPrototypeOf(t);function Gie(t,r,e){return function(...n){const i=this.__v_raw,o=pt(i),a=D2(o),s=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,c=i[t](...n),u=e?k6:r?O6:kn;return!r&&Ln(o,"iterate",l?L6:Tl),{next(){const{value:g,done:h}=c.next();return h?{value:g,done:h}:{value:s?[u(g[0]),u(g[1])]:u(g),done:h}},[Symbol.iterator](){return this}}}}function G0(t){return function(...r){return t==="delete"?!1:t==="clear"?void 0:this}}function Wie(t,r){const e={get(i){const o=this.__v_raw,a=pt(o),s=pt(i);t||(ai(i,s)&&Ln(a,"get",i),Ln(a,"get",s));const{has:l}=U0(a),c=r?k6:t?O6:kn;if(l.call(a,i))return c(o.get(i));if(l.call(a,s))return c(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!t&&Ln(pt(i),"iterate",Tl),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=pt(o),s=pt(i);return t||(ai(i,s)&&Ln(a,"has",i),Ln(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=pt(s),c=r?k6:t?O6:kn;return!t&&Ln(l,"iterate",Tl),s.forEach((u,g)=>i.call(o,c(u),c(g),a))}};return Vr(e,t?{add:G0("add"),set:G0("set"),delete:G0("delete"),clear:G0("clear")}:{add(i){!r&&!io(i)&&!Xl(i)&&(i=pt(i));const o=pt(this);return U0(o).has.call(o,i)||(o.add(i),Da(o,"add",i,i)),this},set(i,o){!r&&!io(o)&&!Xl(o)&&(o=pt(o));const a=pt(this),{has:s,get:l}=U0(a);let c=s.call(a,i);c||(i=pt(i),c=s.call(a,i));const u=l.call(a,i);return a.set(i,o),c?ai(o,u)&&Da(a,"set",i,o):Da(a,"add",i,o),this},delete(i){const o=pt(this),{has:a,get:s}=U0(o);let l=a.call(o,i);l||(i=pt(i),l=a.call(o,i)),s&&s.call(o,i);const c=o.delete(i);return l&&Da(o,"delete",i,void 0),c},clear(){const i=pt(this),o=i.size!==0,a=i.clear();return o&&Da(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Gie(i,t,r)}),e}function sb(t,r){const e=Wie(t,r);return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Ht(e,i)&&i in n?e:n,i,o)}const Zie={get:sb(!1,!1)},Kie={get:sb(!1,!0)},Yie={get:sb(!0,!1)};const gB=new WeakMap,hB=new WeakMap,dB=new WeakMap,Xie=new WeakMap;function qie(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qie(t){return t.__v_skip||!Object.isExtensible(t)?0:qie(bie(t))}function ya(t){return Xl(t)?t:cb(t,!1,Fie,Zie,gB)}function lb(t){return cb(t,!1,Uie,Kie,hB)}function H1(t){return cb(t,!0,jie,Yie,dB)}function cb(t,r,e,n,i){if(!Wt(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const a=Qie(t);if(a===0)return t;const s=new Proxy(t,a===2?n:e);return i.set(t,s),s}function N2(t){return Xl(t)?N2(t.__v_raw):!!(t&&t.__v_isReactive)}function Xl(t){return!!(t&&t.__v_isReadonly)}function io(t){return!!(t&&t.__v_isShallow)}function ub(t){return t?!!t.__v_raw:!1}function pt(t){const r=t&&t.__v_raw;return r?pt(r):t}function fB(t){return!Ht(t,"__v_skip")&&Object.isExtensible(t)&&YN(t,"__v_skip",!0),t}const kn=t=>Wt(t)?ya(t):t,O6=t=>Wt(t)?H1(t):t;function qe(t){return t?t.__v_isRef===!0:!1}function G(t){return CB(t,!1)}function Bi(t){return CB(t,!0)}function CB(t,r){return qe(t)?t:new Jie(t,r)}class Jie{constructor(r,e){this.dep=new GA,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?r:pt(r),this._value=e?r:kn(r),this.__v_isShallow=e}get value(){return this.dep.track(),this._value}set value(r){const e=this._rawValue,n=this.__v_isShallow||io(r)||Xl(r);r=n?r:pt(r),ai(r,e)&&(this._rawValue=r,this._value=n?r:kn(r),this.dep.trigger())}}function y(t){return qe(t)?t.value:t}function rd(t){return it(t)?t():y(t)}const eoe={get:(t,r,e)=>r==="__v_raw"?t:y(Reflect.get(t,r,e)),set:(t,r,e,n)=>{const i=t[r];return qe(i)&&!qe(e)?(i.value=e,!0):Reflect.set(t,r,e,n)}};function vB(t){return N2(t)?t:new Proxy(t,eoe)}class toe{constructor(r){this.__v_isRef=!0,this._value=void 0;const e=this.dep=new GA,{get:n,set:i}=r(e.track.bind(e),e.trigger.bind(e));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(r){this._set(r)}}function gb(t){return new toe(t)}function x6(t){const r=Ge(t)?new Array(t.length):{};for(const e in t)r[e]=AB(t,e);return r}class roe{constructor(r,e,n){this._object=r,this._key=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const r=this._object[this._key];return this._value=r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return Vie(pt(this._object),this._key)}}class noe{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ioe(t,r,e){return qe(t)?t:it(t)?new noe(t):Wt(t)&&arguments.length>1?AB(t,r,e):G(t)}function AB(t,r,e){const n=t[r];return qe(n)?n:new roe(t,r,e)}class ooe{constructor(r,e,n){this.fn=r,this.setter=e,this._value=void 0,this.dep=new GA(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ed-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&qt!==this)return rB(this,!0),!0}get value(){const r=this.dep.track();return oB(this),r&&(r.version=this.dep.version),this._value}set value(r){this.setter&&this.setter(r)}}function aoe(t,r,e=!1){let n,i;return it(t)?n=t:(n=t.get,i=t.set),new ooe(n,i,e)}const W0={},Iv=new WeakMap;let fl;function soe(t,r=!1,e=fl){if(e){let n=Iv.get(e);n||Iv.set(e,n=[]),n.push(t)}}function loe(t,r,e=kt){const{immediate:n,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=e,c=m=>i?m:io(m)||i===!1||i===0?Na(m,1):Na(m);let u,g,h,d,f=!1,C=!1;if(qe(t)?(g=()=>t.value,f=io(t)):N2(t)?(g=()=>c(t),f=!0):Ge(t)?(C=!0,f=t.some(m=>N2(m)||io(m)),g=()=>t.map(m=>{if(qe(m))return m.value;if(N2(m))return c(m);if(it(m))return l?l(m,2):m()})):it(t)?r?g=l?()=>l(t,2):t:g=()=>{if(h){O1();try{h()}finally{x1()}}const m=fl;fl=u;try{return l?l(t,3,[d]):t(d)}finally{fl=m}}:g=ua,r&&i){const m=g,b=i===!0?1/0:i;g=()=>Na(m(),b)}const v=nb(),A=()=>{u.stop(),v&&Jy(v.effects,u)};if(o&&r){const m=r;r=(...b)=>{m(...b),A()}}let I=C?new Array(t.length).fill(W0):W0;const p=m=>{if(!(!(u.flags&1)||!u.dirty&&!m))if(r){const b=u.run();if(i||f||(C?b.some((_,L)=>ai(_,I[L])):ai(b,I))){h&&h();const _=fl;fl=u;try{const L=[b,I===W0?void 0:C&&I[0]===W0?[]:I,d];l?l(r,3,L):r(...L),I=b}finally{fl=_}}}else u.run()};return s&&s(p),u=new eB(g),u.scheduler=a?()=>a(p,!1):p,d=m=>soe(m,!1,u),h=u.onStop=()=>{const m=Iv.get(u);if(m){if(l)l(m,4);else for(const b of m)b();Iv.delete(u)}},r?n?p(!0):I=u.run():a?a(p.bind(null,!0),!0):u.run(),A.pause=u.pause.bind(u),A.resume=u.resume.bind(u),A.stop=A,A}function Na(t,r=1/0,e){if(r<=0||!Wt(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),r--,qe(t))Na(t.value,r,e);else if(Ge(t))for(let n=0;n{Na(n,r,e)});else if(KN(t)){for(const n in t)Na(t[n],r,e);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&Na(t[n],r,e)}return t}/** * @vue/runtime-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function sf(t,r,e,n){try{return n?t(...n):t()}catch(i){lf(i,r,e)}}function Ho(t,r,e,n){if(it(t)){const i=sf(t,r,e,n);return i&&WN(i)&&i.catch(o=>{lf(o,r,e)}),i}if(Ge(t)){const i=[];for(let o=0;o>>1,i=Bn[n],o=nd(i);o=nd(e)?Bn.push(t):Bn.splice(uoe(r),0,t),t.flags|=1,pB()}}function pB(){pv||(pv=IB.then(yB))}function goe(t){Ge(t)?B2.push(...t):Bs&&t.id===-1?Bs.splice(g2+1,0,t):t.flags&1||(B2.push(t),t.flags|=1),pB()}function mM(t,r,e=Jo+1){for(;end(e)-nd(n));if(B2.length=0,Bs){Bs.push(...r);return}for(Bs=r,g2=0;g2t.id==null?t.flags&2?-1:1/0:t.id;function yB(t){try{for(Jo=0;JoW;function W(t,r=cn,e){if(!r||t._n)return t;const n=(...i)=>{n._d&&kM(-1);const o=mv(r);let a;try{a=t(...i)}finally{mv(o),n._d&&kM(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function $t(t,r){if(cn===null)return t;const e=eI(cn),n=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport,bh=t=>t&&(t.disabled||t.disabled===""),hoe=t=>t&&(t.defer||t.defer===""),yM=t=>typeof SVGElement<"u"&&t instanceof SVGElement,bM=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,H6=(t,r)=>{const e=t&&t.to;return fr(e)?r?r(e):null:e},doe={name:"Teleport",__isTeleport:!0,process(t,r,e,n,i,o,a,s,l,c){const{mc:u,pc:g,pbc:h,o:{insert:d,querySelector:f,createText:C,createComment:v}}=c,A=bh(r.props);let{shapeFlag:I,children:p,dynamicChildren:m}=r;if(t==null){const b=r.el=C(""),_=r.anchor=C("");d(b,e,n),d(_,e,n);const L=(S,T)=>{I&16&&(i&&i.isCE&&(i.ce._teleportTarget=S),u(p,S,T,i,o,a,s,l))},M=()=>{const S=r.target=H6(r.props,f),T=EB(S,r,C,d);S&&(a!=="svg"&&yM(S)?a="svg":a!=="mathml"&&bM(S)&&(a="mathml"),A||(L(S,T),$5(r,!1)))};A&&(L(e,_),$5(r,!0)),hoe(r.props)?ni(M,o):M()}else{r.el=t.el,r.targetStart=t.targetStart;const b=r.anchor=t.anchor,_=r.target=t.target,L=r.targetAnchor=t.targetAnchor,M=bh(t.props),S=M?e:_,T=M?b:L;if(a==="svg"||yM(_)?a="svg":(a==="mathml"||bM(_))&&(a="mathml"),m?(h(t.dynamicChildren,m,S,i,o,a,s),pb(t,r,!0)):l||g(t,r,S,T,i,o,a,s,!1),A)M?r.props&&t.props&&r.props.to!==t.props.to&&(r.props.to=t.props.to):Z0(r,e,b,c,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const k=r.target=H6(r.props,f);k&&Z0(r,k,null,c,0)}else M&&Z0(r,_,L,c,1);$5(r,A)}},remove(t,r,e,{um:n,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:g,props:h}=t;if(g&&(i(c),i(u)),o&&i(l),a&16){const d=o||!bh(h);for(let f=0;f{t.isMounted=!0}),HB(()=>{t.isUnmounting=!0}),t}const Zi=[Function,Array],SB={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Zi,onEnter:Zi,onAfterEnter:Zi,onEnterCancelled:Zi,onBeforeLeave:Zi,onLeave:Zi,onAfterLeave:Zi,onLeaveCancelled:Zi,onBeforeAppear:Zi,onAppear:Zi,onAfterAppear:Zi,onAppearCancelled:Zi},TB=t=>{const r=t.subTree;return r.component?TB(r.component):r},voe={name:"BaseTransition",props:SB,setup(t,{slots:r}){const e=As(),n=Coe();return()=>{const i=r.default&&OB(r.default(),!0);if(!i||!i.length)return;const o=LB(i),a=pt(t),{mode:s}=a;if(n.isLeaving)return ip(o);const l=wM(o);if(!l)return ip(o);let c=V6(l,a,n,e,h=>c=h);l.type!==Gn&&id(l,c);const u=e.subTree,g=u&&wM(u);if(g&&g.type!==Gn&&!pl(l,g)&&TB(e).type!==Gn){const h=V6(g,a,n,e);if(id(g,h),s==="out-in"&&l.type!==Gn)return n.isLeaving=!0,h.afterLeave=()=>{n.isLeaving=!1,e.job.flags&8||e.update(),delete h.afterLeave},ip(o);s==="in-out"&&l.type!==Gn&&(h.delayLeave=(d,f,C)=>{const v=kB(n,g);v[String(g.key)]=g,d[Fs]=()=>{f(),d[Fs]=void 0,delete c.delayedLeave},c.delayedLeave=C})}return o}}};function LB(t){let r=t[0];if(t.length>1){for(const e of t)if(e.type!==Gn){r=e;break}}return r}const Aoe=voe;function kB(t,r){const{leavingVNodes:e}=t;let n=e.get(r.type);return n||(n=Object.create(null),e.set(r.type,n)),n}function V6(t,r,e,n,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:g,onBeforeLeave:h,onLeave:d,onAfterLeave:f,onLeaveCancelled:C,onBeforeAppear:v,onAppear:A,onAfterAppear:I,onAppearCancelled:p}=r,m=String(t.key),b=kB(e,t),_=(S,T)=>{S&&Ho(S,n,9,T)},L=(S,T)=>{const k=T[1];_(S,T),Ge(S)?S.every(O=>O.length<=1)&&k():S.length<=1&&k()},M={mode:a,persisted:s,beforeEnter(S){let T=l;if(!e.isMounted)if(o)T=v||l;else return;S[Fs]&&S[Fs](!0);const k=b[m];k&&pl(t,k)&&k.el[Fs]&&k.el[Fs](),_(T,[S])},enter(S){let T=c,k=u,O=g;if(!e.isMounted)if(o)T=A||c,k=I||u,O=p||g;else return;let P=!1;const B=S[K0]=te=>{P||(P=!0,te?_(O,[S]):_(k,[S]),M.delayedLeave&&M.delayedLeave(),S[K0]=void 0)};T?L(T,[S,B]):B()},leave(S,T){const k=String(t.key);if(S[K0]&&S[K0](!0),e.isUnmounting)return T();_(h,[S]);let O=!1;const P=S[Fs]=B=>{O||(O=!0,T(),B?_(C,[S]):_(f,[S]),S[Fs]=void 0,b[k]===t&&delete b[k])};b[k]=t,d?L(d,[S,P]):P()},clone(S){const T=V6(S,r,e,n,i);return i&&i(T),T}};return M}function ip(t){if(cf(t))return t=b1(t),t.children=null,t}function wM(t){if(!cf(t))return MB(t.type)&&t.children?LB(t.children):t;const{shapeFlag:r,children:e}=t;if(e){if(r&16)return e[0];if(r&32&&it(e.default))return e.default()}}function id(t,r){t.shapeFlag&6&&t.component?(t.transition=r,id(t.component.subTree,r)):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function OB(t,r=!1,e){let n=[],i=0;for(let o=0;o1)for(let o=0;oP6(f,r&&(Ge(r)?r[C]:r),e,n,i));return}if(F2(n)&&!i)return;const o=n.shapeFlag&4?eI(n.component):n.el,a=i?null:o,{i:s,r:l}=t,c=r&&r.r,u=s.refs===kt?s.refs={}:s.refs,g=s.setupState,h=pt(g),d=g===kt?()=>!1:f=>Ht(h,f);if(c!=null&&c!==l&&(fr(c)?(u[c]=null,d(c)&&(g[c]=null)):qe(c)&&(c.value=null)),it(l))sf(l,s,12,[a,u]);else{const f=fr(l),C=qe(l);if(f||C){const v=()=>{if(t.f){const A=f?d(l)?g[l]:u[l]:l.value;i?Ge(A)&&Jy(A,o):Ge(A)?A.includes(o)||A.push(o):f?(u[l]=[o],d(l)&&(g[l]=u[l])):(l.value=[o],t.k&&(u[t.k]=l.value))}else f?(u[l]=a,d(l)&&(g[l]=a)):C&&(l.value=a,t.k&&(u[t.k]=a))};a?(v.id=-1,ni(v,e)):v()}}}const $M=t=>t.nodeType===8;UA().requestIdleCallback;UA().cancelIdleCallback;function Ioe(t,r){if($M(t)&&t.data==="["){let e=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(r(n)===!1)break}else if($M(n))if(n.data==="]"){if(--e===0)break}else n.data==="["&&e++;n=n.nextSibling}}else r(t)}const F2=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function poe(t){it(t)&&(t={loader:t});const{loader:r,loadingComponent:e,errorComponent:n,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=t;let c=null,u,g=0;const h=()=>(g++,c=null,d()),d=()=>{let f;return c||(f=c=r().catch(C=>{if(C=C instanceof Error?C:new Error(String(C)),l)return new Promise((v,A)=>{l(C,()=>v(h()),()=>A(C),g+1)});throw C}).then(C=>f!==c&&c?c:(C&&(C.__esModule||C[Symbol.toStringTag]==="Module")&&(C=C.default),u=C,C)))};return ce({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(f,C,v){const A=o?()=>{const I=o(v,p=>Ioe(f,p));I&&(C.bum||(C.bum=[])).push(I)}:v;u?A():d().then(()=>!C.isUnmounted&&A())},get __asyncResolved(){return u},setup(){const f=on;if(db(f),u)return()=>op(u,f);const C=p=>{c=null,lf(p,f,13,!n)};if(s&&f.suspense||ou)return d().then(p=>()=>op(p,f)).catch(p=>(C(p),()=>n?D(n,{error:p}):null));const v=G(!1),A=G(),I=G(!!i);return i&&setTimeout(()=>{I.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!A.value){const p=new Error(`Async component timed out after ${a}ms.`);C(p),A.value=p}},a),d().then(()=>{v.value=!0,f.parent&&cf(f.parent.vnode)&&f.parent.update()}).catch(p=>{C(p),A.value=p}),()=>{if(v.value&&u)return op(u,f);if(A.value&&n)return D(n,{error:A.value});if(e&&!I.value)return D(e)}}})}function op(t,r){const{ref:e,props:n,children:i,ce:o}=r.vnode,a=D(t,n,i);return a.ref=e,a.ce=o,delete r.vnode.ce,a}const cf=t=>t.type.__isKeepAlive;function moe(t,r){xB(t,"a",r)}function yoe(t,r){xB(t,"da",r)}function xB(t,r,e=on){const n=t.__wdc||(t.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(KA(r,n,e),e){let i=e.parent;for(;i&&i.parent;)cf(i.parent.vnode)&&boe(n,r,e,i),i=i.parent}}function boe(t,r,e,n){const i=KA(r,t,n,!0);fn(()=>{Jy(n[r],i)},e)}function KA(t,r,e=on,n=!1){if(e){const i=e[t]||(e[t]=[]),o=r.__weh||(r.__weh=(...a)=>{O1();const s=uf(e),l=Ho(r,e,t,a);return s(),x1(),l});return n?i.unshift(o):i.push(o),o}}const vs=t=>(r,e=on)=>{(!ou||t==="sp")&&KA(t,(...n)=>r(...n),e)},woe=vs("bm"),Ii=vs("m"),$oe=vs("bu"),_oe=vs("u"),HB=vs("bum"),fn=vs("um"),Moe=vs("sp"),zoe=vs("rtg"),Eoe=vs("rtc");function Soe(t,r=on){KA("ec",t,r)}const fb="components",Toe="directives";function Vo(t,r){return vb(fb,t,!0,r)||t}const VB=Symbol.for("v-ndc");function y1(t){return fr(t)?vb(fb,t,!1)||t:t||VB}function Cb(t){return vb(Toe,t)}function vb(t,r,e=!0,n=!1){const i=cn||on;if(i){const o=i.type;if(t===fb){const s=Cae(o,!1);if(s&&(s===r||s===Ni(r)||s===jA(Ni(r))))return o}const a=_M(i[t]||o[t],r)||_M(i.appContext[t],r);return!a&&n?o:a}}function _M(t,r){return t&&(t[r]||t[Ni(r)]||t[jA(Ni(r))])}function At(t,r,e,n){let i;const o=e,a=Ge(t);if(a||fr(t)){const s=a&&N2(t);let l=!1;s&&(l=!io(t),t=WA(t)),i=new Array(t.length);for(let c=0,u=t.length;cr(s,l,void 0,o));else{const s=Object.keys(t);i=new Array(s.length);for(let l=0,c=s.length;l{const o=n.fn(...i);return o&&(o.key=n.key),o}:n.fn)}return t}function Qe(t,r,e={},n,i){if(cn.ce||cn.parent&&F2(cn.parent)&&cn.parent.ce)return r!=="default"&&(e.name=r),z(),ne(Ee,null,[D("slot",e,n&&n())],64);let o=t[r];o&&o._c&&(o._d=!1),z();const a=o&&RB(o(e)),s=e.key||a&&a.key,l=ne(Ee,{key:(s&&!xo(s)?s:`_${r}`)+(!a&&n?"_fb":"")},a||(n?n():[]),a&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function RB(t){return t.some(r=>ad(r)?!(r.type===Gn||r.type===Ee&&!RB(r.children)):!0)?t:null}function Loe(t,r){const e={};for(const n in t)e[b5(n)]=t[n];return e}const R6=t=>t?aF(t)?eI(t):R6(t.parent):null,wh=Vr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>R6(t.parent),$root:t=>R6(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Ab(t),$forceUpdate:t=>t.f||(t.f=()=>{hb(t.update)}),$nextTick:t=>t.n||(t.n=dn.bind(t.proxy)),$watch:t=>eae.bind(t)}),ap=(t,r)=>t!==kt&&!t.__isScriptSetup&&Ht(t,r),koe={get({_:t},r){if(r==="__v_skip")return!0;const{ctx:e,setupState:n,data:i,props:o,accessCache:a,type:s,appContext:l}=t;let c;if(r[0]!=="$"){const d=a[r];if(d!==void 0)switch(d){case 1:return n[r];case 2:return i[r];case 4:return e[r];case 3:return o[r]}else{if(ap(n,r))return a[r]=1,n[r];if(i!==kt&&Ht(i,r))return a[r]=2,i[r];if((c=t.propsOptions[0])&&Ht(c,r))return a[r]=3,o[r];if(e!==kt&&Ht(e,r))return a[r]=4,e[r];D6&&(a[r]=0)}}const u=wh[r];let g,h;if(u)return r==="$attrs"&&Ln(t.attrs,"get",""),u(t);if((g=s.__cssModules)&&(g=g[r]))return g;if(e!==kt&&Ht(e,r))return a[r]=4,e[r];if(h=l.config.globalProperties,Ht(h,r))return h[r]},set({_:t},r,e){const{data:n,setupState:i,ctx:o}=t;return ap(i,r)?(i[r]=e,!0):n!==kt&&Ht(n,r)?(n[r]=e,!0):Ht(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(o[r]=e,!0)},has({_:{data:t,setupState:r,accessCache:e,ctx:n,appContext:i,propsOptions:o}},a){let s;return!!e[a]||t!==kt&&Ht(t,a)||ap(r,a)||(s=o[0])&&Ht(s,a)||Ht(n,a)||Ht(wh,a)||Ht(i.config.globalProperties,a)},defineProperty(t,r,e){return e.get!=null?t._.accessCache[r]=0:Ht(e,"value")&&this.set(t,r,e.value,null),Reflect.defineProperty(t,r,e)}};function DB(){return NB().slots}function Ooe(){return NB().attrs}function NB(){const t=As();return t.setupContext||(t.setupContext=lF(t))}function yv(t){return Ge(t)?t.reduce((r,e)=>(r[e]=null,r),{}):t}function iu(t,r){return!t||!r?t||r:Ge(t)&&Ge(r)?t.concat(r):Vr({},yv(t),yv(r))}let D6=!0;function xoe(t){const r=Ab(t),e=t.proxy,n=t.ctx;D6=!1,r.beforeCreate&&MM(r.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:g,mounted:h,beforeUpdate:d,updated:f,activated:C,deactivated:v,beforeDestroy:A,beforeUnmount:I,destroyed:p,unmounted:m,render:b,renderTracked:_,renderTriggered:L,errorCaptured:M,serverPrefetch:S,expose:T,inheritAttrs:k,components:O,directives:P,filters:B}=r;if(c&&Hoe(c,n,null),a)for(const re in a){const Me=a[re];it(Me)&&(n[re]=Me.bind(e))}if(i){const re=i.call(e,e);Wt(re)&&(t.data=ya(re))}if(D6=!0,o)for(const re in o){const Me=o[re],He=it(Me)?Me.bind(e,e):it(Me.get)?Me.get.bind(e,e):ua,nt=!it(Me)&&it(Me.set)?Me.set.bind(e):ua,De=F({get:He,set:nt});Object.defineProperty(n,re,{enumerable:!0,configurable:!0,get:()=>De.value,set:be=>De.value=be})}if(s)for(const re in s)BB(s[re],n,e,re);if(l){const re=it(l)?l.call(e):l;Reflect.ownKeys(re).forEach(Me=>{Di(Me,re[Me])})}u&&MM(u,t,"c");function ee(re,Me){Ge(Me)?Me.forEach(He=>re(He.bind(e))):Me&&re(Me.bind(e))}if(ee(woe,g),ee(Ii,h),ee($oe,d),ee(_oe,f),ee(moe,C),ee(yoe,v),ee(Soe,M),ee(Eoe,_),ee(zoe,L),ee(HB,I),ee(fn,m),ee(Moe,S),Ge(T))if(T.length){const re=t.exposed||(t.exposed={});T.forEach(Me=>{Object.defineProperty(re,Me,{get:()=>e[Me],set:He=>e[Me]=He})})}else t.exposed||(t.exposed={});b&&t.render===ua&&(t.render=b),k!=null&&(t.inheritAttrs=k),O&&(t.components=O),P&&(t.directives=P),S&&db(t)}function Hoe(t,r,e=ua){Ge(t)&&(t=N6(t));for(const n in t){const i=t[n];let o;Wt(i)?"default"in i?o=br(i.from||n,i.default,!0):o=br(i.from||n):o=br(i),qe(o)?Object.defineProperty(r,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):r[n]=o}}function MM(t,r,e){Ho(Ge(t)?t.map(n=>n.bind(r.proxy)):t.bind(r.proxy),r,e)}function BB(t,r,e,n){let i=n.includes(".")?JB(e,n):()=>e[n];if(fr(t)){const o=r[t];it(o)&&Je(i,o)}else if(it(t))Je(i,t.bind(e));else if(Wt(t))if(Ge(t))t.forEach(o=>BB(o,r,e,n));else{const o=it(t.handler)?t.handler.bind(e):r[t.handler];it(o)&&Je(i,o,t)}}function Ab(t){const r=t.type,{mixins:e,extends:n}=r,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=t.appContext,s=o.get(r);let l;return s?l=s:!i.length&&!e&&!n?l=r:(l={},i.length&&i.forEach(c=>bv(l,c,a,!0)),bv(l,r,a)),Wt(r)&&o.set(r,l),l}function bv(t,r,e,n=!1){const{mixins:i,extends:o}=r;o&&bv(t,o,e,!0),i&&i.forEach(a=>bv(t,a,e,!0));for(const a in r)if(!(n&&a==="expose")){const s=Voe[a]||e&&e[a];t[a]=s?s(t[a],r[a]):r[a]}return t}const Voe={data:zM,props:EM,emits:EM,methods:ch,computed:ch,beforeCreate:Hn,created:Hn,beforeMount:Hn,mounted:Hn,beforeUpdate:Hn,updated:Hn,beforeDestroy:Hn,beforeUnmount:Hn,destroyed:Hn,unmounted:Hn,activated:Hn,deactivated:Hn,errorCaptured:Hn,serverPrefetch:Hn,components:ch,directives:ch,watch:Roe,provide:zM,inject:Poe};function zM(t,r){return r?t?function(){return Vr(it(t)?t.call(this,this):t,it(r)?r.call(this,this):r)}:r:t}function Poe(t,r){return ch(N6(t),N6(r))}function N6(t){if(Ge(t)){const r={};for(let e=0;e1)return e&&it(r)?r.call(n&&n.proxy):r}}const jB={},UB=()=>Object.create(jB),GB=t=>Object.getPrototypeOf(t)===jB;function Boe(t,r,e,n=!1){const i={},o=UB();t.propsDefaults=Object.create(null),WB(t,r,i,o);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);e?t.props=n?i:lb(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function Foe(t,r,e,n){const{props:i,attrs:o,vnode:{patchFlag:a}}=t,s=pt(i),[l]=t.propsOptions;let c=!1;if((n||a>0)&&!(a&16)){if(a&8){const u=t.vnode.dynamicProps;for(let g=0;g{l=!0;const[h,d]=ZB(g,r,!0);Vr(a,h),d&&s.push(...d)};!e&&r.mixins.length&&r.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return Wt(t)&&n.set(t,R2),R2;if(Ge(o))for(let u=0;ut[0]==="_"||t==="$stable",Ib=t=>Ge(t)?t.map(ea):[ea(t)],Uoe=(t,r,e)=>{if(r._n)return r;const n=W((...i)=>Ib(r(...i)),e);return n._c=!1,n},YB=(t,r,e)=>{const n=t._ctx;for(const i in t){if(KB(i))continue;const o=t[i];if(it(o))r[i]=Uoe(i,o,n);else if(o!=null){const a=Ib(o);r[i]=()=>a}}},XB=(t,r)=>{const e=Ib(r);t.slots.default=()=>e},qB=(t,r,e)=>{for(const n in r)(e||n!=="_")&&(t[n]=r[n])},Goe=(t,r,e)=>{const n=t.slots=UB();if(t.vnode.shapeFlag&32){const i=r._;i?(qB(n,r,e),e&&YN(n,"_",i,!0)):YB(r,n)}else r&&XB(t,r)},Woe=(t,r,e)=>{const{vnode:n,slots:i}=t;let o=!0,a=kt;if(n.shapeFlag&32){const s=r._;s?e&&s===1?o=!1:qB(i,r,e):(o=!r.$stable,YB(r,i)),a=r}else r&&(XB(t,r),a={default:1});if(o)for(const s in i)!KB(s)&&a[s]==null&&delete i[s]},ni=aae;function Zoe(t){return Koe(t)}function Koe(t,r){const e=UA();e.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:g,nextSibling:h,setScopeId:d=ua,insertStaticContent:f}=t,C=(E,$,x,j=null,U=null,q=null,le=void 0,ue=null,_e=!!$.dynamicChildren)=>{if(E===$)return;E&&!pl(E,$)&&(j=Z(E),be(E,U,q,!0),E=null),$.patchFlag===-2&&(_e=!1,$.dynamicChildren=null);const{type:ge,ref:tt,shapeFlag:Le}=$;switch(ge){case QA:v(E,$,x,j);break;case Gn:A(E,$,x,j);break;case _5:E==null&&I($,x,j,le);break;case Ee:O(E,$,x,j,U,q,le,ue,_e);break;default:Le&1?b(E,$,x,j,U,q,le,ue,_e):Le&6?P(E,$,x,j,U,q,le,ue,_e):(Le&64||Le&128)&&ge.process(E,$,x,j,U,q,le,ue,_e,V)}tt!=null&&U&&P6(tt,E&&E.ref,q,$||E,!$)},v=(E,$,x,j)=>{if(E==null)n($.el=s($.children),x,j);else{const U=$.el=E.el;$.children!==E.children&&c(U,$.children)}},A=(E,$,x,j)=>{E==null?n($.el=l($.children||""),x,j):$.el=E.el},I=(E,$,x,j)=>{[E.el,E.anchor]=f(E.children,$,x,j,E.el,E.anchor)},p=({el:E,anchor:$},x,j)=>{let U;for(;E&&E!==$;)U=h(E),n(E,x,j),E=U;n($,x,j)},m=({el:E,anchor:$})=>{let x;for(;E&&E!==$;)x=h(E),i(E),E=x;i($)},b=(E,$,x,j,U,q,le,ue,_e)=>{$.type==="svg"?le="svg":$.type==="math"&&(le="mathml"),E==null?_($,x,j,U,q,le,ue,_e):S(E,$,U,q,le,ue,_e)},_=(E,$,x,j,U,q,le,ue)=>{let _e,ge;const{props:tt,shapeFlag:Le,transition:We,dirs:at}=E;if(_e=E.el=a(E.type,q,tt&&tt.is,tt),Le&8?u(_e,E.children):Le&16&&M(E.children,_e,null,j,U,sp(E,q),le,ue),at&&nl(E,null,j,"created"),L(_e,E,E.scopeId,le,j),tt){for(const Yt in tt)Yt!=="value"&&!ph(Yt)&&o(_e,Yt,null,tt[Yt],q,j);"value"in tt&&o(_e,"value",null,tt.value,q),(ge=tt.onVnodeBeforeMount)&&Wo(ge,j,E)}at&&nl(E,null,j,"beforeMount");const yt=Yoe(U,We);yt&&We.beforeEnter(_e),n(_e,$,x),((ge=tt&&tt.onVnodeMounted)||yt||at)&&ni(()=>{ge&&Wo(ge,j,E),yt&&We.enter(_e),at&&nl(E,null,j,"mounted")},U)},L=(E,$,x,j,U)=>{if(x&&d(E,x),j)for(let q=0;q{for(let ge=_e;ge{const ue=$.el=E.el;let{patchFlag:_e,dynamicChildren:ge,dirs:tt}=$;_e|=E.patchFlag&16;const Le=E.props||kt,We=$.props||kt;let at;if(x&&il(x,!1),(at=We.onVnodeBeforeUpdate)&&Wo(at,x,$,E),tt&&nl($,E,x,"beforeUpdate"),x&&il(x,!0),(Le.innerHTML&&We.innerHTML==null||Le.textContent&&We.textContent==null)&&u(ue,""),ge?T(E.dynamicChildren,ge,ue,x,j,sp($,U),q):le||Me(E,$,ue,null,x,j,sp($,U),q,!1),_e>0){if(_e&16)k(ue,Le,We,x,U);else if(_e&2&&Le.class!==We.class&&o(ue,"class",null,We.class,U),_e&4&&o(ue,"style",Le.style,We.style,U),_e&8){const yt=$.dynamicProps;for(let Yt=0;Yt{at&&Wo(at,x,$,E),tt&&nl($,E,x,"updated")},j)},T=(E,$,x,j,U,q,le)=>{for(let ue=0;ue<$.length;ue++){const _e=E[ue],ge=$[ue],tt=_e.el&&(_e.type===Ee||!pl(_e,ge)||_e.shapeFlag&70)?g(_e.el):x;C(_e,ge,tt,null,j,U,q,le,!0)}},k=(E,$,x,j,U)=>{if($!==x){if($!==kt)for(const q in $)!ph(q)&&!(q in x)&&o(E,q,$[q],null,U,j);for(const q in x){if(ph(q))continue;const le=x[q],ue=$[q];le!==ue&&q!=="value"&&o(E,q,ue,le,U,j)}"value"in x&&o(E,"value",$.value,x.value,U)}},O=(E,$,x,j,U,q,le,ue,_e)=>{const ge=$.el=E?E.el:s(""),tt=$.anchor=E?E.anchor:s("");let{patchFlag:Le,dynamicChildren:We,slotScopeIds:at}=$;at&&(ue=ue?ue.concat(at):at),E==null?(n(ge,x,j),n(tt,x,j),M($.children||[],x,tt,U,q,le,ue,_e)):Le>0&&Le&64&&We&&E.dynamicChildren?(T(E.dynamicChildren,We,x,U,q,le,ue),($.key!=null||U&&$===U.subTree)&&pb(E,$,!0)):Me(E,$,x,tt,U,q,le,ue,_e)},P=(E,$,x,j,U,q,le,ue,_e)=>{$.slotScopeIds=ue,E==null?$.shapeFlag&512?U.ctx.activate($,x,j,le,_e):B($,x,j,U,q,le,_e):te(E,$,_e)},B=(E,$,x,j,U,q,le)=>{const ue=E.component=gae(E,j,U);if(cf(E)&&(ue.ctx.renderer=V),hae(ue,!1,le),ue.asyncDep){if(U&&U.registerDep(ue,ee,le),!E.el){const _e=ue.subTree=D(Gn);A(null,_e,$,x)}}else ee(ue,E,$,x,U,q,le)},te=(E,$,x)=>{const j=$.component=E.component;if(iae(E,$,x))if(j.asyncDep&&!j.asyncResolved){re(j,$,x);return}else j.next=$,j.update();else $.el=E.el,j.vnode=$},ee=(E,$,x,j,U,q,le)=>{const ue=()=>{if(E.isMounted){let{next:Le,bu:We,u:at,parent:yt,vnode:Yt}=E;{const zi=QB(E);if(zi){Le&&(Le.el=Yt.el,re(E,Le,le)),zi.asyncDep.then(()=>{E.isUnmounted||ue()});return}}let Dt=Le,Mi;il(E,!1),Le?(Le.el=Yt.el,re(E,Le,le)):Le=Yt,We&&w5(We),(Mi=Le.props&&Le.props.onVnodeBeforeUpdate)&&Wo(Mi,yt,Le,Yt),il(E,!0);const Sn=lp(E),Io=E.subTree;E.subTree=Sn,C(Io,Sn,g(Io.el),Z(Io),E,U,q),Le.el=Sn.el,Dt===null&&oae(E,Sn.el),at&&ni(at,U),(Mi=Le.props&&Le.props.onVnodeUpdated)&&ni(()=>Wo(Mi,yt,Le,Yt),U)}else{let Le;const{el:We,props:at}=$,{bm:yt,m:Yt,parent:Dt,root:Mi,type:Sn}=E,Io=F2($);if(il(E,!1),yt&&w5(yt),!Io&&(Le=at&&at.onVnodeBeforeMount)&&Wo(Le,Dt,$),il(E,!0),We&&K){const zi=()=>{E.subTree=lp(E),K(We,E.subTree,E,U,null)};Io&&Sn.__asyncHydrate?Sn.__asyncHydrate(We,E,zi):zi()}else{Mi.ce&&Mi.ce._injectChildStyle(Sn);const zi=E.subTree=lp(E);C(null,zi,x,j,E,U,q),$.el=zi.el}if(Yt&&ni(Yt,U),!Io&&(Le=at&&at.onVnodeMounted)){const zi=$;ni(()=>Wo(Le,Dt,zi),U)}($.shapeFlag&256||Dt&&F2(Dt.vnode)&&Dt.vnode.shapeFlag&256)&&E.a&&ni(E.a,U),E.isMounted=!0,$=x=j=null}};E.scope.on();const _e=E.effect=new eB(ue);E.scope.off();const ge=E.update=_e.run.bind(_e),tt=E.job=_e.runIfDirty.bind(_e);tt.i=E,tt.id=E.uid,_e.scheduler=()=>hb(tt),il(E,!0),ge()},re=(E,$,x)=>{$.component=E;const j=E.vnode.props;E.vnode=$,E.next=null,Foe(E,$.props,j,x),Woe(E,$.children,x),O1(),mM(E),x1()},Me=(E,$,x,j,U,q,le,ue,_e=!1)=>{const ge=E&&E.children,tt=E?E.shapeFlag:0,Le=$.children,{patchFlag:We,shapeFlag:at}=$;if(We>0){if(We&128){nt(ge,Le,x,j,U,q,le,ue,_e);return}else if(We&256){He(ge,Le,x,j,U,q,le,ue,_e);return}}at&8?(tt&16&&ft(ge,U,q),Le!==ge&&u(x,Le)):tt&16?at&16?nt(ge,Le,x,j,U,q,le,ue,_e):ft(ge,U,q,!0):(tt&8&&u(x,""),at&16&&M(Le,x,j,U,q,le,ue,_e))},He=(E,$,x,j,U,q,le,ue,_e)=>{E=E||R2,$=$||R2;const ge=E.length,tt=$.length,Le=Math.min(ge,tt);let We;for(We=0;Wett?ft(E,U,q,!0,!1,Le):M($,x,j,U,q,le,ue,_e,Le)},nt=(E,$,x,j,U,q,le,ue,_e)=>{let ge=0;const tt=$.length;let Le=E.length-1,We=tt-1;for(;ge<=Le&&ge<=We;){const at=E[ge],yt=$[ge]=_e?js($[ge]):ea($[ge]);if(pl(at,yt))C(at,yt,x,null,U,q,le,ue,_e);else break;ge++}for(;ge<=Le&&ge<=We;){const at=E[Le],yt=$[We]=_e?js($[We]):ea($[We]);if(pl(at,yt))C(at,yt,x,null,U,q,le,ue,_e);else break;Le--,We--}if(ge>Le){if(ge<=We){const at=We+1,yt=atWe)for(;ge<=Le;)be(E[ge],U,q,!0),ge++;else{const at=ge,yt=ge,Yt=new Map;for(ge=yt;ge<=We;ge++){const Ei=$[ge]=_e?js($[ge]):ea($[ge]);Ei.key!=null&&Yt.set(Ei.key,ge)}let Dt,Mi=0;const Sn=We-yt+1;let Io=!1,zi=0;const Ng=new Array(Sn);for(ge=0;ge=Sn){be(Ei,U,q,!0);continue}let Go;if(Ei.key!=null)Go=Yt.get(Ei.key);else for(Dt=yt;Dt<=We;Dt++)if(Ng[Dt-yt]===0&&pl(Ei,$[Dt])){Go=Dt;break}Go===void 0?be(Ei,U,q,!0):(Ng[Go-yt]=ge+1,Go>=zi?zi=Go:Io=!0,C(Ei,$[Go],x,null,U,q,le,ue,_e),Mi++)}const uM=Io?Xoe(Ng):R2;for(Dt=uM.length-1,ge=Sn-1;ge>=0;ge--){const Ei=yt+ge,Go=$[Ei],gM=Ei+1{const{el:q,type:le,transition:ue,children:_e,shapeFlag:ge}=E;if(ge&6){De(E.component.subTree,$,x,j);return}if(ge&128){E.suspense.move($,x,j);return}if(ge&64){le.move(E,$,x,V);return}if(le===Ee){n(q,$,x);for(let Le=0;Le<_e.length;Le++)De(_e[Le],$,x,j);n(E.anchor,$,x);return}if(le===_5){p(E,$,x);return}if(j!==2&&ge&1&&ue)if(j===0)ue.beforeEnter(q),n(q,$,x),ni(()=>ue.enter(q),U);else{const{leave:Le,delayLeave:We,afterLeave:at}=ue,yt=()=>n(q,$,x),Yt=()=>{Le(q,()=>{yt(),at&&at()})};We?We(q,yt,Yt):Yt()}else n(q,$,x)},be=(E,$,x,j=!1,U=!1)=>{const{type:q,props:le,ref:ue,children:_e,dynamicChildren:ge,shapeFlag:tt,patchFlag:Le,dirs:We,cacheIndex:at}=E;if(Le===-2&&(U=!1),ue!=null&&P6(ue,null,x,E,!0),at!=null&&($.renderCache[at]=void 0),tt&256){$.ctx.deactivate(E);return}const yt=tt&1&&We,Yt=!F2(E);let Dt;if(Yt&&(Dt=le&&le.onVnodeBeforeUnmount)&&Wo(Dt,$,E),tt&6)ot(E.component,x,j);else{if(tt&128){E.suspense.unmount(x,j);return}yt&&nl(E,null,$,"beforeUnmount"),tt&64?E.type.remove(E,$,x,V,j):ge&&!ge.hasOnce&&(q!==Ee||Le>0&&Le&64)?ft(ge,$,x,!1,!0):(q===Ee&&Le&384||!U&&tt&16)&&ft(_e,$,x),j&&Ne(E)}(Yt&&(Dt=le&&le.onVnodeUnmounted)||yt)&&ni(()=>{Dt&&Wo(Dt,$,E),yt&&nl(E,null,$,"unmounted")},x)},Ne=E=>{const{type:$,el:x,anchor:j,transition:U}=E;if($===Ee){Ue(x,j);return}if($===_5){m(E);return}const q=()=>{i(x),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(E.shapeFlag&1&&U&&!U.persisted){const{leave:le,delayLeave:ue}=U,_e=()=>le(x,q);ue?ue(E.el,q,_e):_e()}else q()},Ue=(E,$)=>{let x;for(;E!==$;)x=h(E),i(E),E=x;i($)},ot=(E,$,x)=>{const{bum:j,scope:U,job:q,subTree:le,um:ue,m:_e,a:ge}=E;TM(_e),TM(ge),j&&w5(j),U.stop(),q&&(q.flags|=8,be(le,E,$,x)),ue&&ni(ue,$),ni(()=>{E.isUnmounted=!0},$),$&&$.pendingBranch&&!$.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===$.pendingId&&($.deps--,$.deps===0&&$.resolve())},ft=(E,$,x,j=!1,U=!1,q=0)=>{for(let le=q;le{if(E.shapeFlag&6)return Z(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const $=h(E.anchor||E.el),x=$&&$[_B];return x?h(x):$};let ie=!1;const R=(E,$,x)=>{E==null?$._vnode&&be($._vnode,null,null,!0):C($._vnode||null,E,$,null,null,null,x),$._vnode=E,ie||(ie=!0,mM(),mB(),ie=!1)},V={p:C,um:be,m:De,r:Ne,mt:B,mc:M,pc:Me,pbc:T,n:Z,o:t};let N,K;return{render:R,hydrate:N,createApp:Noe(R,N)}}function sp({type:t,props:r},e){return e==="svg"&&t==="foreignObject"||e==="mathml"&&t==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:e}function il({effect:t,job:r},e){e?(t.flags|=32,r.flags|=4):(t.flags&=-33,r.flags&=-5)}function Yoe(t,r){return(!t||t&&!t.pendingBranch)&&r&&!r.persisted}function pb(t,r,e=!1){const n=t.children,i=r.children;if(Ge(n)&&Ge(i))for(let o=0;o>1,t[e[s]]0&&(r[n]=e[o-1]),e[o]=n)}}for(o=e.length,a=e[o-1];o-- >0;)e[o]=a,a=r[a];return e}function QB(t){const r=t.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:QB(r)}function TM(t){if(t)for(let r=0;rbr(qoe);function gn(t,r){return YA(t,null,r)}function Joe(t,r){return YA(t,null,{flush:"sync"})}function Je(t,r,e){return YA(t,r,e)}function YA(t,r,e=kt){const{immediate:n,deep:i,flush:o,once:a}=e,s=Vr({},e),l=r&&n||!r&&o!=="post";let c;if(ou){if(o==="sync"){const d=Qoe();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=ua,d.resume=ua,d.pause=ua,d}}const u=on;s.call=(d,f,C)=>Ho(d,u,f,C);let g=!1;o==="post"?s.scheduler=d=>{ni(d,u&&u.suspense)}:o!=="sync"&&(g=!0,s.scheduler=(d,f)=>{f?d():hb(d)}),s.augmentJob=d=>{r&&(d.flags|=4),g&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=loe(t,r,s);return ou&&(c?c.push(h):l&&h()),h}function eae(t,r,e){const n=this.proxy,i=fr(t)?t.includes(".")?JB(n,t):()=>n[t]:t.bind(n,n);let o;it(r)?o=r:(o=r.handler,e=r);const a=uf(this),s=YA(i,o.bind(n),e);return a(),s}function JB(t,r){const e=r.split(".");return()=>{let n=t;for(let i=0;i{let u,g=kt,h;return Joe(()=>{const d=t[i];ai(u,d)&&(u=d,c())}),{get(){return l(),e.get?e.get(u):u},set(d){const f=e.set?e.set(d):d;if(!ai(f,u)&&!(g!==kt&&ai(d,g)))return;const C=n.vnode.props;C&&(r in C||i in C||o in C)&&(`onUpdate:${r}`in C||`onUpdate:${i}`in C||`onUpdate:${o}`in C)||(u=d,c()),n.emit(`update:${r}`,f),ai(d,f)&&ai(d,g)&&!ai(f,h)&&c(),g=d,h=f}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||kt:s,done:!1}:{done:!0}}}},s}const eF=(t,r)=>r==="modelValue"||r==="model-value"?t.modelModifiers:t[`${r}Modifiers`]||t[`${Ni(r)}Modifiers`]||t[`${Cs(r)}Modifiers`];function tae(t,r,...e){if(t.isUnmounted)return;const n=t.vnode.props||kt;let i=e;const o=r.startsWith("update:"),a=o&&eF(n,r.slice(7));a&&(a.trim&&(i=e.map(u=>fr(u)?u.trim():u)),a.number&&(i=e.map(vv)));let s,l=n[s=b5(r)]||n[s=b5(Ni(r))];!l&&o&&(l=n[s=b5(Cs(r))]),l&&Ho(l,t,6,i);const c=n[s+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Ho(c,t,6,i)}}function tF(t,r,e=!1){const n=r.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let a={},s=!1;if(!it(t)){const l=c=>{const u=tF(c,r,!0);u&&(s=!0,Vr(a,u))};!e&&r.mixins.length&&r.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!s?(Wt(t)&&n.set(t,null),null):(Ge(o)?o.forEach(l=>a[l]=null):Vr(a,o),Wt(t)&&n.set(t,a),a)}function qA(t,r){return!t||!BA(r)?!1:(r=r.slice(2).replace(/Once$/,""),Ht(t,r[0].toLowerCase()+r.slice(1))||Ht(t,Cs(r))||Ht(t,r))}function lp(t){const{type:r,vnode:e,proxy:n,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:g,data:h,setupState:d,ctx:f,inheritAttrs:C}=t,v=mv(t);let A,I;try{if(e.shapeFlag&4){const m=i||n,b=m;A=ea(c.call(b,m,u,g,d,h,f)),I=s}else{const m=r;A=ea(m.length>1?m(g,{attrs:s,slots:a,emit:l}):m(g,null)),I=r.props?s:rae(s)}}catch(m){$h.length=0,lf(m,t,1),A=D(Gn)}let p=A;if(I&&C!==!1){const m=Object.keys(I),{shapeFlag:b}=p;m.length&&b&7&&(o&&m.some(Qy)&&(I=nae(I,o)),p=b1(p,I,!1,!0))}return e.dirs&&(p=b1(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(e.dirs):e.dirs),e.transition&&id(p,e.transition),A=p,mv(v),A}const rae=t=>{let r;for(const e in t)(e==="class"||e==="style"||BA(e))&&((r||(r={}))[e]=t[e]);return r},nae=(t,r)=>{const e={};for(const n in t)(!Qy(n)||!(n.slice(9)in r))&&(e[n]=t[n]);return e};function iae(t,r,e){const{props:n,children:i,component:o}=t,{props:a,children:s,patchFlag:l}=r,c=o.emitsOptions;if(r.dirs||r.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?LM(n,a,c):!!a;if(l&8){const u=r.dynamicProps;for(let g=0;gt.__isSuspense;function aae(t,r){r&&r.pendingBranch?Ge(t)?r.effects.push(...t):r.effects.push(t):goe(t)}const Ee=Symbol.for("v-fgt"),QA=Symbol.for("v-txt"),Gn=Symbol.for("v-cmt"),_5=Symbol.for("v-stc"),$h=[];let Vi=null;function z(t=!1){$h.push(Vi=t?null:[])}function sae(){$h.pop(),Vi=$h[$h.length-1]||null}let od=1;function kM(t){od+=t,t<0&&Vi&&(Vi.hasOnce=!0)}function nF(t){return t.dynamicChildren=od>0?Vi||R2:null,sae(),od>0&&Vi&&Vi.push(t),t}function H(t,r,e,n,i,o){return nF(w(t,r,e,n,i,o,!0))}function ne(t,r,e,n,i){return nF(D(t,r,e,n,i,!0))}function ad(t){return t?t.__v_isVNode===!0:!1}function pl(t,r){return t.type===r.type&&t.key===r.key}const iF=({key:t})=>t??null,M5=({ref:t,ref_key:r,ref_for:e})=>(typeof t=="number"&&(t=""+t),t!=null?fr(t)||qe(t)||it(t)?{i:cn,r:t,k:r,f:!!e}:t:null);function w(t,r=null,e=null,n=0,i=null,o=t===Ee?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&iF(r),ref:r&&M5(r),scopeId:ZA,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:cn};return s?(mb(l,e),o&128&&t.normalize(l)):e&&(l.shapeFlag|=fr(e)?8:16),od>0&&!a&&Vi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Vi.push(l),l}const D=lae;function lae(t,r=null,e=null,n=0,i=null,o=!1){if((!t||t===VB)&&(t=Gn),ad(t)){const s=b1(t,r,!0);return e&&mb(s,e),od>0&&!o&&Vi&&(s.shapeFlag&6?Vi[Vi.indexOf(t)]=s:Vi.push(s)),s.patchFlag=-2,s}if(vae(t)&&(t=t.__vccOpts),r){r=JA(r);let{class:s,style:l}=r;s&&!fr(s)&&(r.class=Te(s)),Wt(l)&&(ub(l)&&!Ge(l)&&(l=Vr({},l)),r.style=kr(l))}const a=fr(t)?1:rF(t)?128:MB(t)?64:Wt(t)?4:it(t)?2:0;return w(t,r,e,n,i,a,o,!0)}function JA(t){return t?ub(t)||GB(t)?Vr({},t):t:null}function b1(t,r,e=!1,n=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=t,c=r?Xr(i||{},r):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&iF(c),ref:r&&r.ref?e&&o?Ge(o)?o.concat(M5(r)):[o,M5(r)]:M5(r):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Ee?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&b1(t.ssContent),ssFallback:t.ssFallback&&b1(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&id(u,l.clone(u)),u}function Se(t=" ",r=0){return D(QA,null,t,r)}function oF(t,r){const e=D(_5,null,t);return e.staticCount=r,e}function oe(t="",r=!1){return r?(z(),ne(Gn,null,t)):D(Gn,null,t)}function ea(t){return t==null||typeof t=="boolean"?D(Gn):Ge(t)?D(Ee,null,t.slice()):ad(t)?js(t):D(QA,null,String(t))}function js(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:b1(t)}function mb(t,r){let e=0;const{shapeFlag:n}=t;if(r==null)r=null;else if(Ge(r))e=16;else if(typeof r=="object")if(n&65){const i=r.default;i&&(i._c&&(i._d=!1),mb(t,i()),i._c&&(i._d=!0));return}else{e=32;const i=r._;!i&&!GB(r)?r._ctx=cn:i===3&&cn&&(cn.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else it(r)?(r={default:r,_ctx:cn},e=32):(r=String(r),n&64?(e=16,r=[Se(r)]):e=8);t.children=r,t.shapeFlag|=e}function Xr(...t){const r={};for(let e=0;eon||cn;let wv,F6;{const t=UA(),r=(e,n)=>{let i;return(i=t[e])||(i=t[e]=[]),i.push(n),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};wv=r("__VUE_INSTANCE_SETTERS__",e=>on=e),F6=r("__VUE_SSR_SETTERS__",e=>ou=e)}const uf=t=>{const r=on;return wv(t),t.scope.on(),()=>{t.scope.off(),wv(r)}},OM=()=>{on&&on.scope.off(),wv(null)};function aF(t){return t.vnode.shapeFlag&4}let ou=!1;function hae(t,r=!1,e=!1){r&&F6(r);const{props:n,children:i}=t.vnode,o=aF(t);Boe(t,n,o,r),Goe(t,i,e);const a=o?dae(t,r):void 0;return r&&F6(!1),a}function dae(t,r){const e=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,koe);const{setup:n}=e;if(n){O1();const i=t.setupContext=n.length>1?lF(t):null,o=uf(t),a=sf(n,t,0,[t.props,i]),s=WN(a);if(x1(),o(),(s||t.sp)&&!F2(t)&&db(t),s){if(a.then(OM,OM),r)return a.then(l=>{xM(t,l,r)}).catch(l=>{lf(l,t,0)});t.asyncDep=a}else xM(t,a,r)}else sF(t,r)}function xM(t,r,e){it(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:Wt(r)&&(t.setupState=vB(r)),sF(t,e)}let HM;function sF(t,r,e){const n=t.type;if(!t.render){if(!r&&HM&&!n.render){const i=n.template||Ab(t).template;if(i){const{isCustomElement:o,compilerOptions:a}=t.appContext.config,{delimiters:s,compilerOptions:l}=n,c=Vr(Vr({isCustomElement:o,delimiters:s},a),l);n.render=HM(i,c)}}t.render=n.render||ua}{const i=uf(t);O1();try{xoe(t)}finally{x1(),i()}}}const fae={get(t,r){return Ln(t,"get",""),t[r]}};function lF(t){const r=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,fae),slots:t.slots,emit:t.emit,expose:r}}function eI(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(vB(fB(t.exposed)),{get(r,e){if(e in r)return r[e];if(e in wh)return wh[e](t)},has(r,e){return e in r||e in wh}})):t.proxy}function Cae(t,r=!0){return it(t)?t.displayName||t.name:t.name||r&&t.__name}function vae(t){return it(t)&&"__vccOpts"in t}const F=(t,r)=>aoe(t,r,ou);function fc(t,r,e){const n=arguments.length;return n===2?Wt(r)&&!Ge(r)?ad(r)?D(t,null,[r]):D(t,r):D(t,null,r):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&ad(e)&&(e=[e]),D(t,r,e))}const Aae="3.5.12";/** * @vue/runtime-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let j6;const VM=typeof window<"u"&&window.trustedTypes;if(VM)try{j6=VM.createPolicy("vue",{createHTML:t=>t})}catch{}const cF=j6?t=>j6.createHTML(t):t=>t,Iae="http://www.w3.org/2000/svg",pae="http://www.w3.org/1998/Math/MathML",Ra=typeof document<"u"?document:null,PM=Ra&&Ra.createElement("template"),mae={insert:(t,r,e)=>{r.insertBefore(t,e||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,e,n)=>{const i=r==="svg"?Ra.createElementNS(Iae,t):r==="mathml"?Ra.createElementNS(pae,t):e?Ra.createElement(t,{is:e}):Ra.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Ra.createTextNode(t),createComment:t=>Ra.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ra.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,e,n,i,o){const a=e?e.previousSibling:r.lastChild;if(i&&(i===o||i.nextSibling))for(;r.insertBefore(i.cloneNode(!0),e),!(i===o||!(i=i.nextSibling)););else{PM.innerHTML=cF(n==="svg"?`${t}`:n==="mathml"?`${t}`:t);const s=PM.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}r.insertBefore(s,e)}return[a?a.nextSibling:r.firstChild,e?e.previousSibling:r.lastChild]}},Es="transition",Fg="animation",sd=Symbol("_vtc"),uF={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},yae=Vr({},SB,uF),bae=t=>(t.displayName="Transition",t.props=yae,t),yb=bae((t,{slots:r})=>fc(Aoe,wae(t),r)),ol=(t,r=[])=>{Ge(t)?t.forEach(e=>e(...r)):t&&t(...r)},RM=t=>t?Ge(t)?t.some(r=>r.length>1):t.length>1:!1;function wae(t){const r={};for(const O in t)O in uF||(r[O]=t[O]);if(t.css===!1)return r;const{name:e="v",type:n,duration:i,enterFromClass:o=`${e}-enter-from`,enterActiveClass:a=`${e}-enter-active`,enterToClass:s=`${e}-enter-to`,appearFromClass:l=o,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:g=`${e}-leave-from`,leaveActiveClass:h=`${e}-leave-active`,leaveToClass:d=`${e}-leave-to`}=t,f=$ae(i),C=f&&f[0],v=f&&f[1],{onBeforeEnter:A,onEnter:I,onEnterCancelled:p,onLeave:m,onLeaveCancelled:b,onBeforeAppear:_=A,onAppear:L=I,onAppearCancelled:M=p}=r,S=(O,P,B)=>{al(O,P?u:s),al(O,P?c:a),B&&B()},T=(O,P)=>{O._isLeaving=!1,al(O,g),al(O,d),al(O,h),P&&P()},k=O=>(P,B)=>{const te=O?L:I,ee=()=>S(P,O,B);ol(te,[P,ee]),DM(()=>{al(P,O?l:o),Ss(P,O?u:s),RM(te)||NM(P,n,C,ee)})};return Vr(r,{onBeforeEnter(O){ol(A,[O]),Ss(O,o),Ss(O,a)},onBeforeAppear(O){ol(_,[O]),Ss(O,l),Ss(O,c)},onEnter:k(!1),onAppear:k(!0),onLeave(O,P){O._isLeaving=!0;const B=()=>T(O,P);Ss(O,g),Ss(O,h),zae(),DM(()=>{O._isLeaving&&(al(O,g),Ss(O,d),RM(m)||NM(O,n,v,B))}),ol(m,[O,B])},onEnterCancelled(O){S(O,!1),ol(p,[O])},onAppearCancelled(O){S(O,!0),ol(M,[O])},onLeaveCancelled(O){T(O),ol(b,[O])}})}function $ae(t){if(t==null)return null;if(Wt(t))return[cp(t.enter),cp(t.leave)];{const r=cp(t);return[r,r]}}function cp(t){return _ie(t)}function Ss(t,r){r.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[sd]||(t[sd]=new Set)).add(r)}function al(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const e=t[sd];e&&(e.delete(r),e.size||(t[sd]=void 0))}function DM(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let _ae=0;function NM(t,r,e,n){const i=t._endId=++_ae,o=()=>{i===t._endId&&n()};if(e!=null)return setTimeout(o,e);const{type:a,timeout:s,propCount:l}=Mae(t,r);if(!a)return n();const c=a+"end";let u=0;const g=()=>{t.removeEventListener(c,h),o()},h=d=>{d.target===t&&++u>=l&&g()};setTimeout(()=>{u(e[f]||"").split(", "),i=n(`${Es}Delay`),o=n(`${Es}Duration`),a=BM(i,o),s=n(`${Fg}Delay`),l=n(`${Fg}Duration`),c=BM(s,l);let u=null,g=0,h=0;r===Es?a>0&&(u=Es,g=a,h=o.length):r===Fg?c>0&&(u=Fg,g=c,h=l.length):(g=Math.max(a,c),u=g>0?a>c?Es:Fg:null,h=u?u===Es?o.length:l.length:0);const d=u===Es&&/\b(transform|all)(,|$)/.test(n(`${Es}Property`).toString());return{type:u,timeout:g,propCount:h,hasTransform:d}}function BM(t,r){for(;t.lengthFM(e)+FM(t[n])))}function FM(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function zae(){return document.body.offsetHeight}function Eae(t,r,e){const n=t[sd];n&&(r=(r?[r,...n]:[...n]).join(" ")),r==null?t.removeAttribute("class"):e?t.setAttribute("class",r):t.className=r}const $v=Symbol("_vod"),gF=Symbol("_vsh"),Sae={beforeMount(t,{value:r},{transition:e}){t[$v]=t.style.display==="none"?"":t.style.display,e&&r?e.beforeEnter(t):jg(t,r)},mounted(t,{value:r},{transition:e}){e&&r&&e.enter(t)},updated(t,{value:r,oldValue:e},{transition:n}){!r!=!e&&(n?r?(n.beforeEnter(t),jg(t,!0),n.enter(t)):n.leave(t,()=>{jg(t,!1)}):jg(t,r))},beforeUnmount(t,{value:r}){jg(t,r)}};function jg(t,r){t.style.display=r?t[$v]:"none",t[gF]=!r}const Tae=Symbol(""),Lae=/(^|;)\s*display\s*:/;function kae(t,r,e){const n=t.style,i=fr(e);let o=!1;if(e&&!i){if(r)if(fr(r))for(const a of r.split(";")){const s=a.slice(0,a.indexOf(":")).trim();e[s]==null&&z5(n,s,"")}else for(const a in r)e[a]==null&&z5(n,a,"");for(const a in e)a==="display"&&(o=!0),z5(n,a,e[a])}else if(i){if(r!==e){const a=n[Tae];a&&(e+=";"+a),n.cssText=e,o=Lae.test(e)}}else r&&t.removeAttribute("style");$v in t&&(t[$v]=o?n.display:"",t[gF]&&(n.display="none"))}const jM=/\s*!important$/;function z5(t,r,e){if(Ge(e))e.forEach(n=>z5(t,r,n));else if(e==null&&(e=""),r.startsWith("--"))t.setProperty(r,e);else{const n=Oae(t,r);jM.test(e)?t.setProperty(Cs(n),e.replace(jM,""),"important"):t[n]=e}}const UM=["Webkit","Moz","ms"],up={};function Oae(t,r){const e=up[r];if(e)return e;let n=Ni(r);if(n!=="filter"&&n in t)return up[r]=n;n=jA(n);for(let i=0;igp||(Pae.then(()=>gp=0),gp=Date.now());function Dae(t,r){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;Ho(Nae(n,e.value),r,5,[n])};return e.value=t,e.attached=Rae(),e}function Nae(t,r){if(Ge(r)){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{e.call(t),t._stopped=!0},r.map(n=>i=>!i._stopped&&n&&n(i))}else return r}const XM=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Bae=(t,r,e,n,i,o)=>{const a=i==="svg";r==="class"?Eae(t,n,a):r==="style"?kae(t,e,n):BA(r)?Qy(r)||Hae(t,r,e,n,o):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):Fae(t,r,n,a))?(ZM(t,r,n),!t.tagName.includes("-")&&(r==="value"||r==="checked"||r==="selected")&&WM(t,r,n,a,o,r!=="value")):t._isVueCE&&(/[A-Z]/.test(r)||!fr(n))?ZM(t,Ni(r),n,o,r):(r==="true-value"?t._trueValue=n:r==="false-value"&&(t._falseValue=n),WM(t,r,n,a))};function Fae(t,r,e,n){if(n)return!!(r==="innerHTML"||r==="textContent"||r in t&&XM(r)&&it(e));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return XM(r)&&fr(e)?!1:r in t}const w1=t=>{const r=t.props["onUpdate:modelValue"]||!1;return Ge(r)?e=>w5(r,e):r};function jae(t){t.target.composing=!0}function qM(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const oo=Symbol("_assign"),QM={created(t,{modifiers:{lazy:r,trim:e,number:n}},i){t[oo]=w1(i);const o=n||i.props&&i.props.type==="number";Ba(t,r?"change":"input",a=>{if(a.target.composing)return;let s=t.value;e&&(s=s.trim()),o&&(s=vv(s)),t[oo](s)}),e&&Ba(t,"change",()=>{t.value=t.value.trim()}),r||(Ba(t,"compositionstart",jae),Ba(t,"compositionend",qM),Ba(t,"change",qM))},mounted(t,{value:r}){t.value=r??""},beforeUpdate(t,{value:r,oldValue:e,modifiers:{lazy:n,trim:i,number:o}},a){if(t[oo]=w1(a),t.composing)return;const s=(o||t.type==="number")&&!/^0\d/.test(t.value)?vv(t.value):t.value,l=r??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&r===e||i&&t.value.trim()===l)||(t.value=l))}},Uae={deep:!0,created(t,r,e){t[oo]=w1(e),Ba(t,"change",()=>{const n=t._modelValue,i=au(t),o=t.checked,a=t[oo];if(Ge(n)){const s=rb(n,i),l=s!==-1;if(o&&!l)a(n.concat(i));else if(!o&&l){const c=[...n];c.splice(s,1),a(c)}}else if(Uu(n)){const s=new Set(n);o?s.add(i):s.delete(i),a(s)}else a(hF(t,o))})},mounted:JM,beforeUpdate(t,r,e){t[oo]=w1(e),JM(t,r,e)}};function JM(t,{value:r,oldValue:e},n){t._modelValue=r;let i;if(Ge(r))i=rb(r,n.props.value)>-1;else if(Uu(r))i=r.has(n.props.value);else{if(r===e)return;i=Yl(r,hF(t,!0))}t.checked!==i&&(t.checked=i)}const Gae={created(t,{value:r},e){t.checked=Yl(r,e.props.value),t[oo]=w1(e),Ba(t,"change",()=>{t[oo](au(t))})},beforeUpdate(t,{value:r,oldValue:e},n){t[oo]=w1(n),r!==e&&(t.checked=Yl(r,n.props.value))}},Wae={deep:!0,created(t,{value:r,modifiers:{number:e}},n){const i=Uu(r);Ba(t,"change",()=>{const o=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>e?vv(au(a)):au(a));t[oo](t.multiple?i?new Set(o):o:o[0]),t._assigning=!0,dn(()=>{t._assigning=!1})}),t[oo]=w1(n)},mounted(t,{value:r}){ez(t,r)},beforeUpdate(t,r,e){t[oo]=w1(e)},updated(t,{value:r}){t._assigning||ez(t,r)}};function ez(t,r){const e=t.multiple,n=Ge(r);if(!(e&&!n&&!Uu(r))){for(let i=0,o=t.options.length;iString(c)===String(s)):a.selected=rb(r,s)>-1}else a.selected=r.has(s);else if(Yl(au(a),r)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!e&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function au(t){return"_value"in t?t._value:t.value}function hF(t,r){const e=r?"_trueValue":"_falseValue";return e in t?t[e]:r}const Zae={created(t,r,e){Y0(t,r,e,null,"created")},mounted(t,r,e){Y0(t,r,e,null,"mounted")},beforeUpdate(t,r,e,n){Y0(t,r,e,n,"beforeUpdate")},updated(t,r,e,n){Y0(t,r,e,n,"updated")}};function Kae(t,r){switch(t){case"SELECT":return Wae;case"TEXTAREA":return QM;default:switch(r){case"checkbox":return Uae;case"radio":return Gae;default:return QM}}}function Y0(t,r,e,n,i){const a=Kae(t.tagName,e.props&&e.props.type)[i];a&&a(t,r,e,n)}const Yae=["ctrl","shift","alt","meta"],Xae={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>Yae.some(e=>t[`${e}Key`]&&!r.includes(e))},Wn=(t,r)=>{const e=t._withMods||(t._withMods={}),n=r.join(".");return e[n]||(e[n]=(i,...o)=>{for(let a=0;a{const e=t._withKeys||(t._withKeys={}),n=r.join(".");return e[n]||(e[n]=i=>{if(!("key"in i))return;const o=Cs(i.key);if(r.some(a=>a===o||qae[a]===o))return t(i)})},Qae=Vr({patchProp:Bae},mae);let tz;function fF(){return tz||(tz=Zoe(Qae))}const rz=(...t)=>{fF().render(...t)},CF=(...t)=>{const r=fF().createApp(...t),{mount:e}=r;return r.mount=n=>{const i=ese(n);if(!i)return;const o=r._component;!it(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=e(i,!1,Jae(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},r};function Jae(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function ese(t){return fr(t)?document.querySelector(t):t}var tse=Object.create,vF=Object.defineProperty,rse=Object.getOwnPropertyDescriptor,bb=Object.getOwnPropertyNames,nse=Object.getPrototypeOf,ise=Object.prototype.hasOwnProperty,ose=(t,r)=>function(){return t&&(r=(0,t[bb(t)[0]])(t=0)),r},AF=(t,r)=>function(){return r||(0,t[bb(t)[0]])((r={exports:{}}).exports,r),r.exports},ase=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of bb(r))!ise.call(t,i)&&i!==e&&vF(t,i,{get:()=>r[i],enumerable:!(n=rse(r,i))||n.enumerable});return t},sse=(t,r,e)=>(e=t!=null?tse(nse(t)):{},ase(vF(e,"default",{value:t,enumerable:!0}),t)),ae=ose({"../../node_modules/.pnpm/tsup@8.3.0_@microsoft+api-extractor@7.43.0_@types+node@20.16.14__@swc+core@1.5.29_jiti@2.0.0__utvtwgyeu6xd57udthcnogp47u/node_modules/tsup/assets/esm_shims.js"(){}}),lse=AF({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(t,r){ae(),function(e){var n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},i=["်","ް"],o={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},a={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},s={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),u=[".","!","~","*","'","(",")"].join(""),g=function(v,A){var I="-",p="",m="",b=!0,_={},L,M,S,T,k,O,P,B,te,ee,re,Me,He,nt,De="";if(typeof v!="string")return"";if(typeof A=="string"&&(I=A),P=s.en,B=a.en,typeof A=="object"){L=A.maintainCase||!1,_=A.custom&&typeof A.custom=="object"?A.custom:_,S=+A.truncate>1&&A.truncate||!1,T=A.uric||!1,k=A.uricNoSlash||!1,O=A.mark||!1,b=!(A.symbols===!1||A.lang===!1),I=A.separator||I,T&&(De+=l),k&&(De+=c),O&&(De+=u),P=A.lang&&s[A.lang]&&b?s[A.lang]:b?s.en:{},B=A.lang&&a[A.lang]?a[A.lang]:A.lang===!1||A.lang===!0?{}:a.en,A.titleCase&&typeof A.titleCase.length=="number"&&Array.prototype.toString.call(A.titleCase)?(A.titleCase.forEach(function(be){_[be+""]=be+""}),M=!0):M=!!A.titleCase,A.custom&&typeof A.custom.length=="number"&&Array.prototype.toString.call(A.custom)&&A.custom.forEach(function(be){_[be+""]=be+""}),Object.keys(_).forEach(function(be){var Ne;be.length>1?Ne=new RegExp("\\b"+d(be)+"\\b","gi"):Ne=new RegExp(d(be),"gi"),v=v.replace(Ne,_[be])});for(re in _)De+=re}for(De+=I,De=d(De),v=v.replace(/(^\s+|\s+$)/g,""),He=!1,nt=!1,ee=0,Me=v.length;ee=0?(m+=re,re=""):nt===!0?(re=o[m]+n[re],m=""):re=He&&n[re].match(/[A-Za-z0-9]/)?" "+n[re]:n[re],He=!1,nt=!1):re in o?(m+=re,re="",ee===Me-1&&(re=o[m]),nt=!0):P[re]&&!(T&&l.indexOf(re)!==-1)&&!(k&&c.indexOf(re)!==-1)?(re=He||p.substr(-1).match(/[A-Za-z0-9]/)?I+P[re]:P[re],re+=v[ee+1]!==void 0&&v[ee+1].match(/[A-Za-z0-9]/)?I:"",He=!0):(nt===!0?(re=o[m]+re,m="",nt=!1):He&&(/[A-Za-z0-9]/.test(re)||p.substr(-1).match(/A-Za-z0-9]/))&&(re=" "+re),He=!1),p+=re.replace(new RegExp("[^\\w\\s"+De+"_-]","g"),I);return M&&(p=p.replace(/(\w)(\S*)/g,function(be,Ne,Ue){var ot=Ne.toUpperCase()+(Ue!==null?Ue:"");return Object.keys(_).indexOf(ot.toLowerCase())<0?ot:ot.toLowerCase()})),p=p.replace(/\s+/g,I).replace(new RegExp("\\"+I+"+","g"),I).replace(new RegExp("(^\\"+I+"+|\\"+I+"+$)","g"),""),S&&p.length>S&&(te=p.charAt(S)===I,p=p.slice(0,S),te||(p=p.slice(0,p.lastIndexOf(I)))),!L&&!M&&(p=p.toLowerCase()),p},h=function(v){return function(I){return g(I,v)}},d=function(v){return v.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},f=function(C,v){for(var A in v)if(v[A]===C)return!0};if(typeof r<"u"&&r.exports)r.exports=g,r.exports.createSlug=h;else if(typeof define<"u"&&define.amd)define([],function(){return g});else try{if(e.getSlug||e.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";e.getSlug=g,e.createSlug=h}catch{}}(t)}}),cse=AF({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(t,r){ae(),r.exports=lse()}});ae();ae();ae();function use(t){if(se.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__){t();return}Object.defineProperty(se,"__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__",{set(r){r&&t()},configurable:!0})}ae();ae();ae();ae();function gse(t){return!!(t&&t.__v_isReadonly)}function IF(t){return gse(t)?IF(t.__v_raw):!!(t&&t.__v_isReactive)}function hp(t){return!!(t&&t.__v_isRef===!0)}function uh(t){const r=t&&t.__v_raw;return r?uh(r):t}var hse=Symbol.for("v-fgt");ae();function dse(t){var r;const e=t.name||t._componentTag||t.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||t.__name;return e==="index"&&((r=t.__file)!=null&&r.endsWith("index.vue"))?"":e}function pF(t){const r=t.__file;if(r)return BN(tie(r,".vue"))}function fse(t){const r=t.displayName||t.name||t._componentTag;return r||pF(t)}function nz(t,r){return t.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=r,r}function ga(t){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(t.root)return t.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}async function E5(t){const{app:r,uid:e,instance:n}=t;try{if(n.__VUE_DEVTOOLS_NEXT_UID__)return n.__VUE_DEVTOOLS_NEXT_UID__;const i=await ga(r);if(!i)return null;const o=i.rootInstance===n;return`${i.id}:${o?"root":e}`}catch{}}function wb(t){var r;return((r=t.subTree)==null?void 0:r.type)===hse}function dp(t){return t._isBeingDestroyed||t.isUnmounted}function jo(t){var r,e,n;const i=dse(t?.type||{});if(i)return i;if(t?.root===t)return"Root";for(const a in(e=(r=t.parent)==null?void 0:r.type)==null?void 0:e.components)if(t.parent.type.components[a]===t?.type)return nz(t,a);for(const a in(n=t.appContext)==null?void 0:n.components)if(t.appContext.components[a]===t?.type)return nz(t,a);const o=pF(t?.type||{});return o||"Anonymous Component"}function mF(t){var r,e,n;const i=(n=(e=(r=t?.appContext)==null?void 0:r.app)==null?void 0:e.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?n:0,o=t===t?.root?"root":t.uid;return`${i}:${o}`}function Cse(t){return t==null?"":typeof t=="number"?t:typeof t=="string"?`'${t}'`:Array.isArray(t)?"Array":"Object"}function V1(t){try{return t()}catch(r){return r}}function su(t,r){return r=r||`${t.id}:root`,t.instanceMap.get(r)||t.instanceMap.get(":root")}function ro(t,r,e=!1){return e||typeof t=="object"&&t!==null?r in t:!1}var yF=class{constructor(){this.refEditor=new vse}set(t,r,e,n){const i=Array.isArray(r)?r:r.split(".");for(;i.length>1;){const s=i.shift();t instanceof Map&&(t=t.get(s)),t instanceof Set?t=Array.from(t.values())[s]:t=t[s],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}const o=i[0],a=this.refEditor.get(t)[o];n?n(t,o,e):this.refEditor.isRef(a)?this.refEditor.set(a,e):t[o]=e}get(t,r){const e=Array.isArray(r)?r:r.split(".");for(let n=0;n"u")return!1;const n=Array.isArray(r)?r.slice():r.split("."),i=e?2:1;for(;t&&n.length>i;){const o=n.shift();t=t[o],this.refEditor.isRef(t)&&(t=this.refEditor.get(t))}return t!=null&&Object.prototype.hasOwnProperty.call(t,n[0])}createDefaultSetCallback(t){return(r,e,n)=>{if((t.remove||t.newKey)&&(Array.isArray(r)?r.splice(e,1):uh(r)instanceof Map?r.delete(e):uh(r)instanceof Set?r.delete(Array.from(r.values())[e]):Reflect.deleteProperty(r,e)),!t.remove){const i=r[t.newKey||e];this.refEditor.isRef(i)?this.refEditor.set(i,n):uh(r)instanceof Map?r.set(t.newKey||e,n):uh(r)instanceof Set?r.add(n):r[t.newKey||e]=n}}}},vse=class{set(t,r){if(hp(t))t.value=r;else{if(t instanceof Set&&Array.isArray(r)){t.clear(),r.forEach(i=>t.add(i));return}const e=Object.keys(r);if(t instanceof Map){const i=new Set(t.keys());e.forEach(o=>{t.set(o,Reflect.get(r,o)),i.delete(o)}),i.forEach(o=>t.delete(o));return}const n=new Set(Object.keys(t));e.forEach(i=>{Reflect.set(t,i,Reflect.get(r,i)),n.delete(i)}),n.forEach(i=>Reflect.deleteProperty(t,i))}}get(t){return hp(t)?t.value:t}isRef(t){return hp(t)||IF(t)}};async function Ase(t,r){const{path:e,nodeId:n,state:i,type:o}=t,a=su(Vt.value,n);if(!a)return;const s=e.slice();let l;a.devtoolsRawSetupState&&Object.keys(a.devtoolsRawSetupState).includes(e[0])&&(l=a.devtoolsRawSetupState),a.data&&Object.keys(a.data).includes(e[0])&&(l=a.data),l&&s&&(i.type,r.set(l,s,i.value,r.createDefaultSetCallback(i)))}var Ise=new yF;async function pse(t){Ase(t,Ise)}ae();function ld(t){return wb(t)?mse(t.subTree):t.subTree?[t.subTree.el]:[]}function mse(t){if(!t.children)return[];const r=[];return t.children.forEach(e=>{e.component?r.push(...ld(e.component)):e?.el&&r.push(e.el)}),r}ae();ae();function yse(){const t={top:0,bottom:0,left:0,right:0,get width(){return t.right-t.left},get height(){return t.bottom-t.top}};return t}var X0;function bse(t){return X0||(X0=document.createRange()),X0.selectNode(t),X0.getBoundingClientRect()}function wse(t){const r=yse();if(!t.children)return r;for(let e=0,n=t.children.length;et.bottom)&&(t.bottom=r.bottom),(!t.left||r.leftt.right)&&(t.right=r.right),t}var iz={top:0,left:0,right:0,bottom:0,width:0,height:0};function ql(t){const r=t.subTree.el;return typeof window>"u"?iz:wb(t)?wse(t.subTree):r?.nodeType===1?r?.getBoundingClientRect():t.subTree.component?ql(t.subTree.component):iz}var bF="__vue-devtools-component-inspector__",wF="__vue-devtools-component-inspector__card__",$F="__vue-devtools-component-inspector__name__",_F="__vue-devtools-component-inspector__indicator__",MF={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},_se={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Mse={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Gu(){return document.getElementById(bF)}function zse(){return document.getElementById(wF)}function Ese(){return document.getElementById(_F)}function Sse(){return document.getElementById($F)}function $b(t){return{left:`${Math.round(t.left*100)/100}px`,top:`${Math.round(t.top*100)/100}px`,width:`${Math.round(t.width*100)/100}px`,height:`${Math.round(t.height*100)/100}px`}}function _b(t){var r;const e=document.createElement("div");e.id=(r=t.elementId)!=null?r:bF,Object.assign(e.style,{...MF,...$b(t.bounds),...t.style});const n=document.createElement("span");n.id=wF,Object.assign(n.style,{..._se,top:t.bounds.top<35?0:"-35px"});const i=document.createElement("span");i.id=$F,i.innerHTML=`<${t.name}>  `;const o=document.createElement("i");return o.id=_F,o.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`,Object.assign(o.style,Mse),n.appendChild(i),n.appendChild(o),e.appendChild(n),document.body.appendChild(e),e}function Mb(t){const r=Gu(),e=zse(),n=Sse(),i=Ese();r&&(Object.assign(r.style,{...MF,...$b(t.bounds)}),Object.assign(e.style,{top:t.bounds.top<35?0:"-35px"}),n.innerHTML=`<${t.name}>  `,i.innerHTML=`${Math.round(t.bounds.width*100)/100} x ${Math.round(t.bounds.height*100)/100}`)}function Tse(t){const r=ql(t),e=jo(t);Gu()?Mb({bounds:r,name:e}):_b({bounds:r,name:e})}function zF(){const t=Gu();t&&(t.style.display="none")}var U6=null;function G6(t){const r=t.target;if(r){const e=r.__vueParentComponent;if(e&&(U6=e,e.vnode.el)){const i=ql(e),o=jo(e);Gu()?Mb({bounds:i,name:o}):_b({bounds:i,name:o})}}}function Lse(t,r){var e;if(t.preventDefault(),t.stopPropagation(),U6){const n=(e=Vt.value)==null?void 0:e.app;E5({app:n,uid:n.uid,instance:U6}).then(i=>{r(i)})}}var _v=null;function kse(){zF(),window.removeEventListener("mouseover",G6),window.removeEventListener("click",_v,!0),_v=null}function Ose(){return window.addEventListener("mouseover",G6),new Promise(t=>{function r(e){e.preventDefault(),e.stopPropagation(),Lse(e,n=>{window.removeEventListener("click",r,!0),_v=null,window.removeEventListener("mouseover",G6);const i=Gu();i&&(i.style.display="none"),t(JSON.stringify({id:n}))})}_v=r,window.addEventListener("click",r,!0)})}function xse(t){const r=su(Vt.value,t.id);if(r){const[e]=ld(r);if(typeof e.scrollIntoView=="function")e.scrollIntoView({behavior:"smooth"});else{const n=ql(r),i=document.createElement("div"),o={...$b(n),position:"absolute"};Object.assign(i.style,o),document.body.appendChild(i),i.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(i)},2e3)}setTimeout(()=>{const n=ql(r);if(n.width||n.height){const i=jo(r),o=Gu();o?Mb({...t,name:i,bounds:n}):_b({...t,name:i,bounds:n}),setTimeout(()=>{o&&(o.style.display="none")},1500)}},1200)}}ae();var oz,az;(az=(oz=se).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(oz.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Hse(t){let r=0;const e=setInterval(()=>{se.__VUE_INSPECTOR__&&(clearInterval(e),r+=30,t()),r>=5e3&&clearInterval(e)},30)}function Vse(){const t=se.__VUE_INSPECTOR__,r=t.openInEditor;t.openInEditor=async(...e)=>{t.disable(),r(...e)}}function Pse(){return new Promise(t=>{function r(){Vse(),t(se.__VUE_INSPECTOR__)}se.__VUE_INSPECTOR__?r():Hse(()=>{r()})})}ae();ae();ae();var EF="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Rse(t){!ju||typeof localStorage>"u"||localStorage.setItem(EF,JSON.stringify(t))}function Dse(){if(!ju||typeof localStorage>"u")return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const t=localStorage.getItem(EF);return t?JSON.parse(t):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}ae();ae();ae();var sz,lz;(lz=(sz=se).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(sz.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var SF=new Proxy(se.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(t,r,e){return Reflect.get(t,r,e)}});function Nse(t,r){SF.push({...t,descriptorId:r.id,appRecord:ga(r.app)})}function Bse(t){const r={...jt.timelineLayersState,...t};Rse(r),_h({timelineLayersState:r})}var cz,uz;(uz=(cz=se).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(cz.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var zb=new Proxy(se.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(t,r,e){return Reflect.get(t,r,e)}}),TF=Kl(()=>{ba.hooks.callHook("sendInspectorToClient",Eb())});function Fse(t,r){zb.push({options:t,descriptor:r,treeFilter:"",selectedNodeId:"",appRecord:ga(r.app)}),TF()}function Eb(){return zb.filter(t=>t.descriptor.app===Vt.value.app).filter(t=>t.descriptor.id!=="components").map(t=>{var r;const e=t.descriptor,n=t.options;return{id:n.id,label:n.label,logo:e.logo,icon:`custom-ic-baseline-${(r=n?.icon)==null?void 0:r.replace(/_/g,"-")}`,packageName:e.packageName,homepage:e.homepage,pluginId:e.id}})}function jse(t){const r=i1(t,Vt.value.app);if(!r)return;const e=r.descriptor,n=r.options,i=SF.filter(o=>o.descriptorId===e.id).map(o=>({id:o.id,label:o.label,color:o.color}));return{id:n.id,label:n.label,logo:e.logo,packageName:e.packageName,homepage:e.homepage,timelineLayers:i}}function i1(t,r){return zb.find(e=>e.options.id===t&&(r?e.descriptor.app===r:!0))}function gz(t){const r=i1(t);return r?.options.actions}function hz(t){const r=i1(t);return r?.options.nodeActions}var LF=(t=>(t.ADD_INSPECTOR="addInspector",t.SEND_INSPECTOR_TREE="sendInspectorTree",t.SEND_INSPECTOR_STATE="sendInspectorState",t.CUSTOM_INSPECTOR_SELECT_NODE="customInspectorSelectNode",t.TIMELINE_LAYER_ADDED="timelineLayerAdded",t.TIMELINE_EVENT_ADDED="timelineEventAdded",t.GET_COMPONENT_INSTANCES="getComponentInstances",t.GET_COMPONENT_BOUNDS="getComponentBounds",t.GET_COMPONENT_NAME="getComponentName",t.COMPONENT_HIGHLIGHT="componentHighlight",t.COMPONENT_UNHIGHLIGHT="componentUnhighlight",t))(LF||{}),xs=(t=>(t.SEND_INSPECTOR_TREE_TO_CLIENT="sendInspectorTreeToClient",t.SEND_INSPECTOR_STATE_TO_CLIENT="sendInspectorStateToClient",t.SEND_TIMELINE_EVENT_TO_CLIENT="sendTimelineEventToClient",t.SEND_INSPECTOR_TO_CLIENT="sendInspectorToClient",t.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT="sendActiveAppUpdatedToClient",t.DEVTOOLS_STATE_UPDATED="devtoolsStateUpdated",t.DEVTOOLS_CONNECTED_UPDATED="devtoolsConnectedUpdated",t.ROUTER_INFO_UPDATED="routerInfoUpdated",t))(xs||{});function Use(){const t=UN();return t.hook("addInspector",({inspector:r,plugin:e})=>{Fse(r,e.descriptor)}),t.hook("sendInspectorTree",async({inspectorId:r,plugin:e})=>{var n;if(!r||!((n=e?.descriptor)!=null&&n.app))return;const i=i1(r,e.descriptor.app),o={app:e.descriptor.app,inspectorId:r,filter:i?.treeFilter||"",rootNodes:[]};await new Promise(a=>{t.callHookWith(async s=>{await Promise.all(s.map(l=>l(o))),a()},"getInspectorTree")}),t.callHookWith(async a=>{await Promise.all(a.map(s=>s({inspectorId:r,rootNodes:o.rootNodes})))},"sendInspectorTreeToClient")}),t.hook("sendInspectorState",async({inspectorId:r,plugin:e})=>{var n;if(!r||!((n=e?.descriptor)!=null&&n.app))return;const i=i1(r,e.descriptor.app),o={app:e.descriptor.app,inspectorId:r,nodeId:i?.selectedNodeId||"",state:null},a={currentTab:`custom-inspector:${r}`};o.nodeId&&await new Promise(s=>{t.callHookWith(async l=>{await Promise.all(l.map(c=>c(o,a))),s()},"getInspectorState")}),t.callHookWith(async s=>{await Promise.all(s.map(l=>l({inspectorId:r,nodeId:o.nodeId,state:o.state})))},"sendInspectorStateToClient")}),t.hook("customInspectorSelectNode",({inspectorId:r,nodeId:e,plugin:n})=>{const i=i1(r,n.descriptor.app);i&&(i.selectedNodeId=e)}),t.hook("timelineLayerAdded",({options:r,plugin:e})=>{Nse(r,e.descriptor)}),t.hook("timelineEventAdded",({options:r,plugin:e})=>{t.callHookWith(async n=>{await Promise.all(n.map(i=>i(r)))},"sendTimelineEventToClient")}),t.hook("getComponentInstances",async({app:r})=>{const e=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!e)return null;const n=e.id.toString();return[...e.instanceMap].filter(([o])=>o.split(":")[0]===n).map(([,o])=>o)}),t.hook("getComponentBounds",async({instance:r})=>ql(r)),t.hook("getComponentName",({instance:r})=>jo(r)),t.hook("componentHighlight",({uid:r})=>{const e=Vt.value.instanceMap.get(r);e&&Tse(e)}),t.hook("componentUnhighlight",()=>{zF()}),t}var dz,fz;(fz=(dz=se).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(dz.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var Cz,vz;(vz=(Cz=se).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(Cz.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var Az,Iz;(Iz=(Az=se).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(Az.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var pz,mz;(mz=(pz=se).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(pz.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var yz,bz;(bz=(yz=se).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(yz.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var na="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Gse(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Dse()}}var wz,$z;($z=(wz=se)[na])!=null||(wz[na]=Gse());var Wse=Kl(t=>{ba.hooks.callHook("devtoolsStateUpdated",{state:t})}),Zse=Kl((t,r)=>{ba.hooks.callHook("devtoolsConnectedUpdated",{state:t,oldState:r})}),$1=new Proxy(se.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(t,r,e){return r==="value"?se.__VUE_DEVTOOLS_KIT_APP_RECORDS__:se.__VUE_DEVTOOLS_KIT_APP_RECORDS__[r]}}),Kse=t=>{se.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[...se.__VUE_DEVTOOLS_KIT_APP_RECORDS__,t]},Yse=t=>{se.__VUE_DEVTOOLS_KIT_APP_RECORDS__=$1.value.filter(r=>r.app!==t)},Vt=new Proxy(se.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(t,r,e){return r==="value"?se.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:r==="id"?se.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:se.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[r]}});function Sb(){Wse({...se[na],appRecords:$1.value,activeAppRecordId:Vt.id,tabs:se.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:se.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function W6(t){se.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=t,Sb()}function kF(t){se.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=t,Sb()}var jt=new Proxy(se[na],{get(t,r){return r==="appRecords"?$1:r==="activeAppRecordId"?Vt.id:r==="tabs"?se.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:r==="commands"?se.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:se[na][r]},deleteProperty(t,r){return delete t[r],!0},set(t,r,e){return{...se[na]},t[r]=e,se[na][r]=e,!0}});function _h(t){const r={...se[na],appRecords:$1.value,activeAppRecordId:Vt.id};(r.connected!==t.connected&&t.connected||r.clientConnected!==t.clientConnected&&t.clientConnected)&&Zse(se[na],r),Object.assign(se[na],t),Sb()}function Xse(t){_h({clientConnected:t})}function qse(t={}){var r,e,n;const{file:i,host:o,baseUrl:a=window.location.origin,line:s=0,column:l=0}=t;if(i){if(o==="chrome-extension"){const c=i.replace(/\\/g,"\\\\"),u=(e=(r=window.VUE_DEVTOOLS_CONFIG)==null?void 0:r.openInEditorHost)!=null?e:"/";fetch(`${u}__open-in-editor?file=${encodeURI(i)}`).then(g=>{if(!g.ok){const h=`Opening component ${c} failed`;console.log(`%c${h}`,"color:red")}})}else if(jt.vitePluginDetected){const c=(n=se.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?n:a;se.__VUE_INSPECTOR__.openInEditor(c,i,s,l)}}}ae();ae();ae();ae();ae();var _z,Mz;(Mz=(_z=se).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(_z.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var gf=new Proxy(se.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(t,r,e){return Reflect.get(t,r,e)}});function Qse(t,r){gf.push([t,r])}function Z6(t){const r={};return Object.keys(t).forEach(e=>{r[e]=t[e].defaultValue}),r}function Tb(t){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${t}__`}function Jse(t){var r,e,n;const i=(e=(r=gf.find(o=>{var a;return o[0].id===t&&!!((a=o[0])!=null&&a.settings)}))==null?void 0:r[0])!=null?e:null;return(n=i?.settings)!=null?n:null}function OF(t,r){var e,n,i;const o=Tb(t);if(o){const a=localStorage.getItem(o);if(a)return JSON.parse(a)}if(t){const a=(n=(e=gf.find(s=>s[0].id===t))==null?void 0:e[0])!=null?n:null;return Z6((i=a?.settings)!=null?i:{})}return Z6(r)}function xF(t,r){const e=Tb(t);localStorage.getItem(e)||localStorage.setItem(e,JSON.stringify(Z6(r)))}function e1e(t,r,e){const n=Tb(t),i=localStorage.getItem(n),o=JSON.parse(i||"{}"),a={...o,[r]:e};localStorage.setItem(n,JSON.stringify(a)),ba.hooks.callHookWith(s=>{s.forEach(l=>l({pluginId:t,key:r,oldValue:o[r],newValue:e,settings:a}))},"setPluginSettings")}ae();ae();ae();ae();ae();ae();ae();ae();ae();ae();ae();var zz,Ez,pr=(Ez=(zz=se).__VUE_DEVTOOLS_HOOK)!=null?Ez:zz.__VUE_DEVTOOLS_HOOK=UN(),t1e={vueAppInit(t){pr.hook("app:init",t)},vueAppUnmount(t){pr.hook("app:unmount",t)},vueAppConnected(t){pr.hook("app:connected",t)},componentAdded(t){return pr.hook("component:added",t)},componentEmit(t){return pr.hook("component:emit",t)},componentUpdated(t){return pr.hook("component:updated",t)},componentRemoved(t){return pr.hook("component:removed",t)},setupDevtoolsPlugin(t){pr.hook("devtools-plugin:setup",t)},perfStart(t){return pr.hook("perf:start",t)},perfEnd(t){return pr.hook("perf:end",t)}};function Sz(){return{id:"vue-devtools-next",devtoolsVersion:"7.0",enabled:!1,appRecords:[],apps:[],events:new Map,on(t,r){var e;return this.events.has(t)||this.events.set(t,[]),(e=this.events.get(t))==null||e.push(r),()=>this.off(t,r)},once(t,r){const e=(...n)=>{this.off(t,e),r(...n)};return this.on(t,e),[t,e]},off(t,r){if(this.events.has(t)){const e=this.events.get(t),n=e.indexOf(r);n!==-1&&e.splice(n,1)}},emit(t,...r){this.events.has(t)&&this.events.get(t).forEach(e=>e(...r))}}}function r1e(){const t=se.__VUE_DEVTOOLS_GLOBAL_HOOK__;t.on("app:init",(r,e)=>{var n,i,o;(o=(i=(n=r?._instance)==null?void 0:n.type)==null?void 0:i.devtools)!=null&&o.hide||pr.callHook("app:init",r,e)}),t.on("app:unmount",r=>{pr.callHook("app:unmount",r)}),t.on("component:added",async(r,e,n,i)=>{var o,a,s;(s=(a=(o=r?._instance)==null?void 0:o.type)==null?void 0:a.devtools)!=null&&s.hide||jt.highPerfModeEnabled||!r||typeof e!="number"&&!e||!i||pr.callHook("component:added",r,e,n,i)}),t.on("component:updated",(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||jt.highPerfModeEnabled||pr.callHook("component:updated",r,e,n,i)}),t.on("component:removed",async(r,e,n,i)=>{!r||typeof e!="number"&&!e||!i||jt.highPerfModeEnabled||pr.callHook("component:removed",r,e,n,i)}),t.on("component:emit",async(r,e,n,i)=>{!r||!e||jt.highPerfModeEnabled||pr.callHook("component:emit",r,e,n,i)}),t.on("perf:start",(r,e,n,i,o)=>{!r||jt.highPerfModeEnabled||pr.callHook("perf:start",r,e,n,i,o)}),t.on("perf:end",(r,e,n,i,o)=>{!r||jt.highPerfModeEnabled||pr.callHook("perf:end",r,e,n,i,o)}),t.on("devtools-plugin:setup",(r,e,n)=>{n?.target!=="legacy"&&pr.callHook("devtools-plugin:setup",r,e)})}var ao={on:t1e,setupDevToolsPlugin(t,r){return pr.callHook("devtools-plugin:setup",t,r)}},n1e=class{constructor({plugin:t,ctx:r}){this.hooks=r.hooks,this.plugin=t}get on(){return{visitComponentTree:t=>{this.hooks.hook("visitComponentTree",t)},inspectComponent:t=>{this.hooks.hook("inspectComponent",t)},editComponentState:t=>{this.hooks.hook("editComponentState",t)},getInspectorTree:t=>{this.hooks.hook("getInspectorTree",t)},getInspectorState:t=>{this.hooks.hook("getInspectorState",t)},editInspectorState:t=>{this.hooks.hook("editInspectorState",t)},inspectTimelineEvent:t=>{this.hooks.hook("inspectTimelineEvent",t)},timelineCleared:t=>{this.hooks.hook("timelineCleared",t)},setPluginSettings:t=>{this.hooks.hook("setPluginSettings",t)}}}notifyComponentUpdate(t){var r;const e=Eb().find(n=>n.packageName===this.plugin.descriptor.packageName);if(e?.id){if(t){const n=[t.appContext.app,t.uid,(r=t.parent)==null?void 0:r.uid,t];pr.callHook("component:updated",...n)}else pr.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:e.id,plugin:this.plugin})}}addInspector(t){this.hooks.callHook("addInspector",{inspector:t,plugin:this.plugin}),this.plugin.descriptor.settings&&xF(t.id,this.plugin.descriptor.settings)}sendInspectorTree(t){this.hooks.callHook("sendInspectorTree",{inspectorId:t,plugin:this.plugin})}sendInspectorState(t){this.hooks.callHook("sendInspectorState",{inspectorId:t,plugin:this.plugin})}selectInspectorNode(t,r){this.hooks.callHook("customInspectorSelectNode",{inspectorId:t,nodeId:r,plugin:this.plugin})}now(){return Date.now()}addTimelineLayer(t){this.hooks.callHook("timelineLayerAdded",{options:t,plugin:this.plugin})}addTimelineEvent(t){this.hooks.callHook("timelineEventAdded",{options:t,plugin:this.plugin})}getSettings(t){return OF(t??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(t){return this.hooks.callHook("getComponentInstances",{app:t})}getComponentBounds(t){return this.hooks.callHook("getComponentBounds",{instance:t})}getComponentName(t){return this.hooks.callHook("getComponentName",{instance:t})}highlightElement(t){const r=t.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:r})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},i1e=n1e;ae();ae();ae();ae();var o1e=new Set(["nextTick","defineComponent","defineAsyncComponent","defineCustomElement","ref","computed","reactive","readonly","watchEffect","watchPostEffect","watchSyncEffect","watch","isRef","unref","toRef","toRefs","isProxy","isReactive","isReadonly","shallowRef","triggerRef","customRef","shallowReactive","shallowReadonly","toRaw","markRaw","effectScope","getCurrentScope","onScopeDispose","onMounted","onUpdated","onUnmounted","onBeforeMount","onBeforeUpdate","onBeforeUnmount","onErrorCaptured","onRenderTracked","onRenderTriggered","onActivated","onDeactivated","onServerPrefetch","provide","inject","h","mergeProps","cloneVNode","isVNode","resolveComponent","resolveDirective","withDirectives","withModifiers"]),Tz=/^\[native Symbol Symbol\((.*)\)\]$/,a1e=/^\[object (\w+)\]$/,Mv=/^\[native (\w+) (.*?)(<>(([\s\S])*))?\]$/,s1e=/^(?:function|class) (\w+)/,Lz=1e4,kz=5e3,hf="__vue_devtool_undefined__",df="__vue_devtool_infinity__",ff="__vue_devtool_negative_infinity__",Cf="__vue_devtool_nan__",l1e={"<":"<",">":">",'"':""","&":"&"};ae();ae();function HF(t){return!ro(t,"_")||!tI(t._)?!1:Object.keys(t._).includes("vnode")}function tI(t){return Object.prototype.toString.call(t)==="[object Object]"}function c1e(t){if(t==null)return!0;const r=typeof t;return r==="string"||r==="number"||r==="boolean"}function VF(t){return!!t.__v_isRef}function u1e(t){return VF(t)&&!!t.effect}function g1e(t){return!!t.__v_isReactive}function h1e(t){return!!t.__v_isReadonly}var zv={[hf]:"undefined",[Cf]:"NaN",[df]:"Infinity",[ff]:"-Infinity"},fp=Object.entries(zv).reduce((t,[r,e])=>(t[e]=r,t),{});function d1e(t){return t===null?"null":typeof t=="string"&&zv[t]||!1}function f1e(t){const r=new RegExp(`"(${Object.keys(zv).join("|")})"`,"g");return t.replace(r,(e,n)=>zv[n])}function C1e(t){const r=fp[t.trim()];if(r)return`"${r}"`;const e=new RegExp(`:\\s*(${Object.keys(fp).join("|")})`,"g");return t.replace(e,(n,i)=>`:"${fp[i]}"`)}function PF(t){if(Array.isArray(t))return t.map(e=>PF(e)).join(" or ");if(t==null)return"null";const r=t.toString().match(s1e);return typeof t=="function"&&r&&r[1]||"any"}function v1e(t){return!c1e(t)&&!Array.isArray(t)&&!tI(t)?Object.prototype.toString.call(t):t}function RF(t){return{ref:VF(t),computed:u1e(t),reactive:g1e(t),readonly:h1e(t)}}function DF(t){return t?.__v_raw?t.__v_raw:t}function Lb(t){return t.replace(/[<>"&]/g,r=>l1e[r]||r)}function Ev(t,r,e){if(typeof r=="function"&&(r=r.options),!r)return t;const{mixins:n,extends:i}=r;i&&Ev(t,i),n&&n.forEach(o=>Ev(t,o));for(const o of["computed","inject"])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]?Object.assign(t[o],r[o]):t[o]=r[o]);return t}function A1e(t){const r=t?.type;if(!r)return{};const{mixins:e,extends:n}=r,i=t.appContext.mixins;if(!i.length&&!e&&!n)return r;const o={};return i.forEach(a=>Ev(o,a)),Ev(o,r),o}function I1e(t){const r=[],e=t.type.props;for(const n in t.props){const i=e?e[n]:null,o=Jne(n);r.push({type:"props",key:o,value:V1(()=>t.props[n]),meta:i?{type:i.type?PF(i.type):"any",required:!!i.required,...i.default?{default:i.default.toString()}:{}}:{type:"invalid"}})}return r}function p1e(t){const r=t.type,e=r.props,n=r.vuex&&r.vuex.getters,i=r.computed,o={...t.data,...t.renderContext};return Object.keys(o).filter(a=>!(e&&a in e)&&!(n&&a in n)&&!(i&&a in i)).map(a=>({key:a,type:"data",value:V1(()=>o[a]),editable:!0}))}function m1e(t){const r=t.computed?"computed":t.ref?"ref":t.reactive?"reactive":null,e=r?`${r.charAt(0).toUpperCase()}${r.slice(1)}`:null;return{stateType:r,stateTypeName:e}}function y1e(t){const r=t.devtoolsRawSetupState||{};return Object.keys(t.setupState).filter(e=>!o1e.has(e)&&e.split(/(?=[A-Z])/)[0]!=="use").map(e=>{var n,i,o,a;const s=V1(()=>DF(t.setupState[e])),l=r[e];let c,u=typeof s=="function"||ro(s,"render")&&typeof s.render=="function"||ro(s,"__asyncLoader")&&typeof s.__asyncLoader=="function"||typeof s=="object"&&s&&("setup"in s||"props"in s)||/^v[A-Z]/.test(e);if(l){const h=RF(l),{stateType:d,stateTypeName:f}=m1e(h),C=h.ref||h.computed||h.reactive,v=ro(l,"effect")?((i=(n=l.effect)==null?void 0:n.raw)==null?void 0:i.toString())||((a=(o=l.effect)==null?void 0:o.fn)==null?void 0:a.toString()):null;d&&(u=!1),c={...d?{stateType:d,stateTypeName:f}:{},...v?{raw:v}:{},editable:C&&!h.readonly}}return{key:e,value:s,type:u?"setup (other)":"setup",...c}})}function b1e(t,r){const e=r,n=[],i=e.computed||{};for(const o in i){const a=i[o],s=typeof a=="function"&&a.vuex?"vuex bindings":"computed";n.push({type:s,key:o,value:V1(()=>{var l;return(l=t?.proxy)==null?void 0:l[o]}),editable:typeof a.set=="function"})}return n}function w1e(t){return Object.keys(t.attrs).map(r=>({type:"attrs",key:r,value:V1(()=>t.attrs[r])}))}function $1e(t){return Reflect.ownKeys(t.provides).map(r=>({type:"provided",key:r.toString(),value:V1(()=>t.provides[r])}))}function _1e(t,r){if(!r?.inject)return[];let e=[],n;return Array.isArray(r.inject)?e=r.inject.map(i=>({key:i,originalKey:i})):e=Reflect.ownKeys(r.inject).map(i=>{const o=r.inject[i];let a;return typeof o=="string"||typeof o=="symbol"?a=o:(a=o.from,n=o.default),{key:i,originalKey:a}}),e.map(({key:i,originalKey:o})=>({type:"injected",key:o&&i!==o?`${o.toString()} ➞ ${i.toString()}`:i.toString(),value:V1(()=>t.ctx.hasOwnProperty(i)?t.ctx[i]:t.provides.hasOwnProperty(o)?t.provides[o]:n)}))}function M1e(t){return Object.keys(t.refs).map(r=>({type:"template refs",key:r,value:V1(()=>t.refs[r])}))}function z1e(t){var r,e;const n=t.type.emits,i=Array.isArray(n)?n:Object.keys(n??{}),o=Object.keys((e=(r=t?.vnode)==null?void 0:r.props)!=null?e:{}),a=[];for(const s of o){const[l,...c]=s.split(/(?=[A-Z])/);if(l==="on"){const u=c.join("-").toLowerCase(),g=i.includes(u);a.push({type:"event listeners",key:u,value:{_custom:{displayText:g?"✅ Declared":"⚠️ Not declared",key:g?"✅ Declared":"⚠️ Not declared",value:g?"✅ Declared":"⚠️ Not declared",tooltipText:g?null:`The event ${u} is not declared in the emits option. It will leak into the component's attributes ($attrs).`}}})}}return a}function NF(t){const r=A1e(t);return I1e(t).concat(p1e(t),y1e(t),b1e(t,r),w1e(t),$1e(t),_1e(t,r),M1e(t),z1e(t))}function E1e(t){var r;const e=su(Vt.value,t.instanceId),n=mF(e),i=jo(e),o=(r=e?.type)==null?void 0:r.__file,a=NF(e);return{id:n,name:i,file:o,state:a,instance:e}}ae();ae();var S1e=class{constructor(t){this.filter=t||""}isQualified(t){const r=jo(t);return BN(r).toLowerCase().includes(this.filter)||eie(r).toLowerCase().includes(this.filter)}};function T1e(t){return new S1e(t)}var L1e=class{constructor(t){this.captureIds=new Map;const{filterText:r="",maxDepth:e,recursively:n}=t;this.componentFilter=T1e(r),this.maxDepth=e,this.recursively=n}getComponentTree(t){return this.captureIds=new Map,this.findQualifiedChildren(t,0)}getComponentParents(t){this.captureIds=new Map;const r=[];this.captureId(t);let e=t;for(;e=e.parent;)this.captureId(e),r.push(e);return r}captureId(t){if(!t)return null;const r=t.__VUE_DEVTOOLS_NEXT_UID__!=null?t.__VUE_DEVTOOLS_NEXT_UID__:mF(t);return t.__VUE_DEVTOOLS_NEXT_UID__=r,this.captureIds.has(r)?null:(this.captureIds.set(r,void 0),this.mark(t),r)}async capture(t,r){var e;if(!t)return null;const n=this.captureId(t),i=jo(t),o=this.getInternalInstanceChildren(t.subTree).filter(g=>!dp(g)),a=this.getComponentParents(t)||[],s=!!t.isDeactivated||a.some(g=>g.isDeactivated),l={uid:t.uid,id:n,name:i,renderKey:Cse(t.vnode?t.vnode.key:null),inactive:s,children:[],isFragment:wb(t),tags:typeof t.type!="function"?[]:[{label:"functional",textColor:5592405,backgroundColor:15658734}],autoOpen:this.recursively,file:t.type.__file||""};if((rg.type.__isKeepAlive))&&(l.children=await Promise.all(o.map(g=>this.capture(g,r+1)).filter(Boolean))),this.isKeepAlive(t)){const g=this.getKeepAliveCachedInstances(t),h=o.map(d=>d.__VUE_DEVTOOLS_NEXT_UID__);for(const d of g)if(!h.includes(d.__VUE_DEVTOOLS_NEXT_UID__)){const f=await this.capture({...d,isDeactivated:!0},r+1);f&&l.children.push(f)}}const u=ld(t)[0];if(u?.parentElement){const g=t.parent,h=g?ld(g):[];let d=u;const f=[];do f.push(Array.from(d.parentElement.childNodes).indexOf(d)),d=d.parentElement;while(d.parentElement&&h.length&&!h.includes(d));l.domOrder=f.reverse()}else l.domOrder=[-1];return(e=t.suspense)!=null&&e.suspenseKey&&(l.tags.push({label:t.suspense.suspenseKey,backgroundColor:14979812,textColor:16777215}),this.mark(t,!0)),l}async findQualifiedChildren(t,r){var e;if(this.componentFilter.isQualified(t)&&!((e=t.type.devtools)!=null&&e.hide))return[await this.capture(t,r)];if(t.subTree){const n=this.isKeepAlive(t)?this.getKeepAliveCachedInstances(t):this.getInternalInstanceChildren(t.subTree);return this.findQualifiedChildrenFromList(n,r)}else return[]}async findQualifiedChildrenFromList(t,r){return t=t.filter(e=>{var n;return!dp(e)&&!((n=e.type.devtools)!=null&&n.hide)}),this.componentFilter.filter?Array.prototype.concat.apply([],await Promise.all(t.map(e=>this.findQualifiedChildren(e,r)))):Promise.all(t.map(e=>this.capture(e,r)))}getInternalInstanceChildren(t,r=null){const e=[];if(t)if(t.component)r?e.push({...t.component,suspense:r}):e.push(t.component);else if(t.suspense){const n=t.suspense.isInFallback?"suspense fallback":"suspense default";e.push(...this.getInternalInstanceChildren(t.suspense.activeBranch,{...t.suspense,suspenseKey:n}))}else Array.isArray(t.children)&&t.children.forEach(n=>{n.component?r?e.push({...n.component,suspense:r}):e.push(n.component):e.push(...this.getInternalInstanceChildren(n,r))});return e.filter(n=>{var i;return!dp(n)&&!((i=n.type.devtools)!=null&&i.hide)})}mark(t,r=!1){const e=ga(t).instanceMap;(r||!e.has(t.__VUE_DEVTOOLS_NEXT_UID__))&&(e.set(t.__VUE_DEVTOOLS_NEXT_UID__,t),Vt.value.instanceMap=e)}isKeepAlive(t){return t.type.__isKeepAlive&&t.__v_cache}getKeepAliveCachedInstances(t){return Array.from(t.__v_cache.values()).map(r=>r.component).filter(Boolean)}};ae();ae();var S5=new Map,kb="performance";async function k1e(t,r,e,n,i,o){const a=await ga(r);if(!a)return;const s=jo(n)||"Unknown Component",l=jt.perfUniqueGroupId++,c=`${e}-${i}`;if(a.perfGroupIds.set(c,{groupId:l,time:o}),await t.addTimelineEvent({layerId:kb,event:{time:Date.now(),data:{component:s,type:i,measure:"start"},title:s,subtitle:i,groupId:l}}),S5.has(c)){const{app:u,uid:g,instance:h,type:d,time:f}=S5.get(c);S5.delete(c),await BF(t,u,g,h,d,f)}}function BF(t,r,e,n,i,o){const a=ga(r);if(!a)return;const s=jo(n)||"Unknown Component",l=`${e}-${i}`,c=a.perfGroupIds.get(l);if(c){const u=c.groupId,g=c.time,h=o-g;t.addTimelineEvent({layerId:kb,event:{time:Date.now(),data:{component:s,type:i,measure:"end",duration:{_custom:{type:"Duration",value:h,display:`${h} ms`}}},title:s,subtitle:i,groupId:u}})}else S5.set(l,{app:r,uid:e,instance:n,type:i,time:o})}var Oz="component-event";function O1e(t){ju&&(t.addTimelineLayer({id:"mouse",label:"Mouse",color:10768815}),["mousedown","mouseup","click","dblclick"].forEach(r=>{!jt.timelineLayersState.recordingState||!jt.timelineLayersState.mouseEventEnabled||window.addEventListener(r,async e=>{await t.addTimelineEvent({layerId:"mouse",event:{time:Date.now(),data:{type:r,x:e.clientX,y:e.clientY},title:r}})},{capture:!0,passive:!0})}),t.addTimelineLayer({id:"keyboard",label:"Keyboard",color:8475055}),["keyup","keydown","keypress"].forEach(r=>{window.addEventListener(r,async e=>{!jt.timelineLayersState.recordingState||!jt.timelineLayersState.keyboardEventEnabled||await t.addTimelineEvent({layerId:"keyboard",event:{time:Date.now(),data:{type:r,key:e.key,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},title:e.key}})},{capture:!0,passive:!0})}),t.addTimelineLayer({id:Oz,label:"Component events",color:5226637}),ao.on.componentEmit(async(r,e,n,i)=>{if(!jt.timelineLayersState.recordingState||!jt.timelineLayersState.componentEventEnabled)return;const o=await ga(r);if(!o)return;const a=`${o.id}:${e.uid}`,s=jo(e)||"Unknown Component";t.addTimelineEvent({layerId:Oz,event:{time:Date.now(),data:{component:{_custom:{type:"component-definition",display:s}},event:n,params:i},title:n,subtitle:`by ${s}`,meta:{componentId:a}}})}),t.addTimelineLayer({id:"performance",label:kb,color:4307050}),ao.on.perfStart((r,e,n,i,o)=>{!jt.timelineLayersState.recordingState||!jt.timelineLayersState.performanceEventEnabled||k1e(t,r,e,n,i,o)}),ao.on.perfEnd((r,e,n,i,o)=>{!jt.timelineLayersState.recordingState||!jt.timelineLayersState.performanceEventEnabled||BF(t,r,e,n,i,o)}))}ae();var x1e=10,sl=[];function H1e(t){if(typeof window>"u")return;const r=window;if(t&&(r.$vm=t,sl[0]!==t)){sl.length>=x1e&&sl.pop();for(let e=sl.length;e>0;e--)r[`$vm${e}`]=sl[e]=sl[e-1];r.$vm0=sl[0]=t}}var ll="components";function V1e(t){return[{id:ll,label:"Components",app:t},n=>{n.addInspector({id:ll,label:"Components",treeFilterPlaceholder:"Search components"}),O1e(n),n.on.getInspectorTree(async a=>{if(a.app===t&&a.inspectorId===ll){const s=su(Vt.value,a.instanceId);if(s){const l=new L1e({filterText:a.filter,maxDepth:100,recursively:!1});a.rootNodes=await l.getComponentTree(s)}}}),n.on.getInspectorState(async a=>{var s;if(a.app===t&&a.inspectorId===ll){const l=E1e({instanceId:a.nodeId}),c=l.instance,u=(s=l.instance)==null?void 0:s.appContext.app,g={componentInstance:c,app:u,instanceData:l};ba.hooks.callHookWith(h=>{h.forEach(d=>d(g))},"inspectComponent"),a.state=l,H1e(c)}}),n.on.editInspectorState(async a=>{a.app===t&&a.inspectorId===ll&&(pse(a),await n.sendInspectorState("components"))});const i=Kl(()=>{n.sendInspectorTree(ll)},120),o=Kl(()=>{n.sendInspectorState(ll)},120);ao.on.componentAdded(async(a,s,l,c)=>{var u,g,h;if(jt.highPerfModeEnabled||(h=(g=(u=a?._instance)==null?void 0:u.type)==null?void 0:g.devtools)!=null&&h.hide||!a||typeof s!="number"&&!s||!c)return;const d=await E5({app:a,uid:s,instance:c}),f=await ga(a);c&&(c.__VUE_DEVTOOLS_NEXT_UID__==null&&(c.__VUE_DEVTOOLS_NEXT_UID__=d),f?.instanceMap.has(d)||(f?.instanceMap.set(d,c),Vt.value.id===f?.id&&(Vt.value.instanceMap=f.instanceMap))),f&&i()}),ao.on.componentUpdated(async(a,s,l,c)=>{var u,g,h;if(jt.highPerfModeEnabled||(h=(g=(u=a?._instance)==null?void 0:u.type)==null?void 0:g.devtools)!=null&&h.hide||!a||typeof s!="number"&&!s||!c)return;const d=await E5({app:a,uid:s,instance:c}),f=await ga(a);c&&(c.__VUE_DEVTOOLS_NEXT_UID__==null&&(c.__VUE_DEVTOOLS_NEXT_UID__=d),f?.instanceMap.has(d)||(f?.instanceMap.set(d,c),Vt.value.id===f?.id&&(Vt.value.instanceMap=f.instanceMap))),f&&(i(),o())}),ao.on.componentRemoved(async(a,s,l,c)=>{var u,g,h;if(jt.highPerfModeEnabled||(h=(g=(u=a?._instance)==null?void 0:u.type)==null?void 0:g.devtools)!=null&&h.hide||!a||typeof s!="number"&&!s||!c)return;const d=await ga(a);if(!d)return;const f=await E5({app:a,uid:s,instance:c});d?.instanceMap.delete(f),Vt.value.id===d?.id&&(Vt.value.instanceMap=d.instanceMap),i()})}]}var xz,Hz;(Hz=(xz=se).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(xz.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function P1e(t,r){return ao.setupDevToolsPlugin(t,r)}function FF(t,r){const[e,n]=t;if(e.app!==r)return;const i=new i1e({plugin:{setupFn:n,descriptor:e},ctx:ba});e.packageName==="vuex"&&i.on.editInspectorState(o=>{i.sendInspectorState(o.inspectorId)}),n(i)}function R1e(t){se.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.delete(t)}function jF(t){se.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(t)||(se.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(t),gf.forEach(r=>{FF(r,t)}))}ae();ae();var cd="__VUE_DEVTOOLS_ROUTER__",lu="__VUE_DEVTOOLS_ROUTER_INFO__",Vz,Pz;(Pz=(Vz=se)[lu])!=null||(Vz[lu]={currentRoute:null,routes:[]});var Rz,Dz;(Dz=(Rz=se)[cd])!=null||(Rz[cd]={});var D1e=new Proxy(se[lu],{get(t,r){return se[lu][r]}}),Nz=new Proxy(se[cd],{get(t,r){if(r==="value")return se[cd]}});function N1e(t){const r=new Map;return(t?.getRoutes()||[]).filter(e=>!r.has(e.path)&&r.set(e.path,1))}function Ob(t){return t.map(r=>{let{path:e,name:n,children:i,meta:o}=r;return i?.length&&(i=Ob(i)),{path:e,name:n,children:i,meta:o}})}function B1e(t){if(t){const{fullPath:r,hash:e,href:n,path:i,name:o,matched:a,params:s,query:l}=t;return{fullPath:r,hash:e,href:n,path:i,name:o,params:s,query:l,matched:Ob(a)}}return t}function UF(t,r){function e(){var n;const i=(n=t.app)==null?void 0:n.config.globalProperties.$router,o=B1e(i?.currentRoute.value),a=Ob(N1e(i)),s=console.warn;console.warn=()=>{},se[lu]={currentRoute:o?Cv(o):{},routes:Cv(a)},se[cd]=i,console.warn=s}e(),ao.on.componentUpdated(Kl(()=>{var n;((n=r.value)==null?void 0:n.app)===t.app&&(e(),ba.hooks.callHook("routerInfoUpdated",{state:se[lu]}))},200))}function F1e(t){return{async getInspectorTree(r){const e={...r,app:Vt.value.app,rootNodes:[]};return await new Promise(n=>{t.callHookWith(async i=>{await Promise.all(i.map(o=>o(e))),n()},"getInspectorTree")}),e.rootNodes},async getInspectorState(r){const e={...r,app:Vt.value.app,state:null},n={currentTab:`custom-inspector:${r.inspectorId}`};return await new Promise(i=>{t.callHookWith(async o=>{await Promise.all(o.map(a=>a(e,n))),i()},"getInspectorState")}),e.state},editInspectorState(r){const e=new yF,n={...r,app:Vt.value.app,set:(i,o=r.path,a=r.state.value,s)=>{e.set(i,o,a,s||e.createDefaultSetCallback(r.state))}};t.callHookWith(i=>{i.forEach(o=>o(n))},"editInspectorState")},sendInspectorState(r){const e=i1(r);t.callHook("sendInspectorState",{inspectorId:r,plugin:{descriptor:e.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Ose()},cancelInspectComponentInspector(){return kse()},getComponentRenderCode(r){const e=su(Vt.value,r);if(e)return e?.type instanceof Function?e.type.toString():e.render.toString()},scrollToComponent(r){return xse({id:r})},openInEditor:qse,getVueInspector:Pse,toggleApp(r){const e=$1.value.find(n=>n.id===r);e&&(kF(r),W6(e),UF(e,Vt),TF(),jF(e.app))},inspectDOM(r){const e=su(Vt.value,r);if(e){const[n]=ld(e);n&&(se.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=n)}},updatePluginSettings(r,e,n){e1e(r,e,n)},getPluginSettings(r){return{options:Jse(r),values:OF(r)}}}}ae();var Bz,Fz;(Fz=(Bz=se).__VUE_DEVTOOLS_ENV__)!=null||(Bz.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});function j1e(){return se.__VUE_DEVTOOLS_ENV__}var jz=Use(),Uz,Gz;(Gz=(Uz=se).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(Uz.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:jz,get state(){return{...jt,activeAppRecordId:Vt.id,activeAppRecord:Vt.value,appRecords:$1.value}},api:F1e(jz)});var ba=se.__VUE_DEVTOOLS_KIT_CONTEXT__;ae();var U1e=sse(cse()),Wz,Zz,Xs=(Zz=(Wz=se).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null?Zz:Wz.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set};function G1e(t,r){var e;return((e=t?._component)==null?void 0:e.name)||`App ${r}`}function W1e(t){var r,e,n,i;if(t._instance)return t._instance;if((e=(r=t._container)==null?void 0:r._vnode)!=null&&e.component)return(i=(n=t._container)==null?void 0:n._vnode)==null?void 0:i.component}function Z1e(t){const r=t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;r!=null&&(Xs.appIds.delete(r),Xs.id--)}function K1e(t,r){if(t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__!=null)return t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;let e=r??(Xs.id++).toString();if(r&&Xs.appIds.has(e)){let n=1;for(;Xs.appIds.has(`${r}_${n}`);)n++;e=`${r}_${n}`}return Xs.appIds.add(e),t.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__=e,e}function Y1e(t){const r=W1e(t);if(r){Xs.id++;const e=G1e(t,Xs.id.toString()),i={id:K1e(t,(0,U1e.default)(e)),name:e,instanceMap:new Map,perfGroupIds:new Map,rootInstance:r};t.__VUE_DEVTOOLS_NEXT_APP_RECORD__=i;const o=`${i.id}:root`;return i.instanceMap.set(o,i.rootInstance),i.rootInstance.__VUE_DEVTOOLS_NEXT_UID__=o,i}else return{}}function X1e(){var t;_h({vitePluginDetected:j1e().vitePluginDetected});const r=((t=se.__VUE_DEVTOOLS_GLOBAL_HOOK__)==null?void 0:t.id)==="vue-devtools-next";se.__VUE_DEVTOOLS_GLOBAL_HOOK__&&r||(se.__VUE_DEVTOOLS_GLOBAL_HOOK__?Kne||Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__,Sz()):se.__VUE_DEVTOOLS_GLOBAL_HOOK__=Sz(),se.__VUE_DEVTOOLS_GLOBAL_HOOK__.once("init",e=>{console.log("%c[_____Vue DevTools v7 log_____]","color: red; font-bold: 700; font-size: 20px;"),console.log("%cVue DevTools v7 detected in your Vue2 project. v7 only supports Vue3 and will not work.","font-bold: 700; font-size: 16px;"),console.log("%cThe legacy version that supports both Vue 2 and Vue 3 has been moved to %c https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp","font-size: 16px;","text-decoration: underline; cursor: pointer;font-size: 16px;"),console.log("%cPlease install and enable only the legacy version for your Vue2 app.","font-bold: 700; font-size: 16px;"),console.log("%c[_____Vue DevTools v7 log_____]","color: red; font-bold: 700; font-size: 20px;")}),ao.on.setupDevtoolsPlugin((e,n)=>{var i;Qse(e,n);const{app:o}=(i=Vt)!=null?i:{};e.settings&&xF(e.id,e.settings),o&&FF([e,n],o)}),use(()=>{gf.filter(([n])=>n.id!=="components").forEach(([n,i])=>{se.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit("devtools-plugin:setup",n,i,{target:"legacy"})})}),ao.on.vueAppInit(async(e,n)=>{const o={...Y1e(e),app:e,version:n};Kse(o),$1.value.length===1&&(W6(o),kF(o.id),UF(o,Vt),jF(o.app)),P1e(...V1e(o.app)),_h({connected:!0}),se.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.push(e)}),ao.on.vueAppUnmount(async e=>{const n=$1.value.filter(i=>i.app!==e);n.length===0&&_h({connected:!1}),Yse(e),Z1e(e),Vt.value.app===e&&(W6(n[0]),ba.hooks.callHook("sendActiveAppUpdatedToClient")),se.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.splice(se.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.indexOf(e),1),R1e(e)}),r1e())}ae();function q1e(t){jt.highPerfModeEnabled=t??!jt.highPerfModeEnabled}ae();ae();function Q1e(t){const r=new Set,e=t._custom.value;for(let n=0;n"${a?.string?`${Ug(t)}`:Ug(t)}"`:t=a?.string?`${Ug(t)}`:Ug(t)}return t}function Ug(t){return Lb(t).replace(/ /g," ").replace(/\n/g,"\\n")}function xb(t){var r,e,n;let i;const o=ud(t)==="custom";let a={};if(o){const s=t,l=(r=s._custom)==null?void 0:r.value,c=(e=s._custom)==null?void 0:e.type,u=typeof l=="object"&&l!==null&&"_custom"in l?xb(l):{inherit:void 0,value:void 0,customType:void 0};a=u.inherit||((n=s._custom)==null?void 0:n.fields)||{},t=u.value||l,i=u.customType||c}return t&&t._isArray&&(t=t.items),{value:t,inherit:a,customType:i}}function ele(t,r){return r==="bigint"||r==="date"?t:f1e(JSON.stringify(t))}function T5(t,r){return r==="bigint"?BigInt(t):r==="date"?new Date(t):JSON.parse(C1e(t),GF)}ae();function ZF(t){jt.devtoolsClientDetected={...jt.devtoolsClientDetected,...t};const r=Object.values(jt.devtoolsClientDetected).some(Boolean);q1e(!r)}var Kz,Yz;(Yz=(Kz=se).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(Kz.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ZF);ae();ae();ae();ae();ae();ae();ae();var tle=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,r){this.keyToValue.set(t,r),this.valueToKey.set(r,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},KF=class{constructor(r){this.generateIdentifier=r,this.kv=new tle}register(r,e){this.kv.getByValue(r)||(e||(e=this.generateIdentifier(r)),this.kv.set(e,r))}clear(){this.kv.clear()}getIdentifier(r){return this.kv.getByValue(r)}getValue(r){return this.kv.getByKey(r)}},rle=class extends KF{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(t,r.allowProps),super.register(t,r.identifier)):super.register(t,r)}getAllowedProps(t){return this.classToAllowedProps.get(t)}};ae();ae();function nle(t){if("values"in Object)return Object.values(t);const r=[];for(const e in t)t.hasOwnProperty(e)&&r.push(t[e]);return r}function ile(t,r){const e=nle(t);if("find"in e)return e.find(r);const n=e;for(let i=0;ir(n,e))}function L5(t,r){return t.indexOf(r)!==-1}function Xz(t,r){for(let e=0;er.isApplicable(t))}findByName(t){return this.transfomers[t]}};ae();ae();var ale=t=>Object.prototype.toString.call(t).slice(8,-1),YF=t=>typeof t>"u",sle=t=>t===null,gd=t=>typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype,K6=t=>gd(t)&&Object.keys(t).length===0,_1=t=>Array.isArray(t),lle=t=>typeof t=="string",cle=t=>typeof t=="number"&&!isNaN(t),ule=t=>typeof t=="boolean",gle=t=>t instanceof RegExp,hd=t=>t instanceof Map,dd=t=>t instanceof Set,XF=t=>ale(t)==="Symbol",hle=t=>t instanceof Date&&!isNaN(t.valueOf()),dle=t=>t instanceof Error,qz=t=>typeof t=="number"&&isNaN(t),fle=t=>ule(t)||sle(t)||YF(t)||cle(t)||lle(t)||XF(t),Cle=t=>typeof t=="bigint",vle=t=>t===1/0||t===-1/0,Ale=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),Ile=t=>t instanceof URL;ae();var qF=t=>t.replace(/\./g,"\\."),Cp=t=>t.map(String).map(qF).join("."),Mh=t=>{const r=[];let e="";for(let i=0;inull,()=>{}),Zo(Cle,"bigint",t=>t.toString(),t=>typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)),Zo(hle,"Date",t=>t.toISOString(),t=>new Date(t)),Zo(dle,"Error",(t,r)=>{const e={name:t.name,message:t.message};return r.allowedErrorProps.forEach(n=>{e[n]=t[n]}),e},(t,r)=>{const e=new Error(t.message);return e.name=t.name,e.stack=t.stack,r.allowedErrorProps.forEach(n=>{e[n]=t[n]}),e}),Zo(gle,"regexp",t=>""+t,t=>{const r=t.slice(1,t.lastIndexOf("/")),e=t.slice(t.lastIndexOf("/")+1);return new RegExp(r,e)}),Zo(dd,"set",t=>[...t.values()],t=>new Set(t)),Zo(hd,"map",t=>[...t.entries()],t=>new Map(t)),Zo(t=>qz(t)||vle(t),"number",t=>qz(t)?"NaN":t>0?"Infinity":"-Infinity",Number),Zo(t=>t===0&&1/t===-1/0,"number",()=>"-0",Number),Zo(Ile,"URL",t=>t.toString(),t=>new URL(t))];function nI(t,r,e,n){return{isApplicable:t,annotation:r,transform:e,untransform:n}}var JF=nI((t,r)=>XF(t)?!!r.symbolRegistry.getIdentifier(t):!1,(t,r)=>["symbol",r.symbolRegistry.getIdentifier(t)],t=>t.description,(t,r,e)=>{const n=e.symbolRegistry.getValue(r[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),ple=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((t,r)=>(t[r.name]=r,t),{}),ej=nI(Ale,t=>["typed-array",t.constructor.name],t=>[...t],(t,r)=>{const e=ple[r[1]];if(!e)throw new Error("Trying to deserialize unknown typed array");return new e(t)});function tj(t,r){return t?.constructor?!!r.classRegistry.getIdentifier(t.constructor):!1}var rj=nI(tj,(t,r)=>["class",r.classRegistry.getIdentifier(t.constructor)],(t,r)=>{const e=r.classRegistry.getAllowedProps(t.constructor);if(!e)return{...t};const n={};return e.forEach(i=>{n[i]=t[i]}),n},(t,r,e)=>{const n=e.classRegistry.getValue(r[1]);if(!n)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),t)}),nj=nI((t,r)=>!!r.customTransformerRegistry.findApplicable(t),(t,r)=>["custom",r.customTransformerRegistry.findApplicable(t).name],(t,r)=>r.customTransformerRegistry.findApplicable(t).serialize(t),(t,r,e)=>{const n=e.customTransformerRegistry.findByName(r[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(t)}),mle=[rj,JF,nj,ej],Qz=(t,r)=>{const e=Xz(mle,i=>i.isApplicable(t,r));if(e)return{value:e.transform(t,r),type:e.annotation(t,r)};const n=Xz(QF,i=>i.isApplicable(t,r));if(n)return{value:n.transform(t,r),type:n.annotation}},ij={};QF.forEach(t=>{ij[t.annotation]=t});var yle=(t,r,e)=>{if(_1(r))switch(r[0]){case"symbol":return JF.untransform(t,r,e);case"class":return rj.untransform(t,r,e);case"custom":return nj.untransform(t,r,e);case"typed-array":return ej.untransform(t,r,e);default:throw new Error("Unknown transformation: "+r)}else{const n=ij[r];if(!n)throw new Error("Unknown transformation: "+r);return n.untransform(t,e)}};ae();var A2=(t,r)=>{const e=t.keys();for(;r>0;)e.next(),r--;return e.next().value};function oj(t){if(L5(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(L5(t,"prototype"))throw new Error("prototype is not allowed as a property");if(L5(t,"constructor"))throw new Error("constructor is not allowed as a property")}var ble=(t,r)=>{oj(r);for(let e=0;e{if(oj(r),r.length===0)return e(t);let n=t;for(let o=0;oX6(o,r,[...e,...Mh(a)]));return}const[n,i]=t;i&&cu(i,(o,a)=>{X6(o,r,[...e,...Mh(a)])}),r(n,e)}function wle(t,r,e){return X6(r,(n,i)=>{t=Y6(t,i,o=>yle(o,n,e))}),t}function $le(t,r){function e(n,i){const o=ble(t,Mh(i));n.map(Mh).forEach(a=>{t=Y6(t,a,()=>o)})}if(_1(r)){const[n,i]=r;n.forEach(o=>{t=Y6(t,Mh(o),()=>t)}),i&&cu(i,e)}else cu(r,e);return t}var _le=(t,r)=>gd(t)||_1(t)||hd(t)||dd(t)||tj(t,r);function Mle(t,r,e){const n=e.get(t);n?n.push(r):e.set(t,[r])}function zle(t,r){const e={};let n;return t.forEach(i=>{if(i.length<=1)return;r||(i=i.map(s=>s.map(String)).sort((s,l)=>s.length-l.length));const[o,...a]=i;o.length===0?n=a.map(Cp):e[Cp(o)]=a.map(Cp)}),n?K6(e)?[n]:[n,e]:K6(e)?void 0:e}var aj=(t,r,e,n,i=[],o=[],a=new Map)=>{var s;const l=fle(t);if(!l){Mle(t,i,r);const f=a.get(t);if(f)return n?{transformedValue:null}:f}if(!_le(t,e)){const f=Qz(t,e),C=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:t};return l||a.set(t,C),C}if(L5(o,t))return{transformedValue:null};const c=Qz(t,e),u=(s=c?.value)!=null?s:t,g=_1(u)?[]:{},h={};cu(u,(f,C)=>{if(C==="__proto__"||C==="constructor"||C==="prototype")throw new Error(`Detected property ${C}. This is a prototype pollution risk, please remove it from your object.`);const v=aj(f,r,e,n,[...i,C],[...o,t],a);g[C]=v.transformedValue,_1(v.annotations)?h[C]=v.annotations:gd(v.annotations)&&cu(v.annotations,(A,I)=>{h[qF(C)+"."+I]=A})});const d=K6(h)?{transformedValue:g,annotations:c?[c.type]:void 0}:{transformedValue:g,annotations:c?[c.type,h]:h};return l||a.set(t,d),d};ae();ae();function sj(t){return Object.prototype.toString.call(t).slice(8,-1)}function Jz(t){return sj(t)==="Array"}function Ele(t){if(sj(t)!=="Object")return!1;const r=Object.getPrototypeOf(t);return!!r&&r.constructor===Object&&r===Object.prototype}function Sle(t,r,e,n,i){const o={}.propertyIsEnumerable.call(n,r)?"enumerable":"nonenumerable";o==="enumerable"&&(t[r]=e),i&&o==="nonenumerable"&&Object.defineProperty(t,r,{value:e,enumerable:!1,writable:!0,configurable:!0})}function q6(t,r={}){if(Jz(t))return t.map(i=>q6(i,r));if(!Ele(t))return t;const e=Object.getOwnPropertyNames(t),n=Object.getOwnPropertySymbols(t);return[...e,...n].reduce((i,o)=>{if(Jz(r.props)&&!r.props.includes(o))return i;const a=t[o],s=q6(a,r);return Sle(i,o,s,t,r.nonenumerable),i},{})}var Ze=class{constructor({dedupe:t=!1}={}){this.classRegistry=new rle,this.symbolRegistry=new KF(r=>{var e;return(e=r.description)!=null?e:""}),this.customTransformerRegistry=new ole,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const r=new Map,e=aj(t,r,this,this.dedupe),n={json:e.transformedValue};e.annotations&&(n.meta={...n.meta,values:e.annotations});const i=zle(r,this.dedupe);return i&&(n.meta={...n.meta,referentialEqualities:i}),n}deserialize(t){const{json:r,meta:e}=t;let n=q6(r);return e?.values&&(n=wle(n,e.values,this)),e?.referentialEqualities&&(n=$le(n,e.referentialEqualities)),n}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,r){this.classRegistry.register(t,r)}registerSymbol(t,r){this.symbolRegistry.register(t,r)}registerCustom(t,r){this.customTransformerRegistry.register({name:r,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}};Ze.defaultInstance=new Ze;Ze.serialize=Ze.defaultInstance.serialize.bind(Ze.defaultInstance);Ze.deserialize=Ze.defaultInstance.deserialize.bind(Ze.defaultInstance);Ze.stringify=Ze.defaultInstance.stringify.bind(Ze.defaultInstance);Ze.parse=Ze.defaultInstance.parse.bind(Ze.defaultInstance);Ze.registerClass=Ze.defaultInstance.registerClass.bind(Ze.defaultInstance);Ze.registerSymbol=Ze.defaultInstance.registerSymbol.bind(Ze.defaultInstance);Ze.registerCustom=Ze.defaultInstance.registerCustom.bind(Ze.defaultInstance);Ze.allowErrorProps=Ze.defaultInstance.allowErrorProps.bind(Ze.defaultInstance);Ze.serialize;Ze.deserialize;Ze.stringify;Ze.parse;Ze.registerClass;Ze.registerCustom;Ze.registerSymbol;Ze.allowErrorProps;ae();var eE="__devtools-kit-broadcast-messaging-event-key__",Tle="__devtools-kit:broadcast-channel__";function tE(){const t=new BroadcastChannel(Tle);return{post:r=>{t.postMessage(Ze.stringify({event:eE,data:r}))},on:r=>{t.onmessage=e=>{const n=Ze.parse(e.data);n.event===eE&&r(n.data)}}}}ae();ae();ae();var Lle="electron:client-context",kle="electron:proxy-context",Ole="electron:server-context",qs={CLIENT_TO_PROXY:"client->proxy",PROXY_TO_CLIENT:"proxy->client",PROXY_TO_SERVER:"proxy->server",SERVER_TO_PROXY:"server->proxy"};function xle(){return se[Lle]}function Hle(){return se[kle]}function Vle(){return se[Ole]}function Ple(){const t=xle();return{post:r=>{t.emit(qs.CLIENT_TO_PROXY,Ze.stringify(r))},on:r=>{t.on(qs.PROXY_TO_CLIENT,e=>{r(Ze.parse(e))})}}}ae();function Rle(){const t=Hle();return{post:r=>{},on:r=>{t.on(qs.SERVER_TO_PROXY,e=>{t.broadcast.emit(qs.PROXY_TO_CLIENT,e)}),t.on(qs.CLIENT_TO_PROXY,e=>{t.broadcast.emit(qs.PROXY_TO_SERVER,e)})}}}ae();function Dle(){const t=Vle();return{post:r=>{t.emit(qs.SERVER_TO_PROXY,Ze.stringify(r))},on:r=>{t.on(qs.PROXY_TO_SERVER,e=>{r(Ze.parse(e))})}}}ae();ae();ae();var Nle="electron:client-context",Sv={CLIENT_TO_PROXY:"client->proxy",PROXY_TO_CLIENT:"proxy->client",PROXY_TO_SERVER:"proxy->server",SERVER_TO_PROXY:"server->proxy"};function Ble(t){se[Nle]=t}function Fle(){let t=!1,r=null,e=null,n=null;function i(){try{clearTimeout(e),r=chrome.runtime.connect({name:`${chrome.devtools.inspectedWindow.tabId}`}),Ble(r),t=!1,r?.onMessage.addListener(n),r.onDisconnect.addListener(()=>{t=!0,r?.onMessage.removeListener(n),e=setTimeout(i,1e3)})}catch{t=!0}}return i(),{post:o=>{t||r?.postMessage(Ze.stringify(o))},on:o=>{n=a=>{t||o(Ze.parse(a))},r?.onMessage.addListener(n)}}}ae();function jle(){const t=chrome.runtime.connect({name:"content-script"});function r(n){window.postMessage({source:Sv.PROXY_TO_SERVER,payload:n},"*")}function e(n){if(n.data&&n.data.source===Sv.SERVER_TO_PROXY)try{t.postMessage(n.data.payload)}catch{}}return t.onMessage.addListener(r),window.addEventListener("message",e),t.onDisconnect.addListener(()=>{window.removeEventListener("message",e),r(Ze.stringify({event:"shutdown"}))}),r(Ze.stringify({event:"init"})),{post:n=>{},on:n=>{}}}ae();function Ule(){return{post:t=>{window.postMessage({source:Sv.SERVER_TO_PROXY,payload:Ze.stringify(t)},"*")},on:t=>{const r=e=>{e.data.source===Sv.PROXY_TO_SERVER&&e.data.payload&&t(Ze.parse(e.data.payload))};return window.addEventListener("message",r),()=>{window.removeEventListener("message",r)}}}}ae();ae();ae();var Tv="__devtools-kit-iframe-messaging-event-key__",Gle="iframe:server-context";function rE(){return se[Gle]}function Wle(){return ju?{post:t=>window.parent.postMessage(Ze.stringify({event:Tv,data:t}),"*"),on:t=>window.addEventListener("message",r=>{try{const e=Ze.parse(r.data);r.source===window.parent&&e.event===Tv&&t(e.data)}catch{}})}:{post:t=>{},on:t=>{}}}ae();function Zle(){return ju?{post:t=>{var r;const e=rE();(r=e?.contentWindow)==null||r.postMessage(Ze.stringify({event:Tv,data:t}),"*")},on:t=>{window.addEventListener("message",r=>{const e=rE();try{const n=Ze.parse(r.data);r.source===e?.contentWindow&&n.event===Tv&&t(n.data)}catch{}})}}:{post:t=>{},on:t=>{}}}ae();ae();ae();var Lv="__devtools-kit-vite-messaging-event-key__",lj="vite:client-context",Kle="vite:server-context";function Yle(){return se[lj]}function Xle(t){se[lj]=t}function qle(){return se[Kle]}function Qle(){const t=Yle();return{post:r=>{t?.send(Lv,Ze.stringify(r))},on:r=>{t?.on(Lv,e=>{r(Ze.parse(e))})}}}ae();function Jle(){var t;const r=qle(),e=(t=r.hot)!=null?t:r.ws;return{post:n=>e?.send(Lv,Ze.stringify(n)),on:n=>e?.on(Lv,i=>{n(Ze.parse(i))})}}ae();ae();ae();ae();var nE,iE;(iE=(nE=se).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(nE.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var oE,aE;(aE=(oE=se).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(oE.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var sE,lE;(lE=(sE=se).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(sE.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var cE,uE;(uE=(cE=se).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(cE.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var gE,hE;(hE=(gE=se).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||(gE.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var dE,fE;(fE=(dE=se).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(dE.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);function ece(t){se.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=t}function tce(){return se.__VUE_DEVTOOLS_KIT_RPC_CLIENT__}function cj(){return se.__VUE_DEVTOOLS_KIT_RPC_SERVER__}function rce(t){se.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=t}function nce(){return se.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__}function ice(t,r="client"){const e={iframe:{client:Wle,server:Zle}[r],electron:{client:Ple,proxy:Rle,server:Dle}[r],vite:{client:Qle,server:Jle}[r],broadcast:{client:tE,server:tE}[r],extension:{client:Fle,proxy:jle,server:Ule}[r]}[t];return e()}function Q6(t,r={}){const{channel:e,options:n,preset:i}=r,o=i?ice(i):e,a=Aie(t,{...n,...o,timeout:-1});if(i==="vite"){rce(a);return}return ece(a),a}ae();ae();ae();ae();ae();ae();function oce(t){let r="",e=null;try{r=Function.prototype.toString.call(t),e=String.prototype.match.call(r,/\([\s\S]*?\)/)}catch{}const n=e&&e[0],i=typeof n=="string"?n:"(?)",o=typeof t.name=="string"?t.name:"";return{_custom:{type:"function",displayText:`function ${Lb(o)}${i}`,tooltipText:r.trim()?`
${r}
`:null}}}function ace(t){const r=BigInt.prototype.toString.call(t);return{_custom:{type:"bigint",displayText:`BigInt(${r})`,value:r}}}function sce(t){const r=new Date(t.getTime());return r.setMinutes(r.getMinutes()-r.getTimezoneOffset()),{_custom:{type:"date",displayText:Date.prototype.toString.call(t),value:r.toISOString().slice(0,-1)}}}function lce(t){return{_custom:{type:"map",displayText:"Map",value:Object.fromEntries(t),readOnly:!0,fields:{abstract:!0}}}}function cce(t){const r=Array.from(t);return{_custom:{type:"set",displayText:`Set[${r.length}]`,value:r,readOnly:!0}}}function uce(t){const r={},e=t.getters||{},n=Object.keys(e);for(let i=0;i{try{return e[o]}catch(a){return a}}})}return r}function gce(t){if(t.length)return t.reduce((r,e)=>{const n=e.type||"data",i=r[n]=r[n]||{};return i[e.key]=e.value,r},{})}function hce(t){const r={},e=t.length;for(let n=0;n(${t.__file})`):r="Unknown Component",{_custom:{type:"component-definition",displayText:r,tooltipText:"Component definition",...t.__file?{file:t.__file}:{}}}}function Ace(t){try{return{_custom:{type:"HTMLElement",displayText:`<${t.tagName.toLowerCase()}>`,value:hce(t.attributes)}}}catch{return{_custom:{type:"HTMLElement",displayText:`${String(t)}`}}}}function Ice(t){if(ro(t,"_value",!0))return t._value;if(ro(t,"value",!0))return t.value}function pce(t){var r,e,n,i;const o=RF(t);if(o.ref||o.computed||o.reactive){const s=o.computed?"Computed":o.ref?"Ref":o.reactive?"Reactive":null,l=DF(o.reactive?t:Ice(t)),c=ro(t,"effect")?((e=(r=t.effect)==null?void 0:r.raw)==null?void 0:e.toString())||((i=(n=t.effect)==null?void 0:n.fn)==null?void 0:i.toString()):null;return{_custom:{type:s?.toLowerCase(),stateTypeName:s,value:l,...c?{tooltipText:`${c}`}:{}}}}if(ro(t,"__asyncLoader")&&typeof t.__asyncLoader=="function")return{_custom:{type:"component-definition",display:"Async component definition"}}}function mce(t,r,e,n){var i;if(t==="compilerOptions")return;const o=this[t],a=typeof o;if(Array.isArray(o)){const s=o.length;return s>kz?{_isArray:!0,length:s,items:o.slice(0,kz)}:o}else{if(typeof o=="string")return o.length>Lz?`${o.substring(0,Lz)}... (${o.length} total length)`:o;if(a==="undefined")return hf;if(o===Number.POSITIVE_INFINITY)return df;if(o===Number.NEGATIVE_INFINITY)return ff;if(typeof o=="function")return oce(o);if(a==="symbol")return`[native Symbol ${Symbol.prototype.toString.call(o)}]`;if(typeof o=="bigint")return ace(o);if(o!==null&&typeof o=="object"){const s=Object.prototype.toString.call(o);if(s==="[object Map]")return lce(o);if(s==="[object Set]")return cce(o);if(s==="[object RegExp]")return`[native RegExp ${RegExp.prototype.toString.call(o)}]`;if(s==="[object Date]")return sce(o);if(s==="[object Error]")return`[native Error ${o.message}<>${o.stack}]`;if(ro(o,"state",!0)&&ro(o,"_vm",!0))return dce(o);if(o.constructor&&o.constructor.name==="VueRouter")return fce(o);if(HF(o)){const c=Cce(o),u=n?.get(o);return u&&u`:(n?.set(o,e),c)}else{if(ro(o,"render",!0)&&typeof o.render=="function")return vce(o);if(o.constructor&&o.constructor.name==="VNode")return`[native VNode <${o.tag}>]`;if(typeof HTMLElement<"u"&&o instanceof HTMLElement)return Ace(o);if(((i=o.constructor)==null?void 0:i.name)==="Store"&&"_wrappedGetters"in o)return"[object Store]";if(ro(o,"currentRoute",!0))return"[object Router]"}const l=pce(o);if(l!=null)return l}else if(Number.isNaN(o))return Cf}return v1e(o)}ae();var q0=2*1024*1024;function CE(t,r){return r==="[object Object]"}function yce(t,r){return r==="[object Array]"}function bce(t){const r=t.constructor.name;return r==="Dep"&&"activeLink"in t||r==="Link"&&"dep"in t}function J6(t,r,e,n,i=0,o=new Map){let a,s,l,c,u;const g=n.get(t);if(g!=null)return g;const h=e.length,d=Object.prototype.toString.call(t);if(CE(t,d)){if(bce(t))return h;a={},n.set(t,h),e.push(a);const f=Object.keys(t);for(c=0,u=f.length;c{var a;return(a=r?.(i,o))==null?void 0:a.call(this)},e)}catch{n=_ce(t,r,e)}if(n.length>q0){const i=Math.ceil(n.length/q0),o=[];for(let a=0;a{X1e()},get ctx(){return ba},get api(){return ba.api}};const iI=G(!1),fd=async t=>{const r={file:t};return ma&&(r.host="chrome-extension"),Ae.value.openInEditor(r)};function e8(t,r={},e){for(const n in t){const i=t[n],o=e?`${e}:${n}`:n;typeof i=="object"&&i!==null?e8(i,r,o):typeof i=="function"&&(r[o]=i)}return r}var Mce={run:t=>t()},zce=()=>Mce,uj=typeof console.createTask<"u"?console.createTask:zce;function Ece(t,r){const e=r.shift(),n=uj(e);return t.reduce((i,o)=>i.then(()=>n.run(()=>o(...r))),Promise.resolve())}function Sce(t,r){const e=r.shift(),n=uj(e);return Promise.all(t.map(i=>n.run(()=>i(...r))))}function vp(t,r){for(const e of[...t])e(r)}var Tce=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,e={}){if(!t||typeof r!="function")return()=>{};const n=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!e.allowDeprecated){let o=i.message;o||(o=`${n} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let e,n=(...i)=>(typeof e=="function"&&e(),e=void 0,n=void 0,r(...i));return e=this.hook(t,n),e}removeHook(t,r){if(this._hooks[t]){const e=this._hooks[t].indexOf(r);e!==-1&&this._hooks[t].splice(e,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const e=this._hooks[t]||[];delete this._hooks[t];for(const n of e)this.hook(t,n)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=e8(t),e=Object.keys(r).map(n=>this.hook(n,r[n]));return()=>{for(const n of e.splice(0,e.length))n()}}removeHooks(t){const r=e8(t);for(const e in r)this.removeHook(e,r[e])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(Ece,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(Sce,t,...r)}callHookWith(t,r,...e){const n=this._before||this._after?{name:r,args:e,context:{}}:void 0;this._before&&vp(this._before,n);const i=t(r in this._hooks?[...this._hooks[r]]:[],e);return i instanceof Promise?i.finally(()=>{this._after&&n&&vp(this._after,n)}):(this._after&&n&&vp(this._after,n),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}};function gj(){return new Tce}var Q0=gj(),Nt=(t=>(t.INSPECTOR_TREE_UPDATED="inspector-tree-updated",t.INSPECTOR_STATE_UPDATED="inspector-state-updated",t.DEVTOOLS_STATE_UPDATED="devtools-state-updated",t.ROUTER_INFO_UPDATED="router-info-updated",t.TIMELINE_EVENT_UPDATED="timeline-event-updated",t.INSPECTOR_UPDATED="inspector-updated",t.ACTIVE_APP_UNMOUNTED="active-app-updated",t.DESTROY_DEVTOOLS_CLIENT="destroy-devtools-client",t.RELOAD_DEVTOOLS_CLIENT="reload-devtools-client",t))(Nt||{});function AE(){var t;const r=ur.ctx.state;return{connected:r.connected,clientConnected:!0,vueVersion:((t=r?.activeAppRecord)==null?void 0:t.version)||"",tabs:r.tabs,commands:r.commands,vitePluginDetected:r.vitePluginDetected,appRecords:r.appRecords.map(e=>({id:e.id,name:e.name,version:e.version,routerId:e.routerId})),activeAppRecordId:r.activeAppRecordId,timelineLayersState:r.timelineLayersState}}var IE={on:(t,r)=>{Q0.hook(t,r)},off:(t,r)=>{Q0.removeHook(t,r)},once:(t,r)=>{Q0.hookOnce(t,r)},emit:(t,...r)=>{Q0.callHook(t,...r)},heartbeat:()=>!0,devtoolsState:()=>AE(),async getInspectorTree(t){const r=await ur.ctx.api.getInspectorTree(t);return Gg(r)},async getInspectorState(t){const r=i1(t.inspectorId);r&&(r.selectedNodeId=t.nodeId);const e=await ur.ctx.api.getInspectorState(t);return Gg(e)},async editInspectorState(t){return await ur.ctx.api.editInspectorState(t)},sendInspectorState(t){return ur.ctx.api.sendInspectorState(t)},inspectComponentInspector(){return ur.ctx.api.inspectComponentInspector()},cancelInspectComponentInspector(){return ur.ctx.api.cancelInspectComponentInspector()},getComponentRenderCode(t){return ur.ctx.api.getComponentRenderCode(t)},scrollToComponent(t){return ur.ctx.api.scrollToComponent(t)},inspectDOM(t){return ur.ctx.api.inspectDOM(t)},getInspectorNodeActions(t){return hz(t)},getInspectorActions(t){return gz(t)},updateTimelineLayersState(t){return Bse(t)},callInspectorNodeAction(t,r,e){var n;const i=hz(t);if(i?.length){const o=i[r];(n=o.action)==null||n.call(o,e)}},callInspectorAction(t,r){var e;const n=gz(t);if(n?.length){const i=n[r];(e=i.action)==null||e.call(i)}},openInEditor(t){return ur.ctx.api.openInEditor(t)},async checkVueInspectorDetected(){return!!await ur.ctx.api.getVueInspector()},async enableVueInspector(){var t,r,e;const n=await((e=(r=(t=ur)==null?void 0:t.api)==null?void 0:r.getVueInspector)==null?void 0:e.call(r));n&&await n.enable()},async toggleApp(t){return ur.ctx.api.toggleApp(t)},updatePluginSettings(t,r,e){return ur.ctx.api.updatePluginSettings(t,r,e)},getPluginSettings(t){return ur.ctx.api.getPluginSettings(t)},getRouterInfo(){return D1e},navigate(t){var r;return(r=Nz.value)==null?void 0:r.push(t).catch(()=>({}))},getMatchedRoutes(t){var r,e;const n=console.warn;console.warn=()=>{};const i=(e=(r=Nz.value)==null?void 0:r.resolve({path:t||"/"}).matched)!=null?e:[];return console.warn=n,i},toggleClientConnected(t){Xse(t)},getCustomInspector(){return Eb()},getInspectorInfo(t){return jse(t)},unhighlight(){ur.ctx.hooks.callHook(LF.COMPONENT_UNHIGHLIGHT)},updateDevToolsClientDetected(t){ZF(t)},initDevToolsServerListener(){const r=cj().broadcast;ur.ctx.hooks.hook(xs.SEND_INSPECTOR_TREE_TO_CLIENT,e=>{r.emit("inspector-tree-updated",Gg(e))}),ur.ctx.hooks.hook(xs.SEND_INSPECTOR_STATE_TO_CLIENT,e=>{r.emit("inspector-state-updated",Gg(e))}),ur.ctx.hooks.hook(xs.DEVTOOLS_STATE_UPDATED,()=>{r.emit("devtools-state-updated",AE())}),ur.ctx.hooks.hook(xs.ROUTER_INFO_UPDATED,({state:e})=>{r.emit("router-info-updated",e)}),ur.ctx.hooks.hook(xs.SEND_TIMELINE_EVENT_TO_CLIENT,e=>{r.emit("timeline-event-updated",Gg(e))}),ur.ctx.hooks.hook(xs.SEND_INSPECTOR_TO_CLIENT,e=>{r.emit("inspector-updated",e)}),ur.ctx.hooks.hook(xs.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT,()=>{r.emit("active-app-updated")})}},Ae=new Proxy({value:{},functions:{}},{get(t,r){const e=tce();if(r==="value")return e;if(r==="functions")return e.$functions}});new Proxy({value:{},functions:{}},{get(t,r){const e=cj();if(r==="value")return e;if(r==="functions")return e.functions}});function Ga(t){let r=null,e=0;function n(){var i,o;(o=(i=Ae.value)==null?void 0:i.heartbeat)==null||o.call(i).then(()=>{t(),clearTimeout(r)}).catch(()=>{})}r=setInterval(()=>{e>=30&&clearTimeout(r),e++,n()},e*200+200),n()}var J0=gj(),Lce={on:(t,r)=>{J0.hook(t,r)},off:(t,r)=>{J0.removeHook(t,r)},once:(t,r)=>{J0.hookOnce(t,r)},emit:(t,...r)=>{J0.callHook(t,...r)},heartbeat:()=>!0},Mo=new Proxy({value:{},functions:{}},{get(t,r){const e=nce();if(r==="value")return e;if(r==="functions")return e?.$functions}});function hj(t){let r=null;function e(){var n,i;(i=(n=Mo.value)==null?void 0:n.heartbeat)==null||i.call(n).then(()=>{clearTimeout(r),t()}).catch(()=>({})),r=setTimeout(()=>{e()},80)}e()}function kce(){Q6(Lce,{preset:"vite"})}var dj=Symbol.for("__VueDevToolsStateSymbol__");function Oce(){return{install(t){const r=xce();r.getDevToolsState(),t.provide(dj,r),t.config.globalProperties.$getDevToolsState=r.getDevToolsState,t.config.globalProperties.$disconnectDevToolsClient=()=>{r.clientConnected.value=!1,r.connected.value=!1}}}}function xce(){const t=G(!1),r=G(!1),e=G(""),n=G([]),i=G([]),o=G(!1),a=G([]),s=G(""),l=G({});function c(g){t.value=g.connected,r.value=g.clientConnected,e.value=g.vueVersion||"",n.value=g.tabs,i.value=g.commands,o.value=g.vitePluginDetected,a.value=g.appRecords,s.value=g.activeAppRecordId,l.value=g.timelineLayersState}function u(){Ga(()=>{Ae.value.devtoolsState().then(g=>{c(g)}),Ae.functions.off("devtools-state-updated",c),Ae.functions.on("devtools-state-updated",c)})}return{getDevToolsState:u,connected:t,clientConnected:r,vueVersion:e,tabs:n,commands:i,vitePluginDetected:o,appRecords:a,activeAppRecordId:s,timelineLayersState:l}}function uo(){return br(dj)}var h2=[];function Hb(t){const{connected:r,clientConnected:e}=uo();h2.push(t),fn(()=>{h2.splice(h2.indexOf(t),1)});const n=F(()=>e.value&&r.value);if(n.value)t();else{const i=Je(n,o=>{o&&(t(),i())})}return()=>{h2.splice(h2.indexOf(t),1)}}function fj(){h2.forEach(t=>t())}async function Hce(t="/",r=!0){try{const e=`${t}@vite/client`,n=await fetch(e);if((await n.text()).startsWith("<")||!n.headers.get("content-type")?.includes("javascript"))throw new Error("Not javascript");return await import(e)}catch{r&&console.error(`[vite-hot-client] Failed to import "${t}@vite/client"`)}}/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT */const d2=typeof document<"u";function Cj(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Vce(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Cj(t.default)}const gr=Object.assign;function Ap(t,r){const e={};for(const n in r){const i=r[n];e[n]=Po(i)?i.map(t):t(i)}return e}const zh=()=>{},Po=Array.isArray,vj=/#/g,Pce=/&/g,Rce=/\//g,Dce=/=/g,Nce=/\?/g,Aj=/\+/g,Bce=/%5B/g,Fce=/%5D/g,Ij=/%5E/g,jce=/%60/g,pj=/%7B/g,Uce=/%7C/g,mj=/%7D/g,Gce=/%20/g;function Vb(t){return encodeURI(""+t).replace(Uce,"|").replace(Bce,"[").replace(Fce,"]")}function Wce(t){return Vb(t).replace(pj,"{").replace(mj,"}").replace(Ij,"^")}function t8(t){return Vb(t).replace(Aj,"%2B").replace(Gce,"+").replace(vj,"%23").replace(Pce,"%26").replace(jce,"`").replace(pj,"{").replace(mj,"}").replace(Ij,"^")}function Zce(t){return t8(t).replace(Dce,"%3D")}function Kce(t){return Vb(t).replace(vj,"%23").replace(Nce,"%3F")}function Yce(t){return t==null?"":Kce(t).replace(Rce,"%2F")}function Cd(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Xce=/\/$/,qce=t=>t.replace(Xce,"");function Ip(t,r,e="/"){let n,i={},o="",a="";const s=r.indexOf("#");let l=r.indexOf("?");return s=0&&(l=-1),l>-1&&(n=r.slice(0,l),o=r.slice(l+1,s>-1?s:r.length),i=t(o)),s>-1&&(n=n||r.slice(0,s),a=r.slice(s,r.length)),n=t2e(n??r,e),{fullPath:n+(o&&"?")+o+a,path:n,query:i,hash:Cd(a)}}function Qce(t,r){const e=r.query?t(r.query):"";return r.path+(e&&"?")+e+(r.hash||"")}function Jce(t,r,e){const n=r.matched.length-1,i=e.matched.length-1;return n>-1&&n===i&&uu(r.matched[n],e.matched[i])&&yj(r.params,e.params)&&t(r.query)===t(e.query)&&r.hash===e.hash}function uu(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function yj(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const e in t)if(!e2e(t[e],r[e]))return!1;return!0}function e2e(t,r){return Po(t)?pE(t,r):Po(r)?pE(r,t):t===r}function pE(t,r){return Po(r)?t.length===r.length&&t.every((e,n)=>e===r[n]):t.length===1&&t[0]===r}function t2e(t,r){if(t.startsWith("/"))return t;if(!t)return r;const e=r.split("/"),n=t.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=e.length-1,a,s;for(a=0;a1&&o--;else break;return e.slice(0,o).join("/")+"/"+n.slice(a).join("/")}const Ts={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var vd;(function(t){t.pop="pop",t.push="push"})(vd||(vd={}));var kv;(function(t){t.back="back",t.forward="forward",t.unknown=""})(kv||(kv={}));const pp="";function r2e(t){if(!t)if(d2){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),qce(t)}const n2e=/^[^#]+#/;function i2e(t,r){return t.replace(n2e,"#")+r}function o2e(t,r){const e=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:r.behavior,left:n.left-e.left-(r.left||0),top:n.top-e.top-(r.top||0)}}const a2e=()=>({left:window.scrollX,top:window.scrollY});function s2e(t){let r;if("el"in t){const e=t.el,n=typeof e=="string"&&e.startsWith("#"),i=typeof e=="string"?n?document.getElementById(e.slice(1)):document.querySelector(e):e;if(!i)return;r=o2e(i,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.scrollX,r.top!=null?r.top:window.scrollY)}function mE(t,r){return(history.state?history.state.position-r:-1)+t}const r8=new Map;function l2e(t,r){r8.set(t,r)}function c2e(t){const r=r8.get(t);return r8.delete(t),r}function u2e(t=""){let r=[],e=[pp],n=0;t=r2e(t);function i(s){n++,n!==e.length&&e.splice(n),e.push(s)}function o(s,l,{direction:c,delta:u}){const g={direction:c,delta:u,type:vd.pop};for(const h of r)h(s,l,g)}const a={location:pp,state:{},base:t,createHref:i2e.bind(null,t),replace(s){e.splice(n--,1),i(s)},push(s,l){i(s)},listen(s){return r.push(s),()=>{const l=r.indexOf(s);l>-1&&r.splice(l,1)}},destroy(){r=[],e=[pp],n=0},go(s,l=!0){const c=this.location,u=s<0?kv.back:kv.forward;n=Math.max(0,Math.min(n+s,e.length-1)),l&&o(this.location,c,{direction:u,delta:s})}};return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e[n]}),a}function g2e(t){return typeof t=="string"||t&&typeof t=="object"}function bj(t){return typeof t=="string"||typeof t=="symbol"}const wj=Symbol("");var yE;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(yE||(yE={}));function gu(t,r){return gr(new Error,{type:t,[wj]:!0},r)}function Va(t,r){return t instanceof Error&&wj in t&&(r==null||!!(t.type&r))}const bE="[^/]+?",h2e={sensitive:!1,strict:!1,start:!0,end:!0},d2e=/[.+*?^${}()[\]/\\]/g;function f2e(t,r){const e=gr({},h2e,r),n=[];let i=e.start?"^":"";const o=[];for(const c of t){const u=c.length?[]:[90];e.strict&&!c.length&&(i+="/");for(let g=0;gr.length?r.length===1&&r[0]===80?1:-1:0}function $j(t,r){let e=0;const n=t.score,i=r.score;for(;e0&&r[r.length-1]<0}const v2e={type:0,value:""},A2e=/[a-zA-Z0-9_]/;function I2e(t){if(!t)return[[]];if(t==="/")return[[v2e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(d){throw new Error(`ERR (${e})/"${c}": ${d}`)}let e=0,n=e;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,c="",u="";function g(){c&&(e===0?o.push({type:0,value:c}):e===1||e===2||e===3?(o.length>1&&(l==="*"||l==="+")&&r(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):r("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;s{a(p)}:zh}function a(g){if(bj(g)){const h=n.get(g);h&&(n.delete(g),e.splice(e.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=e.indexOf(g);h>-1&&(e.splice(h,1),g.record.name&&n.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function s(){return e}function l(g){const h=w2e(g,e);e.splice(h,0,g),g.record.name&&!ME(g)&&n.set(g.record.name,g)}function c(g,h){let d,f={},C,v;if("name"in g&&g.name){if(d=n.get(g.name),!d)throw gu(1,{location:g});v=d.record.name,f=gr($E(h.params,d.keys.filter(p=>!p.optional).concat(d.parent?d.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),g.params&&$E(g.params,d.keys.map(p=>p.name))),C=d.stringify(f)}else if(g.path!=null)C=g.path,d=e.find(p=>p.re.test(C)),d&&(f=d.parse(C),v=d.record.name);else{if(d=h.name?n.get(h.name):e.find(p=>p.re.test(h.path)),!d)throw gu(1,{location:g,currentLocation:h});v=d.record.name,f=gr({},h.params,g.params),C=d.stringify(f)}const A=[];let I=d;for(;I;)A.unshift(I.record),I=I.parent;return{name:v,path:C,params:f,matched:A,meta:b2e(A)}}t.forEach(g=>o(g));function u(){e.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function $E(t,r){const e={};for(const n of r)n in t&&(e[n]=t[n]);return e}function _E(t){const r={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:y2e(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(r,"mods",{value:{}}),r}function y2e(t){const r={},e=t.props||!1;if("component"in t)r.default=e;else for(const n in t.components)r[n]=typeof e=="object"?e[n]:e;return r}function ME(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function b2e(t){return t.reduce((r,e)=>gr(r,e.meta),{})}function zE(t,r){const e={};for(const n in t)e[n]=n in r?r[n]:t[n];return e}function w2e(t,r){let e=0,n=r.length;for(;e!==n;){const o=e+n>>1;$j(t,r[o])<0?n=o:e=o+1}const i=$2e(t);return i&&(n=r.lastIndexOf(i,n-1)),n}function $2e(t){let r=t;for(;r=r.parent;)if(_j(r)&&$j(t,r)===0)return r}function _j({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function _2e(t){const r={};if(t===""||t==="?")return r;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;io&&t8(o)):[n&&t8(n)]).forEach(o=>{o!==void 0&&(r+=(r.length?"&":"")+e,o!=null&&(r+="="+o))})}return r}function M2e(t){const r={};for(const e in t){const n=t[e];n!==void 0&&(r[e]=Po(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return r}const z2e=Symbol(""),SE=Symbol(""),oI=Symbol(""),Pb=Symbol(""),n8=Symbol("");function Wg(){let t=[];function r(n){return t.push(n),()=>{const i=t.indexOf(n);i>-1&&t.splice(i,1)}}function e(){t=[]}return{add:r,list:()=>t.slice(),reset:e}}function Us(t,r,e,n,i,o=a=>a()){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=h=>{h===!1?l(gu(4,{from:e,to:r})):h instanceof Error?l(h):g2e(h)?l(gu(2,{from:r,to:h})):(a&&n.enterCallbacks[i]===a&&typeof h=="function"&&a.push(h),s())},u=o(()=>t.call(n&&n.instances[i],r,e,c));let g=Promise.resolve(u);t.length<3&&(g=g.then(c)),g.catch(h=>l(h))})}function mp(t,r,e,n,i=o=>o()){const o=[];for(const a of t)for(const s in a.components){let l=a.components[s];if(!(r!=="beforeRouteEnter"&&!a.instances[s]))if(Cj(l)){const u=(l.__vccOpts||l)[r];u&&o.push(Us(u,e,n,a,s,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const g=Vce(u)?u.default:u;a.mods[s]=u,a.components[s]=g;const d=(g.__vccOpts||g)[r];return d&&Us(d,e,n,a,s,i)()}))}}return o}function TE(t){const r=br(oI),e=br(Pb),n=F(()=>{const l=y(t.to);return r.resolve(l)}),i=F(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],g=e.matched;if(!u||!g.length)return-1;const h=g.findIndex(uu.bind(null,u));if(h>-1)return h;const d=LE(l[c-2]);return c>1&&LE(u)===d&&g[g.length-1].path!==d?g.findIndex(uu.bind(null,l[c-2])):h}),o=F(()=>i.value>-1&&T2e(e.params,n.value.params)),a=F(()=>i.value>-1&&i.value===e.matched.length-1&&yj(e.params,n.value.params));function s(l={}){return S2e(l)?r[y(t.replace)?"replace":"push"](y(t.to)).catch(zh):Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:o,isExactActive:a,navigate:s}}const E2e=ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:TE,setup(t,{slots:r}){const e=ya(TE(t)),{options:n}=br(oI),i=F(()=>({[kE(t.activeClass,n.linkActiveClass,"router-link-active")]:e.isActive,[kE(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:e.isExactActive}));return()=>{const o=r.default&&r.default(e);return t.custom?o:fc("a",{"aria-current":e.isExactActive?t.ariaCurrentValue:null,href:e.href,onClick:e.navigate,class:i.value},o)}}}),Mj=E2e;function S2e(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function T2e(t,r){for(const e in r){const n=r[e],i=t[e];if(typeof n=="string"){if(n!==i)return!1}else if(!Po(i)||i.length!==n.length||n.some((o,a)=>o!==i[a]))return!1}return!0}function LE(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const kE=(t,r,e)=>t??r??e,L2e=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:e}){const n=br(n8),i=F(()=>t.route||n.value),o=br(SE,0),a=F(()=>{let c=y(o);const{matched:u}=i.value;let g;for(;(g=u[c])&&!g.components;)c++;return c}),s=F(()=>i.value.matched[a.value]);Di(SE,F(()=>a.value+1)),Di(z2e,s),Di(n8,i);const l=G();return Je(()=>[l.value,s.value,t.name],([c,u,g],[h,d,f])=>{u&&(u.instances[g]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!uu(u,d)||!h)&&(u.enterCallbacks[g]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,g=s.value,h=g&&g.components[u];if(!h)return OE(e.default,{Component:h,route:c});const d=g.props[u],f=d?d===!0?c.params:typeof d=="function"?d(c):d:null,v=fc(h,gr({},f,r,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(g.instances[u]=null)},ref:l}));return OE(e.default,{Component:v,route:c})||v}}});function OE(t,r){if(!t)return null;const e=t(r);return e.length===1?e[0]:e}const k2e=L2e;function O2e(t){const r=m2e(t.routes,t),e=t.parseQuery||_2e,n=t.stringifyQuery||EE,i=t.history,o=Wg(),a=Wg(),s=Wg(),l=Bi(Ts);let c=Ts;d2&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ap.bind(null,Z=>""+Z),g=Ap.bind(null,Yce),h=Ap.bind(null,Cd);function d(Z,ie){let R,V;return bj(Z)?(R=r.getRecordMatcher(Z),V=ie):V=Z,r.addRoute(V,R)}function f(Z){const ie=r.getRecordMatcher(Z);ie&&r.removeRoute(ie)}function C(){return r.getRoutes().map(Z=>Z.record)}function v(Z){return!!r.getRecordMatcher(Z)}function A(Z,ie){if(ie=gr({},ie||l.value),typeof Z=="string"){const $=Ip(e,Z,ie.path),x=r.resolve({path:$.path},ie),j=i.createHref($.fullPath);return gr($,x,{params:h(x.params),hash:Cd($.hash),redirectedFrom:void 0,href:j})}let R;if(Z.path!=null)R=gr({},Z,{path:Ip(e,Z.path,ie.path).path});else{const $=gr({},Z.params);for(const x in $)$[x]==null&&delete $[x];R=gr({},Z,{params:g($)}),ie.params=g(ie.params)}const V=r.resolve(R,ie),N=Z.hash||"";V.params=u(h(V.params));const K=Qce(n,gr({},Z,{hash:Wce(N),path:V.path})),E=i.createHref(K);return gr({fullPath:K,hash:N,query:n===EE?M2e(Z.query):Z.query||{}},V,{redirectedFrom:void 0,href:E})}function I(Z){return typeof Z=="string"?Ip(e,Z,l.value.path):gr({},Z)}function p(Z,ie){if(c!==Z)return gu(8,{from:ie,to:Z})}function m(Z){return L(Z)}function b(Z){return m(gr(I(Z),{replace:!0}))}function _(Z){const ie=Z.matched[Z.matched.length-1];if(ie&&ie.redirect){const{redirect:R}=ie;let V=typeof R=="function"?R(Z):R;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=I(V):{path:V},V.params={}),gr({query:Z.query,hash:Z.hash,params:V.path!=null?{}:Z.params},V)}}function L(Z,ie){const R=c=A(Z),V=l.value,N=Z.state,K=Z.force,E=Z.replace===!0,$=_(R);if($)return L(gr(I($),{state:typeof $=="object"?gr({},N,$.state):N,force:K,replace:E}),ie||R);const x=R;x.redirectedFrom=ie;let j;return!K&&Jce(n,V,R)&&(j=gu(16,{to:x,from:V}),De(V,V,!0,!1)),(j?Promise.resolve(j):T(x,V)).catch(U=>Va(U)?Va(U,2)?U:nt(U):Me(U,x,V)).then(U=>{if(U){if(Va(U,2))return L(gr({replace:E},I(U.to),{state:typeof U.to=="object"?gr({},N,U.to.state):N,force:K}),ie||x)}else U=O(x,V,!0,E,N);return k(x,V,U),U})}function M(Z,ie){const R=p(Z,ie);return R?Promise.reject(R):Promise.resolve()}function S(Z){const ie=Ue.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(Z):Z()}function T(Z,ie){let R;const[V,N,K]=x2e(Z,ie);R=mp(V.reverse(),"beforeRouteLeave",Z,ie);for(const $ of V)$.leaveGuards.forEach(x=>{R.push(Us(x,Z,ie))});const E=M.bind(null,Z,ie);return R.push(E),ft(R).then(()=>{R=[];for(const $ of o.list())R.push(Us($,Z,ie));return R.push(E),ft(R)}).then(()=>{R=mp(N,"beforeRouteUpdate",Z,ie);for(const $ of N)$.updateGuards.forEach(x=>{R.push(Us(x,Z,ie))});return R.push(E),ft(R)}).then(()=>{R=[];for(const $ of K)if($.beforeEnter)if(Po($.beforeEnter))for(const x of $.beforeEnter)R.push(Us(x,Z,ie));else R.push(Us($.beforeEnter,Z,ie));return R.push(E),ft(R)}).then(()=>(Z.matched.forEach($=>$.enterCallbacks={}),R=mp(K,"beforeRouteEnter",Z,ie,S),R.push(E),ft(R))).then(()=>{R=[];for(const $ of a.list())R.push(Us($,Z,ie));return R.push(E),ft(R)}).catch($=>Va($,8)?$:Promise.reject($))}function k(Z,ie,R){s.list().forEach(V=>S(()=>V(Z,ie,R)))}function O(Z,ie,R,V,N){const K=p(Z,ie);if(K)return K;const E=ie===Ts,$=d2?history.state:{};R&&(V||E?i.replace(Z.fullPath,gr({scroll:E&&$&&$.scroll},N)):i.push(Z.fullPath,N)),l.value=Z,De(Z,ie,R,E),nt()}let P;function B(){P||(P=i.listen((Z,ie,R)=>{if(!ot.listening)return;const V=A(Z),N=_(V);if(N){L(gr(N,{replace:!0}),V).catch(zh);return}c=V;const K=l.value;d2&&l2e(mE(K.fullPath,R.delta),a2e()),T(V,K).catch(E=>Va(E,12)?E:Va(E,2)?(L(E.to,V).then($=>{Va($,20)&&!R.delta&&R.type===vd.pop&&i.go(-1,!1)}).catch(zh),Promise.reject()):(R.delta&&i.go(-R.delta,!1),Me(E,V,K))).then(E=>{E=E||O(V,K,!1),E&&(R.delta&&!Va(E,8)?i.go(-R.delta,!1):R.type===vd.pop&&Va(E,20)&&i.go(-1,!1)),k(V,K,E)}).catch(zh)}))}let te=Wg(),ee=Wg(),re;function Me(Z,ie,R){nt(Z);const V=ee.list();return V.length?V.forEach(N=>N(Z,ie,R)):console.error(Z),Promise.reject(Z)}function He(){return re&&l.value!==Ts?Promise.resolve():new Promise((Z,ie)=>{te.add([Z,ie])})}function nt(Z){return re||(re=!Z,B(),te.list().forEach(([ie,R])=>Z?R(Z):ie()),te.reset()),Z}function De(Z,ie,R,V){const{scrollBehavior:N}=t;if(!d2||!N)return Promise.resolve();const K=!R&&c2e(mE(Z.fullPath,0))||(V||!R)&&history.state&&history.state.scroll||null;return dn().then(()=>N(Z,ie,K)).then(E=>E&&s2e(E)).catch(E=>Me(E,Z,ie))}const be=Z=>i.go(Z);let Ne;const Ue=new Set,ot={currentRoute:l,listening:!0,addRoute:d,removeRoute:f,clearRoutes:r.clearRoutes,hasRoute:v,getRoutes:C,resolve:A,options:t,push:m,replace:b,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:ee.add,isReady:He,install(Z){const ie=this;Z.component("RouterLink",Mj),Z.component("RouterView",k2e),Z.config.globalProperties.$router=ie,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),d2&&!Ne&&l.value===Ts&&(Ne=!0,m(i.location).catch(N=>{}));const R={};for(const N in Ts)Object.defineProperty(R,N,{get:()=>l.value[N],enumerable:!0});Z.provide(oI,ie),Z.provide(Pb,lb(R)),Z.provide(n8,l);const V=Z.unmount;Ue.add(Z),Z.unmount=function(){Ue.delete(Z),Ue.size<1&&(c=Ts,P&&P(),P=null,l.value=Ts,Ne=!1,re=!1),V()}}};function ft(Z){return Z.reduce((ie,R)=>ie.then(()=>S(R)),Promise.resolve())}return ot}function x2e(t,r){const e=[],n=[],i=[],o=Math.max(r.matched.length,t.matched.length);for(let a=0;auu(c,s))?n.push(s):e.push(s));const l=t.matched[a];l&&(r.matched.find(c=>uu(c,l))||i.push(l))}return[e,n,i]}function Cc(){return br(oI)}function vf(t){return br(Pb)}const H2e="modulepreload",V2e=function(t,r){return new URL(t,r).href},xE={},Si=function(r,e,n){let i=Promise.resolve();if(e&&e.length>0){const a=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");i=Promise.allSettled(e.map(c=>{if(c=V2e(c,n),c in xE)return;xE[c]=!0;const u=c.endsWith(".css"),g=u?'[rel="stylesheet"]':"";if(!!n)for(let f=a.length-1;f>=0;f--){const C=a[f];if(C.href===c&&(!u||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${g}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":H2e,u||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((f,C)=>{d.addEventListener("load",f),d.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return r().catch(o)})},P2e=["top","right","bottom","left"],HE=["start","end"],VE=P2e.reduce((t,r)=>t.concat(r,r+"-"+HE[0],r+"-"+HE[1]),[]),Ad=Math.min,Cl=Math.max,R2e={left:"right",right:"left",bottom:"top",top:"bottom"},D2e={start:"end",end:"start"};function i8(t,r,e){return Cl(t,Ad(r,e))}function vc(t,r){return typeof t=="function"?t(r):t}function wa(t){return t.split("-")[0]}function Lo(t){return t.split("-")[1]}function zj(t){return t==="x"?"y":"x"}function Rb(t){return t==="y"?"height":"width"}function Af(t){return["top","bottom"].includes(wa(t))?"y":"x"}function Db(t){return zj(Af(t))}function Ej(t,r,e){e===void 0&&(e=!1);const n=Lo(t),i=Db(t),o=Rb(i);let a=i==="x"?n===(e?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[o]>r.floating[o]&&(a=xv(a)),[a,xv(a)]}function N2e(t){const r=xv(t);return[Ov(t),r,Ov(r)]}function Ov(t){return t.replace(/start|end/g,r=>D2e[r])}function B2e(t,r,e){const n=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?r?i:n:r?n:i;case"left":case"right":return r?o:a;default:return[]}}function F2e(t,r,e,n){const i=Lo(t);let o=B2e(wa(t),e==="start",n);return i&&(o=o.map(a=>a+"-"+i),r&&(o=o.concat(o.map(Ov)))),o}function xv(t){return t.replace(/left|right|bottom|top/g,r=>R2e[r])}function j2e(t){return{top:0,right:0,bottom:0,left:0,...t}}function Sj(t){return typeof t!="number"?j2e(t):{top:t,right:t,bottom:t,left:t}}function Eh(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function PE(t,r,e){let{reference:n,floating:i}=t;const o=Af(r),a=Db(r),s=Rb(a),l=wa(r),c=o==="y",u=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let d;switch(l){case"top":d={x:u,y:n.y-i.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:g};break;case"left":d={x:n.x-i.width,y:g};break;default:d={x:n.x,y:n.y}}switch(Lo(r)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1);break}return d}const U2e=async(t,r,e)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=e,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(r));let c=await a.getElementRects({reference:t,floating:r,strategy:i}),{x:u,y:g}=PE(c,n,l),h=n,d={},f=0;for(let C=0;C({name:"arrow",options:t,async fn(r){const{x:e,y:n,placement:i,rects:o,platform:a,elements:s}=r,{element:l,padding:c=0}=vc(t,r)||{};if(l==null)return{};const u=Sj(c),g={x:e,y:n},h=Db(i),d=Rb(h),f=await a.getDimensions(l),C=h==="y",v=C?"top":"left",A=C?"bottom":"right",I=C?"clientHeight":"clientWidth",p=o.reference[d]+o.reference[h]-g[h]-o.floating[d],m=g[h]-o.reference[h],b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=b?b[I]:0;(!_||!await(a.isElement==null?void 0:a.isElement(b)))&&(_=s.floating[I]||o.floating[d]);const L=p/2-m/2,M=_/2-f[d]/2-1,S=Ad(u[v],M),T=Ad(u[A],M),k=S,O=_-f[d]-T,P=_/2-f[d]/2+L,B=i8(k,P,O),ee=Lo(i)!=null&&P!=B&&o.reference[d]/2-(PLo(i)===t),...e.filter(i=>Lo(i)!==t)]:e.filter(i=>wa(i)===i)).filter(i=>t?Lo(i)===t||(r?Ov(i)!==i:!1):!0)}const Z2e=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(r){var e,n,i;const{rects:o,middlewareData:a,placement:s,platform:l,elements:c}=r,{crossAxis:u=!1,alignment:g,allowedPlacements:h=VE,autoAlignment:d=!0,...f}=vc(t,r),C=g!==void 0||h===VE?W2e(g||null,d,h):h,v=await aI(r,f),A=((e=a.autoPlacement)==null?void 0:e.index)||0,I=C[A];if(I==null)return{};const p=Ej(I,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(s!==I)return{reset:{placement:C[0]}};const m=[v[wa(I)],v[p[0]],v[p[1]]],b=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:I,overflows:m}],_=C[A+1];if(_)return{data:{index:A+1,overflows:b},reset:{placement:_}};const L=b.map(T=>{const k=Lo(T.placement);return[T.placement,k&&u?T.overflows.slice(0,2).reduce((O,P)=>O+P,0):T.overflows[0],T.overflows]}).sort((T,k)=>T[1]-k[1]),S=((i=L.filter(T=>T[2].slice(0,Lo(T[0])?2:3).every(k=>k<=0))[0])==null?void 0:i[0])||L[0][0];return S!==s?{data:{index:A+1,overflows:b},reset:{placement:S}}:{}}}},K2e=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(r){var e;const{placement:n,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=r,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:f=!0,...C}=vc(t,r),v=wa(n),A=wa(a)===a,I=await(s.isRTL==null?void 0:s.isRTL(l.floating)),p=g||(A||!f?[xv(a)]:N2e(a));!g&&d!=="none"&&p.push(...F2e(a,f,d,I));const m=[a,...p],b=await aI(r,C),_=[];let L=((e=i.flip)==null?void 0:e.overflows)||[];if(c&&_.push(b[v]),u){const k=Ej(n,o,I);_.push(b[k[0]],b[k[1]])}if(L=[...L,{placement:n,overflows:_}],!_.every(k=>k<=0)){var M,S;const k=(((M=i.flip)==null?void 0:M.index)||0)+1,O=m[k];if(O)return{data:{index:k,overflows:L},reset:{placement:O}};let P=(S=L.filter(B=>B.overflows[0]<=0).sort((B,te)=>B.overflows[1]-te.overflows[1])[0])==null?void 0:S.placement;if(!P)switch(h){case"bestFit":{var T;const B=(T=L.map(te=>[te.placement,te.overflows.filter(ee=>ee>0).reduce((ee,re)=>ee+re,0)]).sort((te,ee)=>te[1]-ee[1])[0])==null?void 0:T[0];B&&(P=B);break}case"initialPlacement":P=a;break}if(n!==P)return{reset:{placement:P}}}return{}}}};async function Y2e(t,r){const{placement:e,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=wa(e),s=Lo(e),l=Af(e)==="y",c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,g=vc(r,t);let{mainAxis:h,crossAxis:d,alignmentAxis:f}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return s&&typeof f=="number"&&(d=s==="end"?f*-1:f),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}const X2e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(r){const{x:e,y:n}=r,i=await Y2e(r,t);return{x:e+i.x,y:n+i.y,data:i}}}},q2e=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(r){const{x:e,y:n,placement:i}=r,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:A,y:I}=v;return{x:A,y:I}}},...l}=vc(t,r),c={x:e,y:n},u=await aI(r,l),g=Af(wa(i)),h=zj(g);let d=c[h],f=c[g];if(o){const v=h==="y"?"top":"left",A=h==="y"?"bottom":"right",I=d+u[v],p=d-u[A];d=i8(I,d,p)}if(a){const v=g==="y"?"top":"left",A=g==="y"?"bottom":"right",I=f+u[v],p=f-u[A];f=i8(I,f,p)}const C=s.fn({...r,[h]:d,[g]:f});return{...C,data:{x:C.x-e,y:C.y-n}}}}},Q2e=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(r){const{placement:e,rects:n,platform:i,elements:o}=r,{apply:a=()=>{},...s}=vc(t,r),l=await aI(r,s),c=wa(e),u=Lo(e),g=Af(e)==="y",{width:h,height:d}=n.floating;let f,C;c==="top"||c==="bottom"?(f=c,C=u===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(C=c,f=u==="end"?"top":"bottom");const v=d-l[f],A=h-l[C],I=!r.middlewareData.shift;let p=v,m=A;if(g){const _=h-l.left-l.right;m=u||I?Ad(A,_):_}else{const _=d-l.top-l.bottom;p=u||I?Ad(v,_):_}if(I&&!u){const _=Cl(l.left,0),L=Cl(l.right,0),M=Cl(l.top,0),S=Cl(l.bottom,0);g?m=h-2*(_!==0||L!==0?_+L:Cl(l.left,l.right)):p=d-2*(M!==0||S!==0?M+S:Cl(l.top,l.bottom))}await a({...r,availableWidth:m,availableHeight:p});const b=await i.getDimensions(o.floating);return h!==b.width||d!==b.height?{reset:{rects:!0}}:{}}}};function no(t){var r;return((r=t.ownerDocument)==null?void 0:r.defaultView)||window}function ha(t){return no(t).getComputedStyle(t)}const RE=Math.min,Sh=Math.max,Hv=Math.round;function Tj(t){const r=ha(t);let e=parseFloat(r.width),n=parseFloat(r.height);const i=t.offsetWidth,o=t.offsetHeight,a=Hv(e)!==i||Hv(n)!==o;return a&&(e=i,n=o),{width:e,height:n,fallback:a}}function M1(t){return kj(t)?(t.nodeName||"").toLowerCase():""}let eC;function Lj(){if(eC)return eC;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(eC=t.brands.map(r=>r.brand+"/"+r.version).join(" "),eC):navigator.userAgent}function da(t){return t instanceof no(t).HTMLElement}function o1(t){return t instanceof no(t).Element}function kj(t){return t instanceof no(t).Node}function DE(t){return typeof ShadowRoot>"u"?!1:t instanceof no(t).ShadowRoot||t instanceof ShadowRoot}function sI(t){const{overflow:r,overflowX:e,overflowY:n,display:i}=ha(t);return/auto|scroll|overlay|hidden|clip/.test(r+n+e)&&!["inline","contents"].includes(i)}function J2e(t){return["table","td","th"].includes(M1(t))}function o8(t){const r=/firefox/i.test(Lj()),e=ha(t),n=e.backdropFilter||e.WebkitBackdropFilter;return e.transform!=="none"||e.perspective!=="none"||!!n&&n!=="none"||r&&e.willChange==="filter"||r&&!!e.filter&&e.filter!=="none"||["transform","perspective"].some(i=>e.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const o=e.contain;return o!=null&&o.includes(i)})}function Oj(){return!/^((?!chrome|android).)*safari/i.test(Lj())}function Nb(t){return["html","body","#document"].includes(M1(t))}function xj(t){return o1(t)?t:t.contextElement}const Hj={x:1,y:1};function U2(t){const r=xj(t);if(!da(r))return Hj;const e=r.getBoundingClientRect(),{width:n,height:i,fallback:o}=Tj(r);let a=(o?Hv(e.width):e.width)/n,s=(o?Hv(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function Id(t,r,e,n){var i,o;r===void 0&&(r=!1),e===void 0&&(e=!1);const a=t.getBoundingClientRect(),s=xj(t);let l=Hj;r&&(n?o1(n)&&(l=U2(n)):l=U2(t));const c=s?no(s):window,u=!Oj()&&e;let g=(a.left+(u&&((i=c.visualViewport)==null?void 0:i.offsetLeft)||0))/l.x,h=(a.top+(u&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,d=a.width/l.x,f=a.height/l.y;if(s){const C=no(s),v=n&&o1(n)?no(n):n;let A=C.frameElement;for(;A&&n&&v!==C;){const I=U2(A),p=A.getBoundingClientRect(),m=getComputedStyle(A);p.x+=(A.clientLeft+parseFloat(m.paddingLeft))*I.x,p.y+=(A.clientTop+parseFloat(m.paddingTop))*I.y,g*=I.x,h*=I.y,d*=I.x,f*=I.y,g+=p.x,h+=p.y,A=no(A).frameElement}}return{width:d,height:f,top:h,right:g+d,bottom:h+f,left:g,x:g,y:h}}function a1(t){return((kj(t)?t.ownerDocument:t.document)||window.document).documentElement}function lI(t){return o1(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vj(t){return Id(a1(t)).left+lI(t).scrollLeft}function pd(t){if(M1(t)==="html")return t;const r=t.assignedSlot||t.parentNode||DE(t)&&t.host||a1(t);return DE(r)?r.host:r}function Pj(t){const r=pd(t);return Nb(r)?r.ownerDocument.body:da(r)&&sI(r)?r:Pj(r)}function Vv(t,r){var e;r===void 0&&(r=[]);const n=Pj(t),i=n===((e=t.ownerDocument)==null?void 0:e.body),o=no(n);return i?r.concat(o,o.visualViewport||[],sI(n)?n:[]):r.concat(n,Vv(n))}function NE(t,r,e){return r==="viewport"?Eh(function(n,i){const o=no(n),a=a1(n),s=o.visualViewport;let l=a.clientWidth,c=a.clientHeight,u=0,g=0;if(s){l=s.width,c=s.height;const h=Oj();(h||!h&&i==="fixed")&&(u=s.offsetLeft,g=s.offsetTop)}return{width:l,height:c,x:u,y:g}}(t,e)):o1(r)?Eh(function(n,i){const o=Id(n,!0,i==="fixed"),a=o.top+n.clientTop,s=o.left+n.clientLeft,l=da(n)?U2(n):{x:1,y:1};return{width:n.clientWidth*l.x,height:n.clientHeight*l.y,x:s*l.x,y:a*l.y}}(r,e)):Eh(function(n){const i=a1(n),o=lI(n),a=n.ownerDocument.body,s=Sh(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),l=Sh(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let c=-o.scrollLeft+Vj(n);const u=-o.scrollTop;return ha(a).direction==="rtl"&&(c+=Sh(i.clientWidth,a.clientWidth)-s),{width:s,height:l,x:c,y:u}}(a1(t)))}function BE(t){return da(t)&&ha(t).position!=="fixed"?t.offsetParent:null}function FE(t){const r=no(t);let e=BE(t);for(;e&&J2e(e)&&ha(e).position==="static";)e=BE(e);return e&&(M1(e)==="html"||M1(e)==="body"&&ha(e).position==="static"&&!o8(e))?r:e||function(n){let i=pd(n);for(;da(i)&&!Nb(i);){if(o8(i))return i;i=pd(i)}return null}(t)||r}function eue(t,r,e){const n=da(r),i=a1(r),o=Id(t,!0,e==="fixed",r);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&e!=="fixed")if((M1(r)!=="body"||sI(i))&&(a=lI(r)),da(r)){const l=Id(r,!0);s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}else i&&(s.x=Vj(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}const tue={getClippingRect:function(t){let{element:r,boundary:e,rootBoundary:n,strategy:i}=t;const o=e==="clippingAncestors"?function(c,u){const g=u.get(c);if(g)return g;let h=Vv(c).filter(v=>o1(v)&&M1(v)!=="body"),d=null;const f=ha(c).position==="fixed";let C=f?pd(c):c;for(;o1(C)&&!Nb(C);){const v=ha(C),A=o8(C);(f?A||d:A||v.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=v:h=h.filter(I=>I!==C),C=pd(C)}return u.set(c,h),h}(r,this._c):[].concat(e),a=[...o,n],s=a[0],l=a.reduce((c,u)=>{const g=NE(r,u,i);return c.top=Sh(g.top,c.top),c.right=RE(g.right,c.right),c.bottom=RE(g.bottom,c.bottom),c.left=Sh(g.left,c.left),c},NE(r,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:r,offsetParent:e,strategy:n}=t;const i=da(e),o=a1(e);if(e===o)return r;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&n!=="fixed")&&((M1(e)!=="body"||sI(o))&&(a=lI(e)),da(e))){const c=Id(e);s=U2(e),l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}return{width:r.width*s.x,height:r.height*s.y,x:r.x*s.x-a.scrollLeft*s.x+l.x,y:r.y*s.y-a.scrollTop*s.y+l.y}},isElement:o1,getDimensions:function(t){return da(t)?Tj(t):t.getBoundingClientRect()},getOffsetParent:FE,getDocumentElement:a1,getScale:U2,async getElementRects(t){let{reference:r,floating:e,strategy:n}=t;const i=this.getOffsetParent||FE,o=this.getDimensions;return{reference:eue(r,await i(e),n),floating:{x:0,y:0,...await o(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ha(t).direction==="rtl"},rue=(t,r,e)=>{const n=new Map,i={platform:tue,...e},o={...i.platform,_c:n};return U2e(t,r,{...i,platform:o})},Ll={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function md(t,r){let e=Ll.themes[t]||{},n;do n=e[r],typeof n>"u"?e.$extend?e=Ll.themes[e.$extend]||{}:(e=null,n=Ll[r]):e=null;while(e);return n}function nue(t){const r=[t];let e=Ll.themes[t]||{};do e.$extend&&!e.$resetCss?(r.push(e.$extend),e=Ll.themes[e.$extend]||{}):e=null;while(e);return r.map(n=>`v-popper--theme-${n}`)}function jE(t){const r=[t];let e=Ll.themes[t]||{};do e.$extend?(r.push(e.$extend),e=Ll.themes[e.$extend]||{}):e=null;while(e);return r}let hu=!1;if(typeof window<"u"){hu=!1;try{const t=Object.defineProperty({},"passive",{get(){hu=!0}});window.addEventListener("test",null,t)}catch{}}let Rj=!1;typeof window<"u"&&typeof navigator<"u"&&(Rj=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Dj=["auto","top","bottom","left","right"].reduce((t,r)=>t.concat([r,`${r}-start`,`${r}-end`]),[]),UE={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},GE={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function WE(t,r){const e=t.indexOf(r);e!==-1&&t.splice(e,1)}function yp(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const _o=[];let cl=null;const ZE={};function KE(t){let r=ZE[t];return r||(r=ZE[t]=[]),r}let a8=function(){};typeof window<"u"&&(a8=window.Element);function bt(t){return function(r){return md(r.theme,t)}}const bp="__floating-vue__popper",Nj=()=>ce({name:"VPopper",provide(){return{[bp]:{parentPopper:this}}},inject:{[bp]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:bt("disabled")},positioningDisabled:{type:Boolean,default:bt("positioningDisabled")},placement:{type:String,default:bt("placement"),validator:t=>Dj.includes(t)},delay:{type:[String,Number,Object],default:bt("delay")},distance:{type:[Number,String],default:bt("distance")},skidding:{type:[Number,String],default:bt("skidding")},triggers:{type:Array,default:bt("triggers")},showTriggers:{type:[Array,Function],default:bt("showTriggers")},hideTriggers:{type:[Array,Function],default:bt("hideTriggers")},popperTriggers:{type:Array,default:bt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:bt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:bt("popperHideTriggers")},container:{type:[String,Object,a8,Boolean],default:bt("container")},boundary:{type:[String,a8],default:bt("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:bt("strategy")},autoHide:{type:[Boolean,Function],default:bt("autoHide")},handleResize:{type:Boolean,default:bt("handleResize")},instantMove:{type:Boolean,default:bt("instantMove")},eagerMount:{type:Boolean,default:bt("eagerMount")},popperClass:{type:[String,Array,Object],default:bt("popperClass")},computeTransformOrigin:{type:Boolean,default:bt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:bt("autoMinSize")},autoSize:{type:[Boolean,String],default:bt("autoSize")},autoMaxSize:{type:Boolean,default:bt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:bt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:bt("preventOverflow")},overflowPadding:{type:[Number,String],default:bt("overflowPadding")},arrowPadding:{type:[Number,String],default:bt("arrowPadding")},arrowOverflow:{type:Boolean,default:bt("arrowOverflow")},flip:{type:Boolean,default:bt("flip")},shift:{type:Boolean,default:bt("shift")},shiftCrossAxis:{type:Boolean,default:bt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:bt("noAutoFocus")},disposeTimeout:{type:Number,default:bt("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[bp])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,r;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((r=this.popperShowTriggers)==null?void 0:r.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,r)=>(t[r]="$_computePosition",t),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:r=!1,force:e=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(e||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,r),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:r=!1}={}){var e;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:r}),this.parentPopper.lockedChild=null)},1e3));return}((e=this.parentPopper)==null?void 0:e.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,r),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(r=>r.nodeType===r.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(X2e({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");if(r?t.middleware.push(Z2e({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(q2e({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&t.middleware.push(K2e({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(G2e({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:i,middlewareData:o})=>{let a;const{centerOffset:s}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?a=Math.abs(s)>i.reference.width/2:a=Math.abs(s)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:i,placement:o,middlewareData:a})=>{var s;if((s=a.autoSize)!=null&&s.skip)return{};let l,c;return o.startsWith("top")||o.startsWith("bottom")?l=i.reference.width:c=i.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(Q2e({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:i})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const e=await rue(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:e.x,y:e.y,placement:e.placement,strategy:e.strategy,arrow:{...e.middlewareData.arrow,...e.middlewareData.arrowOverflow}})},$_scheduleShow(t,r=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),cl&&this.instantMove&&cl.instantMove&&cl!==this.parentPopper){cl.$_applyHide(!0),this.$_applyShow(!0);return}r?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,r=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(cl=this),r?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const r=this.delay;return parseInt(r&&r[t]||r||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await yp(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Vv(this.$_referenceNode),...Vv(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const r=this.$_referenceNode.getBoundingClientRect(),e=this.$_popperNode.querySelector(".v-popper__wrapper"),n=e.parentNode.getBoundingClientRect(),i=r.x+r.width/2-(n.left+e.offsetLeft),o=r.y+r.height/2-(n.top+e.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let r;for(let e=0;e<_o.length;e++)r=_o[e],r.showGroup!==t&&(r.hide(),r.$emit("close-group"))}_o.push(this),document.body.classList.add("v-popper--some-open");for(const r of jE(this.theme))KE(r).push(this),document.body.classList.add(`v-popper--some-open--${r}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await yp(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(t=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,WE(_o,this),_o.length===0&&document.body.classList.remove("v-popper--some-open");for(const e of jE(this.theme)){const n=KE(e);WE(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}cl===this&&(cl=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const r=this.disposeTimeout;r!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},r)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await yp(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,UE,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],UE,this.popperTriggers,this.popperShowTriggers,t);const r=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,GE,this.triggers,this.hideTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],GE,this.popperTriggers,this.popperHideTriggers,r)},$_registerEventListeners(t,r,e){this.$_events.push({targetNodes:t,eventType:r,handler:e}),t.forEach(n=>n.addEventListener(r,e,hu?{passive:!0}:void 0))},$_registerTriggerListeners(t,r,e,n,i){let o=e;n!=null&&(o=typeof n=="function"?n(o):n),o.forEach(a=>{const s=r[a];s&&this.$_registerEventListeners(t,s,i)})},$_removeEventListeners(t){const r=[];this.$_events.forEach(e=>{const{targetNodes:n,eventType:i,handler:o}=e;!t||t===i?n.forEach(a=>a.removeEventListener(i,o)):r.push(e)}),this.$_events=r},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,r=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),r&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,r){for(const e of this.$_targetNodes){const n=e.getAttribute(t);n&&(e.removeAttribute(t),e.setAttribute(r,n))}},$_applyAttrsToTarget(t){for(const r of this.$_targetNodes)for(const e in t){const n=t[e];n==null?r.removeAttribute(e):r.setAttribute(e,n)}},$_updateParentShownChildren(t){let r=this.parentPopper;for(;r;)t?r.shownChildren.add(this.randomId):(r.shownChildren.delete(this.randomId),r.pendingHide&&r.hide()),r=r.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(Th>=t.left&&Th<=t.right&&Lh>=t.top&&Lh<=t.bottom){const r=this.$_popperNode.getBoundingClientRect(),e=Th-Hs,n=Lh-Vs,i=r.left+r.width/2-Hs+(r.top+r.height/2)-Vs+r.width+r.height,o=Hs+e*i,a=Vs+n*i;return tC(Hs,Vs,o,a,r.left,r.top,r.left,r.bottom)||tC(Hs,Vs,o,a,r.left,r.top,r.right,r.top)||tC(Hs,Vs,o,a,r.right,r.top,r.right,r.bottom)||tC(Hs,Vs,o,a,r.left,r.bottom,r.right,r.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Rj){const t=hu?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",r=>YE(r),t),document.addEventListener("touchend",r=>XE(r,!0),t)}else window.addEventListener("mousedown",t=>YE(t),!0),window.addEventListener("click",t=>XE(t,!1),!0);window.addEventListener("resize",aue)}function YE(t,r){for(let e=0;e<_o.length;e++){const n=_o[e];try{n.mouseDownContains=n.popperNode().contains(t.target)}catch{}}}function XE(t,r){iue(t,r)}function iue(t,r){const e={};for(let n=_o.length-1;n>=0;n--){const i=_o[n];try{const o=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(t.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!e[i.randomId]&&qE(i,o,t)){if(i.$_handleGlobalClose(t,r),!t.closeAllPopover&&t.closePopover&&o){let s=i.parentPopper;for(;s;)e[s.randomId]=!0,s=s.parentPopper;return}let a=i.parentPopper;for(;a&&qE(a,a.containsGlobalTarget,t);)a.$_handleGlobalClose(t,r),a=a.parentPopper}})}catch{}}}function qE(t,r,e){return e.closeAllPopover||e.closePopover&&r||oue(t,e)&&!r}function oue(t,r){if(typeof t.autoHide=="function"){const e=t.autoHide(r);return t.lastAutoHide=e,e}return t.autoHide}function aue(){for(let t=0;t<_o.length;t++)_o[t].$_computePosition()}let Hs=0,Vs=0,Th=0,Lh=0;typeof window<"u"&&window.addEventListener("mousemove",t=>{Hs=Th,Vs=Lh,Th=t.clientX,Lh=t.clientY},hu?{passive:!0}:void 0);function tC(t,r,e,n,i,o,a,s){const l=((a-i)*(r-o)-(s-o)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r)),c=((e-t)*(r-o)-(n-r)*(t-i))/((s-o)*(e-t)-(a-i)*(n-r));return l>=0&&l<=1&&c>=0&&c<=1}const sue={extends:Nj()},cI=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e};function lue(t,r,e,n,i,o){return z(),H("div",{ref:"reference",class:Te(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Qe(t.$slots,"default",tb(JA(t.slotData)))],2)}const cue=cI(sue,[["render",lue]]);function uue(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let k5;function s8(){s8.init||(s8.init=!0,k5=uue()!==-1)}var uI={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){s8(),dn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",k5&&this.$el.appendChild(t),t.data="about:blank",k5||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!k5&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const gue=$B();bB("data-v-b329ee4c");const hue={class:"resize-observer",tabindex:"-1"};wB();const due=gue((t,r,e,n,i,o)=>(z(),ne("div",hue)));uI.render=due;uI.__scopeId="data-v-b329ee4c";uI.__file="src/components/ResizeObserver.vue";const Bj=(t="theme")=>({computed:{themeClass(){return nue(this[t])}}}),fue=ce({name:"VPopperContent",components:{ResizeObserver:uI},mixins:[Bj()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),Cue=["id","aria-hidden","tabindex","data-popper-placement"],vue={ref:"inner",class:"v-popper__inner"},Aue=w("div",{class:"v-popper__arrow-outer"},null,-1),Iue=w("div",{class:"v-popper__arrow-inner"},null,-1),pue=[Aue,Iue];function mue(t,r,e,n,i,o){const a=Vo("ResizeObserver");return z(),H("div",{id:t.popperId,ref:"popover",class:Te(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:kr(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:r[2]||(r[2]=dF(s=>t.autoHide&&t.$emit("hide"),["esc"]))},[w("div",{class:"v-popper__backdrop",onClick:r[0]||(r[0]=s=>t.autoHide&&t.$emit("hide"))}),w("div",{class:"v-popper__wrapper",style:kr(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[w("div",vue,[t.mounted?(z(),H(Ee,{key:0},[w("div",null,[Qe(t.$slots,"default")]),t.handleResize?(z(),ne(a,{key:0,onNotify:r[1]||(r[1]=s=>t.$emit("resize",s))})):oe("",!0)],64)):oe("",!0)],512),w("div",{ref:"arrow",class:"v-popper__arrow-container",style:kr(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},pue,4)],4)],46,Cue)}const Fj=cI(fue,[["render",mue]]),jj={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let l8=function(){};typeof window<"u"&&(l8=window.Element);const yue=ce({name:"VPopperWrapper",components:{Popper:cue,PopperContent:Fj},mixins:[jj,Bj("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,l8,Boolean],default:void 0},boundary:{type:[String,l8],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function bue(t,r,e,n,i,o){const a=Vo("PopperContent"),s=Vo("Popper");return z(),ne(s,Xr({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:r[0]||(r[0]=()=>t.$emit("show")),onHide:r[1]||(r[1]=()=>t.$emit("hide")),"onUpdate:shown":r[2]||(r[2]=l=>t.$emit("update:shown",l)),onApplyShow:r[3]||(r[3]=()=>t.$emit("apply-show")),onApplyHide:r[4]||(r[4]=()=>t.$emit("apply-hide")),onCloseGroup:r[5]||(r[5]=()=>t.$emit("close-group")),onCloseDirective:r[6]||(r[6]=()=>t.$emit("close-directive")),onAutoHide:r[7]||(r[7]=()=>t.$emit("auto-hide")),onResize:r[8]||(r[8]=()=>t.$emit("resize"))}),{default:W(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:g,autoHide:h,show:d,hide:f,handleResize:C,onResize:v,classes:A,result:I})=>[Qe(t.$slots,"default",{shown:c,show:d,hide:f}),D(a,{ref:"popperContent","popper-id":l,theme:t.finalTheme,shown:c,mounted:u,"skip-transition":g,"auto-hide":h,"handle-resize":C,classes:A,result:I,onHide:f,onResize:v},{default:W(()=>[Qe(t.$slots,"popper",{shown:c,hide:f})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Bb=cI(yue,[["render",bue]]),wue={...Bb,name:"VDropdown",vPopperTheme:"dropdown"};({...Bb});const $ue={...Bb,name:"VTooltip",vPopperTheme:"tooltip"},_ue=ce({name:"VTooltipDirective",components:{Popper:Nj(),PopperContent:Fj},mixins:[jj],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>md(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>md(t.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const r=++this.$_fetchId,e=this.content(this);e.then?e.then(n=>this.onResult(r,n)):this.onResult(r,e)}},onResult(t,r){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=r)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Mue=["innerHTML"],zue=["textContent"];function Eue(t,r,e,n,i,o){const a=Vo("PopperContent"),s=Vo("Popper");return z(),ne(s,Xr({ref:"popper"},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:W(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:g,autoHide:h,hide:d,handleResize:f,onResize:C,classes:v,result:A})=>[D(a,{ref:"popperContent",class:Te({"v-popper--tooltip-loading":t.loading}),"popper-id":l,theme:t.theme,shown:c,mounted:u,"skip-transition":g,"auto-hide":h,"handle-resize":f,classes:v,result:A,onHide:d,onResize:C},{default:W(()=>[t.html?(z(),H("div",{key:0,innerHTML:t.finalContent},null,8,Mue)):(z(),H("div",{key:1,textContent:ze(t.finalContent)},null,8,zue))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const Sue=cI(_ue,[["render",Eue]]),Uj="v-popper--has-tooltip";function Tue(t,r){let e=t.placement;if(!e&&r)for(const n of Dj)r[n]&&(e=n);return e||(e=md(t.theme||"tooltip","placement")),e}function Gj(t,r,e){let n;const i=typeof r;return i==="string"?n={content:r}:r&&i==="object"?n=r:n={content:!1},n.placement=Tue(n,e),n.targetNodes=()=>[t],n.referenceNode=()=>t,n}let wp,yd,Lue=0;function kue(){if(wp)return;yd=G([]),wp=CF({name:"VTooltipDirectiveApp",setup(){return{directives:yd}},render(){return this.directives.map(r=>fc(Sue,{...r.options,shown:r.shown||r.options.shown,key:r.id}))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),wp.mount(t)}function Oue(t,r,e){kue();const n=G(Gj(t,r,e)),i=G(!1),o={id:Lue++,options:n,shown:i};return yd.value.push(o),t.classList&&t.classList.add(Uj),t.$_popper={options:n,item:o,show(){i.value=!0},hide(){i.value=!1}}}function Wj(t){if(t.$_popper){const r=yd.value.indexOf(t.$_popper.item);r!==-1&&yd.value.splice(r,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(Uj)}function QE(t,{value:r,modifiers:e}){const n=Gj(t,r,e);if(!n.content||md(n.theme||"tooltip","disabled"))Wj(t);else{let i;t.$_popper?(i=t.$_popper,i.options.value=n):i=Oue(t,r,e),typeof r.shown<"u"&&r.shown!==t.$_popperOldShown&&(t.$_popperOldShown=r.shown,r.shown?i.show():i.hide())}}const xue={beforeMount:QE,updated:QE,beforeUnmount(t){Wj(t)}};function JE(t){t.addEventListener("mousedown",Pv),t.addEventListener("click",Pv),t.addEventListener("touchstart",Zj,hu?{passive:!0}:!1)}function eS(t){t.removeEventListener("mousedown",Pv),t.removeEventListener("click",Pv),t.removeEventListener("touchstart",Zj),t.removeEventListener("touchend",Kj),t.removeEventListener("touchcancel",Yj)}function Pv(t){const r=t.currentTarget;t.closePopover=!r.$_vclosepopover_touch,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}function Zj(t){if(t.changedTouches.length===1){const r=t.currentTarget;r.$_vclosepopover_touch=!0;const e=t.changedTouches[0];r.$_vclosepopover_touchPoint=e,r.addEventListener("touchend",Kj),r.addEventListener("touchcancel",Yj)}}function Kj(t){const r=t.currentTarget;if(r.$_vclosepopover_touch=!1,t.changedTouches.length===1){const e=t.changedTouches[0],n=r.$_vclosepopover_touchPoint;t.closePopover=Math.abs(e.screenY-n.screenY)<20&&Math.abs(e.screenX-n.screenX)<20,t.closeAllPopover=r.$_closePopoverModifiers&&!!r.$_closePopoverModifiers.all}}function Yj(t){const r=t.currentTarget;r.$_vclosepopover_touch=!1}const Hue={beforeMount(t,{value:r,modifiers:e}){t.$_closePopoverModifiers=e,(typeof r>"u"||r)&&JE(t)},updated(t,{value:r,oldValue:e,modifiers:n}){t.$_closePopoverModifiers=n,r!==e&&(typeof r>"u"||r?JE(t):eS(t))},beforeUnmount(t){eS(t)}},sr=xue,Xj=Hue,Vue=wue,Pue=$ue;function Ro(t){return nb()?(JN(t),!0):!1}function Rue(t,r,{enumerable:e=!1,unwrap:n=!0}={}){for(const[i,o]of Object.entries(r))i!=="value"&&(qe(o)&&n?Object.defineProperty(t,i,{get(){return o.value},set(a){o.value=a},enumerable:e}):Object.defineProperty(t,i,{value:o,enumerable:e}));return t}function wr(t){return typeof t=="function"?t():y(t)}function Due(t){if(!qe(t))return ya(t);const r=new Proxy({},{get(e,n,i){return y(Reflect.get(t.value,n,i))},set(e,n,i){return qe(t.value[n])&&!qe(i)?t.value[n].value=i:t.value[n]=i,!0},deleteProperty(e,n){return Reflect.deleteProperty(t.value,n)},has(e,n){return Reflect.has(t.value,n)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ya(r)}const Ql=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Nue=t=>typeof t<"u",qj=t=>t!=null,Bue=Object.prototype.toString,Fue=t=>Bue.call(t)==="[object Object]",ko=()=>{},c8=jue();function jue(){var t,r;return Ql&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((r=window?.navigator)==null?void 0:r.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Qj(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const Jj=t=>t();function eU(t,r={}){let e,n,i=ko;const o=s=>{clearTimeout(s),i(),i=ko};return s=>{const l=wr(t),c=wr(r.maxWait);return e&&o(e),l<=0||c!==void 0&&c<=0?(n&&(o(n),n=null),Promise.resolve(s())):new Promise((u,g)=>{i=r.rejectOnCancel?g:u,c&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,u(s())},c)),e=setTimeout(()=>{n&&o(n),n=null,u(s())},l)})}}function Uue(t=Jj){const r=G(!0);function e(){r.value=!1}function n(){r.value=!0}const i=(...o)=>{r.value&&t(...o)};return{isActive:H1(r),pause:e,resume:n,eventFilter:i}}function Gue(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function Wue(t){return As()}function tU(...t){if(t.length!==1)return ioe(...t);const r=t[0];return typeof r=="function"?H1(gb(()=>({get:r,set:ko}))):G(r)}function Zue(t,r=200,e={}){return Qj(eU(r,e),t)}function Kue(t,r=200,e={}){const n=G(t.value),i=Zue(()=>{n.value=t.value},r,e);return Je(t,()=>i()),n}function Yue(t,r={}){let e=t,n,i;const o=gb((h,d)=>(n=h,i=d,{get(){return a()},set(f){s(f)}}));function a(h=!0){return h&&n(),e}function s(h,d=!0){var f,C;if(h===e)return;const v=e;((f=r.onBeforeChange)==null?void 0:f.call(r,h,v))!==!1&&(e=h,(C=r.onChanged)==null||C.call(r,h,v),d&&i())}return Rue(o,{get:a,set:s,untrackedGet:()=>a(!1),silentSet:h=>s(h,!1),peek:()=>a(!1),lay:h=>s(h,!1)},{enumerable:!0})}function rU(t,r,e={}){const{eventFilter:n=Jj,...i}=e;return Je(t,Qj(n,r),i)}function Xue(t,r,e={}){const{eventFilter:n,...i}=e,{eventFilter:o,pause:a,resume:s,isActive:l}=Uue(n);return{stop:rU(t,r,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function Wu(t,r=!0,e){Wue()?Ii(t,e):r?t():dn(t)}function que(t,r=1e3,e={}){const{immediate:n=!0,immediateCallback:i=!1}=e;let o=null;const a=G(!1);function s(){o&&(clearInterval(o),o=null)}function l(){a.value=!1,s()}function c(){const u=wr(r);u<=0||(a.value=!0,i&&t(),s(),o=setInterval(t,u))}if(n&&Ql&&c(),qe(r)||typeof r=="function"){const u=Je(r,()=>{a.value&&Ql&&c()});Ro(u)}return Ro(l),{isActive:a,pause:l,resume:c}}function Que(t,r,e={}){const{immediate:n=!0}=e,i=G(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...c){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},wr(r))}return n&&(i.value=!0,Ql&&l()),Ro(s),{isPending:H1(i),start:l,stop:s}}function Fb(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=qe(t),o=G(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=wr(e);return o.value=o.value===l?wr(n):l,o.value}}return i?a:[o,a]}function nU(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return rU(t,r,{...o,eventFilter:eU(n,{maxWait:i})})}function Jue(t,r,e){const n=Je(t,(...i)=>(dn(()=>n()),r(...i)),e);return n}function $p(t,r,e){let n;qe(e)?n={evaluating:e}:n={};const{lazy:i=!1,evaluating:o=void 0,shallow:a=!0,onError:s=ko}=n,l=G(!i),c=a?Bi(r):G(r);let u=0;return gn(async g=>{if(!l.value)return;u++;const h=u;let d=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const f=await t(C=>{g(()=>{o&&(o.value=!1),d||C()})});h===u&&(c.value=f)}catch(f){s(f)}finally{o&&h===u&&(o.value=!1),d=!0}}),i?F(()=>(l.value=!0,c.value)):c}const fi=Ql?window:void 0,ege=Ql?window.document:void 0,iU=Ql?window.navigator:void 0;function un(t){var r;const e=wr(t);return(r=e?.$el)!=null?r:e}function hi(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=fi):[r,e,n,i]=t,!r)return ko;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,g,h,d)=>(u.addEventListener(g,h,d),()=>u.removeEventListener(g,h,d)),l=Je(()=>[un(r),wr(i)],([u,g])=>{if(a(),!u)return;const h=Fue(g)?{...g}:g;o.push(...e.flatMap(d=>n.map(f=>s(u,d,f,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Ro(c),c}let tS=!1;function tge(t,r,e={}){const{window:n=fi,ignore:i=[],capture:o=!0,detectIframe:a=!1}=e;if(!n)return ko;c8&&!tS&&(tS=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",ko)),n.document.documentElement.addEventListener("click",ko));let s=!0;const l=d=>wr(i).some(f=>{if(typeof f=="string")return Array.from(n.document.querySelectorAll(f)).some(C=>C===d.target||d.composedPath().includes(C));{const C=un(f);return C&&(d.target===C||d.composedPath().includes(C))}}),c=d=>{const f=un(t);if(!(!f||f===d.target||d.composedPath().includes(f))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}r(d)}};let u=!1;const g=[hi(n,"click",d=>{u||(u=!0,setTimeout(()=>{u=!1},0),c(d))},{passive:!0,capture:o}),hi(n,"pointerdown",d=>{const f=un(t);s=!l(d)&&!!(f&&!d.composedPath().includes(f))},{passive:!0}),a&&hi(n,"blur",d=>{setTimeout(()=>{var f;const C=un(t);((f=n.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!C?.contains(n.document.activeElement)&&r(d)},0)})].filter(Boolean);return()=>g.forEach(d=>d())}function rge(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function oU(...t){let r,e,n={};t.length===3?(r=t[0],e=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,e=t[0],n=t[1]):(r=t[0],e=t[1]):(r=!0,e=t[0]);const{target:i=fi,eventName:o="keydown",passive:a=!1,dedupe:s=!1}=n,l=rge(r);return hi(i,o,u=>{u.repeat&&wr(s)||l(u)&&e(u)},a)}function nge(){const t=G(!1),r=As();return r&&Ii(()=>{t.value=!0},r),t}function Ac(t){const r=nge();return F(()=>(r.value,!!t()))}function ige(t,r,e={}){const{window:n=fi,...i}=e;let o;const a=Ac(()=>n&&"MutationObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=F(()=>{const h=wr(t),d=(Array.isArray(h)?h:[h]).map(un).filter(qj);return new Set(d)}),c=Je(()=>l.value,h=>{s(),a.value&&h.size&&(o=new MutationObserver(r),h.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),u=()=>o?.takeRecords(),g=()=>{c(),s()};return Ro(g),{isSupported:a,stop:g,takeRecords:u}}function oge(t,r={}){const{immediate:e=!0,fpsLimit:n=void 0,window:i=fi}=r,o=G(!1),a=n?1e3/n:null;let s=0,l=null;function c(h){if(!o.value||!i)return;s||(s=h);const d=h-s;if(a&&de&&"matchMedia"in e&&typeof e.matchMedia=="function");let i;const o=G(!1),a=c=>{o.value=c.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=gn(()=>{n.value&&(s(),i=e.matchMedia(wr(t)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return Ro(()=>{l(),s(),i=void 0}),o}function rS(t,r={}){const{controls:e=!1,navigator:n=iU}=r,i=Ac(()=>n&&"permissions"in n),o=Bi(),a=typeof t=="string"?{name:t}:t,s=Bi(),l=()=>{var u,g;s.value=(g=(u=o.value)==null?void 0:u.state)!=null?g:"prompt"};hi(o,"change",l);const c=Gue(async()=>{if(i.value){if(!o.value)try{o.value=await n.permissions.query(a)}catch{o.value=void 0}finally{l()}if(e)return pt(o.value)}});return c(),e?{state:s,isSupported:i,query:c}:s}function sU(t={}){const{navigator:r=iU,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=Ac(()=>r&&"clipboard"in r),s=rS("clipboard-read"),l=rS("clipboard-write"),c=F(()=>a.value||o),u=G(""),g=G(!1),h=Que(()=>g.value=!1,i);function d(){a.value&&A(s.value)?r.clipboard.readText().then(I=>{u.value=I}):u.value=v()}c.value&&e&&hi(["copy","cut"],d);async function f(I=wr(n)){c.value&&I!=null&&(a.value&&A(l.value)?await r.clipboard.writeText(I):C(I),u.value=I,g.value=!0,h.start())}function C(I){const p=document.createElement("textarea");p.value=I??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function v(){var I,p,m;return(m=(p=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:p.toString())!=null?m:""}function A(I){return I==="granted"||I==="prompt"}return{isSupported:c,text:u,copied:g,copy:f}}function age(t){return JSON.parse(JSON.stringify(t))}const rC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nC="__vueuse_ssr_handlers__",sge=lge();function lge(){return nC in rC||(rC[nC]=rC[nC]||{}),rC[nC]}function lU(t,r){return sge[t]||r}function cge(t){return aU("(prefers-color-scheme: dark)",t)}function uge(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const gge={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},nS="vueuse-storage";function cU(t,r,e,n={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:g=fi,eventFilter:h,onError:d=T=>{console.error(T)},initOnMounted:f}=n,C=(u?Bi:G)(typeof r=="function"?r():r);if(!e)try{e=lU("getDefaultStorage",()=>{var T;return(T=fi)==null?void 0:T.localStorage})()}catch(T){d(T)}if(!e)return C;const v=wr(r),A=uge(v),I=(i=n.serializer)!=null?i:gge[A],{pause:p,resume:m}=Xue(C,()=>_(C.value),{flush:o,deep:a,eventFilter:h});g&&s&&Wu(()=>{e instanceof Storage?hi(g,"storage",M):hi(g,nS,S),f&&M()}),f||M();function b(T,k){if(g){const O={key:t,oldValue:T,newValue:k,storageArea:e};g.dispatchEvent(e instanceof Storage?new StorageEvent("storage",O):new CustomEvent(nS,{detail:O}))}}function _(T){try{const k=e.getItem(t);if(T==null)b(k,null),e.removeItem(t);else{const O=I.write(T);k!==O&&(e.setItem(t,O),b(k,O))}}catch(k){d(k)}}function L(T){const k=T?T.newValue:e.getItem(t);if(k==null)return l&&v!=null&&e.setItem(t,I.write(v)),v;if(!T&&c){const O=I.read(k);return typeof c=="function"?c(O,v):A==="object"&&!Array.isArray(O)?{...v,...O}:O}else return typeof k!="string"?k:I.read(k)}function M(T){if(!(T&&T.storageArea!==e)){if(T&&T.key==null){C.value=v;return}if(!(T&&T.key!==t)){p();try{T?.newValue!==I.write(C.value)&&(C.value=L(T))}catch(k){d(k)}finally{T?dn(m):m()}}}}function S(T){M(T.detail)}return C}const hge="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function dge(t={}){const{selector:r="html",attribute:e="class",initialValue:n="auto",window:i=fi,storage:o,storageKey:a="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:c,disableTransition:u=!0}=t,g={auto:"",light:"light",dark:"dark",...t.modes||{}},h=cge({window:i}),d=F(()=>h.value?"dark":"light"),f=l||(a==null?tU(n):cU(a,n,o,{window:i,listenToStorageChanges:s})),C=F(()=>f.value==="auto"?d.value:f.value),v=lU("updateHTMLAttrs",(m,b,_)=>{const L=typeof m=="string"?i?.document.querySelector(m):un(m);if(!L)return;const M=new Set,S=new Set;let T=null;if(b==="class"){const O=_.split(/\s/g);Object.values(g).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{O.includes(P)?M.add(P):S.add(P)})}else T={key:b,value:_};if(M.size===0&&S.size===0&&T===null)return;let k;u&&(k=i.document.createElement("style"),k.appendChild(document.createTextNode(hge)),i.document.head.appendChild(k));for(const O of M)L.classList.add(O);for(const O of S)L.classList.remove(O);T&&L.setAttribute(T.key,T.value),u&&(i.getComputedStyle(k).opacity,document.head.removeChild(k))});function A(m){var b;v(r,e,(b=g[m])!=null?b:m)}function I(m){t.onChanged?t.onChanged(m,A):A(m)}Je(C,I,{flush:"post",immediate:!0}),Wu(()=>I(C.value));const p=F({get(){return c?f.value:C.value},set(m){f.value=m}});try{return Object.assign(p,{store:f,system:d,state:C})}catch{return p}}function jb(t,r,e={}){const{window:n=fi,...i}=e;let o;const a=Ac(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=F(()=>{const g=wr(t);return Array.isArray(g)?g.map(h=>un(h)):[un(g)]}),c=Je(l,g=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const h of g)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Ro(u),{isSupported:a,stop:u}}function fge(t,r={}){const{reset:e=!0,windowResize:n=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:a="sync"}=r,s=G(0),l=G(0),c=G(0),u=G(0),g=G(0),h=G(0),d=G(0),f=G(0);function C(){const A=un(t);if(!A){e&&(s.value=0,l.value=0,c.value=0,u.value=0,g.value=0,h.value=0,d.value=0,f.value=0);return}const I=A.getBoundingClientRect();s.value=I.height,l.value=I.bottom,c.value=I.left,u.value=I.right,g.value=I.top,h.value=I.width,d.value=I.x,f.value=I.y}function v(){a==="sync"?C():a==="next-frame"&&requestAnimationFrame(()=>C())}return jb(t,v),Je(()=>un(t),A=>!A&&v()),ige(t,v,{attributeFilter:["style","class"]}),i&&hi("scroll",v,{capture:!0,passive:!0}),n&&hi("resize",v,{passive:!0}),Wu(()=>{o&&v()}),{height:s,bottom:l,left:c,right:u,top:g,width:h,x:d,y:f,update:v}}function uU(t,r={width:0,height:0},e={}){const{window:n=fi,box:i="content-box"}=e,o=F(()=>{var g,h;return(h=(g=un(t))==null?void 0:g.namespaceURI)==null?void 0:h.includes("svg")}),a=G(r.width),s=G(r.height),{stop:l}=jb(t,([g])=>{const h=i==="border-box"?g.borderBoxSize:i==="content-box"?g.contentBoxSize:g.devicePixelContentBoxSize;if(n&&o.value){const d=un(t);if(d){const f=d.getBoundingClientRect();a.value=f.width,s.value=f.height}}else if(h){const d=Array.isArray(h)?h:[h];a.value=d.reduce((f,{inlineSize:C})=>f+C,0),s.value=d.reduce((f,{blockSize:C})=>f+C,0)}else a.value=g.contentRect.width,s.value=g.contentRect.height},e);Wu(()=>{const g=un(t);g&&(a.value="offsetWidth"in g?g.offsetWidth:r.width,s.value="offsetHeight"in g?g.offsetHeight:r.height)});const c=Je(()=>un(t),g=>{a.value=g?r.width:0,s.value=g?r.height:0});function u(){l(),c()}return{width:a,height:s,stop:u}}function Cge(t,r,e={}){const{root:n,rootMargin:i="0px",threshold:o=0,window:a=fi,immediate:s=!0}=e,l=Ac(()=>a&&"IntersectionObserver"in a),c=F(()=>{const f=wr(t);return(Array.isArray(f)?f:[f]).map(un).filter(qj)});let u=ko;const g=G(s),h=l.value?Je(()=>[c.value,un(n),g.value],([f,C])=>{if(u(),!g.value||!f.length)return;const v=new IntersectionObserver(r,{root:un(C),rootMargin:i,threshold:o});f.forEach(A=>A&&v.observe(A)),u=()=>{v.disconnect(),u=ko}},{immediate:s,flush:"post"}):ko,d=()=>{u(),h(),g.value=!1};return Ro(d),{isSupported:l,isActive:g,pause(){u(),g.value=!1},resume(){g.value=!0},stop:d}}function vge(t={}){const{initialValue:r=""}=t,e=Ac(()=>typeof window<"u"&&"EyeDropper"in window),n=G(r);async function i(o){if(!e.value)return;const s=await new window.EyeDropper().open(o);return n.value=s.sRGBHex,s}return{isSupported:e,sRGBHex:n,open:i}}function _p(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function Age(t,r,e={}){const{window:n=fi}=e;return cU(t,r,n?.localStorage,e)}function Ige(t={}){const{controls:r=!1,interval:e="requestAnimationFrame"}=t,n=G(new Date),i=()=>n.value=new Date,o=e==="requestAnimationFrame"?oge(i,{immediate:!0}):que(i,e,{immediate:!0});return r?{now:n,...o}:n}function gU(t){const r=window.getComputedStyle(t);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&t.clientWidth1?!0:(r.preventDefault&&r.preventDefault(),!1)}const Mp=new WeakMap;function mge(t,r=!1){const e=G(r);let n=null,i="";Je(tU(t),s=>{const l=_p(wr(s));if(l){const c=l;if(Mp.get(c)||Mp.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(i=c.style.overflow),c.style.overflow==="hidden")return e.value=!0;if(e.value)return c.style.overflow="hidden"}},{immediate:!0});const o=()=>{const s=_p(wr(t));!s||e.value||(c8&&(n=hi(s,"touchmove",l=>{pge(l)},{passive:!1})),s.style.overflow="hidden",e.value=!0)},a=()=>{const s=_p(wr(t));!s||!e.value||(c8&&n?.(),s.style.overflow=i,Mp.delete(s),e.value=!1)};return Ro(a),F({get(){return e.value},set(s){s?o():a()}})}let yge=0;function bge(t,r={}){const e=G(!1),{document:n=ege,immediate:i=!0,manual:o=!1,id:a=`vueuse_styletag_${++yge}`}=r,s=G(t);let l=()=>{};const c=()=>{if(!n)return;const g=n.getElementById(a)||n.createElement("style");g.isConnected||(g.id=a,r.media&&(g.media=r.media),n.head.appendChild(g)),!e.value&&(l=Je(s,h=>{g.textContent=h},{immediate:!0}),e.value=!0)},u=()=>{!n||!e.value||(l(),n.head.removeChild(n.getElementById(a)),e.value=!1)};return i&&!o&&Wu(c),o||Ro(u),{id:a,css:s,unload:u,load:c,isLoaded:H1(e)}}const wge=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:Number.POSITIVE_INFINITY,value:31536e6,name:"year"}],$ge={justNow:"just now",past:t=>t.match(/\d/)?`${t} ago`:t,future:t=>t.match(/\d/)?`in ${t}`:t,month:(t,r)=>t===1?r?"last month":"next month":`${t} month${t>1?"s":""}`,year:(t,r)=>t===1?r?"last year":"next year":`${t} year${t>1?"s":""}`,day:(t,r)=>t===1?r?"yesterday":"tomorrow":`${t} day${t>1?"s":""}`,week:(t,r)=>t===1?r?"last week":"next week":`${t} week${t>1?"s":""}`,hour:t=>`${t} hour${t>1?"s":""}`,minute:t=>`${t} minute${t>1?"s":""}`,second:t=>`${t} second${t>1?"s":""}`,invalid:""};function _ge(t){return t.toISOString().slice(0,10)}function Mge(t,r={}){const{controls:e=!1,updateInterval:n=3e4}=r,{now:i,...o}=Ige({interval:n,controls:!0}),a=F(()=>zge(new Date(wr(t)),r,wr(i)));return e?{timeAgo:a,...o}:a}function zge(t,r={},e=Date.now()){var n;const{max:i,messages:o=$ge,fullDateFormatter:a=_ge,units:s=wge,showSecond:l=!1,rounding:c="round"}=r,u=typeof c=="number"?v=>+v.toFixed(c):Math[c],g=+e-+t,h=Math.abs(g);function d(v,A){return u(Math.abs(v)/A.value)}function f(v,A){const I=d(v,A),p=v>0,m=C(A.name,I,p);return C(p?"past":"future",m,p)}function C(v,A,I){const p=o[v];return typeof p=="function"?p(A,I):p.replace("{0}",A.toString())}if(h<6e4&&!l)return o.justNow;if(typeof i=="number"&&h>i)return a(new Date(t));if(typeof i=="string"){const v=(n=s.find(A=>A.name===i))==null?void 0:n.max;if(v&&h>v)return a(new Date(t))}for(const[v,A]of s.entries()){if(d(g,A)<=0&&s[v-1])return f(g,s[v-1]);if(hs?typeof s=="function"?s(p):age(p):p,A=()=>Nue(t[r])?v(t[r]):g,I=p=>{h?h(p)&&f(C,p):f(C,p)};if(l){const p=A(),m=G(p);let b=!1;return Je(()=>t[r],_=>{b||(b=!0,m.value=v(_),dn(()=>b=!1))}),Je(m,_=>{!b&&(_!==t[r]||u)&&I(_)},{deep:u}),m}else return F({get(){return A()},set(p){I(p)}})}function Ege(t={}){const{window:r=fi,initialWidth:e=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=t,s=G(e),l=G(n),c=()=>{r&&(a==="outer"?(s.value=r.outerWidth,l.value=r.outerHeight):o?(s.value=r.innerWidth,l.value=r.innerHeight):(s.value=r.document.documentElement.clientWidth,l.value=r.document.documentElement.clientHeight))};if(c(),Wu(c),hi("resize",c,{passive:!0}),i){const u=aU("(orientation: portrait)");Je(u,()=>c())}return{width:s,height:l}}let kl=class extends Error{constructor(r){super(r),this.name="ShikiError"}},Ub=class extends Error{constructor(r){super(r),this.name="ShikiError"}};function Sge(){return 2147483648}function Tge(){return typeof performance<"u"?performance.now():Date.now()}const Lge=(t,r)=>t+(r-t%r)%r;async function kge(t){let r,e;const n={};function i(d){e=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function o(d,f,C){n.HEAPU8.copyWithin(d,f,f+C)}function a(d){try{return r.grow(d-e.byteLength+65535>>>16),i(r.buffer),1}catch{}}function s(d){const f=n.HEAPU8.length;d=d>>>0;const C=Sge();if(d>C)return!1;for(let v=1;v<=4;v*=2){let A=f*(1+.2/v);A=Math.min(A,d+100663296);const I=Math.min(C,Lge(Math.max(d,A),65536));if(a(I))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,f,C=1024){const v=f+C;let A=f;for(;d[A]&&!(A>=v);)++A;if(A-f>16&&d.buffer&&l)return l.decode(d.subarray(f,A));let I="";for(;f>10,56320|_&1023)}}return I}function u(d,f){return d?c(n.HEAPU8,d,f):""}const g={emscripten_get_now:Tge,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await t({env:g,wasi_snapshot_preview1:g});r=f.memory,i(r.buffer),Object.assign(n,f),n.UTF8ToString=u}return await h(),n}let nn=null;function Oge(t){throw new Ub(t.UTF8ToString(t.getLastOnigError()))}class gI{static _utf8ByteLength(r){let e=0;for(let n=0,i=r.length;n=55296&&o<=56319&&n+1=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?e+=1:a<=2047?e+=2:a<=65535?e+=3:e+=4,s&&n++}return e}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(r){const e=r.length,n=gI._utf8ByteLength(r),i=n!==e,o=i?new Uint32Array(e+1):null;i&&(o[e]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=e);const s=new Uint8Array(n);let l=0;for(let c=0;c=55296&&u<=56319&&c+1=56320&&d<=57343&&(g=(u-55296<<10)+65536|d-56320,h=!0)}i&&(o[c]=l,h&&(o[c+1]=l),g<=127?a[l+0]=c:g<=2047?(a[l+0]=c,a[l+1]=c):g<=65535?(a[l+0]=c,a[l+1]=c,a[l+2]=c):(a[l+0]=c,a[l+1]=c,a[l+2]=c,a[l+3]=c)),g<=127?s[l++]=g:g<=2047?(s[l++]=192|(g&1984)>>>6,s[l++]=128|(g&63)>>>0):g<=65535?(s[l++]=224|(g&61440)>>>12,s[l++]=128|(g&4032)>>>6,s[l++]=128|(g&63)>>>0):(s[l++]=240|(g&1835008)>>>18,s[l++]=128|(g&258048)>>>12,s[l++]=128|(g&4032)>>>6,s[l++]=128|(g&63)>>>0),h&&c++}this.utf16Length=e,this.utf8Length=n,this.utf16Value=r,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}createString(r){const e=r.omalloc(this.utf8Length);return r.HEAPU8.set(this.utf8Value,e),e}}class qi{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++qi.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(r){if(!nn)throw new Ub("Must invoke loadWasm first.");this._onigBinding=nn,this.content=r;const e=new gI(r);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!qi._sharedPtrInUse?(qi._sharedPtr||(qi._sharedPtr=nn.omalloc(1e4)),qi._sharedPtrInUse=!0,nn.HEAPU8.set(e.utf8Value,qi._sharedPtr),this.ptr=qi._sharedPtr):this.ptr=e.createString(nn)}convertUtf8OffsetToUtf16(r){return this.utf8OffsetToUtf16?r<0?0:r>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[r]:r}convertUtf16OffsetToUtf8(r){return this.utf16OffsetToUtf8?r<0?0:r>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[r]:r}dispose(){this.ptr===qi._sharedPtr?qi._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class xge{_onigBinding;_ptr;constructor(r){if(!nn)throw new Ub("Must invoke loadWasm first.");const e=[],n=[];for(let s=0,l=r.length;s{let n=t;return n=await n,typeof n=="function"&&(n=await n(e)),typeof n=="function"&&(n=await n(e)),Hge(n)?n=await n.instantiator(e):Vge(n)?n=await n.default(e):(Pge(n)&&(n=n.data),Rge(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Bge(n)(e):n=await Fge(n)(e):Dge(n)?n=await zp(n)(e):n instanceof WebAssembly.Module?n=await zp(n)(e):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await zp(n.default)(e))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return iC=r(),iC}function zp(t){return r=>WebAssembly.instantiate(t,r)}function Bge(t){return r=>WebAssembly.instantiateStreaming(t,r)}function Fge(t){return async r=>{const e=await t.arrayBuffer();return WebAssembly.instantiate(e,r)}}let jge;function Uge(){return jge}async function Gge(t){return t&&await Nge(t),{createScanner(r){return new xge(r)},createString(r){return new qi(r)}}}function Wge(t){return Gb(t)}function Gb(t){return Array.isArray(t)?Zge(t):typeof t=="object"?Kge(t):t}function Zge(t){let r=[];for(let e=0,n=t.length;e{for(let n in e)t[n]=e[n]}),t}function dU(t){const r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return r===0?t:~r===t.length-1?dU(t.substring(0,t.length-1)):t.substr(~r+1)}var Ep=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,oC=class{static hasCaptures(t){return t===null?!1:(Ep.lastIndex=0,Ep.test(t))}static replaceCaptures(t,r,e){return t.replace(Ep,(n,i,o,a)=>{let s=e[parseInt(i||o,10)];if(s){let l=r.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function fU(t,r){return tr?1:0}function CU(t,r){if(t===null&&r===null)return 0;if(!t)return-1;if(!r)return 1;let e=t.length,n=r.length;if(e===n){for(let i=0;ithis._root.match(n))}static createFromRawTheme(t,r){return this.createFromParsedTheme(qge(t),r)}static createFromParsedTheme(t,r){return Jge(t,r)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const r=t.scopeName,n=this._cachedMatchRoot.get(r).find(i=>Yge(t.parent,i.parentScopes));return n?new IU(n.fontStyle,n.foreground,n.background):null}},Sp=class O5{constructor(r,e){this.parent=r,this.scopeName=e}static push(r,e){for(const n of e)r=new O5(r,n);return r}static from(...r){let e=null;for(let n=0;n"){if(e===r.length-1)return!1;n=r[++e],i=!0}for(;t&&!Xge(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Xge(t,r){return r===t||t.startsWith(r)&&t[r.length]==="."}var IU=class{constructor(t,r,e){this.fontStyle=t,this.foregroundId=r,this.backgroundId=e}};function qge(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let r=t.settings,e=[],n=0;for(let i=0,o=r.length;i1&&(v=f.slice(0,f.length-1),v.reverse()),e[n++]=new Qge(C,v,i,l,c,u)}}return e}var Qge=class{constructor(t,r,e,n,i,o){this.scope=t,this.parentScopes=r,this.index=e,this.fontStyle=n,this.foreground=i,this.background=o}},ja=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(ja||{});function Jge(t,r){t.sort((l,c)=>{let u=fU(l.scope,c.scope);return u!==0||(u=CU(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let e=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(e=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new ehe(r),a=new IU(e,o.getId(n),o.getId(i)),s=new rhe(new u8(0,null,-1,0,0),[]);for(let l=0,c=t.length;lr?console.log("how did this happen?"):this.scopeDepth=r,e!==-1&&(this.fontStyle=e),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},rhe=class g8{constructor(r,e=[],n={}){this._mainRule=r,this._children=n,this._rulesWithParentScopes=e}static _cmpBySpecificity(r,e){if(r.scopeDepth!==e.scopeDepth)return e.scopeDepth-r.scopeDepth;let n=0,i=0;for(;r.parentScopes[n]===">"&&n++,e.parentScopes[i]===">"&&i++,!(n>=r.parentScopes.length||i>=e.parentScopes.length);){const o=e.parentScopes[i].length-r.parentScopes[n].length;if(o!==0)return o;n++,i++}return e.parentScopes.length-r.parentScopes.length}match(r){if(r!==""){let n=r.indexOf("."),i,o;if(n===-1?(i=r,o=""):(i=r.substring(0,n),o=r.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const e=this._rulesWithParentScopes.concat(this._mainRule);return e.sort(g8._cmpBySpecificity),e}insert(r,e,n,i,o,a){if(e===""){this._doInsertHere(r,n,i,o,a);return}let s=e.indexOf("."),l,c;s===-1?(l=e,c=""):(l=e.substring(0,s),c=e.substring(s+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new g8(this._mainRule.clone(),u8.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(r+1,c,n,i,o,a)}_doInsertHere(r,e,n,i,o){if(e===null){this._mainRule.acceptOverwrite(r,n,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a>>0}static getTokenType(r){return(r&768)>>>8}static containsBalancedBrackets(r){return(r&1024)!==0}static getFontStyle(r){return(r&30720)>>>11}static getForeground(r){return(r&16744448)>>>15}static getBackground(r){return(r&4278190080)>>>24}static set(r,e,n,i,o,a,s){let l=Ki.getLanguageId(r),c=Ki.getTokenType(r),u=Ki.containsBalancedBrackets(r)?1:0,g=Ki.getFontStyle(r),h=Ki.getForeground(r),d=Ki.getBackground(r);return e!==0&&(l=e),n!==8&&(c=n),i!==null&&(u=i?1:0),o!==-1&&(g=o),a!==0&&(h=a),s!==0&&(d=s),(l<<0|c<<8|u<<10|g<<11|h<<15|d<<24)>>>0}};function Dv(t,r){const e=[],n=nhe(t);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let c=a();if(e.push({matcher:c,priority:l}),i!==",")break;i=n.next()}return e;function o(){if(i==="-"){i=n.next();const l=o();return c=>!!l&&!l(c)}if(i==="("){i=n.next();const l=s();return i===")"&&(i=n.next()),l}if(oS(i)){const l=[];do l.push(i),i=n.next();while(oS(i));return c=>r(l,c)}return null}function a(){const l=[];let c=o();for(;c;)l.push(c),c=o();return u=>l.every(g=>g(u))}function s(){const l=[];let c=a();for(;c&&(l.push(c),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");c=a()}return u=>l.some(g=>g(u))}}function oS(t){return!!t&&!!t.match(/[\w\.:]+/)}function nhe(t){let r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,e=r.exec(t);return{next:()=>{if(!e)return null;const n=e[0];return e=r.exec(t),n}}}function mU(t){typeof t.dispose=="function"&&t.dispose()}var bd=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},ihe=class{constructor(t,r){this.scopeName=t,this.ruleName=r}toKey(){return`${this.scopeName}#${this.ruleName}`}},ohe=class{constructor(){this._references=[],this._seenReferenceKeys=new Set,this.visitedRule=new Set}get references(){return this._references}add(t){const r=t.toKey();this._seenReferenceKeys.has(r)||(this._seenReferenceKeys.add(r),this._references.push(t))}},ahe=class{constructor(t,r){this.repo=t,this.initialScopeName=r,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new bd(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const r=new ohe;for(const e of t)she(e,this.initialScopeName,this.repo,r);for(const e of r.references)if(e instanceof bd){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function she(t,r,e,n){const i=e.lookup(t.scopeName);if(!i){if(t.scopeName===r)throw new Error(`No grammar provided for <${r}>`);return}const o=e.lookup(r);t instanceof bd?x5({baseGrammar:o,selfGrammar:i},n):h8(t.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=e.injections(t.scopeName);if(a)for(const s of a)n.add(new bd(s))}function h8(t,r,e){if(r.repository&&r.repository[t]){const n=r.repository[t];Nv([n],r,e)}}function x5(t,r){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Nv(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},r),t.selfGrammar.injections&&Nv(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},r)}function Nv(t,r,e){for(const n of t){if(e.visitedRule.has(n))continue;e.visitedRule.add(n);const i=n.repository?hU({},r.repository,n.repository):r.repository;Array.isArray(n.patterns)&&Nv(n.patterns,{...r,repository:i},e);const o=n.include;if(!o)continue;const a=yU(o);switch(a.kind){case 0:x5({...r,selfGrammar:r.baseGrammar},e);break;case 1:x5(r,e);break;case 2:h8(a.ruleName,{...r,repository:i},e);break;case 3:case 4:const s=a.scopeName===r.selfGrammar.scopeName?r.selfGrammar:a.scopeName===r.baseGrammar.scopeName?r.baseGrammar:void 0;if(s){const l={baseGrammar:r.baseGrammar,selfGrammar:s,repository:i};a.kind===4?h8(a.ruleName,l,e):x5(l,e)}else a.kind===4?e.add(new ihe(a.scopeName,a.ruleName)):e.add(new bd(a.scopeName));break}}}var lhe=class{constructor(){this.kind=0}},che=class{constructor(){this.kind=1}},uhe=class{constructor(t){this.ruleName=t,this.kind=2}},ghe=class{constructor(t){this.scopeName=t,this.kind=3}},hhe=class{constructor(t,r){this.scopeName=t,this.ruleName=r,this.kind=4}};function yU(t){if(t==="$base")return new lhe;if(t==="$self")return new che;const r=t.indexOf("#");if(r===-1)return new ghe(t);if(r===0)return new uhe(t.substring(1));{const e=t.substring(0,r),n=t.substring(r+1);return new hhe(e,n)}}var dhe=/\\(\d+)/,aS=/\\(\d+)/g,fhe=-1,bU=-2;var If=class{constructor(t,r,e,n){this.$location=t,this.id=r,this._name=e||null,this._nameIsCapturing=oC.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=oC.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${dU(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,r){return!this._nameIsCapturing||this._name===null||t===null||r===null?this._name:oC.replaceCaptures(this._name,t,r)}getContentName(t,r){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:oC.replaceCaptures(this._contentName,t,r)}},Che=class extends If{constructor(t,r,e,n,i){super(t,r,e,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,r){throw new Error("Not supported!")}compile(t,r){throw new Error("Not supported!")}compileAG(t,r,e,n){throw new Error("Not supported!")}},vhe=class extends If{constructor(t,r,e,n,i){super(t,r,e,null),this._match=new wd(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,r){r.push(this._match)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t).compileAG(t,e,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $d,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},sS=class extends If{constructor(t,r,e,n,i){super(t,r,e,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,r){for(const e of this.patterns)t.getRule(e).collectPatterns(t,r)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t).compileAG(t,e,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $d,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},d8=class extends If{constructor(t,r,e,n,i,o,a,s,l,c){super(t,r,e,n),this._begin=new wd(i,this.id),this.beginCaptures=o,this._end=new wd(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,r){return this._end.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t,r).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t,r).compileAG(t,e,n)}_getCachedCompiledPatterns(t,r){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $d;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,r):this._cachedCompiledPatterns.setSource(0,r)),this._cachedCompiledPatterns}},Bv=class extends If{constructor(t,r,e,n,i,o,a,s,l){super(t,r,e,n),this._begin=new wd(i,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=new wd(a,bU),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,r){return this._while.resolveBackReferences(t,r)}collectPatterns(t,r){r.push(this._begin)}compile(t,r){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,r,e,n){return this._getCachedCompiledPatterns(t).compileAG(t,e,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $d;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,r){return this._getCachedCompiledWhilePatterns(t,r).compile(t)}compileWhileAG(t,r,e,n){return this._getCachedCompiledWhilePatterns(t,r).compileAG(t,e,n)}_getCachedCompiledWhilePatterns(t,r){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $d,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,r||"￿"),this._cachedCompiledWhilePatterns}},wU=class Tn{static createCaptureRule(r,e,n,i,o){return r.registerRule(a=>new Che(e,a,n,i,o))}static getCompiledRuleId(r,e,n){return r.id||e.registerRule(i=>{if(r.id=i,r.match)return new vhe(r.$vscodeTextmateLocation,r.id,r.name,r.match,Tn._compileCaptures(r.captures,e,n));if(typeof r.begin>"u"){r.repository&&(n=hU({},n,r.repository));let o=r.patterns;return typeof o>"u"&&r.include&&(o=[{include:r.include}]),new sS(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,Tn._compilePatterns(o,e,n))}return r.while?new Bv(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,r.begin,Tn._compileCaptures(r.beginCaptures||r.captures,e,n),r.while,Tn._compileCaptures(r.whileCaptures||r.captures,e,n),Tn._compilePatterns(r.patterns,e,n)):new d8(r.$vscodeTextmateLocation,r.id,r.name,r.contentName,r.begin,Tn._compileCaptures(r.beginCaptures||r.captures,e,n),r.end,Tn._compileCaptures(r.endCaptures||r.captures,e,n),r.applyEndPatternLast,Tn._compilePatterns(r.patterns,e,n))}),r.id}static _compileCaptures(r,e,n){let i=[];if(r){let o=0;for(const a in r){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(const a in r){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;r[a].patterns&&(l=Tn.getCompiledRuleId(r[a],e,n)),i[s]=Tn.createCaptureRule(e,r[a].$vscodeTextmateLocation,r[a].name,r[a].contentName,l)}}return i}static _compilePatterns(r,e,n){let i=[];if(r)for(let o=0,a=r.length;or.substring(i.start,i.end));return aS.lastIndex=0,this.source.replace(aS,(i,o)=>vU(n[parseInt(o,10)]||""))}_buildAnchorCache(){let r=[],e=[],n=[],i=[],o,a,s,l;for(o=0,a=this.source.length;oe.source);this._cached=new lS(t,r,this._items.map(e=>e.ruleId))}return this._cached}compileAG(t,r,e){return this._hasAnchors?r?e?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,r,e)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,r,e)),this._anchorCache.A1_G0):e?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,r,e)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,r,e)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,r,e){let n=this._items.map(i=>i.resolveAnchors(r,e));return new lS(t,n,this._items.map(i=>i.ruleId))}},lS=class{constructor(t,r,e){this.regExps=r,this.rules=e,this.scanner=t.createOnigScanner(r)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let r=0,e=this.rules.length;r{const i=this._scopeToLanguage(n),o=this._toStandardTokenType(n);return new f8(i,o)}),this._defaultAttributes=new f8(r,8),this._embeddedLanguagesMatcher=new Ihe(Object.entries(e||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(r){return r===null?C8._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(r)}_scopeToLanguage(r){return this._embeddedLanguagesMatcher.match(r)||0}_toStandardTokenType(r){const e=r.match(C8.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};Wb._NULL_SCOPE_METADATA=new f8(0,0);Wb.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;var Ahe=Wb,Ihe=class{constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const r=t.map(([e,n])=>vU(e));r.sort(),r.reverse(),this.scopesRegExp=new RegExp(`^((${r.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const r=t.match(this.scopesRegExp);if(r)return this.values.get(r[1])}},cS=class{constructor(t,r){this.stack=t,this.stoppedEarly=r}};function _U(t,r,e,n,i,o,a,s){const l=r.content.length;let c=!1,u=-1;if(a){const d=phe(t,r,e,n,i,o);i=d.stack,n=d.linePos,e=d.isFirstLine,u=d.anchorPosition}const g=Date.now();for(;!c;){if(s!==0&&Date.now()-g>s)return new cS(i,!0);h()}return new cS(i,!1);function h(){const d=mhe(t,r,e,n,i,u);if(!d){o.produce(i,l),c=!0;return}const f=d.captureIndices,C=d.matchedRuleId,v=f&&f.length>0?f[0].end>n:!1;if(C===fhe){const A=i.getRule(t);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),gh(t,r,e,i,o,A.endCaptures,f),o.produce(i,f[0].end);const I=i;if(i=i.parent,u=I.getAnchorPos(),!v&&I.getEnterPos()===n){i=I,o.produce(i,l),c=!0;return}}else{const A=t.getRule(C);o.produce(i,f[0].start);const I=i,p=A.getName(r.content,f),m=i.contentNameScopesList.pushAttributed(p,t);if(i=i.push(C,n,u,f[0].end===l,null,m,m),A instanceof d8){const b=A;gh(t,r,e,i,o,b.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;const _=b.getContentName(r.content,f),L=m.pushAttributed(_,t);if(i=i.withContentNameScopesList(L),b.endHasBackReferences&&(i=i.withEndRule(b.getEndWithResolvedBackReferences(r.content,f))),!v&&I.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(A instanceof Bv){const b=A;gh(t,r,e,i,o,b.beginCaptures,f),o.produce(i,f[0].end),u=f[0].end;const _=b.getContentName(r.content,f),L=m.pushAttributed(_,t);if(i=i.withContentNameScopesList(L),b.whileHasBackReferences&&(i=i.withEndRule(b.getWhileWithResolvedBackReferences(r.content,f))),!v&&I.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),c=!0;return}}else if(gh(t,r,e,i,o,A.captures,f),o.produce(i,f[0].end),i=i.pop(),!v){i=i.safePop(),o.produce(i,l),c=!0;return}}f[0].end>n&&(n=f[0].end,e=!1)}}function phe(t,r,e,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const s=[];for(let l=i;l;l=l.pop()){const c=l.getRule(t);c instanceof Bv&&s.push({rule:c,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:c,findOptions:u}=whe(l.rule,t,l.stack.endRule,e,n===a),g=c.findNextMatchSync(r,n,u);if(g){if(g.ruleId!==bU){i=l.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(o.produce(l.stack,g.captureIndices[0].start),gh(t,r,e,l.stack,o,l.rule.whileCaptures,g.captureIndices),o.produce(l.stack,g.captureIndices[0].end),a=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,e=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:e}}function mhe(t,r,e,n,i,o){const a=yhe(t,r,e,n,i,o),s=t.getInjections();if(s.length===0)return a;const l=bhe(s,t,r,e,n,i,o);if(!l)return a;if(!a)return l;const c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u=s)&&(s=p,l=I.captureIndices,c=I.ruleId,u=f.priority,s===i))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function MU(t,r,e,n,i){return{ruleScanner:t.compileAG(r,e,n,i),findOptions:0}}function whe(t,r,e,n,i){return{ruleScanner:t.compileWhileAG(r,e,n,i),findOptions:0}}function gh(t,r,e,n,i,o,a){if(o.length===0)return;const s=r.content,l=Math.min(o.length,a.length),c=[],u=a[0].end;for(let g=0;gu)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(n,d.start),h.retokenizeCapturedWithRuleId){const C=h.getName(s,a),v=n.contentNameScopesList.pushAttributed(C,t),A=h.getContentName(s,a),I=v.pushAttributed(A,t),p=n.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,v,I),m=t.createOnigString(s.substring(0,d.end));_U(t,m,e&&d.start===0,d.start,p,i,!1,0),mU(m);continue}const f=h.getName(s,a);if(f!==null){const v=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(f,t);c.push(new $he(v,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var $he=class{constructor(t,r){this.scopes=t,this.endPos=r}};function _he(t,r,e,n,i,o,a,s){return new zhe(t,r,e,n,i,o,a,s)}function uS(t,r,e,n,i){const o=Dv(r,Fv),a=wU.getCompiledRuleId(e,n,i.repository);for(const s of o)t.push({debugSelector:r,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function Fv(t,r){if(r.length{for(let i=e;ie&&t.substr(0,e)===r&&t[e]==="."}var zhe=class{constructor(t,r,e,n,i,o,a,s){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new Ahe(e,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=gS(r,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const c=Dv(l,Fv);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:i[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},r=[],e=this._rootScopeName,n=t.lookup(e);if(n){const i=n.injections;if(i)for(let a in i)uS(r,a,i[a],this,n);const o=this._grammarRepository.injections(e);o&&o.forEach(a=>{const s=this.getExternalGrammar(a);if(s){const l=s.injectionSelector;l&&uS(r,l,s,this,s)}})}return r.sort((i,o)=>i.priority-o.priority),r}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const r=++this._lastRuleId,e=t(r);return this._ruleId2desc[r]=e,e}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,r){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const e=this._grammarRepository.lookup(t);if(e)return this._includedGrammars[t]=gS(e,r&&r.$base),this._includedGrammars[t]}}tokenizeLine(t,r,e=0){const n=this._tokenize(t,r,!1,e);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,r,e=0){const n=this._tokenize(t,r,!0,e);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,r,e,n){this._rootId===-1&&(this._rootId=wU.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!r||r===A8.NULL){i=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),g=du.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=kh.createRootAndLookUpScopeName(h,g,this):d=kh.createRoot("unknown",g),r=new A8(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,r.reset();t=t+` `;const o=this.createOnigString(t),a=o.content.length,s=new She(e,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=_U(this,o,i,0,r,s,!0,n);return mU(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function gS(t,r){return t=Wge(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=r||t.repository.$self,t}var kh=class Qo{constructor(r,e,n){this.parent=r,this.scopePath=e,this.tokenAttributes=n}static fromExtension(r,e){let n=r,i=r?.scopePath??null;for(const o of e)i=Sp.push(i,o.scopeNames),n=new Qo(n,i,o.encodedTokenAttributes);return n}static createRoot(r,e){return new Qo(null,new Sp(null,r),e)}static createRootAndLookUpScopeName(r,e,n){const i=n.getMetadataForScope(r),o=new Sp(null,r),a=n.themeProvider.themeMatch(o),s=Qo.mergeAttributes(e,i,a);return new Qo(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(r){return Qo.equals(this,r)}static equals(r,e){do{if(r===e||!r&&!e)return!0;if(!r||!e||r.scopeName!==e.scopeName||r.tokenAttributes!==e.tokenAttributes)return!1;r=r.parent,e=e.parent}while(!0)}static mergeAttributes(r,e,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),du.set(r,e.languageId,e.tokenType,null,i,o,a)}pushAttributed(r,e){if(r===null)return this;if(r.indexOf(" ")===-1)return Qo._pushAttributed(this,r,e);const n=r.split(/ /g);let i=this;for(const o of n)i=Qo._pushAttributed(i,o,e);return i}static _pushAttributed(r,e,n){const i=n.getMetadataForScope(e),o=r.scopePath.push(e),a=n.themeProvider.themeMatch(o),s=Qo.mergeAttributes(r.tokenAttributes,i,a);return new Qo(r,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(r){const e=[];let n=this;for(;n&&n!==r;)e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===r?e.reverse():void 0}},v8=class f2{constructor(r,e,n,i,o,a,s,l){this.parent=r,this.ruleId=e,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(r){return r===null?!1:f2._equals(this,r)}static _equals(r,e){return r===e?!0:this._structuralEquals(r,e)?kh.equals(r.contentNameScopesList,e.contentNameScopesList):!1}static _structuralEquals(r,e){do{if(r===e||!r&&!e)return!0;if(!r||!e||r.depth!==e.depth||r.ruleId!==e.ruleId||r.endRule!==e.endRule)return!1;r=r.parent,e=e.parent}while(!0)}clone(){return this}static _reset(r){for(;r;)r._enterPos=-1,r._anchorPos=-1,r=r.parent}reset(){f2._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(r,e,n,i,o,a,s){return new f2(this,r,e,n,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(r){return r.getRule(this.ruleId)}toString(){const r=[];return this._writeString(r,0),"["+r.join(",")+"]"}_writeString(r,e){return this.parent&&(e=this.parent._writeString(r,e)),r[e++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,e}withContentNameScopesList(r){return this.contentNameScopesList===r?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,r)}withEndRule(r){return this.endRule===r?this:new f2(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,r,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(r){let e=this;for(;e&&e._enterPos===r._enterPos;){if(e.ruleId===r.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(r,e){const n=kh.fromExtension(r?.nameScopesList??null,e.nameScopesList);return new f2(r,e.ruleId,e.enterPos??-1,e.anchorPos??-1,e.beginRuleCapturedEOL,e.endRule,n,kh.fromExtension(n,e.contentNameScopesList))}};v8.NULL=new v8(null,0,0,0,!1,null,null,null);var A8=v8,Ehe=class{constructor(t,r){this.allowAny=!1,this.balancedBracketScopes=t.flatMap(e=>e==="*"?(this.allowAny=!0,[]):Dv(e,Fv).map(n=>n.matcher)),this.unbalancedBracketScopes=r.flatMap(e=>Dv(e,Fv).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const r of this.unbalancedBracketScopes)if(r(t))return!1;for(const r of this.balancedBracketScopes)if(r(t))return!0;return this.allowAny}},She=class{constructor(t,r,e,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=e,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,r){this.produceFromScopes(t.contentNameScopesList,r)}produceFromScopes(t,r){if(this._lastTokenEndIndex>=r)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(n=du.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=du.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=r;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=r;return}const e=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:r,scopes:e}),this._lastTokenEndIndex=r}getResult(t,r){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===r-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,r),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,r){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===r-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,r),this._binaryTokens[this._binaryTokens.length-2]=0);const e=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(r,e,n,i,o)}_loadSingleGrammar(r){this._ensureGrammarCache.has(r)||(this._doLoadSingleGrammar(r),this._ensureGrammarCache.set(r,!0))}_doLoadSingleGrammar(r){const e=this._options.loadGrammar(r);if(e){const n=typeof this._options.getInjections=="function"?this._options.getInjections(r):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(r,e=[],n=0,i=null){return this._syncRegistry.addGrammar(r,e),this._grammarForScopeName(r.scopeName,n,i)}_grammarForScopeName(r,e=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(r,e,n,i,o)}},I8=A8.NULL;const khe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class pf{constructor(r,e,n){this.property=r,this.normal=e,n&&(this.space=n)}}pf.prototype.property={};pf.prototype.normal={};pf.prototype.space=null;function zU(t,r){const e={},n={};let i=-1;for(;++i4&&e.slice(0,4)==="data"&&Phe.test(r)){if(r.charAt(4)==="-"){const o=r.slice(5).replace(dS,Bhe);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=r.slice(4);if(!dS.test(o)){let a=o.replace(Rhe,Nhe);a.charAt(0)!=="-"&&(a="-"+a),r="data"+a}}i=Zb}return new i(n,r)}function Nhe(t){return"-"+t.toLowerCase()}function Bhe(t){return t.charAt(1).toUpperCase()}const Fhe=zU([TU,SU,OU,xU,Hhe],"html"),HU=zU([TU,SU,OU,xU,Vhe],"svg"),fS={}.hasOwnProperty;function jhe(t,r){const e=r||{};function n(i,...o){let a=n.invalid;const s=n.handlers;if(i&&fS.call(i,t)){const l=String(i[t]);a=fS.call(s,l)?s[l]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=e.handlers||{},n.invalid=e.invalid,n.unknown=e.unknown,n}const Uhe=/["&'<>`]/g,Ghe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Whe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Zhe=/[|\\{}()[\]^$+*?.]/g,CS=new WeakMap;function Khe(t,r){if(t=t.replace(r.subset?Yhe(r.subset):Uhe,n),r.subset||r.escapeOnly)return t;return t.replace(Ghe,e).replace(Whe,n);function e(i,o,a){return r.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),r)}function n(i,o,a){return r.format(i.charCodeAt(0),a.charCodeAt(o+1),r)}}function Yhe(t){let r=CS.get(t);return r||(r=Xhe(t),CS.set(t,r)),r}function Xhe(t){const r=[];let e=-1;for(;++e",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:"€"},rde=["cent","copy","divide","gt","lt","not","para","times"],VU={}.hasOwnProperty,y8={};let aC;for(aC in Lp)VU.call(Lp,aC)&&(y8[Lp[aC]]=aC);const nde=/[^\dA-Za-z]/;function ide(t,r,e,n){const i=String.fromCharCode(t);if(VU.call(y8,i)){const o=y8[i],a="&"+o;return e&&tde.includes(o)&&!rde.includes(o)&&(!n||r&&r!==61&&nde.test(String.fromCharCode(r)))?a:a+";"}return""}function ode(t,r,e){let n=Qhe(t,r,e.omitOptionalSemicolons),i;if((e.useNamedReferences||e.useShortestReferences)&&(i=ide(t,r,e.omitOptionalSemicolons,e.attribute)),(e.useShortestReferences||!i)&&e.useShortestReferences){const o=ede(t,r,e.omitOptionalSemicolons);o.length|^->||--!>|"],lde=["<",">"];function cde(t,r,e,n){return n.settings.bogusComments?"":"";function i(o){return W2(o,Object.assign({},n.settings.characterReferences,{subset:lde}))}}function ude(t,r,e,n){return""}function vS(t,r){const e=String(t);if(typeof r!="string")throw new TypeError("Expected character");let n=0,i=e.indexOf(r);for(;i!==-1;)n++,i=e.indexOf(r,i+r.length);return n}function gde(t,r){const e=r||{};return(t[t.length-1]===""?[...t,""]:t).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}function hde(t){return t.join(" ").trim()}const dde=/[ \t\n\f\r]/g;function Kb(t){return typeof t=="object"?t.type==="text"?AS(t.value):!1:AS(t)}function AS(t){return t.replace(dde,"")===""}const Jr=RU(1),PU=RU(-1),fde=[];function RU(t){return r;function r(e,n,i){const o=e?e.children:fde;let a=(n||0)+t,s=o[a];if(!i)for(;s&&Kb(s);)a+=t,s=o[a];return s}}const Cde={}.hasOwnProperty;function DU(t){return r;function r(e,n,i){return Cde.call(t,e.tagName)&&t[e.tagName](e,n,i)}}const Yb=DU({body:Ade,caption:kp,colgroup:kp,dd:yde,dt:mde,head:kp,html:vde,li:pde,optgroup:bde,option:wde,p:Ide,rp:IS,rt:IS,tbody:_de,td:pS,tfoot:Mde,th:pS,thead:$de,tr:zde});function kp(t,r,e){const n=Jr(e,r,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Kb(n.value.charAt(0)))}function vde(t,r,e){const n=Jr(e,r);return!n||n.type!=="comment"}function Ade(t,r,e){const n=Jr(e,r);return!n||n.type!=="comment"}function Ide(t,r,e){const n=Jr(e,r);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!e||!(e.type==="element"&&(e.tagName==="a"||e.tagName==="audio"||e.tagName==="del"||e.tagName==="ins"||e.tagName==="map"||e.tagName==="noscript"||e.tagName==="video"))}function pde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&n.tagName==="li"}function mde(t,r,e){const n=Jr(e,r);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function yde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function IS(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function bde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&n.tagName==="optgroup"}function wde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function $de(t,r,e){const n=Jr(e,r);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function _de(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function Mde(t,r,e){return!Jr(e,r)}function zde(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&n.tagName==="tr"}function pS(t,r,e){const n=Jr(e,r);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Ede=DU({body:Lde,colgroup:kde,head:Tde,html:Sde,tbody:Ode});function Sde(t){const r=Jr(t,-1);return!r||r.type!=="comment"}function Tde(t){const r=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(r.has(n.tagName))return!1;r.add(n.tagName)}const e=t.children[0];return!e||e.type==="element"}function Lde(t){const r=Jr(t,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Kb(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function kde(t,r,e){const n=PU(e,r),i=Jr(t,-1,!0);return e&&n&&n.type==="element"&&n.tagName==="colgroup"&&Yb(n,e.children.indexOf(n),e)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Ode(t,r,e){const n=PU(e,r),i=Jr(t,-1);return e&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Yb(n,e.children.indexOf(n),e)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const sC={name:[[` \f\r &/=>`.split(""),` \f\r "&'/=>\``.split("")],[`\0 \f\r "&'/<=>`.split(""),`\0 \f\r "&'/<=>\``.split("")]],unquoted:[[` \f\r &>`.split(""),`\0 \f\r "&'<=>\``.split("")],[`\0 \f\r "&'<=>\``.split(""),`\0 \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function xde(t,r,e,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(t.tagName.toLowerCase());const s=[];let l;i.space==="html"&&t.tagName==="svg"&&(n.schema=HU);const c=Hde(n,t.properties),u=n.all(i.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=i,u&&(a=!1),(c||!o||!Ede(t,r,e))&&(s.push("<",t.tagName,c?" "+c:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!o||!Yb(t,r,e))&&s.push(""),s.join("")}function Hde(t,r){const e=[];let n=-1,i;if(r){for(i in r)if(r[i]!==null&&r[i]!==void 0){const o=Vde(t,i,r[i]);o&&e.push(o)}}for(;++nvS(e,t.alternative)&&(a=t.alternative),s=a+W2(e,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?sC.single:sC.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}const Pde=["<","&"];function NU(t,r,e,n){return e&&e.type==="element"&&(e.tagName==="script"||e.tagName==="style")?t.value:W2(t.value,Object.assign({},n.settings.characterReferences,{subset:Pde}))}function Rde(t,r,e,n){return n.settings.allowDangerousHtml?t.value:NU(t,r,e,n)}function Dde(t,r,e,n){return n.all(t)}const Nde=jhe("type",{invalid:Bde,unknown:Fde,handlers:{comment:cde,doctype:ude,element:xde,raw:Rde,root:Dde,text:NU}});function Bde(t){throw new Error("Expected node, not `"+t+"`")}function Fde(t){const r=t;throw new Error("Cannot compile unknown node `"+r.type+"`")}const jde={},Ude={},Gde=[];function Wde(t,r){const e=jde,n=e.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:Zde,all:Kde,settings:{omitOptionalTags:e.omitOptionalTags||!1,allowParseErrors:e.allowParseErrors||!1,allowDangerousCharacters:e.allowDangerousCharacters||!1,quoteSmart:e.quoteSmart||!1,preferUnquoted:e.preferUnquoted||!1,tightAttributes:e.tightAttributes||!1,upperDoctype:e.upperDoctype||!1,tightDoctype:e.tightDoctype||!1,bogusComments:e.bogusComments||!1,tightCommaSeparatedLists:e.tightCommaSeparatedLists||!1,tightSelfClosing:e.tightSelfClosing||!1,collapseEmptyAttributes:e.collapseEmptyAttributes||!1,allowDangerousHtml:e.allowDangerousHtml||!1,voids:e.voids||khe,characterReferences:e.characterReferences||Ude,closeSelfClosing:e.closeSelfClosing||!1,closeEmptyElements:e.closeEmptyElements||!1},schema:e.space==="svg"?HU:Fhe,quote:n,alternative:i}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Zde(t,r,e){return Nde(t,r,e,this)}function Kde(t){const r=[],e=t&&t.children||Gde;let n=-1;for(;++n\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,s="";for(const l of t.matchAll(i)){const{0:c,groups:{$skip:u}}=l;if(!u&&(!n||n===di.DEFAULT==!a)){e instanceof Function?s+=e(l,{context:a?di.CHAR_CLASS:di.DEFAULT,negated:o[o.length-1]}):s+=e;continue}c[0]==="["?(a++,o.push(c[1]==="^")):c==="]"&&a&&(a--,o.pop()),s+=c}return s}function Xb(t,r,e,n){fu(t,r,e,n)}function qb(t,r,e=0,n){if(!new RegExp(r,"su").test(t))return null;const i=new RegExp(`${r}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=e;let o=0,a;for(;a=i.exec(t);){const{0:s,groups:{$skip:l}}=a;if(!l&&(!n||n===di.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function Yde(t,r,e){return!!qb(t,r,0,e)}function BU(t,r){const e=/\\?./gsu;e.lastIndex=r;let n=t.length,i=0,o=1,a;for(;a=e.exec(t);){const[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){n=a.index;break}}return t.slice(r,n)}var b8=class{#e;constructor(t){this.#e=t}toString(){return String(this.#e)}};function Xde(t,...r){if(Array.isArray(t?.raw))return new b8(t.raw.flatMap((e,n)=>n{try{new RegExp("(?i:)")}catch{return!1}return!0})();var qde=(()=>{try{new RegExp("","v")}catch{return!1}return!0})(),Qb="&!#$%*+,.:;<=>?@^`~",Jb="$E$",ew=String.raw`\(\?<(?![=!])(?[^>]+)>`,tw=String.raw`\((?!\?)(?!(?<=\(\?\()DEFINE\))|${ew}`,rw=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Qde(t){return t.replace(new RegExp(`^([${Qb}])(?!\\1)`),(r,e,n)=>`\\${r}${n+1===t.length?"":r}`)}function Jde(t,r){return fu(t,String.raw`\\0(?!\d)`,"\\x00",r)}var mS=new RegExp(String.raw` (?\(\?<(?![=!])|\\[gk]<) | (?\\[pPu]\{) | (?\\q\{) | (?\{) | (?\\(?: $ | c(?![A-Za-z]) | u(?![A-Fa-f\d]{4})[A-Fa-f\d]{0,3} | x(?![A-Fa-f\d]{2})[A-Fa-f\d]? ) ) | -- | \\?. `.replace(/\s+/g,""),"gsu");function FU(t,{regexContext:r=Br.DEFAULT,charClassContext:e=Fr.DEFAULT,charClassDepth:n=0,lastPos:i=0}={}){mS.lastIndex=i;let o;for(;o=mS.exec(t);){const{0:a,groups:{groupN:s,enclosedT:l,qT:c,intervalQ:u,incompleteT:g}}=o;a==="["?(n++,r=Br.CHAR_CLASS,e=Fr.DEFAULT):a==="]"&&r===Br.CHAR_CLASS?(n&&n--,n||(r=Br.DEFAULT),e=Fr.DEFAULT):r===Br.CHAR_CLASS?g?e=Fr.INVALID_INCOMPLETE_TOKEN:a==="-"?e=Fr.RANGE:l?e=Fr.ENCLOSED_TOKEN:c?e=Fr.Q_TOKEN:(a==="}"&&(e===Fr.ENCLOSED_TOKEN||e===Fr.Q_TOKEN)||e===Fr.INVALID_INCOMPLETE_TOKEN||e===Fr.RANGE)&&(e=Fr.DEFAULT):g?r=Br.INVALID_INCOMPLETE_TOKEN:s?r=Br.GROUP_NAME:l?r=Br.ENCLOSED_TOKEN:u?r=Br.INTERVAL_QUANTIFIER:(a===">"&&r===Br.GROUP_NAME||a==="}"&&(r===Br.ENCLOSED_TOKEN||r===Br.INTERVAL_QUANTIFIER)||r===Br.INVALID_INCOMPLETE_TOKEN)&&(r=Br.DEFAULT)}return{regexContext:r,charClassContext:e,charClassDepth:n,lastPos:t.length}}function efe(t){let r=0;return Xb(t,tw,()=>r++,di.DEFAULT),r}function H5(t,r,e,n){return t.slice(0,r)+n+t.slice(r+e.length)}var tfe=["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"].join("|");new RegExp(String.raw` \\(?: c[A-Za-z] | p\{(?${tfe})\} | [pP]\{[^\}]+\} | (?q) | u(?:[A-Fa-f\d]{4}|\{[A-Fa-f\d]+\}) | x[A-Fa-f\d]{2} | . ) | -- | && | . `.replace(/\s+/g,""),"gsu");function rfe(t,r,e,n){let i={raw:[]},o=[],a;return t.raw.forEach((s,l)=>{const c=e(s,{...a,lastPos:0},n);if(i.raw.push(c.transformed),a=c.runningContext,l\\[1-9]\d*) | \\?. `.replace(/\s+/g,""),"gsu");function ife(t,r){t=String(t);let e="",n="";for(const{0:i,groups:{backrefNum:o}}of t.matchAll(nfe)){e+=i,r=FU(e,r);const{regexContext:a}=r;if(a===Br.DEFAULT)if(i==="(")n+="(?:";else{if(o)throw new Error(`Invalid decimal escape "${i}" with implicit flag n; replace with named backreference`);n+=i}else n+=i}return{transformed:n,runningContext:r}}var yS=/^\s$/,ofe=/^\\[\s#]$/,Op=/^[ \t]$/,afe=/^\\[ \t]$/,sfe=new RegExp(String.raw` \\(?: [gk]< | [pPu]\{ | c[A-Za-z] | u[A-Fa-f\d]{4} | x[A-Fa-f\d]{2} | 0\d+ ) | \[\^ | ${rw} | \(\?< | (?[${Qb}])\k | -- | \\?. `.replace(/\s+/g,""),"gsu");function lfe(t,r,e){t=String(t);let n=!1,i=!1,o=!1,a="",s="",l="",c="",u=!1;const g=(h,{prefix:d=!0,postfix:f=!1}={})=>(h=(u&&d?"(?:)":"")+h+(f?"(?:)":""),u=!1,h);for(const{0:h,index:d}of t.matchAll(sfe)){if(o){h===` `&&(o=!1,u=!0);continue}if(n){if(yS.test(h))continue;n=!1,u=!0}else if(i){if(Op.test(h))continue;i=!1}a+=h,r=FU(a,r);const{regexContext:f,charClassContext:C}=r;if(h==="-"&&f===Br.CHAR_CLASS&&c===Fr.RANGE&&(e.flags.includes("v")||e.unicodeSetsPlugin))throw new Error("Invalid unescaped hyphen as the end value for a range");if(f===Br.DEFAULT&&/^(?:[?*+]|\?\?)$/.test(h)||f===Br.INTERVAL_QUANTIFIER&&h==="{")s+=g(h,{prefix:!1,postfix:l==="("&&h==="?"});else if(f===Br.DEFAULT)yS.test(h)?n=!0:h.startsWith("#")?o=!0:ofe.test(h)?s+=g(h[1],{prefix:!1}):s+=g(h);else if(f===Br.CHAR_CLASS&&h!=="["&&h!=="[^")if(Op.test(h)&&(C===Fr.DEFAULT||C===Fr.RANGE||C===Fr.Q_TOKEN))i=!0;else{if(C===Fr.INVALID_INCOMPLETE_TOKEN)throw new Error(`Invalid incomplete token in character class: "${h}"`);if(afe.test(h)&&(C===Fr.DEFAULT||C===Fr.Q_TOKEN))s+=g(h[1],{prefix:!1});else if(C===Fr.DEFAULT){const v=t[d+1]??"";let A=Jde(h);(Op.test(v)||h==="^")&&(A=Qde(A)),s+=g(A)}else s+=g(h)}else s+=g(h);n||i||o||(l=h,c=C)}return{transformed:s,runningContext:r}}function cfe(t){const r=String.raw`\(\?:\)`;t=fu(t,`(?:${r}){2,}`,"(?:)",di.DEFAULT);const e=Jb.replace(/\$/g,"\\$");return t=fu(t,String.raw`(?:${r}(?=[)|.[$\\]|\((?!DEFINE)|$)|(?<=[()|.\]^>]|\\[bBdDfnrsStvwW]|\(\?(?:[:=!]|<[=!])|^)${r}(?![?*+{]))(?!${e})`,"",di.DEFAULT),t}var bS=new RegExp(String.raw`(?${rw})|(?\((?:\?<[^>]+>)?)|\\?.`,"gsu");function ufe(t,r){if(!/\(\?>/.test(t))return t;const e="(?>",n=`(?:(?=(${r.useEmulationGroups?Jb:""}`,i=[0];let o=0,a=0,s=NaN,l;do{l=!1;let c=0,u=0,g=!1,h;for(bS.lastIndex=Number.isNaN(s)?0:s+n.length;h=bS.exec(t);){const{0:d,index:f,groups:{capturingStart:C,noncapturingStart:v}}=h;if(d==="[")c++;else if(c)d==="]"&&c--;else if(d===e&&!g)s=f,g=!0;else if(g&&v)u++;else if(C)g?u++:(o++,i.push(o+a));else if(d===")"&&g){if(!u){a++,t=`${t.slice(0,s)}${n}${t.slice(s+e.length,f)}))<$$${a+o}>)${t.slice(f+1)}`,l=!0;break}u--}}}while(l);return t=fu(t,String.raw`\\(?[1-9]\d*)|<\$\$(?\d+)>`,({0:c,groups:{backrefNum:u,wrappedBackrefNum:g}})=>{if(u){const h=+u;if(h>i.length-1)throw new Error(`Backref "${c}" greater than number of captures`);return`\\${i[h]}`}return`\\${g}`},di.DEFAULT),t}var jU=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,xp=new RegExp(String.raw` \\(?: \d+ | c[A-Za-z] | [gk]<[^>]+> | [pPu]\{[^\}]+\} | u[A-Fa-f\d]{4} | x[A-Fa-f\d]{2} ) | \((?: \? (?: [:=!>] | <(?:[=!]|[^>]+>) | [A-Za-z\-]+: | \(DEFINE\) ))? | (?${jU})(?[?+]?)(?[?*+\{]?) | \\?. `.replace(/\s+/g,""),"gsu");function gfe(t){if(!new RegExp(`${jU}\\+`).test(t))return t;const r=[];let e=null,n=null,i="",o=0,a;for(xp.lastIndex=0;a=xp.exec(t);){const{0:s,index:l,groups:{qBase:c,qMod:u,invalidQ:g}}=a;if(s==="[")o||(n=l),o++;else if(s==="]")o?o--:n=null;else if(!o)if(u==="+"&&i&&!i.startsWith("(")){if(g)throw new Error(`Invalid quantifier "${s}"`);let h=-1;if(/^\{\d+\}$/.test(c))t=H5(t,l+c.length,u,"");else{if(i===")"||i==="]"){const d=i===")"?e:n;if(d===null)throw new Error(`Invalid unmatched "${i}"`);t=`${t.slice(0,d)}(?>${t.slice(d,l)}${c})${t.slice(l+s.length)}`}else t=`${t.slice(0,l-i.length)}(?>${i}${c})${t.slice(l+s.length)}`;h+=4}xp.lastIndex+=h}else s[0]==="("?r.push(l):s===")"&&(e=r.length?r.pop():null);i=s}return t}function hfe(t,r){const e=UU(t,{includeContents:!0}),n=ffe(t,e,r.useEmulationGroups);return Cfe(n,e)}var dfe=String.raw`\\g<(?[^>&]+)>`,Zg=new RegExp(String.raw` ${dfe} | (?${tw}) | \\(?[1-9]\d*) | \\k<(?[^>]+)> | \\?. `.replace(/\s+/g,""),"gsu");function ffe(t,r,e){if(!/\\g]+>)",di.DEFAULT),i=n?`(${e?Jb:""}`:"(?:",o=new Map,a=[],s=[0];let l=0,c=0,u=0,g=0,h=0,d=t,f;for(Zg.lastIndex=0;f=Zg.exec(d);){const{0:C,index:v,groups:{subroutineName:A,capturingStart:I,backrefNum:p,backrefName:m}}=f;if(C==="[")h++;else if(h)C==="]"&&h--;else if(A){if(!r.has(A))throw new Error(`Invalid named capture referenced by subroutine ${C}`);if(o.has(A))throw new Error(`Subroutine ${C} followed a recursive reference`);const b=r.get(A).contents,_=`${i}${b})`;n&&(u=0,c++),o.set(A,{unclosedGroupCount:vfe(_)}),a.push(A),d=H5(d,v,C,_),Zg.lastIndex-=C.length-i.length}else if(I)o.size?(n&&(u++,c++),C!=="("&&(d=H5(d,v,C,i),Zg.lastIndex-=C.length-i.length)):n&&(s.push(Vp(s)+1+c-g),g=c,l++);else if((p||m)&&o.size){const b=p?+p:r.get(m)?.groupNum;let _=!1;for(const L of a){const M=r.get(L);if(b>=M.groupNum&&b<=M.groupNum+M.numCaptures){_=!0;break}}if(_){const L=r.get(Vp(a)),M=l+c-u,S=`\\k<$$b${b}s${M}r${L.groupNum}c${L.numCaptures}>`;d=H5(d,v,C,S),Zg.lastIndex+=S.length-C.length}}else if(C===")"&&o.size){const b=o.get(Vp(a));b.unclosedGroupCount--,b.unclosedGroupCount||o.delete(a.pop())}}return n&&(d=fu(d,String.raw`\\(?:(?[1-9]\d*)|k<\$\$b(?\d+)s(?\d+)r(?\d+)c(?\d+)>)`,({0:C,groups:{bNum:v,bNumSub:A,subNum:I,refNum:p,refCaps:m}})=>{if(v){const S=+v;if(S>s.length-1)throw new Error(`Backref "${C}" greater than number of captures`);return`\\${s[S]}`}const b=+A,_=+I,L=+p,M=+m;return bL+M?`\\${s[b]}`:`\\${_-L+b}`},di.DEFAULT)),d}var Hp=new RegExp(String.raw`${ew}|\(\?:\)|(?\\?.)`,"gsu");function Cfe(t,r){const e=qb(t,String.raw`\(\?\(DEFINE\)`,0,di.DEFAULT);if(!e)return t;const n=wS(t,e);if(n.afterPost.length)throw new Error("DEFINE group is unclosed");let i;for(Hp.lastIndex=0;i=Hp.exec(n.contents);){const{captureName:o,invalid:a}=i.groups;if(o){const s=wS(n.contents,i);let l;if(!r.get(o).isUnique)l=o;else{const c=UU(s.contents);for(const u of c.keys())if(!r.get(u).isUnique){l=u;break}}if(l)throw new Error(`Duplicate group name "${l}" within DEFINE`);Hp.lastIndex=s.afterPos}else if(a)throw new Error("DEFINE group includes unsupported syntax at top level")}return t.slice(0,e.index)}function vfe(t){let r=0;return Xb(t,"\\(",()=>r++,di.DEFAULT),r}function Afe(t,r){let e=0,n=0,i;for(;i=qb(t,tw,n,di.DEFAULT);){const{0:o,index:a,groups:{captureName:s}}=i;if(e++,s===r)break;n=a+o.length}return e}function wS(t,r){const e=r.index+r[0].length,n=BU(t,e),i=e+n.length+1;return{contents:n,afterPos:i}}function UU(t,{includeContents:r}={}){const e=new Map;return Xb(t,ew,({0:n,index:i,groups:{captureName:o}})=>{if(e.has(o))e.get(o).isUnique=!1;else{const a={isUnique:!0};if(r){const s=BU(t,i+n.length);Object.assign(a,{contents:s,groupNum:Afe(t,o),numCaptures:efe(s)})}e.set(o,a)}},di.DEFAULT),e}function Vp(t){return t[t.length-1]}var Ife="&!#%,:;<=>@`~",pfe=new RegExp(String.raw` \[\^?-? | --?\] | (?[${Qb}])\k | -- | \\(?[${Ife}]) | \\[pPu]\{[^}]+\} | \\?. `.replace(/\s+/g,""),"gsu");function mfe(t){const r='Invalid unescaped "-" in character class';let e=!1,n="";for(const{0:i,groups:{dp:o,vOnlyEscape:a}}of t.matchAll(pfe)){if(i[0]==="["){if(e)throw new Error("Invalid nested character class when flag v not supported; possibly from interpolation");if(i.endsWith("-"))throw new Error(r);e=!0}else if(i.endsWith("]")){if(i[0]==="-")throw new Error(r);e=!1}else if(e){if(i==="&&"||i==="--")throw new Error(`Invalid set operator "${i}" when flag v not supported`);if(o)throw new Error(`Invalid double punctuator "${i}", reserved by flag v`);if("(){}/|".includes(i))throw new Error(`Invalid unescaped "${i}" in character class`);if(a){n+=a;continue}}n+=i}return n}function yfe(t="",r={}){const e=bfe(r);if(e.subclass)throw new Error("Cannot use option subclass");return{expression:$fe(wfe({raw:[t]},[],e).template.raw[0],e),flags:e.flags}}function bfe(t){const r={flags:"",subclass:!1,plugins:[],unicodeSetsPlugin:mfe,disable:{},force:{},...t};if(/[nuvx]/.test(r.flags))throw new Error("Implicit flags v/u/x/n cannot be explicitly added");const e=r.force.v||(r.disable.v?!1:qde);return r.flags+=e?"v":"u",e&&(r.unicodeSetsPlugin=null),r}function wfe(t,r,e){const n=[];e.disable.x||n.push(lfe),e.disable.n||n.push(ife);for(const i of n)({template:t,substitutions:r}=rfe(t,r,i,e));return{template:t,substitutions:r}}function $fe(t,r){const{flags:e,plugins:n,unicodeSetsPlugin:i,disable:o,subclass:a}=r;return[...n,...o.subroutines?[]:[hfe],...o.atomic?[]:[gfe,ufe],...o.x?[]:[cfe],...i?[i]:[]].forEach(s=>t=s(t,{flags:e,useEmulationGroups:a})),t}var _fe=Object.defineProperty,Mfe=(t,r,e)=>r in t?_fe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,Pp=(t,r,e)=>(Mfe(t,typeof r!="symbol"?r+"":r,e),e);class Fa extends SyntaxError{constructor(r,e){super(r,{cause:e.cause}),Pp(this,"patternOriginal"),Pp(this,"patternConverted"),Pp(this,"cursorPosition"),this.patternOriginal=e.pattern,this.patternConverted=e.converted,this.cursorPosition=e.cursor}}const zfe=new Set("!?:=+$(){}_><# "),Efe=new Set("-!:=_>< "),Sfe={alnum:"0-9A-Za-z",alpha:"A-Za-z",ascii:"\0-",blank:" \\t",cntrl:"\0-",digit:"\\d",graph:"!-~",lower:"a-z",print:" -~",punct:"!-/:-@[-`{-~",space:"\\s",upper:"A-Z",xdigit:"0-9A-Fa-f",word:"\\w"},Tfe={alnum:"0-9A-Za-z",alpha:"A-Za-z",alphabetic:"A-Za-z",blank:"\\s",greek:"\\p{Script=Greek}",print:"\\p{L}\\p{N}\\p{P}\\p{S}\\p{Zs}",word:"\\w"},$S=new Set("gimsuyx");function Lfe(t,r={}){const{useRegex:e=!1,preserveFlags:n=!1,removePossessiveQuantifier:i=!1,removeAtomicGroup:o=!1,convertHexDigitsShorthand:a=!1,convertUnicodeCategory:s=!1,expandNestedCharacterClass:l=!1}=r;let c="";const u=new Set,g=[],h=[];let d=!1,f=!1,C=0;try{for(;Cg.length;)h.shift();const I=g[0],p=d||h.length;if(A==="\\"){if(a){if(t[C+1]==="h"){const m="0-9A-Fa-f";I==="["?c+=m:c+=`[${m}]`,C+=2;continue}if(t[C+1]==="H"){if(I==="[")throw new Fa("Expending \\H in character class is not supported",{pattern:t,converted:c,cursor:C});c+="[^0-9A-Fa-f]",C+=2;continue}}if(s&&t[C+1]==="p"&&t[C+2]==="{"){const m=t.indexOf("}",C+3);if(m===-1)throw new Fa("Unmatched \\p{...}",{pattern:t,converted:c,cursor:C});const b=t.slice(C+3,m),_=Tfe[b.toLowerCase()];if(_){I==="["?c+=_:c+=`[${_}]`,C=m+1;continue}}if(I==="["&&zfe.has(t[C+1])){c+=t[C+1],C+=2;continue}if(I!=="["&&Efe.has(t[C+1])){c+=t[C+1],C+=2;continue}c+=A+t[C+1],C+=2;continue}if(A==="#"&&p&&t[C-1].match(/\s/)&&I!=="["){for(let m=C+1;m<=t.length;m++)if(t[m]===` `||m===t.length){C=m;break}continue}if(A==="("&&I!=="["){if(t[C+1]==="?"){if(t[C+2]==="#"){for(let m=C+3;m"){c+="(?:",C+=3;continue}if($S.has(t[C+2])){let m=C+3;for(;mM!=="x").join("");if(!n){if(L[0]==="-"){L=L.slice(1);for(const M of b)u.delete(M)}else for(const M of L)u.add(M);L=""}if(t[m]===")"){C=m+1,_&&(d=!0),L.length&&(c+=`(?${L})`);continue}else if(t[m]===":"){C=m+1,g.unshift(A),_&&h.unshift(g.length),c+=`(?${L}:`;continue}}g.unshift(A),c+=A+t[C+1]+t[C+2],C+=3}else g.unshift(A),c+=A,C+=1;continue}if(A===")"&&I!=="["){I==="("&&g.shift(),c+=A,C+=1;continue}if(A==="["){if(t[C+1]===":"){let m="",b=!1;t[C+2]==="^"&&(b=!0,C+=1);for(let _=C+2;_`\\u${a.padStart(4,"0")}`).replace(/\(\?(-)?(\w+):/g,(o,a,s)=>{if(a)for(const l of s)i.delete(l);else for(const l of s)i.add(l);return"(?:"}).replace(/\(\?(-)?(\w+)\)/g,(o,a,s)=>{if(a)for(const l of s)i.delete(l);else for(const l of s)i.add(l);return""}),r.ignoreContiguousAnchors&&(t.includes("\\G")&&i.add("y"),t.startsWith("\\G")&&(t=t.slice(2)),t=t.replace(/\|\\G(\||\))/g,"$1").replace(/(\(|\|)\\G\|/g,"$1").replace(/\\G/g,"")),i.has("x"))throw new Fa("JavaScript does not support extended mode (x flag), you might want to run syntaxLowering() first",{pattern:e,converted:t});try{return new RegExp(t,[...i].join(""))}catch(o){throw new Fa("Failed to construct RegExp",{pattern:e,converted:t,cause:o})}}function Ofe(t,r={}){const{pattern:e,flags:n}=Lfe(t,{convertHexDigitsShorthand:!0,convertUnicodeCategory:!0,useRegex:!0,expandNestedCharacterClass:!0,...r});return kfe(e,{original:t,...r,flags:[...new Set([...n,...r.flags||[]])].join("")})}const xfe=[["(?[^\\[\\]\\\\]|\\\\.|\\[\\g*+\\])","(?[^\\[\\]\\\\]|\\\\.|\\[(?:[^\\[\\]\\\\]|\\\\.|\\[(?:[^\\[\\]\\\\]|\\\\.|\\[(?:[^\\[\\]\\\\])*+\\])*+\\])*+\\])"],["(?(?>[^\\s()]+)|\\(\\g*\\))","(?(?>[^\\s()]+)|\\((?:(?>[^\\s()]+)|\\((?:(?>[^\\s()]+)|\\((?>[^\\s()]+)*\\))*\\))*\\))"]];var Hfe=Object.defineProperty,Vfe=(t,r,e)=>r in t?Hfe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,_S=(t,r,e)=>(Vfe(t,typeof r!="symbol"?r+"":r,e),e);const MS=4294967295;function Pfe(t){return Ofe(t,{flags:"dgm",ignoreContiguousAnchors:!0})}class Rfe{constructor(r,e={}){this.patterns=r,this.options=e,_S(this,"regexps"),_S(this,"contiguousAnchorSimulation");const{forgiving:n=!1,cache:i,simulation:o=!0,regexConstructor:a=Pfe}=e;this.contiguousAnchorSimulation=Array.from({length:r.length},()=>!1),this.regexps=r.map((s,l)=>{o&&(s=s.replaceAll("(^|\\￿)","(^|\\G)")),o&&(s.startsWith("(^|\\G)")||s.startsWith("(\\G|^)"))&&(this.contiguousAnchorSimulation[l]=!0);const c=i?.get(s);if(c){if(c instanceof RegExp)return c;if(n)return null;throw c}try{let u=s;if(o)for(const[h,d]of xfe)u=u.replaceAll(h,d);const g=a(u);return i?.set(s,g),g}catch(u){if(i?.set(s,u),n)return null;throw u}})}findNextMatchSync(r,e){const n=typeof r=="string"?r:r.content,i=[];function o(a,s,l=0){return{index:a,captureIndices:s.indices.map(c=>c==null?{end:MS,start:MS,length:0}:{start:c[0]+l,length:c[1]-c[0],end:c[1]+l})}}for(let a=0;as[1].index));for(const[s,l,c]of i)if(l.index===a)return o(s,l,c)}return null}}function Dfe(t={}){const r={cache:new Map,...t};return{createScanner(e){return new Rfe(e,r)},createString(e){return{content:e}}}}function Nfe(t){return Array.isArray(t)?t:[t]}function hI(t,r=!1){const e=t.split(/(\r?\n)/g);let n=0;const i=[];for(let o=0;oe&&n.push({...t,content:t.content.slice(e,i),offset:t.offset+e}),e=i;return en-i);return e.length?t.map(n=>n.flatMap(i=>{const o=e.filter(a=>i.offseta-i.offset).sort((a,s)=>a-s);return o.length?jfe(i,o):i})):t}async function WU(t){return Promise.resolve(typeof t=="function"?t():t).then(r=>r.default||r)}function jv(t,r){const e=typeof t=="string"?{}:{...t.colorReplacements},n=typeof t=="string"?t:t.name;for(const[i,o]of Object.entries(r?.colorReplacements||{}))typeof o=="string"?e[i]=o:i===n&&Object.assign(e,o);return e}function bl(t,r){return t&&(r?.[t?.toLowerCase()]||t)}function ZU(t){const r={};return t.color&&(r.color=t.color),t.bgColor&&(r["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&ja.Italic&&(r["font-style"]="italic"),t.fontStyle&ja.Bold&&(r["font-weight"]="bold"),t.fontStyle&ja.Underline&&(r["text-decoration"]="underline")),r}function Gfe(t){return typeof t=="string"?t:Object.entries(t).map(([r,e])=>`${r}:${e}`).join(";")}function Wfe(t){const r=hI(t,!0).map(([i])=>i);function e(i){if(i===t.length)return{line:r.length-1,character:r[r.length-1].length};let o=i,a=0;for(const s of r){if(or in t?Zfe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,zS=(t,r,e)=>(Kfe(t,typeof r!="symbol"?r+"":r,e),e);const KU=new WeakMap;function dI(t,r){KU.set(t,r)}function _d(t){return KU.get(t)}class Ku{constructor(...r){if(zS(this,"_stacks",{}),zS(this,"lang"),r.length===2){const[e,n]=r;this.lang=n,this._stacks=e}else{const[e,n,i]=r;this.lang=n,this._stacks={[i]:e}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(r,e){return new Ku(Object.fromEntries(Nfe(e).map(n=>[n,I8])),r)}getInternalStack(r=this.theme){return this._stacks[r]}get scopes(){return ES(this._stacks[this.theme])}getScopes(r=this.theme){return ES(this._stacks[r])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function ES(t){const r=[],e=new Set;function n(i){if(e.has(i))return;e.add(i);const o=i?.nameScopesList?.scopeName;o&&r.push(o),i.parent&&n(i.parent)}return n(t),r}function Yfe(t,r){if(!(t instanceof Ku))throw new Fn("Invalid grammar state");return t.getInternalStack(r)}function Xfe(){const t=new WeakMap;function r(e){if(!t.has(e.meta)){let n=function(a){if(typeof a=="number"){if(a<0||a>e.source.length)throw new Fn(`Invalid decoration offset: ${a}. Code length: ${e.source.length}`);return{...i.indexToPos(a),offset:a}}else{const s=i.lines[a.line];if(s===void 0)throw new Fn(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);if(a.character<0||a.character>s.length)throw new Fn(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,offset:i.posToIndex(a.line,a.character)}}};const i=Wfe(e.source),o=(e.options.decorations||[]).map(a=>({...a,start:n(a.start),end:n(a.end)}));qfe(o),t.set(e.meta,{decorations:o,converter:i,source:e.source})}return t.get(e.meta)}return{name:"shiki:decorations",tokens(e){if(!this.options.decorations?.length)return;const i=r(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return Ufe(e,i)},code(e){if(!this.options.decorations?.length)return;const n=r(this),i=Array.from(e.children).filter(u=>u.type==="element"&&u.tagName==="span");if(i.length!==n.converter.lines.length)throw new Fn(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(u,g,h,d){const f=i[u];let C="",v=-1,A=-1;if(g===0&&(v=0),h===0&&(A=0),h===Number.POSITIVE_INFINITY&&(A=f.children.length),v===-1||A===-1)for(let p=0;pC);return u.tagName=g.tagName||"span",u.properties={...u.properties,...d,class:u.properties.class},g.properties?.class&&GU(u,g.properties.class),u=f(u,h)||u,u}const l=[],c=n.decorations.sort((u,g)=>g.start.offset-u.start.offset);for(const u of c){const{start:g,end:h}=u;if(g.line===h.line)o(g.line,g.character,h.character,u);else if(g.linea(d,u));o(h.line,0,h.character,u)}}l.forEach(u=>u())}}}function qfe(t){for(let r=0;re.end.offset)throw new Fn(`Invalid decoration range: ${JSON.stringify(e.start)} - ${JSON.stringify(e.end)}`);for(let n=r+1;nNumber.parseInt(a));o.length===3&&!o.some(a=>Number.isNaN(a))&&(i={type:"rgb",rgb:o})}else if(n==="5"){const o=Number.parseInt(t[r+e]);Number.isNaN(o)||(i={type:"table",index:Number(o)})}return[e,i]}function e0e(t){const r=[];for(let e=0;e=90&&i<=97?r.push({type:"setForegroundColor",value:{type:"named",name:wl[i-90+8]}}):i>=100&&i<=107&&r.push({type:"setBackgroundColor",value:{type:"named",name:wl[i-100+8]}})}return r}function t0e(){let t=null,r=null,e=new Set;return{parse(n){const i=[];let o=0;do{const a=Jfe(n,o),s=a.sequence?n.substring(o,a.startPosition):n.substring(o);if(s.length>0&&i.push({value:s,foreground:t,background:r,decorations:new Set(e)}),a.sequence){const l=e0e(a.sequence);for(const c of l)c.type==="resetAll"?(t=null,r=null,e.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?r=null:c.type==="resetDecoration"&&e.delete(c.value);for(const c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?r=c.value:c.type==="setDecoration"&&e.add(c.value)}o=a.position}while(oMath.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let c=0;c[s,t.colors?.[`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`]]))),a=t0e();return i.map(s=>a.parse(s[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?o.value(l.background):t.bg,u=l.foreground?o.value(l.foreground):t.fg):(c=l.foreground?o.value(l.foreground):t.fg,u=l.background?o.value(l.background):void 0),c=bl(c,n),u=bl(u,n),l.decorations.has("dim")&&(c=o0e(c));let g=ja.None;return l.decorations.has("bold")&&(g|=ja.Bold),l.decorations.has("italic")&&(g|=ja.Italic),l.decorations.has("underline")&&(g|=ja.Underline),{content:l.value,offset:s[1],color:c,bgColor:u,fontStyle:g}}))}function o0e(t){const r=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(r)if(r[3]){const n=Math.round(Number.parseInt(r[3],16)/2).toString(16).padStart(2,"0");return`#${r[1]}${r[2]}${n}`}else return r[2]?`#${r[1]}${r[2]}80`:`#${Array.from(r[1]).map(n=>`${n}${n}`).join("")}80`;const e=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return e?`var(${e[1]}-dim)`:t}function ow(t,r,e={}){const{lang:n="text",theme:i=t.getLoadedThemes()[0]}=e;if(nw(n)||iw(i))return hI(r).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:a}=t.setTheme(i);if(n==="ansi")return i0e(o,r,e);const s=t.getLanguage(n);if(e.grammarState){if(e.grammarState.lang!==s.name)throw new kl(`Grammar state language "${e.grammarState.lang}" does not match highlight language "${s.name}"`);if(!e.grammarState.themes.includes(o.name))throw new kl(`Grammar state themes "${e.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return s0e(r,s,o,a,e)}function a0e(...t){if(t.length===2)return _d(t[1]);const[r,e,n={}]=t,{lang:i="text",theme:o=r.getLoadedThemes()[0]}=n;if(nw(i)||iw(o))throw new kl("Plain language does not have grammar state");if(i==="ansi")throw new kl("ANSI language does not have grammar state");const{theme:a,colorMap:s}=r.setTheme(o),l=r.getLanguage(i);return new Ku(Gv(e,l,a,s,n).stateStack,l.name,a.name)}function s0e(t,r,e,n,i){const o=Gv(t,r,e,n,i),a=new Ku(Gv(t,r,e,n,i).stateStack,r.name,e.name);return dI(o.tokens,a),o.tokens}function Gv(t,r,e,n,i){const o=jv(e,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=hI(t);let c=i.grammarState?Yfe(i.grammarState,e.name)??I8:i.grammarContextCode!=null?Gv(i.grammarContextCode,r,e,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:I8,u=[];const g=[];for(let h=0,d=l.length;h0&&f.length>=a){u=[],g.push([{content:f,offset:C,color:"",fontStyle:0}]);continue}let v,A,I;i.includeExplanation&&(v=r.tokenizeLine(f,c),A=v.tokens,I=0);const p=r.tokenizeLine2(f,c,s),m=p.tokens.length/2;for(let b=0;bee.trim());break;case"object":te=B.scope;break;default:continue}O.push({settings:B,selectors:te.map(ee=>ee.split(/ /))})}k.explanation=[];let P=0;for(;_+P({scopeName:r}))}function c0e(t,r){const e=[];for(let n=0,i=r.length;n=0&&i>=0;)TS(t[n],e[i])&&(n-=1),i-=1;return n===-1}function g0e(t,r,e){const n=[];for(const{selectors:i,settings:o}of t)for(const a of i)if(u0e(a,r,e)){n.push(o);break}return n}function XU(t,r,e){const n=Object.entries(e.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=n.map(l=>{const c=ow(t,r,{...e,theme:l.theme}),u=_d(c),g=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:g}}),o=h0e(...i.map(l=>l.tokens)),a=o[0].map((l,c)=>l.map((u,g)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in e&&e.includeExplanation&&(h.explanation=u.explanation),o.forEach((d,f)=>{const{content:C,explanation:v,offset:A,...I}=d[c][g];h.variants[n[f].color]=I}),h})),s=i[0].state?new Ku(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return s&&dI(a,s),a}function h0e(...t){const r=t.map(()=>[]),e=t.length;for(let n=0;nl[n]),o=r.map(()=>[]);r.forEach((l,c)=>l.push(o[c]));const a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(c=>c.content.length));for(let c=0;cv[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,A)=>v.color===c?-1:A.color===c?1:0);if(g.length===0)throw new kl("`themes` option must not be empty");const h=XU(t,r,e);if(l=_d(h),c&&!g.find(v=>v.color===c))throw new kl(`\`themes\` option must contain the defaultColor key \`${c}\``);const d=g.map(v=>t.getTheme(v.theme)),f=g.map(v=>v.color);o=h.map(v=>v.map(A=>d0e(A,f,u,c))),l&&dI(o,l);const C=g.map(v=>jv(v.theme,e));i=g.map((v,A)=>(A===0&&c?"":`${u+v.color}:`)+(bl(d[A].fg,C[A])||"inherit")).join(";"),n=g.map((v,A)=>(A===0&&c?"":`${u+v.color}-bg:`)+(bl(d[A].bg,C[A])||"inherit")).join(";"),a=`shiki-themes ${d.map(v=>v.name).join(" ")}`,s=c?void 0:[i,n].join(";")}else if("theme"in e){const c=jv(e.theme,e);o=ow(t,r,e);const u=t.getTheme(e.theme);n=bl(u.bg,c),i=bl(u.fg,c),a=u.name,l=_d(o)}else throw new kl("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:a,rootStyle:s,grammarState:l}}function d0e(t,r,e,n){const i={content:t.content,explanation:t.explanation,offset:t.offset},o=r.map(l=>ZU(t.variants[l])),a=new Set(o.flatMap(l=>Object.keys(l))),s={};return o.forEach((l,c)=>{for(const u of a){const g=l[u]||"inherit";if(c===0&&n)s[u]=g;else{const h=u==="color"?"":u==="background-color"?"-bg":`-${u}`,d=e+r[c]+(u==="color"?"":h);s[d]=g}}}),i.htmlStyle=s,i}function Zv(t,r,e,n={meta:{},options:e,codeToHast:(i,o)=>Zv(t,i,o),codeToTokens:(i,o)=>Wv(t,i,o)}){let i=r;for(const d of Uv(e))i=d.preprocess?.call(n,i,e)||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:c,grammarState:u}=Wv(t,i,e);const{mergeWhitespaces:g=!0}=e;g===!0?o=C0e(o):g==="never"&&(o=v0e(o));const h={...n,get source(){return i}};for(const d of Uv(e))o=d.tokens?.call(h,o)||o;return f0e(o,{...e,fg:a,bg:s,themeName:l,rootStyle:c},h,u)}function f0e(t,r,e,n=_d(t)){const i=Uv(r),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=r;let c={type:"element",tagName:"pre",properties:{class:`shiki ${r.themeName||""}`,style:r.rootStyle||`background-color:${r.bg};color:${r.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(r.meta||{})).filter(([f])=>!f.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const g=[],h={...e,structure:s,addClassToHast:GU,get source(){return e.source},get tokens(){return t},get options(){return r},get root(){return a},get pre(){return c},get code(){return u},get lines(){return g}};if(t.forEach((f,C)=>{C&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` `}));let v={type:"element",tagName:"span",properties:{class:"line"},children:[]},A=0;for(const I of f){let p={type:"element",tagName:"span",properties:{...I.htmlAttrs},children:[{type:"text",value:I.content}]};I.htmlStyle;const m=Gfe(I.htmlStyle||ZU(I));m&&(p.properties.style=m);for(const b of i)p=b?.span?.call(h,p,C+1,A,v,I)||p;s==="inline"?a.children.push(p):s==="classic"&&v.children.push(p),A+=I.content.length}if(s==="classic"){for(const I of i)v=I?.line?.call(h,v,C+1)||v;g.push(v),o.push(v)}}),s==="classic"){for(const f of i)u=f?.code?.call(h,u)||u;c.children.push(u);for(const f of i)c=f?.pre?.call(h,c)||c;a.children.push(c)}let d=a;for(const f of i)d=f?.root?.call(h,d)||d;return n&&dI(d,n),d}function C0e(t){return t.map(r=>{const e=[];let n="",i=0;return r.forEach((o,a)=>{const l=!(o.fontStyle&&o.fontStyle&ja.Underline);l&&o.content.match(/^\s+$/)&&r[a+1]?(i||(i=o.offset),n+=o.content):n?(l?e.push({...o,offset:i,content:n+o.content}):e.push({content:n,offset:i},o),i=0,n=""):e.push(o)}),e})}function v0e(t){return t.map(r=>r.flatMap(e=>{if(e.content.match(/^\s+$/))return e;const n=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return e;const[,i,o,a]=n;if(!i&&!a)return e;const s=[{...e,offset:e.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:e.offset}),a&&s.push({content:a,offset:e.offset+i.length+o.length}),s}))}function A0e(t,r,e){const n={meta:{},options:e,codeToHast:(o,a)=>Zv(t,o,a),codeToTokens:(o,a)=>Wv(t,o,a)};let i=Wde(Zv(t,r,e,n));for(const o of Uv(e))i=o.postprocess?.call(n,i,e)||i;return i}const LS={light:"#333333",dark:"#bbbbbb"},kS={light:"#fffffe",dark:"#1e1e1e"},OS="__shiki_resolved";function aw(t){if(t?.[OS])return t;const r={...t};r.tokenColors&&!r.settings&&(r.settings=r.tokenColors,delete r.tokenColors),r.type||(r.type="dark"),r.colorReplacements={...r.colorReplacements},r.settings||(r.settings=[]);let{bg:e,fg:n}=r;if(!e||!n){const s=r.settings?r.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(n=s.settings.foreground),s?.settings?.background&&(e=s.settings.background),!n&&r?.colors?.["editor.foreground"]&&(n=r.colors["editor.foreground"]),!e&&r?.colors?.["editor.background"]&&(e=r.colors["editor.background"]),n||(n=r.type==="light"?LS.light:LS.dark),e||(e=r.type==="light"?kS.light:kS.dark),r.fg=n,r.bg=e}r.settings[0]&&r.settings[0].settings&&!r.settings[0].scope||r.settings.unshift({settings:{foreground:r.fg,background:r.bg}});let i=0;const o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return r.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}r.settings=r.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!c)return s;const u={...s,settings:{...s.settings}};if(l){const g=a(s.settings.foreground);r.colorReplacements[g]=s.settings.foreground,u.settings.foreground=g}if(c){const g=a(s.settings.background);r.colorReplacements[g]=s.settings.background,u.settings.background=g}return u});for(const s of Object.keys(r.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!r.colors[s]?.startsWith("#")){const l=a(r.colors[s]);r.colorReplacements[l]=r.colors[s],r.colors[s]=l}return Object.defineProperty(r,OS,{enumerable:!1,writable:!1,value:!0}),r}async function qU(t){return Array.from(new Set((await Promise.all(t.filter(r=>!Bfe(r)).map(async r=>await WU(r).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function QU(t){return(await Promise.all(t.map(async e=>Ffe(e)?null:aw(await WU(e))))).filter(e=>!!e)}var I0e=Object.defineProperty,p0e=(t,r,e)=>r in t?I0e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,ul=(t,r,e)=>(p0e(t,typeof r!="symbol"?r+"":r,e),e);class m0e extends Lhe{constructor(r,e,n,i={}){super(r),this._resolver=r,this._themes=e,this._langs=n,this._alias=i,ul(this,"_resolvedThemes",new Map),ul(this,"_resolvedGrammars",new Map),ul(this,"_langMap",new Map),ul(this,"_langGraph",new Map),ul(this,"_textmateThemeCache",new WeakMap),ul(this,"_loadedThemesCache",null),ul(this,"_loadedLanguagesCache",null),this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(r){return typeof r=="string"?this._resolvedThemes.get(r):this.loadTheme(r)}loadTheme(r){const e=aw(r);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(r){let e=this._textmateThemeCache.get(r);e||(e=Rv.createFromRawTheme(r),this._textmateThemeCache.set(r,e)),this._syncRegistry.setTheme(e)}getGrammar(r){if(this._alias[r]){const e=new Set([r]);for(;this._alias[r];){if(r=this._alias[r],e.has(r))throw new Fn(`Circular alias \`${Array.from(e).join(" -> ")} -> ${r}\``);e.add(r)}}return this._resolvedGrammars.get(r)}loadLanguage(r){if(this.getGrammar(r.name))return;const e=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(r.name)));this._resolver.addLanguage(r);const n={balancedBracketSelectors:r.balancedBracketSelectors||["*"],unbalancedBracketSelectors:r.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(r.scopeName,r);const i=this.loadGrammarWithConfiguration(r.scopeName,1,n);if(i.name=r.name,this._resolvedGrammars.set(r.name,i),r.aliases&&r.aliases.forEach(o=>{this._alias[o]=r.name}),this._loadedLanguagesCache=null,e.size)for(const o of e)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(r){for(const i of r)this.resolveEmbeddedLanguages(i);const e=Array.from(this._langGraph.entries()),n=e.filter(([i,o])=>!o);if(n.length){const i=e.filter(([o,a])=>a&&a.embeddedLangs?.some(s=>n.map(([l])=>l).includes(s))).filter(o=>!n.includes(o));throw new Fn(`Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of e)this._resolver.addLanguage(o);for(const[i,o]of e)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(r){if(this._langMap.set(r.name,r),this._langGraph.set(r.name,r),r.embeddedLangs)for(const e of r.embeddedLangs)this._langGraph.set(e,this._langMap.get(e))}}var y0e=Object.defineProperty,b0e=(t,r,e)=>r in t?y0e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,lC=(t,r,e)=>(b0e(t,typeof r!="symbol"?r+"":r,e),e);class w0e{constructor(r,e){lC(this,"_langs",new Map),lC(this,"_scopeToLang",new Map),lC(this,"_injections",new Map),lC(this,"_onigLib"),this._onigLib={createOnigScanner:n=>r.createScanner(n),createOnigString:n=>r.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(r){return this._langs.get(r)}loadGrammar(r){return this._scopeToLang.get(r)}addLanguage(r){this._langs.set(r.name,r),r.aliases&&r.aliases.forEach(e=>{this._langs.set(e,r)}),this._scopeToLang.set(r.scopeName,r),r.injectTo&&r.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(r.scopeName)})}getInjections(r){const e=r.split(".");let n=[];for(let i=1;i<=e.length;i++){const o=e.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}let Kg=0;function $0e(t){Kg+=1,t.warnings!==!1&&Kg>=10&&Kg%10===0&&console.warn(`[Shiki] ${Kg} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!t.engine)throw new Fn("`engine` option is required for synchronous mode");const e=(t.langs||[]).flat(1),n=(t.themes||[]).flat(1).map(aw),i=new w0e(t.engine,e),o=new m0e(i,n,e,t.langAlias);let a;function s(I){v();const p=o.getGrammar(typeof I=="string"?I:I.name);if(!p)throw new Fn(`Language \`${I}\` not found, you may need to load it first`);return p}function l(I){if(I==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const p=o.getTheme(I);if(!p)throw new Fn(`Theme \`${I}\` not found, you may need to load it first`);return p}function c(I){v();const p=l(I);a!==I&&(o.setTheme(p),a=I);const m=o.getColorMap();return{theme:p,colorMap:m}}function u(){return v(),o.getLoadedThemes()}function g(){return v(),o.getLoadedLanguages()}function h(...I){v(),o.loadLanguages(I.flat(1))}async function d(...I){return h(await qU(I))}function f(...I){v();for(const p of I.flat(1))o.loadTheme(p)}async function C(...I){return v(),f(await QU(I))}function v(){if(r)throw new Fn("Shiki instance has been disposed")}function A(){r||(r=!0,o.dispose(),Kg-=1)}return{setTheme:c,getTheme:l,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:g,loadLanguage:d,loadLanguageSync:h,loadTheme:C,loadThemeSync:f,dispose:A,[Symbol.dispose]:A}}async function _0e(t={}){t.loadWasm;const[r,e,n]=await Promise.all([QU(t.themes||[]),qU(t.langs||[]),t.engine||Gge(t.loadWasm||Uge())]);return $0e({...t,loadWasm:void 0,themes:r,langs:e,engine:n})}async function M0e(t={}){const r=await _0e(t);return{getLastGrammarState:(...e)=>a0e(r,...e),codeToTokensBase:(e,n)=>ow(r,e,n),codeToTokensWithThemes:(e,n)=>XU(r,e,n),codeToTokens:(e,n)=>Wv(r,e,n),codeToHast:(e,n)=>Zv(r,e,n),codeToHtml:(e,n)=>A0e(r,e,n),...r,getInternalContext:()=>r}}function z0e(t){return Dfe(t)}const E0e={"baseline-10k":'',"baseline-10mp":'',"baseline-11mp":'',"baseline-123":'',"baseline-12mp":'',"baseline-13mp":'',"baseline-14mp":'',"baseline-15mp":'',"baseline-16mp":'',"baseline-17mp":'',"baseline-18-up-rating":'',"baseline-18mp":'',"baseline-19mp":'',"baseline-1k":'',"baseline-1k-plus":'',"baseline-1x-mobiledata":'',"baseline-20mp":'',"baseline-21mp":'',"baseline-22mp":'',"baseline-23mp":'',"baseline-24mp":'',"baseline-2k":'',"baseline-2k-plus":'',"baseline-2mp":'',"baseline-30fps":'',"baseline-30fps-select":'',"baseline-360":'',"baseline-3d-rotation":'',"baseline-3g-mobiledata":'',"baseline-3k":'',"baseline-3k-plus":'',"baseline-3mp":'',"baseline-3p":'',"baseline-4g-mobiledata":'',"baseline-4g-plus-mobiledata":'',"baseline-4k":'',"baseline-4k-plus":'',"baseline-4mp":'',"baseline-5g":'',"baseline-5k":'',"baseline-5k-plus":'',"baseline-5mp":'',"baseline-6-ft-apart":'',"baseline-60fps":'',"baseline-60fps-select":'',"baseline-6k":'',"baseline-6k-plus":'',"baseline-6mp":'',"baseline-7k":'',"baseline-7k-plus":'',"baseline-7mp":'',"baseline-8k":'',"baseline-8k-plus":'',"baseline-8mp":'',"baseline-9k":'',"baseline-9k-plus":'',"baseline-9mp":'',"baseline-abc":'',"baseline-ac-unit":'',"baseline-access-alarm":'',"baseline-access-alarms":'',"baseline-access-time":'',"baseline-access-time-filled":'',"baseline-accessibility":'',"baseline-accessibility-new":'',"baseline-accessible":'',"baseline-accessible-forward":'',"baseline-account-balance":'',"baseline-account-balance-wallet":'',"baseline-account-box":'',"baseline-account-circle":'',"baseline-account-tree":'',"baseline-ad-units":'',"baseline-adb":'',"baseline-add":'',"baseline-add-a-photo":'',"baseline-add-alarm":'',"baseline-add-alert":'',"baseline-add-box":'',"baseline-add-business":'',"baseline-add-card":'',"baseline-add-chart":'',"baseline-add-circle":'',"baseline-add-circle-outline":'',"baseline-add-comment":'',"baseline-add-home":'',"baseline-add-home-work":'',"baseline-add-ic-call":'',"baseline-add-link":'',"baseline-add-location":'',"baseline-add-location-alt":'',"baseline-add-moderator":'',"baseline-add-photo-alternate":'',"baseline-add-reaction":'',"baseline-add-road":'',"baseline-add-shopping-cart":'',"baseline-add-task":'',"baseline-add-to-drive":'',"baseline-add-to-home-screen":'',"baseline-add-to-photos":'',"baseline-add-to-queue":'',"baseline-addchart":'',"baseline-adf-scanner":'',"baseline-adjust":'',"baseline-admin-panel-settings":'',"baseline-adobe":'',"baseline-ads-click":'',"baseline-agriculture":'',"baseline-air":'',"baseline-airline-seat-flat":'',"baseline-airline-seat-flat-angled":'',"baseline-airline-seat-individual-suite":'',"baseline-airline-seat-legroom-extra":'',"baseline-airline-seat-legroom-normal":'',"baseline-airline-seat-legroom-reduced":'',"baseline-airline-seat-recline-extra":'',"baseline-airline-seat-recline-normal":'',"baseline-airline-stops":'',"baseline-airlines":'',"baseline-airplane-ticket":'',"baseline-airplanemode-active":'',"baseline-airplanemode-inactive":'',"baseline-airplay":'',"baseline-airport-shuttle":'',"baseline-alarm":'',"baseline-alarm-add":'',"baseline-alarm-off":'',"baseline-alarm-on":'',"baseline-album":'',"baseline-align-horizontal-center":'',"baseline-align-horizontal-left":'',"baseline-align-horizontal-right":'',"baseline-align-vertical-bottom":'',"baseline-align-vertical-center":'',"baseline-align-vertical-top":'',"baseline-all-inbox":'',"baseline-all-inclusive":'',"baseline-all-out":'',"baseline-alt-route":'',"baseline-alternate-email":'',"baseline-amp-stories":'',"baseline-analytics":'',"baseline-anchor":'',"baseline-android":'',"baseline-animation":'',"baseline-announcement":'',"baseline-aod":'',"baseline-apartment":'',"baseline-api":'',"baseline-app-blocking":'',"baseline-app-registration":'',"baseline-app-settings-alt":'',"baseline-app-shortcut":'',"baseline-apple":'',"baseline-approval":'',"baseline-apps":'',"baseline-apps-outage":'',"baseline-architecture":'',"baseline-archive":'',"baseline-area-chart":'',"baseline-arrow-back":'',"baseline-arrow-back-ios":'',"baseline-arrow-back-ios-new":'',"baseline-arrow-circle-down":'',"baseline-arrow-circle-left":'',"baseline-arrow-circle-right":'',"baseline-arrow-circle-up":'',"baseline-arrow-downward":'',"baseline-arrow-drop-down":'',"baseline-arrow-drop-down-circle":'',"baseline-arrow-drop-up":'',"baseline-arrow-forward":'',"baseline-arrow-forward-ios":'',"baseline-arrow-left":'',"baseline-arrow-outward":'',"baseline-arrow-right":'',"baseline-arrow-right-alt":'',"baseline-arrow-upward":'',"baseline-art-track":'',"baseline-article":'',"baseline-aspect-ratio":'',"baseline-assessment":'',"baseline-assignment":'',"baseline-assignment-ind":'',"baseline-assignment-late":'',"baseline-assignment-return":'',"baseline-assignment-returned":'',"baseline-assignment-turned-in":'',"baseline-assist-walker":'',"baseline-assistant":'',"baseline-assistant-direction":'',"baseline-assistant-photo":'',"baseline-assured-workload":'',"baseline-atm":'',"baseline-attach-email":'',"baseline-attach-file":'',"baseline-attach-money":'',"baseline-attachment":'',"baseline-attractions":'',"baseline-attribution":'',"baseline-audio-file":'',"baseline-audiotrack":'',"baseline-auto-awesome":'',"baseline-auto-awesome-mosaic":'',"baseline-auto-awesome-motion":'',"baseline-auto-delete":'',"baseline-auto-fix-high":'',"baseline-auto-fix-normal":'',"baseline-auto-fix-off":'',"baseline-auto-graph":'',"baseline-auto-mode":'',"baseline-auto-stories":'',"baseline-autofps-select":'',"baseline-autorenew":'',"baseline-av-timer":'',"baseline-baby-changing-station":'',"baseline-back-hand":'',"baseline-backpack":'',"baseline-backspace":'',"baseline-backup":'',"baseline-backup-table":'',"baseline-badge":'',"baseline-bakery-dining":'',"baseline-balance":'',"baseline-balcony":'',"baseline-ballot":'',"baseline-bar-chart":'',"baseline-barcode":'',"baseline-batch-prediction":'',"baseline-bathroom":'',"baseline-bathtub":'',"baseline-battery-0-bar":'',"baseline-battery-1-bar":'',"baseline-battery-2-bar":'',"baseline-battery-20":'',"baseline-battery-3-bar":'',"baseline-battery-30":'',"baseline-battery-4-bar":'',"baseline-battery-5-bar":'',"baseline-battery-50":'',"baseline-battery-6-bar":'',"baseline-battery-60":'',"baseline-battery-80":'',"baseline-battery-90":'',"baseline-battery-alert":'',"baseline-battery-charging-20":'',"baseline-battery-charging-30":'',"baseline-battery-charging-50":'',"baseline-battery-charging-60":'',"baseline-battery-charging-80":'',"baseline-battery-charging-90":'',"baseline-battery-charging-full":'',"baseline-battery-full":'',"baseline-battery-saver":'',"baseline-battery-std":'',"baseline-battery-unknown":'',"baseline-beach-access":'',"baseline-bed":'',"baseline-bedroom-baby":'',"baseline-bedroom-child":'',"baseline-bedroom-parent":'',"baseline-bedtime":'',"baseline-bedtime-off":'',"baseline-beenhere":'',"baseline-bento":'',"baseline-bike-scooter":'',"baseline-biotech":'',"baseline-blender":'',"baseline-blind":'',"baseline-blinds":'',"baseline-blinds-closed":'',"baseline-block":'',"baseline-bloodtype":'',"baseline-bluetooth":'',"baseline-bluetooth-audio":'',"baseline-bluetooth-connected":'',"baseline-bluetooth-disabled":'',"baseline-bluetooth-drive":'',"baseline-bluetooth-searching":'',"baseline-blur-circular":'',"baseline-blur-linear":'',"baseline-blur-off":'',"baseline-blur-on":'',"baseline-bolt":'',"baseline-book":'',"baseline-book-online":'',"baseline-bookmark":'',"baseline-bookmark-add":'',"baseline-bookmark-added":'',"baseline-bookmark-border":'',"baseline-bookmark-remove":'',"baseline-bookmarks":'',"baseline-border-all":'',"baseline-border-bottom":'',"baseline-border-clear":'',"baseline-border-color":'',"baseline-border-horizontal":'',"baseline-border-inner":'',"baseline-border-left":'',"baseline-border-outer":'',"baseline-border-right":'',"baseline-border-style":'',"baseline-border-top":'',"baseline-border-vertical":'',"baseline-boy":'',"baseline-branding-watermark":'',"baseline-breakfast-dining":'',"baseline-brightness-1":'',"baseline-brightness-2":'',"baseline-brightness-3":'',"baseline-brightness-4":'',"baseline-brightness-5":'',"baseline-brightness-6":'',"baseline-brightness-7":'',"baseline-brightness-auto":'',"baseline-brightness-high":'',"baseline-brightness-low":'',"baseline-brightness-medium":'',"baseline-broadcast-on-home":'',"baseline-broadcast-on-personal":'',"baseline-broken-image":'',"baseline-browse-gallery":'',"baseline-browser-not-supported":'',"baseline-browser-updated":'',"baseline-brunch-dining":'',"baseline-brush":'',"baseline-bubble-chart":'',"baseline-bug-report":'',"baseline-build":'',"baseline-build-circle":'',"baseline-bungalow":'',"baseline-burst-mode":'',"baseline-bus-alert":'',"baseline-business":'',"baseline-business-center":'',"baseline-cabin":'',"baseline-cable":'',"baseline-cached":'',"baseline-cake":'',"baseline-calculate":'',"baseline-calendar-month":'',"baseline-calendar-today":'',"baseline-calendar-view-day":'',"baseline-calendar-view-month":'',"baseline-calendar-view-week":'',"baseline-call":'',"baseline-call-end":'',"baseline-call-made":'',"baseline-call-merge":'',"baseline-call-missed":'',"baseline-call-missed-outgoing":'',"baseline-call-received":'',"baseline-call-split":'',"baseline-call-to-action":'',"baseline-camera":'',"baseline-camera-alt":'',"baseline-camera-enhance":'',"baseline-camera-front":'',"baseline-camera-indoor":'',"baseline-camera-outdoor":'',"baseline-camera-rear":'',"baseline-camera-roll":'',"baseline-cameraswitch":'',"baseline-campaign":'',"baseline-cancel":'',"baseline-cancel-presentation":'',"baseline-cancel-schedule-send":'',"baseline-candlestick-chart":'',"baseline-car-crash":'',"baseline-car-rental":'',"baseline-car-repair":'',"baseline-card-giftcard":'',"baseline-card-membership":'',"baseline-card-travel":'',"baseline-carpenter":'',"baseline-cases":'',"baseline-casino":'',"baseline-cast":'',"baseline-cast-connected":'',"baseline-cast-for-education":'',"baseline-castle":'',"baseline-catching-pokemon":'',"baseline-category":'',"baseline-celebration":'',"baseline-cell-tower":'',"baseline-cell-wifi":'',"baseline-center-focus-strong":'',"baseline-center-focus-weak":'',"baseline-chair":'',"baseline-chair-alt":'',"baseline-chalet":'',"baseline-change-circle":'',"baseline-change-history":'',"baseline-charging-station":'',"baseline-chat":'',"baseline-chat-bubble":'',"baseline-chat-bubble-outline":'',"baseline-check":'',"baseline-check-box":'',"baseline-check-box-outline-blank":'',"baseline-check-circle":'',"baseline-check-circle-outline":'',"baseline-checklist":'',"baseline-checklist-rtl":'',"baseline-checkroom":'',"baseline-chevron-left":'',"baseline-chevron-right":'',"baseline-child-care":'',"baseline-child-friendly":'',"baseline-chrome-reader-mode":'',"baseline-church":'',"baseline-circle":'',"baseline-circle-notifications":'',"baseline-class":'',"baseline-clean-hands":'',"baseline-cleaning-services":'',"baseline-clear":'',"baseline-clear-all":'',"baseline-close":'',"baseline-close-fullscreen":'',"baseline-closed-caption":'',"baseline-closed-caption-disabled":'',"baseline-closed-caption-off":'',"baseline-cloud":'',"baseline-cloud-circle":'',"baseline-cloud-done":'',"baseline-cloud-download":'',"baseline-cloud-off":'',"baseline-cloud-queue":'',"baseline-cloud-sync":'',"baseline-cloud-upload":'',"baseline-co-present":'',"baseline-co2":'',"baseline-code":'',"baseline-code-off":'',"baseline-coffee":'',"baseline-coffee-maker":'',"baseline-collections":'',"baseline-collections-bookmark":'',"baseline-color-lens":'',"baseline-colorize":'',"baseline-comment":'',"baseline-comment-bank":'',"baseline-comments-disabled":'',"baseline-commit":'',"baseline-commute":'',"baseline-compare":'',"baseline-compare-arrows":'',"baseline-compass-calibration":'',"baseline-compost":'',"baseline-compress":'',"baseline-computer":'',"baseline-confirmation-number":'',"baseline-connect-without-contact":'',"baseline-connected-tv":'',"baseline-connecting-airports":'',"baseline-construction":'',"baseline-contact-emergency":'',"baseline-contact-mail":'',"baseline-contact-page":'',"baseline-contact-phone":'',"baseline-contact-support":'',"baseline-contactless":'',"baseline-contacts":'',"baseline-content-copy":'',"baseline-content-cut":'',"baseline-content-paste":'',"baseline-content-paste-go":'',"baseline-content-paste-off":'',"baseline-content-paste-search":'',"baseline-contrast":'',"baseline-control-camera":'',"baseline-control-point":'',"baseline-control-point-duplicate":'',"baseline-cookie":'',"baseline-copy-all":'',"baseline-copyright":'',"baseline-coronavirus":'',"baseline-corporate-fare":'',"baseline-cottage":'',"baseline-countertops":'',"baseline-create":'',"baseline-create-new-folder":'',"baseline-credit-card":'',"baseline-credit-card-off":'',"baseline-credit-score":'',"baseline-crib":'',"baseline-crisis-alert":'',"baseline-crop":'',"baseline-crop-16-9":'',"baseline-crop-3-2":'',"baseline-crop-5-4":'',"baseline-crop-7-5":'',"baseline-crop-din":'',"baseline-crop-free":'',"baseline-crop-landscape":'',"baseline-crop-original":'',"baseline-crop-portrait":'',"baseline-crop-rotate":'',"baseline-crop-square":'',"baseline-cruelty-free":'',"baseline-css":'',"baseline-currency-bitcoin":'',"baseline-currency-exchange":'',"baseline-currency-franc":'',"baseline-currency-lira":'',"baseline-currency-pound":'',"baseline-currency-ruble":'',"baseline-currency-rupee":'',"baseline-currency-yen":'',"baseline-currency-yuan":'',"baseline-curtains":'',"baseline-curtains-closed":'',"baseline-cyclone":'',"baseline-dangerous":'',"baseline-dark-mode":'',"baseline-dashboard":'',"baseline-dashboard-customize":'',"baseline-data-array":'',"baseline-data-exploration":'',"baseline-data-object":'',"baseline-data-saver-off":'',"baseline-data-saver-on":'',"baseline-data-thresholding":'',"baseline-data-usage":'',"baseline-dataset":'',"baseline-dataset-linked":'',"baseline-date-range":'',"baseline-deblur":'',"baseline-deck":'',"baseline-dehaze":'',"baseline-delete":'',"baseline-delete-forever":'',"baseline-delete-outline":'',"baseline-delete-sweep":'',"baseline-delivery-dining":'',"baseline-density-large":'',"baseline-density-medium":'',"baseline-density-small":'',"baseline-departure-board":'',"baseline-description":'',"baseline-deselect":'',"baseline-design-services":'',"baseline-desk":'',"baseline-desktop-access-disabled":'',"baseline-desktop-mac":'',"baseline-desktop-windows":'',"baseline-details":'',"baseline-developer-board":'',"baseline-developer-board-off":'',"baseline-developer-mode":'',"baseline-device-hub":'',"baseline-device-thermostat":'',"baseline-device-unknown":'',"baseline-devices":'',"baseline-devices-fold":'',"baseline-devices-other":'',"baseline-dialer-sip":'',"baseline-dialpad":'',"baseline-diamond":'',"baseline-difference":'',"baseline-dining":'',"baseline-dinner-dining":'',"baseline-directions":'',"baseline-directions-bike":'',"baseline-directions-boat":'',"baseline-directions-boat-filled":'',"baseline-directions-bus":'',"baseline-directions-bus-filled":'',"baseline-directions-car":'',"baseline-directions-car-filled":'',"baseline-directions-off":'',"baseline-directions-railway":'',"baseline-directions-railway-filled":'',"baseline-directions-run":'',"baseline-directions-subway":'',"baseline-directions-subway-filled":'',"baseline-directions-transit":'',"baseline-directions-transit-filled":'',"baseline-directions-walk":'',"baseline-dirty-lens":'',"baseline-disabled-by-default":'',"baseline-disabled-visible":'',"baseline-disc-full":'',"baseline-discord":'',"baseline-discount":'',"baseline-display-settings":'',"baseline-diversity-1":'',"baseline-diversity-2":'',"baseline-diversity-3":'',"baseline-divide":'',"baseline-dns":'',"baseline-do-disturb":'',"baseline-do-disturb-alt":'',"baseline-do-disturb-off":'',"baseline-do-disturb-on":'',"baseline-do-not-disturb":'',"baseline-do-not-disturb-alt":'',"baseline-do-not-disturb-off":'',"baseline-do-not-disturb-on":'',"baseline-do-not-disturb-on-total-silence":'',"baseline-do-not-step":'',"baseline-do-not-touch":'',"baseline-dock":'',"baseline-document-scanner":'',"baseline-domain":'',"baseline-domain-add":'',"baseline-domain-disabled":'',"baseline-domain-verification":'',"baseline-done":'',"baseline-done-all":'',"baseline-done-outline":'',"baseline-donut-large":'',"baseline-donut-small":'',"baseline-door-back":'',"baseline-door-front":'',"baseline-door-sliding":'',"baseline-doorbell":'',"baseline-double-arrow":'',"baseline-downhill-skiing":'',"baseline-download":'',"baseline-download-done":'',"baseline-download-for-offline":'',"baseline-downloading":'',"baseline-drafts":'',"baseline-drag-handle":'',"baseline-drag-indicator":'',"baseline-draw":'',"baseline-drive-eta":'',"baseline-drive-file-move":'',"baseline-drive-file-move-rtl":'',"baseline-drive-file-rename-outline":'',"baseline-drive-folder-upload":'',"baseline-dry":'',"baseline-dry-cleaning":'',"baseline-duo":'',"baseline-dvr":'',"baseline-dynamic-feed":'',"baseline-dynamic-form":'',"baseline-e-mobiledata":'',"baseline-earbuds":'',"baseline-earbuds-battery":'',"baseline-east":'',"baseline-eco":'',"baseline-edgesensor-high":'',"baseline-edgesensor-low":'',"baseline-edit":'',"baseline-edit-attributes":'',"baseline-edit-calendar":'',"baseline-edit-location":'',"baseline-edit-location-alt":'',"baseline-edit-note":'',"baseline-edit-notifications":'',"baseline-edit-off":'',"baseline-edit-road":'',"baseline-egg":'',"baseline-egg-alt":'',"baseline-eject":'',"baseline-elderly":'',"baseline-elderly-woman":'',"baseline-electric-bike":'',"baseline-electric-bolt":'',"baseline-electric-car":'',"baseline-electric-meter":'',"baseline-electric-moped":'',"baseline-electric-rickshaw":'',"baseline-electric-scooter":'',"baseline-electrical-services":'',"baseline-elevator":'',"baseline-email":'',"baseline-emergency":'',"baseline-emergency-recording":'',"baseline-emergency-share":'',"baseline-emoji-emotions":'',"baseline-emoji-events":'',"baseline-emoji-flags":'',"baseline-emoji-food-beverage":'',"baseline-emoji-nature":'',"baseline-emoji-objects":'',"baseline-emoji-people":'',"baseline-emoji-symbols":'',"baseline-emoji-transportation":'',"baseline-energy-savings-leaf":'',"baseline-engineering":'',"baseline-enhanced-encryption":'',"baseline-equalizer":'',"baseline-equals":'',"baseline-error":'',"baseline-error-outline":'',"baseline-escalator":'',"baseline-escalator-warning":'',"baseline-euro":'',"baseline-euro-symbol":'',"baseline-ev-station":'',"baseline-event":'',"baseline-event-available":'',"baseline-event-busy":'',"baseline-event-note":'',"baseline-event-repeat":'',"baseline-event-seat":'',"baseline-exit-to-app":'',"baseline-expand":'',"baseline-expand-circle-down":'',"baseline-expand-less":'',"baseline-expand-more":'',"baseline-explicit":'',"baseline-explore":'',"baseline-explore-off":'',"baseline-exposure":'',"baseline-exposure-neg-1":'',"baseline-exposure-neg-2":'',"baseline-exposure-plus-1":'',"baseline-exposure-plus-2":'',"baseline-exposure-zero":'',"baseline-extension":'',"baseline-extension-off":'',"baseline-face":'',"baseline-face-2":'',"baseline-face-3":'',"baseline-face-4":'',"baseline-face-5":'',"baseline-face-6":'',"baseline-face-retouching-natural":'',"baseline-face-retouching-off":'',"baseline-facebook":'',"baseline-fact-check":'',"baseline-factory":'',"baseline-family-restroom":'',"baseline-fast-forward":'',"baseline-fast-rewind":'',"baseline-fastfood":'',"baseline-favorite":'',"baseline-favorite-border":'',"baseline-fax":'',"baseline-featured-play-list":'',"baseline-featured-video":'',"baseline-feed":'',"baseline-feedback":'',"baseline-female":'',"baseline-fence":'',"baseline-festival":'',"baseline-fiber-dvr":'',"baseline-fiber-manual-record":'',"baseline-fiber-new":'',"baseline-fiber-pin":'',"baseline-fiber-smart-record":'',"baseline-file-copy":'',"baseline-file-download":'',"baseline-file-download-done":'',"baseline-file-download-off":'',"baseline-file-open":'',"baseline-file-present":'',"baseline-file-upload":'',"baseline-filter":'',"baseline-filter-1":'',"baseline-filter-2":'',"baseline-filter-3":'',"baseline-filter-4":'',"baseline-filter-5":'',"baseline-filter-6":'',"baseline-filter-7":'',"baseline-filter-8":'',"baseline-filter-9":'',"baseline-filter-9-plus":'',"baseline-filter-alt":'',"baseline-filter-alt-off":'',"baseline-filter-b-and-w":'',"baseline-filter-center-focus":'',"baseline-filter-drama":'',"baseline-filter-frames":'',"baseline-filter-hdr":'',"baseline-filter-list":'',"baseline-filter-list-off":'',"baseline-filter-none":'',"baseline-filter-tilt-shift":'',"baseline-filter-vintage":'',"baseline-find-in-page":'',"baseline-find-replace":'',"baseline-fingerprint":'',"baseline-fire-extinguisher":'',"baseline-fire-hydrant-alt":'',"baseline-fire-truck":'',"baseline-fireplace":'',"baseline-first-page":'',"baseline-fit-screen":'',"baseline-fitbit":'',"baseline-fitness-center":'',"baseline-flag":'',"baseline-flag-circle":'',"baseline-flaky":'',"baseline-flare":'',"baseline-flash-auto":'',"baseline-flash-off":'',"baseline-flash-on":'',"baseline-flashlight-off":'',"baseline-flashlight-on":'',"baseline-flatware":'',"baseline-flight":'',"baseline-flight-class":'',"baseline-flight-land":'',"baseline-flight-takeoff":'',"baseline-flip":'',"baseline-flip-camera-android":'',"baseline-flip-camera-ios":'',"baseline-flip-to-back":'',"baseline-flip-to-front":'',"baseline-flood":'',"baseline-flourescent":'',"baseline-fluorescent":'',"baseline-flutter-dash":'',"baseline-fmd-bad":'',"baseline-fmd-good":'',"baseline-folder":'',"baseline-folder-copy":'',"baseline-folder-delete":'',"baseline-folder-off":'',"baseline-folder-open":'',"baseline-folder-shared":'',"baseline-folder-special":'',"baseline-folder-zip":'',"baseline-follow-the-signs":'',"baseline-font-download":'',"baseline-font-download-off":'',"baseline-food-bank":'',"baseline-forest":'',"baseline-fork-left":'',"baseline-fork-right":'',"baseline-format-align-center":'',"baseline-format-align-justify":'',"baseline-format-align-left":'',"baseline-format-align-right":'',"baseline-format-bold":'',"baseline-format-clear":'',"baseline-format-color-fill":'',"baseline-format-color-reset":'',"baseline-format-color-text":'',"baseline-format-indent-decrease":'',"baseline-format-indent-increase":'',"baseline-format-italic":'',"baseline-format-line-spacing":'',"baseline-format-list-bulleted":'',"baseline-format-list-numbered":'',"baseline-format-list-numbered-rtl":'',"baseline-format-overline":'',"baseline-format-paint":'',"baseline-format-quote":'',"baseline-format-shapes":'',"baseline-format-size":'',"baseline-format-strikethrough":'',"baseline-format-textdirection-l-to-r":'',"baseline-format-textdirection-r-to-l":'',"baseline-format-underlined":'',"baseline-fort":'',"baseline-forum":'',"baseline-forward":'',"baseline-forward-10":'',"baseline-forward-30":'',"baseline-forward-5":'',"baseline-forward-to-inbox":'',"baseline-foundation":'',"baseline-free-breakfast":'',"baseline-free-cancellation":'',"baseline-front-hand":'',"baseline-fullscreen":'',"baseline-fullscreen-exit":'',"baseline-functions":'',"baseline-g-mobiledata":'',"baseline-g-translate":'',"baseline-gamepad":'',"baseline-games":'',"baseline-garage":'',"baseline-gas-meter":'',"baseline-gavel":'',"baseline-generating-tokens":'',"baseline-gesture":'',"baseline-get-app":'',"baseline-gif":'',"baseline-gif-box":'',"baseline-girl":'',"baseline-gite":'',"baseline-golf-course":'',"baseline-gpp-bad":'',"baseline-gpp-good":'',"baseline-gpp-maybe":'',"baseline-gps-fixed":'',"baseline-gps-not-fixed":'',"baseline-gps-off":'',"baseline-grade":'',"baseline-gradient":'',"baseline-grading":'',"baseline-grain":'',"baseline-graphic-eq":'',"baseline-grass":'',"baseline-greater-than":'',"baseline-greater-than-equal":'',"baseline-grid-3x3":'',"baseline-grid-4x4":'',"baseline-grid-goldenratio":'',"baseline-grid-off":'',"baseline-grid-on":'',"baseline-grid-view":'',"baseline-group":'',"baseline-group-add":'',"baseline-group-off":'',"baseline-group-remove":'',"baseline-group-work":'',"baseline-groups":'',"baseline-groups-2":'',"baseline-groups-3":'',"baseline-h-mobiledata":'',"baseline-h-plus-mobiledata":'',"baseline-hail":'',"baseline-handshake":'',"baseline-handyman":'',"baseline-hardware":'',"baseline-hd":'',"baseline-hdr-auto":'',"baseline-hdr-auto-select":'',"baseline-hdr-enhanced-select":'',"baseline-hdr-off":'',"baseline-hdr-off-select":'',"baseline-hdr-on":'',"baseline-hdr-on-select":'',"baseline-hdr-plus":'',"baseline-hdr-strong":'',"baseline-hdr-weak":'',"baseline-headphones":'',"baseline-headphones-battery":'',"baseline-headset":'',"baseline-headset-mic":'',"baseline-headset-off":'',"baseline-healing":'',"baseline-health-and-safety":'',"baseline-hearing":'',"baseline-hearing-disabled":'',"baseline-heart-broken":'',"baseline-heat-pump":'',"baseline-height":'',"baseline-help":'',"baseline-help-center":'',"baseline-help-outline":'',"baseline-hevc":'',"baseline-hexagon":'',"baseline-hide-image":'',"baseline-hide-source":'',"baseline-high-quality":'',"baseline-highlight":'',"baseline-highlight-alt":'',"baseline-highlight-off":'',"baseline-hiking":'',"baseline-history":'',"baseline-history-edu":'',"baseline-history-toggle-off":'',"baseline-hive":'',"baseline-hls":'',"baseline-hls-off":'',"baseline-holiday-village":'',"baseline-home":'',"baseline-home-max":'',"baseline-home-mini":'',"baseline-home-repair-service":'',"baseline-home-work":'',"baseline-horizontal-distribute":'',"baseline-horizontal-rule":'',"baseline-horizontal-split":'',"baseline-hot-tub":'',"baseline-hotel":'',"baseline-hotel-class":'',"baseline-hourglass-bottom":'',"baseline-hourglass-disabled":'',"baseline-hourglass-empty":'',"baseline-hourglass-full":'',"baseline-hourglass-top":'',"baseline-house":'',"baseline-house-siding":'',"baseline-houseboat":'',"baseline-how-to-reg":'',"baseline-how-to-vote":'',"baseline-html":'',"baseline-http":'',"baseline-https":'',"baseline-hub":'',"baseline-hvac":'',"baseline-ice-skating":'',"baseline-icecream":'',"baseline-image":'',"baseline-image-aspect-ratio":'',"baseline-image-not-supported":'',"baseline-image-search":'',"baseline-imagesearch-roller":'',"baseline-import-contacts":'',"baseline-import-export":'',"baseline-important-devices":'',"baseline-inbox":'',"baseline-incomplete-circle":'',"baseline-indeterminate-check-box":'',"baseline-info":'',"baseline-input":'',"baseline-insert-chart":'',"baseline-insert-chart-outlined":'',"baseline-insert-comment":'',"baseline-insert-drive-file":'',"baseline-insert-emoticon":'',"baseline-insert-invitation":'',"baseline-insert-link":'',"baseline-insert-page-break":'',"baseline-insert-photo":'',"baseline-insights":'',"baseline-install-desktop":'',"baseline-install-mobile":'',"baseline-integration-instructions":'',"baseline-interests":'',"baseline-interpreter-mode":'',"baseline-inventory":'',"baseline-inventory-2":'',"baseline-invert-colors":'',"baseline-invert-colors-off":'',"baseline-ios-share":'',"baseline-iron":'',"baseline-iso":'',"baseline-javascript":'',"baseline-join-full":'',"baseline-join-inner":'',"baseline-join-left":'',"baseline-join-right":'',"baseline-kayaking":'',"baseline-kebab-dining":'',"baseline-key":'',"baseline-key-off":'',"baseline-keyboard":'',"baseline-keyboard-alt":'',"baseline-keyboard-arrow-down":'',"baseline-keyboard-arrow-left":'',"baseline-keyboard-arrow-right":'',"baseline-keyboard-arrow-up":'',"baseline-keyboard-backspace":'',"baseline-keyboard-capslock":'',"baseline-keyboard-command-key":'',"baseline-keyboard-control-key":'',"baseline-keyboard-double-arrow-down":'',"baseline-keyboard-double-arrow-left":'',"baseline-keyboard-double-arrow-right":'',"baseline-keyboard-double-arrow-up":'',"baseline-keyboard-hide":'',"baseline-keyboard-option-key":'',"baseline-keyboard-return":'',"baseline-keyboard-tab":'',"baseline-keyboard-voice":'',"baseline-king-bed":'',"baseline-kitchen":'',"baseline-kitesurfing":'',"baseline-label":'',"baseline-label-important":'',"baseline-label-off":'',"baseline-lan":'',"baseline-landscape":'',"baseline-landslide":'',"baseline-language":'',"baseline-laptop":'',"baseline-laptop-chromebook":'',"baseline-laptop-mac":'',"baseline-laptop-windows":'',"baseline-last-page":'',"baseline-launch":'',"baseline-layers":'',"baseline-layers-clear":'',"baseline-leaderboard":'',"baseline-leak-add":'',"baseline-leak-remove":'',"baseline-leave-bags-at-home":'',"baseline-legend-toggle":'',"baseline-lens":'',"baseline-lens-blur":'',"baseline-less-than":'',"baseline-less-than-equal":'',"baseline-library-add":'',"baseline-library-add-check":'',"baseline-library-books":'',"baseline-library-music":'',"baseline-light":'',"baseline-light-mode":'',"baseline-lightbulb":'',"baseline-lightbulb-circle":'',"baseline-line-axis":'',"baseline-line-style":'',"baseline-line-weight":'',"baseline-linear-scale":'',"baseline-link":'',"baseline-link-off":'',"baseline-linked-camera":'',"baseline-liquor":'',"baseline-list":'',"baseline-list-alt":'',"baseline-live-help":'',"baseline-live-tv":'',"baseline-living":'',"baseline-local-activity":'',"baseline-local-airport":'',"baseline-local-atm":'',"baseline-local-bar":'',"baseline-local-cafe":'',"baseline-local-car-wash":'',"baseline-local-convenience-store":'',"baseline-local-dining":'',"baseline-local-drink":'',"baseline-local-fire-department":'',"baseline-local-florist":'',"baseline-local-gas-station":'',"baseline-local-grocery-store":'',"baseline-local-hospital":'',"baseline-local-hotel":'',"baseline-local-laundry-service":'',"baseline-local-library":'',"baseline-local-mall":'',"baseline-local-movies":'',"baseline-local-offer":'',"baseline-local-parking":'',"baseline-local-pharmacy":'',"baseline-local-phone":'',"baseline-local-pizza":'',"baseline-local-play":'',"baseline-local-police":'',"baseline-local-post-office":'',"baseline-local-printshop":'',"baseline-local-see":'',"baseline-local-shipping":'',"baseline-local-taxi":'',"baseline-location-city":'',"baseline-location-disabled":'',"baseline-location-off":'',"baseline-location-on":'',"baseline-location-searching":'',"baseline-lock":'',"baseline-lock-clock":'',"baseline-lock-open":'',"baseline-lock-person":'',"baseline-lock-reset":'',"baseline-log-in":'',"baseline-log-out":'',"baseline-login":'',"baseline-logo-dev":'',"baseline-logout":'',"baseline-looks":'',"baseline-looks-3":'',"baseline-looks-4":'',"baseline-looks-5":'',"baseline-looks-6":'',"baseline-looks-one":'',"baseline-looks-two":'',"baseline-loop":'',"baseline-loupe":'',"baseline-low-priority":'',"baseline-loyalty":'',"baseline-lte-mobiledata":'',"baseline-lte-plus-mobiledata":'',"baseline-luggage":'',"baseline-lunch-dining":'',"baseline-lyrics":'',"baseline-macro-off":'',"baseline-mail":'',"baseline-mail-lock":'',"baseline-mail-outline":'',"baseline-male":'',"baseline-man":'',"baseline-man-2":'',"baseline-man-3":'',"baseline-man-4":'',"baseline-manage-accounts":'',"baseline-manage-history":'',"baseline-manage-search":'',"baseline-map":'',"baseline-maps-home-work":'',"baseline-maps-ugc":'',"baseline-margin":'',"baseline-mark-as-unread":'',"baseline-mark-chat-read":'',"baseline-mark-chat-unread":'',"baseline-mark-email-read":'',"baseline-mark-email-unread":'',"baseline-mark-unread-chat-alt":'',"baseline-markunread":'',"baseline-markunread-mailbox":'',"baseline-masks":'',"baseline-maximize":'',"baseline-media-bluetooth-off":'',"baseline-media-bluetooth-on":'',"baseline-mediation":'',"baseline-medical-information":'',"baseline-medical-services":'',"baseline-medication":'',"baseline-medication-liquid":'',"baseline-meeting-room":'',"baseline-memory":'',"baseline-menu":'',"baseline-menu-book":'',"baseline-menu-open":'',"baseline-merge":'',"baseline-merge-type":'',"baseline-message":'',"baseline-mic":'',"baseline-mic-external-off":'',"baseline-mic-external-on":'',"baseline-mic-none":'',"baseline-mic-off":'',"baseline-microwave":'',"baseline-military-tech":'',"baseline-minimize":'',"baseline-minor-crash":'',"baseline-minus":'',"baseline-miscellaneous-services":'',"baseline-missed-video-call":'',"baseline-mms":'',"baseline-mobile-friendly":'',"baseline-mobile-off":'',"baseline-mobile-screen-share":'',"baseline-mobiledata-off":'',"baseline-mode":'',"baseline-mode-comment":'',"baseline-mode-edit":'',"baseline-mode-edit-outline":'',"baseline-mode-fan-off":'',"baseline-mode-night":'',"baseline-mode-of-travel":'',"baseline-mode-standby":'',"baseline-model-training":'',"baseline-monetization-on":'',"baseline-money":'',"baseline-money-off":'',"baseline-money-off-csred":'',"baseline-monitor":'',"baseline-monitor-heart":'',"baseline-monitor-weight":'',"baseline-monochrome-photos":'',"baseline-mood":'',"baseline-mood-bad":'',"baseline-moped":'',"baseline-more":'',"baseline-more-horiz":'',"baseline-more-time":'',"baseline-more-vert":'',"baseline-mosque":'',"baseline-motion-photos-auto":'',"baseline-motion-photos-off":'',"baseline-motion-photos-on":'',"baseline-motion-photos-pause":'',"baseline-motion-photos-paused":'',"baseline-motorcycle":'',"baseline-mouse":'',"baseline-move-down":'',"baseline-move-to-inbox":'',"baseline-move-up":'',"baseline-movie":'',"baseline-movie-creation":'',"baseline-movie-filter":'',"baseline-moving":'',"baseline-mp":'',"baseline-multiline-chart":'',"baseline-multiple-stop":'',"baseline-museum":'',"baseline-music-note":'',"baseline-music-off":'',"baseline-music-video":'',"baseline-my-location":'',"baseline-nat":'',"baseline-nature":'',"baseline-nature-people":'',"baseline-navigate-before":'',"baseline-navigate-next":'',"baseline-navigation":'',"baseline-near-me":'',"baseline-near-me-disabled":'',"baseline-nearby-error":'',"baseline-nearby-off":'',"baseline-nest-cam-wired-stand":'',"baseline-network-cell":'',"baseline-network-check":'',"baseline-network-locked":'',"baseline-network-ping":'',"baseline-network-wifi":'',"baseline-network-wifi-1-bar":'',"baseline-network-wifi-2-bar":'',"baseline-network-wifi-3-bar":'',"baseline-new-label":'',"baseline-new-releases":'',"baseline-newspaper":'',"baseline-next-plan":'',"baseline-next-week":'',"baseline-nfc":'',"baseline-night-shelter":'',"baseline-nightlife":'',"baseline-nightlight":'',"baseline-nightlight-round":'',"baseline-nights-stay":'',"baseline-no-accounts":'',"baseline-no-adult-content":'',"baseline-no-backpack":'',"baseline-no-cell":'',"baseline-no-crash":'',"baseline-no-drinks":'',"baseline-no-encryption":'',"baseline-no-encryption-gmailerrorred":'',"baseline-no-flash":'',"baseline-no-food":'',"baseline-no-luggage":'',"baseline-no-meals":'',"baseline-no-meeting-room":'',"baseline-no-photography":'',"baseline-no-sim":'',"baseline-no-stroller":'',"baseline-no-transfer":'',"baseline-noise-aware":'',"baseline-noise-control-off":'',"baseline-nordic-walking":'',"baseline-north":'',"baseline-north-east":'',"baseline-north-west":'',"baseline-not-accessible":'',"baseline-not-equal":'',"baseline-not-interested":'',"baseline-not-listed-location":'',"baseline-not-started":'',"baseline-note":'',"baseline-note-add":'',"baseline-note-alt":'',"baseline-notes":'',"baseline-notification-add":'',"baseline-notification-important":'',"baseline-notifications":'',"baseline-notifications-active":'',"baseline-notifications-none":'',"baseline-notifications-off":'',"baseline-notifications-paused":'',"baseline-numbers":'',"baseline-offline-bolt":'',"baseline-offline-pin":'',"baseline-offline-share":'',"baseline-oil-barrel":'',"baseline-on-device-training":'',"baseline-ondemand-video":'',"baseline-online-prediction":'',"baseline-opacity":'',"baseline-open-in-browser":'',"baseline-open-in-full":'',"baseline-open-in-new":'',"baseline-open-in-new-off":'',"baseline-open-with":'',"baseline-other-houses":'',"baseline-outbond":'',"baseline-outbound":'',"baseline-outbox":'',"baseline-outdoor-grill":'',"baseline-outlet":'',"baseline-outlined-flag":'',"baseline-output":'',"baseline-padding":'',"baseline-pages":'',"baseline-pageview":'',"baseline-paid":'',"baseline-palette":'',"baseline-pan-tool":'',"baseline-pan-tool-alt":'',"baseline-panorama":'',"baseline-panorama-fish-eye":'',"baseline-panorama-horizontal":'',"baseline-panorama-horizontal-select":'',"baseline-panorama-photosphere":'',"baseline-panorama-photosphere-select":'',"baseline-panorama-vertical":'',"baseline-panorama-vertical-select":'',"baseline-panorama-wide-angle":'',"baseline-panorama-wide-angle-select":'',"baseline-paragliding":'',"baseline-park":'',"baseline-party-mode":'',"baseline-password":'',"baseline-pattern":'',"baseline-pause":'',"baseline-pause-circle":'',"baseline-pause-circle-filled":'',"baseline-pause-circle-outline":'',"baseline-pause-presentation":'',"baseline-payment":'',"baseline-payments":'',"baseline-paypal":'',"baseline-pedal-bike":'',"baseline-pending":'',"baseline-pending-actions":'',"baseline-pentagon":'',"baseline-people":'',"baseline-people-alt":'',"baseline-people-outline":'',"baseline-percent":'',"baseline-percentage":'',"baseline-perm-camera-mic":'',"baseline-perm-contact-calendar":'',"baseline-perm-data-setting":'',"baseline-perm-device-information":'',"baseline-perm-identity":'',"baseline-perm-media":'',"baseline-perm-phone-msg":'',"baseline-perm-scan-wifi":'',"baseline-person":'',"baseline-person-2":'',"baseline-person-3":'',"baseline-person-4":'',"baseline-person-add":'',"baseline-person-add-alt":'',"baseline-person-add-alt-1":'',"baseline-person-add-disabled":'',"baseline-person-off":'',"baseline-person-outline":'',"baseline-person-pin":'',"baseline-person-pin-circle":'',"baseline-person-remove":'',"baseline-person-remove-alt-1":'',"baseline-person-search":'',"baseline-personal-injury":'',"baseline-personal-video":'',"baseline-pest-control":'',"baseline-pest-control-rodent":'',"baseline-pets":'',"baseline-phishing":'',"baseline-phone":'',"baseline-phone-android":'',"baseline-phone-bluetooth-speaker":'',"baseline-phone-callback":'',"baseline-phone-disabled":'',"baseline-phone-enabled":'',"baseline-phone-forwarded":'',"baseline-phone-in-talk":'',"baseline-phone-iphone":'',"baseline-phone-locked":'',"baseline-phone-missed":'',"baseline-phone-paused":'',"baseline-phonelink":'',"baseline-phonelink-erase":'',"baseline-phonelink-lock":'',"baseline-phonelink-off":'',"baseline-phonelink-ring":'',"baseline-phonelink-setup":'',"baseline-photo":'',"baseline-photo-album":'',"baseline-photo-camera":'',"baseline-photo-camera-back":'',"baseline-photo-camera-front":'',"baseline-photo-filter":'',"baseline-photo-library":'',"baseline-photo-size-select-actual":'',"baseline-photo-size-select-large":'',"baseline-photo-size-select-small":'',"baseline-php":'',"baseline-piano":'',"baseline-piano-off":'',"baseline-picture-as-pdf":'',"baseline-picture-in-picture":'',"baseline-picture-in-picture-alt":'',"baseline-pie-chart":'',"baseline-pie-chart-outline":'',"baseline-pin":'',"baseline-pin-drop":'',"baseline-pin-end":'',"baseline-pin-invoke":'',"baseline-pin-off":'',"baseline-pinch":'',"baseline-pivot-table-chart":'',"baseline-pix":'',"baseline-place":'',"baseline-plagiarism":'',"baseline-play-arrow":'',"baseline-play-circle":'',"baseline-play-circle-filled":'',"baseline-play-circle-filled-white":'',"baseline-play-circle-outline":'',"baseline-play-disabled":'',"baseline-play-for-work":'',"baseline-play-lesson":'',"baseline-playlist-add":'',"baseline-playlist-add-check":'',"baseline-playlist-add-check-circle":'',"baseline-playlist-add-circle":'',"baseline-playlist-play":'',"baseline-playlist-remove":'',"baseline-plumbing":'',"baseline-plus":'',"baseline-plus-minus":'',"baseline-plus-minus-alt":'',"baseline-plus-one":'',"baseline-podcasts":'',"baseline-point-of-sale":'',"baseline-policy":'',"baseline-poll":'',"baseline-polyline":'',"baseline-polymer":'',"baseline-pool":'',"baseline-portable-wifi-off":'',"baseline-portrait":'',"baseline-post-add":'',"baseline-power":'',"baseline-power-input":'',"baseline-power-off":'',"baseline-power-settings-new":'',"baseline-precision-manufacturing":'',"baseline-pregnant-woman":'',"baseline-present-to-all":'',"baseline-preview":'',"baseline-price-change":'',"baseline-price-check":'',"baseline-print":'',"baseline-print-disabled":'',"baseline-priority-high":'',"baseline-privacy-tip":'',"baseline-private-connectivity":'',"baseline-production-quantity-limits":'',"baseline-propane":'',"baseline-propane-tank":'',"baseline-psychology":'',"baseline-psychology-alt":'',"baseline-public":'',"baseline-public-off":'',"baseline-publish":'',"baseline-published-with-changes":'',"baseline-punch-clock":'',"baseline-push-pin":'',"baseline-qr-code":'',"baseline-qr-code-2":'',"baseline-qr-code-scanner":'',"baseline-qrcode":'',"baseline-query-builder":'',"baseline-query-stats":'',"baseline-question-answer":'',"baseline-question-mark":'',"baseline-queue":'',"baseline-queue-music":'',"baseline-queue-play-next":'',"baseline-quickreply":'',"baseline-quiz":'',"baseline-quora":'',"baseline-r-mobiledata":'',"baseline-radar":'',"baseline-radio":'',"baseline-radio-button-checked":'',"baseline-radio-button-unchecked":'',"baseline-railway-alert":'',"baseline-ramen-dining":'',"baseline-ramp-left":'',"baseline-ramp-right":'',"baseline-rate-review":'',"baseline-raw-off":'',"baseline-raw-on":'',"baseline-read-more":'',"baseline-real-estate-agent":'',"baseline-receipt":'',"baseline-receipt-long":'',"baseline-recent-actors":'',"baseline-recommend":'',"baseline-record-voice-over":'',"baseline-rectangle":'',"baseline-recycling":'',"baseline-reddit":'',"baseline-redeem":'',"baseline-redo":'',"baseline-reduce-capacity":'',"baseline-refresh":'',"baseline-remember-me":'',"baseline-remove":'',"baseline-remove-circle":'',"baseline-remove-circle-outline":'',"baseline-remove-done":'',"baseline-remove-from-queue":'',"baseline-remove-moderator":'',"baseline-remove-red-eye":'',"baseline-remove-road":'',"baseline-remove-shopping-cart":'',"baseline-reorder":'',"baseline-repartition":'',"baseline-repeat":'',"baseline-repeat-on":'',"baseline-repeat-one":'',"baseline-repeat-one-on":'',"baseline-replay":'',"baseline-replay-10":'',"baseline-replay-30":'',"baseline-replay-5":'',"baseline-replay-circle-filled":'',"baseline-reply":'',"baseline-reply-all":'',"baseline-report":'',"baseline-report-gmailerrorred":'',"baseline-report-off":'',"baseline-report-problem":'',"baseline-request-page":'',"baseline-request-quote":'',"baseline-reset-tv":'',"baseline-restart-alt":'',"baseline-restaurant":'',"baseline-restaurant-menu":'',"baseline-restore":'',"baseline-restore-from-trash":'',"baseline-restore-page":'',"baseline-reviews":'',"baseline-rice-bowl":'',"baseline-ring-volume":'',"baseline-rocket":'',"baseline-rocket-launch":'',"baseline-roller-shades":'',"baseline-roller-shades-closed":'',"baseline-roller-skating":'',"baseline-roofing":'',"baseline-room":'',"baseline-room-preferences":'',"baseline-room-service":'',"baseline-rotate-90-degrees-ccw":'',"baseline-rotate-90-degrees-cw":'',"baseline-rotate-left":'',"baseline-rotate-right":'',"baseline-roundabout-left":'',"baseline-roundabout-right":'',"baseline-rounded-corner":'',"baseline-route":'',"baseline-router":'',"baseline-rowing":'',"baseline-rss-feed":'',"baseline-rsvp":'',"baseline-rtt":'',"baseline-rule":'',"baseline-rule-folder":'',"baseline-run-circle":'',"baseline-running-with-errors":'',"baseline-rv-hookup":'',"baseline-safety-check":'',"baseline-safety-divider":'',"baseline-sailing":'',"baseline-sanitizer":'',"baseline-satellite":'',"baseline-satellite-alt":'',"baseline-save":'',"baseline-save-all":'',"baseline-save-alt":'',"baseline-save-as":'',"baseline-saved-search":'',"baseline-savings":'',"baseline-scale":'',"baseline-scanner":'',"baseline-scatter-plot":'',"baseline-schedule":'',"baseline-schedule-send":'',"baseline-schema":'',"baseline-school":'',"baseline-science":'',"baseline-score":'',"baseline-scoreboard":'',"baseline-screen-lock-landscape":'',"baseline-screen-lock-portrait":'',"baseline-screen-lock-rotation":'',"baseline-screen-rotation":'',"baseline-screen-rotation-alt":'',"baseline-screen-search-desktop":'',"baseline-screen-share":'',"baseline-screenshot":'',"baseline-screenshot-monitor":'',"baseline-scuba-diving":'',"baseline-sd":'',"baseline-sd-card":'',"baseline-sd-card-alert":'',"baseline-sd-storage":'',"baseline-search":'',"baseline-search-off":'',"baseline-security":'',"baseline-security-update":'',"baseline-security-update-good":'',"baseline-security-update-warning":'',"baseline-segment":'',"baseline-select-all":'',"baseline-self-improvement":'',"baseline-sell":'',"baseline-send":'',"baseline-send-and-archive":'',"baseline-send-time-extension":'',"baseline-send-to-mobile":'',"baseline-sensor-door":'',"baseline-sensor-occupied":'',"baseline-sensor-window":'',"baseline-sensors":'',"baseline-sensors-off":'',"baseline-sentiment-dissatisfied":'',"baseline-sentiment-neutral":'',"baseline-sentiment-satisfied":'',"baseline-sentiment-satisfied-alt":'',"baseline-sentiment-slightly-dissatisfied":'',"baseline-sentiment-very-dissatisfied":'',"baseline-sentiment-very-satisfied":'',"baseline-set-meal":'',"baseline-settings":'',"baseline-settings-accessibility":'',"baseline-settings-applications":'',"baseline-settings-backup-restore":'',"baseline-settings-bluetooth":'',"baseline-settings-brightness":'',"baseline-settings-cell":'',"baseline-settings-ethernet":'',"baseline-settings-input-antenna":'',"baseline-settings-input-component":'',"baseline-settings-input-composite":'',"baseline-settings-input-hdmi":'',"baseline-settings-input-svideo":'',"baseline-settings-overscan":'',"baseline-settings-phone":'',"baseline-settings-power":'',"baseline-settings-remote":'',"baseline-settings-suggest":'',"baseline-settings-system-daydream":'',"baseline-settings-voice":'',"baseline-severe-cold":'',"baseline-shape-line":'',"baseline-share":'',"baseline-share-arrival-time":'',"baseline-share-location":'',"baseline-shield":'',"baseline-shield-moon":'',"baseline-shop":'',"baseline-shop-2":'',"baseline-shop-two":'',"baseline-shopify":'',"baseline-shopping-bag":'',"baseline-shopping-basket":'',"baseline-shopping-cart":'',"baseline-shopping-cart-checkout":'',"baseline-short-text":'',"baseline-shortcut":'',"baseline-show-chart":'',"baseline-shower":'',"baseline-shuffle":'',"baseline-shuffle-on":'',"baseline-shutter-speed":'',"baseline-sick":'',"baseline-sign-language":'',"baseline-signal-cellular-0-bar":'',"baseline-signal-cellular-1-bar":'',"baseline-signal-cellular-2-bar":'',"baseline-signal-cellular-3-bar":'',"baseline-signal-cellular-4-bar":'',"baseline-signal-cellular-alt":'',"baseline-signal-cellular-alt-1-bar":'',"baseline-signal-cellular-alt-2-bar":'',"baseline-signal-cellular-connected-no-internet-0-bar":'',"baseline-signal-cellular-connected-no-internet-1-bar":'',"baseline-signal-cellular-connected-no-internet-2-bar":'',"baseline-signal-cellular-connected-no-internet-3-bar":'',"baseline-signal-cellular-connected-no-internet-4-bar":'',"baseline-signal-cellular-no-sim":'',"baseline-signal-cellular-nodata":'',"baseline-signal-cellular-null":'',"baseline-signal-cellular-off":'',"baseline-signal-wifi-0-bar":'',"baseline-signal-wifi-1-bar":'',"baseline-signal-wifi-1-bar-lock":'',"baseline-signal-wifi-2-bar":'',"baseline-signal-wifi-2-bar-lock":'',"baseline-signal-wifi-3-bar":'',"baseline-signal-wifi-3-bar-lock":'',"baseline-signal-wifi-4-bar":'',"baseline-signal-wifi-4-bar-lock":'',"baseline-signal-wifi-bad":'',"baseline-signal-wifi-connected-no-internet-4":'',"baseline-signal-wifi-off":'',"baseline-signal-wifi-statusbar-4-bar":'',"baseline-signal-wifi-statusbar-connected-no-internet-4":'',"baseline-signal-wifi-statusbar-null":'',"baseline-signpost":'',"baseline-sim-card":'',"baseline-sim-card-alert":'',"baseline-sim-card-download":'',"baseline-single-bed":'',"baseline-sip":'',"baseline-skateboarding":'',"baseline-skip-next":'',"baseline-skip-previous":'',"baseline-sledding":'',"baseline-slideshow":'',"baseline-slow-motion-video":'',"baseline-smart-button":'',"baseline-smart-display":'',"baseline-smart-screen":'',"baseline-smart-toy":'',"baseline-smartphone":'',"baseline-smoke-free":'',"baseline-smoking-rooms":'',"baseline-sms":'',"baseline-sms-failed":'',"baseline-snapchat":'',"baseline-snippet-folder":'',"baseline-snooze":'',"baseline-snowboarding":'',"baseline-snowmobile":'',"baseline-snowshoeing":'',"baseline-soap":'',"baseline-social-distance":'',"baseline-solar-power":'',"baseline-sort":'',"baseline-sort-by-alpha":'',"baseline-sos":'',"baseline-soup-kitchen":'',"baseline-source":'',"baseline-south":'',"baseline-south-america":'',"baseline-south-east":'',"baseline-south-west":'',"baseline-spa":'',"baseline-space-bar":'',"baseline-space-dashboard":'',"baseline-spatial-audio":'',"baseline-spatial-audio-off":'',"baseline-spatial-tracking":'',"baseline-speaker":'',"baseline-speaker-group":'',"baseline-speaker-notes":'',"baseline-speaker-notes-off":'',"baseline-speaker-phone":'',"baseline-speed":'',"baseline-spellcheck":'',"baseline-splitscreen":'',"baseline-spoke":'',"baseline-sports":'',"baseline-sports-bar":'',"baseline-sports-baseball":'',"baseline-sports-basketball":'',"baseline-sports-cricket":'',"baseline-sports-esports":'',"baseline-sports-football":'',"baseline-sports-golf":'',"baseline-sports-gymnastics":'',"baseline-sports-handball":'',"baseline-sports-hockey":'',"baseline-sports-kabaddi":'',"baseline-sports-martial-arts":'',"baseline-sports-mma":'',"baseline-sports-motorsports":'',"baseline-sports-rugby":'',"baseline-sports-score":'',"baseline-sports-soccer":'',"baseline-sports-tennis":'',"baseline-sports-volleyball":'',"baseline-square":'',"baseline-square-foot":'',"baseline-ssid-chart":'',"baseline-stacked-bar-chart":'',"baseline-stacked-line-chart":'',"baseline-stadium":'',"baseline-stairs":'',"baseline-star":'',"baseline-star-border":'',"baseline-star-border-purple500":'',"baseline-star-half":'',"baseline-star-outline":'',"baseline-star-purple500":'',"baseline-star-rate":'',"baseline-stars":'',"baseline-start":'',"baseline-stay-current-landscape":'',"baseline-stay-current-portrait":'',"baseline-stay-primary-landscape":'',"baseline-stay-primary-portrait":'',"baseline-sticky-note-2":'',"baseline-stop":'',"baseline-stop-circle":'',"baseline-stop-screen-share":'',"baseline-storage":'',"baseline-store":'',"baseline-store-mall-directory":'',"baseline-storefront":'',"baseline-storm":'',"baseline-straight":'',"baseline-straighten":'',"baseline-stream":'',"baseline-streetview":'',"baseline-strikethrough-s":'',"baseline-stroller":'',"baseline-style":'',"baseline-subdirectory-arrow-left":'',"baseline-subdirectory-arrow-right":'',"baseline-subject":'',"baseline-subscript":'',"baseline-subscriptions":'',"baseline-subtitles":'',"baseline-subtitles-off":'',"baseline-subway":'',"baseline-summarize":'',"baseline-superscript":'',"baseline-supervised-user-circle":'',"baseline-supervisor-account":'',"baseline-support":'',"baseline-support-agent":'',"baseline-surfing":'',"baseline-surround-sound":'',"baseline-swap-calls":'',"baseline-swap-horiz":'',"baseline-swap-horizontal-circle":'',"baseline-swap-vert":'',"baseline-swap-vertical-circle":'',"baseline-swipe":'',"baseline-swipe-down":'',"baseline-swipe-down-alt":'',"baseline-swipe-left":'',"baseline-swipe-left-alt":'',"baseline-swipe-right":'',"baseline-swipe-right-alt":'',"baseline-swipe-up":'',"baseline-swipe-up-alt":'',"baseline-swipe-vertical":'',"baseline-switch-access-shortcut":'',"baseline-switch-access-shortcut-add":'',"baseline-switch-account":'',"baseline-switch-camera":'',"baseline-switch-left":'',"baseline-switch-right":'',"baseline-switch-video":'',"baseline-synagogue":'',"baseline-sync":'',"baseline-sync-alt":'',"baseline-sync-disabled":'',"baseline-sync-lock":'',"baseline-sync-problem":'',"baseline-system-security-update":'',"baseline-system-security-update-good":'',"baseline-system-security-update-warning":'',"baseline-system-update":'',"baseline-system-update-alt":'',"baseline-tab":'',"baseline-tab-unselected":'',"baseline-table-bar":'',"baseline-table-chart":'',"baseline-table-restaurant":'',"baseline-table-rows":'',"baseline-table-view":'',"baseline-tablet":'',"baseline-tablet-android":'',"baseline-tablet-mac":'',"baseline-tag":'',"baseline-tag-faces":'',"baseline-takeout-dining":'',"baseline-tap-and-play":'',"baseline-tapas":'',"baseline-task":'',"baseline-task-alt":'',"baseline-taxi-alert":'',"baseline-telegram":'',"baseline-temple-buddhist":'',"baseline-temple-hindu":'',"baseline-terminal":'',"baseline-terrain":'',"baseline-text-decrease":'',"baseline-text-fields":'',"baseline-text-format":'',"baseline-text-increase":'',"baseline-text-rotate-up":'',"baseline-text-rotate-vertical":'',"baseline-text-rotation-angledown":'',"baseline-text-rotation-angleup":'',"baseline-text-rotation-down":'',"baseline-text-rotation-none":'',"baseline-text-snippet":'',"baseline-textsms":'',"baseline-texture":'',"baseline-theater-comedy":'',"baseline-theaters":'',"baseline-thermostat":'',"baseline-thermostat-auto":'',"baseline-thumb-down":'',"baseline-thumb-down-alt":'',"baseline-thumb-down-off-alt":'',"baseline-thumb-up":'',"baseline-thumb-up-alt":'',"baseline-thumb-up-off-alt":'',"baseline-thumbs-up-down":'',"baseline-thunderstorm":'',"baseline-tiktok":'',"baseline-time-to-leave":'',"baseline-timelapse":'',"baseline-timeline":'',"baseline-timer":'',"baseline-timer-10":'',"baseline-timer-10-select":'',"baseline-timer-3":'',"baseline-timer-3-select":'',"baseline-timer-off":'',"baseline-tips-and-updates":'',"baseline-tire-repair":'',"baseline-title":'',"baseline-toc":'',"baseline-today":'',"baseline-toggle-off":'',"baseline-toggle-on":'',"baseline-token":'',"baseline-toll":'',"baseline-tonality":'',"baseline-topic":'',"baseline-tornado":'',"baseline-touch-app":'',"baseline-tour":'',"baseline-toys":'',"baseline-track-changes":'',"baseline-traffic":'',"baseline-train":'',"baseline-tram":'',"baseline-transcribe":'',"baseline-transfer-within-a-station":'',"baseline-transform":'',"baseline-transgender":'',"baseline-transit-enterexit":'',"baseline-translate":'',"baseline-travel-explore":'',"baseline-trending-down":'',"baseline-trending-flat":'',"baseline-trending-up":'',"baseline-trip-origin":'',"baseline-troubleshoot":'',"baseline-try":'',"baseline-tsunami":'',"baseline-tty":'',"baseline-tune":'',"baseline-tungsten":'',"baseline-turn-left":'',"baseline-turn-right":'',"baseline-turn-sharp-left":'',"baseline-turn-sharp-right":'',"baseline-turn-slight-left":'',"baseline-turn-slight-right":'',"baseline-turned-in":'',"baseline-turned-in-not":'',"baseline-tv":'',"baseline-tv-off":'',"baseline-two-wheeler":'',"baseline-type-specimen":'',"baseline-u-turn-left":'',"baseline-u-turn-right":'',"baseline-umbrella":'',"baseline-unarchive":'',"baseline-undo":'',"baseline-unfold-less":'',"baseline-unfold-less-double":'',"baseline-unfold-more":'',"baseline-unfold-more-double":'',"baseline-unpublished":'',"baseline-unsubscribe":'',"baseline-upcoming":'',"baseline-update":'',"baseline-update-disabled":'',"baseline-upgrade":'',"baseline-upload":'',"baseline-upload-file":'',"baseline-usb":'',"baseline-usb-off":'',"baseline-vaccines":'',"baseline-vape-free":'',"baseline-vaping-rooms":'',"baseline-verified":'',"baseline-verified-user":'',"baseline-vertical-align-bottom":'',"baseline-vertical-align-center":'',"baseline-vertical-align-top":'',"baseline-vertical-distribute":'',"baseline-vertical-shades":'',"baseline-vertical-shades-closed":'',"baseline-vertical-split":'',"baseline-vibration":'',"baseline-video-call":'',"baseline-video-camera-back":'',"baseline-video-camera-front":'',"baseline-video-chat":'',"baseline-video-file":'',"baseline-video-label":'',"baseline-video-library":'',"baseline-video-settings":'',"baseline-video-stable":'',"baseline-videocam":'',"baseline-videocam-off":'',"baseline-videogame-asset":'',"baseline-videogame-asset-off":'',"baseline-view-agenda":'',"baseline-view-array":'',"baseline-view-carousel":'',"baseline-view-column":'',"baseline-view-comfy":'',"baseline-view-comfy-alt":'',"baseline-view-compact":'',"baseline-view-compact-alt":'',"baseline-view-cozy":'',"baseline-view-day":'',"baseline-view-headline":'',"baseline-view-in-ar":'',"baseline-view-kanban":'',"baseline-view-list":'',"baseline-view-module":'',"baseline-view-quilt":'',"baseline-view-sidebar":'',"baseline-view-stream":'',"baseline-view-timeline":'',"baseline-view-week":'',"baseline-vignette":'',"baseline-villa":'',"baseline-visibility":'',"baseline-visibility-off":'',"baseline-voice-chat":'',"baseline-voice-over-off":'',"baseline-voicemail":'',"baseline-volcano":'',"baseline-volume-down":'',"baseline-volume-mute":'',"baseline-volume-off":'',"baseline-volume-up":'',"baseline-volunteer-activism":'',"baseline-vpn-key":'',"baseline-vpn-key-off":'',"baseline-vpn-lock":'',"baseline-vrpano":'',"baseline-wallet":'',"baseline-wallpaper":'',"baseline-warehouse":'',"baseline-warning":'',"baseline-warning-amber":'',"baseline-wash":'',"baseline-watch":'',"baseline-watch-later":'',"baseline-watch-off":'',"baseline-water":'',"baseline-water-damage":'',"baseline-water-drop":'',"baseline-waterfall-chart":'',"baseline-waves":'',"baseline-waving-hand":'',"baseline-wb-auto":'',"baseline-wb-cloudy":'',"baseline-wb-incandescent":'',"baseline-wb-iridescent":'',"baseline-wb-shade":'',"baseline-wb-sunny":'',"baseline-wb-twilight":'',"baseline-wc":'',"baseline-web":'',"baseline-web-asset":'',"baseline-web-asset-off":'',"baseline-web-stories":'',"baseline-webhook":'',"baseline-wechat":'',"baseline-weekend":'',"baseline-west":'',"baseline-whatsapp":'',"baseline-whatshot":'',"baseline-wheelchair-pickup":'',"baseline-where-to-vote":'',"baseline-widgets":'',"baseline-width-full":'',"baseline-width-normal":'',"baseline-width-wide":'',"baseline-wifi":'',"baseline-wifi-1-bar":'',"baseline-wifi-2-bar":'',"baseline-wifi-calling":'',"baseline-wifi-calling-3":'',"baseline-wifi-channel":'',"baseline-wifi-find":'',"baseline-wifi-lock":'',"baseline-wifi-off":'',"baseline-wifi-password":'',"baseline-wifi-protected-setup":'',"baseline-wifi-tethering":'',"baseline-wifi-tethering-error":'',"baseline-wifi-tethering-error-rounded":'',"baseline-wifi-tethering-off":'',"baseline-wind-power":'',"baseline-window":'',"baseline-wine-bar":'',"baseline-woman":'',"baseline-woman-2":'',"baseline-woo-commerce":'',"baseline-wordpress":'',"baseline-work":'',"baseline-work-history":'',"baseline-work-off":'',"baseline-work-outline":'',"baseline-workspace-premium":'',"baseline-workspaces":'',"baseline-wrap-text":'',"baseline-wrong-location":'',"baseline-wysiwyg":'',"baseline-yard":'',"baseline-youtube-searched-for":'',"baseline-zoom-in":'',"baseline-zoom-in-map":'',"baseline-zoom-out":'',"baseline-zoom-out-map":''},sw=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},S0e={},T0e={class:"mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function L0e(t,r){return z(),H("span",T0e,[Qe(t.$slots,"default")])}const xS=sw(S0e,[["render",L0e]]),k0e={},O0e={class:"h-3 w-3 $ui-inline-fcc"};function x0e(t,r){return z(),H("div",O0e,r[0]||(r[0]=[w("svg",{class:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[w("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),w("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1)]))}const JU=sw(k0e,[["render",x0e]]),H0e={key:2},ct=ce({inheritAttrs:!1,__name:"Button",props:{type:{default:"default"},round:{type:[String,Boolean],default:"normal"},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:"normal"},flat:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:r}){const e=t,n=r,i=Ooe(),o=F(()=>i.to?"router-link":i.href?"a":"button"),a=F(()=>e.loading||e.disabled);function s(g){if(a.value){g.preventDefault(),g.stopPropagation(),g.stopImmediatePropagation();return}n("click",g)}const l={common:{default:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",primary:"active:bg-primary-500-darker",accent:"active:bg-accent-500-darker",danger:"active:bg-danger-500-darker",warning:"active:bg-warning-500-darker",info:"active:bg-primary-100-darker dark:active:bg-gray-800-darker",success:"active:bg-primary-100-darker dark:active:bg-gray-800-darker"},normal:{default:"bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter dark:hover:text-white",primary:" text-white bg-primary-500 hover:bg-primary-500-lighter dark:hover:bg-primary-500-darker",accent:"text-white bg-accent-500 hover:bg-accent-500-lighter dark:bg-accent-500-darker dark:bg-accent-300",danger:"text-white bg-danger-500 hover:bg-danger-500-lighter dark:hover:bg-danger-500-darker",warning:"text-white bg-warning-500 hover:bg-warning-500-lighter dark:hover:bg-warning-500-darker",info:"text-info-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter",success:"text-primary-500 bg-primary-100 hover:bg-primary-100-lighter dark:bg-gray-800 dark:hover:bg-gray-800-lighter"},flat:{default:"hover:bg-primary-100 hover:text-black !dark:text-white dark:hover:bg-primary-800",primary:"hover:bg-primary-500 hover:text-white",accent:"hover:bg-accent-500 hover:text-white",danger:"hover:bg-danger-500 hover:text-white",warning:"hover:bg-warning-500 hover:text-white",info:"hover:bg-primary-100 hover:text-info-500 dark:hover:bg-gray-800 dark:hover:text-info-400",success:"hover:bg-primary-100 hover:text-primary-500 dark:hover:bg-primary-800 dark:hover:text-primary-400"},outlined:{default:"hover:border-primary-100 hover:text-primary-300 hover:active:ring-primary-100:5 hover:active:bg-primary-100:5",primary:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5",accent:"hover:border-accent-500 hover:text-accent-500 active:ring-accent-500:5 active:bg-accent-500:5",danger:"hover:border-danger-500 hover:text-danger-500 active:ring-danger-500:5 active:bg-danger-500:5",warning:"hover:border-warning-500 hover:text-warning-500 active:ring-warning-500:5 active:bg-warning-500:5",info:"hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",success:"hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"}},c=DB(),u=F(()=>e.flat?l.flat[e.type]:e.outlined?l.outlined[e.type]:l.normal[e.type]);return(g,h)=>(z(),ne(y1(o.value),Xr(g.$attrs,{role:"button","aria-disabled":a.value,class:["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition",[[l.common[e.type]],{"rounded-full":e.round==="full","$ui-base-br":e.round==="normal","opacity-50 cursor-not-allowed":a.value,"bg-transparent":e.flat||e.outlined},[g.outlined?"b-1 $ui-border-base active:ring-3 shadow-sm":"border-none",g.size==="mini"?"px1 text-3 h5.5":"px3.5 text-3.5 h8",u.value]]],onClickCapture:s}),{default:W(()=>[g.loading?(z(),ne(JU,{key:0,class:"mt0.5 h-full w3"})):Qe(g.$slots,"icon",{key:1,class:"h-full w3 $ui-inline-fcc"}),y(c).default?(z(),H("div",H0e,[Qe(g.$slots,"default")])):oe("",!0),Qe(g.$slots,"icon-right")]),_:3},16,["aria-disabled","class"]))}}),V0e={},P0e={class:"$ui-base border $ui-border-base rounded shadow-sm"};function R0e(t,r){return z(),H("div",P0e,[Qe(t.$slots,"default")])}const V5=sw(V0e,[["render",R0e]]),I2=ce({__name:"Checkbox",props:{modelValue:{type:Boolean},variant:{default:"normal"}},emits:["update:modelValue"],setup(t,{emit:r}){const e=za(t,"modelValue",r);return(n,i)=>(z(),H("div",{class:Te(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out",[y(e)?n.variant==="normal"?"bg-primary-500 border-primary-200 dark:border-primary-100":"bg-accent-500 border-accent-200 dark:border-accent-100":""]]),onClick:i[0]||(i[0]=o=>e.value=!y(e))},[w("div",{class:Te([[y(e)?"opacity-100":"opacity-0"],"h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])},null,2)],2))}}),cC=Bi();let HS=null;function D0e(t,r="text"){var e;if(!HS&&!cC.value){const i=z0e();HS=M0e({themes:[Si(()=>import("./vitesse-dark-D0r3Knsf.js"),[],import.meta.url),Si(()=>import("./vitesse-light-CVO1_9PV.js"),[],import.meta.url)],langs:[Si(()=>import("./json-DWmkr0yC.js"),[],import.meta.url),Si(()=>import("./yaml-CIiI48o2.js"),[],import.meta.url),Si(()=>import("./css-g_GSZ1hr.js"),[],import.meta.url),Si(()=>import("./javascript-Begb3drz.js"),[],import.meta.url),Si(()=>import("./typescript-BeSffZBD.js"),[],import.meta.url),Si(()=>import("./vue-CfxD1nqp.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),Si(()=>import("./vue-html-CZhY4ukh.js"),__vite__mapDeps([6,0,1,2,3,4,5]),import.meta.url),Si(()=>import("./html-Xm3MTC80.js"),__vite__mapDeps([1,2,3]),import.meta.url),Si(()=>import("./diff-Dnfm4U7b.js"),[],import.meta.url),Si(()=>import("./shellscript-HNM5thJl.js"),[],import.meta.url)],engine:i}).then(o=>{cC.value=o})}const n=(e=cC.value)==null?void 0:e.getLoadedLanguages().includes(r);return n?{code:cC.value.codeToHtml(t,{lang:r,themes:{dark:"vitesse-dark",light:"vitesse-light"}}),supported:!0}:{code:t,supported:n}}const N0e=["innerHTML"],B0e={class:"shiki"},F0e=["textContent"],lw=ce({__name:"CodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},emits:["loaded"],setup(t,{emit:r}){const e=t,n=r,i=F(()=>{const o=e.lang==="text"?{code:e.code,supported:!1}:D0e(e.code,e.lang)||{code:e.code,supported:!1};return o.supported&&e.transformRendered&&(o.code=e.transformRendered(o.code)),o.supported&&dn(()=>n("loaded")),o});return(o,a)=>o.lang&&i.value.supported?(z(),H("pre",{key:0,class:Te(["code-block",o.lines?"code-block-lines":""]),innerHTML:i.value.code},null,10,N0e)):(z(),H("pre",{key:1,class:Te(["code-block",o.lines?"code-block-lines":""])},[w("pre",B0e,[w("code",null,[(z(!0),H(Ee,null,At(o.code.split(` `),(s,l)=>(z(),H(Ee,{key:l},[w("span",{class:"line",textContent:ze(s)},null,8,F0e),a[0]||(a[0]=w("br",null,null,-1))],64))),128))])])],2))}}),cw=ce({__name:"Overlay",props:{dim:{type:Boolean},blur:{type:Boolean},position:{default:"fixed"}},setup(t){return(r,e)=>(z(),H("div",{class:Te(["left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base",[r.dim?"bg-opacity-50!":"bg-opacity-0!",r.blur?"backdrop-blur-sm":"",r.position]])},[Qe(r.$slots,"default")],2))}}),j0e={class:"h7.5 w-full $ui-fbc"},U0e={class:"text-4.5"},G0e={class:"content transition-all transition-duration-300"},W0e={class:"footer h8 w-full transition-all transition-duration-300 delay-250"},Z0e={class:"$ui-fcc"},eG=ce({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},title:{default:"Dialog"},width:{default:"32rem"},height:{default:"18rem"},closable:{type:Boolean,default:!0},mountTo:{default:"body"},dim:{type:Boolean},blur:{type:Boolean},position:{}},emits:["close","update:modelValue"],setup(t,{emit:r}){const e=t,n=za(e,"modelValue",r,{passive:!0}),i=mge(()=>window.document.documentElement);gn(()=>{n.value?i.value=!0:i.value=!1});function o(){n.value&&e.autoClose&&(n.value=!1)}oU("Escape",()=>{o()});const a=G(!1);return Ii(()=>a.value=!0),(s,l)=>a.value||s.mountTo==="body"?(z(),ne(zB,{key:0,to:s.mountTo},[D(yb,{"enter-from-class":"opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0","enter-to-class":"opacity-100 [&_.modal]:scale-100","leave-from-class":"opacity-100 [&_.modal]:scale-100","leave-to-class":"opacity-0 [&_.modal]:scale-95"},{default:W(()=>[y(n)?(z(),ne(cw,{key:0,dim:s.dim,blur:s.blur,position:s.position},{default:W(()=>[w("div",{class:"modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",style:kr({width:e.width,height:e.height})},[w("div",j0e,[w("div",U0e,[Qe(s.$slots,"title",{},()=>[Se(ze(e.title),1)])]),s.closable?(z(),H("div",{key:0,class:"h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",onClick:o},l[0]||(l[0]=[w("div",{class:"i-carbon-close"},null,-1)]))):oe("",!0)]),w("div",G0e,[Qe(s.$slots,"default")]),w("div",W0e,[Qe(s.$slots,"footer",{},()=>[Qe(s.$slots,"footer",{},()=>[w("div",Z0e,[D(ct,{type:"primary",onClick:o},{default:W(()=>l[1]||(l[1]=[Se(" close ")])),_:1})])])])])],4)]),_:3},8,["dim","blur","position"])):oe("",!0)]),_:3})],8,["to"])):oe("",!0)}}),K0e={class:"$ui-fec gap2.5"},Y0e=ce({__name:"Confirm",props:{modelValue:{type:Boolean},content:{},cancelText:{default:"Cancel"},confirmText:{default:"Confirm"},width:{default:"20%"},height:{default:"9rem"},title:{default:"Warning"},loading:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0}},emits:["update:modelValue","confirm","cancel","close"],setup(t,{emit:r}){const e=t,n=r,i=za(e,"modelValue",n);gn(()=>{i.value||n("close")});function o(a=!1){(e.autoClose||a)&&(i.value=!1)}return(a,s)=>(z(),ne(eG,{modelValue:y(i),"onUpdate:modelValue":s[2]||(s[2]=l=>qe(i)?i.value=l:null),width:a.width,height:a.height,title:a.title,closable:!1},{footer:W(()=>[w("div",K0e,[D(ct,{onClick:s[0]||(s[0]=()=>{n("cancel"),o(!0)})},{default:W(()=>[Se(ze(a.cancelText),1)]),_:1}),D(ct,{loading:a.loading,type:"primary",onClick:s[1]||(s[1]=()=>{n("confirm"),o()})},{default:W(()=>[Se(ze(a.confirmText),1)]),_:1},8,["loading"])])]),default:W(()=>[Qe(a.$slots,"default",{class:"h-auto w-auto"},()=>[Se(ze(a.content),1)])]),_:3},8,["modelValue","width","height","title"]))}}),X0e=ce({__name:"Notification",props:{message:{},type:{default:"info"},classes:{},duration:{default:3e3},placement:{default:"top-center"},onClose:{}},setup(t){const r=t,e={success:"i-carbon-checkmark",info:"i-material-symbols-light-info",warning:"i-carbon-warning",error:"i-carbon-close"},n={success:"text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",info:"text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",warning:"text-amber-4 border-amber-2 dark:border-amber-4",error:"text-red-4 border-red-2 dark:border-red-4"},i=G(!1);Ii(()=>{i.value=!0,setTimeout(()=>{i.value=!1},r.duration)});const o=F(()=>r.placement.startsWith("top")?"translate-y--300%":"translate-y-300%");return(a,s)=>(z(),H("div",{class:Te(["fixed left-0 right-0 $ui-z-max-override text-center",[{"top-0":a.placement.startsWith("top")},{"bottom-0":a.placement.startsWith("bottom")}]])},[D(yb,{"enter-from-class":o.value,"leave-to-class":o.value,onAfterLeave:s[0]||(s[0]=()=>{var l;i.value||(l=a.onClose)==null||l.call(a)})},{default:W(()=>[i.value?(z(),H("div",{key:0,class:"flex transition-all duration-300",style:kr({justifyContent:a.placement.includes("right")?"right":a.placement.includes("left")?"left":"center"})},[w("div",{class:Te(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base",[a.classes,n[a.type]]])},[w("div",{class:Te(e[a.type])},null,2),w("div",null,ze(a.message),1)],2)],4)):oe("",!0)]),_:1},8,["enter-from-class","leave-to-class"])],2))}});function w8(t){const r=document.createElement("div");r.classList.add("$ui-z-max-override","fixed"),document.body.appendChild(r);const e=t.onClose;function n(){rz(null,r)}t.onClose=()=>{n(),e?.(),document.body.removeChild(r)};const i=fc(X0e,t);rz(i,r)}const q0e="__vue-devtools-theme__";function mf(t={}){const r=dge({...t,storageKey:q0e});return{colorMode:r,isDark:F(()=>r.value==="dark")}}const Q0e={class:"$ui-dark-toggle-vtr"},tG=ce({__name:"DarkToggle",props:{isDark:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},animationDuration:{default:400}},setup(t){const r=t,e=za(r,"isDark"),{colorMode:n}=mf({initialValue:e.value?"dark":"light",onChanged:s=>{e.value=s==="dark"}}),i=F({get:()=>n.value==="dark",set:s=>n.value=s?"dark":"light"}),o=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function a(s){if(!o||!s||!r.animation){i.value=!i.value;return}const l=s.clientX,c=s.clientY,u=Math.hypot(Math.max(l,innerWidth-l),Math.max(c,innerHeight-c));document.startViewTransition(async()=>{i.value=!i.value,await dn()}).ready.then(()=>{const g=[`circle(0px at ${l}px ${c}px)`,`circle(${u}px at ${l}px ${c}px)`];document.documentElement.animate({clipPath:i.value?[...g].reverse():g},{duration:r.animationDuration,easing:"ease-in",pseudoElement:i.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(s,l)=>(z(),H("span",Q0e,[Qe(s.$slots,"default",tb(JA({mode:y(n),isDark:i.value,toggle:a})))]))}}),rG=ce({__name:"Drawer",props:{modelValue:{type:Boolean},mountTo:{default:"body"},placement:{default:"right"},closeOutside:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},contentClass:{},permanent:{type:Boolean,default:!1},contentBlur:{type:Boolean,default:!1},top:{},dim:{type:Boolean},blur:{type:Boolean},position:{}},emits:["update:modelValue","close"],setup(t,{emit:r}){const e=t,n=r,{height:i}=uU(()=>typeof e.top=="string"?document.querySelector(e.top):e.top,void 0,{box:"border-box"}),o=za(e,"modelValue",n),a={left:{class:"left-0 h-full b-r",transition:"[&_.drawer]:translate-x--100%"},right:{class:"right-0 h-full b-l",transition:"[&_.drawer]:translate-x-full"},top:{class:"w-full b-b",transition:"[&_.drawer]:translate-y--100%"},bottom:{class:"bottom-0 w-full b-t",transition:"[&_.drawer]:translate-y-100%"}};oU("Escape",()=>{e.closable&&(o.value=!1)});const s=F(()=>a[e.placement]),l=G(!1);return Ii(()=>l.value=!0),(c,u)=>l.value||c.mountTo==="body"?(z(),ne(zB,{key:0,to:c.mountTo},[D(yb,{"enter-from-class":`${s.value.transition}`,"leave-to-class":`${s.value.transition}`},{default:W(()=>[y(o)?(z(),ne(cw,{key:0,class:Te({"pointer-events-none":c.permanent}),dim:c.dim,blur:c.blur,position:c.position,onClick:u[2]||(u[2]=g=>c.closeOutside&&c.closable&&(o.value=!1))},{default:W(()=>[w("div",{class:Te([[s.value.class,c.contentClass??"",c.contentBlur?"$ui-glass-effect":"$ui-bg-base"],"drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),style:kr({top:c.placement==="bottom"?"auto":`${y(i)}px`,height:["top","bottom"].includes(c.placement)?"auto":`calc(100% - ${y(i)}px)`}),onClick:u[1]||(u[1]=Wn(()=>{},["stop"]))},[c.closable?(z(),H("div",{key:0,class:"i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",onClick:u[0]||(u[0]=g=>o.value=!1)})):oe("",!0),Qe(c.$slots,"default")],6)]),_:3},8,["class","dim","blur","position"])):oe("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],8,["to"])):oe("",!0)}}),J0e={class:"overflow-hidden rounded-lg shadow-lg"},Cu=ce({__name:"Dropdown",props:{label:{},buttonProps:{default:()=>({})},buttonClass:{default:""},trigger:{default:"click"},distance:{default:0},skidding:{},placement:{},disabled:{type:Boolean,default:!1},shown:{type:Boolean}},emits:["update:visible"],setup(t){const r=t;return Di("$ui-dropdown-disabled",F(()=>r.disabled)),(e,n)=>(z(),ne(y(Vue),{disabled:e.disabled,class:"inline-block w-auto",shown:e.shown,triggers:[e.trigger],distance:e.distance+6,placement:e.placement,skidding:e.skidding,"onUpdate:shown":n[0]||(n[0]=i=>e.$emit("update:visible",i)),onClick:n[1]||(n[1]=i=>{i.stopPropagation()})},{popper:W(({hide:i})=>[w("div",J0e,[Qe(e.$slots,"popper",tb(JA({hide:i})),()=>[n[2]||(n[2]=w("div",{class:"p2 opacity-40"}," Empty... ",-1))])])]),default:W(()=>[Qe(e.$slots,"default",{},()=>[D(ct,Xr({...e.buttonProps,disabled:e.disabled},{class:e.buttonClass}),PB({icon:W(()=>[Qe(e.$slots,"button-icon")]),"icon-right":W(()=>[Qe(e.$slots,"button-icon-right")]),_:2},[e.label?{name:"default",fn:W(()=>[Se(ze(e.label),1)]),key:"0"}:void 0]),1040,["class"])])]),_:3},8,["disabled","shown","triggers","distance","placement","skidding"]))}}),VS=ce({__name:"DropdownButton",props:{type:{},round:{type:[String,Boolean]},loading:{type:Boolean},disabled:{type:Boolean},size:{},flat:{type:Boolean},outlined:{type:Boolean},keepOpen:{type:Boolean,default:!1}},setup(t){const r=t,e=br("$ui-dropdown-disabled",void 0);return(n,i)=>$t((z(),ne(ct,Xr({...r,round:!1},{disabled:y(e),class:"w-full justify-start transition-colors not-action:bg-transparent!"}),{icon:W(()=>[Qe(n.$slots,"icon")]),default:W(()=>[Qe(n.$slots,"default")]),_:3},16,["disabled"])),[[y(Xj)]])}}),Ut=ce({__name:"Icon",props:{icon:{},inline:{type:Boolean},action:{type:Boolean,default:!1}},setup(t){return(r,e)=>(z(),ne(y1(r.inline?"span":"div"),{class:Te(["$ui-base",[r.icon,r.action?"cursor-pointer hover:op50":""]])},null,8,["class"]))}}),eCe=["type","placeholder","disabled"],tCe={key:3,class:"pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"},Dp="transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500",as=ce({__name:"Input",props:{modelValue:{},placeholder:{default:""},variant:{default:"normal"},disabled:{type:Boolean,default:!1},leftIcon:{},rightIcon:{},loading:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},loadingDebounceTime:{default:0},readonly:{type:Boolean,default:!1},type:{default:"text"}},emits:["update:modelValue","updateFocused","keyTab"],setup(t,{emit:r}){const e=t,n=r,i=za(e,"modelValue",n),o=Kue(F(()=>e.loading),e.loadingDebounceTime),a=Yue(!1,{onChanged(g){n("updateFocused",g)}}),s=F(()=>e.variant==="flat"||e.variant==="warning"||e.disabled||e.readonly),l=F(()=>e.disabled||o.value),c=G();let u=!1;return gn(()=>{o.value&&a.value?u=!0:!o.value&&u&&(u=!1,dn(()=>{a.value=!0}))}),Ii(()=>{e.autoFocus&&(a.value=!0)}),gn(()=>{var g;a.value&&((g=c.value)==null||g.focus())}),(g,h)=>(z(),H("div",{class:Te(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100",[{"border-none bg-transparent group":g.variant==="flat","cursor-not-allowed opacity-50":l.value,accent:g.variant==="accent",focused:y(a)},[g.variant==="warning"?"border-warning-500 dark:border-warning-300":"border-primary-100 dark:border-gray-700"]]]),onClick:h[2]||(h[2]=()=>{a.value=!0})},[g.leftIcon?(z(),H("div",{key:0,class:Te(Dp)},[D(Ut,{icon:g.leftIcon},null,8,["icon"])])):oe("",!0),$t(w("input",{ref_key:"inputRef",ref:c,"onUpdate:modelValue":h[0]||(h[0]=d=>qe(i)?i.value=d:null),class:"$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",type:g.type,placeholder:g.placeholder,disabled:l.value||g.readonly,onBlur:h[1]||(h[1]=d=>a.value=!1)},null,40,eCe),[[Zae,y(i)]]),y(o)?(z(),H("div",{key:1,class:Te(Dp)},[D(JU)])):g.rightIcon?(z(),H("div",{key:2,class:Te(Dp)},[D(Ut,{icon:g.rightIcon},null,8,["icon"])])):oe("",!0),s.value?oe("",!0):(z(),H("div",tCe))],2))}}),rCe=["innerHTML"],Md=ce({__name:"IcIcon",props:{name:{}},setup(t){const r=t,e=F(()=>E0e[r.name]??"");return(n,i)=>(z(),H("div",null,[(z(),H("svg",{class:"custom-svg h-1em w-1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",innerHTML:e.value},null,8,rCe))]))}}),nCe={class:"m1 min-w-35 w-auto flex flex-col"},iCe=["onClick"],zd=ce({__name:"Select",props:{modelValue:{},multiple:{default:!1},options:{},placeholder:{default:"Select..."},autoClose:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},labelRenderer:{type:Function,default:t=>String(t)},buttonProps:{default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=DB(),o=F({get:()=>e.modelValue,set:l=>n("update:modelValue",l)}),a=F(()=>{const l=e.options.find(c=>c.value===o.value);return l!=null&&l.label?e.labelRenderer(l.label):e.placeholder});function s(l){e.multiple?o.value=o.value.includes(l.value)?o.value.filter(c=>c!==l.value):[...o.value,l.value]:o.value=l.value}return(l,c)=>(z(),ne(Cu,Xr({label:a.value},{buttonProps:l.buttonProps,disabled:l.disabled}),PB({popper:W(()=>[w("div",nCe,[y(i).item?(z(!0),H(Ee,{key:0},At(l.options,u=>(z(),H("div",{key:u.value,class:"cursor-pointer",onClick:g=>s(u)},[Qe(l.$slots,"item",Xr({ref_for:!0},{item:u,active:l.multiple?o.value.includes(u.value):u.value===o.value,disabled:l.disabled}))],8,iCe))),128)):(z(!0),H(Ee,{key:1},At(l.options,u=>$t((z(),ne(ct,{key:u.value,disabled:l.disabled,round:"normal",class:Te(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!",{active:l.multiple?o.value.includes(u.value):u.value===o.value}]),onClick:g=>s(u)},{default:W(()=>[Se(ze(u.label),1)]),_:2},1032,["disabled","class","onClick"])),[[y(Xj),l.autoClose]])),128))])]),"button-icon-right":W(()=>[c[0]||(c[0]=w("div",{class:"i-mdi-chevron-down"},null,-1))]),_:2},[y(i).button?{name:"default",fn:W(()=>[Qe(l.$slots,"button")]),key:"0"}:void 0]),1040,["label"]))}}),$8=ce({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:r}){const e=za(t,"modelValue",r),n=Fb(e);return(i,o)=>(z(),H("div",{class:Te([[i.disabled?"cursor-not-allowed":"cursor-pointer"],"$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),role:"checkbox",onClick:o[0]||(o[0]=a=>!i.disabled&&y(n)())},[Qe(i.$slots,"default"),w("div",{class:Te([{selected:y(e)},"group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])},[w("div",{class:Te(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white",[{"group-hover:opacity-75 group-active:scale-85":!i.disabled},{"opacity-65":i.disabled}]])},null,2)],2)],2))}}),oCe=ce({__name:"Tooltip",props:{trigger:{},distance:{},skidding:{},placement:{},disabled:{type:Boolean},shown:{type:Boolean}},setup(t){return(r,e)=>(z(),ne(y(Pue),Xr({disabled:r.disabled,placement:r.placement},r.$attrs),{popper:W(()=>[Qe(r.$slots,"popper")]),default:W(()=>[Qe(r.$slots,"default")]),_:3},16,["disabled","placement"]))}}),aCe="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20id='svg2'%20version='1.1'%20inkscape:version='0.91%20r13725'%20xml:space='preserve'%20width='375'%20height='375'%20viewBox='0%200%20375%20375'%20sodipodi:docname='vue-logo.svg'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata8'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs6'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1017'%20id='namedview4'%20showgrid='false'%20inkscape:zoom='0.62933333'%20inkscape:cx='187.5'%20inkscape:cy='187.5'%20inkscape:window-x='0'%20inkscape:window-y='30'%20inkscape:window-maximized='1'%20inkscape:current-layer='g10'%20/%3e%3cg%20id='g10'%20inkscape:groupmode='layer'%20inkscape:label='logo'%20transform='matrix(1.25,0,0,-1.25,0,375)'%3e%3cg%20id='g12'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-120.829,0%20-22.669,-170.017%2075.491,0%200,0%20Z'%20style='fill:%2341b883;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path14'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3cg%20id='g16'%20transform='translate(178.0626,235.0086)'%3e%3cpath%20d='M%200,0%20-22.669,-39.264%20-45.338,0%20-81.565,0%20-22.669,-102.01%2036.227,0%200,0%20Z'%20style='fill:%2334495e;fill-opacity:1;fill-rule:nonzero;stroke:none'%20id='path18'%20inkscape:connector-curvature='0'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",sCe={class:"h-screen w-screen $ui-fcc flex-col"},lCe={class:"outer"},cCe={class:"inner"},uCe=["src"],gCe=ce({__name:"AppConnecting",setup(t){return(r,e)=>(z(),H("div",sCe,[w("div",lCe,[w("div",cCe,[w("img",{src:y(aCe),class:"max-w-18",alt:"Vue logo"},null,8,uCe)])]),Qe(r.$slots,"default",{},void 0,!0)]))}}),fI=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},hCe=fI(gCe,[["__scopeId","data-v-56eba732"]]);function CI(){const{copy:t,copied:r}=sU();return{copy:(n,i={})=>{const{silent:o=!1,type:a=""}=i;t(n).then(()=>{o||w8({message:"Copied to clipboard",type:"success",duration:3e3})}).catch(()=>{o||w8({message:"Failed to copy to clipboard",type:"error",duration:3e3})})},copied:r}}const dCe={key:0,relative:"","code-block":""},fCe={flex:"~ wrap","w-full":""},CCe=["onClick"],vCe={flex:"~ gap-2",px3:"",pb3:""},ACe=ce({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(t){const r=t,e=Bi(r.codeSnippets[0]),{copy:n}=CI(),i=F(()=>e.value?.lang||"text");return gn(()=>{r.codeSnippets.includes(e.value)||(e.value=r.codeSnippets[0])}),(o,a)=>o.codeSnippets.length?(z(),H("div",dCe,[w("div",fCe,[(z(!0),H(Ee,null,At(o.codeSnippets,(s,l)=>(z(),H("button",{key:l,px4:"",py2:"",border:"r base",hover:"bg-active",class:Te(s===y(e)?"":"border-b"),onClick:c=>e.value=s},[w("div",{class:Te(s===y(e)?"":"op30"),"font-mono":""},ze(s.name),3)],10,CCe))),128)),a[1]||(a[1]=w("div",{border:"b base","flex-auto":""},null,-1))]),y(e)?(z(),H(Ee,{key:0},[D(y(lw),{code:y(e).code,lang:y(i),lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),w("div",vCe,[D(y(ct),{onClick:a[0]||(a[0]=s=>y(n)(y(e).code,{silent:!1,type:o.eventType||`code-snippet-${y(e).name}`}))},{icon:W(()=>[Qe(o.$slots,"i-carbon-copy")]),default:W(()=>[a[2]||(a[2]=Se(" Copy "))]),_:3}),y(e)?.docs?(z(),ne(y(ct),{key:0,to:y(e).docs,target:"_blank"},{icon:W(()=>[Qe(o.$slots,"i-carbon-catalog")]),default:W(()=>[a[3]||(a[3]=Se(" Docs "))]),_:3},8,["to"])):oe("",!0)])],64)):oe("",!0)])):oe("",!0)}}),ICe=["title"],pCe=ce({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean}},setup(t){const r=t,e=F(()=>({path:r.filepath})),{copy:n}=CI();return(i,o)=>$t((z(),H("button",{"font-mono":"","hover:underline":"",class:Te(i.lineBreak?"":"ws-nowrap of-hidden truncate"),title:i.filepath,onClick:o[0]||(o[0]=a=>y(n)(i.filepath))},[Se(ze(y(e).path),1)],10,ICe)),[[y(sr),"Copy file path"]])}}),PS=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function mCe(t,r){r?r={...PS,...r}:r=PS;const e=nG(r);return e.dispatch(t),e.toString()}const yCe=Object.freeze(["prototype","__proto__","constructor"]);function nG(t){let r="",e=new Map;const n=i=>{r+=i};return{toString(){return r},getContext(){return e},dispatch(i){return t.replacer&&(i=t.replacer(i)),this[i===null?"null":typeof i](i)},object(i){if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());const o=Object.prototype.toString.call(i);let a="";const s=o.length;s<10?a="unknown:["+o+"]":a=o.slice(8,s-1),a=a.toLowerCase();let l=null;if((l=e.get(i))===void 0)e.set(i,e.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(i))return n("buffer:"),n(i.toString("utf8"));if(a!=="object"&&a!=="function"&&a!=="asyncfunction")this[a]?this[a](i):t.ignoreUnknown||this.unkown(i,a);else{let c=Object.keys(i);t.unorderedObjects&&(c=c.sort());let u=[];t.respectType!==!1&&!RS(i)&&(u=yCe),t.excludeKeys&&(c=c.filter(h=>!t.excludeKeys(h)),u=u.filter(h=>!t.excludeKeys(h))),n("object:"+(c.length+u.length)+":");const g=h=>{this.dispatch(h),n(":"),t.excludeValues||this.dispatch(i[h]),n(",")};for(const h of c)g(h);for(const h of u)g(h)}},array(i,o){if(o=o===void 0?t.unorderedArrays!==!1:o,n("array:"+i.length+":"),!o||i.length<=1){for(const l of i)this.dispatch(l);return}const a=new Map,s=i.map(l=>{const c=nG(t);c.dispatch(l);for(const[u,g]of c.getContext())a.set(u,g);return c.toString()});return e=a,s.sort(),this.array(s,!1)},date(i){return n("date:"+i.toJSON())},symbol(i){return n("symbol:"+i.toString())},unkown(i,o){if(n(o),!!i&&(n(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error(i){return n("error:"+i.toString())},boolean(i){return n("bool:"+i)},string(i){n("string:"+i.length+":"),n(i)},function(i){n("fn:"),RS(i)?this.dispatch("[native]"):this.dispatch(i.toString()),t.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),t.respectFunctionProperties&&this.object(i)},number(i){return n("number:"+i)},xml(i){return n("xml:"+i.toString())},null(){return n("Null")},undefined(){return n("Undefined")},regexp(i){return n("regex:"+i.toString())},uint8array(i){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray(i){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array(i){return n("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array(i){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array(i){return n("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array(i){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array(i){return n("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array(i){return n("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array(i){return n("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer(i){return n("arraybuffer:"),this.dispatch(new Uint8Array(i))},url(i){return n("url:"+i.toString())},map(i){n("map:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},set(i){n("set:");const o=[...i];return this.array(o,t.unorderedSets!==!1)},file(i){return n("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob(){if(t.ignoreUnknown)return n("[blob]");throw new Error(`Hashing Blob objects is currently not supported Use "options.replacer" or "options.ignoreUnknown" `)},domwindow(){return n("domwindow")},bigint(i){return n("bigint:"+i.toString())},process(){return n("process")},timer(){return n("timer")},pipe(){return n("pipe")},tcp(){return n("tcp")},udp(){return n("udp")},tty(){return n("tty")},statwatcher(){return n("statwatcher")},securecontext(){return n("securecontext")},connection(){return n("connection")},zlib(){return n("zlib")},context(){return n("context")},nodescript(){return n("nodescript")},httpparser(){return n("httpparser")},dataview(){return n("dataview")},signal(){return n("signal")},fsevent(){return n("fsevent")},tlswrap(){return n("tlswrap")}}}const iG="[native code] }",bCe=iG.length;function RS(t){return typeof t!="function"?!1:Function.prototype.toString.call(t).slice(-bCe)===iG}var wCe=Object.defineProperty,$Ce=(t,r,e)=>r in t?wCe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,p2=(t,r,e)=>($Ce(t,typeof r!="symbol"?r+"":r,e),e);class s1{constructor(r,e){p2(this,"words"),p2(this,"sigBytes"),r=this.words=r||[],this.sigBytes=e===void 0?r.length*4:e}toString(r){return(r||_Ce).stringify(this)}concat(r){if(this.clamp(),this.sigBytes%4)for(let e=0;e>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=n<<24-(this.sigBytes+e)%4*8}else for(let e=0;e>>2]=r.words[e>>>2];return this.sigBytes+=r.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new s1([...this.words])}}const _Ce={stringify(t){const r=[];for(let e=0;e>>2]>>>24-e%4*8&255;r.push((n>>>4).toString(16),(n&15).toString(16))}return r.join("")}},MCe={stringify(t){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=[];for(let n=0;n>>2]>>>24-n%4*8&255,o=t.words[n+1>>>2]>>>24-(n+1)%4*8&255,a=t.words[n+2>>>2]>>>24-(n+2)%4*8&255,s=i<<16|o<<8|a;for(let l=0;l<4&&n*8+l*6>>6*(3-l)&63))}return e.join("")}},zCe={parse(t){const r=t.length,e=[];for(let n=0;n>>2]|=(t.charCodeAt(n)&255)<<24-n%4*8;return new s1(e,r)}},ECe={parse(t){return zCe.parse(unescape(encodeURIComponent(t)))}};class SCe{constructor(){p2(this,"_data",new s1),p2(this,"_nDataBytes",0),p2(this,"_minBufferSize",0),p2(this,"blockSize",512/32)}reset(){this._data=new s1,this._nDataBytes=0}_append(r){typeof r=="string"&&(r=ECe.parse(r)),this._data.concat(r),this._nDataBytes+=r.sigBytes}_doProcessBlock(r,e){}_process(r){let e,n=this._data.sigBytes/(this.blockSize*4);r?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const i=n*this.blockSize,o=Math.min(i*4,this._data.sigBytes);if(i){for(let a=0;ar in t?LCe(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,OCe=(t,r,e)=>(kCe(t,r+"",e),e);const DS=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],xCe=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],gl=[];class HCe extends TCe{constructor(){super(...arguments),OCe(this,"_hash",new s1([...DS]))}reset(){super.reset(),this._hash=new s1([...DS])}_doProcessBlock(r,e){const n=this._hash.words;let i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],g=n[7];for(let h=0;h<64;h++){if(h<16)gl[h]=r[e+h]|0;else{const p=gl[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,b=gl[h-2],_=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;gl[h]=m+gl[h-7]+_+gl[h-16]}const d=l&c^~l&u,f=i&o^i&a^o&a,C=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),v=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),A=g+v+d+xCe[h]+gl[h],I=C+f;g=u,u=c,c=l,l=s+A|0,s=a,a=o,o=i,i=A+I|0}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+g|0}finalize(r){super.finalize(r);const e=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(n+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function VCe(t){return new HCe().finalize(t).toString(MCe)}function PCe(t,r={}){const e=typeof t=="string"?t:mCe(t,r);return VCe(e).slice(0,10)}const RCe=ce({__name:"AssetFontPreview",props:{asset:{}},setup(t){const r=t,e=F(()=>`devtools-assets-${PCe(r.asset)}`);return bge(F(()=>` @font-face { font-family: '${e.value}'; src: url('${r.asset.publicPath}'); } `)),(n,i)=>(z(),H("div",{"of-hidden":"",style:kr({fontFamily:`'${y(e)}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),DCe={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},NCe=["src"],BCe={key:2,"i-carbon-document":"","text-3xl":"",op20:""},FCe={key:3,"w-full":"","self-start":"",p4:""},jCe=["textContent"],UCe={key:4},GCe=["src","autoplay","controls"],WCe={key:5},ZCe={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},KCe=["src"],YCe={key:6,"i-vscode-icons-file-type-wasm":"","text-3xl":""},XCe={key:7,"i-carbon-help":"","text-3xl":"",op20:""},oG=ce({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(t){return(r,e)=>{const n=RCe;return z(),H("div",DCe,[r.asset.type==="image"?(z(),H("img",{key:0,src:r.asset.publicPath},null,8,NCe)):r.asset.type==="font"?(z(),ne(n,{key:r.asset.publicPath,asset:r.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):r.asset.type==="text"&&!r.textContent?(z(),H("div",BCe)):r.asset.type==="text"&&r.textContent?(z(),H("div",FCe,[w("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:ze(r.textContent)},null,8,jCe)])):r.asset.type==="video"?(z(),H("div",UCe,[w("video",{src:r.asset.publicPath,autoplay:r.detail,controls:r.detail},null,8,GCe)])):r.asset.type==="audio"?(z(),H("div",WCe,[r.detail?(z(),H("audio",{key:1,src:r.asset.publicPath,controls:""},null,8,KCe)):(z(),H("div",ZCe))])):r.asset.type==="wasm"?(z(),H("div",YCe)):(z(),H("div",XCe))])}}}),qCe={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},QCe={flex:"~","items-center":"","justify-center":""},JCe={"max-w-full":"","w-full":"","table-fixed":""},e5e={flex:"~ gap-1","w-full":"","items-center":""},t5e={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},r5e={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},n5e={capitalize:""},i5e={key:0},o5e={op70:""},a5e={flex:"~ gap2 wrap"},s5e=ce({__name:"AssetDetails",props:{modelValue:{}},setup(t,{emit:r}){const e=t,n=r,i=uo(),o=za(e,"modelValue",n,{passive:!0}),a=F(()=>i.vitePluginDetected.value),s=$p(()=>Mo.value.getAssetImporters(o.value.publicPath).then(p=>p),[]),l=F(()=>iI.value),c=$p(()=>{if(o.value.type==="image")return Mo.value.getImageMeta(o.value.filePath).then(p=>p)}),u=G(),g=G(0),h=$p(async()=>{if(o.value.type!=="text")return;g.value;const p=await Mo.value.getTextAssetContent(o.value.filePath).then(m=>m);return u.value=p,p}),d=F(()=>{const p=[];if(o.value.type==="image"){const m=c.value?.width?` width="${c.value.width}" height="${c.value.height}" `:" ";return p.push({lang:"vue-html",code:``,name:"Plain Image"}),p}return p.push({lang:"html",code:` Download ${o.value.path.split("/").slice(-1)[0]} `,name:"Download link"}),p}),{copy:f}=CI(),C=Mge(()=>o.value.mtime),v=F(()=>{const p=o.value.size;return p<1024?`${p} B`:p<1024*1024?`${(p/1024).toFixed(2)} KB`:`${(p/1024/1024).toFixed(2)} MB`}),A=F(()=>{if(!c.value?.width||!c.value?.height)return"";const p=(b,_)=>_?p(_,b%_):b,m=p(c.value.width,c.value.height);return m>3?`${c.value.width/m}:${c.value.height/m}`:""}),I=F(()=>["image","text","video","audio","font"].includes(o.value.type));return(p,m)=>{const b=oG,_=pCe,L=Vo("RouterLink"),M=ACe;return z(),H("div",qCe,[y(I)?(z(),H(Ee,{key:0},[m[2]||(m[2]=w("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[w("div",{"x-divider":""}),w("div",{"flex-none":""}," Preview "),w("div",{"x-divider":""})],-1)),w("div",QCe,[D(b,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:y(o),"text-content":y(h)},null,8,["asset","text-content"])])],64)):oe("",!0),m[12]||(m[12]=w("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[w("div",{"x-divider":""}),w("div",{"flex-none":""}," Details "),w("div",{"x-divider":""})],-1)),w("table",JCe,[w("tbody",null,[w("tr",null,[m[3]||(m[3]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1)),w("td",null,[w("div",e5e,[D(_,{filepath:y(o).filePath,"text-left":""},null,8,["filepath"]),y(a)&&y(l)?$t((z(),ne(y(Ut),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:m[0]||(m[0]=S=>y(fd)(y(o).filePath))},null,512)),[[y(sr),"Open in Editor"]]):oe("",!0)])])]),w("tr",null,[m[4]||(m[4]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1)),w("td",null,[w("div",t5e,[w("div",r5e,ze(y(o).publicPath),1),$t(D(y(Ut),{title:"Copy public path",icon:"i-carbon-copy",action:"",mr1:"","mt--2px":"","flex-none":"",border:!1,onClick:m[1]||(m[1]=S=>y(f)(y(o).publicPath,{type:"assets-public-path"}))},null,512),[[y(sr),"Copy public path"]]),D(L,{to:y(o).publicPath,target:"_blank"},{default:W(()=>[$t(D(y(Ut),{icon:"i-carbon-launch",action:"","flex-none":"",border:!1,title:"Open in Browser"},null,512),[[y(sr),"Open in Browser"]])]),_:1},8,["to"])])])]),w("tr",null,[m[5]||(m[5]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1)),w("td",n5e,ze(y(o).type),1)]),y(c)?.width?(z(),H(Ee,{key:0},[w("tr",null,[m[6]||(m[6]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1)),w("td",null,ze(y(c).width)+" x "+ze(y(c).height),1)]),y(A)?(z(),H("tr",i5e,[m[7]||(m[7]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1)),w("td",null,ze(y(A)),1)])):oe("",!0)],64)):oe("",!0),w("tr",null,[m[8]||(m[8]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1)),w("td",null,ze(y(v)),1)]),w("tr",null,[m[9]||(m[9]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1)),w("td",null,[Se(ze(new Date(y(o).mtime).toLocaleString())+" ",1),w("span",o5e,"("+ze(y(C))+")",1)])]),w("tr",null,[m[10]||(m[10]=w("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"","align-top":"",op50:""}," Importers ",-1)),w("td",null,[y(s).length>0?(z(!0),H(Ee,{key:0},At(y(s),S=>(z(),H("div",{key:S.url,flex:"~ gap-1","w-full":"","items-center":""},[D(_,{filepath:S.id||S.url,"text-left":""},null,8,["filepath"]),y(i).vitePluginDetected.value&&y(l)&&S.id?$t((z(),ne(y(Ut),{key:0,title:"Open in Editor",icon:"i-carbon-launch",action:"","flex-none":"",border:!1,onClick:T=>y(fd)(S.id)},null,8,["onClick"])),[[y(sr),"Open in Editor"]]):oe("",!0)]))),128)):(z(),H(Ee,{key:1},[Se(" None ")],64))])])])]),m[13]||(m[13]=w("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[w("div",{"x-divider":""}),w("div",{"flex-none":""}," Actions "),w("div",{"x-divider":""})],-1)),w("div",a5e,[D(y(ct),{to:y(o).publicPath,download:"",target:"_blank"},{icon:W(()=>[Qe(p.$slots,"i-carbon-download")]),default:W(()=>[m[11]||(m[11]=Se(" Download "))]),_:3},8,["to"])]),m[14]||(m[14]=w("div",{"flex-auto":""},null,-1)),y(d).length?(z(),ne(M,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":y(d)},null,8,["code-snippets"])):oe("",!0)])}}}),l5e=ce({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(t,{emit:r}){const e=t,i=za(e,"modelValue",r,{passive:!0}),o=F(()=>e.item?.children?.length),a=G(!0),s=F(()=>o.value?"i-carbon-folder":e.item.type==="image"?"i-carbon-image":e.item.type==="video"?"i-carbon-video":e.item.type==="audio"?"i-carbon-volume-up":e.item.type==="font"?"i-carbon-text-small-caps":e.item.type==="text"?"i-carbon-document":e.item.type==="json"?"i-carbon-json":e.item.type==="wasm"?"i-vscode-icons-file-type-wasm":"i-carbon-document-blank");return(l,c)=>{const u=Vo("AssetListItem",!0);return z(),H("div",null,[w("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:kr({paddingLeft:`calc(1rem + ${l.index*1.5}em)`}),class:Te({"bg-active":!y(o)&&y(i)?.filePath===l.item?.filePath}),border:"b base",onClick:c[0]||(c[0]=g=>y(o)?a.value=!y(a):i.value=l.item)},[w("div",{class:Te(y(s))},null,2),w("span",{class:Te({"flex items-center":y(o)}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},ze(l.item.path),3),y(o)?(z(),ne(y(Ut),{key:0,icon:"carbon:chevron-right","transform-rotate":y(a)?90:0,transition:""},null,8,["transform-rotate"])):oe("",!0)],6),y(a)?Qe(l.$slots,"default",{key:0},()=>[(z(!0),H(Ee,null,At(l.item?.children,g=>(z(),ne(u,{key:g.filepath,modelValue:y(i),"onUpdate:modelValue":c[1]||(c[1]=h=>qe(i)?i.value=h:null),item:g,index:l.index+1},null,8,["modelValue","item","index"]))),128))]):oe("",!0)])}}}),c5e={flex:"~ gap-3","items-center":""},uw=ce({__name:"IconTitle",props:{icon:{},text:{}},setup(t){return(r,e)=>(z(),H("div",c5e,[r.icon?(z(),H("div",{key:0,class:Te(r.icon)},null,2)):oe("",!0),Qe(r.$slots,"default",{},()=>[w("div",null,ze(r.text),1)])]))}}),u5e=["open"],g5e={"text-base":""},h5e={key:0,"text-sm":"",op50:""},d5e=ce({__name:"SectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const e=za(t,"open",void 0,{passive:!0});function n(i){e.value=i.target.open}return(i,o)=>{const a=uw,s=Cb("lazy-show");return z(),H(Ee,null,[w("details",{open:y(e),onToggle:n},[w("summary",{class:Te(["cursor-pointer select-none hover:bg-active p4",i.collapse?"":"pointer-events-none"])},[D(a,{icon:i.icon,text:i.text,"text-xl":"",transition:"",class:Te(y(e)?"op100":"op60")},{default:W(()=>[w("div",null,[w("div",g5e,[Qe(i.$slots,"text",{},()=>[Se(ze(i.text),1)],!0)]),i.description||i.$slots.description?(z(),H("div",h5e,[Qe(i.$slots,"description",{},()=>[Se(ze(i.description),1)],!0)])):oe("",!0)]),o[0]||(o[0]=w("div",{class:"flex-auto"},null,-1)),Qe(i.$slots,"actions",{},void 0,!0),i.collapse?(z(),ne(y(Ut),{key:0,icon:"i-carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"",op75:"",transition:"","duration-500":"","text-base":""})):oe("",!0)]),_:3},8,["icon","text","class"])],2),$t((z(),H("div",{class:Te(["flex flex-col flex-gap2 pb6 pt2",typeof i.padding=="string"?i.padding:i.padding?"px4":""])},[Qe(i.$slots,"details",{},void 0,!0),w("div",{class:Te([i.containerClass,"mt1"])},[Qe(i.$slots,"default",{},void 0,!0)],2),Qe(i.$slots,"footer",{},void 0,!0)],2)),[[s,y(e)]])],40,u5e),o[1]||(o[1]=w("div",{class:"x-divider"},null,-1))],64)}}}),aG=fI(d5e,[["__scopeId","data-v-785c4654"]]),f5e={flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},C5e={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},v5e=ce({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(t){const r=t,e=F(()=>r.folder&&r.asset.path.startsWith(r.folder)?r.asset.path.slice(r.folder.length):r.asset.path);return(n,i)=>{const o=oG;return z(),H("button",f5e,[D(o,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:n.asset},null,8,["asset"]),w("div",C5e,ze(y(e)),1)])}}}),A5e={flex:"~ col gap2",border:"b base","flex-1":"",p4:"","navbar-glass":""},I5e={flex:"~ gap4","items-center":""},p5e=ce({__name:"Navbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(t,{emit:r}){const e=t,n=r,i=G(e.search);return Je(()=>e.search,o=>{i.value=o}),Je(i,()=>{n("update:search",i.value)}),(o,a)=>(z(),H("div",A5e,[w("div",I5e,[Qe(o.$slots,"search",{},()=>[o.search!==void 0?(z(),ne(y(as),{key:0,modelValue:y(i),"onUpdate:modelValue":a[0]||(a[0]=s=>qe(i)?i.value=s:null),placeholder:"Search...","left-icon":"i-carbon-search",class:Te(["flex-auto",{"px-5 py-2":!o.noPadding}])},null,8,["modelValue","class"])):oe("",!0)]),Qe(o.$slots,"actions")]),Qe(o.$slots,"default")]))}});function ss(t){return Array.isArray?Array.isArray(t):cG(t)==="[object Array]"}const m5e=1/0;function y5e(t){if(typeof t=="string")return t;let r=t+"";return r=="0"&&1/t==-m5e?"-0":r}function b5e(t){return t==null?"":y5e(t)}function ia(t){return typeof t=="string"}function sG(t){return typeof t=="number"}function w5e(t){return t===!0||t===!1||$5e(t)&&cG(t)=="[object Boolean]"}function lG(t){return typeof t=="object"}function $5e(t){return lG(t)&&t!==null}function Hi(t){return t!=null}function Np(t){return!t.trim().length}function cG(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const _5e="Incorrect 'index' type",M5e=t=>`Invalid value for key ${t}`,z5e=t=>`Pattern length exceeds max of ${t}.`,E5e=t=>`Missing ${t} property in key`,S5e=t=>`Property 'weight' in key '${t}' must be a positive integer`,NS=Object.prototype.hasOwnProperty;class T5e{constructor(r){this._keys=[],this._keyMap={};let e=0;r.forEach(n=>{let i=uG(n);this._keys.push(i),this._keyMap[i.id]=i,e+=i.weight}),this._keys.forEach(n=>{n.weight/=e})}get(r){return this._keyMap[r]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function uG(t){let r=null,e=null,n=null,i=1,o=null;if(ia(t)||ss(t))n=t,r=BS(t),e=_8(t);else{if(!NS.call(t,"name"))throw new Error(E5e("name"));const a=t.name;if(n=a,NS.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(S5e(a));r=BS(a),e=_8(a),o=t.getFn}return{path:r,id:e,weight:i,src:n,getFn:o}}function BS(t){return ss(t)?t:t.split(".")}function _8(t){return ss(t)?t.join("."):t}function L5e(t,r){let e=[],n=!1;const i=(o,a,s)=>{if(Hi(o))if(!a[s])e.push(o);else{let l=a[s];const c=o[l];if(!Hi(c))return;if(s===a.length-1&&(ia(c)||sG(c)||w5e(c)))e.push(b5e(c));else if(ss(c)){n=!0;for(let u=0,g=c.length;ut.score===r.score?t.idx{this._keysMap[e.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ia(this.docs[0])?this.docs.forEach((r,e)=>{this._addString(r,e)}):this.docs.forEach((r,e)=>{this._addObject(r,e)}),this.norm.clear())}add(r){const e=this.size();ia(r)?this._addString(r,e):this._addObject(r,e)}removeAt(r){this.records.splice(r,1);for(let e=r,n=this.size();e{let a=i.getFn?i.getFn(r):this.getFn(r,i.path);if(Hi(a)){if(ss(a)){let s=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(Hi(u))if(ia(u)&&!Np(u)){let g={v:u,i:c,n:this.norm.get(u)};s.push(g)}else ss(u)&&u.forEach((g,h)=>{l.push({nestedArrIndex:h,value:g})})}n.$[o]=s}else if(ia(a)&&!Np(a)){let s={v:a,n:this.norm.get(a)};n.$[o]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function gG(t,r,{getFn:e=st.getFn,fieldNormWeight:n=st.fieldNormWeight}={}){const i=new gw({getFn:e,fieldNormWeight:n});return i.setKeys(t.map(uG)),i.setSources(r),i.create(),i}function R5e(t,{getFn:r=st.getFn,fieldNormWeight:e=st.fieldNormWeight}={}){const{keys:n,records:i}=t,o=new gw({getFn:r,fieldNormWeight:e});return o.setKeys(n),o.setIndexRecords(i),o}function uC(t,{errors:r=0,currentLocation:e=0,expectedLocation:n=0,distance:i=st.distance,ignoreLocation:o=st.ignoreLocation}={}){const a=r/t.length;if(o)return a;const s=Math.abs(n-e);return i?a+s/i:s?1:a}function D5e(t=[],r=st.minMatchCharLength){let e=[],n=-1,i=-1,o=0;for(let a=t.length;o=r&&e.push([n,i]),n=-1)}return t[o-1]&&o-n>=r&&e.push([n,o-1]),e}const ml=32;function N5e(t,r,e,{location:n=st.location,distance:i=st.distance,threshold:o=st.threshold,findAllMatches:a=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,includeMatches:l=st.includeMatches,ignoreLocation:c=st.ignoreLocation}={}){if(r.length>ml)throw new Error(z5e(ml));const u=r.length,g=t.length,h=Math.max(0,Math.min(n,g));let d=o,f=h;const C=s>1||l,v=C?Array(g):[];let A;for(;(A=t.indexOf(r,f))>-1;){let L=uC(r,{currentLocation:A,expectedLocation:h,distance:i,ignoreLocation:c});if(d=Math.min(L,d),f=A+u,C){let M=0;for(;M=T;B-=1){let te=B-1,ee=e[t.charAt(te)];if(C&&(v[te]=+!!ee),O[B]=(O[B+1]<<1|1)&ee,L&&(O[B]|=(I[B+1]|I[B])<<1|1|I[B+1]),O[B]&b&&(p=uC(r,{errors:L,currentLocation:te,expectedLocation:h,distance:i,ignoreLocation:c}),p<=d)){if(d=p,f=te,f<=h)break;T=Math.max(1,2*h-f)}}if(uC(r,{errors:L+1,currentLocation:h,expectedLocation:h,distance:i,ignoreLocation:c})>d)break;I=O}const _={isMatch:f>=0,score:Math.max(.001,p)};if(C){const L=D5e(v,s);L.length?l&&(_.indices=L):_.isMatch=!1}return _}function B5e(t){let r={};for(let e=0,n=t.length;e{this.chunks.push({pattern:h,alphabet:B5e(h),startIndex:d})},g=this.pattern.length;if(g>ml){let h=0;const d=g%ml,f=g-d;for(;h{const{isMatch:A,score:I,indices:p}=N5e(r,f,C,{location:i+v,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});A&&(h=!0),g+=I,A&&p&&(u=[...u,...p])});let d={isMatch:h,score:h?g/this.chunks.length:1};return h&&n&&(d.indices=u),d}}class P1{constructor(r){this.pattern=r}static isMultiMatch(r){return FS(r,this.multiRegex)}static isSingleMatch(r){return FS(r,this.singleRegex)}search(){}}function FS(t,r){const e=t.match(r);return e?e[1]:null}class F5e extends P1{constructor(r){super(r)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(r){const e=r===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class j5e extends P1{constructor(r){super(r)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(r){const n=r.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,r.length-1]}}}class U5e extends P1{constructor(r){super(r)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(r){const e=r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class G5e extends P1{constructor(r){super(r)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(r){const e=!r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class W5e extends P1{constructor(r){super(r)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(r){const e=r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[r.length-this.pattern.length,r.length-1]}}}class Z5e extends P1{constructor(r){super(r)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(r){const e=!r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}}class dG extends P1{constructor(r,{location:e=st.location,threshold:n=st.threshold,distance:i=st.distance,includeMatches:o=st.includeMatches,findAllMatches:a=st.findAllMatches,minMatchCharLength:s=st.minMatchCharLength,isCaseSensitive:l=st.isCaseSensitive,ignoreLocation:c=st.ignoreLocation}={}){super(r),this._bitapSearch=new hG(r,{location:e,threshold:n,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(r){return this._bitapSearch.searchIn(r)}}class fG extends P1{constructor(r){super(r)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(r){let e=0,n;const i=[],o=this.pattern.length;for(;(n=r.indexOf(this.pattern,e))>-1;)e=n+o,i.push([n,e-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}const M8=[F5e,fG,U5e,G5e,Z5e,W5e,j5e,dG],jS=M8.length,K5e=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Y5e="|";function X5e(t,r={}){return t.split(Y5e).map(e=>{let n=e.trim().split(K5e).filter(o=>o&&!!o.trim()),i=[];for(let o=0,a=n.length;o!!(t[Kv.AND]||t[Kv.OR]),eve=t=>!!t[S8.PATH],tve=t=>!ss(t)&&lG(t)&&!T8(t),US=t=>({[Kv.AND]:Object.keys(t).map(r=>({[r]:t[r]}))});function CG(t,r,{auto:e=!0}={}){const n=i=>{let o=Object.keys(i);const a=eve(i);if(!a&&o.length>1&&!T8(i))return n(US(i));if(tve(i)){const l=a?i[S8.PATH]:o[0],c=a?i[S8.PATTERN]:i[l];if(!ia(c))throw new Error(M5e(l));const u={keyId:_8(l),pattern:c};return e&&(u.searcher=E8(c,r)),u}let s={children:[],operator:o[0]};return o.forEach(l=>{const c=i[l];ss(c)&&c.forEach(u=>{s.children.push(n(u))})}),s};return T8(t)||(t=US(t)),n(t)}function rve(t,{ignoreFieldNorm:r=st.ignoreFieldNorm}){t.forEach(e=>{let n=1;e.matches.forEach(({key:i,norm:o,score:a})=>{const s=i?i.weight:null;n*=Math.pow(a===0&&s?Number.EPSILON:a,(s||1)*(r?1:o))}),e.score=n})}function nve(t,r){const e=t.matches;r.matches=[],Hi(e)&&e.forEach(n=>{if(!Hi(n.indices)||!n.indices.length)return;const{indices:i,value:o}=n;let a={indices:i,value:o};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),r.matches.push(a)})}function ive(t,r){r.score=t.score}function ove(t,r,{includeMatches:e=st.includeMatches,includeScore:n=st.includeScore}={}){const i=[];return e&&i.push(nve),n&&i.push(ive),t.map(o=>{const{idx:a}=o,s={item:r[a],refIndex:a};return i.length&&i.forEach(l=>{l(o,s)}),s})}class pc{constructor(r,e={},n){this.options={...st,...e},this.options.useExtendedSearch,this._keyStore=new T5e(this.options.keys),this.setCollection(r,n)}setCollection(r,e){if(this._docs=r,e&&!(e instanceof gw))throw new Error(_5e);this._myIndex=e||gG(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(r){Hi(r)&&(this._docs.push(r),this._myIndex.add(r))}remove(r=()=>!1){const e=[];for(let n=0,i=this._docs.length;n-1&&(l=l.slice(0,e)),ove(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(r){const e=E8(r,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:o,i:a,n:s})=>{if(!Hi(o))return;const{isMatch:l,score:c,indices:u}=e.searchIn(o);l&&i.push({item:o,idx:a,matches:[{score:c,value:o,norm:s,indices:u}]})}),i}_searchLogical(r){const e=CG(r,this.options),n=(s,l,c)=>{if(!s.children){const{keyId:g,searcher:h}=s,d=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(l,g),searcher:h});return d&&d.length?[{idx:c,item:l,matches:d}]:[]}const u=[];for(let g=0,h=s.children.length;g{if(Hi(s)){let c=n(e,s,l);c.length&&(o[l]||(o[l]={idx:l,item:s,matches:[]},a.push(o[l])),c.forEach(({matches:u})=>{o[l].matches.push(...u)}))}}),a}_searchObjectList(r){const e=E8(r,this.options),{keys:n,records:i}=this._myIndex,o=[];return i.forEach(({$:a,i:s})=>{if(!Hi(a))return;let l=[];n.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:a[u],searcher:e}))}),l.length&&o.push({idx:s,item:a,matches:l})}),o}_findMatches({key:r,value:e,searcher:n}){if(!Hi(e))return[];let i=[];if(ss(e))e.forEach(({v:o,i:a,n:s})=>{if(!Hi(o))return;const{isMatch:l,score:c,indices:u}=n.searchIn(o);l&&i.push({score:c,key:r,value:o,idx:a,norm:s,indices:u})});else{const{v:o,n:a}=e,{isMatch:s,score:l,indices:c}=n.searchIn(o);s&&i.push({score:l,key:r,value:o,norm:a,indices:c})}return i}}pc.version="7.0.0";pc.createIndex=gG;pc.parseIndex=R5e;pc.config=st;pc.parseQuery=CG;J5e(Q5e);const ave={block:"","h-full":"","of-hidden":"",class:"drawer-container relative"},sve={"h-full":"","w-full":"","of-auto":""},lve={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},cve={flex:"~ items-center justify-center",absolute:"","bottom-0":"","right-2px":"","h-4":"","w-4":"","rounded-full":"","bg-primary-800":"","text-8px":"","text-white":""},uve={"w-full":"",flex:"~ gap-2 items-center",rounded:"",px2:"",py2:""},gve={"text-xs":"",op75:""},hve={op50:""},dve={key:0},fve={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Cve={key:1,p2:"",grid:"~ cols-minmax-8rem"},vve={key:1},Ave=50,Ive=ce({__name:"assets",setup(t){const r=G(""),e=G(),n=G("grid"),i=G([]),o=F(()=>{const C=[];for(const v of i.value||[]){const A=v.path.split(".").pop();A&&!C.find(I=>I.value===A)&&C.push({label:A,value:A})}return C}),a=G([]);Jue(()=>o.value,C=>{a.value=C.map(v=>v.value)});const s=G(),l=F(()=>new pc(i.value||[],{keys:["path"]})),c=F(()=>(r.value?l.value.search(r.value).map(v=>v.item):i.value||[]).filter(v=>{const A=v.path.split(".").pop();return!A||a.value.includes(A)})),u=F(()=>{const C={};for(const v of c.value){const A=`${v.relativePath.split("/").slice(0,-1).join("/")}/`;C[A]||(C[A]=[]),C[A].push(v)}return Object.entries(C).sort(([v],[A])=>v.localeCompare(A))}),g=F(()=>{const C={path:"public",children:[]},v=(A,I,p)=>{const[m,...b]=I;let _=A.children.find(L=>L.path===m);_||(_={...p,path:m,children:[]},A.children.push(_)),b.length>1?v(_,b,p):b.length===1&&_.children.push({...p,path:b[0]})};return c.value.forEach(A=>{const I=A.relativePath.split("/").filter(p=>p!=="");v(C,I,A)}),C.children});function h(){Mo.value.getStaticAssets().then(C=>{i.value=C})}function d(){h()}hj(()=>{h(),Mo.functions.on("assetsUpdated",d)});function f(){n.value=n.value==="list"?"grid":"list"}return fn(()=>{Mo.functions.off("assetsUpdated",d)}),(C,v)=>{const A=uw,I=p5e,p=v5e,m=aG,b=l5e,_=s5e,L=Cb("tooltip");return z(),H("div",ave,[w("div",sve,[D(I,{ref_key:"navbar",ref:e,search:y(r),"onUpdate:search":v[1]||(v[1]=M=>qe(r)?r.value=M:null),pb2:"","no-padding":!0},{actions:W(()=>[w("div",lve,[D(y(zd),{modelValue:y(a),"onUpdate:modelValue":v[0]||(v[0]=M=>qe(a)?a.value=M:null),multiple:!0,options:y(o)},{button:W(()=>[$t((z(),ne(A,{icon:"i-carbon-filter hover:op50",border:!1,title:"Filter",relative:"","cursor-pointer":"",p2:"","text-lg":"",onClick:()=>{}},{default:W(()=>[w("span",cve,ze(y(a).length),1)]),_:1})),[[L,"Filter",void 0,{"bottom-end":!0}]])]),item:W(({item:M,active:S})=>[w("div",uve,[D(y(I2),{"model-value":S},null,8,["model-value"]),w("span",gve,ze(M.label),1)])]),_:1},8,["modelValue","options"]),$t(D(y(Ut),{border:!1,icon:y(n)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",action:"","cursor-pointer":"","text-lg":"",onClick:f},null,8,["icon"]),[[L,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:W(()=>[w("div",hve,[y(r)?(z(),H("span",dve,ze(y(c).length)+" matched · ",1)):oe("",!0),w("span",null,ze(y(i)?.length)+" assets in total",1)])]),_:1},8,["search"]),y(n)==="grid"?(z(),H(Ee,{key:0},[y(u).length>1?(z(!0),H(Ee,{key:0},At(y(u),([M,S])=>(z(),ne(m,{key:M,text:M,description:`${S.length} items`,open:S.length<=Ave,padding:!1},{default:W(()=>[w("div",fve,[(z(!0),H(Ee,null,At(S,T=>(z(),ne(p,{key:T.path,asset:T,folder:M,onClick:k=>s.value=T},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(z(),H("div",Cve,[(z(!0),H(Ee,null,At(y(c),M=>(z(),ne(p,{key:M.path,asset:M,onClick:S=>s.value=M},null,8,["asset","onClick"]))),128))]))],64)):(z(),H("div",vve,[(z(!0),H(Ee,null,At(y(g),(M,S)=>(z(),ne(b,{key:S,modelValue:y(s),"onUpdate:modelValue":v[2]||(v[2]=T=>qe(s)?s.value=T:null),item:M},null,8,["modelValue","item"]))),128))]))]),D(y(rG),{"model-value":!!y(s),top:y(e),permanent:"","mount-to":".drawer-container",position:"absolute","content-class":"w120 text-sm","onUpdate:modelValue":v[4]||(v[4]=M=>{M||(s.value=void 0)})},{default:W(()=>[y(s)?(z(),ne(_,{key:0,modelValue:y(s),"onUpdate:modelValue":v[3]||(v[3]=M=>qe(s)?s.value=M:null)},null,8,["modelValue"])):oe("",!0)]),_:1},8,["model-value","top"])])}}}),R1={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,r)=>(t[r.id]=r)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,r){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=r},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,r){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===r?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,r),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=r,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[r])},onSplitterDblClick(t,r){let e=0;this.panes=this.panes.map((n,i)=>(n.size=i===r?n.max:n.min,i!==r&&(e+=n.min),n)),this.panes[r].size-=e,this.$emit("pane-maximize",this.panes[r]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(t,r){this.$emit("pane-click",this.indexedPanes[r])},getCurrentMouseDrag(t){const r=this.container.getBoundingClientRect(),{clientX:e,clientY:n}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:e-r.left,y:n-r.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const r=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=r-t),t*100/r},calculatePanesSize(t){const r=this.touch.activeSplitter;let e={prevPanesSize:this.sumPrevPanesSize(r),nextPanesSize:this.sumNextPanesSize(r),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:e.prevPanesSize),i=100-(this.pushOtherPanes?0:e.nextPanesSize),o=Math.max(Math.min(this.getCurrentDragPercentage(t),i),n);let a=[r,r+1],s=this.panes[a[0]]||null,l=this.panes[a[1]]||null;const c=s.max<100&&o>=s.max+e.prevPanesSize,u=l.max<100&&o<=100-(l.max+this.sumNextPanesSize(r+1));if(c||u){c?(s.size=s.max,l.size=Math.max(100-s.max-e.prevPanesSize-e.nextPanesSize,0)):(s.size=Math.max(100-l.max-e.prevPanesSize-this.sumNextPanesSize(r+1),0),l.size=l.max);return}if(this.pushOtherPanes){const g=this.doPushOtherPanes(e,o);if(!g)return;({sums:e,panesToResize:a}=g),s=this.panes[a[0]]||null,l=this.panes[a[1]]||null}s!==null&&(s.size=Math.min(Math.max(o-e.prevPanesSize-e.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-o-e.nextPanesSize-e.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(t,r){const e=this.touch.activeSplitter,n=[e,e+1];return r{o>n[0]&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),t.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,o)=>{o>0&&o<=e&&(i.size=i.min,t.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):r>100-t.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(e).index,t.nextReachedMinPanes=0,n[1]>e+1&&this.panes.forEach((i,o)=>{o>e&&o{o=e+1&&(i.size=i.min,t.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:n}},sumPrevPanesSize(t){return this.panes.reduce((r,e,n)=>r+(nr+(n>t+1?e.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(r=>r.indexr.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const r=t.classList.contains("splitpanes__pane"),e=t.classList.contains("splitpanes__splitter");!r&&!e&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed."))})},addSplitter(t,r,e=!1){const n=t-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),e||(i.onmousedown=o=>this.onMouseDown(o,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=o=>this.onMouseDown(o,n)),i.onclick=o=>this.onSplitterClick(o,n+1)),this.dblClickSplitter&&(i.ondblclick=o=>this.onSplitterDblClick(o,n+1)),r.parentNode.insertBefore(i,r)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)});let r=0;t.forEach(e=>{e.className.includes("splitpanes__pane")&&(!r&&this.firstSplitter?this.addSplitter(r,e,!0):r&&this.addSplitter(r,e),r++)})},requestUpdate({target:t,...r}){const e=this.indexedPanes[t._.uid];Object.entries(r).forEach(([n,i])=>e[n]=i)},onPaneAdd(t){let r=-1;Array.from(t.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&r++,i===t.$el));const e=parseFloat(t.minSize),n=parseFloat(t.maxSize);this.panes.splice(r,0,{id:t._.uid,index:r,min:isNaN(e)?0:e,max:isNaN(n)?100:n,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((i,o)=>i.index=o),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[r]}),this.$emit("pane-add",{index:r,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(t){const r=this.panes.findIndex(n=>n.id===t._.uid),e=this.panes.splice(r,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...e,index:r}}),this.$emit("pane-remove",{removed:e,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(r=>r.givenSize!==null||r.min||r.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size})))},equalize(){const t=100/this.panesCount;let r=0;const e=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(t,i.max),i.min),r-=i.size,i.size>=i.max&&e.push(i.id),i.size<=i.min&&n.push(i.id)}),r>.1&&this.readjustSizes(r,e,n)},initialPanesSizing(){let t=100;const r=[],e=[];let n=0;this.panes.forEach(o=>{t-=o.size,o.size!==null&&n++,o.size>=o.max&&r.push(o.id),o.size<=o.min&&e.push(o.id)});let i=100;t>.1&&(this.panes.forEach(o=>{o.size===null&&(o.size=Math.max(Math.min(t/(this.panesCount-n),o.max),o.min)),i-=o.size}),i>.1&&this.readjustSizes(t,r,e))},equalizeAfterAddOrRemove({addedPane:t,removedPane:r}={}){let e=100/this.panesCount,n=0;const i=[],o=[];t&&t.givenSize!==null&&(e=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{t&&t.givenSize!==null&&t.id===a.id||(a.size=Math.max(Math.min(e,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,i,o))},readjustSizes(t,r,e){let n;t>0?n=t/(this.panesCount-r.length):n=t/(this.panesCount-e.length),this.panes.forEach((i,o)=>{if(t>0&&!r.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}else if(!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),s=a-i.size;t-=s,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((r,e)=>{r.ondblclick=t?n=>this.onSplitterDblClick(n,e):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return fc("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},pve=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},mve={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function yve(t,r,e,n,i,o){return z(),H("div",{class:"splitpanes__pane",onClick:r[0]||(r[0]=a=>o.onPaneClick(a,t._.uid)),style:kr(t.style)},[Qe(t.$slots,"default")],4)}const hn=pve(mve,[["render",yve]]);function bve(){var t=window.navigator.userAgent,r=t.indexOf("MSIE ");if(r>0)return parseInt(t.substring(r+5,t.indexOf(".",r)),10);var e=t.indexOf("Trident/");if(e>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var i=t.indexOf("Edge/");return i>0?parseInt(t.substring(i+5,t.indexOf(".",i)),10):-1}let P5;function L8(){L8.init||(L8.init=!0,P5=bve()!==-1)}var vI={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){L8(),dn(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",P5&&this.$el.appendChild(t),t.data="about:blank",P5||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!P5&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const wve=$B();bB("data-v-b329ee4c");const $ve={class:"resize-observer",tabindex:"-1"};wB();const _ve=wve((t,r,e,n,i,o)=>(z(),ne("div",$ve)));vI.render=_ve;vI.__scopeId="data-v-b329ee4c";vI.__file="src/components/ResizeObserver.vue";function R5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?R5=function(r){return typeof r}:R5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},R5(t)}function Mve(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function zve(t,r){for(var e=0;et.length)&&(r=t.length);for(var e=0,n=new Array(r);e2&&arguments[2]!==void 0?arguments[2]:{},n,i,o,a=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),g=1;g1){var c=s.find(function(g){return g.isIntersecting});c&&(l=c)}if(i.callback){var u=l.isIntersecting&&l.intersectionRatio>=i.threshold;if(u===i.oldResult)return;i.oldResult=u,i.callback(u,l)}},this.options.intersection),dn(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),t}();function AG(t,r,e){var n=r.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new Hve(t,n,e);t._vue_visibilityState=i}}function Vve(t,r,e){var n=r.value,i=r.oldValue;if(!vG(n,i)){var o=t._vue_visibilityState;if(!n){IG(t);return}o?o.createObserver(n,e):AG(t,{value:n},e)}}function IG(t){var r=t._vue_visibilityState;r&&(r.destroyObserver(),delete t._vue_visibilityState)}var Pve={beforeMount:AG,updated:Vve,unmounted:IG},Rve={itemsLimit:1e3},Dve=/(auto|scroll)/;function pG(t,r){return t.parentNode===null?r:pG(t.parentNode,r.concat([t]))}var Bp=function(r,e){return getComputedStyle(r,null).getPropertyValue(e)},Nve=function(r){return Bp(r,"overflow")+Bp(r,"overflow-y")+Bp(r,"overflow-x")},Bve=function(r){return Dve.test(Nve(r))};function WS(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var r=pG(t.parentNode,[]),e=0;e{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const t=this.$_lastUpdateScrollPosition;typeof t=="number"&&this.$nextTick(()=>{this.scrollToPosition(t)})},beforeUnmount(){this.removeListeners()},methods:{addView(t,r,e,n,i){const o=fB({id:Gve++,index:r,used:!0,key:n,type:i}),a=lb({item:e,position:0,nr:o});return t.push(a),a},unuseView(t,r=!1){const e=this.$_unusedViews,n=t.nr.type;let i=e.get(n);i||(i=[],e.set(n,i)),i.push(t),r||(t.nr.used=!1,t.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(t){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const r=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});r(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&r()},this.updateInterval))}},handleVisibilityChange(t,r){this.ready&&(t||r.boundingClientRect.width!==0||r.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(t,r=!1){const e=this.itemSize,n=this.gridItems||1,i=this.itemSecondarySize||e,o=this.$_computedMinItemSize,a=this.typeField,s=this.simpleArray?null:this.keyField,l=this.items,c=l.length,u=this.sizes,g=this.$_views,h=this.$_unusedViews,d=this.pool,f=this.itemIndexByKey;let C,v,A,I,p;if(!c)C=v=I=p=A=0;else if(this.$_prerender)C=I=0,v=p=Math.min(this.prerender,l.length),A=null;else{const T=this.getScroll();if(r){let P=T.start-this.$_lastUpdateScrollPosition;if(P<0&&(P=-P),e===null&&PT.start&&(te=ee),ee=~~((B+te)/2);while(ee!==re);for(ee<0&&(ee=0),C=ee,A=u[c-1].accumulator,v=ee;vc&&(v=c)),I=C;Ic&&(v=c),I<0&&(I=0),p>c&&(p=c),A=Math.ceil(c/n)*e}}v-C>Rve.itemsLimit&&this.itemsLimitError(),this.totalSize=A;let m;const b=C<=this.$_endIndex&&v>=this.$_startIndex;if(b)for(let T=0,k=d.length;T=v)&&this.unuseView(m));const _=b?null:new Map;let L,M,S;for(let T=C;T=O.length)&&(m=this.addView(d,T,L,k,M),this.unuseView(m,!0),O=h.get(M)),m=O[S],_.set(M,S+1)),g.delete(m.nr.key),m.nr.used=!0,m.nr.index=T,m.nr.key=k,m.nr.type=M,g.set(k,m),P=!0;else if(!m.nr.used&&(m.nr.used=!0,P=!0,O)){const B=O.indexOf(m);B!==-1&&O.splice(B,1)}m.item=L,P&&(T===l.length-1&&this.$emit("scroll-end"),T===0&&this.$emit("scroll-start")),e===null?(m.position=u[T-1].accumulator,m.offset=0):(m.position=Math.floor(T/n)*e,m.offset=T%n*i)}return this.$_startIndex=C,this.$_endIndex=v,this.emitUpdate&&this.$emit("update",C,v,I,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:b}},getListenerTarget(){let t=WS(this.$el);return window.document&&(t===window.document.documentElement||t===window.document.body)&&(t=window),t},getScroll(){const{$el:t,direction:r}=this,e=r==="vertical";let n;if(this.pageMode){const i=t.getBoundingClientRect(),o=e?i.height:i.width;let a=-(e?i.top:i.left),s=e?window.innerHeight:window.innerWidth;a<0&&(s+=a,a=0),a+s>o&&(s=o-a),n={start:a,end:a+s}}else e?n={start:t.scrollTop,end:t.scrollTop+t.clientHeight}:n={start:t.scrollLeft,end:t.scrollLeft+t.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,x8?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(t){let r;const e=this.gridItems||1;this.itemSize===null?r=t>0?this.sizes[t-1].accumulator:0:r=Math.floor(t/e)*this.itemSize,this.scrollToPosition(r)},scrollToPosition(t){const r=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let e,n,i;if(this.pageMode){const o=WS(this.$el),a=o.tagName==="HTML"?0:o[r.scroll],s=o.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[r.start]-s[r.start];e=o,n=r.scroll,i=t+a+c}else e=this.$el,n=r.scroll,i=t;e[n]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((t,r)=>t.nr.index-r.nr.index)}}};const Wve={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Zve={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Kve(t,r,e,n,i,o){const a=Vo("ResizeObserver"),s=Cb("observe-visibility");return $t((z(),H("div",{class:Te(["vue-recycle-scroller",{ready:i.ready,"page-mode":e.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:r[0]||(r[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[t.$slots.before?(z(),H("div",Wve,[Qe(t.$slots,"before")],512)):oe("v-if",!0),(z(),ne(y1(e.listTag),{ref:"wrapper",style:kr({[t.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:Te(["vue-recycle-scroller__item-wrapper",e.listClass])},{default:W(()=>[(z(!0),H(Ee,null,At(i.pool,l=>(z(),ne(y1(e.itemTag),Xr({key:l.nr.id,style:i.ready?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${l.position}px) translate${t.direction==="vertical"?"X":"Y"}(${l.offset}px)`,width:e.gridItems?`${t.direction==="vertical"&&e.itemSecondarySize||e.itemSize}px`:void 0,height:e.gridItems?`${t.direction==="horizontal"&&e.itemSecondarySize||e.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[e.itemClass,{hover:!e.skipHover&&i.hoverKey===l.nr.key}]]},Loe(e.skipHover?{}:{mouseenter:()=>{i.hoverKey=l.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:W(()=>[Qe(t.$slots,"default",{item:l.item,index:l.nr.index,active:l.nr.used})]),_:2},1040,["style","class"]))),128)),Qe(t.$slots,"empty")]),_:3},8,["style","class"])),t.$slots.after?(z(),H("div",Zve,[Qe(t.$slots,"after")],512)):oe("v-if",!0),D(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[s,o.handleVisibilityChange]])}hw.render=Kve;hw.__file="src/components/RecycleScroller.vue";var mG=typeof global=="object"&&global&&global.Object===Object&&global,Yve=typeof self=="object"&&self&&self.Object===Object&&self,Is=mG||Yve||Function("return this")(),$a=Is.Symbol,yG=Object.prototype,Xve=yG.hasOwnProperty,qve=yG.toString,Yg=$a?$a.toStringTag:void 0;function Qve(t){var r=Xve.call(t,Yg),e=t[Yg];try{t[Yg]=void 0;var n=!0}catch{}var i=qve.call(t);return n&&(r?t[Yg]=e:delete t[Yg]),i}var Jve=Object.prototype,eAe=Jve.toString;function tAe(t){return eAe.call(t)}var rAe="[object Null]",nAe="[object Undefined]",ZS=$a?$a.toStringTag:void 0;function Yu(t){return t==null?t===void 0?nAe:rAe:ZS&&ZS in Object(t)?Qve(t):tAe(t)}function vu(t){return t!=null&&typeof t=="object"}var iAe="[object Symbol]";function dw(t){return typeof t=="symbol"||vu(t)&&Yu(t)==iAe}function oAe(t,r){for(var e=-1,n=t==null?0:t.length,i=Array(n);++e-1&&t%1==0&&t-1&&t%1==0&&t<=zAe}function MG(t){return t!=null&&Cw(t.length)&&!wG(t)}var EAe=Object.prototype;function SAe(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||EAe;return t===e}function TAe(t,r){for(var e=-1,n=Array(t);++e-1}function PIe(t,r){var e=this.__data__,n=AI(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this}function ps(t){var r=-1,e=t==null?0:t.length;for(this.clear();++rs))return!1;var c=o.get(t),u=o.get(r);if(c&&u)return c==r&&u==t;var g=-1,h=!0,d=e&M4e?new Yv:void 0;for(o.set(t,r),o.set(r,t);++gPG)return!1;let i=!1;const o=Object.keys(t);let a,s;for(let l=0;lPG)return!1;let i=!1,o;for(let a=0;a$t((z(),H("span",{style:kr({color:`#${y(vT)(r.tag.textColor)}`,backgroundColor:`#${y(vT)(r.tag.backgroundColor)}`}),class:"ml-2 rounded-sm px-1 text-[0.75rem] leading-snug"},[Se(ze(r.tag.label),1)],4)),[[y(sr),{content:r.tag.tooltip,html:!0}]])}}),Mpe={class:"p2"},zpe=["onClick"],BG=ce({__name:"SelectiveList",props:iu({data:{}},{modelValue:{},modelModifiers:{}}),emits:iu(["select"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=XA(t,"modelValue");function i(o){n.value=o,e("select",o)}return(o,a)=>(z(),H("ul",Mpe,[(z(!0),H(Ee,null,At(o.data,s=>(z(),H("li",{key:s.id,class:Te(["selectable-item",{active:s.id===n.value}]),onClick:l=>i(s.id)},[Se(ze(s.label)+" ",1),(z(!0),H(Ee,null,At(s.tags,(l,c)=>(z(),ne(NG,{key:c,tag:l},null,8,["tag"]))),128))],10,zpe))),128))]))}}),yw=Symbol("VirtualRouteKey"),FG=Symbol("VirtualRoutesKey");function bw(t,r){const e=r?.defaultRoutePath??rd(t)[0].path,n=G({path:e}),i=F(()=>rd(t)),o=F(()=>n.value.path),a=ce({setup(){return()=>{const l=i.value.find(c=>c.path===o.value);return l?fc(l.component):null}}});function s(){n.value.path=e}return Di(yw,n),Di(FG,i),{VirtualRouterView:a,restoreRouter:s}}function yf(){const t=br(yw);return{push(r){t.value.path=r}}}function Epe(){const t=br(FG),r=br(yw);return{routes:t,currentRoute:r}}const Spe={border:"b base",class:"flex items-center justify-between px3"},Tpe=["href"],Lpe=["href"],Xu=ce({__name:"DevToolsHeader",props:{githubRepoLink:{},docLink:{}},setup(t){const r=yf();return(e,n)=>(z(),H("div",Spe,[w("div",null,[Qe(e.$slots,"default",{},()=>[w("i",{class:"i-ep:back cursor-pointer op70 text-base hover:op100",onClick:n[0]||(n[0]=i=>y(r).push("/"))})])]),w("div",null,[w("a",{class:"pr2",href:e.docLink,target:"_blank",title:"View Documentation"},n[1]||(n[1]=[w("i",{class:"i-clarity:document-line cursor-pointer op70 text-base hover:op100"},null,-1)]),8,Tpe),e.githubRepoLink?(z(),H("a",{key:0,href:e.githubRepoLink,target:"_blank",title:"Star on GitHub"},n[2]||(n[2]=[w("i",{class:"i-mdi:github cursor-pointer op70 text-base hover:op100"},null,-1)]),8,Lpe)):oe("",!0)])]))}}),bc=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e},kpe={},Ope={class:"h-full flex flex-col items-center justify-center op50"};function xpe(t,r){return z(),H("div",Ope,[r[0]||(r[0]=w("i",{class:"i-lets-icons:blank-light"},null,-1)),w("span",null,[Qe(t.$slots,"default")])])}const Td=bc(kpe,[["render",xpe]]),Hpe={class:"flex gap3"},Vpe=["onClick"],qu=ce({__name:"Navbar",setup(t){const{routes:r,currentRoute:e}=Epe(),n=yf();return(i,o)=>(z(),H("ul",Hpe,[(z(!0),H(Ee,null,At(y(r),(a,s)=>(z(),H("li",{key:s,class:Te(["h-10 flex cursor-pointer items-center justify-center border-b-[2px] border-solid text-size-sm leading-none hover:op100",y(e).path===a.path?"op-100 font-medium text-primary-400 border-primary-400":"border-transparent op-70"]),onClick:l=>y(n).push(a.path)},ze(a.name),11,Vpe))),128))]))}}),ww=ce({__name:"ToggleExpanded",props:{value:{type:Boolean}},setup(t){return(r,e)=>(z(),H("i",{class:Te(["i-radix-icons:triangle-right flex-none text-4 op-50 transition-base",{"transform rotate-90":r.value}])},null,2))}}),jG=Symbol("StateEditorSymbol");function Ppe(t){const r=G(t);return Di(jG,r),{context:r}}function $w(){return br(jG)}function Rpe(){const t=G(""),r=G("string"),e=G(!1),n=$w();return{editingText:t,editing:e,toggleEditing(i){i&&(r.value=i),e.value=!e.value},editingType:r,nodeId:F(()=>n.value.nodeId)}}function Dpe(t,r){if(t==="array")return r.length;const e="newProp";let n=1;for(;;){const i=`${e}${n}`;if(!r[i])return i;n++}}function Npe(){const t=G({enable:!1,key:"",value:"undefined"});function r(n,i){const o=Dpe(n,i);t.value={enable:!0,key:o.toString(),value:"undefined"}}function e(){t.value={enable:!1,key:"",value:"undefined"}}return{addNewProp:r,resetDrafting:e,draftingNewProp:t}}const UG="expanded-state";function ls(t=""){const r=G([]);return Di(`${UG}-${t}`,r),{expanded:r}}function _w(t=""){const r=br(`${UG}-${t}`,G([]));function e(n){const i=r.value.indexOf(n);i===-1?r.value.push(n):r.value.splice(i,1)}return{expanded:r,toggleExpanded:e}}function Mw(t){return nb()?(JN(t),!0):!1}function On(t){return typeof t=="function"?t():y(t)}const zw=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Bpe=t=>typeof t<"u",Fpe=Object.prototype.toString,jpe=t=>Fpe.call(t)==="[object Object]",Xv=()=>{};function Upe(t,r){function e(...n){return new Promise((i,o)=>{Promise.resolve(t(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(i).catch(o)})}return e}const Gpe=t=>t();function Wpe(t,r={}){let e,n,i=Xv;const o=a=>{clearTimeout(a),i(),i=Xv};return a=>{const s=On(t),l=On(r.maxWait);return e&&o(e),s<=0||l!==void 0&&l<=0?(n&&(o(n),n=null),Promise.resolve(a())):new Promise((c,u)=>{i=r.rejectOnCancel?u:c,l&&!n&&(n=setTimeout(()=>{e&&o(e),n=null,c(a())},l)),e=setTimeout(()=>{n&&o(n),n=null,c(a())},s)})}}function IT(t,r=!1,e="Timeout"){return new Promise((n,i)=>{setTimeout(r?()=>i(e):n,t)})}function Zpe(t){let r;function e(){return r||(r=t()),r}return e.reset=async()=>{const n=r;r=void 0,n&&await n},e}function Kpe(t){return As()}function Ype(t,r,e={}){const{eventFilter:n=Gpe,...i}=e;return Je(t,Upe(n,r),i)}function Xpe(t,r=!0,e){Kpe()?Ii(t,e):r?t():dn(t)}function N8(t,r=!1){function e(g,{flush:h="sync",deep:d=!1,timeout:f,throwOnTimeout:C}={}){let v=null;const A=[new Promise(I=>{v=Je(t,p=>{g(p)!==r&&(v?v():dn(()=>v?.()),I(p))},{flush:h,deep:d,immediate:!0})})];return f!=null&&A.push(IT(f,C).then(()=>On(t)).finally(()=>v?.())),Promise.race(A)}function n(g,h){if(!qe(g))return e(p=>p===g,h);const{flush:d="sync",deep:f=!1,timeout:C,throwOnTimeout:v}=h??{};let A=null;const I=[new Promise(p=>{A=Je([t,g],([m,b])=>{r!==(m===b)&&(A?A():dn(()=>A?.()),p(m))},{flush:d,deep:f,immediate:!0})})];return C!=null&&I.push(IT(C,v).then(()=>On(t)).finally(()=>(A?.(),On(t)))),Promise.race(I)}function i(g){return e(h=>!!h,g)}function o(g){return n(null,g)}function a(g){return n(void 0,g)}function s(g){return e(Number.isNaN,g)}function l(g,h){return e(d=>{const f=Array.from(d);return f.includes(g)||f.includes(On(g))},h)}function c(g){return u(1,g)}function u(g=1,h){let d=-1;return e(()=>(d+=1,d>=g),h)}return Array.isArray(On(t))?{toMatch:e,toContains:l,changed:c,changedTimes:u,get not(){return N8(t,!r)}}:{toMatch:e,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:s,toBeUndefined:a,changed:c,changedTimes:u,get not(){return N8(t,!r)}}}function GG(t){return N8(t)}function qpe(t,r,e={}){const{immediate:n=!0}=e,i=G(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...c){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},On(r))}return n&&(i.value=!0,zw&&l()),Mw(s),{isPending:H1(i),start:l,stop:s}}function Qpe(t=!1,r={}){const{truthyValue:e=!0,falsyValue:n=!1}=r,i=qe(t),o=G(t);function a(s){if(arguments.length)return o.value=s,o.value;{const l=On(e);return o.value=o.value===l?On(n):l,o.value}}return i?a:[o,a]}function Jpe(t,r,e={}){const{debounce:n=0,maxWait:i=void 0,...o}=e;return Ype(t,r,{...o,eventFilter:Wpe(n,{maxWait:i})})}const mI=zw?window:void 0,WG=zw?window.navigator:void 0;function $l(t){var r;const e=On(t);return(r=e?.$el)!=null?r:e}function Qs(...t){let r,e,n,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([e,n,i]=t,r=mI):[r,e,n,i]=t,!r)return Xv;Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);const o=[],a=()=>{o.forEach(u=>u()),o.length=0},s=(u,g,h,d)=>(u.addEventListener(g,h,d),()=>u.removeEventListener(g,h,d)),l=Je(()=>[$l(r),On(i)],([u,g])=>{if(a(),!u)return;const h=jpe(g)?{...g}:g;o.push(...e.flatMap(d=>n.map(f=>s(u,d,f,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Mw(c),c}function e3e(){const t=G(!1),r=As();return r&&Ii(()=>{t.value=!0},r),t}function Ew(t){const r=e3e();return F(()=>(r.value,!!t()))}function pT(t,r={}){const{controls:e=!1,navigator:n=WG}=r,i=Ew(()=>n&&"permissions"in n),o=Bi(),a=typeof t=="string"?{name:t}:t,s=Bi(),l=()=>{var u,g;s.value=(g=(u=o.value)==null?void 0:u.state)!=null?g:"prompt"};Qs(o,"change",l);const c=Zpe(async()=>{if(i.value){if(!o.value)try{o.value=await n.permissions.query(a)}catch{o.value=void 0}finally{l()}if(e)return pt(o.value)}});return c(),e?{state:s,isSupported:i,query:c}:s}function t3e(t={}){const{navigator:r=WG,read:e=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=t,a=Ew(()=>r&&"clipboard"in r),s=pT("clipboard-read"),l=pT("clipboard-write"),c=F(()=>a.value||o),u=G(""),g=G(!1),h=qpe(()=>g.value=!1,i);function d(){a.value&&A(s.value)?r.clipboard.readText().then(I=>{u.value=I}):u.value=v()}c.value&&e&&Qs(["copy","cut"],d);async function f(I=On(n)){c.value&&I!=null&&(a.value&&A(l.value)?await r.clipboard.writeText(I):C(I),u.value=I,g.value=!0,h.start())}function C(I){const p=document.createElement("textarea");p.value=I??"",p.style.position="absolute",p.style.opacity="0",document.body.appendChild(p),p.select(),document.execCommand("copy"),p.remove()}function v(){var I,p,m;return(m=(p=(I=document?.getSelection)==null?void 0:I.call(document))==null?void 0:p.toString())!=null?m:""}function A(I){return I==="granted"||I==="prompt"}return{isSupported:c,text:u,copied:g,copy:f}}function r3e(t){return JSON.parse(JSON.stringify(t))}function n3e(t,r,e={}){const{window:n=mI,...i}=e;let o;const a=Ew(()=>n&&"ResizeObserver"in n),s=()=>{o&&(o.disconnect(),o=void 0)},l=F(()=>{const g=On(t);return Array.isArray(g)?g.map(h=>$l(h)):[$l(g)]}),c=Je(l,g=>{if(s(),a.value&&n){o=new ResizeObserver(r);for(const h of g)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return Mw(u),{isSupported:a,stop:u}}function i3e(t,r={width:0,height:0},e={}){const{window:n=mI,box:i="content-box"}=e,o=F(()=>{var g,h;return(h=(g=$l(t))==null?void 0:g.namespaceURI)==null?void 0:h.includes("svg")}),a=G(r.width),s=G(r.height),{stop:l}=n3e(t,([g])=>{const h=i==="border-box"?g.borderBoxSize:i==="content-box"?g.contentBoxSize:g.devicePixelContentBoxSize;if(n&&o.value){const d=$l(t);if(d){const f=d.getBoundingClientRect();a.value=f.width,s.value=f.height}}else if(h){const d=Array.isArray(h)?h:[h];a.value=d.reduce((f,{inlineSize:C})=>f+C,0),s.value=d.reduce((f,{blockSize:C})=>f+C,0)}else a.value=g.contentRect.width,s.value=g.contentRect.height},e);Xpe(()=>{const g=$l(t);g&&(a.value="offsetWidth"in g?g.offsetWidth:r.width,s.value="offsetHeight"in g?g.offsetHeight:r.height)});const c=Je(()=>$l(t),g=>{a.value=g?r.width:0,s.value=g?r.height:0});function u(){l(),c()}return{width:a,height:s,stop:u}}const o3e={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function a3e(t={}){const{reactive:r=!1,target:e=mI,aliasMap:n=o3e,passive:i=!0,onEventFired:o=Xv}=t,a=ya(new Set),s={toJSON(){return{}},current:a},l=r?ya(s):s,c=new Set,u=new Set;function g(C,v){C in l&&(r?l[C]=v:l[C].value=v)}function h(){a.clear();for(const C of u)g(C,!1)}function d(C,v){var A,I;const p=(A=C.key)==null?void 0:A.toLowerCase(),m=[(I=C.code)==null?void 0:I.toLowerCase(),p].filter(Boolean);p&&(v?a.add(p):a.delete(p));for(const b of m)u.add(b),g(b,v);p==="meta"&&!v?(c.forEach(b=>{a.delete(b),g(b,!1)}),c.clear()):typeof C.getModifierState=="function"&&C.getModifierState("Meta")&&v&&[...a,...m].forEach(b=>c.add(b))}Qs(e,"keydown",C=>(d(C,!0),o(C)),{passive:i}),Qs(e,"keyup",C=>(d(C,!1),o(C)),{passive:i}),Qs("blur",h,{passive:!0}),Qs("focus",h,{passive:!0});const f=new Proxy(l,{get(C,v,A){if(typeof v!="string")return Reflect.get(C,v,A);if(v=v.toLowerCase(),v in n&&(v=n[v]),!(v in l))if(/[+_-]/.test(v)){const p=v.split(/[+_-]/g).map(m=>m.trim());l[v]=F(()=>p.every(m=>On(f[m])))}else l[v]=G(!1);const I=Reflect.get(C,v,A);return r?On(I):I}});return f}function s3e(t,r,e,n={}){var i,o,a;const{clone:s=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:g,shouldEmit:h}=n,d=As(),f=e||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((a=(o=d?.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(d?.proxy));let C=c;C=C||`update:${r.toString()}`;const v=p=>s?typeof s=="function"?s(p):r3e(p):p,A=()=>Bpe(t[r])?v(t[r]):g,I=p=>{h?h(p)&&f(C,p):f(C,p)};if(l){const p=A(),m=G(p);let b=!1;return Je(()=>t[r],_=>{b||(b=!0,m.value=v(_),dn(()=>b=!1))}),Je(m,_=>{!b&&(_!==t[r]||u)&&I(_)},{deep:u}),m}else return F({get(){return A()},set(p){I(p)}})}function l3e(t,r={}){const{enter:e=()=>{},leave:n=()=>{},initial:i=!1}=r,o=G(i);return Qs(t,"mouseenter",()=>{o.value=!0,e()}),Qs(t,"mouseleave",()=>{o.value=!1,n()}),{isHovering:o}}const c3e={class:"flex pl5px"},u3e={class:"w160px py5px"},g3e=ce({__name:"StateFieldEditor",props:{data:{},hovering:{type:Boolean},depth:{},showAddIfNeeded:{type:Boolean,default:!0},disableEdit:{type:Boolean}},emits:["enableEditInput","addNewProp"],setup(t){const r=t,e=$w(),{copy:n,isSupported:i}=t3e(),o=G(!1),a=F(()=>xb(r.data.value)),s=F(()=>a.value.value),l=F(()=>a.value.customType),c=F(()=>s.value===null?"null":typeof s.value),u={flat:!0,size:"mini"},g=F(()=>({"opacity-0":!r.hovering}));async function h(f,C=!1){await Ae.value.editInspectorState({path:r.data.path||[r.data.key],inspectorId:e.value.inspectorId,type:r.data.stateType,nodeId:e.value.nodeId,state:{newKey:null,value:pt(f),type:c.value,remove:C}}),await Ae.value.sendInspectorState(e.value.inspectorId)}function d(f,C){const v=typeof f=="number"?f+C:BigInt(f)+BigInt(C);h(v)}return(f,C)=>(z(),H("div",c3e,[!r.disableEdit&&f.data.editable?(z(),H(Ee,{key:0},[c.value==="string"||c.value==="number"||c.value==="object"||c.value==="null"?(z(),H(Ee,{key:0},[$t((z(),ne(y(ct),Xr(u,{class:g.value,onClick:C[0]||(C[0]=Wn(v=>f.$emit("enableEditInput",c.value),["stop"]))}),{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-edit-rounded"})]),_:1},16,["class"])),[[y(sr),{content:"Edit value"}]]),c.value==="object"&&f.showAddIfNeeded?$t((z(),ne(y(ct),Xr({key:0},u,{class:g.value,onClick:C[1]||(C[1]=Wn(v=>f.$emit("addNewProp",Array.isArray(s.value)?"array":"object"),["stop"]))}),{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-add-circle-rounded"})]),_:1},16,["class"])),[[y(sr),{content:"Add new value"}]]):oe("",!0)],64)):oe("",!0),c.value==="boolean"?(z(),ne(y(ct),Xr({key:1},u,{class:g.value,onClick:C[2]||(C[2]=v=>h(!s.value))}),{icon:W(()=>[D(y(Ut),{icon:s.value?"i-material-symbols-check-box-sharp":"i-material-symbols-check-box-outline-blank-sharp"},null,8,["icon"])]),_:1},16,["class"])):c.value==="number"||l.value==="bigint"?(z(),H(Ee,{key:2},[D(y(ct),Xr(u,{class:g.value,onClick:C[3]||(C[3]=Wn(v=>d(s.value,1),["stop"]))}),{icon:W(()=>[D(y(Ut),{icon:"i-carbon-add"})]),_:1},16,["class"]),D(y(ct),Xr(u,{class:g.value,onClick:C[4]||(C[4]=Wn(v=>d(s.value,-1),["stop"]))}),{icon:W(()=>[D(y(Ut),{icon:"i-carbon-subtract"})]),_:1},16,["class"])],64)):oe("",!0)],64)):oe("",!0),!r.disableEdit&&f.depth>0&&f.data.editable?(z(),ne(y(ct),Xr({key:1},u,{class:g.value,onClick:C[5]||(C[5]=Wn(v=>h(s.value,!0),["stop"]))}),{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-delete-rounded"})]),_:1},16,["class"])):oe("",!0),D(y(Cu),{class:Te({"opacity-0":!f.hovering&&!o.value}),"button-props":{flat:!0,size:"mini"},disabled:!y(i),"onUpdate:visible":C[8]||(C[8]=v=>o.value=v)},{popper:W(()=>[w("div",u3e,[D(y(VS),{onClick:C[6]||(C[6]=v=>y(n)(typeof s.value=="object"?JSON.stringify(s.value):s.value.toString()))},{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),C[9]||(C[9]=Se(" Copy Value "))]),_:1}),D(y(VS),{onClick:C[7]||(C[7]=()=>{y(n)(f.data.key)})},{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-copy-all-rounded",class:"mt4px"}),C[10]||(C[10]=Se(" Copy Path "))]),_:1})])]),"button-icon":W(()=>[D(y(Ut),{icon:"i-material-symbols:more-vert"})]),_:1},8,["class","disabled"])]))}}),h3e={class:"flex-inline items-center gap4px"},Gp=ce({__name:"StateFieldInputEditor",props:{modelValue:{},customType:{},showActions:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0}},emits:["cancel","submit","update:modelValue"],setup(t,{emit:r}){const e=t,n=r,i=F(()=>e.customType==="date"?"datetime-local":""),{escape:o,enter:a}=a3e();gn(()=>{o.value?n("cancel"):a.value&&n("submit")});const s=s3e(e,"modelValue",n);function l(u){try{return T5(u,e.customType),!0}catch{return!1}}const c=G(!1);return Je(s,Kl(()=>{c.value=!l(s.value)},300)),(u,g)=>(z(),H("span",h3e,[D(y(as),{modelValue:y(s),"onUpdate:modelValue":g[0]||(g[0]=h=>qe(s)?s.value=h:null),type:i.value,variant:c.value?"warning":"normal",class:Te(["h25px px4px",u.customType==="date"?"w240px":"w120px"]),"auto-focus":u.autoFocus,onClick:g[1]||(g[1]=Wn(()=>{},["stop"]))},null,8,["modelValue","type","variant","class","auto-focus"]),u.showActions?(z(),H(Ee,{key:0},[$t((z(),ne(y(ct),{size:"mini",flat:"",class:"p2px!",onClick:g[2]||(g[2]=Wn(h=>u.$emit("cancel"),["stop"]))},{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-cancel"})]),_:1})),[[y(sr),{content:"Esc to cancel"}]]),c.value?$t((z(),ne(y(Ut),{key:1,icon:"i-material-symbols-warning",class:"color-warning-500 dark:color-warning-300"},null,512)),[[y(sr),{content:"Invalid value"}]]):$t((z(),ne(y(ct),{key:0,size:"mini",flat:"",class:"p2px!",onClick:g[3]||(g[3]=Wn(h=>u.$emit("submit"),["stop"]))},{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-save"})]),_:1})),[[y(sr),{content:"Enter to submit change"}]])],64)):oe("",!0)]))}}),d3e={key:1,pl5:""},f3e={op70:"",class:"whitespace-nowrap"},C3e=["innerHTML"],v3e={key:0},A3e={"overflow-hidden":"","text-ellipsis":"","whitespace-nowrap":"","state-key":""},mT=30,I3e=ce({__name:"StateFieldViewer",props:{data:{},depth:{},index:{},expandedStateId:{}},setup(t){const r=t,e=G(mT),n=F(()=>WF(r.data.value,!1,{customClass:{string:"max-w-120 truncate"}})),i=F(()=>ud(r.data.value)),o=F(()=>xb(r.data.value)),{expanded:a,toggleExpanded:s}=_w(r.expandedStateId??""),l=F(()=>{var P;return i.value==="custom"?`${((P=r.data.value._custom)==null?void 0:P.type)??"string"}-custom-state`:""}),c=F(()=>{const{value:P}=o.value;return CM(P)?P.length:fM(P)?Object.keys(P).length:0}),u=F(()=>r.data.path||[r.data.key]),g=F(()=>u.value[u.value.length-1]),h=F(()=>{var P,B,te,ee,re,Me,He;const nt=["Reactive"],De=((B=(P=r.data.value)==null?void 0:P._custom)==null?void 0:B.stateTypeName)||((te=r.data)==null?void 0:te.stateTypeName);if(nt.includes(De))return De;if((re=(ee=r.data.value)==null?void 0:ee.fields)!=null&&re.abstract)return"";{const be=(He=(Me=r.data.value)==null?void 0:Me._custom)==null?void 0:He.type,Ne=i.value==="custom"&&!be?`"${n.value}"`:n.value===""?'""':n.value,Ue=i.value==="custom"&&be==="ref"?ud(Ne):i.value,ot=i.value==="string"?"select-text":"",ft=`${Ne}`;return De?`${ft} (${De})`:ft}}),d=F(()=>{const{value:P,inherit:B,customType:te}=o.value,ee=te==="set";let re=[];return CM(P)?P.slice(0,e.value).map((Me,He)=>({key:He.toString(),path:[...u.value,He.toString()],value:Me,...B,editable:r.data.editable&&!ee,creating:!1})):(fM(P)&&(re=Object.keys(P).slice(0,e.value).map(Me=>({key:Me,path:[...u.value,Me],value:P[Me],...B,editable:r.data.editable&&!ee,creating:!1})),i.value!=="custom"&&(re=FN(re))),re===r.data.value?[]:re)}),f=F(()=>d.value.length>0),C=G(),v=$w(),{isHovering:A}=l3e(()=>C.value),{editingType:I,editing:p,editingText:m,toggleEditing:b,nodeId:_}=Rpe();Je(()=>p.value,P=>{if(P){const{value:B}=o.value;m.value=ele(B,o.value.customType)}else m.value=""});async function L(){const P=r.data;await Ae.value.editInspectorState({path:u.value,inspectorId:v.value.inspectorId,type:P.stateType,nodeId:_.value,state:{newKey:null,type:I.value,value:T5(m.value,o.value.customType)}}),await Ae.value.sendInspectorState(v.value.inspectorId),b()}const{addNewProp:M,draftingNewProp:S,resetDrafting:T}=Npe();function k(P){const B=`${r.depth}-${r.index}`;a.value.includes(B)||s(B),M(P,o.value.value)}async function O(){const P=r.data;await Ae.value.editInspectorState({path:[...u.value,S.value.key],inspectorId:v.value.inspectorId,type:P.stateType,nodeId:_.value,state:{newKey:S.value.key,type:typeof T5(S.value.value),value:T5(S.value.value)}}),await Ae.value.sendInspectorState(v.value.inspectorId),T()}return(P,B)=>(z(),H("div",null,[w("div",{ref_key:"containerRef",ref:C,class:Te(["font-state-field flex items-center text-3.5",[f.value&&"cursor-pointer hover:bg-active"]]),style:kr({paddingLeft:`${P.depth*15+4}px`}),onClick:B[1]||(B[1]=te=>y(s)(`${P.depth}-${P.index}`))},[f.value?(z(),ne(ww,{key:0,value:y(a).includes(`${P.depth}-${P.index}`)},null,8,["value"])):(z(),H("span",d3e)),w("span",f3e,ze(g.value),1),B[5]||(B[5]=w("span",{mx1:""},":",-1)),y(p)?(z(),ne(Gp,{key:2,modelValue:y(m),"onUpdate:modelValue":B[0]||(B[0]=te=>qe(m)?m.value=te:null),class:"mr-1","custom-type":o.value.customType,onCancel:y(b),onSubmit:L},null,8,["modelValue","custom-type","onCancel"])):oe("",!0),w("span",{class:Te([l.value,"flex whitespace-nowrap"])},[w("span",{class:"flex",innerHTML:h.value},null,8,C3e)],2),D(g3e,{hovering:y(A),"disable-edit":y(v).disableEdit||y(p),data:P.data,depth:P.depth,onEnableEditInput:y(b),onAddNewProp:k},null,8,["hovering","disable-edit","data","depth","onEnableEditInput"])],6),f.value&&y(a).includes(`${P.depth}-${P.index}`)?(z(),H("div",v3e,[D(ZG,{data:d.value,depth:P.depth,index:P.index},null,8,["data","depth","index"]),c.value>e.value?$t((z(),ne(y(ct),{key:0,flat:"",size:"mini",class:"ml-4",onClick:B[2]||(B[2]=te=>e.value+=mT)},{icon:W(()=>[D(y(Ut),{icon:"i-material-symbols-more-horiz"})]),_:1})),[[y(sr),"Show more"]]):oe("",!0),y(S).enable?(z(),H("div",{key:1,style:kr({paddingLeft:`${(P.depth+1)*15+4}px`})},[w("span",A3e,[D(Gp,{modelValue:y(S).key,"onUpdate:modelValue":B[3]||(B[3]=te=>y(S).key=te),"show-actions":!1},null,8,["modelValue"])]),B[6]||(B[6]=w("span",{"mx-1":""},":",-1)),D(Gp,{modelValue:y(S).value,"onUpdate:modelValue":B[4]||(B[4]=te=>y(S).value=te),"auto-focus":!1,onCancel:y(T),onSubmit:O},null,8,["modelValue","onCancel"])],4)):oe("",!0)])):oe("",!0)]))}}),p3e=bc(I3e,[["__scopeId","data-v-18a10784"]]),ZG=ce({__name:"ChildStateViewer",props:{data:{},depth:{default:0},index:{},expandedStateId:{default:""}},setup(t){return(r,e)=>(z(),H("div",null,[(z(!0),H(Ee,null,At(r.data,(n,i)=>(z(),H("div",{key:i},[D(p3e,{data:n,depth:r.depth+1,index:`${r.index}-${i}`,"expanded-state-id":r.expandedStateId},null,8,["data","depth","index","expanded-state-id"])]))),128))]))}}),m3e=["onClick"],y3e={key:1,pl5:""},b3e={"font-state-field":"","text-3.5":""},w3e={key:0},bf=ce({__name:"RootStateViewer",props:{data:{},nodeId:{},inspectorId:{},disableEdit:{type:Boolean,default:!1},expandedStateId:{default:""}},setup(t){const r=t;function e(){return{nodeId:r.nodeId,inspectorId:r.inspectorId,disableEdit:r.disableEdit}}const{context:n}=Ppe(e());gn(()=>{n.value=e()});const{expanded:i,toggleExpanded:o}=_w(r.expandedStateId);return(a,s)=>(z(),H("div",null,[(z(!0),H(Ee,null,At(a.data,(l,c,u)=>(z(),H("div",{key:u},[w("div",{class:Te(["flex items-center",[l?.length&&"cursor-pointer hover:bg-active"]]),onClick:g=>y(o)(`${u}`)},[l!=null&&l.length?(z(),ne(ww,{key:0,value:y(i).includes(`${u}`)},null,8,["value"])):(z(),H("span",y3e)),w("span",b3e,ze(c),1)],10,m3e),l!=null&&l.length&&y(i).includes(`${u}`)?(z(),H("div",w3e,[D(ZG,{data:l,index:`${u}`,"expanded-state-id":a.expandedStateId},null,8,["data","index","expanded-state-id"])])):oe("",!0)]))),128))]))}}),$3e={class:"p3"},_3e=["onClick"],M3e={key:0,class:"absolute left-5px top-4.5 h10 w0 border-l-2",border:"solid gray2"},z3e={class:"h-full flex items-center truncate pl5"},E3e={absolute:"","top-5":"",pr2:"","text-3":"",op40:""},S3e={pl2:"",op30:""},T3e=ce({__name:"EventList",props:iu({data:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=t,e=XA(t,"modelValue"),n=["#3e5770","#42b983","#0098c4"],i=G(null),o=F(()=>{let a=-1,s=0;return r.data.forEach((l,c)=>{(l.groupId!==s||a===-1)&&(a=(a+1)%n.length),s=l.groupId??s,l.id=c,l.color=n[a]}),r.data});return Je(()=>o.value.length,a=>{var s;(s=i.value)==null||s.scrollToItem(a-1)},{flush:"post"}),(a,s)=>(z(),H("div",$3e,[D(y(hw),{ref_key:"scrollerRef",ref:i,items:o.value,"min-item-size":52,"key-field":"id","page-mode":"","item-tag":"li","list-tag":"ul",buffer:20},{default:W(({item:l})=>[w("div",{class:"relative mb7 h6 cursor-pointer",style:kr({color:e.value===l.id?l.color:""}),onClick:c=>e.value=l.id},[w("span",{class:"absolute top-1.5 inline-block h3 w3 b rounded-50%",style:kr({border:`3px solid ${l.color}`})},null,4),l.idi.value[a.value]??null),l=F(()=>{var d;const f=[];for(const C in(d=s.value)==null?void 0:d.data)f.push({key:C,type:C,editable:!1,value:s.value.data[C]});return f}),c=F(()=>{var d,f,C;const v=(d=s.value)==null?void 0:d.groupId,A=o.value.get(v);if(A){const I=((f=A[A.length-1])==null?void 0:f.time)-(((C=A[0])==null?void 0:C.time)??0);return[{key:"events",type:"events",editable:!1,value:A.length},I&&{key:"duration",type:"duration",editable:!1,value:`${I}ms`}].filter(Boolean)}}),u=F(()=>({"Event Info":l.value,...c.value&&{"Group Info":c.value}}));function g(d){var f;const C=d.groupId;C!==void 0&&(o.value.set(C,o.value.get(C)??[]),(f=o.value.get(C))==null||f.push(d))}function h(d){const f=Qr(d);if(!f)return;const{layerId:C,event:v}=f;e.layerIds.includes(C)&&(i.value.push(v),g(v))}return Ae.functions.on(Nt.TIMELINE_EVENT_UPDATED,h),fn(()=>{Ae.functions.off(Nt.TIMELINE_EVENT_UPDATED,h)}),r({clear(){i.value=[],o.value.clear()}}),(d,f)=>(z(),H("div",L3e,[d.headerVisible?(z(),ne(Xu,{key:0,"doc-link":d.docLink,"github-repo-link":d.githubRepoLink},{default:W(()=>[D(qu)]),_:1},8,["doc-link","github-repo-link"])):oe("",!0),i.value.length?(z(),H("div",k3e,[D(y(R1),{class:"h-full"},{default:W(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:W(()=>[w("div",O3e,[D(T3e,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=C=>a.value=C),data:i.value},null,8,["modelValue","data"])])]),_:1}),D(y(hn),{size:"60"},{default:W(()=>[w("div",x3e,[D(bf,{class:"p3",data:u.value,"node-id":"","inspector-id":"","disable-edit":!0,"expanded-state-id":"timeline-state"},null,8,["data"])])]),_:1})]),_:1})])):(z(),ne(Td,{key:2,class:"flex-1"},{default:W(()=>f[1]||(f[1]=[Se(" No events ")])),_:1}))]))}});function KG(){const t=G([]),r=G([]);function e(i){r.value=i,i.length{n(o)})}Ga(()=>{Ae.value.getCustomInspector().then(i=>{r.value=i,r.value.forEach(o=>{n(o)})}),Ae.functions.on(Nt.INSPECTOR_UPDATED,e)});function n(i){t.value.some(o=>o.id===i.id)||t.value.push(i)}return fn(()=>{Ae.functions.off(Nt.INSPECTOR_UPDATED,e)}),{registeredInspector:t,register:n}}const YG=Symbol("SelectedSymbolKey");function H3e(){const t=G("");return Di(YG,t),{selected:t}}function V3e(){const t=br(YG,G(""));function r(e){t.value=e}return{selected:t,select:r}}const P3e=["onClick","onDblclick"],R3e={key:1,pl5:""},D3e={"font-state-field":"","text-3.5":""},N3e={key:0,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},B3e={"group-hover:text-white":"",class:"ws-nowrap [.active_&]:text-white"},F3e={key:1,class:"text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"},j3e={key:0},wf=ce({__name:"TreeViewer",props:iu({data:{},depth:{default:0},withTag:{type:Boolean,default:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const r=XA(t,"modelValue"),{expanded:e,toggleExpanded:n}=_w();V3e();function i(a){return"name"in a&&a?.name||"label"in a&&a.label}function o(a){r.value=a}return(a,s)=>(z(!0),H(Ee,null,At(a.data,(l,c)=>{var u,g;return z(),H("div",{key:c,class:Te({"min-w-max":a.depth===0})},[w("div",{class:Te(["group flex cursor-pointer items-center rounded-1 hover:bg-primary-300 hover:dark:bg-gray-600",{"bg-primary-600! active":r.value===l.id}]),style:kr({paddingLeft:`${15*a.depth+4}px`}),onClick:h=>o(l.id),onDblclick:h=>y(n)(l.id)},[(u=l?.children)!=null&&u.length?(z(),ne(ww,{key:0,value:y(e).includes(l.id),class:"[.active_&]:op20 group-hover:op20",onClick:Wn(h=>y(n)(l.id),["stop"])},null,8,["value","onClick"])):(z(),H("span",R3e)),w("span",D3e,[a.withTag?(z(),H("span",N3e,"<")):oe("",!0),w("span",B3e,ze(i(l)),1),a.withTag?(z(),H("span",F3e,">")):oe("",!0)]),(z(!0),H(Ee,null,At(l.tags,(h,d)=>(z(),ne(NG,{key:d,tag:h},null,8,["tag"]))),128))],46,P3e),(g=l?.children)!=null&&g.length&&y(e).includes(l.id)?(z(),H("div",j3e,[D(wf,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=h=>r.value=h),data:l?.children,depth:a.depth+1,"with-tag":a.withTag},null,8,["modelValue","data","depth","with-tag"])])):oe("",!0)],2)}),128))}}),U3e={class:"absolute left-0 top-0 h-full w-full flex flex-col rounded-br-2.5 rounded-tr-2.5 bg-white p2 dark:bg-[#121212]"},G3e={class:"flex-1 overflow-scroll text-3.5"},W3e=ce({__name:"RenderCode",props:{code:{}},emits:["close"],setup(t,{emit:r}){const e=r;function n(){e("close")}return(i,o)=>(z(),H("div",U3e,[w("div",{class:"h-12 w-full flex items-center justify-between p-2"},[o[0]||(o[0]=w("span",{class:"font-500"},"Render Code",-1)),w("i",{class:"i-carbon-close cursor-pointer hover:op80",onClick:n})]),w("div",G3e,[D(y(lw),{code:i.code,lang:"javascript"},null,8,["code"])])]))}}),Z3e={class:"h-full w-full"},K3e={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},Y3e={key:0,class:"h-full flex flex-col p2"},X3e={class:"flex py2"},q3e={xmlns:"http://www.w3.org/2000/svg",style:{height:"1.1em",width:"1.1em"},class:"op-80 hover:op-100",viewBox:"0 0 24 24"},Q3e={class:"h-full flex flex-col p2"},J3e={class:"flex py2"},eme={key:0,class:"font-state-field flex items-center px-1 text-3.5"},tme={"group-hover:text-white":"",class:"max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"},rme={class:"flex items-center gap-2 px-1"},nme={class:"h-full flex flex-col items-center justify-center gap-2"},ime={class:"block"},ome={xmlns:"http://www.w3.org/2000/svg",style:{height:"2em",width:"2em",opacity:"0.5",color:"#00dc82"},class:"animate-fade",viewBox:"0 0 24 24"},ame={class:"flex items-center justify-center"},Xg="components",sme=ce({__name:"index",emits:["openInEditor","onInspectComponentStart","onInspectComponentEnd"],setup(t,{emit:r}){const e=r,n=G(),i=G(!1),{width:o}=i3e(n),a=F(()=>i.value?o.value<700:!1),s=G(""),l=G(""),[c,u]=Qpe(!0),g=G(!1),h=G(!1),d=G(""),f=G(!1);function C($,x=[],j=[]){var U;return x.push($.id),((U=$.children)==null?void 0:U.length)===0&&j.push([...x]),Array.isArray($.children)&&$.children.forEach(q=>{C(q,x,j)}),x.pop(),j}function v($){const x=[],j=U=>{U?.forEach(q=>{var le;x.push(q),(le=q.children)!=null&&le.length&&j(q.children)})};return j($),x}function A($,x){const j=[];return $?.forEach(U=>{j.push(...U.slice(0,x+1))}),[...new Set(j)]}function I($,x){const j=[];return $.forEach(U=>{const q=U.indexOf(x);q!==-1&&j.push(...U.slice(0,q+1))}),[...new Set(j)]}const p=G([]),m=F(()=>{var $,x;return($=p.value)!=null&&$.length?C((x=p.value)==null?void 0:x[0]):[]}),b=F(()=>v(p.value)),_=F(()=>b.value.map($=>$.id)),L=G({}),M=G(""),S=F(()=>{const $=[],x=j=>{j.forEach(U=>{var q;U.id===M.value&&$.push(U),(q=U.children)!=null&&q.length&&x(U.children)})};return x(p.value),$[0]}),T=F(()=>{var $;return(($=S.value)==null?void 0:$.file)??""}),k=F(()=>{const $={};for(const x in L.value){const j=L.value[x].filter(q=>{try{return wpe({[q.key]:q.value},l.value)}catch(le){return{[q.key]:le}}}),U=t4e(Object.values(ype(FN(j),"stateType")));j.length&&($[x]=U)}return $}),{expanded:O}=ls(),{expanded:P}=ls("component-state");H3e();async function B($=""){return Ae.value.getInspectorTree({inspectorId:Xg,filter:$}).then(x=>{var j,U;const q=Qr(x);p.value=q,M.value=(U=(j=p.value)==null?void 0:j[0])==null?void 0:U.id,O.value=A(m.value,1),g.value=!0})}function te($){if(!$||!($!=null&&$.state))return{};const x={};return $.state.forEach(j=>{x[j.type]||(x[j.type]=[]),x[j.type].push(j)}),x}function ee($){Ae.value.getInspectorState({inspectorId:Xg,nodeId:$}).then(x=>{const j=Qr(x);j&&(L.value=te(j),P.value=Array.from({length:Object.keys(L.value).length},(U,q)=>`${q}`))})}Je(M,$=>{ee($),f.value&&Ue()});function re($){const x=Qr($);x.inspectorId!==Xg||x.nodeId!==M.value||(L.value=te({state:x.state.state}))}Ae.functions.on(Nt.INSPECTOR_STATE_UPDATED,re),B();function Me($){const x=$.trim().toLowerCase();u(),B(x).then(()=>{u()})}Jpe(s,$=>{Me($)},{debounce:300});function He($){var x,j;const U=Qr($);U.inspectorId===Xg&&(s.value?Me(s.value):p.value=U.rootNodes,_.value.includes(M.value)||(M.value=(j=(x=p.value)==null?void 0:x[0])==null?void 0:j.id,O.value=A(m.value,1)))}Ae.functions.on(Nt.INSPECTOR_TREE_UPDATED,He),fn(()=>{Ae.functions.off(Nt.INSPECTOR_STATE_UPDATED,re),Ae.functions.off(Nt.INSPECTOR_TREE_UPDATED,He)});function nt(){h.value=!0,e("onInspectComponentStart"),Ae.value.inspectComponentInspector().then($=>{const x=JSON.parse($);M.value=x.id,O.value.includes(x.id)||O.value.push(x.id),O.value=[...new Set([...O.value,...I(m.value,x.id)])],Z()}).finally(()=>{h.value=!1,e("onInspectComponentEnd")})}function De(){h.value=!1,Ae.value.cancelInspectComponentInspector()}function be(){Ae.value.scrollToComponent(M.value)}function Ne(){Ae.value.inspectDOM(M.value).then(()=>{chrome.devtools.inspectedWindow.eval("inspect(window.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__)")})}function Ue(){Ae.value.getComponentRenderCode(M.value).then($=>{d.value=$,f.value=!0})}function ot(){e("openInEditor",T.value)}const ft=G();function Z(){setTimeout(()=>{var $;const x=($=ft.value)==null?void 0:$.querySelector(".active");x?.scrollIntoView({behavior:"smooth",block:"center"})},300)}function ie(){d.value="",f.value=!1}const R=uo(),V=F(()=>R.appRecords.value.map($=>({label:$.name+($.version?` (${$.version})`:""),value:$.id}))),N=F(()=>V.value.map($=>({label:$.label,id:$.value}))),K=G(R.activeAppRecordId.value);gn(()=>{K.value=R.activeAppRecordId.value});function E($){Ae.value.toggleApp($).then(()=>{M.value="",B()})}return($,x)=>(z(),H("div",Z3e,[D(y(R1),{ref_key:"splitpanesRef",ref:n,class:"flex-1 overflow-auto",horizontal:a.value,onReady:x[4]||(x[4]=j=>i.value=!0)},{default:W(()=>[V.value.length>1?(z(),ne(y(hn),{key:0,border:"base h-full",size:"20"},{default:W(()=>[w("div",K3e,[D(BG,{modelValue:K.value,"onUpdate:modelValue":x[0]||(x[0]=j=>K.value=j),data:N.value,class:"w-full",onSelect:E},null,8,["modelValue","data"])])]),_:1})):oe("",!0),D(y(hn),{border:"base","h-full":""},{default:W(()=>[g.value?(z(),H("div",Y3e,[w("div",X3e,[D(y(as),{modelValue:s.value,"onUpdate:modelValue":x[1]||(x[1]=j=>s.value=j),"loading-debounce-time":250,loading:!y(c),placeholder:"Find components...",class:"flex-1 text-3.5"},null,8,["modelValue","loading"]),y(DN)?oe("",!0):$t((z(),H("button",{key:0,"px-1":"",class:"hover:color-#00dc82",onClick:nt},[(z(),H("svg",q3e,x[6]||(x[6]=[w("path",{fill:"currentColor",d:"M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"},null,-1)])))])),[[y(sr),"Select component in the page",void 0,{bottom:!0}]])]),w("div",{ref_key:"componentTreeContainer",ref:ft,class:"no-scrollbar flex-1 select-none overflow-scroll"},[D(wf,{modelValue:M.value,"onUpdate:modelValue":x[2]||(x[2]=j=>M.value=j),data:p.value,"with-tag":!0},null,8,["modelValue","data"])],512)])):oe("",!0)]),_:1}),D(y(hn),{relative:"","h-full":""},{default:W(()=>{var j;return[w("div",Q3e,[w("div",J3e,[(j=S.value)!=null&&j.name?(z(),H("span",eme,[x[7]||(x[7]=w("span",{class:"text-gray-400 dark:text-gray-600"},"<",-1)),w("span",tme,ze(S.value.name),1),x[8]||(x[8]=w("span",{class:"text-gray-400 dark:text-gray-600"},">",-1))])):oe("",!0),D(y(as),{modelValue:l.value,"onUpdate:modelValue":x[3]||(x[3]=U=>l.value=U),"loading-debounce-time":250,placeholder:"Filter State...",class:"flex-1 text-3.5"},null,8,["modelValue"]),w("div",rme,[$t(w("i",{class:"i-material-symbols-light:eye-tracking-outline h-4 w-4 cursor-pointer hover:op-70",onClick:be},null,512),[[y(sr),"Scroll to component",void 0,{bottom:!0}]]),$t(w("i",{class:"i-material-symbols-light:code h-5 w-5 cursor-pointer hover:op-70",onClick:Ue},null,512),[[y(sr),"Show render code",void 0,{bottom:!0}]]),y(ma)?$t((z(),H("i",{key:0,class:"i-material-symbols-light:menu-open h-5 w-5 cursor-pointer hover:op-70",onClick:Ne},null,512)),[[y(sr),"Inspect DOM",void 0,{bottom:!0}]]):oe("",!0),T.value?$t((z(),H("i",{key:1,class:"i-carbon-launch h-4 w-4 cursor-pointer hover:op-70",onClick:ot},null,512)),[[y(sr),"Open in Editor",void 0,{bottom:!0}]]):oe("",!0)])]),D(bf,{class:"no-scrollbar flex-1 select-none overflow-scroll",data:k.value,"node-id":M.value,"inspector-id":Xg,"expanded-state-id":"component-state"},null,8,["data","node-id"])]),f.value&&d.value?(z(),ne(W3e,{key:0,code:d.value,onClose:ie},null,8,["code"])):oe("",!0)]}),_:1})]),_:1},8,["horizontal"]),y(ma)?(z(),ne(y(eG),{key:0,modelValue:h.value,"onUpdate:modelValue":x[5]||(x[5]=j=>h.value=j),title:"",height:"12rem",closable:!1},{footer:W(()=>[w("div",ame,[D(y(ct),{onClick:De},{default:W(()=>x[11]||(x[11]=[Se(" Cancel ")])),_:1})])]),default:W(()=>[w("div",nme,[w("span",ime,[(z(),H("svg",ome,x[9]||(x[9]=[w("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[w("circle",{cx:"12",cy:"12",r:".5",fill:"currentColor"}),w("path",{d:"M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2"})],-1)])))]),x[10]||(x[10]=w("p",null," Click on a component on the page to select it ",-1))])]),_:1},8,["modelValue"])):oe("",!0)]))}}),lme=bc(sme,[["__scopeId","data-v-38589395"]]),cme={},ume={class:"h-screen w-screen $ui-fcc flex-col"};function gme(t,r){return z(),H("div",ume,[r[0]||(r[0]=w("div",{class:"outer"},[w("div",{class:"inner"},[w("i",{class:"i-logos-vue inline-block h8! w8!",alt:"Vue logo"})])],-1)),Qe(t.$slots,"default",{},void 0,!0)])}const hme=bc(cme,[["render",gme],["__scopeId","data-v-b8018f07"]]),XG=Symbol.for("VueDevToolsCustomInspectorStateSymbol");function Qu(){return br(XG)}function qG(){const t=G({homepage:"",id:"",label:"",logo:"",timelineLayerIds:[]});return Di(XG,t),t}const dme={},fme={width:"175",height:"34",viewBox:"0 0 175 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Cme(t,r){return z(),H("svg",fme,r[0]||(r[0]=[w("path",{fill:"currentColor",d:"M0.570999 33.3121V1.80715H10.8288C13.6975 1.80715 16.3198 2.39225 18.6962 3.56242C21.0721 4.73263 22.9701 6.5029 24.3901 8.87327C25.81 11.2136 26.52 14.1091 26.52 17.5596C26.52 20.9801 25.81 23.8756 24.3901 26.2458C22.9701 28.6162 21.0721 30.3868 18.6962 31.5568C16.3198 32.7269 13.6975 33.3121 10.8288 33.3121H0.570999ZM10.1332 27.461C12.9439 27.461 15.2767 26.6812 17.1314 25.1208C18.9858 23.5306 19.913 21.0102 19.913 17.5596C19.913 14.1091 18.9858 11.5887 17.1314 9.99846C15.2767 8.40819 12.9439 7.61306 10.1332 7.61306H7.09085V27.461H10.1332ZM50.3628 25.6159C49.928 28.0463 48.7544 29.9966 46.8421 31.4669C44.9297 32.9368 42.6257 33.672 39.931 33.672C37.5551 33.672 35.5119 33.117 33.8024 32.007C32.1216 30.8668 30.8468 29.3965 29.9772 27.5961C29.1081 25.7961 28.6733 23.9056 28.6733 21.9253C28.6733 19.915 29.0645 18.0247 29.8468 16.2544C30.6584 14.4841 31.8756 13.0439 33.498 11.9337C35.1499 10.8236 37.1491 10.2685 39.4962 10.2685C41.9306 10.2685 43.9589 10.8086 45.5817 11.8888C47.2045 12.9689 48.3924 14.3491 49.1456 16.0294C49.928 17.7097 50.3192 19.4799 50.3192 21.3402C50.3192 22.0303 50.2904 22.7054 50.2324 23.3656H34.4979C34.7295 24.9858 35.3091 26.2612 36.2363 27.191C37.1927 28.0914 38.4243 28.5412 39.931 28.5412C41.1482 28.5412 42.1478 28.3014 42.9301 27.8214C43.7125 27.3111 44.2197 26.5759 44.4513 25.6159H50.3628ZM39.4962 14.8592C38.1055 14.8592 37.0043 15.2343 36.1931 15.9844C35.3815 16.7045 34.8455 17.8447 34.5847 19.4049H44.2777C44.1905 18.0847 43.7269 17.0045 42.8865 16.1644C42.0466 15.2943 40.9162 14.8592 39.4962 14.8592ZM64.1603 33.3121H58.5969L50.599 10.6285H56.7713L61.3788 25.3008L65.9427 10.6285H72.1582L64.1603 33.3121ZM88.2757 33.3121H81.7559V7.61306H72.7585V1.80715H97.2731V7.61306H88.2757V33.3121ZM106.325 33.672C104.123 33.672 102.138 33.1771 100.37 32.1868C98.6029 31.1667 97.2266 29.7717 96.2414 28.0011C95.2562 26.2011 94.7634 24.1907 94.7634 21.9703C94.7634 19.75 95.2562 17.7547 96.2414 15.9844C97.2266 14.1841 98.6029 12.7889 100.37 11.7987C102.138 10.7786 104.123 10.2685 106.325 10.2685C108.528 10.2685 110.513 10.7786 112.28 11.7987C114.048 12.7889 115.424 14.1841 116.409 15.9844C117.395 17.7547 117.887 19.75 117.887 21.9703C117.887 24.1907 117.395 26.2011 116.409 28.0011C115.424 29.7717 114.048 31.1667 112.28 32.1868C110.513 33.1771 108.528 33.672 106.325 33.672ZM106.325 28.2712C107.948 28.2712 109.266 27.6864 110.281 26.5159C111.295 25.3458 111.802 23.8306 111.802 21.9703C111.802 20.08 111.295 18.5498 110.281 17.3796C109.266 16.2094 107.948 15.6243 106.325 15.6243C104.702 15.6243 103.384 16.2094 102.37 17.3796C101.356 18.5498 100.848 20.08 100.848 21.9703C100.848 23.8306 101.356 25.3458 102.37 26.5159C103.384 27.6864 104.702 28.2712 106.325 28.2712ZM131.624 33.672C129.422 33.672 127.436 33.1771 125.669 32.1868C123.901 31.1667 122.525 29.7717 121.54 28.0011C120.555 26.2011 120.062 24.1907 120.062 21.9703C120.062 19.75 120.555 17.7547 121.54 15.9844C122.525 14.1841 123.901 12.7889 125.669 11.7987C127.436 10.7786 129.422 10.2685 131.624 10.2685C133.826 10.2685 135.811 10.7786 137.579 11.7987C139.346 12.7889 140.722 14.1841 141.708 15.9844C142.693 17.7547 143.186 19.75 143.186 21.9703C143.186 24.1907 142.693 26.2011 141.708 28.0011C140.722 29.7717 139.346 31.1667 137.579 32.1868C135.811 33.1771 133.826 33.672 131.624 33.672ZM131.624 28.2712C133.246 28.2712 134.565 27.6864 135.579 26.5159C136.593 25.3458 137.101 23.8306 137.101 21.9703C137.101 20.08 136.593 18.5498 135.579 17.3796C134.565 16.2094 133.246 15.6243 131.624 15.6243C130.001 15.6243 128.682 16.2094 127.668 17.3796C126.654 18.5498 126.147 20.08 126.147 21.9703C126.147 23.8306 126.654 25.3458 127.668 26.5159C128.682 27.6864 130.001 28.2712 131.624 28.2712ZM152.88 33.3121H146.838V0.771999H152.88V33.3121ZM165.652 33.672C162.957 33.672 160.769 32.9522 159.088 31.5117C157.437 30.0418 156.553 28.0914 156.437 25.661H161.653C161.768 26.6812 162.174 27.4913 162.87 28.0914C163.594 28.6613 164.522 28.9463 165.652 28.9463C166.579 28.9463 167.332 28.7363 167.912 28.3163C168.52 27.8963 168.825 27.3712 168.825 26.7412C168.825 25.9008 168.477 25.3159 167.782 24.9858C167.086 24.6557 165.985 24.3557 164.478 24.0856C162.913 23.7856 161.638 23.4556 160.653 23.0955C159.668 22.7354 158.813 22.0903 158.089 21.1602C157.393 20.2 157.045 18.8498 157.045 17.1096C157.045 15.7893 157.379 14.6192 158.045 13.599C158.741 12.5488 159.682 11.7387 160.871 11.1686C162.058 10.5685 163.391 10.2685 164.869 10.2685C167.506 10.2685 169.636 10.9436 171.259 12.2938C172.91 13.644 173.794 15.4293 173.91 17.6496H168.651C168.535 16.7195 168.115 15.9994 167.39 15.4893C166.695 14.9492 165.912 14.6792 165.043 14.6792C164.174 14.6792 163.478 14.8742 162.957 15.2643C162.435 15.6543 162.174 16.1944 162.174 16.8845C162.174 17.7246 162.508 18.2948 163.174 18.5948C163.87 18.8648 164.956 19.1049 166.434 19.3149C168.028 19.5549 169.331 19.855 170.346 20.215C171.389 20.5451 172.287 21.2052 173.041 22.1953C173.794 23.1855 174.171 24.6257 174.171 26.5159C174.171 28.6762 173.389 30.4166 171.824 31.737C170.288 33.0271 168.23 33.672 165.652 33.672Z"},null,-1)]))}const vme=bc(dme,[["render",Cme]]),Ame={"h-full":"","w-full":"",flex:"","items-center":""},Ime={flex:"~ col gap2",ma:"","px-5":""},pme={flex:"~ col","mt-20":"","items-center":""},mme={flex:"~","mt--10":"","items-center":"","justify-center":""},yme={class:"mr-1"},bme={key:0,class:"inline-block w20"},wme=["src","alt"],$me={key:1,class:"mr2 inline-block min-w-20 text-center text-10 font-600"},_me={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},Mme={op40:""},zme={flex:"~ gap2 wrap"},Eme={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},Sme=["href"],Tme=ce({__name:"About",setup(t){const r=yf(),e=Qu(),n=G(!1),i=G(!1);function o(){n.value=!0}function a(){n.value=!0,i.value=!0}return(s,l)=>{var c;return z(),H("div",Ame,[w("div",Ime,[l[5]||(l[5]=w("div",{"flex-auto":""},null,-1)),w("div",pme,[w("div",mme,[w("span",yme,[n.value?oe("",!0):(z(),H("span",bme)),$t(w("img",{src:y(e).logo,alt:`${y(e).label} Logo`,class:"inline-block h16",onError:a,onLoad:o},null,40,wme),[[Sae,n.value&&!i.value]]),i.value?(z(),H("span",$me,ze(y(e).label),1)):oe("",!0)]),w("span",null,[D(vme,{"h-18":""})])]),w("div",_me,[w("span",Mme,ze(y(e).label)+" DevTools ",1)])]),l[6]||(l[6]=w("div",{"flex-auto":""},null,-1)),w("div",zme,[w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[0]||(l[0]=u=>y(r).push("/state"))},l[2]||(l[2]=[w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),w("code",null,"State",-1)])),(c=y(e).timelineLayerIds)!=null&&c.length?(z(),H("div",{key:0,flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:l[1]||(l[1]=u=>y(r).push("/timeline"))},l[3]||(l[3]=[w("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),w("div",null,"Timeline",-1)]))):oe("",!0)]),w("div",Eme,[w("a",{href:y(e).homepage,target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},l[4]||(l[4]=[w("div",{"i-carbon-document":""},null,-1),Se(" View Documentation ")]),8,Sme)]),l[7]||(l[7]=w("div",{"flex-auto":""},null,-1))])])}}}),Lme={class:"flex-1 overflow-y-auto p2"},kme={class:"max-w-[190px] flex-1 select-none py-1.5 text-sm"},Ome={class:"w-4/5"},xme={key:0,class:"flex justify-start"},Hme={key:1},QG=ce({__name:"Settings",props:{pluginId:{},options:{},values:{}},emits:["update"],setup(t,{emit:r}){const e=t,n=r,i=F(()=>e.options),o=F(()=>e.values);function a(s,l){Ae.value.updatePluginSettings(e.pluginId,s,l),Ae.value.getPluginSettings(e.pluginId).then(c=>{n("update",c)})}return(s,l)=>(z(),H("div",Lme,[w("ul",null,[(z(!0),H(Ee,null,At(i.value,(c,u)=>(z(),H("li",{key:u,class:"flex items-center py-2"},[w("div",kme,ze(c.label),1),w("div",Ome,[c.type==="boolean"?(z(),H("div",xme,[D(y($8),{"model-value":o.value[u],class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])])):c.type==="choice"?(z(),H("div",Hme,[D(y(zd),{"model-value":o.value[u],options:c.options,"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","options","onUpdate:modelValue"])])):c.type==="text"?(z(),ne(y(as),{key:2,"model-value":o.value[u],"onUpdate:modelValue":g=>a(u,g)},null,8,["model-value","onUpdate:modelValue"])):oe("",!0)])]))),128))])]))}}),Vme={class:"h-full flex flex-col"},Pme=ce({__name:"Settings",setup(t){const r=br("pluginSettings"),e=Qu(),n=F(()=>r.value.options),i=F(()=>r.value.values);function o(a){r.value=a}return(a,s)=>(z(),H("div",Vme,[D(Xu,{"doc-link":y(e).homepage},{default:W(()=>[D(qu)]),_:1},8,["doc-link"]),D(QG,{"plugin-id":y(e).pluginId,options:n.value,values:i.value,onUpdate:o},null,8,["plugin-id","options","values"])]))}}),Rme={class:"h-full flex flex-col"},Dme={class:"h-full flex flex-col p2"},Nme={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},Bme={class:"flex items-center gap-2 px-1"},Fme=["onClick"],jme={class:"no-scrollbar flex-1 select-none overflow-scroll"},Ume={class:"h-full flex flex-col p2"},Gme={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},Wme={class:"flex items-center gap-2 px-1"},Zme=["onClick"],Kme=ce({__name:"Index",setup(t){const{expanded:r}=ls(),{expanded:e}=ls("custom-inspector-state"),n=Qu(),i=F(()=>n.value.id),o=G([]),a=G([]),s=G([]),l=F(()=>{var k,O;return(k=s.value)!=null&&k.length?f((O=s.value)==null?void 0:O[0]):[]}),c=F(()=>v(s.value)),u=F(()=>c.value.map(k=>k.id)),g=G(""),h=G({}),d=F(()=>!Object.keys(h.value).length);function f(k,O=[],P=[]){var B;return O.push(k.id),((B=k.children)==null?void 0:B.length)===0&&P.push([...O]),Array.isArray(k.children)&&k.children.forEach(te=>{f(te,O,P)}),O.pop(),P}function C(k,O){const P=[];return k?.forEach(B=>{P.push(...B.slice(0,O+1))}),[...new Set(P)]}function v(k){const O=[],P=B=>{B?.forEach(te=>{var ee;O.push(te),(ee=te.children)!=null&&ee.length&&P(te.children)})};return P(k),O}function A(){Ae.value.getInspectorNodeActions(i.value).then(k=>{o.value=k})}function I(){Ae.value.getInspectorActions(i.value).then(k=>{a.value=k})}A(),I();function p(k){Ae.value.callInspectorNodeAction(i.value,k,g.value)}function m(k){Ae.value.callInspectorAction(i.value,k)}function b(k){var O;for(const P in k)(O=k[P])!=null&&O.length||delete k[P];return k}function _(k){Ae.value.getInspectorState({inspectorId:i.value,nodeId:k}).then(O=>{const P=Qr(O);P&&(h.value=b(P),e.value=Array.from({length:Object.keys(h.value).length},(B,te)=>`${te}`))})}function L(){h.value={}}Je(g,()=>{L(),_(g.value)});const M=()=>{Ae.value.getInspectorTree({inspectorId:i.value,filter:""}).then(k=>{const O=Qr(k);s.value=O,!g.value&&O.length&&(g.value=O[0].id,r.value=C(l.value,1),_(O[0].id))})};GG(i).toBeTruthy().then(M);function S(k){var O,P;const B=Qr(k);!B.rootNodes.length||B.inspectorId!==i.value||(s.value=B.rootNodes,u.value.includes(g.value)||(g.value=(P=(O=s.value)==null?void 0:O[0])==null?void 0:P.id,r.value=C(l.value,1)))}function T(k){const O=Qr(k);if(O.inspectorId!==i.value||!O.state||O.nodeId!==g.value)return;const{inspectorId:P,...B}=O.state;h.value=b(B)}return Ga(()=>{Ae.functions.on(Nt.INSPECTOR_TREE_UPDATED,S),Ae.functions.on(Nt.INSPECTOR_STATE_UPDATED,T)}),fn(()=>{Ae.functions.off(Nt.INSPECTOR_TREE_UPDATED,S),Ae.functions.off(Nt.INSPECTOR_STATE_UPDATED,T)}),(k,O)=>(z(),H("div",Rme,[D(Xu,{"doc-link":y(n).homepage},{default:W(()=>[D(qu)]),_:1},8,["doc-link"]),s.value.length?(z(),ne(y(R1),{key:0,class:"flex-1 overflow-auto"},{default:W(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:W(()=>{var P;return[w("div",Dme,[(P=a.value)!=null&&P.length?(z(),H("div",Nme,[w("div",Bme,[(z(!0),H(Ee,null,At(a.value,(B,te)=>$t((z(),H("div",{key:te,class:"flex items-center gap1",onClick:ee=>m(te)},[D(y(Md),{name:`baseline-${B.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,Fme)),[[y(sr),{content:B.tooltip},void 0,{"bottom-end":!0}]])),128))])])):oe("",!0),w("div",jme,[D(wf,{modelValue:g.value,"onUpdate:modelValue":O[0]||(O[0]=B=>g.value=B),data:s.value},null,8,["modelValue","data"])])])]}),_:1}),D(y(hn),{size:"60"},{default:W(()=>{var P;return[w("div",Ume,[(P=o.value)!=null&&P.length?(z(),H("div",Gme,[w("div",Wme,[(z(!0),H(Ee,null,At(o.value,(B,te)=>$t((z(),H("div",{key:te,class:"flex items-center gap1",onClick:ee=>p(te)},[D(y(Md),{name:`baseline-${B.icon.replace(/\_/g,"-")}`,"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,8,["name"])],8,Zme)),[[y(sr),{content:B.tooltip},void 0,{"bottom-end":!0}]])),128))])])):oe("",!0),g.value&&!d.value?(z(),ne(bf,{key:1,data:h.value,"node-id":g.value,"inspector-id":i.value,"expanded-state-id":"custom-inspector-state",class:"no-scrollbar flex-1 select-none overflow-scroll"},null,8,["data","node-id","inspector-id"])):(z(),ne(Td,{key:2},{default:W(()=>O[1]||(O[1]=[Se(" No Data ")])),_:1}))])]}),_:1})]),_:1})):(z(),ne(Td,{key:1},{default:W(()=>O[2]||(O[2]=[Se(" No Data ")])),_:1}))]))}}),Yme=ce({__name:"Index",setup(t){const r=Qu();return(e,n)=>(z(),ne(yI,{"layer-ids":y(r).timelineLayerIds,"doc-link":y(r).homepage},null,8,["layer-ids","doc-link"]))}}),Xme={"h-full":"","w-full":""},qme={key:0},JG=ce({__name:"index",props:{id:{},pluginId:{}},emits:["loadError"],setup(t,{emit:r}){const e=t,n=r,i=qG(),o=G(!1),a=G(null);Di("pluginSettings",a);const s=F(()=>{var g;return[{path:"/state",name:"State",component:Kme,icon:"i-carbon-tree-view-alt"},((g=i.value.timelineLayerIds)==null?void 0:g.length)&&{path:"/timeline",name:"Timeline",component:Yme,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:Tme},a.value&&{path:"/settings",name:"Settings",component:Pme,icon:"i-mdi:cog-outline"}].filter(Boolean)}),{VirtualRouterView:l,restoreRouter:c}=bw(s,{defaultRoutePath:"/state"});function u(){o.value=!0,Ga(()=>{Ae.value.getInspectorInfo(e.id).then(g=>{if(!g){n("loadError");return}const h={homepage:g?.homepage,id:g?.id,label:g?.label,logo:g?.logo,timelineLayerIds:g?.timelineLayers.map(d=>d.id),pluginId:e.pluginId};i.value=h,c(),o.value=!1}),Ae.value.getPluginSettings(e.pluginId).then(g=>{g.options?a.value=g:a.value=null})})}return Je(()=>e.id,()=>{u()},{immediate:!0}),fn(()=>{Ae.value.unhighlight()}),(g,h)=>(z(),H("div",Xme,[o.value?(z(),H("div",qme,[D(hme)])):(z(),ne(y(l),{key:1}))]))}}),Qme={},Jme={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e9e(t,r){return z(),H("svg",Jme,r[0]||(r[0]=[oF('',2)]))}const t9e=bc(Qme,[["render",e9e]]),r9e={"h-full":"","w-full":"",flex:"","items-center":""},n9e={flex:"~ col gap2",ma:"","px-5":""},i9e={flex:"~ col","mt-20":"","items-center":""},o9e={flex:"~","mt--10":"","items-center":"","justify-center":""},a9e={flex:"~ gap2 wrap"},s9e=ce({__name:"About",setup(t){const r=yf();return(e,n)=>(z(),H("div",r9e,[w("div",n9e,[n[5]||(n[5]=w("div",{"flex-auto":""},null,-1)),w("div",i9e,[w("div",o9e,[D(t9e,{"h-18":""})]),n[2]||(n[2]=w("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[w("span",{op40:""}," Pinia DevTools ")],-1))]),n[6]||(n[6]=w("div",{"flex-auto":""},null,-1)),w("div",a9e,[w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/store"))},n[3]||(n[3]=[w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),w("code",null,"Store",-1)])),w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},n[4]||(n[4]=[w("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),w("div",null,"Timeline",-1)]))]),n[7]||(n[7]=w("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[w("a",{href:"https://github.com/vuejs/pinia",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),Se(" Star on GitHub ")]),w("a",{href:"https://pinia.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-document":""}),Se(" View Documentation ")])],-1)),n[8]||(n[8]=w("div",{"flex-auto":""},null,-1))])]))}}),l9e={class:"h-full flex flex-col"},c9e=ce({__name:"Settings",setup(t){const r=br("pluginSettings"),e=F(()=>r.value.options),n=F(()=>r.value.values);function i(o){r.value=o}return(o,a)=>(z(),H("div",l9e,[D(Xu,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:W(()=>[D(qu)]),_:1}),D(QG,{"plugin-id":"dev.esm.pinia",options:e.value,values:n.value,onUpdate:i},null,8,["options","values"])]))}}),u9e={class:"h-full flex flex-col"},g9e={class:"h-full flex flex-col p2"},h9e={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},d9e={class:"flex items-center gap-2 px-1"},f9e=["onClick"],C9e={class:"no-scrollbar flex-1 select-none overflow-scroll"},v9e={class:"h-full flex flex-col p2"},A9e={key:0,class:"mb-1 flex justify-end pb-1",border:"b dashed base"},I9e={class:"flex items-center gap-2 px-1"},p9e=["onClick"],Pa="pinia",m9e=ce({__name:"Index",setup(t){const{expanded:r}=ls(),{expanded:e}=ls("pinia-store-state"),n=G([]),i=G([]),o=G(""),a=G([]),s=F(()=>{var M,S;return(M=a.value)!=null&&M.length?h((S=a.value)==null?void 0:S[0]):[]}),l=F(()=>f(a.value)),c=F(()=>l.value.map(M=>M.id)),u=G({}),g=F(()=>{var M,S;return!((M=u.value.state)!=null&&M.length)&&!((S=u.value.getters)!=null&&S.length)});function h(M,S=[],T=[]){var k;return S.push(M.id),((k=M.children)==null?void 0:k.length)===0&&T.push([...S]),Array.isArray(M.children)&&M.children.forEach(O=>{h(O,S,T)}),S.pop(),T}function d(M,S){const T=[];return M?.forEach(k=>{T.push(...k.slice(0,S+1))}),[...new Set(T)]}function f(M){const S=[],T=k=>{k?.forEach(O=>{var P;S.push(O),(P=O.children)!=null&&P.length&&T(O.children)})};return T(M),S}function C(){Ae.value.getInspectorNodeActions(Pa).then(M=>{n.value=M})}function v(){Ae.value.getInspectorActions(Pa).then(M=>{i.value=M})}C(),v();function A(M){Ae.value.callInspectorNodeAction(Pa,M,o.value)}function I(M){Ae.value.callInspectorAction(Pa,M)}function p(M){var S;for(const T in M)(S=M[T])!=null&&S.length||delete M[T];return M}function m(M){Ae.value.getInspectorState({inspectorId:Pa,nodeId:M}).then(S=>{const T=Qr(S);T&&(u.value=p(T),e.value=Array.from({length:Object.keys(u.value).length},(k,O)=>`${O}`))})}function b(){u.value={}}Je(o,()=>{b(),m(o.value)}),Ae.value.getInspectorTree({inspectorId:Pa,filter:""}).then(M=>{const S=Qr(M);a.value=S,!o.value&&S.length&&(o.value=S[0].id,m(S[0].id),r.value=d(s.value,1))});function _(M){const S=Qr(M);S.inspectorId!==Pa||!S.rootNodes.length||(a.value=S.rootNodes,c.value.includes(o.value)||(o.value=S.rootNodes[0].id,r.value=d(s.value,1),m(S.rootNodes[0].id)))}function L(M){const S=Qr(M);if(S.inspectorId!==Pa)return;const T=S.state;u.value=p({state:T.state,getters:T.getters})}return Ae.functions.on(Nt.INSPECTOR_TREE_UPDATED,_),Ae.functions.on(Nt.INSPECTOR_STATE_UPDATED,L),fn(()=>{Ae.functions.off(Nt.INSPECTOR_TREE_UPDATED,_),Ae.functions.off(Nt.INSPECTOR_STATE_UPDATED,L)}),(M,S)=>(z(),H("div",u9e,[D(Xu,{"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"},{default:W(()=>[D(qu)]),_:1}),D(y(R1),{class:"flex-1 overflow-auto"},{default:W(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:W(()=>{var T;return[w("div",g9e,[(T=i.value)!=null&&T.length?(z(),H("div",h9e,[w("div",d9e,[(z(!0),H(Ee,null,At(i.value,(k,O)=>$t((z(),H("div",{key:O,class:"flex items-center gap1",onClick:P=>I(O)},[w("i",{class:Te(`i-ic-baseline-${k.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,f9e)),[[y(sr),{content:k.tooltip},void 0,{"bottom-end":!0}]])),128))])])):oe("",!0),w("div",C9e,[D(wf,{modelValue:o.value,"onUpdate:modelValue":S[0]||(S[0]=k=>o.value=k),data:a.value},null,8,["modelValue","data"])])])]}),_:1}),D(y(hn),{size:"60"},{default:W(()=>{var T;return[w("div",v9e,[(T=n.value)!=null&&T.length?(z(),H("div",A9e,[w("div",I9e,[(z(!0),H(Ee,null,At(n.value,(k,O)=>$t((z(),H("div",{key:O,class:"flex items-center gap1",onClick:P=>A(O)},[w("i",{class:Te(`i-ic-baseline-${k.icon.replace(/\_/g,"-")}`),"cursor-pointer":"",op70:"","text-base":"","hover:op100":""},null,2)],8,p9e)),[[y(sr),{content:k.tooltip},void 0,{"bottom-end":!0}]])),128))])])):oe("",!0),o.value&&!g.value?(z(),ne(bf,{key:1,class:"no-scrollbar flex-1 select-none overflow-scroll",data:u.value,"node-id":o.value,"inspector-id":Pa,"expanded-state-id":"pinia-store-state"},null,8,["data","node-id"])):(z(),ne(Td,{key:2},{default:W(()=>S[1]||(S[1]=[Se(" No Data ")])),_:1}))])]}),_:1})]),_:1})]))}}),y9e=ce({__name:"Index",setup(t){const r=["pinia:mutations"];return(e,n)=>(z(),ne(yI,{"layer-ids":r,"doc-link":"https://pinia.vuejs.org/","github-repo-link":"https://github.com/vuejs/pinia"}))}}),b9e={"h-full":"","w-full":""},w9e=ce({__name:"index",setup(t){const r=G(null);Di("pluginSettings",r);const e=F(()=>[{path:"/store",name:"Store",component:m9e,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:y9e,icon:"i-mdi:timeline-clock-outline"},{path:"/",name:"About",component:s9e,icon:"i-logos-pinia"},r.value&&{path:"/settings",name:"Settings",component:c9e,icon:"i-mdi:cog-outline"}].filter(Boolean)),{VirtualRouterView:n,restoreRouter:i}=bw(e,{defaultRoutePath:"/store"});return Ga(()=>{Ae.value.getPluginSettings("dev.esm.pinia").then(o=>{o.options?r.value=o:r.value=null})}),(o,a)=>(z(),H("div",b9e,[D(y(n))]))}}),$9e={},_9e={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M9e(t,r){return z(),H("svg",_9e,r[0]||(r[0]=[w("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8em",height:"8em",viewBox:"0 -4 24 24"},[w("path",{fill:"#3dd68c",d:"M4 15V8.5a4.5 4.5 0 0 1 9 0v7a2.5 2.5 0 0 0 5 0V8.83a3.001 3.001 0 1 1 2 0v6.67a4.5 4.5 0 1 1-9 0v-7a2.5 2.5 0 0 0-5 0V15h3l-4 5l-4-5zm15-8a1 1 0 1 0 0-2a1 1 0 0 0 0 2"})],-1),w("path",{d:"M152.571 118V46.1333H176.8C183.576 46.1333 189.77 47.468 195.383 50.1373C200.995 52.8067 205.478 56.8449 208.832 62.252C212.186 67.5907 213.863 74.1956 213.863 82.0667C213.863 89.8693 212.186 96.4742 208.832 101.881C205.478 107.288 200.995 111.327 195.383 113.996C189.77 116.665 183.576 118 176.8 118H152.571ZM175.157 104.653C181.796 104.653 187.306 102.874 191.687 99.3147C196.067 95.6871 198.257 89.9378 198.257 82.0667C198.257 74.1956 196.067 68.4462 191.687 64.8187C187.306 61.1911 181.796 59.3773 175.157 59.3773H167.971V104.653H175.157ZM270.18 100.444C269.153 105.988 266.381 110.437 261.864 113.791C257.347 117.144 251.905 118.821 245.54 118.821C239.928 118.821 235.102 117.555 231.064 115.023C227.094 112.422 224.083 109.068 222.029 104.961C219.976 100.855 218.949 96.5427 218.949 92.0253C218.949 87.4396 219.873 83.1276 221.721 79.0893C223.638 75.0511 226.513 71.7658 230.345 69.2333C234.247 66.7009 238.969 65.4347 244.513 65.4347C250.263 65.4347 255.054 66.6667 258.887 69.1307C262.72 71.5947 265.526 74.7431 267.305 78.576C269.153 82.4089 270.077 86.4471 270.077 90.6907C270.077 92.2649 270.009 93.8049 269.872 95.3107H232.707C233.254 99.0067 234.623 101.916 236.813 104.037C239.072 106.091 241.981 107.117 245.54 107.117C248.415 107.117 250.776 106.57 252.624 105.475C254.472 104.311 255.67 102.634 256.217 100.444H270.18ZM244.513 75.9067C241.228 75.9067 238.627 76.7622 236.711 78.4733C234.794 80.116 233.528 82.7169 232.912 86.276H255.807C255.601 83.2644 254.506 80.8004 252.521 78.884C250.537 76.8991 247.867 75.9067 244.513 75.9067ZM302.77 118H289.629L270.738 66.256H285.317L296.2 99.7253L306.98 66.256H321.661L302.77 118ZM359.731 118H344.331V59.3773H323.079V46.1333H380.983V59.3773H359.731V118ZM402.364 118.821C397.163 118.821 392.474 117.692 388.299 115.433C384.124 113.106 380.873 109.924 378.546 105.885C376.219 101.779 375.055 97.1929 375.055 92.128C375.055 87.0631 376.219 82.5116 378.546 78.4733C380.873 74.3667 384.124 71.184 388.299 68.9253C392.474 66.5982 397.163 65.4347 402.364 65.4347C407.566 65.4347 412.255 66.5982 416.43 68.9253C420.605 71.184 423.856 74.3667 426.183 78.4733C428.51 82.5116 429.674 87.0631 429.674 92.128C429.674 97.1929 428.51 101.779 426.183 105.885C423.856 109.924 420.605 113.106 416.43 115.433C412.255 117.692 407.566 118.821 402.364 118.821ZM402.364 106.501C406.197 106.501 409.311 105.167 411.707 102.497C414.103 99.828 415.3 96.3716 415.3 92.128C415.3 87.816 414.103 84.3253 411.707 81.656C409.311 78.9867 406.197 77.652 402.364 77.652C398.531 77.652 395.417 78.9867 393.022 81.656C390.626 84.3253 389.428 87.816 389.428 92.128C389.428 96.3716 390.626 99.828 393.022 102.497C395.417 105.167 398.531 106.501 402.364 106.501ZM462.12 118.821C456.918 118.821 452.229 117.692 448.054 115.433C443.879 113.106 440.628 109.924 438.301 105.885C435.974 101.779 434.81 97.1929 434.81 92.128C434.81 87.0631 435.974 82.5116 438.301 78.4733C440.628 74.3667 443.879 71.184 448.054 68.9253C452.229 66.5982 456.918 65.4347 462.12 65.4347C467.321 65.4347 472.01 66.5982 476.185 68.9253C480.36 71.184 483.611 74.3667 485.938 78.4733C488.265 82.5116 489.429 87.0631 489.429 92.128C489.429 97.1929 488.265 101.779 485.938 105.885C483.611 109.924 480.36 113.106 476.185 115.433C472.01 117.692 467.321 118.821 462.12 118.821ZM462.12 106.501C465.952 106.501 469.067 105.167 471.462 102.497C473.858 99.828 475.056 96.3716 475.056 92.128C475.056 87.816 473.858 84.3253 471.462 81.656C469.067 78.9867 465.952 77.652 462.12 77.652C458.287 77.652 455.172 78.9867 452.777 81.656C450.381 84.3253 449.184 87.816 449.184 92.128C449.184 96.3716 450.381 99.828 452.777 102.497C455.172 105.167 458.287 106.501 462.12 106.501ZM512.327 118H498.056V43.772H512.327V118ZM542.494 118.821C536.129 118.821 530.961 117.179 526.991 113.893C523.09 110.54 521.002 106.091 520.729 100.547H533.049C533.322 102.874 534.281 104.722 535.923 106.091C537.634 107.391 539.825 108.041 542.494 108.041C544.684 108.041 546.464 107.562 547.833 106.604C549.27 105.646 549.989 104.448 549.989 103.011C549.989 101.094 549.167 99.7596 547.525 99.0067C545.882 98.2538 543.281 97.5693 539.722 96.9533C536.026 96.2689 533.014 95.516 530.687 94.6947C528.36 93.8733 526.341 92.4018 524.63 90.28C522.987 88.0898 522.166 85.0098 522.166 81.04C522.166 78.0284 522.953 75.3591 524.527 73.032C526.17 70.6364 528.394 68.7884 531.201 67.488C534.007 66.1191 537.155 65.4347 540.646 65.4347C546.874 65.4347 551.905 66.9747 555.738 70.0547C559.639 73.1347 561.727 77.2071 562.001 82.272H549.578C549.304 80.1502 548.312 78.5076 546.601 77.344C544.958 76.112 543.11 75.496 541.057 75.496C539.003 75.496 537.361 75.9409 536.129 76.8307C534.897 77.7204 534.281 78.9524 534.281 80.5267C534.281 82.4431 535.068 83.7436 536.642 84.428C538.285 85.044 540.851 85.5916 544.342 86.0707C548.106 86.6182 551.186 87.3027 553.582 88.124C556.046 88.8769 558.168 90.3827 559.947 92.6413C561.727 94.9 562.617 98.1853 562.617 102.497C562.617 107.425 560.769 111.395 557.073 114.407C553.445 117.35 548.585 118.821 542.494 118.821Z",fill:"currentColor"},null,-1)]))}const z9e=bc($9e,[["render",M9e]]),E9e={"h-full":"","w-full":"",flex:"","items-center":""},S9e={flex:"~ col gap2",ma:"","px-5":""},T9e={flex:"~ col","mt-20":"","items-center":""},L9e={flex:"~","mt--10":"","items-center":"","justify-center":""},k9e={flex:"~ gap2 wrap"},O9e=ce({__name:"About",setup(t){const r=yf();return(e,n)=>(z(),H("div",E9e,[w("div",S9e,[n[5]||(n[5]=w("div",{"flex-auto":""},null,-1)),w("div",T9e,[w("div",L9e,[D(z9e,{"h-18":""})]),n[2]||(n[2]=w("div",{mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},[w("span",{op40:""}," Router DevTools ")],-1))]),n[6]||(n[6]=w("div",{"flex-auto":""},null,-1)),w("div",k9e,[w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[0]||(n[0]=i=>y(r).push("/routes"))},n[3]||(n[3]=[w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1),w("code",null,"Routes",-1)])),w("div",{flex:"~ col auto","min-w-40":"",p4:"","theme-card-lime":"",onClick:n[1]||(n[1]=i=>y(r).push("/timeline"))},n[4]||(n[4]=[w("div",{"i-mdi:timeline-clock-outline":"","text-3xl":""},null,-1),w("div",null,"Timeline",-1)]))]),n[7]||(n[7]=w("div",{flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},[w("a",{href:"https://github.com/vuejs/router",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),Se(" Star on GitHub ")]),w("a",{href:"https://router.vuejs.org/",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-document":""}),Se(" View Documentation ")])],-1)),n[8]||(n[8]=w("div",{"flex-auto":""},null,-1))])]))}}),x9e={class:"h-full flex flex-col"},H9e={"h-full":"","select-none":"","overflow-scroll":"",p2:"",class:"no-scrollbar"},V9e={"h-full":"","select-none":"","overflow-scroll":"",class:"no-scrollbar"},P9e=ce({__name:"Index",setup(t){const{expanded:r}=ls(),{expanded:e}=ls("routes-state"),n=Qu(),i=F(()=>n.value.id),o=G(""),a=G([]),s=F(()=>{var m,b;return(m=a.value)!=null&&m.length?g((b=a.value)==null?void 0:b[0]):[]}),l=F(()=>d(a.value)),c=F(()=>l.value.map(m=>m.id)),u=G({});function g(m,b=[],_=[]){var L;return b.push(m.id),((L=m.children)==null?void 0:L.length)===0&&_.push([...b]),Array.isArray(m.children)&&m.children.forEach(M=>{g(M,b,_)}),b.pop(),_}function h(m,b){const _=[];return m?.forEach(L=>{_.push(...L.slice(0,b+1))}),[...new Set(_)]}function d(m){const b=[],_=L=>{L?.forEach(M=>{var S;b.push(M),(S=M.children)!=null&&S.length&&_(M.children)})};return _(m),b}function f(m){var b;for(const _ in m)(b=m[_])!=null&&b.length||delete m[_];return m}function C(m){Ae.value.getInspectorState({inspectorId:i.value,nodeId:m}).then(b=>{const _=Qr(b);_&&(u.value=f(_),e.value=Array.from({length:Object.keys(u.value).length},(L,M)=>`${M}`))})}function v(){u.value={}}Je(o,()=>{v(),C(o.value)});const A=()=>{Ae.value.getInspectorTree({inspectorId:i.value,filter:""}).then(m=>{const b=Qr(m);a.value=b,!o.value&&b.length&&(o.value=b[0].id,C(b[0].id),r.value=h(s.value,1))})};GG(i).toBeTruthy().then(A);function I(m){const b=Qr(m);b.inspectorId!==i.value||!b.rootNodes.length||(a.value=b.rootNodes,c.value.includes(o.value)||(o.value=b.rootNodes[0].id,r.value=h(s.value,1),C(b.rootNodes[0].id)))}function p(m){const b=Qr(m);if(b.inspectorId!==i.value)return;const _=b.state;u.value=f(_)}return Ae.functions.on(Nt.INSPECTOR_TREE_UPDATED,I),Ae.functions.on(Nt.INSPECTOR_STATE_UPDATED,p),fn(()=>{Ae.functions.off(Nt.INSPECTOR_TREE_UPDATED,I),Ae.functions.off(Nt.INSPECTOR_STATE_UPDATED,p)}),(m,b)=>(z(),H("div",x9e,[D(Xu,{"doc-link":"https://router.vuejs.org/","github-repo-link":"https://github.com/vuejs/router"},{default:W(()=>[D(qu)]),_:1}),D(y(R1),{class:"flex-1 overflow-auto"},{default:W(()=>[D(y(hn),{border:"r base",size:"40","h-full":""},{default:W(()=>[w("div",H9e,[D(wf,{modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=_=>o.value=_),data:a.value},null,8,["modelValue","data"])])]),_:1}),D(y(hn),{size:"60"},{default:W(()=>[w("div",V9e,[o.value?(z(),ne(bf,{key:0,class:"p3",data:u.value,"node-id":"","inspector-id":"router","expanded-state-id":"routes-state"},null,8,["data"])):(z(),ne(Td,{key:1},{default:W(()=>b[1]||(b[1]=[Se(" No Data ")])),_:1}))])]),_:1})]),_:1})]))}}),R9e=ce({__name:"Index",setup(t){const r=Qu();return(e,n)=>(z(),ne(yI,{"layer-ids":y(r).timelineLayerIds,"doc-link":"https://router.vuejs.org/","github-repo-link":"https://github.com/vuejs/router"},null,8,["layer-ids"]))}}),D9e={"h-full":"","w-full":""},N9e=ce({__name:"index",props:{id:{}},setup(t){const r=t,e=qG(),n=G(!1),{VirtualRouterView:i,restoreRouter:o}=bw([{path:"/routes",name:"Routes",component:P9e,icon:"i-carbon-tree-view-alt"},{path:"/timeline",name:"Timeline",component:R9e,icon:"i-mdi:timeline-clock-outline"},{path:"/about",name:"About",component:O9e,icon:"i-ri-route-line"}],{defaultRoutePath:"/routes"});function a(){n.value=!0,Ga(()=>{Ae.value.getInspectorInfo(r.id).then(s=>{if(!s)return;const l={homepage:s?.homepage,id:s?.id,label:s?.label,logo:s?.logo,timelineLayerIds:s?.timelineLayers.map(c=>c.id)};e.value=l,o(),n.value=!1})})}return Je(()=>r.id,s=>{s&&a()}),(s,l)=>(z(),H("div",D9e,[D(y(i))]))}}),B9e=ce({__name:"components",setup(t){function r(){Ae.value.emit("toggle-panel",!1)}function e(){Ae.value.emit("toggle-panel",!0)}return(n,i)=>(z(),ne(y(lme),{onOpenInEditor:y(fd),onOnInspectComponentStart:r,onOnInspectComponentEnd:e},null,8,["onOpenInEditor"]))}}),F9e=[["app",[{icon:"i-carbon-information",name:"overview",order:-100,path:"overview",title:"Overview"},{icon:"i-carbon-assembly-cluster",name:"components",order:-100,path:"components",title:"Components"},{icon:"i-carbon-tree-view-alt",name:"pages",order:-100,path:"pages",title:"Pages"},{icon:"i-carbon-roadmap",name:"Timeline",order:-100,path:"timeline",title:"Timeline"},{icon:"i-carbon-image-copy",name:"assets",order:-100,path:"assets",title:"Assets"}]],["modules",[{icon:"i-ri-route-line",name:"router",order:-100,path:"router",title:"Router"},{icon:"i-logos-pinia",name:"pinia",order:-100,path:"pinia",title:"Pinia"}]],["advanced",[{icon:"i-carbon-network-4",name:"graph",order:-100,path:"graph",title:"Graph"}]]],eW=["assets","graph","vite-inspect"];function j9e(t,r){const e=Cv(F9e);return e.forEach(n=>{if(n[0]==="modules"){n[1]=n[1].filter(o=>o.name==="router"?r.findIndex(a=>a.name.startsWith("router-inspector"))>-1:o.name==="pinia"?r.findIndex(a=>a.name==="pinia")>-1:!0);const i=r.filter(o=>!(o.name.startsWith("router-inspector")||o.name==="pinia"));n[1]=[...n[1],...i]}}),t&&!of&&!ma?e:e.map(([n,i])=>[n,i.filter(o=>!eW.includes(o.name))])}const B8="custom-tab-view",xh="custom-inspector-tab-view";function tW(){const{registeredInspector:t}=KG();return F(()=>t.value.map((e,n)=>({order:n,name:e.id,icon:e.logo,fallbackIcon:e.icon,title:e.label,path:`${xh}/${e.id}`,category:"modules",pluginId:e.pluginId})))}const U9e={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},G9e={flex:"~ col gap2",mxa:"","items-center":""},W9e={"text-xl":""},Z9e={"text-rose":""},K9e=ce({__name:"custom-inspector-tab-view",setup(t){const r=vf(),e=Cc(),n=G(!1),i=tW(),o=F(()=>i.value.find(s=>s.name===r.params.name)?.pluginId);function a(){n.value=!0;const s=setTimeout(()=>{clearTimeout(s),e.replace("/overview")},2e3)}return(s,l)=>y(n)?(z(),H("div",U9e,[w("div",G9e,[l[1]||(l[1]=w("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),w("p",W9e,[w("code",Z9e,ze(y(r).params.name),1),l[0]||(l[0]=Se(" not found "))]),l[2]||(l[2]=w("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])])):!y(n)&&y(o)?(z(),ne(y(JG),{key:1,id:y(r).params.name,"plugin-id":y(o),onLoadError:a},null,8,["id","plugin-id"])):oe("",!0)}}),Y9e={key:0,absolute:"","inset-0":"",flex:"","items-center":"","justify-center":""},Wp=new Map,X9e=ce({__name:"IframeView",props:{src:{},inline:{type:Boolean,default:!1}},setup(t){const r=t,{colorMode:e}=mf(),n=G(),i=F(()=>r.src),o=G(),a=ya(fge(n)),s=G(!1);Ii(()=>{if(Wp.get(i.value))o.value=Wp.get(i.value),o.value.style.visibility="visible",o.value.style.opacity="1",s.value=!0;else{o.value=document.createElement("iframe"),Wp.set(i.value,o.value),o.value.src=r.src;try{o.value.style.opacity="0.01",o.value.onload=()=>{c(),o.value.style.opacity="1",s.value=!0}}catch{o.value.style.opacity="1"}document.body.appendChild(o.value),dn(u)}const g=setTimeout(l,100);setTimeout(c,100),fn(()=>{clearTimeout(g)})}),gn(u),gn(c),fn(()=>{o.value&&(o.value.style.visibility="hidden",o.value.style.opacity="0")});function l(){o.value&&(o.value.style.visibility="visible",o.value.style.opacity="1")}function c(){if(!(!o.value||!o.value.contentWindow))try{const g=o.value.contentWindow.document.querySelector("html");g?.classList.toggle("dark",e.value==="dark"),g?.classList.toggle("light",e.value==="dark")}catch{}}function u(){o.value&&Object.assign(o.value.style,{position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${r.inline?a.height-a.top:a.height}px`,outline:"none"})}return(g,h)=>(z(),H("div",{ref_key:"anchor",ref:n,"h-full":"","w-full":""},[y(s)?oe("",!0):(z(),H("div",Y9e,h[0]||(h[0]=[w("i",{class:"mdi:loading animate-spin text-3xl"},null,-1)])))],512))}}),q9e={key:0,flex:"~ col","h-full":"","items-center":"","justify-center":""},Q9e={flex:"~ col gap2",mxa:"","items-center":""},J9e={"text-xl":""},e6e={"text-rose":""},t6e={key:3},rW=ce({__name:"CustomTabComponent",props:{tab:{},iframeInline:{type:Boolean}},setup(t){const e=x6(t),n=F(()=>e.tab.value?.name),i=G(!0);return Je(()=>n.value,()=>{i.value=!1,setTimeout(()=>{i.value=!0},100)}),(o,a)=>{const s=X9e,l=Vo("NCard");return o.tab?o.tab?.view?.type==="iframe"?(z(),H(Ee,{key:1},[y(i)?(z(),ne(s,{key:0,src:o.tab.view.src,inline:o.iframeInline},null,8,["src","inline"])):oe("",!0)],64)):o.tab?.view?.type==="vnode"?(z(),ne(y1(o.tab.view.vnode),{key:2})):(z(),H("div",t6e,[D(l,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:W(()=>[Se(" Unknown tab type "+ze(o.tab?.view),1)]),_:1})])):(z(),H("div",q9e,[w("div",Q9e,[a[2]||(a[2]=w("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),w("p",J9e,[a[0]||(a[0]=Se(" Tab ")),w("code",e6e,ze(y(n)),1),a[1]||(a[1]=Se(" not found "))]),a[3]||(a[3]=w("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]))}}});function r6e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n6e=function t(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var n,i,o;if(Array.isArray(r)){if(n=r.length,n!=e.length)return!1;for(i=n;i--!==0;)if(!t(r[i],e[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===e.toString();if(o=Object.keys(r),n=o.length,n!==Object.keys(e).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(r[a],e[a]))return!1}return!0}return r!==r&&e!==e};const nW=r6e(n6e);function iW(){return{isFirstVisit:!0,route:"/",graphSettings:{node_modules:!1,virtual:!1,lib:!1},tabSettings:{hiddenTabCategories:[],hiddenTabs:[],pinnedTabs:[]},expandSidebar:!1,scrollableSidebar:!0,splitScreen:{enabled:!1,view:"overview",size:[50,50]},scale:1,interactionCloseOnOutsideClick:!1,showPanel:!0,minimizePanelInteractive:5e3}}const dr=Age("__VUE_DEVTOOLS_CLIENT_STATE__",iW(),{mergeDefaults:!0});function i6e(){dr.value=iW()}Je(()=>dr.value.splitScreen.enabled,(t,r)=>{r&&!t&&(dr.value.splitScreen.size=[50,50])});function $f(){const t=uo(),r=tW();let e=[];const n=F(()=>nW(t.tabs.value,e)?e:(e=t.tabs.value,t.tabs.value)),i=F(()=>{const c=t.vitePluginDetected.value,u=[...j9e(c,r.value)];return n.value.forEach(g=>{const h=u.find(d=>d[0]===g.category);if(h){if(h[1].some(d=>d.name===g.name)||(!c||of||ma)&&eW.includes(g.name))return;h[1].push({...g})}}),[...u]}),o=F(()=>i.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[])),a=F(()=>{const{hiddenTabCategories:c,hiddenTabs:u,pinnedTabs:g}=dr.value.tabSettings,h=c.includes("pinned"),d=i.value.reduce((f,[C,v])=>{const A=[{hidden:!1,name:C},[]],I=c.includes(C);return v.forEach(p=>{const m=u.includes(p.name);if(g.includes(p.name))f[0][1].push({...p,hidden:m||h});else{const b=m||I;A[1].push({...p,hidden:b})}}),A[0].hidden=A[1].every(p=>p.hidden),f.push(A),f},[[{name:"pinned",hidden:!1},[]]]);return d[0][0].hidden=d[0][1].every(f=>f.hidden),d[0][1].sort((f,C)=>g.indexOf(f.name)-g.indexOf(C.name)),d}),s=F(()=>a.value.reduce((c,[u,g])=>{if(u.hidden)return c;const h=g.filter(d=>!d.hidden);return h.length&&c.push([u,h]),c},[])),l=F(()=>s.value.reduce((c,[u,g])=>(g.forEach(h=>{c.push(h)}),c),[]));return{categorizedTabs:a,flattenedTabs:o,enabledTabs:s,enabledFlattenTabs:l}}function yT(t,r){return F(()=>{const e=[],n=dr.value.tabSettings.pinnedTabs;rd(r).reduce((a,[{name:s,hidden:l},c])=>(c.forEach(u=>{if(rd(t).some(g=>g.name===u.name)){const g=n.includes(u.name)?"pinned":s||"app";a.push({tab:u,category:{name:g,hidden:l}})}}),a),[]).forEach(({tab:a,category:s})=>{const l=e.find(([{name:c}])=>c===s.name);l?l[1].push(a):e.push([s,[a]])});const o=e.find(([{name:a}])=>a==="pinned");return o&&o[1].sort((a,s)=>n.indexOf(a.name)-n.indexOf(s.name)),e})}const o6e=ce({__name:"custom-tab-view",setup(t){const r=vf(),e=Cc(),{flattenedTabs:n}=$f(),i=F(()=>r.params.name),o=F(()=>n.value.find(a=>i.value===a.name)||null);return Ii(()=>{if(!o.value){const a=setTimeout(()=>{if(o.value){clearTimeout(a);return}e.replace("/overview")},2e3)}}),(a,s)=>{const l=rW;return z(),ne(l,{tab:y(o)},null,8,["tab"])}}});/** * vis-network * https://visjs.github.io/vis-network/ * * A dynamic, browser-based visualization library. * * @version 9.1.9 * @date 2023-11-03T01:42:27.418Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */var Zp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ke(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hC=function(t){return t&&t.Math===Math&&t},Kt=hC(typeof globalThis=="object"&&globalThis)||hC(typeof window=="object"&&window)||hC(typeof self=="object"&&self)||hC(typeof Zp=="object"&&Zp)||function(){return this}()||Zp||Function("return this")(),mt=function(t){try{return!!t()}catch{return!0}},a6e=mt,_f=!a6e(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),s6e=_f,oW=Function.prototype,bT=oW.apply,wT=oW.call,Ju=typeof Reflect=="object"&&Reflect.apply||(s6e?wT.bind(bT):function(){return wT.apply(bT,arguments)}),aW=_f,sW=Function.prototype,F8=sW.call,l6e=aW&&sW.bind.bind(F8,F8),Et=aW?l6e:function(t){return function(){return F8.apply(t,arguments)}},lW=Et,c6e=lW({}.toString),u6e=lW("".slice),ys=function(t){return u6e(c6e(t),8,-1)},g6e=ys,h6e=Et,Sw=function(t){if(g6e(t)==="Function")return h6e(t)},j8=typeof document=="object"&&document.all,d6e=typeof j8>"u"&&j8!==void 0,cW={all:j8,IS_HTMLDDA:d6e},uW=cW,f6e=uW.all,$r=uW.IS_HTMLDDA?function(t){return typeof t=="function"||t===f6e}:function(t){return typeof t=="function"},D1={},C6e=mt,Cn=!C6e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),v6e=_f,dC=Function.prototype.call,en=v6e?dC.bind(dC):function(){return dC.apply(dC,arguments)},bI={},gW={}.propertyIsEnumerable,hW=Object.getOwnPropertyDescriptor,A6e=hW&&!gW.call({1:2},1);bI.f=A6e?function(r){var e=hW(this,r);return!!e&&e.enumerable}:gW;var wc=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},I6e=Et,p6e=mt,m6e=ys,Kp=Object,y6e=I6e("".split),wI=p6e(function(){return!Kp("z").propertyIsEnumerable(0)})?function(t){return m6e(t)==="String"?y6e(t,""):Kp(t)}:Kp,$c=function(t){return t==null},b6e=$c,w6e=TypeError,Mf=function(t){if(b6e(t))throw new w6e("Can't call method on "+t);return t},$6e=wI,_6e=Mf,Ea=function(t){return $6e(_6e(t))},$T=$r,dW=cW,M6e=dW.all,Pr=dW.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:$T(t)||t===M6e}:function(t){return typeof t=="object"?t!==null:$T(t)},wt={},Yp=wt,Xp=Kt,z6e=$r,_T=function(t){return z6e(t)?t:void 0},Xn=function(t,r){return arguments.length<2?_T(Yp[t])||_T(Xp[t]):Yp[t]&&Yp[t][r]||Xp[t]&&Xp[t][r]},E6e=Et,Cr=E6e({}.isPrototypeOf),N1=typeof navigator<"u"&&String(navigator.userAgent)||"",fW=Kt,qp=N1,MT=fW.process,zT=fW.Deno,ET=MT&&MT.versions||zT&&zT.version,ST=ET&&ET.v8,po,qv;ST&&(po=ST.split("."),qv=po[0]>0&&po[0]<4?1:+(po[0]+po[1]));!qv&&qp&&(po=qp.match(/Edge\/(\d+)/),(!po||po[1]>=74)&&(po=qp.match(/Chrome\/(\d+)/),po&&(qv=+po[1])));var eg=qv,TT=eg,S6e=mt,T6e=Kt,L6e=T6e.String,tg=!!Object.getOwnPropertySymbols&&!S6e(function(){var t=Symbol("symbol detection");return!L6e(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&TT&&TT<41}),k6e=tg,CW=k6e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",O6e=Xn,x6e=$r,H6e=Cr,V6e=CW,P6e=Object,zf=V6e?function(t){return typeof t=="symbol"}:function(t){var r=O6e("Symbol");return x6e(r)&&H6e(r.prototype,P6e(t))},R6e=String,rg=function(t){try{return R6e(t)}catch{return"Object"}},D6e=$r,N6e=rg,B6e=TypeError,pi=function(t){if(D6e(t))return t;throw new B6e(N6e(t)+" is not a function")},F6e=pi,j6e=$c,Tw=function(t,r){var e=t[r];return j6e(e)?void 0:F6e(e)},Qp=en,Jp=$r,e3=Pr,U6e=TypeError,G6e=function(t,r){var e,n;if(r==="string"&&Jp(e=t.toString)&&!e3(n=Qp(e,t))||Jp(e=t.valueOf)&&!e3(n=Qp(e,t))||r!=="string"&&Jp(e=t.toString)&&!e3(n=Qp(e,t)))return n;throw new U6e("Can't convert object to primitive value")},vW={exports:{}},W6e=!0,LT=Kt,Z6e=Object.defineProperty,K6e=function(t,r){try{Z6e(LT,t,{value:r,configurable:!0,writable:!0})}catch{LT[t]=r}return r},Y6e=Kt,X6e=K6e,kT="__core-js_shared__",q6e=Y6e[kT]||X6e(kT,{}),Lw=q6e,OT=Lw;(vW.exports=function(t,r){return OT[t]||(OT[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ng=vW.exports,Q6e=Mf,J6e=Object,qn=function(t){return J6e(Q6e(t))},e8e=Et,t8e=qn,r8e=e8e({}.hasOwnProperty),_r=Object.hasOwn||function(r,e){return r8e(t8e(r),e)},n8e=Et,i8e=0,o8e=Math.random(),a8e=n8e(1 .toString),$I=function(t){return"Symbol("+(t===void 0?"":t)+")_"+a8e(++i8e+o8e,36)},s8e=Kt,l8e=ng,xT=_r,c8e=$I,u8e=tg,g8e=CW,m2=s8e.Symbol,t3=l8e("wks"),h8e=g8e?m2.for||m2:m2&&m2.withoutSetter||c8e,lr=function(t){return xT(t3,t)||(t3[t]=u8e&&xT(m2,t)?m2[t]:h8e("Symbol."+t)),t3[t]},d8e=en,HT=Pr,VT=zf,f8e=Tw,C8e=G6e,v8e=lr,A8e=TypeError,I8e=v8e("toPrimitive"),p8e=function(t,r){if(!HT(t)||VT(t))return t;var e=f8e(t,I8e),n;if(e){if(r===void 0&&(r="default"),n=d8e(e,t,r),!HT(n)||VT(n))return n;throw new A8e("Can't convert object to primitive value")}return r===void 0&&(r="number"),C8e(t,r)},m8e=p8e,y8e=zf,_I=function(t){var r=m8e(t,"string");return y8e(r)?r:r+""},b8e=Kt,PT=Pr,U8=b8e.document,w8e=PT(U8)&&PT(U8.createElement),kw=function(t){return w8e?U8.createElement(t):{}},$8e=Cn,_8e=mt,M8e=kw,AW=!$8e&&!_8e(function(){return Object.defineProperty(M8e("div"),"a",{get:function(){return 7}}).a!==7}),z8e=Cn,E8e=en,S8e=bI,T8e=wc,L8e=Ea,k8e=_I,O8e=_r,x8e=AW,RT=Object.getOwnPropertyDescriptor;D1.f=z8e?RT:function(r,e){if(r=L8e(r),e=k8e(e),x8e)try{return RT(r,e)}catch{}if(O8e(r,e))return T8e(!E8e(S8e.f,r,e),r[e])};var H8e=mt,V8e=$r,P8e=/#|\.prototype\./,Ef=function(t,r){var e=D8e[R8e(t)];return e===B8e?!0:e===N8e?!1:V8e(r)?H8e(r):!!r},R8e=Ef.normalize=function(t){return String(t).replace(P8e,".").toLowerCase()},D8e=Ef.data={},N8e=Ef.NATIVE="N",B8e=Ef.POLYFILL="P",IW=Ef,DT=Sw,F8e=pi,j8e=_f,U8e=DT(DT.bind),B1=function(t,r){return F8e(t),r===void 0?t:j8e?U8e(t,r):function(){return t.apply(r,arguments)}},mi={},G8e=Cn,W8e=mt,pW=G8e&&W8e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Z8e=Pr,K8e=String,Y8e=TypeError,Qn=function(t){if(Z8e(t))return t;throw new Y8e(K8e(t)+" is not an object")},X8e=Cn,q8e=AW,Q8e=pW,fC=Qn,NT=_I,J8e=TypeError,r3=Object.defineProperty,e7e=Object.getOwnPropertyDescriptor,n3="enumerable",i3="configurable",o3="writable";mi.f=X8e?Q8e?function(r,e,n){if(fC(r),e=NT(e),fC(n),typeof r=="function"&&e==="prototype"&&"value"in n&&o3 in n&&!n[o3]){var i=e7e(r,e);i&&i[o3]&&(r[e]=n.value,n={configurable:i3 in n?n[i3]:i[i3],enumerable:n3 in n?n[n3]:i[n3],writable:!1})}return r3(r,e,n)}:r3:function(r,e,n){if(fC(r),e=NT(e),fC(n),q8e)try{return r3(r,e,n)}catch{}if("get"in n||"set"in n)throw new J8e("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var t7e=Cn,r7e=mi,n7e=wc,bs=t7e?function(t,r,e){return r7e.f(t,r,n7e(1,e))}:function(t,r,e){return t[r]=e,t},CC=Kt,i7e=Ju,o7e=Sw,a7e=$r,s7e=D1.f,l7e=IW,Zc=wt,c7e=B1,Kc=bs,BT=_r,u7e=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return i7e(t,this,arguments)};return r.prototype=t.prototype,r},Oe=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?CC:i?CC[e]:(CC[e]||{}).prototype,s=n?Zc:Zc[e]||Kc(Zc,e,{})[e],l=s.prototype,c,u,g,h,d,f,C,v,A;for(h in r)c=l7e(n?h:e+(i?".":"#")+h,t.forced),u=!c&&a&&BT(a,h),f=s[h],u&&(t.dontCallGetSet?(A=s7e(a,h),C=A&&A.value):C=a[h]),d=u&&C?C:r[h],!(u&&typeof f==typeof d)&&(t.bind&&u?v=c7e(d,CC):t.wrap&&u?v=u7e(d):o&&a7e(d)?v=o7e(d):v=d,(t.sham||d&&d.sham||f&&f.sham)&&Kc(v,"sham",!0),Kc(s,h,v),o&&(g=e+"Prototype",BT(Zc,g)||Kc(Zc,g,{}),Kc(Zc[g],h,d),t.real&&l&&(c||!l[h])&&Kc(l,h,d)))},g7e=Math.ceil,h7e=Math.floor,d7e=Math.trunc||function(r){var e=+r;return(e>0?h7e:g7e)(e)},f7e=d7e,MI=function(t){var r=+t;return r!==r||r===0?0:f7e(r)},C7e=MI,v7e=Math.max,A7e=Math.min,Sf=function(t,r){var e=C7e(t);return e<0?v7e(e+r,0):A7e(e,r)},I7e=MI,p7e=Math.min,m7e=function(t){return t>0?p7e(I7e(t),9007199254740991):0},y7e=m7e,yi=function(t){return y7e(t.length)},b7e=Ea,w7e=Sf,$7e=yi,FT=function(t){return function(r,e,n){var i=b7e(r),o=$7e(i),a=w7e(n,o),s;if(t&&e!==e){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},Ow={includes:FT(!0),indexOf:FT(!1)},Tf={},_7e=Et,a3=_r,M7e=Ea,z7e=Ow.indexOf,E7e=Tf,jT=_7e([].push),mW=function(t,r){var e=M7e(t),n=0,i=[],o;for(o in e)!a3(E7e,o)&&a3(e,o)&&jT(i,o);for(;r.length>n;)a3(e,o=r[n++])&&(~z7e(i,o)||jT(i,o));return i},xw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],S7e=mW,T7e=xw,zI=Object.keys||function(r){return S7e(r,T7e)},Lf={};Lf.f=Object.getOwnPropertySymbols;var UT=Cn,L7e=Et,k7e=en,O7e=mt,s3=zI,x7e=Lf,H7e=bI,V7e=qn,P7e=wI,Yc=Object.assign,GT=Object.defineProperty,R7e=L7e([].concat),D7e=!Yc||O7e(function(){if(UT&&Yc({b:1},Yc(GT({},"a",{enumerable:!0,get:function(){GT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach(function(i){r[i]=i}),Yc({},t)[e]!==7||s3(Yc({},r)).join("")!==n})?function(r,e){for(var n=V7e(r),i=arguments.length,o=1,a=x7e.f,s=H7e.f;i>o;)for(var l=P7e(arguments[o++]),c=a?R7e(s3(l),a(l)):s3(l),u=c.length,g=0,h;u>g;)h=c[g++],(!UT||k7e(s,l,h))&&(n[h]=l[h]);return n}:Yc,N7e=Oe,WT=D7e;N7e({target:"Object",stat:!0,arity:2,forced:Object.assign!==WT},{assign:WT});var B7e=wt,F7e=B7e.Object.assign,j7e=F7e,U7e=j7e,G7e=U7e,Or=ke(G7e),W7e=Et,kf=W7e([].slice),yW=Et,Z7e=pi,K7e=Pr,Y7e=_r,ZT=kf,X7e=_f,bW=Function,q7e=yW([].concat),Q7e=yW([].join),l3={},J7e=function(t,r,e){if(!Y7e(l3,r)){for(var n=[],i=0;i=.1;)f=+o[g++%a],f>u&&(f=u),d=Math.sqrt(f*f/(1+c*c)),d=s<0?-d:d,r+=d,e+=c*d,h===!0?t.lineTo(r,e):t.moveTo(r,e),u-=f,h=!h}function fye(t,r,e,n){t.beginPath();var i=6,o=Math.PI*2/i;t.moveTo(r+n,e);for(var a=1;a1?e-1:0),i=1;i"u")){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",e==="top"&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}var vye=`.vis-overlay { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; /* Must be displayed above for example selected Timeline items */ z-index: 10; } .vis-active { box-shadow: 0 0 10px #86d5f8; } `;_c(vye);var Aye=`/* override some bootstrap styles screwing up the timelines css */ .vis [class*="span"] { min-height: 0; width: auto; } `;_c(Aye);var Iye=`div.vis-color-picker { position: absolute; top: 0px; left: 30px; margin-top: -140px; margin-left: 30px; width: 310px; height: 444px; z-index: 1; padding: 10px; border-radius: 15px; background-color: #ffffff; display: none; box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px; } div.vis-color-picker div.vis-arrow { position: absolute; top: 147px; left: 5px; } div.vis-color-picker div.vis-arrow::after, div.vis-color-picker div.vis-arrow::before { right: 100%; top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } div.vis-color-picker div.vis-arrow:after { border-color: rgba(255, 255, 255, 0); border-right-color: #ffffff; border-width: 30px; margin-top: -30px; } div.vis-color-picker div.vis-color { position: absolute; width: 289px; height: 289px; cursor: pointer; } div.vis-color-picker div.vis-brightness { position: absolute; top: 313px; } div.vis-color-picker div.vis-opacity { position: absolute; top: 350px; } div.vis-color-picker div.vis-selector { position: absolute; top: 137px; left: 137px; width: 15px; height: 15px; border-radius: 15px; border: 1px solid #ffffff; background: #4c4c4c; /* Old browsers */ background: -moz-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #4c4c4c), color-stop(12%, #595959), color-stop(25%, #666666), color-stop(39%, #474747), color-stop(50%, #2c2c2c), color-stop(51%, #000000), color-stop(60%, #111111), color-stop(76%, #2b2b2b), color-stop(91%, #1c1c1c), color-stop(100%, #131313) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* Opera 11.10+ */ background: -ms-linear-gradient( top, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* IE10+ */ background: linear-gradient( to bottom, #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100% ); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */ } div.vis-color-picker div.vis-new-color { position: absolute; width: 140px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; top: 380px; left: 159px; text-align: right; padding-right: 2px; font-size: 10px; color: rgba(0, 0, 0, 0.4); vertical-align: middle; line-height: 20px; } div.vis-color-picker div.vis-initial-color { position: absolute; width: 140px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 5px; top: 380px; left: 10px; text-align: left; padding-left: 2px; font-size: 10px; color: rgba(0, 0, 0, 0.4); vertical-align: middle; line-height: 20px; } div.vis-color-picker div.vis-label { position: absolute; width: 300px; left: 10px; } div.vis-color-picker div.vis-label.vis-brightness { top: 300px; } div.vis-color-picker div.vis-label.vis-opacity { top: 338px; } div.vis-color-picker div.vis-button { position: absolute; width: 68px; height: 25px; border-radius: 10px; vertical-align: middle; text-align: center; line-height: 25px; top: 410px; border: 2px solid #d9d9d9; background-color: #f7f7f7; cursor: pointer; } div.vis-color-picker div.vis-button.vis-cancel { /*border:2px solid #ff4e33;*/ /*background-color: #ff7761;*/ left: 5px; } div.vis-color-picker div.vis-button.vis-load { /*border:2px solid #a153e6;*/ /*background-color: #cb8dff;*/ left: 82px; } div.vis-color-picker div.vis-button.vis-apply { /*border:2px solid #4588e6;*/ /*background-color: #82b6ff;*/ left: 159px; } div.vis-color-picker div.vis-button.vis-save { /*border:2px solid #45e655;*/ /*background-color: #6dff7c;*/ left: 236px; } div.vis-color-picker input.vis-range { width: 290px; height: 20px; } /* TODO: is this redundant? div.vis-color-picker input.vis-range-brightness { width: 289px !important; } div.vis-color-picker input.vis-saturation-range { width: 289px !important; }*/ `;_c(Iye);var pye=`div.vis-configuration { position: relative; display: block; float: left; font-size: 12px; } div.vis-configuration-wrapper { display: block; width: 700px; } div.vis-configuration-wrapper::after { clear: both; content: ""; display: block; } div.vis-configuration.vis-config-option-container { display: block; width: 495px; background-color: #ffffff; border: 2px solid #f7f8fa; border-radius: 4px; margin-top: 20px; left: 10px; padding-left: 5px; } div.vis-configuration.vis-config-button { display: block; width: 495px; height: 25px; vertical-align: middle; line-height: 25px; background-color: #f7f8fa; border: 2px solid #ceced0; border-radius: 4px; margin-top: 20px; left: 10px; padding-left: 5px; cursor: pointer; margin-bottom: 30px; } div.vis-configuration.vis-config-button.hover { background-color: #4588e6; border: 2px solid #214373; color: #ffffff; } div.vis-configuration.vis-config-item { display: block; float: left; width: 495px; height: 25px; vertical-align: middle; line-height: 25px; } div.vis-configuration.vis-config-item.vis-config-s2 { left: 10px; background-color: #f7f8fa; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-item.vis-config-s3 { left: 20px; background-color: #e4e9f0; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-item.vis-config-s4 { left: 30px; background-color: #cfd8e6; padding-left: 5px; border-radius: 3px; } div.vis-configuration.vis-config-header { font-size: 18px; font-weight: bold; } div.vis-configuration.vis-config-label { width: 120px; height: 25px; line-height: 25px; } div.vis-configuration.vis-config-label.vis-config-s3 { width: 110px; } div.vis-configuration.vis-config-label.vis-config-s4 { width: 100px; } div.vis-configuration.vis-config-colorBlock { top: 1px; width: 30px; height: 19px; border: 1px solid #444444; border-radius: 2px; padding: 0px; margin: 0px; cursor: pointer; } input.vis-configuration.vis-config-checkbox { left: -5px; } input.vis-configuration.vis-config-rangeinput { position: relative; top: -5px; width: 60px; /*height:13px;*/ padding: 1px; margin: 0; pointer-events: none; } input.vis-configuration.vis-config-range { /*removes default webkit styles*/ -webkit-appearance: none; /*fix for FF unable to apply focus style bug */ border: 0px solid white; background-color: rgba(0, 0, 0, 0); /*required for proper track sizing in FF*/ width: 300px; height: 20px; } input.vis-configuration.vis-config-range::-webkit-slider-runnable-track { width: 300px; height: 5px; background: #dedede; /* Old browsers */ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ border: 1px solid #999999; box-shadow: #aaaaaa 0px 0px 3px 0px; border-radius: 3px; } input.vis-configuration.vis-config-range::-webkit-slider-thumb { -webkit-appearance: none; border: 1px solid #14334b; height: 17px; width: 17px; border-radius: 50%; background: #3876c2; /* Old browsers */ background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #3876c2), color-stop(100%, #385380) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #3876c2 0%, #385380 100% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #3876c2 0%, #385380 100% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */ background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */ box-shadow: #111927 0px 0px 1px 0px; margin-top: -7px; } input.vis-configuration.vis-config-range:focus { outline: none; } input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track { background: #9d9d9d; /* Old browsers */ background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #9d9d9d), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #9d9d9d 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #9d9d9d 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ } input.vis-configuration.vis-config-range::-moz-range-track { width: 300px; height: 10px; background: #dedede; /* Old browsers */ background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%, #dedede), color-stop(99%, #c8c8c8) ); /* Chrome,Safari4+ */ background: -webkit-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient( top, #dedede 0%, #c8c8c8 99% ); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */ background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */ border: 1px solid #999999; box-shadow: #aaaaaa 0px 0px 3px 0px; border-radius: 3px; } input.vis-configuration.vis-config-range::-moz-range-thumb { border: none; height: 16px; width: 16px; border-radius: 50%; background: #385380; } /*hide the outline behind the border*/ input.vis-configuration.vis-config-range:-moz-focusring { outline: 1px solid white; outline-offset: -1px; } input.vis-configuration.vis-config-range::-ms-track { width: 300px; height: 5px; /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */ background: transparent; /*leave room for the larger thumb to overflow with a transparent border */ border-color: transparent; border-width: 6px 0; /*remove default tick marks*/ color: transparent; } input.vis-configuration.vis-config-range::-ms-fill-lower { background: #777; border-radius: 10px; } input.vis-configuration.vis-config-range::-ms-fill-upper { background: #ddd; border-radius: 10px; } input.vis-configuration.vis-config-range::-ms-thumb { border: none; height: 16px; width: 16px; border-radius: 50%; background: #385380; } input.vis-configuration.vis-config-range:focus::-ms-fill-lower { background: #888; } input.vis-configuration.vis-config-range:focus::-ms-fill-upper { background: #ccc; } .vis-configuration-popup { position: absolute; background: rgba(57, 76, 89, 0.85); border: 2px solid #f2faff; line-height: 30px; height: 30px; width: 150px; text-align: center; color: #ffffff; font-size: 14px; border-radius: 4px; -webkit-transition: opacity 0.3s ease-in-out; -moz-transition: opacity 0.3s ease-in-out; transition: opacity 0.3s ease-in-out; } .vis-configuration-popup:after, .vis-configuration-popup:before { left: 100%; top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; } .vis-configuration-popup:after { border-color: rgba(136, 183, 213, 0); border-left-color: rgba(57, 76, 89, 0.85); border-width: 8px; margin-top: -8px; } .vis-configuration-popup:before { border-color: rgba(194, 225, 245, 0); border-left-color: #f2faff; border-width: 12px; margin-top: -12px; } `;_c(pye);var mye=`div.vis-tooltip { position: absolute; visibility: hidden; padding: 5px; white-space: nowrap; font-family: verdana; font-size: 14px; color: #000000; background-color: #f5f4ed; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; border: 1px solid #808074; box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); pointer-events: none; z-index: 5; } `;_c(mye);var EW={exports:{}};(function(t){t.exports=r;function r(n){if(n)return e(n)}function e(n){for(var i in r.prototype)n[i]=r.prototype[i];return n}r.prototype.on=r.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},r.prototype.once=function(n,i){function o(){this.off(n,o),i.apply(this,arguments)}return o.fn=i,this.on(n,o),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+n];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var a,s=0;s=o?t?"":void 0:(a=XT(n,i),a<55296||a>56319||i+1===o||(s=XT(n,i+1))<56320||s>57343?t?Vye(n,i):a:t?Pye(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},Rye={codeAt:qT(!1),charAt:qT(!0)},Dye=Kt,Nye=$r,QT=Dye.WeakMap,LW=Nye(QT)&&/native code/.test(String(QT)),Bye=ng,Fye=$I,JT=Bye("keys"),EI=function(t){return JT[t]||(JT[t]=Fye(t))},jye=LW,kW=Kt,Uye=Pr,Gye=bs,u3=_r,g3=Lw,Wye=EI,Zye=Tf,eL="Object already initialized",W8=kW.TypeError,Kye=kW.WeakMap,Qv,Ld,Jv,Yye=function(t){return Jv(t)?Ld(t):Qv(t,{})},Xye=function(t){return function(r){var e;if(!Uye(r)||(e=Ld(r)).type!==t)throw new W8("Incompatible receiver, "+t+" required");return e}};if(jye||g3.state){var Ko=g3.state||(g3.state=new Kye);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,Qv=function(t,r){if(Ko.has(t))throw new W8(eL);return r.facade=t,Ko.set(t,r),r},Ld=function(t){return Ko.get(t)||{}},Jv=function(t){return Ko.has(t)}}else{var Xc=Wye("state");Zye[Xc]=!0,Qv=function(t,r){if(u3(t,Xc))throw new W8(eL);return r.facade=t,Gye(t,Xc,r),r},Ld=function(t){return u3(t,Xc)?t[Xc]:{}},Jv=function(t){return u3(t,Xc)}}var F1={set:Qv,get:Ld,has:Jv,enforce:Yye,getterFor:Xye},Z8=Cn,qye=_r,OW=Function.prototype,Qye=Z8&&Object.getOwnPropertyDescriptor,Rw=qye(OW,"name"),Jye=Rw&&function(){}.name==="something",ebe=Rw&&(!Z8||Z8&&Qye(OW,"name").configurable),tbe={EXISTS:Rw,PROPER:Jye,CONFIGURABLE:ebe},SI={},rbe=Cn,nbe=pW,ibe=mi,obe=Qn,abe=Ea,sbe=zI;SI.f=rbe&&!nbe?Object.defineProperties:function(r,e){obe(r);for(var n=abe(e),i=sbe(e),o=i.length,a=0,s;o>a;)ibe.f(r,s=i[a++],n[s]);return r};var lbe=Xn,xW=lbe("document","documentElement"),cbe=Qn,ube=SI,tL=xw,gbe=Tf,hbe=xW,dbe=kw,fbe=EI,rL=">",nL="<",K8="prototype",Y8="script",HW=fbe("IE_PROTO"),h3=function(){},VW=function(t){return nL+Y8+rL+t+nL+"/"+Y8+rL},iL=function(t){t.write(VW("")),t.close();var r=t.parentWindow.Object;return t=null,r},Cbe=function(){var t=dbe("iframe"),r="java"+Y8+":",e;return t.style.display="none",hbe.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(VW("document.F=Object")),e.close(),e.F},vC,N5=function(){try{vC=new ActiveXObject("htmlfile")}catch{}N5=typeof document<"u"?document.domain&&vC?iL(vC):Cbe():iL(vC);for(var t=tL.length;t--;)delete N5[K8][tL[t]];return N5()};gbe[HW]=!0;var Mc=Object.create||function(r,e){var n;return r!==null?(h3[K8]=cbe(r),n=new h3,h3[K8]=null,n[HW]=r):n=N5(),e===void 0?n:ube.f(n,e)},vbe=mt,PW=!vbe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Abe=_r,Ibe=$r,pbe=qn,mbe=EI,ybe=PW,oL=mbe("IE_PROTO"),X8=Object,bbe=X8.prototype,Of=ybe?X8.getPrototypeOf:function(t){var r=pbe(t);if(Abe(r,oL))return r[oL];var e=r.constructor;return Ibe(e)&&r instanceof e?e.prototype:r instanceof X8?bbe:null},wbe=bs,ig=function(t,r,e,n){return n&&n.enumerable?t[r]=e:wbe(t,r,e),t},$be=mt,_be=$r,Mbe=Pr,zbe=Mc,aL=Of,Ebe=ig,Sbe=lr,q8=Sbe("iterator"),RW=!1,Za,d3,f3;[].keys&&(f3=[].keys(),"next"in f3?(d3=aL(aL(f3)),d3!==Object.prototype&&(Za=d3)):RW=!0);var Tbe=!Mbe(Za)||$be(function(){var t={};return Za[q8].call(t)!==t});Tbe?Za={}:Za=zbe(Za);_be(Za[q8])||Ebe(Za,q8,function(){return this});var DW={IteratorPrototype:Za,BUGGY_SAFARI_ITERATORS:RW},Lbe=Vw,kbe=ws,Obe=Lbe?{}.toString:function(){return"[object "+kbe(this)+"]"},xbe=Vw,Hbe=mi.f,Vbe=bs,Pbe=_r,Rbe=Obe,Dbe=lr,sL=Dbe("toStringTag"),zc=function(t,r,e,n){if(t){var i=e?t:t.prototype;Pbe(i,sL)||Hbe(i,sL,{configurable:!0,value:r}),n&&!xbe&&Vbe(i,"toString",Rbe)}},og={},Nbe=DW.IteratorPrototype,Bbe=Mc,Fbe=wc,jbe=zc,Ube=og,Gbe=function(){return this},Wbe=function(t,r,e,n){var i=r+" Iterator";return t.prototype=Bbe(Nbe,{next:Fbe(+!n,e)}),jbe(t,i,!1,!0),Ube[i]=Gbe,t},Zbe=Et,Kbe=pi,Ybe=function(t,r,e){try{return Zbe(Kbe(Object.getOwnPropertyDescriptor(t,r)[e]))}catch{}},Xbe=$r,qbe=String,Qbe=TypeError,Jbe=function(t){if(typeof t=="object"||Xbe(t))return t;throw new Qbe("Can't set "+qbe(t)+" as a prototype")},ewe=Ybe,twe=Qn,rwe=Jbe,NW=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,r={},e;try{e=ewe(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch{}return function(i,o){return twe(i),rwe(o),t?e(i,o):i.__proto__=o,i}}():void 0),nwe=Oe,iwe=en,owe=tbe,awe=Wbe,swe=Of,lwe=zc,lL=ig,cwe=lr,cL=og,uwe=DW,gwe=owe.PROPER,AC=uwe.BUGGY_SAFARI_ITERATORS,C3=cwe("iterator"),uL="keys",IC="values",gL="entries",hwe=function(){return this},Dw=function(t,r,e,n,i,o,a){awe(e,r,n);var s=function(A){if(A===i&&h)return h;if(!AC&&A&&A in u)return u[A];switch(A){case uL:return function(){return new e(this,A)};case IC:return function(){return new e(this,A)};case gL:return function(){return new e(this,A)}}return function(){return new e(this)}},l=r+" Iterator",c=!1,u=t.prototype,g=u[C3]||u["@@iterator"]||i&&u[i],h=!AC&&g||s(i),d=r==="Array"&&u.entries||g,f,C,v;if(d&&(f=swe(d.call(new t)),f!==Object.prototype&&f.next&&(lwe(f,l,!0,!0),cL[l]=hwe)),gwe&&i===IC&&g&&g.name!==IC&&(c=!0,h=function(){return iwe(g,this)}),i)if(C={values:s(IC),keys:o?h:s(uL),entries:s(gL)},a)for(v in C)(AC||c||!(v in u))&&lL(u,v,C[v]);else nwe({target:r,proto:!0,forced:AC||c},C);return a&&u[C3]!==h&&lL(u,C3,h,{name:i}),cL[r]=h,C},Nw=function(t,r){return{value:t,done:r}},dwe=Rye.charAt,fwe=Uo,BW=F1,Cwe=Dw,hL=Nw,FW="String Iterator",vwe=BW.set,Awe=BW.getterFor(FW);Cwe(String,"String",function(t){vwe(this,{type:FW,string:fwe(t),index:0})},function(){var r=Awe(this),e=r.string,n=r.index,i;return n>=e.length?hL(void 0,!0):(i=dwe(e,n),r.index+=i.length,hL(i,!1))});var Iwe=en,dL=Qn,pwe=Tw,jW=function(t,r,e){var n,i;dL(t);try{if(n=pwe(t,"return"),!n){if(r==="throw")throw e;return e}n=Iwe(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return dL(n),e},mwe=Qn,ywe=jW,bwe=function(t,r,e,n){try{return n?r(mwe(e)[0],e[1]):r(e)}catch(i){ywe(t,"throw",i)}},wwe=lr,$we=og,_we=wwe("iterator"),Mwe=Array.prototype,UW=function(t){return t!==void 0&&($we.Array===t||Mwe[_we]===t)},zwe=Et,Ewe=$r,Q8=Lw,Swe=zwe(Function.toString);Ewe(Q8.inspectSource)||(Q8.inspectSource=function(t){return Swe(t)});var GW=Q8.inspectSource,Twe=Et,Lwe=mt,WW=$r,kwe=ws,Owe=Xn,xwe=GW,ZW=function(){},Hwe=[],KW=Owe("Reflect","construct"),Bw=/^\s*(?:class|function)\b/,Vwe=Twe(Bw.exec),Pwe=!Bw.test(ZW),qg=function(r){if(!WW(r))return!1;try{return KW(ZW,Hwe,r),!0}catch{return!1}},YW=function(r){if(!WW(r))return!1;switch(kwe(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pwe||!!Vwe(Bw,xwe(r))}catch{return!0}};YW.sham=!0;var TI=!KW||Lwe(function(){var t;return qg(qg.call)||!qg(Object)||!qg(function(){t=!0})||t})?YW:qg,Rwe=_I,Dwe=mi,Nwe=wc,ag=function(t,r,e){var n=Rwe(r);n in t?Dwe.f(t,n,Nwe(0,e)):t[n]=e},Bwe=ws,fL=Tw,Fwe=$c,jwe=og,Uwe=lr,Gwe=Uwe("iterator"),LI=function(t){if(!Fwe(t))return fL(t,Gwe)||fL(t,"@@iterator")||jwe[Bwe(t)]},Wwe=en,Zwe=pi,Kwe=Qn,Ywe=rg,Xwe=LI,qwe=TypeError,Fw=function(t,r){var e=arguments.length<2?Xwe(t):r;if(Zwe(e))return Kwe(Wwe(e,t));throw new qwe(Ywe(t)+" is not iterable")},Qwe=B1,Jwe=en,e$e=qn,t$e=bwe,r$e=UW,n$e=TI,i$e=yi,CL=ag,o$e=Fw,a$e=LI,vL=Array,s$e=function(r){var e=e$e(r),n=n$e(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=Qwe(o,i>2?arguments[2]:void 0));var s=a$e(e),l=0,c,u,g,h,d,f;if(s&&!(this===vL&&r$e(s)))for(h=o$e(e,s),d=h.next,u=n?new this:[];!(g=Jwe(d,h)).done;l++)f=a?t$e(h,o,[g.value,l],!0):g.value,CL(u,l,f);else for(c=i$e(e),u=n?new this(c):vL(c);c>l;l++)f=a?o(e[l],l):e[l],CL(u,l,f);return u.length=l,u},l$e=lr,XW=l$e("iterator"),qW=!1;try{var c$e=0,AL={next:function(){return{done:!!c$e++}},return:function(){qW=!0}};AL[XW]=function(){return this},Array.from(AL,function(){throw 2})}catch{}var QW=function(t,r){try{if(!r&&!qW)return!1}catch{return!1}var e=!1;try{var n={};n[XW]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},u$e=Oe,g$e=s$e,h$e=QW,d$e=!h$e(function(t){Array.from(t)});u$e({target:"Array",stat:!0,forced:d$e},{from:g$e});var f$e=wt,C$e=f$e.Array.from,v$e=C$e,JW=v$e,A$e=JW,j1=ke(A$e),I$e=Ea,IL=og,eZ=F1;mi.f;var p$e=Dw,pC=Nw,tZ="Array Iterator",m$e=eZ.set,y$e=eZ.getterFor(tZ);p$e(Array,"Array",function(t,r){m$e(this,{type:tZ,target:I$e(t),index:0,kind:r})},function(){var t=y$e(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,pC(void 0,!0);switch(e){case"keys":return pC(n,!1);case"values":return pC(r[n],!1)}return pC([n,r[n]],!1)},"values");IL.Arguments=IL.Array;var b$e=LI,w$e=b$e,$$e={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_$e=$$e,M$e=Kt,z$e=ws,E$e=bs,pL=og,S$e=lr,mL=S$e("toStringTag");for(var v3 in _$e){var yL=M$e[v3],A3=yL&&yL.prototype;A3&&z$e(A3)!==mL&&E$e(A3,mL,v3),pL[v3]=pL.Array}var T$e=w$e,L$e=T$e,k$e=L$e,O$e=k$e,x$e=O$e,H$e=x$e,rZ=H$e,nZ=ke(rZ),V$e=rZ,U1=ke(V$e);function Ie(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var iZ={exports:{}},P$e=Oe,R$e=Cn,bL=mi.f;P$e({target:"Object",stat:!0,forced:Object.defineProperty!==bL,sham:!R$e},{defineProperty:bL});var D$e=wt,oZ=D$e.Object,N$e=iZ.exports=function(r,e,n){return oZ.defineProperty(r,e,n)};oZ.defineProperty.sham&&(N$e.sham=!0);var B$e=iZ.exports,F$e=B$e,aZ=F$e,j$e=aZ,U$e=j$e,G$e=U$e,W$e=G$e,sZ=W$e,kI=ke(sZ),Z$e=ys,G1=Array.isArray||function(r){return Z$e(r)==="Array"},K$e=TypeError,Y$e=9007199254740991,OI=function(t){if(t>Y$e)throw K$e("Maximum allowed index exceeded");return t},wL=G1,X$e=TI,q$e=Pr,Q$e=lr,J$e=Q$e("species"),$L=Array,e_e=function(t){var r;return wL(t)&&(r=t.constructor,X$e(r)&&(r===$L||wL(r.prototype))?r=void 0:q$e(r)&&(r=r[J$e],r===null&&(r=void 0))),r===void 0?$L:r},t_e=e_e,xI=function(t,r){return new(t_e(t))(r===0?0:r)},r_e=mt,n_e=lr,i_e=eg,o_e=n_e("species"),xf=function(t){return i_e>=51||!r_e(function(){var r=[],e=r.constructor={};return e[o_e]=function(){return{foo:1}},r[t](Boolean).foo!==1})},a_e=Oe,s_e=mt,l_e=G1,c_e=Pr,u_e=qn,g_e=yi,_L=OI,ML=ag,h_e=xI,d_e=xf,f_e=lr,C_e=eg,lZ=f_e("isConcatSpreadable"),v_e=C_e>=51||!s_e(function(){var t=[];return t[lZ]=!1,t.concat()[0]!==t}),A_e=function(t){if(!c_e(t))return!1;var r=t[lZ];return r!==void 0?!!r:l_e(t)},I_e=!v_e||!d_e("concat");a_e({target:"Array",proto:!0,arity:1,forced:I_e},{concat:function(r){var e=u_e(this),n=h_e(e,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;ov;v++)if((s||v in d)&&(p=d[v],m=f(p,v,h),t))if(r)I[v]=m;else if(m)switch(t){case 3:return!0;case 5:return p;case 6:return v;case 2:SL(I,p)}else switch(t){case 4:return!1;case 7:SL(I,p)}return o?-1:n||i?i:I}},W1={forEach:Ls(0),map:Ls(1),filter:Ls(2),some:Ls(3),every:Ls(4),find:Ls(5),findIndex:Ls(6),filterReject:Ls(7)},VI=Oe,PI=Kt,Uw=en,G_e=Et,Au=Cn,Iu=tg,W_e=mt,an=_r,Z_e=Cr,J8=Qn,RI=Ea,Gw=_I,K_e=Uo,e7=wc,kd=Mc,dZ=zI,Y_e=Hf,fZ=HI,X_e=Lf,CZ=D1,vZ=mi,q_e=SI,AZ=bI,TL=ig,Q_e=jw,Ww=ng,J_e=EI,IZ=Tf,LL=$I,eMe=lr,tMe=Vf,rMe=Mr,nMe=hZ,iMe=zc,pZ=F1,DI=W1.forEach,si=J_e("hidden"),NI="Symbol",Od="prototype",oMe=pZ.set,kL=pZ.getterFor(NI),zo=Object[Od],Ol=PI.Symbol,hh=Ol&&Ol[Od],aMe=PI.RangeError,sMe=PI.TypeError,I3=PI.QObject,mZ=CZ.f,xl=vZ.f,yZ=fZ.f,lMe=AZ.f,bZ=G_e([].push),cs=Ww("symbols"),Pf=Ww("op-symbols"),cMe=Ww("wks"),t7=!I3||!I3[Od]||!I3[Od].findChild,wZ=function(t,r,e){var n=mZ(zo,r);n&&delete zo[r],xl(t,r,e),n&&t!==zo&&xl(zo,r,n)},r7=Au&&W_e(function(){return kd(xl({},"a",{get:function(){return xl(this,"a",{value:7}).a}})).a!==7})?wZ:xl,p3=function(t,r){var e=cs[t]=kd(hh);return oMe(e,{type:NI,tag:t,description:r}),Au||(e.description=r),e},BI=function(r,e,n){r===zo&&BI(Pf,e,n),J8(r);var i=Gw(e);return J8(n),an(cs,i)?(n.enumerable?(an(r,si)&&r[si][i]&&(r[si][i]=!1),n=kd(n,{enumerable:e7(0,!1)})):(an(r,si)||xl(r,si,e7(1,{})),r[si][i]=!0),r7(r,i,n)):xl(r,i,n)},Zw=function(r,e){J8(r);var n=RI(e),i=dZ(n).concat(zZ(n));return DI(i,function(o){(!Au||Uw($Z,n,o))&&BI(r,o,n[o])}),r},uMe=function(r,e){return e===void 0?kd(r):Zw(kd(r),e)},$Z=function(r){var e=Gw(r),n=Uw(lMe,this,e);return this===zo&&an(cs,e)&&!an(Pf,e)?!1:n||!an(this,e)||!an(cs,e)||an(this,si)&&this[si][e]?n:!0},_Z=function(r,e){var n=RI(r),i=Gw(e);if(!(n===zo&&an(cs,i)&&!an(Pf,i))){var o=mZ(n,i);return o&&an(cs,i)&&!(an(n,si)&&n[si][i])&&(o.enumerable=!0),o}},MZ=function(r){var e=yZ(RI(r)),n=[];return DI(e,function(i){!an(cs,i)&&!an(IZ,i)&&bZ(n,i)}),n},zZ=function(t){var r=t===zo,e=yZ(r?Pf:RI(t)),n=[];return DI(e,function(i){an(cs,i)&&(!r||an(zo,i))&&bZ(n,cs[i])}),n};Iu||(Ol=function(){if(Z_e(hh,this))throw new sMe("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:K_e(arguments[0]),e=LL(r),n=function(i){this===zo&&Uw(n,Pf,i),an(this,si)&&an(this[si],e)&&(this[si][e]=!1);var o=e7(1,i);try{r7(this,e,o)}catch(a){if(!(a instanceof aMe))throw a;wZ(this,e,o)}};return Au&&t7&&r7(zo,e,{configurable:!0,set:n}),p3(e,r)},hh=Ol[Od],TL(hh,"toString",function(){return kL(this).tag}),TL(Ol,"withoutSetter",function(t){return p3(LL(t),t)}),AZ.f=$Z,vZ.f=BI,q_e.f=Zw,CZ.f=_Z,Y_e.f=fZ.f=MZ,X_e.f=zZ,tMe.f=function(t){return p3(eMe(t),t)},Au&&Q_e(hh,"description",{configurable:!0,get:function(){return kL(this).description}}));VI({global:!0,constructor:!0,wrap:!0,forced:!Iu,sham:!Iu},{Symbol:Ol});DI(dZ(cMe),function(t){rMe(t)});VI({target:NI,stat:!0,forced:!Iu},{useSetter:function(){t7=!0},useSimple:function(){t7=!1}});VI({target:"Object",stat:!0,forced:!Iu,sham:!Au},{create:uMe,defineProperty:BI,defineProperties:Zw,getOwnPropertyDescriptor:_Z});VI({target:"Object",stat:!0,forced:!Iu},{getOwnPropertyNames:MZ});nMe();iMe(Ol,NI);IZ[si]=!0;var gMe=tg,EZ=gMe&&!!Symbol.for&&!!Symbol.keyFor,hMe=Oe,dMe=Xn,fMe=_r,CMe=Uo,SZ=ng,vMe=EZ,m3=SZ("string-to-symbol-registry"),AMe=SZ("symbol-to-string-registry");hMe({target:"Symbol",stat:!0,forced:!vMe},{for:function(t){var r=CMe(t);if(fMe(m3,r))return m3[r];var e=dMe("Symbol")(r);return m3[r]=e,AMe[e]=r,e}});var IMe=Oe,pMe=_r,mMe=zf,yMe=rg,bMe=ng,wMe=EZ,OL=bMe("symbol-to-string-registry");IMe({target:"Symbol",stat:!0,forced:!wMe},{keyFor:function(r){if(!mMe(r))throw new TypeError(yMe(r)+" is not a symbol");if(pMe(OL,r))return OL[r]}});var $Me=Et,xL=G1,_Me=$r,HL=ys,MMe=Uo,VL=$Me([].push),zMe=function(t){if(_Me(t))return t;if(xL(t)){for(var r=t.length,e=[],n=0;nt.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?arguments[1]:void 0)}});var JSe=Rr,eTe=JSe("Array").map,tTe=Cr,rTe=eTe,M3=Array.prototype,nTe=function(t){var r=t.map;return t===M3||tTe(M3,t)&&r===M3.map?rTe:r},iTe=nTe,oTe=iTe,aTe=oTe,Mn=ke(aTe),sTe=Oe,lTe=qn,qZ=zI,cTe=mt,uTe=cTe(function(){qZ(1)});sTe({target:"Object",stat:!0,forced:uTe},{keys:function(r){return qZ(lTe(r))}});var gTe=wt,hTe=gTe.Object.keys,dTe=hTe,fTe=dTe,CTe=fTe,or=ke(CTe),vTe=Oe,ATe=Et,QZ=Date,ITe=ATe(QZ.prototype.getTime);vTe({target:"Date",stat:!0},{now:function(){return ITe(new QZ)}});var pTe=wt,mTe=pTe.Date.now,yTe=mTe,bTe=yTe,wTe=bTe,tA=ke(wTe),$Te=mt,sg=function(t,r){var e=[][t];return!!e&&$Te(function(){e.call(null,r||function(){return 1},1)})},_Te=W1.forEach,MTe=sg,zTe=MTe("forEach"),ETe=zTe?[].forEach:function(r){return _Te(this,r,arguments.length>1?arguments[1]:void 0)},STe=Oe,JL=ETe;STe({target:"Array",proto:!0,forced:[].forEach!==JL},{forEach:JL});var TTe=Rr,LTe=TTe("Array").forEach,kTe=LTe,OTe=kTe,xTe=ws,HTe=_r,VTe=Cr,PTe=OTe,z3=Array.prototype,RTe={DOMTokenList:!0,NodeList:!0},JZ=function(t){var r=t.forEach;return t===z3||VTe(z3,t)&&r===z3.forEach||HTe(RTe,xTe(t))?PTe:r},DTe=JZ,_t=ke(DTe),NTe=Oe,BTe=Et,FTe=G1,jTe=BTe([].reverse),ek=[1,2];NTe({target:"Array",proto:!0,forced:String(ek)===String(ek.reverse())},{reverse:function(){return FTe(this)&&(this.length=this.length),jTe(this)}});var UTe=Rr,GTe=UTe("Array").reverse,WTe=Cr,ZTe=GTe,E3=Array.prototype,KTe=function(t){var r=t.reverse;return t===E3||WTe(E3,t)&&r===E3.reverse?ZTe:r},YTe=KTe,eK=YTe,XTe=eK,Hl=ke(XTe),tk=rg,qTe=TypeError,tK=function(t,r){if(!delete t[r])throw new qTe("Cannot delete property "+tk(r)+" of "+tk(t))},QTe=Oe,JTe=qn,eLe=Sf,tLe=MI,rLe=yi,nLe=GZ,iLe=OI,oLe=xI,aLe=ag,S3=tK,sLe=xf,lLe=sLe("splice"),cLe=Math.max,uLe=Math.min;QTe({target:"Array",proto:!0,forced:!lLe},{splice:function(r,e){var n=JTe(this),i=rLe(n),o=eLe(r,i),a=arguments.length,s,l,c,u,g,h;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=uLe(cLe(tLe(e),0),i-o)),iLe(i+s-l),c=oLe(n,l),u=0;ui-l+s;u--)S3(n,u-1)}else if(s>l)for(u=i-l;u>o;u--)g=u+l-1,h=u+s-1,g in n?n[h]=n[g]:S3(n,h);for(u=0;u1?arguments[1]:void 0)}});var wLe=Rr,$Le=wLe("Array").includes,_Le=Pr,MLe=ys,zLe=lr,ELe=zLe("match"),SLe=function(t){var r;return _Le(t)&&((r=t[ELe])!==void 0?!!r:MLe(t)==="RegExp")},TLe=SLe,LLe=TypeError,kLe=function(t){if(TLe(t))throw new LLe("The method doesn't accept regular expressions");return t},OLe=lr,xLe=OLe("match"),HLe=function(t){var r=/./;try{"/./"[t](r)}catch{try{return r[xLe]=!1,"/./"[t](r)}catch{}}return!1},VLe=Oe,PLe=Et,RLe=kLe,DLe=Mf,rk=Uo,NLe=HLe,BLe=PLe("".indexOf);VLe({target:"String",proto:!0,forced:!NLe("includes")},{includes:function(r){return!!~BLe(rk(DLe(this)),rk(RLe(r)),arguments.length>1?arguments[1]:void 0)}});var FLe=Rr,jLe=FLe("String").includes,nk=Cr,ULe=$Le,GLe=jLe,L3=Array.prototype,k3=String.prototype,WLe=function(t){var r=t.includes;return t===L3||nk(L3,t)&&r===L3.includes?ULe:typeof t=="string"||t===k3||nk(k3,t)&&r===k3.includes?GLe:r},ZLe=WLe,KLe=ZLe,YLe=KLe,c1=ke(YLe),XLe=Oe,qLe=mt,QLe=qn,rK=Of,JLe=PW,eke=qLe(function(){rK(1)});XLe({target:"Object",stat:!0,forced:eke,sham:!JLe},{getPrototypeOf:function(r){return rK(QLe(r))}});var tke=wt,rke=tke.Object.getPrototypeOf,nke=rke,nK=nke,ike=nK,ik=ke(ike),oke=Oe,ake=W1.filter,ske=xf,lke=ske("filter");oke({target:"Array",proto:!0,forced:!lke},{filter:function(r){return ake(this,r,arguments.length>1?arguments[1]:void 0)}});var cke=Rr,uke=cke("Array").filter,gke=Cr,hke=uke,O3=Array.prototype,dke=function(t){var r=t.filter;return t===O3||gke(O3,t)&&r===O3.filter?hke:r},fke=dke,Cke=fke,vke=Cke,jr=ke(vke),qw=` \v\f\r                 \u2028\u2029\uFEFF`,Ake=Et,Ike=Mf,pke=Uo,i7=qw,ok=Ake("".replace),mke=RegExp("^["+i7+"]+"),yke=RegExp("(^|[^"+i7+"])["+i7+"]+$"),x3=function(t){return function(r){var e=pke(Ike(r));return t&1&&(e=ok(e,mke,"")),t&2&&(e=ok(e,yke,"$1")),e}},iK={start:x3(1),end:x3(2),trim:x3(3)},oK=Kt,bke=mt,wke=Et,$ke=Uo,_ke=iK.trim,ak=qw,Hh=oK.parseInt,sk=oK.Symbol,lk=sk&&sk.iterator,aK=/^[+-]?0x/i,Mke=wke(aK.exec),zke=Hh(ak+"08")!==8||Hh(ak+"0x16")!==22||lk&&!bke(function(){Hh(Object(lk))}),Eke=zke?function(r,e){var n=_ke($ke(r));return Hh(n,e>>>0||(Mke(aK,n)?16:10))}:Hh,Ske=Oe,ck=Eke;Ske({global:!0,forced:parseInt!==ck},{parseInt:ck});var Tke=wt,Lke=Tke.parseInt,kke=Lke,Oke=kke,xke=Oke,mo=ke(xke),Hke=Oe,Vke=Sw,Pke=Ow.indexOf,Rke=sg,o7=Vke([].indexOf),sK=!!o7&&1/o7([1],1,-0)<0,Dke=sK||!Rke("indexOf");Hke({target:"Array",proto:!0,forced:Dke},{indexOf:function(r){var e=arguments.length>1?arguments[1]:void 0;return sK?o7(this,r,e)||0:Pke(this,r,e)}});var Nke=Rr,Bke=Nke("Array").indexOf,Fke=Cr,jke=Bke,H3=Array.prototype,Uke=function(t){var r=t.indexOf;return t===H3||Fke(H3,t)&&r===H3.indexOf?jke:r},Gke=Uke,Wke=Gke,Zke=Wke,Mt=ke(Zke),Kke=Oe,Yke=Cn,Xke=Mc;Kke({target:"Object",stat:!0,sham:!Yke},{create:Xke});var qke=wt,Qke=qke.Object,Jke=function(r,e){return Qke.create(r,e)},eOe=Jke,lK=eOe,tOe=lK,u1=ke(tOe),a7=wt,rOe=Ju;a7.JSON||(a7.JSON={stringify:JSON.stringify});var nOe=function(r,e,n){return rOe(a7.JSON.stringify,null,arguments)},iOe=nOe,oOe=iOe,aOe=oOe,lg=ke(aOe),sOe=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",lOe=TypeError,cK=function(t,r){if(te,a=uOe(n)?n:COe(n),s=o?dOe(arguments,e):[],l=o?function(){cOe(a,this,s)}:a;return r?t(l,i):t(l)}:t},AOe=Oe,hK=Kt,IOe=gK,uk=IOe(hK.setInterval,!0);AOe({global:!0,bind:!0,forced:hK.setInterval!==uk},{setInterval:uk});var pOe=Oe,dK=Kt,mOe=gK,gk=mOe(dK.setTimeout,!0);pOe({global:!0,bind:!0,forced:dK.setTimeout!==gk},{setTimeout:gk});var yOe=wt,bOe=yOe.setTimeout,wOe=bOe,Oo=ke(wOe),$Oe=qn,hk=Sf,_Oe=yi,MOe=function(r){for(var e=$Oe(this),n=_Oe(e),i=arguments.length,o=hk(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:hk(a,n);s>o;)e[o++]=r;return e},zOe=Oe,EOe=MOe;zOe({target:"Array",proto:!0},{fill:EOe});var SOe=Rr,TOe=SOe("Array").fill,LOe=Cr,kOe=TOe,V3=Array.prototype,OOe=function(t){var r=t.fill;return t===V3||LOe(V3,t)&&r===V3.fill?kOe:r},xOe=OOe,HOe=xOe,VOe=HOe,Df=ke(VOe);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs * Licensed under the MIT license */function No(){return No=Object.assign||function(t){for(var r=1;r"u"?{style:{}}:document.createElement("div"),ROe="function",b2=Math.round,tc=Math.abs,Qw=Date.now;function FI(t,r){for(var e,n,i=r[0].toUpperCase()+r.slice(1),o=0;o"u"?Ka={}:Ka=window;var fK=FI(POe.style,"touchAction"),CK=fK!==void 0;function DOe(){if(!CK)return!1;var t={},r=Ka.CSS&&Ka.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return t[e]=r?Ka.CSS.supports("touch-action",e):!0}),t}var vK="compute",AK="auto",l7="manipulation",Vl="none",xd="pan-x",Hd="pan-y",bC=DOe(),NOe=/mobile|tablet|ip(ad|hone|od)|android/i,IK="ontouchstart"in Ka,BOe=FI(Ka,"PointerEvent")!==void 0,FOe=IK&&NOe.test(navigator.userAgent),Nf="touch",jOe="pen",Jw="mouse",UOe="kinect",GOe=25,Zn=1,Sc=2,Ur=4,Ci=8,rA=1,Bf=2,Ff=4,jf=8,pu=16,Ca=Bf|Ff,Pl=jf|pu,pK=Ca|Pl,mK=["x","y"],nA=["clientX","clientY"];function Ya(t,r,e){var n;if(t)if(t.forEach)t.forEach(r,e);else if(t.length!==void 0)for(n=0;n-1}function WOe(t){if(_l(t,Vl))return Vl;var r=_l(t,xd),e=_l(t,Hd);return r&&e?Vl:r||e?r?xd:Hd:_l(t,l7)?l7:AK}var yK=function(){function t(e,n){this.manager=e,this.set(n)}var r=t.prototype;return r.set=function(n){n===vK&&(n=this.compute()),CK&&this.manager.element.style&&bC[n]&&(this.manager.element.style[fK]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return Ya(this.manager.recognizers,function(i){jI(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),WOe(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=_l(a,Vl)&&!bC[Vl],l=_l(a,Hd)&&!bC[Hd],c=_l(a,xd)&&!bC[xd];if(s){var u=n.pointers.length===1,g=n.distance<2,h=n.deltaTime<250;if(u&&g&&h)return}if(!(c&&l)&&(s||l&&o&Ca||c&&o&Pl))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function e$(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}function bK(t){var r=t.length;if(r===1)return{x:b2(t[0].clientX),y:b2(t[0].clientY)};for(var e=0,n=0,i=0;i=tc(r)?t<0?Bf:Ff:r<0?jf:pu}function ZOe(t,r){var e=r.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(r.eventType===Zn||o.eventType===Ur)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:e.x,y:e.y}),r.deltaX=i.x+(e.x-n.x),r.deltaY=i.y+(e.y-n.y)}function $K(t,r,e){return{x:r/t||0,y:e/t||0}}function KOe(t,r){return iA(r[0],r[1],nA)/iA(t[0],t[1],nA)}function YOe(t,r){return c7(r[1],r[0],nA)+c7(t[1],t[0],nA)}function XOe(t,r){var e=t.lastInterval||r,n=r.timeStamp-e.timeStamp,i,o,a,s;if(r.eventType!==Ci&&(n>GOe||e.velocity===void 0)){var l=r.deltaX-e.deltaX,c=r.deltaY-e.deltaY,u=$K(n,l,c);o=u.x,a=u.y,i=tc(u.x)>tc(u.y)?u.x:u.y,s=wK(l,c),t.lastInterval=r}else i=e.velocity,o=e.velocityX,a=e.velocityY,s=e.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function qOe(t,r){var e=t.session,n=r.pointers,i=n.length;e.firstInput||(e.firstInput=fk(r)),i>1&&!e.firstMultiple?e.firstMultiple=fk(r):i===1&&(e.firstMultiple=!1);var o=e.firstInput,a=e.firstMultiple,s=a?a.center:o.center,l=r.center=bK(n);r.timeStamp=Qw(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=c7(s,l),r.distance=iA(s,l),ZOe(e,r),r.offsetDirection=wK(r.deltaX,r.deltaY);var c=$K(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=c.x,r.overallVelocityY=c.y,r.overallVelocity=tc(c.x)>tc(c.y)?c.x:c.y,r.scale=a?KOe(a.pointers,n):1,r.rotation=a?YOe(a.pointers,n):0,r.maxPointers=e.prevInput?r.pointers.length>e.prevInput.maxPointers?r.pointers.length:e.prevInput.maxPointers:r.pointers.length,XOe(e,r);var u=t.element,g=r.srcEvent,h;g.composedPath?h=g.composedPath()[0]:g.path?h=g.path[0]:h=g.target,e$(h,u)&&(u=h),r.target=u}function QOe(t,r,e){var n=e.pointers.length,i=e.changedPointers.length,o=r&Zn&&n-i===0,a=r&(Ur|Ci)&&n-i===0;e.isFirst=!!o,e.isFinal=!!a,o&&(t.session={}),e.eventType=r,qOe(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function Vd(t){return t.trim().split(/\s+/g)}function Vh(t,r,e){Ya(Vd(r),function(n){t.addEventListener(n,e,!1)})}function Ph(t,r,e){Ya(Vd(r),function(n){t.removeEventListener(n,e,!1)})}function Ck(t){var r=t.ownerDocument||t;return r.defaultView||r.parentWindow||window}var cg=function(){function t(e,n){var i=this;this.manager=e,this.callback=n,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(o){jI(e.options.enable,[e])&&i.handler(o)},this.init()}var r=t.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Vh(this.element,this.evEl,this.domHandler),this.evTarget&&Vh(this.target,this.evTarget,this.domHandler),this.evWin&&Vh(Ck(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Ph(this.element,this.evEl,this.domHandler),this.evTarget&&Ph(this.target,this.evTarget,this.domHandler),this.evWin&&Ph(Ck(this.element),this.evWin,this.domHandler)},t}();function rc(t,r,e){if(t.indexOf&&!e)return t.indexOf(r);for(var n=0;nl[r]}):n=n.sort()),n}var txe={touchstart:Zn,touchmove:Sc,touchend:Ur,touchcancel:Ci},rxe="touchstart touchmove touchend touchcancel",r$=function(t){ho(r,t);function r(){var n;return r.prototype.evTarget=rxe,n=t.apply(this,arguments)||this,n.targetIds={},n}var e=r.prototype;return e.handler=function(i){var o=txe[i.type],a=nxe.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:Nf,srcEvent:i})},r}(cg);function nxe(t,r){var e=Pd(t.touches),n=this.targetIds;if(r&(Zn|Sc)&&e.length===1)return n[e[0].identifier]=!0,[e,e];var i,o,a=Pd(t.changedTouches),s=[],l=this.target;if(o=e.filter(function(c){return e$(c.target,l)}),r===Zn)for(i=0;i-1&&i.splice(s,1)};setTimeout(o,sxe)}}function lxe(t,r){t&Zn?(this.primaryTouch=r.changedPointers[0].identifier,Ak.call(this,r)):t&(Ur|Ci)&&Ak.call(this,r)}function cxe(t){for(var r=t.srcEvent.clientX,e=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o=g1&&a(i.options.event+Ik(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=oa},r.canEmit=function(){for(var n=0;no.threshold&&l&o.direction},e.attrTest=function(i){return yu.prototype.attrTest.call(this,i)&&(this.state&so||!(this.state&so)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=SK(i.direction);o&&(i.additionalEvent=this.options.event+o),t.prototype.emit.call(this,i)},r}(yu),TK=function(t){ho(r,t);function r(n){return n===void 0&&(n={}),t.call(this,No({event:"swipe",threshold:10,velocity:.3,direction:Ca|Pl,pointers:1},n))||this}var e=r.prototype;return e.getTouchAction=function(){return i$.prototype.getTouchAction.call(this)},e.attrTest=function(i){var o=this.options.direction,a;return o&(Ca|Pl)?a=i.overallVelocity:o&Ca?a=i.overallVelocityX:o&Pl&&(a=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&tc(a)>this.options.velocity&&i.eventType&Ur},e.emit=function(i){var o=SK(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(yu),LK=function(t){ho(r,t);function r(n){return n===void 0&&(n={}),t.call(this,No({event:"pinch",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Vl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&so)},e.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}t.prototype.emit.call(this,i)},r}(yu),kK=function(t){ho(r,t);function r(n){return n===void 0&&(n={}),t.call(this,No({event:"rotate",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Vl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&so)},r}(yu),OK=function(t){ho(r,t);function r(n){var i;return n===void 0&&(n={}),i=t.call(this,No({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var e=r.prototype;return e.getTouchAction=function(){return[AK]},e.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distancea.time;if(this._input=i,!l||!s||i.eventType&(Ur|Ci)&&!c)this.reset();else if(i.eventType&Zn)this.reset(),this._timer=setTimeout(function(){o.state=Xa,o.tryEmit()},a.time);else if(i.eventType&Ur)return Xa;return oa},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===Xa&&(i&&i.eventType&Ur?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=Qw(),this.manager.emit(this.options.event,this._input)))},r}(Uf),xK={domEvents:!1,touchAction:vK,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},pk=[[kK,{enable:!1}],[LK,{enable:!1},["rotate"]],[TK,{direction:Ca}],[i$,{direction:Ca},["swipe"]],[u7],[u7,{event:"doubletap",taps:2},["tap"]],[OK]],dxe=1,mk=2;function yk(t,r){var e=t.element;if(e.style){var n;Ya(t.options.cssProps,function(i,o){n=FI(e.style,o),r?(t.oldCssProps[n]=e.style[n],e.style[n]=i):e.style[n]=t.oldCssProps[n]||""}),r||(t.oldCssProps={})}}function fxe(t,r){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=r,r.target.dispatchEvent(e)}var bk=function(){function t(e,n){var i=this;this.options=ec({},xK,n||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=uxe(this),this.touchAction=new yK(this,this.options.touchAction),yk(this,!0),Ya(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=t.prototype;return r.set=function(n){return ec(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?mk:dxe},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&Xa)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),t.apply(this,arguments)}}var VK=HK(function(t,r,e){for(var n=Object.keys(r),i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function wxe(t,r){var e;if(t){if(typeof t=="string")return $k(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return j1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $k(t,r)}}function $k(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?e-1:0),i=1;i2){var n;return oA.apply(void 0,Ec(n=[DK(r[0],r[1])]).call(n,hr(qr(r).call(r,2))))}var i=r[0],o=r[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a=o$(ZSe(o)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===RK?delete i[l]:i[l]!==null&&o[l]!==null&&dt(i[l])==="object"&&dt(o[l])==="object"&&!ut(i[l])&&!ut(o[l])?i[l]=oA(i[l],o[l]):i[l]=NK(o[l]))}}catch(c){a.e(c)}finally{a.f()}return i}function NK(t){return ut(t)?Mn(t).call(t,function(r){return NK(r)}):dt(t)==="object"&&t!==null?t instanceof Date?new Date(t.getTime()):oA({},t):t}function BK(t){for(var r=0,e=or(t);r>>0,i-=t,i*=t,t=i>>>0,i-=t,t+=i*4294967296}return(t>>>0)*23283064365386963e-26}}function Exe(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}var a$=typeof window<"u"?window.Hammer||bxe:function(){return Exe()};function aa(t){var r=this,e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var n=a$(this._dom.overlay);n.on("tap",fe(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];_t(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){Sxe(o.target,t)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(o){("key"in o?o.key==="Escape":o.keyCode===27)&&r.deactivate()}}SW(aa.prototype);aa.current=null;aa.prototype.destroy=function(){var t,r;this.deactivate();var e=o$(Hl(t=fa(r=this._cleanupQueue).call(r,0)).call(t)),n;try{for(e.s();!(n=e.n()).done;){var i=n.value;i()}}catch(o){e.e(o)}finally{e.f()}};aa.prototype.activate=function(){aa.current&&aa.current.deactivate(),aa.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};aa.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};aa.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function Sxe(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var Txe=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Lxe=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,kxe=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Oxe=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Ws(t){if(t)for(;t.hasChildNodes()===!0;){var r=t.firstChild;r&&(Ws(r),t.removeChild(r))}}function Z2(t){return t instanceof String||typeof t=="string"}function _k(t){return dt(t)==="object"&&t!==null}function nc(t,r,e,n){var i=!1;n===!0&&(i=r[e]===null&&t[e]!==void 0),i?delete t[e]:t[e]=r[e]}function FK(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var n in t)if(r[n]!==void 0)if(r[n]===null||dt(r[n])!=="object")nc(t,r,n,e);else{var i=t[n],o=r[n];_k(i)&&_k(o)&&FK(i,o,e)}}function ug(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ut(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!1;if(ut(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!c1(t).call(t,i))if(e[i]&&e[i].constructor===Object)r[i]===void 0&&(r[i]={}),r[i].constructor===Object?er(r[i],e[i]):nc(r,e,i,n);else if(ut(e[i])){r[i]=[];for(var o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)||e===!0)if(dt(r[i])==="object"&&r[i]!==null&&ik(r[i])===Object.prototype)t[i]===void 0?t[i]=er({},r[i],e):dt(t[i])==="object"&&t[i]!==null&&ik(t[i])===Object.prototype?er(t[i],r[i],e):nc(t,r,i,n);else if(ut(r[i])){var o;t[i]=qr(o=r[i]).call(o)}else nc(t,r,i,n);return t}function sA(t,r){var e;return Ec(e=[]).call(e,hr(t),[r])}function xxe(t){return qr(t).call(t)}function Hxe(t){return t.getBoundingClientRect().left}function Vxe(t){return t.getBoundingClientRect().top}function Ct(t,r){if(ut(t))for(var e=t.length,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=function(f){return f!=null},o=function(f){return f!==null&&dt(f)==="object"},a=function(f){for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(r))throw new Error("Parameter options must be an object");if(!i(e))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var s=function(f,C,v){o(f[v])||(f[v]={});var A=C[v],I=f[v];for(var p in A)Object.prototype.hasOwnProperty.call(A,p)&&(I[p]=A[p])},l=r[e],c=o(n)&&!a(n),u=c?n[e]:void 0,g=u?u.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){o(t[e])||(t[e]={}),t[e].enabled=l;return}if(l===null&&!o(t[e]))if(i(u))t[e]=u1(u);else return;if(o(l)){var h=!0;l.enabled!==void 0?h=l.enabled:g!==void 0&&(h=u.enabled),s(t,r,e),t[e].enabled=h}}}var Dxe={linear:function(r){return r},easeInQuad:function(r){return r*r},easeOutQuad:function(r){return r*(2-r)},easeInOutQuad:function(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic:function(r){return r*r*r},easeOutCubic:function(r){return--r*r*r+1},easeInOutCubic:function(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart:function(r){return r*r*r*r},easeOutQuart:function(r){return 1- --r*r*r*r},easeInOutQuart:function(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint:function(r){return r*r*r*r*r},easeOutQuint:function(r){return 1+--r*r*r*r*r},easeInOutQuint:function(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function Zs(t,r){var e;ut(r)||(r=[r]);var n=o$(t),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o){e=o[r[0]];for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:1;Ie(this,t),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return pe(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return Nxe[e]}},{key:"setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var i,o=this._isColorString(e);if(o!==void 0&&(e=o),Z2(e)===!0){if(GK(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");i={r:a[0],g:a[1],b:a[2],a:1}}else if(Rxe(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(UK(e)===!0){var l=s$(e);i={r:l.r,g:l.g,b:l.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var c=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:c}}if(i===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+lg(e));this._setColor(i,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=Or({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Oo(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=Or({},e)),this.color=e;var i=dh(e.r,e.g,e.b),o=2*Math.PI,a=this.r*i.s,s=this.centerCoordinates.x+a*Math.sin(o*i.h),l=this.centerCoordinates.y+a*Math.cos(o*i.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=dh(this.color.r,this.color.g,this.color.b);n.v=e/100;var i=F5(n.h,n.s,n.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=dh(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,a),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-n.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Df(i).call(i),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,i,o;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var l=this;this.opacityRange.onchange=function(){l._setOpacity(this.value)},this.opacityRange.oninput=function(){l._setOpacity(this.value)},this.brightnessRange.onchange=function(){l._setBrightness(this.value)},this.brightnessRange.oninput=function(){l._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=fe(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=fe(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=fe(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=fe(o=this._loadLast).call(o,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new a$(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,n,i);var o,a,s,l;this.centerCoordinates={x:n*.5,y:i*.5},this.r=.49*n;var c=2*Math.PI/360,u=1/360,g=1/this.r,h;for(s=0;s<360;s++)for(l=0;l3&&arguments[3]!==void 0?arguments[3]:1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};Ie(this,t),this.parent=r,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Or(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Bxe(i),this.wrapper=void 0}return pe(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(ut(e))this.options.filter=e.join();else if(dt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),jr(e)!==void 0&&(this.options.filter=jr(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);jr(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=jr(this.options),n=0,i=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(o,[]),i=i||this._handleObject(this.configureOptions[o],[o],!0)):(e===!0||Mt(e).call(e,o)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?i-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:!1,o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,i===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(d7("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,i){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&Mt(e).call(e,n)!==-1&&(a=Mt(e).call(e,n));for(var s=0;ss&&s!==1&&(c.max=Math.ceil(n*h),g=c.max,u="range increased"),c.value=n}else c.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=c.value;var f=this;c.onchange=function(){d.value=this.value,f._update(Number(this.value),i)},c.oninput=function(){d.value=this.value};var C=this._makeLabel(i[i.length-1],i),v=this._makeItem(i,C,c,d);u!==""&&this.popupHistory[v]!==g&&(this.popupHistory[v]=g,this._setupPopup(u,v))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(n)}}},{key:"_setupPopup",value:function(e,n){var i=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,a=jr(this.options),s=!1;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){o=!0;var c=e[l],u=sA(n,l);if(typeof a=="function"&&(o=a(l,n),o===!1&&!ut(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,o=this._handleObject(c,u,!0),this.allowCreation=i===!1)),o!==!1){s=!0;var g=this._getValue(u);if(ut(c))this._handleArray(c,g,u);else if(typeof c=="string")this._makeTextInput(c,g,u);else if(typeof c=="boolean")this._makeCheckbox(c,g,u);else if(c instanceof Object){if(!this.hideOption(n,l,this.moduleOptions))if(c.enabled!==void 0){var h=sA(u,"enabled"),d=this._getValue(h);if(d===!0){var f=this._makeLabel(l,u,!0);this._makeItem(u,f),s=this._handleObject(c,u)||s}else this._makeCheckbox(c,d,u)}else{var C=this._makeLabel(l,u,!0);this._makeItem(u,C),s=this._handleObject(c,u)||s}}else console.error("dont know how to handle",c,l,u)}}return s}},{key:"_handleArray",value:function(e,n,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,i),e[1]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:Number(n)}))}},{key:"_update",value:function(e,n){var i=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var a=0;aa-this.padding&&(c=!0),c?s=this.x-i:s=this.x,u?l=this.y-n:l=this.y}else l=this.y-n,l+n+this.padding>o&&(l=o-n-this.padding),la&&(s=a-i-this.padding),sa.distance?c=" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=s?c='. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):c=". Did you mean one of these: "+t.print(or(n))+t.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+c,f7),Qg=!0}},{key:"findInOptions",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=1e9,s="",l=[],c=e.toLowerCase(),u=void 0;for(var g in n){var h=void 0;if(n[g].__type__!==void 0&&o===!0){var d=t.findInOptions(e,n[g],sA(i,g));a>d.distance&&(s=d.closestMatch,l=d.path,a=d.distance,u=d.indexMatch)}else{var f;Mt(f=g.toLowerCase()).call(f,c)!==-1&&(u=g),h=t.levenshteinDistance(e,g),a>h&&(s=g,l=xxe(i),a=h)}}return{closestMatch:s,path:l,distance:a,indexMatch:u}}},{key:"printLocation",value:function(e,n){for(var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,o=` `+i+`options = { `,a=0;a":!0,"--":!0},Js="",bu=0,gt="",Ye="",ii=Pn.NULL;function Xxe(){bu=0,gt=Js.charAt(0)}function tn(){bu++,gt=Js.charAt(bu)}function qc(){return Js.charAt(bu+1)}function Ek(t){var r=t.charCodeAt(0);return r<47?r===35||r===46:r<59?r>47:r<91?r>64:r<96?r===95:r<123?r>96:!1}function z1(t,r){if(t||(t={}),r)for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}function qxe(t,r,e){for(var n=r.split("."),i=t;n.length;){var o=n.shift();n.length?(i[o]||(i[o]={}),i=i[o]):i[o]=e}}function KK(t,r){for(var e,n,i=null,o=[t],a=t;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes){for(e=0,n=a.nodes.length;e=0;e--){var s,l=o[e];l.nodes||(l.nodes=[]),Mt(s=l.nodes).call(s,i)===-1&&l.nodes.push(i)}r.attr&&(i.attr=z1(i.attr,r.attr))}function Qxe(t,r){if(t.edges||(t.edges=[]),t.edges.push(r),t.edge){var e=z1({},t.edge);r.attr=z1(e,r.attr)}}function YK(t,r,e,n,i){var o={from:r,to:e,type:n};return t.edge&&(o.attr=z1({},t.edge)),o.attr=z1(o.attr||{},i),i!=null&&i.hasOwnProperty("arrows")&&i.arrows!=null&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function rr(){for(ii=Pn.NULL,Ye="";gt===" "||gt===" "||gt===` `||gt==="\r";)tn();do{var t=!1;if(gt==="#"){for(var r=bu-1;Js.charAt(r)===" "||Js.charAt(r)===" ";)r--;if(Js.charAt(r)===` `||Js.charAt(r)===""){for(;gt!=""&>!=` `;)tn();t=!0}}if(gt==="/"&&qc()==="/"){for(;gt!=""&>!=` `;)tn();t=!0}if(gt==="/"&&qc()==="*"){for(;gt!="";)if(gt==="*"&&qc()==="/"){tn(),tn();break}else tn();t=!0}for(;gt===" "||gt===" "||gt===` `||gt==="\r";)tn()}while(t);if(gt===""){ii=Pn.DELIMITER;return}var e=gt+qc();if(zk[e]){ii=Pn.DELIMITER,Ye=e,tn(),tn();return}if(zk[gt]){ii=Pn.DELIMITER,Ye=gt,tn();return}if(Ek(gt)||gt==="-"){for(Ye+=gt,tn();Ek(gt);)Ye+=gt,tn();Ye==="false"?Ye=!1:Ye==="true"?Ye=!0:isNaN(Number(Ye))||(Ye=Number(Ye)),ii=Pn.IDENTIFIER;return}if(gt==='"'){for(tn();gt!=""&&(gt!='"'||gt==='"'&&qc()==='"');)gt==='"'?(Ye+=gt,tn()):gt==="\\"&&qc()==="n"?(Ye+=` `,tn()):Ye+=gt,tn();if(gt!='"')throw Rn('End of string " expected');tn(),ii=Pn.IDENTIFIER;return}for(ii=Pn.UNKNOWN;gt!="";)Ye+=gt,tn();throw new SyntaxError('Syntax error in part "'+JK(Ye,30)+'"')}function Jxe(){var t={};if(Xxe(),rr(),Ye==="strict"&&(t.strict=!0,rr()),(Ye==="graph"||Ye==="digraph")&&(t.type=Ye,rr()),ii===Pn.IDENTIFIER&&(t.id=Ye,rr()),Ye!="{")throw Rn("Angle bracket { expected");if(rr(),XK(t),Ye!="}")throw Rn("Angle bracket } expected");if(rr(),Ye!=="")throw Rn("End of file expected");return rr(),delete t.node,delete t.edge,delete t.graph,t}function XK(t){for(;Ye!==""&&Ye!="}";)eHe(t),Ye===";"&&rr()}function eHe(t){var r=qK(t);if(r){QK(t,r);return}var e=tHe(t);if(!e){if(ii!=Pn.IDENTIFIER)throw Rn("Identifier expected");var n=Ye;if(rr(),Ye==="="){if(rr(),ii!=Pn.IDENTIFIER)throw Rn("Identifier expected");t[n]=Ye,rr()}else rHe(t,n)}}function qK(t){var r=null;if(Ye==="subgraph"&&(r={},r.type="subgraph",rr(),ii===Pn.IDENTIFIER&&(r.id=Ye,rr())),Ye==="{"){if(rr(),r||(r={}),r.parent=t,r.node=t.node,r.edge=t.edge,r.graph=t.graph,XK(r),Ye!="}")throw Rn("Angle bracket } expected");rr(),delete r.node,delete r.edge,delete r.graph,delete r.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(r)}return r}function tHe(t){return Ye==="node"?(rr(),t.node=Rh(),"node"):Ye==="edge"?(rr(),t.edge=Rh(),"edge"):Ye==="graph"?(rr(),t.graph=Rh(),"graph"):null}function rHe(t,r){var e={id:r},n=Rh();n&&(e.attr=n),KK(t,e),QK(t,r)}function QK(t,r){for(;Ye==="->"||Ye==="--";){var e,n=Ye;rr();var i=qK(t);if(i)e=i;else{if(ii!=Pn.IDENTIFIER)throw Rn("Identifier or subgraph expected");e=Ye,KK(t,{id:e}),rr()}var o=Rh(),a=YK(t,r,e,n,o);Qxe(t,a),r=e}}function Rh(){for(var t,r=null,e={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,o=new Array;Ye==="[";){for(rr(),r={};Ye!==""&&Ye!="]";){if(ii!=Pn.IDENTIFIER)throw Rn("Attribute name expected");var a=Ye;if(rr(),Ye!="=")throw Rn("Equal sign = expected");if(rr(),ii!=Pn.IDENTIFIER)throw Rn("Attribute value expected");var s=Ye;a==="style"&&(s=e[s]);var l;a==="arrowhead"&&(l=n[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=n[s],a="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:r,name:a,value:s}),o.push(a),rr(),Ye==","&&rr()}if(Ye!="]")throw Rn("Bracket ] expected");rr()}if(c1(o).call(o,"dir")){var c={};for(c.arrows={},t=0;t"&&(l.arrows="to"),l};_t(i=r.edges).call(i,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var c;_t(c=a.from.edges).call(c,function(g){var h=o(g);e.edges.push(h)})}if(nHe(s,l,function(g,h){var d=YK(e,g.id,h.id,a.type,a.attr),f=o(d);e.edges.push(f)}),a.to instanceof Object&&a.to.edges){var u;_t(u=a.to.edges).call(u,function(g){var h=o(g);e.edges.push(h)})}})}return r.attr&&(e.options=r.attr),e}function oHe(t,r){var e,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};r!=null&&(r.fixed!=null&&(n.nodes.fixed=r.fixed),r.parseColor!=null&&(n.nodes.parseColor=r.parseColor),r.inheritColor!=null&&(n.edges.inheritColor=r.inheritColor));var i=t.edges,o=Mn(i).call(i,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&n.edges.inheritColor===!1&&(l.color=s.color),l}),a=Mn(e=t.nodes).call(e,function(s){var l={id:s.id,fixed:n.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(n.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:o}}var aHe={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},sHe={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},lHe={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},cHe={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},uHe={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},gHe={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},hHe={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},dHe={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},fHe={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},CHe={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},vHe={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},AHe=Object.freeze({__proto__:null,cn:dHe,cs:vHe,de:sHe,en:aHe,es:lHe,fr:CHe,it:cHe,nl:uHe,pt:gHe,ru:hHe,uk:fHe});function IHe(t,r){try{var e=r.split(/[-_ /]/,2),n=It(e,2),i=n[0],o=n[1],a=i!=null?i.toLowerCase():null,s=o!=null?o.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var c;console.warn(Ec(c="Unknown variant ".concat(s," of language ")).call(c,a,"."))}if(a){var u=a;if(Object.prototype.hasOwnProperty.call(t,u))return u;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(r,", falling back to English.")),"en"}catch(g){return console.error(g),console.warn("Unexpected error while normalizing locale ".concat(r,", falling back to English.")),"en"}}var pHe=function(){function t(){Ie(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return pe(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var i=Math.floor(n/2),o=Math.floor(n/4),a=Math.floor(n/8),s=Math.floor(n/16),l=Math.floor(e/2),c=Math.floor(e/4),u=Math.floor(e/8),g=Math.floor(e/16);this.canvas.width=3*c,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,c,o],[l,o,u,a],[5*u,o,g,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var i=1;i2){n*=.5;for(var l=0;n>2&&l=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var c=this.coordinates[l];e.drawImage(this.canvas,c[0],c[1],c[2],c[3],i,o,a,s)}else e.drawImage(this.image,i,o,a,s)}}]),t}(),mHe=function(){function t(r){Ie(this,t),this.images={},this.imageBroken={},this.callback=r}return pe(t,[{key:"_tryloadBrokenUrl",value:function(e,n,i){if(!(e===void 0||i===void 0)){if(n===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",n)},i.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var i=this,o=this.images[e];if(o)return o;var a=new pHe;return this.images[e]=a,a.image.onload=function(){i._fixImageCoordinates(a.image),a.init(),i._redrawWithImage(a)},a.image.onerror=function(){console.error("Could not load image:",e),i._tryloadBrokenUrl(e,n,a)},a.image.src=e,a}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),eY={exports:{}},yHe=mt,bHe=yHe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),wHe=mt,$He=Pr,_He=ys,Tk=bHe,j5=Object.isExtensible,MHe=wHe(function(){j5(1)}),zHe=MHe||Tk?function(r){return!$He(r)||Tk&&_He(r)==="ArrayBuffer"?!1:j5?j5(r):!0}:j5,EHe=mt,tY=!EHe(function(){return Object.isExtensible(Object.preventExtensions({}))}),SHe=Oe,THe=Et,LHe=Tf,kHe=Pr,c$=_r,OHe=mi.f,Lk=Hf,xHe=HI,u$=zHe,HHe=$I,VHe=tY,rY=!1,us=HHe("meta"),PHe=0,g$=function(t){OHe(t,us,{value:{objectID:"O"+PHe++,weakData:{}}})},RHe=function(t,r){if(!kHe(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!c$(t,us)){if(!u$(t))return"F";if(!r)return"E";g$(t)}return t[us].objectID},DHe=function(t,r){if(!c$(t,us)){if(!u$(t))return!0;if(!r)return!1;g$(t)}return t[us].weakData},NHe=function(t){return VHe&&rY&&u$(t)&&!c$(t,us)&&g$(t),t},BHe=function(){FHe.enable=function(){},rY=!0;var t=Lk.f,r=THe([].splice),e={};e[us]=1,t(e).length&&(Lk.f=function(n){for(var i=t(n),o=0,a=i.length;og;g++)if(d=A(t[g]),d&&kk(xk,d))return d;return new U5(!1)}c=YHe(t,u)}for(f=o?t.next:c.next;!(C=UHe(f,c)).done;){try{d=A(C.value)}catch(I){Ok(c,"throw",I)}if(typeof d=="object"&&d&&kk(xk,d))return d}return new U5(!1)},QHe=Cr,JHe=TypeError,WI=function(t,r){if(QHe(r,t))return t;throw new JHe("Incorrect invocation")},eVe=Oe,tVe=Kt,rVe=GI,nVe=mt,iVe=bs,oVe=Z1,aVe=WI,sVe=$r,lVe=Pr,cVe=$c,uVe=zc,gVe=mi.f,hVe=W1.forEach,dVe=Cn,nY=F1,fVe=nY.set,CVe=nY.getterFor,h$=function(t,r,e){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,o=n?"set":"add",a=tVe[t],s=a&&a.prototype,l={},c;if(!dVe||!sVe(a)||!(i||s.forEach&&!nVe(function(){new a().entries().next()})))c=e.getConstructor(r,t,n,o),rVe.enable();else{c=r(function(h,d){fVe(aVe(h,u),{type:t,collection:new a}),cVe(d)||oVe(d,h[o],{that:h,AS_ENTRIES:n})});var u=c.prototype,g=CVe(t);hVe(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var d=h==="add"||h==="set";h in s&&!(i&&h==="clear")&&iVe(u,h,function(f,C){var v=g(this).collection;if(!d&&i&&!lVe(f))return h==="get"?void 0:!1;var A=v[h](f===0?0:f,C);return d?this:A})}),i||gVe(u,"size",{configurable:!0,get:function(){return g(this).collection.size}})}return uVe(c,t,!1,!0),l[t]=c,eVe({global:!0,forced:!0},l),i||e.setStrong(c,t,n),c},vVe=ig,d$=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:vVe(t,n,r[n],e);return t},AVe=Xn,IVe=jw,pVe=lr,mVe=Cn,Hk=pVe("species"),iY=function(t){var r=AVe(t);mVe&&r&&!r[Hk]&&IVe(r,Hk,{configurable:!0,get:function(){return this}})},yVe=Mc,bVe=jw,Vk=d$,wVe=B1,$Ve=WI,_Ve=$c,MVe=Z1,zVe=Dw,$C=Nw,EVe=iY,Jg=Cn,Pk=GI.fastKey,oY=F1,Rk=oY.set,R3=oY.getterFor,aY={getConstructor:function(t,r,e,n){var i=t(function(c,u){$Ve(c,o),Rk(c,{type:r,index:yVe(null),first:void 0,last:void 0,size:0}),Jg||(c.size=0),_Ve(u)||MVe(u,c[n],{that:c,AS_ENTRIES:e})}),o=i.prototype,a=R3(r),s=function(c,u,g){var h=a(c),d=l(c,u),f,C;return d?d.value=g:(h.last=d={index:C=Pk(u,!0),key:u,value:g,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=d),f&&(f.next=d),Jg?h.size++:c.size++,C!=="F"&&(h.index[C]=d)),c},l=function(c,u){var g=a(c),h=Pk(u),d;if(h!=="F")return g.index[h];for(d=g.first;d;d=d.next)if(d.key===u)return d};return Vk(o,{clear:function(){for(var u=this,g=a(u),h=g.index,d=g.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete h[d.index],d=d.next;g.first=g.last=void 0,Jg?g.size=0:u.size=0},delete:function(c){var u=this,g=a(u),h=l(u,c);if(h){var d=h.next,f=h.previous;delete g.index[h.index],h.removed=!0,f&&(f.next=d),d&&(d.previous=f),g.first===h&&(g.first=d),g.last===h&&(g.last=f),Jg?g.size--:u.size--}return!!h},forEach:function(u){for(var g=a(this),h=wVe(u,arguments.length>1?arguments[1]:void 0),d;d=d?d.next:g.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),Vk(o,e?{get:function(u){var g=l(this,u);return g&&g.value},set:function(u,g){return s(this,u===0?0:u,g)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),Jg&&bVe(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=R3(r),o=R3(n);zVe(t,r,function(a,s){Rk(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,$C(void 0,!0)):$C(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),EVe(r)}},SVe=h$,TVe=aY;SVe("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},TVe);var LVe=wt,kVe=LVe.Map,OVe=kVe,xVe=OVe,HVe=xVe,ZI=ke(HVe),VVe=function(){function t(){Ie(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Or(this.options,this.defaultOptions)}return pe(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Mt(n).call(n,i)===-1){var o=e[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new ZI,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[o]),this._groups.set(e,i)}else{var a=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[a],this._groups.set(e,i)}return i}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),PVe=Oe;PVe({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var RVe=wt,DVe=RVe.Number.isNaN,NVe=DVe,BVe=NVe,FVe=BVe,C7=ke(FVe),jVe=Kt,UVe=jVe.isFinite,GVe=Number.isFinite||function(r){return typeof r=="number"&&UVe(r)},WVe=Oe,ZVe=GVe;WVe({target:"Number",stat:!0},{isFinite:ZVe});var KVe=wt,YVe=KVe.Number.isFinite,XVe=YVe,qVe=XVe,QVe=qVe,Ml=ke(QVe),JVe=Oe,ePe=W1.some,tPe=sg,rPe=tPe("some");JVe({target:"Array",proto:!0,forced:!rPe},{some:function(r){return ePe(this,r,arguments.length>1?arguments[1]:void 0)}});var nPe=Rr,iPe=nPe("Array").some,oPe=Cr,aPe=iPe,D3=Array.prototype,sPe=function(t){var r=t.some;return t===D3||oPe(D3,t)&&r===D3.some?aPe:r},lPe=sPe,cPe=lPe,uPe=cPe,sY=ke(uPe);function vl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var gPe=lK,hPe=gPe,dPe=hPe,fPe=dPe,lY=fPe,CPe=ke(lY),vPe=Oe,APe=NW;vPe({target:"Object",stat:!0},{setPrototypeOf:APe});var IPe=wt,pPe=IPe.Object.setPrototypeOf,mPe=pPe,yPe=mPe,bPe=yPe,wPe=bPe,$Pe=wPe,_Pe=$Pe,cY=_Pe,v7=ke(cY),MPe=$W,zPe=MPe,EPe=zPe,SPe=EPe,TPe=SPe,f$=ke(TPe);function A7(t,r){var e;return A7=v7?f$(e=v7).call(e):function(i,o){return i.__proto__=o,i},A7(t,r)}function St(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=CPe(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),kI(t,"prototype",{writable:!1}),r&&A7(t,r)}function Pt(t,r){if(r&&(dt(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vl(t)}var LPe=nK,kPe=LPe,OPe=kPe,xPe=OPe,uY=xPe,Dk=ke(uY);function xe(t){var r;return xe=v7?f$(r=Dk).call(r):function(n){return n.__proto__||Dk(n)},xe(t)}function ar(t,r,e){return r=FZ(r),r in t?kI(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var gY={exports:{}},hY={exports:{}};(function(t){var r=Yw,e=BZ;function n(i){"@babel/helpers - typeof";return t.exports=n=typeof r=="function"&&typeof e=="symbol"?function(o){return typeof o}:function(o){return o&&typeof r=="function"&&o.constructor===r&&o!==r.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(hY);var HPe=hY.exports,VPe=JZ,PPe=VPe,RPe=PPe,DPe=RPe,NPe=DPe,Nk=_r,BPe=Xw,FPe=D1,jPe=mi,UPe=function(t,r,e){for(var n=BPe(r),i=jPe.f,o=FPe.f,a=0;a2&&hRe(i,arguments[2]);var o=[];return fRe(r,IRe,{that:o}),N3(i,"errors",o),i};lA?lA(wu,cA):gRe(wu,cA,{name:!0});var F3=wu.prototype=CY(cA.prototype,{constructor:B3(1,wu),message:B3(1,""),name:B3(1,"AggregateError")});lRe({global:!0,constructor:!0,arity:2},{AggregateError:wu});var pRe=Kt,mRe=ys,Gf=mRe(pRe.process)==="process",yRe=TI,bRe=rg,wRe=TypeError,vY=function(t){if(yRe(t))return t;throw new wRe(bRe(t)+" is not a constructor")},Fk=Qn,$Re=vY,_Re=$c,MRe=lr,zRe=MRe("species"),AY=function(t,r){var e=Fk(t).constructor,n;return e===void 0||_Re(n=Fk(e)[zRe])?r:$Re(n)},ERe=N1,IY=/(?:ipad|iphone|ipod).*applewebkit/i.test(ERe),Pi=Kt,SRe=Ju,TRe=B1,jk=$r,LRe=_r,pY=mt,Uk=xW,kRe=kf,Gk=kw,ORe=cK,xRe=IY,HRe=Gf,I7=Pi.setImmediate,p7=Pi.clearImmediate,VRe=Pi.process,j3=Pi.Dispatch,PRe=Pi.Function,Wk=Pi.MessageChannel,RRe=Pi.String,U3=0,Dh={},Zk="onreadystatechange",Dd,hl,G3,W3;pY(function(){Dd=Pi.location});var C$=function(t){if(LRe(Dh,t)){var r=Dh[t];delete Dh[t],r()}},Z3=function(t){return function(){C$(t)}},Kk=function(t){C$(t.data)},Yk=function(t){Pi.postMessage(RRe(t),Dd.protocol+"//"+Dd.host)};(!I7||!p7)&&(I7=function(r){ORe(arguments.length,1);var e=jk(r)?r:PRe(r),n=kRe(arguments,1);return Dh[++U3]=function(){SRe(e,void 0,n)},hl(U3),U3},p7=function(r){delete Dh[r]},HRe?hl=function(t){VRe.nextTick(Z3(t))}:j3&&j3.now?hl=function(t){j3.now(Z3(t))}:Wk&&!xRe?(G3=new Wk,W3=G3.port2,G3.port1.onmessage=Kk,hl=TRe(W3.postMessage,W3)):Pi.addEventListener&&jk(Pi.postMessage)&&!Pi.importScripts&&Dd&&Dd.protocol!=="file:"&&!pY(Yk)?(hl=Yk,Pi.addEventListener("message",Kk,!1)):Zk in Gk("script")?hl=function(t){Uk.appendChild(Gk("script"))[Zk]=function(){Uk.removeChild(this),C$(t)}}:hl=function(t){setTimeout(Z3(t),0)});var mY={set:I7,clear:p7},yY=function(){this.head=null,this.tail=null};yY.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}};var bY=yY,DRe=N1,NRe=/ipad|iphone|ipod/i.test(DRe)&&typeof Pebble<"u",BRe=N1,FRe=/web0s(?!.*chrome)/i.test(BRe),ic=Kt,Xk=B1,jRe=D1.f,K3=mY.set,URe=bY,GRe=IY,WRe=NRe,ZRe=FRe,Y3=Gf,qk=ic.MutationObserver||ic.WebKitMutationObserver,Qk=ic.document,Jk=ic.process,_C=ic.Promise,eO=jRe(ic,"queueMicrotask"),m7=eO&&eO.value,Qc,X3,q3,MC,tO;if(!m7){var zC=new URe,EC=function(){var t,r;for(Y3&&(t=Jk.domain)&&t.exit();r=zC.get();)try{r()}catch(e){throw zC.head&&Qc(),e}t&&t.enter()};!GRe&&!Y3&&!ZRe&&qk&&Qk?(X3=!0,q3=Qk.createTextNode(""),new qk(EC).observe(q3,{characterData:!0}),Qc=function(){q3.data=X3=!X3}):!WRe&&_C&&_C.resolve?(MC=_C.resolve(void 0),MC.constructor=_C,tO=Xk(MC.then,MC),Qc=function(){tO(EC)}):Y3?Qc=function(){Jk.nextTick(EC)}:(K3=Xk(K3,ic),Qc=function(){K3(EC)}),m7=function(t){zC.head||Qc(),zC.add(t)}}var KRe=m7,YRe=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch{}},gg=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}},XRe=Kt,hg=XRe.Promise,wY=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",qRe=wY,QRe=Gf,JRe=!qRe&&!QRe&&typeof window=="object"&&typeof document=="object",eDe=Kt,Nh=hg,tDe=$r,rDe=IW,nDe=GW,iDe=lr,oDe=JRe,aDe=wY,Q3=eg,rO=Nh&&Nh.prototype,sDe=iDe("species"),y7=!1,$Y=tDe(eDe.PromiseRejectionEvent),lDe=rDe("Promise",function(){var t=nDe(Nh),r=t!==String(Nh);if(!r&&Q3===66||!(rO.catch&&rO.finally))return!0;if(!Q3||Q3<51||!/native code/.test(t)){var e=new Nh(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=e.constructor={};if(i[sDe]=n,y7=e.then(function(){})instanceof n,!y7)return!0}return!r&&(oDe||aDe)&&!$Y}),Wf={CONSTRUCTOR:lDe,REJECTION_EVENT:$Y,SUBCLASSING:y7},Sa={},nO=pi,cDe=TypeError,uDe=function(t){var r,e;this.promise=new t(function(n,i){if(r!==void 0||e!==void 0)throw new cDe("Bad Promise constructor");r=n,e=i}),this.resolve=nO(r),this.reject=nO(e)};Sa.f=function(t){return new uDe(t)};var gDe=Oe,uA=Gf,E1=Kt,Zf=en,hDe=ig,dDe=zc,fDe=iY,CDe=pi,b7=$r,vDe=Pr,ADe=WI,IDe=AY,_Y=mY.set,v$=KRe,pDe=YRe,mDe=gg,yDe=bY,MY=F1,w7=hg,zY=Wf,EY=Sa,KI="Promise",SY=zY.CONSTRUCTOR,bDe=zY.REJECTION_EVENT,J3=MY.getterFor(KI),wDe=MY.set,$De=w7&&w7.prototype,$2=w7,em=$De,TY=E1.TypeError,$7=E1.document,A$=E1.process,_7=EY.f,_De=_7,MDe=!!($7&&$7.createEvent&&E1.dispatchEvent),LY="unhandledrejection",zDe="rejectionhandled",iO=0,kY=1,EDe=2,I$=1,OY=2,SC,oO,SDe,xY=function(t){var r;return vDe(t)&&b7(r=t.then)?r:!1},HY=function(t,r){var e=r.value,n=r.state===kY,i=n?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain,l,c,u;try{i?(n||(r.rejection===OY&&LDe(r),r.rejection=I$),i===!0?l=e:(s&&s.enter(),l=i(e),s&&(s.exit(),u=!0)),l===t.promise?a(new TY("Promise-chain cycle")):(c=xY(l))?Zf(c,l,o,a):o(l)):a(e)}catch(g){s&&!u&&s.exit(),a(g)}},VY=function(t,r){t.notified||(t.notified=!0,v$(function(){for(var e=t.reactions,n;n=e.get();)HY(n,t);t.notified=!1,r&&!t.rejection&&TDe(t)}))},PY=function(t,r,e){var n,i;MDe?(n=$7.createEvent("Event"),n.promise=r,n.reason=e,n.initEvent(t,!1,!0),E1.dispatchEvent(n)):n={promise:r,reason:e},!bDe&&(i=E1["on"+t])?i(n):t===LY&&pDe("Unhandled promise rejection",e)},TDe=function(t){Zf(_Y,E1,function(){var r=t.facade,e=t.value,n=aO(t),i;if(n&&(i=mDe(function(){uA?A$.emit("unhandledRejection",e,r):PY(LY,r,e)}),t.rejection=uA||aO(t)?OY:I$,i.error))throw i.value})},aO=function(t){return t.rejection!==I$&&!t.parent},LDe=function(t){Zf(_Y,E1,function(){var r=t.facade;uA?A$.emit("rejectionHandled",r):PY(zDe,r,t.value)})},_2=function(t,r,e){return function(n){t(r,n,e)}},Y2=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=EDe,VY(t,!0))},M7=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new TY("Promise can't be resolved itself");var n=xY(r);n?v$(function(){var i={done:!1};try{Zf(n,r,_2(M7,i,t),_2(Y2,i,t))}catch(o){Y2(i,o,t)}}):(t.value=r,t.state=kY,VY(t,!1))}catch(i){Y2({done:!1},i,t)}}};SY&&($2=function(r){ADe(this,em),CDe(r),Zf(SC,this);var e=J3(this);try{r(_2(M7,e),_2(Y2,e))}catch(n){Y2(e,n)}},em=$2.prototype,SC=function(r){wDe(this,{type:KI,done:!1,notified:!1,parent:!1,reactions:new yDe,rejection:!1,state:iO,value:void 0})},SC.prototype=hDe(em,"then",function(r,e){var n=J3(this),i=_7(IDe(this,$2));return n.parent=!0,i.ok=b7(r)?r:!0,i.fail=b7(e)&&e,i.domain=uA?A$.domain:void 0,n.state===iO?n.reactions.add(i):v$(function(){HY(i,n)}),i.promise}),oO=function(){var t=new SC,r=J3(t);this.promise=t,this.resolve=_2(M7,r),this.reject=_2(Y2,r)},EY.f=_7=function(t){return t===$2||t===SDe?new oO(t):_De(t)});gDe({global:!0,constructor:!0,wrap:!0,forced:SY},{Promise:$2});dDe($2,KI,!1,!0);fDe(KI);var kDe=hg,ODe=QW,xDe=Wf.CONSTRUCTOR,YI=xDe||!ODe(function(t){kDe.all(t).then(void 0,function(){})}),HDe=Oe,VDe=en,PDe=pi,RDe=Sa,DDe=gg,NDe=Z1,BDe=YI;HDe({target:"Promise",stat:!0,forced:BDe},{all:function(r){var e=this,n=RDe.f(e),i=n.resolve,o=n.reject,a=DDe(function(){var s=PDe(e.resolve),l=[],c=0,u=1;NDe(r,function(g){var h=c++,d=!1;u++,VDe(s,e,g).then(function(f){d||(d=!0,l[h]=f,--u||i(l))},o)}),--u||i(l)});return a.error&&o(a.value),n.promise}});var FDe=Oe,jDe=Wf.CONSTRUCTOR,sO=hg;sO&&sO.prototype;FDe({target:"Promise",proto:!0,forced:jDe,real:!0},{catch:function(t){return this.then(void 0,t)}});var UDe=Oe,GDe=en,WDe=pi,ZDe=Sa,KDe=gg,YDe=Z1,XDe=YI;UDe({target:"Promise",stat:!0,forced:XDe},{race:function(r){var e=this,n=ZDe.f(e),i=n.reject,o=KDe(function(){var a=WDe(e.resolve);YDe(r,function(s){GDe(a,e,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var qDe=Oe,QDe=en,JDe=Sa,eNe=Wf.CONSTRUCTOR;qDe({target:"Promise",stat:!0,forced:eNe},{reject:function(r){var e=JDe.f(this);return QDe(e.reject,void 0,r),e.promise}});var tNe=Qn,rNe=Pr,nNe=Sa,RY=function(t,r){if(tNe(t),rNe(r)&&r.constructor===t)return r;var e=nNe.f(t),n=e.resolve;return n(r),e.promise},iNe=Oe,oNe=Xn,aNe=W6e,sNe=hg,lNe=Wf.CONSTRUCTOR,cNe=RY,uNe=oNe("Promise"),gNe=!lNe;iNe({target:"Promise",stat:!0,forced:aNe},{resolve:function(r){return cNe(gNe&&this===uNe?sNe:this,r)}});var hNe=Oe,dNe=en,fNe=pi,CNe=Sa,vNe=gg,ANe=Z1,INe=YI;hNe({target:"Promise",stat:!0,forced:INe},{allSettled:function(r){var e=this,n=CNe.f(e),i=n.resolve,o=n.reject,a=vNe(function(){var s=fNe(e.resolve),l=[],c=0,u=1;ANe(r,function(g){var h=c++,d=!1;u++,dNe(s,e,g).then(function(f){d||(d=!0,l[h]={status:"fulfilled",value:f},--u||i(l))},function(f){d||(d=!0,l[h]={status:"rejected",reason:f},--u||i(l))})}),--u||i(l)});return a.error&&o(a.value),n.promise}});var pNe=Oe,mNe=en,yNe=pi,bNe=Xn,wNe=Sa,$Ne=gg,_Ne=Z1,MNe=YI,lO="No one promise resolved";pNe({target:"Promise",stat:!0,forced:MNe},{any:function(r){var e=this,n=bNe("AggregateError"),i=wNe.f(e),o=i.resolve,a=i.reject,s=$Ne(function(){var l=yNe(e.resolve),c=[],u=0,g=1,h=!1;_Ne(r,function(d){var f=u++,C=!1;g++,mNe(l,e,d).then(function(v){C||h||(h=!0,o(v))},function(v){C||h||(C=!0,c[f]=v,--g||a(new n(c,lO)))})}),--g||a(new n(c,lO))});return s.error&&a(s.value),i.promise}});var zNe=Oe,z7=hg,ENe=mt,SNe=Xn,TNe=$r,LNe=AY,cO=RY,kNe=z7&&z7.prototype,ONe=!!z7&&ENe(function(){kNe.finally.call({then:function(){}},function(){})});zNe({target:"Promise",proto:!0,real:!0,forced:ONe},{finally:function(t){var r=LNe(this,SNe("Promise")),e=TNe(t);return this.then(e?function(n){return cO(r,t()).then(function(){return n})}:t,e?function(n){return cO(r,t()).then(function(){throw n})}:t)}});var xNe=wt,HNe=xNe.Promise,VNe=HNe,PNe=VNe,RNe=Oe,DNe=Sa;RNe({target:"Promise",stat:!0},{withResolvers:function(){var r=DNe.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var NNe=PNe,BNe=NNe,FNe=Oe,jNe=Sa,UNe=gg;FNe({target:"Promise",stat:!0,forced:!0},{try:function(t){var r=jNe.f(this),e=UNe(t);return(e.error?r.reject:r.resolve)(e.value),r.promise}});var GNe=BNe,WNe=GNe,ZNe=WNe,KNe=eK,YNe=KNe,XNe=YNe,qNe=XNe,QNe=qNe;(function(t){var r=HPe.default,e=sZ,n=Yw,i=lY,o=uY,a=NPe,s=WZ,l=cY,c=ZNe,u=QNe,g=KZ;function h(){t.exports=h=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var d,f={},C=Object.prototype,v=C.hasOwnProperty,A=e||function(R,V,N){R[V]=N.value},I=typeof n=="function"?n:{},p=I.iterator||"@@iterator",m=I.asyncIterator||"@@asyncIterator",b=I.toStringTag||"@@toStringTag";function _(R,V,N){return e(R,V,{value:N,enumerable:!0,configurable:!0,writable:!0}),R[V]}try{_({},"")}catch{_=function(N,K,E){return N[K]=E}}function L(R,V,N,K){var E=V&&V.prototype instanceof B?V:B,$=i(E.prototype),x=new Z(K||[]);return A($,"_invoke",{value:Ne(R,N,x)}),$}function M(R,V,N){try{return{type:"normal",arg:R.call(V,N)}}catch(K){return{type:"throw",arg:K}}}f.wrap=L;var S="suspendedStart",T="suspendedYield",k="executing",O="completed",P={};function B(){}function te(){}function ee(){}var re={};_(re,p,function(){return this});var Me=o,He=Me&&Me(Me(ie([])));He&&He!==C&&v.call(He,p)&&(re=He);var nt=ee.prototype=B.prototype=i(re);function De(R){var V;a(V=["next","throw","return"]).call(V,function(N){_(R,N,function(K){return this._invoke(N,K)})})}function be(R,V){function N(E,$,x,j){var U=M(R[E],R,$);if(U.type!=="throw"){var q=U.arg,le=q.value;return le&&r(le)=="object"&&v.call(le,"__await")?V.resolve(le.__await).then(function(ue){N("next",ue,x,j)},function(ue){N("throw",ue,x,j)}):V.resolve(le).then(function(ue){q.value=ue,x(q)},function(ue){return N("throw",ue,x,j)})}j(U.arg)}var K;A(this,"_invoke",{value:function($,x){function j(){return new V(function(U,q){N($,x,U,q)})}return K=K?K.then(j,j):j()}})}function Ne(R,V,N){var K=S;return function(E,$){if(K===k)throw new Error("Generator is already running");if(K===O){if(E==="throw")throw $;return{value:d,done:!0}}for(N.method=E,N.arg=$;;){var x=N.delegate;if(x){var j=Ue(x,N);if(j){if(j===P)continue;return j}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(K===S)throw K=O,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);K=k;var U=M(R,V,N);if(U.type==="normal"){if(K=N.done?O:T,U.arg===P)continue;return{value:U.arg,done:N.done}}U.type==="throw"&&(K=O,N.method="throw",N.arg=U.arg)}}}function Ue(R,V){var N=V.method,K=R.iterator[N];if(K===d)return V.delegate=null,N==="throw"&&R.iterator.return&&(V.method="return",V.arg=d,Ue(R,V),V.method==="throw")||N!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+N+"' method")),P;var E=M(K,R.iterator,V.arg);if(E.type==="throw")return V.method="throw",V.arg=E.arg,V.delegate=null,P;var $=E.arg;return $?$.done?(V[R.resultName]=$.value,V.next=R.nextLoc,V.method!=="return"&&(V.method="next",V.arg=d),V.delegate=null,P):$:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,P)}function ot(R){var V,N={tryLoc:R[0]};1 in R&&(N.catchLoc=R[1]),2 in R&&(N.finallyLoc=R[2],N.afterLoc=R[3]),s(V=this.tryEntries).call(V,N)}function ft(R){var V=R.completion||{};V.type="normal",delete V.arg,R.completion=V}function Z(R){this.tryEntries=[{tryLoc:"root"}],a(R).call(R,ot,this),this.reset(!0)}function ie(R){if(R||R===""){var V=R[p];if(V)return V.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var N=-1,K=function E(){for(;++N=0;--E){var $=this.tryEntries[E],x=$.completion;if($.tryLoc==="root")return K("end");if($.tryLoc<=this.prev){var j=v.call($,"catchLoc"),U=v.call($,"finallyLoc");if(j&&U){if(this.prev<$.catchLoc)return K($.catchLoc,!0);if(this.prev<$.finallyLoc)return K($.finallyLoc)}else if(j){if(this.prev<$.catchLoc)return K($.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return K($.finallyLoc)}}}},abrupt:function(V,N){for(var K=this.tryEntries.length-1;K>=0;--K){var E=this.tryEntries[K];if(E.tryLoc<=this.prev&&v.call(E,"finallyLoc")&&this.prev=0;--N){var K=this.tryEntries[N];if(K.finallyLoc===V)return this.complete(K.completion,K.afterLoc),ft(K),P}},catch:function(V){for(var N=this.tryEntries.length-1;N>=0;--N){var K=this.tryEntries[N];if(K.tryLoc===V){var E=K.completion;if(E.type==="throw"){var $=E.arg;ft(K)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(V,N,K){return this.delegate={iterator:ie(V),resultName:N,nextLoc:K},this.method==="next"&&(this.arg=d),P}},f}t.exports=h,t.exports.__esModule=!0,t.exports.default=t.exports})(gY);var JNe=gY.exports,G5=JNe(),eBe=G5;try{regeneratorRuntime=G5}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=G5:Function("r","regeneratorRuntime = r")(G5)}var ti=ke(eBe),tBe=pi,rBe=qn,nBe=wI,iBe=yi,oBe=TypeError,uO=function(t){return function(r,e,n,i){tBe(e);var o=rBe(r),a=nBe(o),s=iBe(o),l=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=c;break}if(l+=c,t?l<0:s<=l)throw new oBe("Reduce of empty array with no initial value")}for(;t?l>=0:s>l;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},aBe={left:uO(!1),right:uO(!0)},sBe=Oe,lBe=aBe.left,cBe=sg,gO=eg,uBe=Gf,gBe=!uBe&&gO>79&&gO<83,hBe=gBe||!cBe("reduce");sBe({target:"Array",proto:!0,forced:hBe},{reduce:function(r){var e=arguments.length;return lBe(this,r,e,e>1?arguments[1]:void 0)}});var dBe=Rr,fBe=dBe("Array").reduce,CBe=Cr,vBe=fBe,tm=Array.prototype,ABe=function(t){var r=t.reduce;return t===tm||CBe(tm,t)&&r===tm.reduce?vBe:r},IBe=ABe,pBe=IBe,mBe=pBe,p$=ke(mBe),yBe=G1,bBe=yi,wBe=OI,$Be=B1,DY=function(t,r,e,n,i,o,a,s){for(var l=i,c=0,u=a?$Be(a,s):!1,g,h;c0&&yBe(g)?(h=bBe(g),l=DY(t,r,g,h,l,o-1)-1):(wBe(l+1),t[l]=g),l++),c++;return l},_Be=DY,MBe=Oe,zBe=_Be,EBe=pi,SBe=qn,TBe=yi,LBe=xI;MBe({target:"Array",proto:!0},{flatMap:function(r){var e=SBe(this),n=TBe(e),i;return EBe(r),i=LBe(e,0),i.length=zBe(i,e,e,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var kBe=Rr;kBe("Array").flatMap;var OBe=h$,xBe=aY;OBe("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},xBe);var HBe=wt,VBe=HBe.Set,PBe=VBe,RBe=PBe,DBe=RBe,ta=ke(DBe),NBe=NZ,X2=ke(NBe),BBe=Fw,FBe=BBe,jBe=FBe,UBe=jBe,GBe=UBe,WBe=GBe,ZBe=WBe,KBe=ZBe,YBe=KBe,XBe=YBe,rm=ke(XBe),hO=cZ,qBe=Math.floor,E7=function(t,r){var e=t.length,n=qBe(e/2);return e<8?QBe(t,r):JBe(t,E7(hO(t,0,n),r),E7(hO(t,n),r),r)},QBe=function(t,r){for(var e=t.length,n=1,i,o;n0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},JBe=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a3)){if(dFe)return!0;if(pO)return pO<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)e1.push({k:e+i,v:n})}for(e1.sort(function(o,a){return a.v-o.v}),i=0;ivO(e)?1:-1}};sFe({target:"Array",proto:!0,forced:IFe},{sort:function(r){r!==void 0&&lFe(r);var e=cFe(this);if(BY)return r===void 0?mO(e):mO(e,r);var n=[],i=CO(e),o,a;for(a=0;aa;)l=n(e,s=i[a++]),l!==void 0&&Nje(o,s,l);return o}});var Bje=wt,Fje=Bje.Object.getOwnPropertyDescriptors,jje=Fje,Uje=jje,Gje=Uje,Ma=ke(Gje),XY={exports:{}},Wje=Oe,Zje=Cn,$O=SI.f;Wje({target:"Object",stat:!0,forced:Object.defineProperties!==$O,sham:!Zje},{defineProperties:$O});var Kje=wt,qY=Kje.Object,Yje=XY.exports=function(r,e){return qY.defineProperties(r,e)};qY.defineProperties.sham&&(Yje.sham=!0);var Xje=XY.exports,qje=Xje,Qje=qje,Jje=Qje,Yf=ke(Jje);let TC;const eUe=new Uint8Array(16);function tUe(){if(!TC&&(TC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!TC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return TC(eUe)}const wn=[];for(let t=0;t<256;++t)wn.push((t+256).toString(16).slice(1));function rUe(t,r=0){return wn[t[r+0]]+wn[t[r+1]]+wn[t[r+2]]+wn[t[r+3]]+"-"+wn[t[r+4]]+wn[t[r+5]]+"-"+wn[t[r+6]]+wn[t[r+7]]+"-"+wn[t[r+8]]+wn[t[r+9]]+"-"+wn[t[r+10]]+wn[t[r+11]]+wn[t[r+12]]+wn[t[r+13]]+wn[t[r+14]]+wn[t[r+15]]}const nUe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var _O={randomUUID:nUe};function q2(t,r,e){if(_O.randomUUID&&!r&&!t)return _O.randomUUID();t=t||{};const n=t.random||(t.rng||tUe)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,rUe(n)}var QY;function MO(t,r){var e=or(t);if(_a){var n=_a(t);r&&(n=jr(n).call(n,function(i){return Ta(t,i).enumerable})),e.push.apply(e,n)}return e}function zO(t){for(var r=1;r"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}function Li(t,r){var e=typeof $s<"u"&&U1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=aUe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function aUe(t,r){var e;if(t){if(typeof t=="string")return EO(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return j1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EO(t,r)}}function EO(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);ethis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=Oo(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;_t(e=fa(n=this._queue).call(n,0)).call(e,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(e,n){var i=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var a=0;aa&&(a=u,o=c)}return o}},{key:"min",value:function(e){var n=rm(this._pairs),i=n.next();if(i.done)return null;for(var o=i.value[1],a=e(i.value[1],i.value[0]);!(i=n.next()).done;){var s=It(i.value,2),l=s[0],c=s[1],u=e(c,l);uu?1:cs)&&(a=u,s=g)}}catch(h){l.e(h)}finally{l.f()}return a||null}},{key:"min",value:function(i){var o,a=null,s=null,l=Li(gA(o=this._data).call(o)),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=u[i];typeof g=="number"&&(s==null||gr.x&&t.topr.y}function dA(t){return typeof t=="string"&&t!==""}function rX(t,r,e,n){var i=n.x,o=n.y;if(typeof n.distanceToBorder=="function"){var a=n.distanceToBorder(t,r),s=Math.sin(r)*a,l=Math.cos(r)*a;l===a?(i+=a,o=n.y):s===a?(i=n.x,o-=a):(i+=l,o-=s)}else n.shape.width>n.shape.height?(i=n.x+n.shape.width*.5,o=n.y-e):(i=n.x+e,o=n.y-n.shape.height*.5);return{x:i,y:o}}var VUe=function(){function t(r){Ie(this,t),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return pe(t,[{key:"_add",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var a=this.measureText(o,i),s=Or({},gA(a));s.text=n,s.width=a.width,s.mod=i,(n===void 0||n==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},xO=function(){function t(r){Ie(this,t),this.text=r,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return pe(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(e),o=It(i,2),a=o[0],s=o[1],l=a.test(this.text.substr(this.position,s));return l&&n&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(e,n,i){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,i;if(e instanceof RegExp)i=e,n=1;else{var o=PUe[e];o!==void 0?i=o:i=new RegExp(e),n=e.length}return[i,n]}}]),t}(),RUe=function(){function t(r,e,n,i){var o=this;Ie(this,t),this.ctx=r,this.parent=e,this.selected=n,this.hover=i;var a=function(l,c){if(l===void 0)return 0;var u=o.parent.getFormattingValues(r,n,i,c),g=0;if(l!==""){var h=o.ctx.measureText(l);g=h.width}return{width:g,values:u}};this.lines=new VUe(a)}return pe(t,[{key:"process",value:function(e){if(!dA(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `);var i=String(e).split(` `),o=i.length;if(n.multi)for(var a=0;a0)for(var l=0;l0)for(var f=0;f")||n.parseStartTag("ital","")||n.parseStartTag("mono","")||n.parseEndTag("bold","")||n.parseEndTag("ital","")||n.parseEndTag("mono",""))||i(o);a||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var n=this,i=new xO(e),o=!0,a=function(u){return/\\/.test(u)?(i.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var n="",i=0;i1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,n),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=e.split("\r");o.length>0;){var a=this.getLongestFit(o);if(a===0){var s=o[0],l=this.getLongestFitWord(s);this.lines.newLine(qr(s).call(s,0,l),n),o[0]=qr(s).call(s,l)}else{var c=a;o[a-1]===" "?a--:o[c]===" "&&c++;var u=qr(o).call(o,0,a).join("");a==o.length&&i?this.lines.append(u,n):this.lines.newLine(u,n),o=qr(o).call(o,c)}}}}]),t}(),eh=["bold","ital","boldital","mono"],nX=function(){function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Ie(this,t),this.body=r,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return pe(t,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),dA(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(dt(e.font)==="object"){var n=e.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(e){var n=this;if(Ct(eh,function(i){n.fontOptions[i]={}}),t.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}Ct(e,function(i,o){i!=null&&dt(i)!=="object"&&(n.fontOptions[o]=i)})}},{key:"constrain",value:function(e){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=Zs(e,"widthConstraint");if(typeof i=="number")n.maxWdt=Number(i),n.minWdt=Number(i);else if(dt(i)==="object"){var o=Zs(e,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var a=Zs(e,["widthConstraint","minimum"]);typeof a=="number"&&(n.minWdt=Number(a))}var s=Zs(e,"heightConstraint");if(typeof s=="number")n.minHgt=Number(s);else if(dt(s)==="object"){var l=Zs(e,["heightConstraint","minimum"]);typeof l=="number"&&(n.minHgt=Number(l));var c=Zs(e,["heightConstraint","valign"]);typeof c=="string"&&(c==="top"||c==="bottom")&&(n.valign=c)}return n}},{key:"update",value:function(e,n){this.setOptions(e,!0),this.propagateFonts(n),er(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=b$("label",n)}},{key:"adjustSizes",value:function(e){var n=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(e,n){for(var i=0;i5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var l=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&l=this.elementOptions.scaling.label.maxVisible&&(l=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,o,a,n,i,s),this._drawBackground(e),this._drawText(e,n,this.size.yLine,s,l))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var n=this.getSize();e.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",a=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,n,i,o),l=It(s,2);n=l[0],i=l[1],e.textAlign="left",n=n-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(var c=0;c0&&(e.lineWidth=d.strokeWidth,e.strokeStyle=A,e.lineJoin="round"),e.fillStyle=v,d.strokeWidth>0&&e.strokeText(d.text,n+g,i+d.vadjust),e.fillText(d.text,n+g,i+d.vadjust),g+=d.width}i+=u.height}}}},{key:"_setAlignment",value:function(e,n,i,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,i=0;var a=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*a):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*a):e.textBaseline="middle"}else e.textBaseline=o;return[n,i]}},{key:"_getColor",value:function(e,n,i){var o=e||"#000000",a=i||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=eo(o,s),a=eo(a,s)}return[o,a]}},{key:"getTextSize",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,n,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,n=this.size.left,i=this.size.top-.5*e;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,i=-this.size.height*.5;break;case"top":n=o,i=-(this.size.height+e);break;case"bottom":n=o,i=e;break}}var a={left:n,top:i,width:this.size.width,height:this.size.height};return a}},{key:"calculateLabelSize",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,n,i),this.size.left=o-this.size.width*.5,this.size.top=a-this.size.height*.5,this.size.yLine=a+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,n,i,o){var a=function(u,g,h){return g==="normal"?h==="mod"?"":u[h]:u[g][h]!==void 0?u[g][h]:u[h]},s={color:a(this.fontOptions,o,"color"),size:a(this.fontOptions,o,"size"),face:a(this.fontOptions,o,"face"),mod:a(this.fontOptions,o,"mod"),vadjust:a(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||i)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,n,i));var l="";return s.mod!==void 0&&s.mod!==""&&(l+=s.mod+" "),l+=s.size+"px "+s.face,e.font=l.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,n){return e!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(e,n,i,o){var a=new RUe(e,this,n,i);return a.process(o)}},{key:"_processLabel",value:function(e,n,i){if(!(this.labelDirty===!1&&!this.differentState(n,i))){var o=this._processLabelText(e,n,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.height0&&(this.enableBorderDashes(e,n),e.stroke(),this.disableBorderDashes(e,n)),e.restore()}},{key:"performFill",value:function(e,n){e.save(),e.fillStyle=n.color,this.enableShadow(e,n),Df(e).call(e),this.disableShadow(e,n),e.restore(),this.performStroke(e,n)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,n,i,o,a){i!==void 0&&this.resize(i,o,a),this.left=e-this.width/2,this.top=n-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,n,i,o,a){this._updateBoundingBox(e,n,i,o,a)}},{key:"getDimensionsFromLabel",value:function(e,n,i){this.textSize=this.labelModule.getTextSize(e,n,i);var o=this.textSize.width,a=this.textSize.height,s=14;return o===0&&(o=s,a=s),{width:o,height:a}}}]),t}();function DUe(t){var r=NUe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function NUe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var BUe=function(t){St(e,t);var r=DUe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return pe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),_W(i,this.left,this.top,this.width,this.height,c.borderRadius),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"updateBoundingBox",value:function(i,o,a,s,l){this._updateBoundingBox(i,o,a,s,l);var c=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(c)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+a}}]),e}(Tc);function FUe(t){var r=jUe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function jUe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var w$=function(t){St(e,t);var r=FUe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a.labelOffset=0,a.selected=!1,a}return pe(e,[{key:"setOptions",value:function(i,o,a){this.options=i,o===void 0&&a===void 0||this.setImages(o,a)}},{key:"setImages",value:function(i,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=i):(this.imageObj=i,this.imageObjAlt=o)}},{key:"switchImages",value:function(i){var o=i&&!this.selected||!i&&this.selected;if(this.selected=i,this.imageObjAlt!==void 0&&o){var a=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=a}}},{key:"_getImagePadding",value:function(){var i={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;dt(o)=="object"?(i.top=o.top,i.right=o.right,i.bottom=o.bottom,i.left=o.left):(i.top=o,i.right=o,i.bottom=o,i.left=o)}return i}},{key:"_resizeImage",value:function(){var i,o;if(this.options.shapeProperties.useImageSize===!1){var a=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?a=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),i=this.options.size*2*a,o=this.options.size*2*s}else{var l=this._getImagePadding();i=this.imageObj.width+l.left+l.right,o=this.imageObj.height+l.top+l.bottom}this.width=i,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(i,o,a,s){this.initContextForDraw(i,s),Hw(i,o,a,s.size),this.performFill(i,s)}},{key:"_drawImageAtPosition",value:function(i,o){if(this.imageObj.width!=0){i.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(i,o);var a=1;this.options.shapeProperties.interpolation===!0&&(a=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),l=this.left+s.left,c=this.top+s.top,u=this.width-s.left-s.right,g=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(i,a,l,c,u,g),this.disableShadow(i,o)}}},{key:"_drawImageLabel",value:function(i,o,a,s,l){var c=0;if(this.height!==void 0){c=this.height*.5;var u=this.labelModule.getTextSize(i,s,l);u.lineCount>=1&&(c+=u.height/2)}var g=a+c;this.options.label&&(this.labelOffset=c),this.labelModule.draw(i,o,g,s,l,"hanging")}}]),e}(Tc);function UUe(t){var r=GUe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function GUe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var WUe=function(t){St(e,t);var r=UUe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return pe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this._drawRawCircle(i,o,a,c),this.updateBoundingBox(o,a),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,a,s,l)}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(w$);function ZUe(t){var r=KUe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function KUe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var YUe=function(t){St(e,t);var r=ZUe(e);function e(n,i,o,a,s){var l;return Ie(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return pe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l,this.radius=.5*this.width;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){this.switchImages(s),this.resize();var u=o,g=a;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this._drawRawCircle(i,u,g,c),i.save(),i.clip(),this._drawImageAtPosition(i,c),i.restore(),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a)}},{key:"updateBoundingBox",value:function(i,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=i,this.boundingBox.right=i+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(w$);function XUe(t){var r=qUe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function qUe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var K1=function(t){St(e,t);var r=XUe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,a)){var l,c;this.labelModule.getTextSize(i,o,a);var u=2*s.size;this.width=(l=this.customSizeWidth)!==null&&l!==void 0?l:u,this.height=(c=this.customSizeHeight)!==null&&c!==void 0?c:u,this.radius=.5*this.width}}},{key:"_drawShape",value:function(i,o,a,s,l,c,u,g){var h=this;return this.resize(i,c,u,g),this.left=s-this.width/2,this.top=l-this.height/2,this.initContextForDraw(i,g),Cye(o)(i,s,l,g.size),this.performFill(i,g),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(i.font=(c?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",i.fillText(this.options.icon.code,s,l)),{drawExternalLabel:function(){if(h.options.label!==void 0){h.labelModule.calculateLabelSize(i,c,u,s,l,"hanging");var f=l+.5*h.height+.5*h.labelModule.size.height;h.labelModule.draw(i,s,f,c,u,"hanging")}h.updateBoundingBox(s,l)}}}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),e}(Tc);function HO(t,r){var e=or(t);if(_a){var n=_a(t);r&&(n=jr(n).call(n,function(i){return Ta(t,i).enumerable})),e.push.apply(e,n)}return e}function QUe(t){for(var r=1;r"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var tGe=function(t){St(e,t);var r=JUe(e);function e(n,i,o,a){var s;return Ie(this,e),s=r.call(this,n,i,o,a),s.ctxRenderer=a,s}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l,c),this.left=o-this.width/2,this.top=a-this.height/2,i.save();var u=this.ctxRenderer({ctx:i,id:this.options.id,x:o,y:a,state:{selected:s,hover:l},style:QUe({},c),label:this.options.label});if(u.drawNode!=null&&u.drawNode(),i.restore(),u.drawExternalLabel){var g=u.drawExternalLabel;u.drawExternalLabel=function(){i.save(),g(),i.restore()}}return u.nodeDimensions&&(this.customSizeWidth=u.nodeDimensions.width,this.customSizeHeight=u.nodeDimensions.height),u}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(K1);function rGe(t){var r=nGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function nGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var iGe=function(t){St(e,t);var r=rGe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return pe(e,[{key:"resize",value:function(i,o,a){if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=s.width+this.margin.right+this.margin.left;this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),MW(i,o-this.width/2,a-this.height/2,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Tc);function oGe(t){var r=aGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function aGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var sGe=function(t){St(e,t);var r=oGe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"diamond",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(K1);function lGe(t){var r=cGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function cGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var uGe=function(t){St(e,t);var r=lGe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"circle",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.options.size}}]),e}(K1);function gGe(t){var r=hGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function hGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var VO=function(t){St(e,t);var r=gGe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width*.5,this.top=a-this.height*.5,this.initContextForDraw(i,c),G8(i,this.left,this.top,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,o,a,s,l)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.width*.5,s=this.height*.5,l=Math.sin(o)*a,c=Math.cos(o)*s;return a*s/Math.sqrt(l*l+c*c)}}]),e}(Tc);function dGe(t){var r=fGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function fGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var CGe=function(t){St(e,t);var r=dGe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return pe(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,o,a,s,l,c){var u=this;return this.resize(i,s,l),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=a-this.height/2,this._icon(i,o,a,s,l,c),{drawExternalLabel:function(){if(u.options.label!==void 0){var h=5;u.labelModule.draw(i,u.left+u.iconSize.width/2+u.margin.left,a+u.height/2+h,s)}u.updateBoundingBox(o,a)}}}},{key:"updateBoundingBox",value:function(i,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=i-this.options.icon.size*.5,this.boundingBox.right=i+this.options.icon.size*.5,this.boundingBox.bottom=o+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var a=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+a)}}},{key:"_icon",value:function(i,o,a,s,l,c){var u=Number(this.options.icon.size);this.options.icon.code!==void 0?(i.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+u+"px",this.options.icon.face].join(" "),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",this.enableShadow(i,c),i.fillText(this.options.icon.code,o,a),this.disableShadow(i,c)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Tc);function vGe(t){var r=AGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function AGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var IGe=function(t){St(e,t);var r=vGe(e);function e(n,i,o,a,s){var l;return Ie(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return pe(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){i.save(),this.switchImages(s),this.resize();var u=o,g=a;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var h=this.options.borderWidth,d=this.options.borderWidthSelected||2*this.options.borderWidth,f=(s?d:h)/this.body.view.scale;i.lineWidth=Math.min(this.width,f),i.beginPath();var C=s?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,v=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;c.opacity!==void 0&&(C=eo(C,c.opacity),v=eo(v,c.opacity)),i.strokeStyle=C,i.fillStyle=v,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),Df(i).call(i),this.performStroke(i,c),i.closePath()}this._drawImageAtPosition(i,c),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a),i.restore()}},{key:"updateBoundingBox",value:function(i,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o):(this.left=i-this.width/2,this.top=o-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(w$);function pGe(t){var r=mGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function mGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var yGe=function(t){St(e,t);var r=pGe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"square",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(K1);function bGe(t){var r=wGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function wGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var $Ge=function(t){St(e,t);var r=bGe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"hexagon",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(K1);function _Ge(t){var r=MGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function MGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var zGe=function(t){St(e,t);var r=_Ge(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"star",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(K1);function EGe(t){var r=SGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function SGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var TGe=function(t){St(e,t);var r=EGe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return pe(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.textSize=this.labelModule.getTextSize(i,o,a),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.enableShadow(i,c),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l),this.disableShadow(i,c),this.updateBoundingBox(o,a,i,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Tc);function LGe(t){var r=kGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function kGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var OGe=function(t){St(e,t);var r=LGe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangle",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(K1);function xGe(t){var r=HGe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function HGe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var VGe=function(t){St(e,t);var r=xGe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangleDown",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(K1);function PO(t,r){var e=or(t);if(_a){var n=_a(t);r&&(n=jr(n).call(n,function(i){return Ta(t,i).enumerable})),e.push.apply(e,n)}return e}function RO(t){for(var r=1;re.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,n,i){var o;if(i!==void 0){var a=e.group;if(n!==void 0&&n.group!==void 0&&a!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof a=="number"||typeof a=="string"&&a!="";if(s){var l=i.get(a);l.opacity!==void 0&&n.opacity===void 0&&(t.checkOpacity(l.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+l.opacity),l.opacity=void 0));var c=jr(o=HUe(n)).call(o,function(u){return n[u]!=null});c.push("font"),aA(c,e,l),e.color=g7(e.color)}}}},{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(aA(s,e,n,i),t.checkMass(n),e.opacity!==void 0&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),n.opacity!==void 0&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),Qi(e,n,"shadow",o),n.color!==void 0&&n.color!==null){var l=g7(n.color);FK(e.color,l)}else i===!0&&n.color===null&&(e.color=h1(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(e.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(e.fixed.y=n.fixed.y))),i===!0&&n.font===null&&(e.font=h1(o.font)),t.updateGroupOptions(e,n,a),n.scaling!==void 0&&Qi(e.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(e,n){if(e.mass!==void 0&&e.mass<=0){var i="";n!==void 0&&(i=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",WK),e.mass=1}}}]),t}();function PGe(t,r){var e=typeof $s<"u"&&U1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=RGe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function RGe(t,r){var e;if(t){if(typeof t=="string")return DO(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return j1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DO(t,r)}}function DO(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var i=0,o=or(this.body.nodes);i1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(JY("id",e))this.body.data.nodes=e;else if(ut(e))this.body.data.nodes=new $u,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new $u;else throw new TypeError("Array or DataSet expected");if(i&&Ct(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;Ct(this.nodesListeners,function(s,l){o.body.data.nodes.on(l,s)});var a=this.body.data.nodes.getIds();this.add(a,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,o=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:ki;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ct(this.body.nodes,function(i,o){var a=e.body.data.nodes.get(o);a!==void 0&&(n===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(a))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(ut(e)===!0){for(var i=0;i0?(l=s/a,n+=l*l):n+=s;return a===1/0?1/0:a*hWe(n)}});var fWe=wt,CWe=fWe.Math.hypot,vWe=CWe,AWe=vWe,IWe=AWe,pWe=ke(IWe);function oX(t){var r=mWe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function mWe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var xr=function(){function t(){Ie(this,t)}return pe(t,null,[{key:"transform",value:function(e,n){ut(e)||(e=[e]);for(var i=n.point.x,o=n.point.y,a=n.angle,s=n.length,l=0;l4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,a):this._drawLine(e,n,a)}},{key:"_drawLine",value:function(e,n,i,o,a){if(this.from!=this.to)this._line(e,n,i,o,a);else{var s=this._getCircleData(e),l=It(s,3),c=l[0],u=l[1],g=l[2];this._circle(e,n,c,u,g)}}},{key:"_drawDashedLine",value:function(e,n,i,o,a){e.lineCap="round";var s=ut(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,i);else{var l=this._getCircleData(e),c=It(l,3),u=c[0],g=c[1],h=c[2];this._circle(e,n,u,g,h)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)zW(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var d=this._getCircleData(e),f=It(d,3),C=f[0],v=f[1],A=f[2];this._circle(e,n,C,v,A)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,i){return this.from!=this.to?this._findBorderPosition(e,n,i):this._findBorderPositionCircle(e,n,i)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,i=qr(n=this._getCircleData(e)).call(n,0,2),o=It(i,2),a=o[0],s=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var i=rX(e,this.options.selfReference.angle,n,this.from);return[i.x,i.y,n]}},{key:"_pointOnCircle",value:function(e,n,i,o){var a=o*2*Math.PI;return{x:e+i*Math.cos(a),y:n-i*Math.sin(a)}}},{key:"_findBorderPositionCircle",value:function(e,n,i){var o=i.x,a=i.y,s=i.low,l=i.high,c=i.direction,u=10,g=this.options.selfReference.size,h=.05,d,f=(s+l)*.5,C=0;this.options.arrowStrikethrough===!0&&(c===-1?C=this.options.endPointOffset.from:c===1&&(C=this.options.endPointOffset.to));var v=0;do{f=(s+l)*.5,d=this._pointOnCircle(o,a,g,f);var A=Math.atan2(e.y-d.y,e.x-d.x),I=e.distanceToBorder(n,A)+C,p=Math.sqrt(Math.pow(d.x-e.x,2)+Math.pow(d.y-e.y,2)),m=I-p;if(Math.abs(m)0?c>0?s=f:l=f:c>0?l=f:s=f,++v}while(s<=l&&v1?g=1:g<0&&(g=0);var h=e+g*l,d=n+g*c,f=h-a,C=d-s;return Math.sqrt(f*f+C*C)}},{key:"getArrowData",value:function(e,n,i,o,a,s){var l,c,u,g,h,d,f,C=s.width;n==="from"?(u=this.from,g=this.to,h=s.fromArrowScale<0,d=Math.abs(s.fromArrowScale),f=s.fromArrowType):n==="to"?(u=this.to,g=this.from,h=s.toArrowScale<0,d=Math.abs(s.toArrowScale),f=s.toArrowType):(u=this.to,g=this.from,h=s.middleArrowScale<0,d=Math.abs(s.middleArrowScale),f=s.middleArrowType);var v=15*d+3*C;if(u!=g){var A=pWe(u.x-g.x,u.y-g.y),I=v/A;if(n!=="middle")if(this.options.smooth.enabled===!0){var p=this._findBorderPosition(u,e,{via:i}),m=this.getPoint(p.t+I*(n==="from"?1:-1),i);l=Math.atan2(p.y-m.y,p.x-m.x),c=p}else l=Math.atan2(u.y-g.y,u.x-g.x),c=this._findBorderPosition(u,e);else{var b=(h?-I:I)/2,_=this.getPoint(.5+b,i),L=this.getPoint(.5-b,i);l=Math.atan2(_.y-L.y,_.x-L.x),c=this.getPoint(.5,i)}}else{var M=this._getCircleData(e),S=It(M,3),T=S[0],k=S[1],O=S[2];if(n==="from"){var P=this.options.selfReference.angle,B=this.options.selfReference.angle+Math.PI,te=this._findBorderPositionCircle(this.from,e,{x:T,y:k,low:P,high:B,direction:-1});l=te.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,c=te}else if(n==="to"){var ee=this.options.selfReference.angle,re=this.options.selfReference.angle+Math.PI,Me=this._findBorderPositionCircle(this.from,e,{x:T,y:k,low:ee,high:re,direction:1});l=Me.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,c=Me}else{var He=this.options.selfReference.angle/(2*Math.PI);c=this._pointOnCircle(T,k,O,He),l=He*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var nt=c.x-v*.9*Math.cos(l),De=c.y-v*.9*Math.sin(l),be={x:nt,y:De};return{point:c,core:be,angle:l,length:v,type:f}}},{key:"drawArrowHead",value:function(e,n,i,o,a){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var s=aX.draw(e,a);s&&(this.enableShadow(e,n),Df(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var i=ut(n)?n:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function GO(t,r){var e=or(t);if(_a){var n=_a(t);r&&(n=jr(n).call(n,function(i){return Ta(t,i).enumerable})),e.push.apply(e,n)}return e}function WO(t){for(var r=1;r"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var $$=function(t){St(e,t);var r=OWe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"_findBorderPositionBezier",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,c=!1,u=1,g=0,h=this.to,d,f,C=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(h=this.from,c=!0,C=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(C=0);var v=0;do{f=(g+u)*.5,d=this.getPoint(f,a);var A=Math.atan2(h.y-d.y,h.x-d.x),I=h.distanceToBorder(o,A)+C,p=Math.sqrt(Math.pow(d.x-h.x,2)+Math.pow(d.y-h.y,2)),m=I-p;if(Math.abs(m)0&&(h=this._getDistanceToLine(A,I,C,v,l,c),g=h"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var ZO=function(t){St(e,t);var r=HWe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return pe(e,[{key:"setOptions",value:function(i){W5(xe(e.prototype),"setOptions",this).call(this,i);var o=!1;this.options.physics!==i.physics&&(o=!0),this.options=i,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var i="edgeId:"+this.id,o=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var a=this._getCircleData(),s=It(a,3),l=s[0],c=s[1],u=s[2],g=2*Math.PI*(1-i);return{x:l+u*Math.sin(g),y:c+u-u*(1-Math.cos(g))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o,this.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToBezierEdge(i,o,a,s,l,c,this.via)}}]),e}($$);function PWe(t){var r=RWe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function RWe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var KO=function(t){St(e,t);var r=PWe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,o=this.options.smooth.type,a=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var l,c;a<=s?l=c=i*s:l=c=i*a,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(c=-c);var u=this.from.x+l,g=this.from.y+c;return o==="discrete"&&(a<=s?u=athis.to.x&&(M=-M),this.from.y>=this.to.y&&(S=-S);var T=this.from.x+M,k=this.from.y+S;return a<=s?this.from.x<=this.to.x?T=this.to.xT?this.to.x:T:this.from.y>=this.to.y?k=this.to.y>k?this.to.y:k:k=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,o,a.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,o,a,s,l,c,u)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=i,s=Math.pow(1-a,2)*this.fromPoint.x+2*a*(1-a)*o.x+Math.pow(a,2)*this.toPoint.x,l=Math.pow(1-a,2)*this.fromPoint.y+2*a*(1-a)*o.y+Math.pow(a,2)*this.toPoint.y;return{x:s,y:l}}}]),e}($$);function DWe(t){var r=NWe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function NWe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var BWe=function(t){St(e,t);var r=DWe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"_getDistanceToBezierEdge2",value:function(i,o,a,s,l,c,u,g){for(var h=1e9,d=i,f=o,C=[0,0,0,0],v=1;v<10;v++){var A=.1*v;C[0]=Math.pow(1-A,3),C[1]=3*A*Math.pow(1-A,2),C[2]=3*Math.pow(A,2)*(1-A),C[3]=Math.pow(A,3);var I=C[0]*i+C[1]*u.x+C[2]*g.x+C[3]*a,p=C[0]*o+C[1]*u.y+C[2]*g.y+C[3]*s;if(v>0){var m=this._getDistanceToLine(d,f,I,p,l,c);h=m"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var YO=function(t){St(e,t);var r=FWe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"_line",value:function(i,o,a){var s=a[0],l=a[1];this._bezierCurve(i,o,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,o=this.from.y-this.to.y,a,s,l,c,u=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,c=this.to.y,a=this.from.x-u*i,l=this.to.x+u*i):(s=this.from.y-u*o,c=this.to.y+u*o,a=this.from.x,l=this.to.x),[{x:a,y:s},{x:l,y:c}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),g=It(u,2),h=g[0],d=g[1];return this._getDistanceToBezierEdge2(i,o,a,s,l,c,h,d)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=It(o,2),s=a[0],l=a[1],c=i,u=[Math.pow(1-c,3),3*c*Math.pow(1-c,2),3*Math.pow(c,2)*(1-c),Math.pow(c,3)],g=u[0]*this.fromPoint.x+u[1]*s.x+u[2]*l.x+u[3]*this.toPoint.x,h=u[0]*this.fromPoint.y+u[1]*s.y+u[2]*l.y+u[3]*this.toPoint.y;return{x:g,y:h}}}]),e}(BWe);function UWe(t){var r=GWe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function GWe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var XO=function(t){St(e,t);var r=UWe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"_line",value:function(i,o){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){var a=this.to,s=this.from;i.id===this.from.id&&(a=this.from,s=this.to);var l=Math.atan2(a.y-s.y,a.x-s.x),c=a.x-s.x,u=a.y-s.y,g=Math.sqrt(c*c+u*u),h=i.distanceToBorder(o,l),d=(g-h)/g;return{x:(1-d)*s.x+d*a.x,y:(1-d)*s.y+d*a.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToLine(i,o,a,s,l,c)}}]),e}(sX),Q2=function(){function t(r,e,n,i,o){if(Ie(this,t),e===void 0)throw new Error("No body provided");this.options=h1(i),this.globalOptions=i,this.defaultOptions=o,this.body=e,this.imagelist=n,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new nX(this.body,this.options,!0),this.setOptions(r)}return pe(t,[{key:"setOptions",value:function(e){if(e){var n=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=tX(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=b$("edge",i),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,a={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:n,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var s=this.options.selectionWidth;typeof s=="function"?a.width=s(a.width):typeof s=="number"&&(a.width+=s),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.highlight,a.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?a.width=l(a.width):typeof l=="number"&&(a.width+=l),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.hover,a.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(a,this.options.id,this.selected,this.hover),a.color!==void 0&&(a.inheritsColor=!1),a.shadow===!1&&(a.shadowColor!==this.options.shadow.color||a.shadowSize!==this.options.shadow.size||a.shadowX!==this.options.shadow.x||a.shadowY!==this.options.shadow.y)&&(a.shadow=!0));else a.shadow=this.options.shadow.enabled,a.width=Math.max(a.width,.3/this.body.view.scale);return a}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof ZO&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof YO&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof KO&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof XO&&e.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new ZO(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new YO(this.options,this.body,this.labelModule):this.edgeType=new KO(this.options,this.body,this.labelModule):this.edgeType=new XO(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*a}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,i),this.drawLabel(e,i)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var i=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var a;if(i.id!=o.id){this.labelModule.pointToSelf=!1,a=this.edgeType.getPoint(.5,n),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var l=rX(e,this.options.selfReference.angle,this.options.selfReference.size,i);a=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var i=this._getRotation();S7(this.labelModule.getSize(),e,i)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,i=this.from.x,o=this.from.y,a=this.to.x,s=this.to.y,l=e.left,c=e.top,u=this.edgeType.getDistanceToEdge(i,o,a,s,l,c);return u0&&s<0)&&(l+=Math.PI),o.angle=l,o}},{key:"_pointOnCircle",value:function(e,n,i,o){return{x:e+i*Math.cos(o),y:n-i*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(ug(s,e,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(Ml(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(Ml(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),dA(n.label)?e.label=n.label:dA(e.label)||(e.label=void 0),Qi(e,n,"smooth",o),Qi(e,n,"shadow",o),Qi(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:i===!0&&n.dashes===null&&(e.dashes=u1(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),Qi(e.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(e.scaling=u1(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();e.arrows.to.enabled=Mt(l).call(l,"to")!=-1,e.arrows.middle.enabled=Mt(l).call(l,"middle")!=-1,e.arrows.from.enabled=Mt(l).call(l,"from")!=-1}else if(dt(n.arrows)==="object")Qi(e.arrows,n.arrows,"to",o.arrows),Qi(e.arrows,n.arrows,"middle",o.arrows),Qi(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+lg(n.arrows));else i===!0&&n.arrows===null&&(e.arrows=u1(o.arrows));if(n.color!==void 0&&n.color!==null){var c=Z2(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(a)er(u,o.color,!1,i);else for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&delete u[g];if(Z2(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,c.opacity===void 0&&(u.opacity=1);else{var h=!1;c.color!==void 0&&(u.color=c.color,h=!0),c.highlight!==void 0&&(u.highlight=c.highlight,h=!0),c.hover!==void 0&&(u.hover=c.hover,h=!0),c.inherit!==void 0&&(u.inherit=c.inherit),c.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,c.opacity))),h===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&n.color===null&&(e.color=h1(o.color));i===!0&&n.font===null&&(e.font=h1(o.font)),Object.prototype.hasOwnProperty.call(n,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=n.selfReferenceSize)}}]),t}(),WWe=function(){function t(r,e,n){var i,o=this;Ie(this,t),this.body=r,this.images=e,this.groups=n,this.body.functions.createEdge=fe(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){o.add(l.items)},update:function(s,l){o.update(l.items)},remove:function(s,l){o.remove(l.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,l,c,u){if(l===s)return .5;var g=1/(l-s);return Math.max(0,(u-s)*g)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},er(this.options,this.defaultOptions),this.bindEventListeners()}return pe(t,[{key:"bindEventListeners",value:function(){var e=this,n,i;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var s=!1;for(var l in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,l)){var c=e.body.edges[l],u=e.body.data.edges.get(l);if(u!=null){var g=u.smooth;g!==void 0&&g.enabled===!0&&g.type==="dynamic"&&(o===void 0?c.setOptions({smooth:!1}):c.setOptions({smooth:{type:o}}),s=!0)}}a===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",fe(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",fe(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){Ct(e.edgesListeners,function(o,a){e.body.data.edges&&e.body.data.edges.off(a,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){Q2.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(n=this.body.edges[i].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(JY("id",e))this.body.data.edges=e;else if(ut(e))this.body.data.edges=new $u,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new $u;else throw new TypeError("Array or DataSet expected");if(o&&Ct(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){Ct(this.edgesListeners,function(s,l){n.body.data.edges.on(l,s)});var a=this.body.data.edges.getIds();this.add(a,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,o=this.body.data.edges,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var i=this.body.edges;Ct(e,function(o){var a=i[o];a!==void 0&&a.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;Ct(this.body.edges,function(n,i){var o=e.body.data.edges.get(i);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new Q2(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,i=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=i[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var i=this.body.edges[e];i.fromId!==void 0&&n.push(i.fromId),i.toId!==void 0&&n.push(i.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];Ct(this.body.edges,function(i,o){var a=e.body.nodes[i.toId],s=e.body.nodes[i.fromId];a!==void 0&&a.isCluster===!0||s!==void 0&&s.isCluster===!0||(a===void 0||s===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,i=[];_t(e).call(e,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),t}(),lX=function(){function t(r,e,n){Ie(this,t),this.body=r,this.physicsBody=e,this.barnesHutTree,this.setOptions(n),this._rng=UI("BARNES HUT SOLVER")}return pe(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,a=this._formBarnesHutTree(n,i);this.barnesHutTree=a;for(var s=0;s0&&this._getForceContributions(a.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var i=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,a=Math.sqrt(i*i+o*o);a*e.calcSize>this.thetaInversed?this._calculateForces(a,i,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(a,i,o,n,e)}}},{key:"_calculateForces",value:function(e,n,i,o,a){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var s=this.options.gravitationalConstant*a.mass*o.options.mass/Math.pow(e,3),l=n*s,c=i*s;this.physicsBody.forces[o.id].x+=l,this.physicsBody.forces[o.id].y+=c}},{key:"_formBarnesHutTree",value:function(e,n){for(var i,o=n.length,a=e[n[0]].x,s=e[n[0]].y,l=e[n[0]].x,c=e[n[0]].y,u=1;u0&&(hl&&(l=h),dc&&(c=d))}var f=Math.abs(l-a)-Math.abs(c-s);f>0?(s-=.5*f,c+=.5*f):(a+=.5*f,l-=.5*f);var C=1e-5,v=Math.max(C,Math.abs(l-a)),A=.5*v,I=.5*(a+l),p=.5*(s+c),m={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:I-A,maxX:I+A,minY:p-A,maxY:p+A},size:v,calcSize:1/v,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(m.root);for(var b=0;b0&&this._placeInTree(m.root,i);return m}},{key:"_updateBranchMass",value:function(e,n){var i=e.centerOfMass,o=e.mass+n.options.mass,a=1/o;i.x=i.x*e.mass+n.x*n.options.mass,i.x*=a,i.y=i.y*e.mass+n.y*n.options.mass,i.y*=a,e.mass=o;var s=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidthn.x?o.maxY>n.y?a="NW":a="SW":o.maxY>n.y?a="NE":a="SE",this._placeInRegion(e,n,a)}},{key:"_placeInRegion",value:function(e,n,i){var o=e.children[i];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var i,o,a,s,l=.5*e.size;switch(n){case"NW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY,s=e.range.minY+l;break;case"NE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY,s=e.range.minY+l;break;case"SW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY+l,s=e.range.maxY;break;case"SE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY+l,s=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:a,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=i,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),ZWe=function(){function t(r,e,n){Ie(this,t),this._rng=UI("REPULSION SOLVER"),this.body=r,this.physicsBody=e,this.setOptions(n)}return pe(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,c,u=this.body.nodes,g=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces,d=this.options.nodeDistance,f=-2/3/d,C=4/3,v=0;v"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var QWe=function(t){St(e,t);var r=XWe(e);function e(n,i,o){var a;return Ie(this,e),a=r.call(this,n,i,o),a._rng=UI("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return pe(e,[{key:"_calculateForces",value:function(i,o,a,s,l){i===0&&(i=.1*this._rng(),o=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var c=s.edges.length+1,u=this.options.gravitationalConstant*l.mass*s.options.mass*c/Math.pow(i,2),g=o*u,h=a*u;this.physicsBody.forces[s.id].x+=g,this.physicsBody.forces[s.id].y+=h}}]),e}(lX);function JWe(t){var r=eZe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function eZe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var tZe=function(t){St(e,t);var r=JWe(e);function e(n,i,o){return Ie(this,e),r.call(this,n,i,o)}return pe(e,[{key:"_calculateForces",value:function(i,o,a,s,l){if(i>0){var c=l.edges.length+1,u=this.options.centralGravity*c*l.options.mass;s[l.id].x=o*u,s[l.id].y=a*u}}}]),e}(Z5),rZe=function(){function t(r){Ie(this,t),this.body=r,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Or(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return pe(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,aA(["stabilization"],this.options,e),Qi(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||C7(n.x))&&(n.x=0),(typeof n.y!="number"||C7(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new QWe(this.body,this.physicsBody,e),this.edgesSolver=new lm(this.body,this.physicsBody,e),this.gravitySolver=new tZe(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new ZWe(this.body,this.physicsBody,e),this.edgesSolver=new lm(this.body,this.physicsBody,e),this.gravitySolver=new Z5(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new KWe(this.body,this.physicsBody,e),this.edgesSolver=new YWe(this.body,this.physicsBody,e),this.gravitySolver=new Z5(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new lX(this.body,this.physicsBody,e),this.edgesSolver=new lm(this.body,this.physicsBody,e),this.gravitySolver=new Z5(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=fe(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=tA();this.physicsTick();var n=tA()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&Oo(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/es))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,i=0,o=5,a=0;as&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,i.x,n.options.mass),n.x+=o.x*this.timestep):(i.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,i.y,n.options.mass),n.y+=o.y*this.timestep):(i.y=0,o.y=0);var a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return a}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var i=e[n].options.fixed;this.freezeCache[n]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,Oo(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.shape.boundingBox.left&&(a=l.shape.boundingBox.left),sl.shape.boundingBox.top&&(i=l.shape.boundingBox.top),o1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.x&&(a=l.x),sl.y&&(i=l.y),o"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var oZe=function(t){St(e,t);var r=nZe(e);function e(n,i,o,a,s,l){var c;return Ie(this,e),c=r.call(this,n,i,o,a,s,l),c.isCluster=!0,c.containedNodes={},c.containedEdges={},c}return pe(e,[{key:"_openChildCluster",value:function(i){var o=this,a=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!a.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],Ct(a.edges,function(s){delete o.containedEdges[s.id]}),Ct(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},Ct(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},Ct(a.edges,function(s){Ct(o.edges,function(l){var c,u,g=Mt(c=l.clusteringEdgeReplacingIds).call(c,s.id);g!==-1&&(Ct(s.clusteringEdgeReplacingIds,function(h){l.clusteringEdgeReplacingIds.push(h),o.body.edges[h].edgeReplacedById=l.id}),fa(u=l.clusteringEdgeReplacingIds).call(u,g,1))})}),a.edges=[]}}]),e}(ki),aZe=function(){function t(r){var e=this;Ie(this,t),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Or(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return pe(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():dt(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var i=[],o=0;o=e&&i.push(a.id)}for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},a={};Ct(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,Ct(s.edges,function(c){e.clusteredEdges[c.id]===void 0&&(a[c.id]=c)}))}),this._cluster(o,a,n,i)}},{key:"clusterByEdgeCount",value:function(e,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var a=[],s={},l,c,u,g=function(){var C={},v={},A=i.body.nodeIndices[h],I=i.body.nodes[A];if(s[A]===void 0){u=0,c=[];for(var p=0;p0&&or(v).length>0&&b===!0){var M=function(){for(var P=0;P1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var a=this.body.nodes[e];n=this._checkOptions(n,a),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=a.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=a.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=a.options.fixed.x,n.clusterNodeProperties.fixed.y=a.options.fixed.y);var s={},l={},c=a.id,u=jn.cloneOptions(a);s[c]=a;for(var g=0;g-1&&(l[p.id]=p)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(e,n,i,o){for(var a,s,l,c,u,g,h=or(e),d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&a.push(s);for(var l=0;lo?l.x:o,a=l.ys?l.y:s;return{x:.5*(i+o),y:.5*(a+s)}}},{key:"openCluster",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var a=this.findNode(e),s=Mt(a).call(a,e)-1;if(s>=0){var l=a[s],c=this.body.nodes[l];c._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,g=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var h={},d={x:o.x,y:o.y};for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var C=this.body.nodes[f];h[f]={x:C.x,y:C.y}}var v=n.releaseFunction(d,h);for(var A in u)if(Object.prototype.hasOwnProperty.call(u,A)){var I=this.body.nodes[A];v[A]!==void 0&&(I.x=v[A].x===void 0?o.x:v[A].x,I.y=v[A].y===void 0?o.y:v[A].y)}}else Ct(u,function(Me){Me.options.fixed.x===!1&&(Me.x=o.x),Me.options.fixed.y===!1&&(Me.y=o.y)});for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var m=this.body.nodes[p];m.vx=o.vx,m.vy=o.vy,m.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var b=[],_=0;_0&&so&&(o=s.edges.length),e+=s.edges.length,n+=Math.pow(s.edges.length,2),i+=1}e=e/i,n=n/i;var l=n-Math.pow(e,2),c=Math.sqrt(l),u=Math.floor(e+2*c);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,i,o,a){var s=jn.cloneOptions(i,"edge");er(s,o),s.from=e,s.to=n,s.id="clusterEdge:"+q2(),a!==void 0&&er(s,a);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(e,n,i,o){if(n instanceof Q2){var a=n,s={};s[a.id]=a,n=s}if(e instanceof ki){var l=e,c={};c[l.id]=l,e=c}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=i.clusterEdgeProperties),this._createClusterEdges(e,n,i,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var g=this.body.edges[u];this._backupEdgeOptions(g),g.setOptions({physics:!1})}for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(this.clusteredNodes[h]={clusterId:i.id,node:this.body.nodes[h]},this.body.nodes[h].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var i=n.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(e,n){var i=[];return Ct(e,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var e=this,n,i=[],o={},a=function(f){Ct(e.body.nodes,function(C){C.isCluster===!0&&f(C)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var s=this.body.nodes[n];s===void 0&&i.push(n)}a(function(d){for(var f=0;f0}(!d.endPointsValid()||!C)&&(o[f]=f)}),a(function(d){Ct(o,function(f){delete d.containedEdges[f],Ct(d.edges,function(C,v){if(C.id===f){d.edges[v]=null;return}C.clusteringEdgeReplacingIds=e._filter(C.clusteringEdgeReplacingIds,function(A){return!o[A]})}),d.edges=e._filter(d.edges,function(C){return C!==null})})}),Ct(o,function(d){delete e.clusteredEdges[d]}),Ct(o,function(d){delete e.body.edges[d]});var c=or(this.body.edges);Ct(c,function(d){var f=e.body.edges[d],C=e._isClusteredNode(f.fromId)||e._isClusteredNode(f.toId);if(C!==e._isClusteredEdge(f.id))if(C){var v=e._getClusterNodeForNode(f.fromId);v!==void 0&&e._clusterEdges(e.body.nodes[f.fromId],f,v);var A=e._getClusterNodeForNode(f.toId);A!==void 0&&e._clusterEdges(e.body.nodes[f.toId],f,A)}else delete e._clusterEdges[d],e._restoreEdge(f)});for(var u=!1,g=!0,h=function(){var f=[];a(function(v){var A=or(v.containedNodes).length,I=v.options.allowSingleNodeCluster===!0;(I&&A<1||!I&&A<2)&&f.push(v.id)});for(var C=0;C0,u=u||g};g;)h();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function sZe(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(r){r()}:window.requestAnimationFrame=t}var lZe=function(){function t(r,e){Ie(this,t),sZe(),this.body=r,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Or(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return pe(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Oo(function(){var i;e.zooming=!1,fe(i=e._requestRedraw).call(i,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",fe(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];ug(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=Oo(e,n):o.requestAnimationFrame&&(i=o.requestAnimationFrame(e)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(fe(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,a),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(i,e),l=s.drawExternalLabels;n.drawExternalLabels=l}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,o,a)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var n=this.body.nodes,i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i=n[o],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,o=this.body.nodeIndices,a,s=[],l=[],c=20,u=this.canvas.DOMtoCanvas({x:-c,y:-c}),g=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+c,y:this.canvas.frame.canvas.clientHeight+c}),h={top:u.y,left:u.x,bottom:g.y,right:g.x},d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&n!=1?i=this.cameraState.scale*.5*(e+n):e!=1?i=this.cameraState.scale*e:n!=1&&(i=this.cameraState.scale*n),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),a={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=a.x*this.body.view.scale,this.body.view.translation.y+=a.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(Mt(e).call(e,"%")!==-1||Mt(e).call(e,"px")!==-1)return e;if(Mt(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new K2(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:K2.DIRECTION_ALL}),fA(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new K2(this.frame),cX(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var i=!1,o=this.frame.canvas.width,a=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=n,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),c=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==c)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==c&&(this.frame.canvas.height=c,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(a/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function fZe(t,r){var e=Or({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!ut(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=r),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var CZe=function(){function t(r,e){var n,i=this,o;Ie(this,t),this.body=r,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",fe(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",fe(o=this.releaseNode).call(o,this))}return pe(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=fZe(e,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,a,s;if(i===0||o===0)s=1,a=jn.getRange(this.body.nodes,e.nodes);else if(n===!0){var l=0;for(var c in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,c)){var u=this.body.nodes[c];u.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}a=jn.getRange(this.body.nodes,e.nodes);var g=this.body.nodeIndices.length;s=12.662/(g+7.4147)+.0964822;var h=Math.min(i/600,o/600);s*=h}else{this.body.emitter.emit("_resizeNodes"),a=jn.getRange(this.body.nodes,e.nodes);var d=Math.abs(a.maxX-a.minX)*1.1,f=Math.abs(a.maxY-a.minY)*1.1,C=i/d,v=o/f;s=C<=v?C:v}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=i,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!Ml(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!Ml(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!Ml(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!Ml(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.position.x,y:n.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var o;this.viewFunction=fe(o=this._lockedRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var a;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=fe(a=this._transitionRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,a={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=Dxe[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=fe(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}(),vZe=`div.vis-network div.vis-navigation div.vis-button { width: 34px; height: 34px; -moz-border-radius: 17px; border-radius: 17px; position: absolute; display: inline-block; background-position: 2px 2px; background-repeat: no-repeat; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } div.vis-network div.vis-navigation div.vis-button:hover { box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.3); } div.vis-network div.vis-navigation div.vis-button:active { box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95); } div.vis-network div.vis-navigation div.vis-button.vis-up { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABphJREFUeNqcV2twU9cR/nbPlVTHxpKRbNnBLyEbPyJisLEcPwgwUMKQtjNJAzNJZkgNNJOmJaZAaDKlxaXDTIBAcJtOOzSYKSkdiimhAdIMjyT4bYgBYxA2BgcUQPLrCiGDR4qt2x+yXTASFt1/957d7zt3z3d39xDCMQWUfgAz/RI/T4pSTAJpAGL8rECAXX7QFQGq9wOHOxYO1oCgjAdJj1wtB095Giv9TFuZAIWHAziATMPhTAwiHgUkYPXFJu92lMP/2MTpB1AKUCVEgNAcleUo1M+2F8TO6crSTncb1QleAOj2OTSX3Ge1p+Va42m5JrnzbnsCE8Ov+EHgpa0LPLvCJjZ/whuIlN8wAcXG+e1LUn9hm238QU84p1Ld83nsXvuO7Lq+LzKYGAT6/dn58m/HJTYf4O3EShkT8Irpzab1Uz9sGevT5+tWn+j6NB4A5hp/5NSr43xjfd5rW5tT9e3OAhCBiCua5/WsDEls/hdvYklZSwDefmrT8eXmtzuDkb5YZ33p9ndylICAVjWxf39xw/5g5Luv/9H84ZWNcwNEypZT87rXjqyJB85UYDMJYN3U7UdLJ6/6JlgqV517teRqf9uTlug8e1zEk27HgD22o98WsTBh8fWxvjm6ApdONbGvse8LM5NUPOm1Cfabuz3nACAgxX0QEFTJAnjNvLJ+Sepb14KRHnN+Ev+1XJOhZs3Qu1mbG97J2NQgsXroa1dtxrGuf8cHi1mUtPTay0lv1DMJSCRVLtoX+FgGgDQNysBAcez89l9nbbsQSji7rlXkEhjPxb/QatHOcFu0M9zz419oFSRhj/3PuaHiyqasv1Con9NGxHAYUsoCxAqImbYSgCWmFbZQwdsur7N0eC4m6tT6/jUZ750Zeb82c+OZGLWh/2p/W+Kfrmy0hIp/aVKpTSIJEqu2QgFx2iE8CwDp0RbH7Ljng/4yXr+XT3QdyhYsodS0slGr0g2OrEUK7eCrKW82SqzCVz3/yfb6vRwM4xn9rN7JkRkOQRLmfJn2LBPxQjDBqp9lD7XbX7X8pKTP160zR2bdeiX5jYeU/nLSTztNkem3XL5eXbltRUkonBxdgZ2IIUmahUxERQSCVT+rK5hzQ89xQ6P8VaaK1f5VmRvqQ4G+lba+nlnlb5brMhvlk7FBiaPzuwQEmEQhg5BOxMjWTncHc2501cQLkjDTsMCWpyuRQxFP0xXIJfp5FyVW4Zy7KajC06ItbiIGg6ZITBxDxIgbrr1jTSM0fibGIHz8O9sKK0GAibEua9spANh4aY2VmcEg+DEkiBgR/L2hYFgGtcErkQQAMVJgBxyy9hboZzv32v+Kpr7qbEECTAIMAoaJa3qPTmNiiAAgJAjk6J5xhu6HDAIgQYGLmI29PocmMcI8MNYvT1ckfzD9H/ub5br4e4Me9WfOKqtyX6Ud2cwC449PRamifDm6Auc0rTXokci+Xo1EAgBckiDuYGLjpTvntcGIA+SFcp6uUAaAI879VhWrRteYAqn/edq758brXJ1327QMhgJcZjA3EBjNrgZjOG1PkAjyTGENMjZPq5ECQ0MDE9ERBqFZrk0OJ3i4x/7vyIjBxGERt3takgVJEAp9xq3f769WiPDNvSsJdT3HDOEASPelmoBRYT3Kzt5uMtwauJEgSOCpwrk1DIJCoNUMwj9v7MweP9XSQ8/hJPp496fZTAICvLqcyv2B7nRbrgCA03JN5h8ub7A8VqpB437xHvsOy3l3cyaB4L2uqxhti1WLMcSgZQCw7+bOooO3Pk4JBZIYYXISMV5sKH59UePM10GESRGpIf/bE92HU452HywSJIGIllctrhp6YAK5+fHds0lLtJFMXNwkV6fFqA29mROefqiMJj1h6um4a5vY/92dKGaBxIhU5zJTWW2cJmEgGOmeb3c8FxAfb9mdf2RzyGGv5MvU7QwuEySwKHFp/c/M71zA/2F7b1RajnYdLAqMukMVu2YcfmDYE2MD7H+7/Xlq6cRIJqm4zXM+qd3TGjVBir43KSLlXjiELe5TsX+3/yW/ST45PaAHbKmccWh12AP93JNZywj0kSABIobpiXRHjtZ6faout2tyZMadGLXBCxBcvl6NfaAz+tKdFmObpzWl2+tIIBACYy0t/yj34M7HvsKUK+CGassvicX7alYDwwq+vykIEqPVa+Q9gdYk5+V+UE7lj3+FGbuBM/X5JUT8QwIVSSSZiTgmoFR2MfiqYFFPfjpkyrfWPopwxP47AP1pK1g9/dqeAAAAAElFTkSuQmCC'); bottom: 50px; left: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-down { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABpdJREFUeNqcV21QlNcVfp5zX9ikoAvLEsAIIgsoHwpqWAQUNKLNaNv8iZ1JMkNG6/Qj/dDUyCSTtCHpmEkwVk3TToZRMjXj5MOG2KidjIkxQYSAQUAtX6IgIN8su8KCoOzbH4sk4q5g77/33uee555z7rnneYmZDB2MKcJKlyYbqOsZVIgGEOgSHQoy4AKbFFjqAo5dWn/rNAh9OpO852oeJHYxtrmEu4WALhMbxG2ZE9uFAlImDRLY/t/y0b3Ig+u+iWOKsAlgIZSb0OIf15kWtKo1NXh1d5xxiSPEN2wUAHrGOg11jirjWVtJyFnb6YgrzoYwocClu0DI5guPDb43Y2LLp/Iaqf9JCGSErGvIifxd7aqQn/TOJCvFvZ8Hf9haEH+m/6sFQgHBv1Sts/15WmJLkeyl6FuFwFPzny1/ZdE7Nfg/xhv1uUmH2w6kggQp+yqze7d5JbZ8Im+KpucSwI6EN7/cYtlxZarBCts3ptfrtq9odjaGKihE+sV0vRC3u8RqWmmbij149W+Wd5p2rnET6bsqsntyb6+pO3KqkE8FvLxo74lNUX9s9uTJb8/9fG2L81KoogJFYfCm3b9usNq0MXxzw1RsUkDqQICPqf/b/q8sQi3j4WdmtV47OFgNAO6r+DEUFAtFAc9YtpXmRP6hxVsI24cvhyoqnFtrK6jM7isgBa3Dl0O94TeGb255MvzXpUIFjVrhxo/dzgoARBuwFQJkBK9reCnurxfvXX8CRW3yW1G749vT2Br7ysW0oNX1pKDTPG+rm1gHRbibAHLm/7522sKnQCZqFgCUaBCqaS/bEw9vqtWoQROf3dBBiT6KTACImZ3YueqhDdOWjDbFQ4IzIl4elNUX5begU1HD6lPRmULKeghhDcpqnUmZuD3+nkgTH6gZEE9ctlZSoGmG9UIynSCsQVndMyX+IZGiBoHMjHh2SreCglClaSBiSEG8cYnD24bv7CWms/3FocO3hnw13plTggAFb196NdlPM44tC0zrSg5ItXmyEz070UEKCMRqQgkkBQ9NvL2eSJ+revoJTORSpoT6do4/7/7UShBFHQexM+HdfyUHWO8iN/uaRzX3/QjUSLlnqM72F4cCRIY5u9Zf+Y+BAv4AvzpkQ7WAIBRujA/7Vg6cia9xlId6InafVEAAGnQMUCSkb6zTMPdBy8hU3JjrphIq+CrD+Mvxeyumrr+4IH9y7o2GF5eDghuuGx4L2zbWZ9Dc0RoQRbkkFNRdP2/0BH7EtLJLKCjr+zqh2l5u8haZ847vTBW24kRFQXKAtcsT5oqz3igQENIoECkjBJUDZSGewBlBj/ammjLrdX1c/t70ero34gMte9IByLLAjPrUwKweT5jawQshdIuGMiF5XEBU2koivBl9NeEfJeYHwuxtI81zPrn2z6ip60c6DkV1jLTOCTaE2HNjd5Z4s9MwWBOhqEHp/I9cWDtUrJNoHm4KO9P7hdnTBoMYXI8Gb6gVCg63FS53jg9O5tA57tSOdHywnCAygrJrfcTgUe5U2cvNHSPtYYoKCWlrTgsIneB2AfFR+4F4b6f9ZdTzF6P8Ytud407/dy/nL7k9X9i8J9l5y+Ef6RfbnjPvWa8N5suez+KFCgqyPY95Lnd3stv2AcBZ2+mFbze+lui1xc3dXCUUlPafXNx4/aKxcajWWNp/MklRw8/mPFntbd+h1oLE847KhQQxejVg36QQqD0MPTzHv42Ux+uGasJNBnPfwllJd71kkX7RQ3WDNf7dox3BLcNNs6vt34bbbvYHJhlTGp6O+JVHb0/2HJtX1PH+aqECqG/5YN1nlXcokGvvO6vCc4x+QskotxVHB/qa+xbOWuzw8NB3nuo+Ht0z2hHsuGU3GrWAoZfi3jrxgHpw3BPpobaCH7vbqOw6mHI836vYW3Eqcq9AtioqbJy7ufQ3lhfu8sR+s9+3vL8klACsQSu7AnxMY1MxH7YXJp7oPpLulrrj+9575Ni2aeVt1teWfEWfHQLCaspseHzOU7VWU+aM5G2NoyL4i+6j8XWDNQsmGsKu/cv+nTtjQb/mm7hfENyvqEAK5v8opjPJaL26KGBpd5TfguuBvuZRgBgY6zO0jlyZXXe9JqR+8MK8ntHOMHfHIkhu2b/0yIH7/oXJ0yFlxYnPUdRbvuILgO7+y+91l6Ka6M+cnCf4fMSypXvymHf/vzBTD3CuNGUFKT8lmK5Rs5ASqKiBlAGBXFaiSuni0fkp1pJ7Ed4e/xsAqLk46EWsG1EAAAAASUVORK5CYII='); bottom: 10px; left: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-left { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABt5JREFUeNqsl2lUlOcVx//3Pi9DZRsGBgYiS2RYBQKIjAhEJW4pNrXNMbZpWtTGNkttYmJMG5soSZckRk+0p+dYPYY0Gk0ihlhRj63GhVUgBhDD5oIOy8AAMwzD4lCYtx+GqCQKuNyP7/Pc+3u2+7/3JUzEZFBYLh62S7yIZDmVBEIBqOwsQ4DNdtBFASq2A4cuZAwVgCCPF5LGHM0Chz+E1XamzUyAzCMO7IhMI+5MDCK+HpCANd+U2rYgC/Y7BoflYgVA2RAOoNYtyjDTe45+hk96e5QywaJR+NsAwDhocK61VCjLTYWaclNB0OW+en8mhl22g8C/rn7U+uGEwdov+C0i+Q0mIFWzoD7zwVU1czQ/6pjIreR3HPX5VL9jalHXiQgmBoH+XLHAtH5csDaXtxDLLzIBv5jyfOmG2H9U4S7snbpX43KaPpgBIhDx1rPzOlbfPC5GQT/nd1mS1zABa6PfPf5y5F/rcJeWpp7fPkly6f7KXBRCoOSATFfXll19x74HDsvFCghsJAG8HrvlvytCXm7EPVqc5wyzp5NX15muE1omKXXyMnd9yy5r5Q3wPghvJzrLAlimXV38+7D1DbhPFq1M6O4b6rPVWKsCBfHi5EWWv9TkQBYAEPpLvERMC9N8FtRvjt9dPl6wwo5jPvuas7WV5jNqEjz8wA+CBsaan+w9x1hrrXJtuaZX97ooLfqPLCUEGRR+iOwAsF2X98Uc30W3fb02u41frVqeVmo6FUkkwCAwCWxJ2Ls/0TPFNBb8TNdp9WvnVz4OAKdmX2QOzcMsAAjziDGMBd3asCF6SXHyknJTfqQTK+zpvhnVKT5zawCgzFTgN94pJXvP7gxxjTAIkpB+MnSWRMQZYEDnPVt/K4ejbZ/77726Lb6h95tAAiPELaJ1bcTbRfGeM8xv1azWSeyEa0P9igk+Nr1+oNFfkpwzJCJKIQA679ntN08yDXYo3qh+LuUrc0E4EcNL4dP7VNDzpU8FP3vpekoQQ5CEw4bPdEfa9+sAgEZUmkmAAAS5hLQ9p11XGO+pM8V5JLUfMeQARDMlEMKIGFOVCZYb0C7Fz0oeXmIZ6nZzYoV9od/jVS+GbahUOnn9b7T6sEOviUGyA8bMDlUa0W79wBW/bZf+lrY98cDBUI8YCxGDgHCJiVVEDN8R7QWAE8Z/+1mGut2i3eP1r0S+XRztkdBzq6NbF7WpbF3UprKxjvfHxbrfttla/QBArVDbJJIAQCURMRg8ugrKIAKBSNxzHtN3VdmxY0iQYSZmTeegwTlgknYAAB7RZBh2Nm7urbeeC1r19ROT52kWn3shfH2Fu1AO3RxjY/0fdac7/hPPJMDE11GC+HpBJmIEuAS3Oa6w01lybMbMgvgCE6O255zy24DeCr/Bvckn9+u8ZjXYIYvjxoMJy8oeXZrT9GHIqMWTwA2oI6cFMeDIcAiSEOyibXsmZG0hAFzuq1OyY6xBAnMJgdPOmks08zU/bbsB9x18P37PqS/b8+o/a96ZcLm3PmBH46Z5x40HW1eFvl4Uq0w0MwiCBOb7/qTsd6GvVY537DXWas1Iw1AiNJnOgwJi+bXhAbE08OnvaXSIW0TvYw88eaF/uM/WNdju3m5r9TlhPBzVNNDoPGC/5tRma/GJ80xqjPPUjVuvP2narrMOWd1Jlv/E1fN782UiNPZf9C/qOKa+ndOz2j+cz046sn+6KrVOsODirpOxld0lUxmEBK/ktvGgFd2l6taBZn9BAtEz5xYIvAn4/8rFKkgstAyZ6Yf+S67ezlkiSU73XXRV6xqh93TyssR4JF75efBvymLdE03jgT/Wb5tutLWpGbTm7wHZxQQAT+yDuKLyHRIk4cnAZ4pfCF9/HvfR9uh3xBxtz00BANsVDylnac6wAICaHMiBmW5NRLy4trcq0MtZ3RnpHme5H9AvjYeCc1t3pzMJgOSVnyw4eHZUB9Kyu68iMFPpysSppab8UJVC3Rnp/pDlXqF7mnYsdKQbv7cr6fDGW/Zczbt6jgUtV6kIlFxuyg/tH+6zJXmlGe8G+mlzdsyB1j3pTAwZ9q3/Sspbc9tmDwD0H3UffXCFlyuTlFpnPRdYb612c5c8+idPCu6fCLDKUubzsf6fSaWm0wmO9hbvZU8fDR2zoZ97OuppAu0UJEDEmOISZohT6q7Gek5rD3GN6FEp1DaAYB7sdNYPXPao7anS1Fmrg402g7+jYhGIaOXOaQc+uONfmCwZXJIf8xKx2KRgxYgOS+CROuyoyQKCxIhkOr4T6JWgxGnvZ1HWnf/CfHcBXxcnpRHxYwRKkUjSErFKkAQiNjP4kmBRTHbKm5KkKxwL+K39fwDX1XGF8ct++QAAAABJRU5ErkJggg=='); bottom: 10px; left: 15px; } div.vis-network div.vis-navigation div.vis-button.vis-right { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABs1JREFUeNqsl3tQlOcVxp9z3m+XygK7C4sLxkW5o4CAkYssFSkRjabjJEOSJm1IbZx2krapiZdeprW0NVVJ0pqMM0kYJQlqkoZImGioE1ItiCAgIsFwE4Es99vCslwChf36xy5EW1A0Pn9+73fO772e93kJC5EMCszFd20SbyFZNpJAAACtjWUI8KAN1CRAJTbg9LXNU+dBkG+Xkm7Zmg4OWoUdNqZXmQCZHQFsz0yOcCYGEc8mJGDnl2UTh5AO2x2DA3OxDaAsCDvQ32VF11qP9aZYz6SeFeooi17pPQEAvZNdTnWWKnWFuVhfYT7v0zza4M3EsMk2EPgnNZusby8Y7P8x/5lI/gMTYNSnNKQt/0Xtev1DfQtZlaK+M54fmDJXXhg4G8zEINBfqlLMe28L9s/lQ8Tyr5iAJ32fK/tj+OFq3IUO1O+JyGk7GgsiEPFrlQ/07bixXdwEPckHWZJ3MgG7Qw9+/mLIS/W4SyXoNvQskpyHLg1e8CNQ3NI0laoje7Tg/8CBudgGgQwSwO/DD322ze/FFnxLRWhiBzUK94GLA2f9mSTjfU+7mjqyrVe+AX8I4aGgShbA0/47Sn4ZuLcR90ih6qih0anRiVprtUEQb43bYtlXmwNZAEDAj/ACMW1M8ExpeDXyWMVCEl4yF7vntR/zLeov8JJlWfZR+Y3N92+cx/reOmu1quNrk27EWW0xvWspJcigoNNkA4C3Yk59vH7xltvu3ktDxe7PX34ilQCQfeci1j2xfn94ZrGCneY8uxcHCnW/vbr9EQD4d2ITc8AprAOAQLewroVAAaB8oMiLiRHvmVy7znNTjWCFrXKoJOSHFQ+kvnF9f+jco07s91MFdwmSkHQuYB0T8WYwIcYj0bTQdRufGlFKJMFVaCb/GvZW6aGI4yeXOwd2mr/u05zsyDY+W5X64Nm+fO85NpuJiCFJTpslIoonADEeiT2zIzIXuh+o25PQNtbsNVMOBUn2g08MiSTHN3uZjNTEDr4dnX/6H+1H/XPasmKvW+sMGfW/MXzende4K3h/ibvSYxIAItyie/K7cgCitQxCIBFjpTrKMgM+WPfrhLbxFi9iMQtlYjAJSCSBSYBAIPBNI3p86TPXj8bk56R4PVylFE626uFLQc9efiTVPDmgBIAAtzALEYNBQRITa4kYix21FwBax655CVagPLk7806Pj1qo/7MraF/FQ14/aMhszYhvGqn3KTef89rklWrSKXUTkn3mtJK9Bzf3XJA0e/PcrdgxIwSCDPmbZMQgABJkDBKzvn+yy2npIv9xAPB1Ceo2jTZ7Gc8afipIgEhAkACDwcSQQZBIIGnx5it7gg+U3wgcnbZKR1r+FnW+v2DVtDwtXCXNSKz797oAwDzZ7ySRAIBBFsTXmBh1w1+oZ4J3h+wv9lUFdbMDOrO+5IAqWIGZthuV13nC77nKRx8r7PssyibLIkoT1/h65HsfzWyu5tF6NYNB4EYJzKUETqgcLNVv0D/cDQBrNAnm9+LOfTLfNB5u2hf5z+6TMexYji+tVdrM5leMbWOtSwQx/F1C2rcuebIqwSO568a4WmuN3mEYSiUi+pRl2l1pLvYBsKArUKVwnZRYgdHpMWVG4+/WXhwoDBXE7OmkHzJ6JNemLfv51bniGqzVPoIkyLbpfK7ZMFIkE6FlrMn7Ql+BbiHg+zXGbgLjylDpyosD58KZmKM0cfWHI9//aD5o1VCZrnO83VuQQOja5PMCfwK8n3K2ChIbLVOD9KB36le3A+u/s2Q81C2yRavQmQNdVnamLnmq4nHD9jpB0rwm77jpjTW9E906Bu18fWlWCQHAox9CtGoXTwmS8IThZyXPB+29inuoE6bMsDM9ufEAMNHqJuU8ljMtAKA2B7IhzaWNiLfWjVQb3J10/SGuEZZ7Af1X7+lluZ3HkpgEQPL291M+qbzJgXQcG60ypKlVTGwsMxcFaJW6/hDXVZZvCz3RlrmRiQHwy9nRn2bM6bnas4cLfH6s1RIorsJcFDA2PToR7Z7QezfQD9qzwvI6TyTZC47ttXeiT+2c1+wBgOndoTPLt7mrmCRjvfULQ4O1xsVVchu7b9GysYUAqy3lnsdNb0aXmQuj7PYWL2etuRl6S0OfXLjiGQIdEY6K5esc2BWhjvkqXLO6x08VPKxV6iYAwuBkv5NpvNmtbrhaX2+tWdY70eVNINhtLW0/sjrv6B0/YdJlcGlR2AvE4hUlKwHQ7BU5cz8LRx0HaPY7gXb53L/67+mUfudPmP/twOWS6AQi/j6B4iWS/IlYK+yGYJDB1wWLErLRKd/omOJbAWf03wEAyO9m+/TtS3AAAAAASUVORK5CYII='); bottom: 10px; left: 95px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomIn { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABiBJREFUeNqkV2tQlOcVfp7zvgvDRe66y8htXUBR1GoFI+BtFJvRtjPJBGeaH2a8DGmbttgSTWbSJEw6TWOsrbbpTIeJZGqaTipTa6LJZDTVUTYQdNAohoso6qLucnERN0Axcb/8+HaJUHDX9Pz6vnnPe57vXJ5zzkeEIwaYcwBL/VrW0TCKqZANINEvBhSk3w9eUmC9HzjcsfarOhBGKJN84GkVJHcetvqFu4SAIYELYlpm4LpQQMqoQQKVnzeO7EYV/A8NnHMAGwHWQJmAjtg895LkFa7FU1d258UvGLBGpI4AQM9dd2TrwNn4016n9bS3LqNzsD1VKPAbfhCyqflR31thAzv+La+QxotCoNi6pn1D1s9aVli/3xtOVk72fjT1XVf17E9uHZspFBD8zdk13pdCAjsOyG6KUSEEnrT/tPHluW+cw7eQ19q2z6/t2rsYJEjZ07S6d+ukwI5/yQ7RxnYC2DZnx8dbHNs6xxs85T2R9GprZcmVwYs2BYWsmBzP83m7nIVJS73jdfdd+7PjjUu/XWUCGTtPre7ZHjxTY3Kq8DoV8Ou5u49snPGrKxN58syZ9aVXBztsigoUBd+Xt2NbfZ8llaVvah+vOz9hcX+CJenWp7eOOYS6ePpTU1w39vk+AwCzFPdDQbFGFPCUY2v9hqxfXJ0shNeHLtsUFc6UequbVvdVkwLX0GXbZPpl6Zuu/ij9x/VCBU1dU7bfdFYAIDsSFRCgeOqa9hfy/nDhwfwTKOrRd0U95n0iqch9+cKS5JVtpMCdkllhAhugCHcRwAb7z1tCEp8CCXAWAJRoCFXIYnti+sYWTQ0tll0wQMk+hGUAkBOX714xbV1IyuhxHhIMC/iR5OV9M2JmuhU1Vh7PXiakrIUQhcnLXeHQxPT4GyAtFqgwgAPF5iIFWkeu1SSLCKAweXn3/ZR5rXV7SddQpy3YDoNems9qTI5hGCitm1MOAAx0aaFCerTd84zjBed3Egq9ADA/rqD7Q3ctQC4REDmkYHb8goGgsR2tz5V0DV+xUdQoqAQ81RybU4IgFWgACgpaLLCIBUo0bv63y/aXy6+WBHWz4/IHSIGAuVooiaRgWqD3AsDVoQ6bEgtOrfJUhwrf0WUtk+r8sL6wvHvk5ijVUiJSRrQZuURtfoGMuaCoRyfP/yMy0XykgAA0DPRTxNp31x2ZFuUYBgB7bK7HNdhpKz6WXq6oQCooKghMKhkgji77vBoA1jkXlAvVfRQjFMUcmxSkRWd6gpjeu32R2kxTvyhKh1DQeud8fFBh26zfOe0xuR4JgAbzywCoRSzfeDUKatJKUQK+CjKiHZ6nZ2xzBnU7B9vixTy7qCHSQEhJU3+DtdT6mAcAFiWUeP/xyPH3Jwrfo3XzysemRcEA8F5RY8h6aPE1WwMLQ4OQ/EBANHmdGWHlzZyxk3ayB0m771yGooYy+KE0l35x0iBxZehS6ie9R1PCMaDvCzWDXA4hZ283ptwcvp6qqDBnyao6AWEQrBQQ/7y+d3YoA+NBTAaElo973p8tVFCQyipW+c3pdNu7BwBOe+tm/eniK/kPFWowpMfvuKrzzw80zSKIkWsJe0bHYu163BNwMwDsv7G36ODNtzMnM5IWZfeQgscbisvLPl1aDhLTo7I8k+n/p+dw5pGeg0WKGiS31K6vvTdmA7nx9uDZ9A3xMUIpbvSezE6MSOmbNWXewHhD6dH23o7BlqQvvrwTK6KQFpXl2WyvcE6LTB2eCPSdrurvmcUnO/cVfPD6pMteyfGs3QKpUFQoS9tU/xPH8xe+Tdd693pN/pHug0Xmqntvz1uLDo9Z9v5nnrn+dvujrI1JMUJd3OY7n97ua46douOGpkdlDoUDeG7g1NS/u/5a0Og9scCsB+ysWXSoMuyFftWJvM0E31SBjmWPznHPjy+8NjdhYfeMmJl3EiNSRgCi/25fpGu4M671zjlrm685s2fEnUoQ5lrLLW8uPLj3oX9hqgxIw8n8X1LU7yMkItCHzREZrGQV6ONmy5TggHk247sL/1jFqof/hRn/AWfqC0pI+QHBIk3tICXRrFTpF8hlJaqefh6yFxQ6HwQYlK8HAKyt3WsWxl7fAAAAAElFTkSuQmCC'); bottom: 10px; right: 15px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomOut { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABV5JREFUeNq0l2tQVVUYht/3W/vACMr16IFRQDiAgChpgiikMqY1WjnN9KsfGOXYTOVgkvbDUsZuXrK0qZmGUSvNspjI8TZOmo6AGBoZYly8YB6Qw80DBwQ6jJ3dj30OZZmiwvtv77XW96y91l7v9y1iMNLBuCI84tZkIXU9gwqxAILdokNBOtzgJQWWuYEDFxfcLAGh3y0k79iaD4mfjOVu4WYhoItngBiR6RkuFJAyEJBA3m/lri3Ih/uewXFFyAG4A8oAWkcm2meEzrFNH53Vkhg4xWnxCXcBQGu/3bfGeTbwjKPUcsZRElnfUxcuFLh1Nwh5vurx7s8GDbZ+L+tI/U0hkGGZX5c9/pXqOZYn2gazK8Vth0fvsRUknbx+bIJQQPCts/Mda+4KthbJFoqeKwSejX6pfO2kjytxH1pfuyqlsGH7dJAgZWvFo23L/9muboF+JxtE0/OEwMqJG46uSHinFvepTPO8lhGaX+fPHSdjCKaPy/b3v7az58h/wHFFyIHCRirgjUlbfsiJWXEFD6iUoOkdQaaQ6z9dP2YVahljF4+yXdvZ/evf4G+hQk2sEAUsti4vWxa35gKGSBMDp3T23OxxVXdXRijKovSFzrerC6ELAMT6IhcCZIyeX7c68YPzGGLlxq89PyM0q5YU2M1RuQAg0EERbiaA7Ohl1RgmPTM2p1qjBk1Mm6GDErsfswAgLiDZPmfMwrbhAqeHzm6P8Z9gV9SQdTx2lpCyAEKkhc62YZiVEjTdRgo0zXeBRnImAaSFzm7xdjjtOBGyvmZVZkNvfZjXDhU14+BToFEDKRAQpAJ0HRTjP6XHpYUKEX7RzS9bV5c+FJTmAICUgNSWQ/ZCgJwhIOJIQVLgFKcXvKHm9cyGvithFDUAFQqECho1CBUIggYapAJ1QEFBExNMYoISDU1/NIR9cvndTG/c2IBkp2fC8ZpQgknBGI/3AsDvvRfDlJhwem5zwYMs7VNlaUtbXE1h3mezj9mlGSsXrBkzkFsGKGoDmedBJLfLjxQQgAYdHRSxtPfbfceNsPYBQPTI+GZbT31YxrGIpYoKpIKigkAgFOggNBrbQBBCBaEM2L+iGGmTgnF+Uc1epqO/3VejAoAOUZSLQkFN17lAb4eVCe+VRvvHN4sH6t1feqAmMUGoPHvvhdLzTjzfKoj0sza/GLOy1Bu3vqc20Pgl5YIGkVOEZFZ0nLLMszzdDADTgjIdX6Uf3zfUx6m6u8riKRhOCcmDAqLCURo53Oe4rrsyUlGD0nlIqubdKNZJXOm9FH6y7Yh5uKBnO8vNTX2N4YoKE2fMLREQOsE8AfFN4/ak4QIfbd2XJFRQkLx85ruN7NTp2AoAZxwlCR9dWJc81NDdtoLkc86KBIJwXQ3aOpCPqwuhR2SPbCBlUc2NyogQX3N7wqgU51BAf2w9EFXUtCtLqADqS76ev6/ilgrk2q6esxHZgf5CySh3FMcG+5jbE0ZNdj4odHdDwWPGcZNNO1MPbrxtzdW4s+tI5HPBwQTTzziKY3v/7HGlhmS23g90T+OO5L1Nu7MMw3Fv/Tx1f97/FnsAYPui8/D4nBB/oZZR230uoq67auQoLaB37Iio3sEAK52nR39p+zS13HFiilHeYtOOabdC71jQzz2R+ALBbcrjWNF+cfaUwLSrk4KmtsT4T+gK9jG7AKKjv93X1lcfUNNVaantropqddnDCcIoa7lk29S92+/5CpOvQ04VJ79KUe/7iI/Hh40U6c3PyuPjhmWKN8G8Fvnw1A/zmX/vV5h/T+CXstRMUp4kOFOjZiUlWBkFQYdALitRZXRzf3RqWumdgF79NQDBOa2V/iYSHAAAAABJRU5ErkJggg=='); bottom: 10px; right: 55px; } div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABptJREFUeNqsl21QlNcVx///cx9hIipuAJHasgHlRdw0xay7yK7smg6sb2DSdtqZduLUNENmOk1tQuM4U7UzTvshSRlFZzoNCWSSSTJp+6VNkLCAeQHBoCCgqNBE0wUqL+KuwIiiZZ9+eHa3aAS3Sf8zO8/L3nt+95x7z7n3YWlpKUQEJAEgch9+Jola9xEC2ADBVgAOKqwCYAqKDgUJBIHPBWwFWQNdbyZFBwAC0GGIAHQSj3/8HHRdhzYbdDfwg4IjAsGvICgXAroYBiCEDkBBACBZoyST4gDwQqh7mQ4cEkhQD0EBIIggRMQAh2EiEvEYAGrdR3YSqIYCIEDaotVDeYnu/ryEjSOr43PHl8WmTBPA6PRQ7IWJrvhT/ubkU/7m1EvX+1KEUh7Ug+WkPEXgdUSkR+xrd0NJ4qjr8AEI9pGAI7mo78mHfnF+Y/K2K7iHUheuvJG6cOUNz/LvDwPobrpSl/Ruf2VOy9UPs4RSTSANwH4Y449EVdnt9ojHIeghCHYLgR+n/7zt4Np32tIWZU4hSpnjVk1t/caPfOO3/f++MNH5TVJcisoEoo4ksgbsXwYfdR1+kQplQuCFNS82Pp/9+158RTkTC0ce0OKutQeOp5PME0qcUBqyBmwGOC8vz4AWVOyE4CUqYO/Dh+p3pj//Bb6mHllqCyxd8ODVT69+uFKoOYTSnzFg7SJpzHFNQYWiQrUIsCN9V+uOh375zz179pSGI1FSUuK12+2+aGDt7e3muro6T/h57969lZdvDrT+ZbA6n0B1nfPVN7e0PjMjIgIIdkEAR1JR329yDvaE0+l/hQKA1Wr1bd682SsikUW7K+O3PesTNvaSAiXaLhGBvO86RFEoJ4Adac+eDxsgiZKSEm9NTY3n5MmT5mjBHR0d5vr6es+mTZu8SqnI+x+s+Ol5jRo0auX1jtepQaEAADKWWIbcy7ZGUmb79u1eu93uI+mtra31HLj5TGDs9rBJICCNn1GRCKGCUJAUuzzw6CfbTB6Px7t27VofAG/YXl6Ceyw9LmvIN3UxZUafKRACWyCELcHVP3vk4fDabDZf+2N/D9g+fsLEEFSooFGDogZNFkBRgSCsTcWm066jgRAU4et/F5u9nxRosmCLRmE+QdgSXCNzhW/s9rDJ63wVJx77V+V8YS6UNaW8BdOcqzx+3Ujt0F8Bcr1GMIMU5CzJHZ+rg6IGCYV2PimoyIK6lzIWrxkPTVGmRoqJFCyLTZmeq4MB5f3BVADnbpcQkzStUQMAk0YKBPfzxlhA95NQQe43QBotBECAFFyZHo6dz6CKCizAPFPivzUWqxm2AqIgnwkFvZNn4uczGK3Hah7wpet98UZ85R8aKScIcXYEWpMLkx8fvleHpNjlAWtTsakQa0pVKGcJQqMGUqCHBvfdjp/gTP6xwFzg85PdyaH2J4SUowKiw3889e4KBACnT582W5uKTV2uusAdUFlgzBcFQoFGDT35HwW+82mhqaenxwwA4WtYfRNnUkMZUqsJpEkn8cXU5yktYw2JjsTCMQDwer0ekt6GhgZPUVGRd3fu7qjqdU9Mj7mlpcVD0tvS0uKxWCyVANB5rS3x8s3BFEUFgTTLtuZndQHLBMSfB6pyZtfqMDQ3NzfqTcJisficTqc3BI+8bxh9L8corarM3fnDoIT+rACAU/7m7MOfHbCEwQDQ2Njo6erqinqTOHfuXNjjiI23+ystZ8c7smmkWgVJcN++fRARfLDhlacEUqVEQ1nm77xPrHjSh/+Djo3WmN/s/6OHEOgIPr2h63tVuq5Dud1ukETWoK3zorkzTiiONn/TKlNM4lj24m+Pf13o2wOVHqGA5MsAXjKPrDaqnMvlQnjTzhy0Nlw0d5oI5p3yN62amrk+ve5B5+hXgb47WGX52+V3NgoFOvQKAGUkkTqcbZy5XC7XHYf4zEFr3aXU7jih5uidPPOtvsmzixZr8VMrHjBHddLsHj+Z9Fb/n9a1+T/JDaXey0IpEzEKkHnU8Jj79++PeEwSSimQRGP+Gz8j5DVFBVKQtjBj6JGlNt/D8Y+OpMdlTphiEqcB4tqtsVjfjUtLLkx0J/dOnjWPTg+lEARIEHwaQJVQIYggACC/qxi6rn8ZHL4XETSsf0MU1HOk/CFGYgAwskUqY5eBitRxzn7/a0V1EEBwdqkN6jPI7y4xPmHmC5unbWdQRMqP2d86qANOksU6gvmArNQRNClqABnQgYuK0krI+wCOAyH3DK/vqOXhaf3PAO7mIRjDNV25AAAAAElFTkSuQmCC'); bottom: 50px; right: 15px; } `;_c(vZe);function qO(t){var r=t&&t.preventDefault||!1,e=t&&t.container||window,n={},i={keydown:{},keyup:{}},o={},a;for(a=97;a<=122;a++)o[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)o[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)o[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)o["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)o["num"+a]={code:96+a,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var s=function(u){c(u,"keydown")},l=function(u){c(u,"keyup")},c=function(u,g){if(i[g][u.keyCode]!==void 0){for(var h=i[g][u.keyCode],d=0;d700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=qO({container:window,preventDefault:!0}):this.keycharm=qO({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,i,o,a,s,l,c,u,g,h,d,f,C,v,A,I,p,m,b,_,L,M,S,T;fe(n=this.keycharm).call(n,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),fe(i=this.keycharm).call(i,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),fe(o=this.keycharm).call(o,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),fe(a=this.keycharm).call(a,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),fe(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),fe(l=this.keycharm).call(l,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),fe(c=this.keycharm).call(c,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),fe(u=this.keycharm).call(u,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),fe(g=this.keycharm).call(g,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),fe(h=this.keycharm).call(h,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),fe(d=this.keycharm).call(d,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),fe(f=this.keycharm).call(f,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),fe(C=this.keycharm).call(C,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),fe(v=this.keycharm).call(v,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),fe(A=this.keycharm).call(A,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),fe(I=this.keycharm).call(I,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),fe(p=this.keycharm).call(p,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),fe(m=this.keycharm).call(m,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),fe(b=this.keycharm).call(b,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),fe(_=this.keycharm).call(_,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),fe(L=this.keycharm).call(L,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),fe(M=this.keycharm).call(M,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),fe(S=this.keycharm).call(S,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),fe(T=this.keycharm).call(T,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),t}();function IZe(t,r){var e=typeof $s<"u"&&U1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=pZe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function pZe(t,r){var e;if(t){if(typeof t=="string")return QO(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return j1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QO(t,r)}}function QO(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var i=function(a,s){for(var l=[],c=0;c=a.minX&&g.x<=a.maxX&&g.y>=a.minY&&g.y<=a.maxY});_t(s).call(s,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var l=this.getPointer(e.center);this.selectionHandler.commitAndEmit(l,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var c=this.drag.selection;c&&c.length?(_t(c).call(c,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*e.scale;this.zoom(i,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var a=this.body.view.translation,s=e/i,l=(1-s)*n.x+a.x*s,c=(1-s)*n.y+a.y*s;if(this.body.view.scale=e,this.body.view.translation={x:l,y:c},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),i0&&(this.popupObj=u[h[h.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var f=this.body.edgeIndices,C=this.body.edges,v,A=[],I=0;I0&&(this.popupObj=C[A[A.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new Zxe(this.canvas.frame)),this.popup.popupTargetType=l,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),i===!0)){var o=this.selectionHandler.getNodeAt(e);i=o===void 0?!1:o.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(n));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),yZe=Et,JO=d$,LC=GI.getWeakData,bZe=WI,wZe=Qn,$Ze=$c,cm=Pr,_Ze=Z1,uX=W1,ex=_r,gX=F1,MZe=gX.set,zZe=gX.getterFor,EZe=uX.find,SZe=uX.findIndex,TZe=yZe([].splice),LZe=0,kC=function(t){return t.frozen||(t.frozen=new hX)},hX=function(){this.entries=[]},um=function(t,r){return EZe(t.entries,function(e){return e[0]===r})};hX.prototype={get:function(t){var r=um(this,t);if(r)return r[1]},has:function(t){return!!um(this,t)},set:function(t,r){var e=um(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=SZe(this.entries,function(e){return e[0]===t});return~r&&TZe(this.entries,r,1),!!~r}};var kZe={getConstructor:function(t,r,e,n){var i=t(function(l,c){bZe(l,o),MZe(l,{type:r,id:LZe++,frozen:void 0}),$Ze(c)||_Ze(c,l[n],{that:l,AS_ENTRIES:e})}),o=i.prototype,a=zZe(r),s=function(l,c,u){var g=a(l),h=LC(wZe(c),!0);return h===!0?kC(g).set(c,u):h[g.id]=u,l};return JO(o,{delete:function(l){var c=a(this);if(!cm(l))return!1;var u=LC(l);return u===!0?kC(c).delete(l):u&&ex(u,c.id)&&delete u[c.id]},has:function(c){var u=a(this);if(!cm(c))return!1;var g=LC(c);return g===!0?kC(u).has(c):g&&ex(g,u.id)}}),JO(o,e?{get:function(c){var u=a(this);if(cm(c)){var g=LC(c);return g===!0?kC(u).get(c):g?g[u.id]:void 0}},set:function(c,u){return s(this,c,u)}}:{add:function(c){return s(this,c,!0)}}),i}},OZe=tY,tx=Kt,K5=Et,rx=d$,xZe=GI,HZe=h$,dX=kZe,OC=Pr,xC=F1.enforce,VZe=mt,PZe=LW,Xf=Object,RZe=Array.isArray,HC=Xf.isExtensible,fX=Xf.isFrozen,DZe=Xf.isSealed,CX=Xf.freeze,NZe=Xf.seal,nx={},ix={},BZe=!tx.ActiveXObject&&"ActiveXObject"in tx,th,vX=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},AX=HZe("WeakMap",vX,dX),C2=AX.prototype,Y5=K5(C2.set),FZe=function(){return OZe&&VZe(function(){var t=CX([]);return Y5(new AX,t,1),!fX(t)})};if(PZe)if(BZe){th=dX.getConstructor(vX,"WeakMap",!0),xZe.enable();var ox=K5(C2.delete),VC=K5(C2.has),ax=K5(C2.get);rx(C2,{delete:function(t){if(OC(t)&&!HC(t)){var r=xC(this);return r.frozen||(r.frozen=new th),ox(this,t)||r.frozen.delete(t)}return ox(this,t)},has:function(r){if(OC(r)&&!HC(r)){var e=xC(this);return e.frozen||(e.frozen=new th),VC(this,r)||e.frozen.has(r)}return VC(this,r)},get:function(r){if(OC(r)&&!HC(r)){var e=xC(this);return e.frozen||(e.frozen=new th),VC(this,r)?ax(this,r):e.frozen.get(r)}return ax(this,r)},set:function(r,e){if(OC(r)&&!HC(r)){var n=xC(this);n.frozen||(n.frozen=new th),VC(this,r)?Y5(this,r,e):n.frozen.set(r,e)}else Y5(this,r,e);return this}})}else FZe()&&rx(C2,{set:function(r,e){var n;return RZe(r)&&(fX(r)?n=nx:DZe(r)&&(n=ix)),Y5(this,r,e),n===nx&&CX(r),n===ix&&NZe(r),this}});var jZe=wt,UZe=jZe.WeakMap,GZe=UZe,WZe=GZe,ZZe=WZe,Bh=ke(ZZe);function Qt(t,r,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?t!==r||!n:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(t):n?n.value:r.get(t)}function T7(t,r,e,n,i){if(typeof r=="function"?t!==r||!i:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r.set(t,e),e}function L7(t,r){var e=typeof $s<"u"&&U1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=KZe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function KZe(t,r){var e;if(t){if(typeof t=="string")return sx(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return j1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sx(t,r)}}function sx(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&arguments[0]!==void 0?arguments[0]:function(){};Ie(this,t),Ps.set(this,new cx),Rs.set(this,new cx),X5.set(this,void 0),T7(this,X5,r)}return pe(t,[{key:"sizeNodes",get:function(){return Qt(this,Ps,"f").size}},{key:"sizeEdges",get:function(){return Qt(this,Rs,"f").size}},{key:"getNodes",value:function(){return Qt(this,Ps,"f").getSelection()}},{key:"getEdges",value:function(){return Qt(this,Rs,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=Qt(this,Ps,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=Qt(this,Rs,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){Qt(this,Ps,"f").delete(e)}},{key:"deleteEdges",value:function(e){Qt(this,Rs,"f").delete(e)}},{key:"clear",value:function(){Qt(this,Ps,"f").clear(),Qt(this,Rs,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:Qt(this,Ps,"f").commit(),edges:Qt(this,Rs,"f").commit()},o=arguments.length,a=new Array(o),s=0;s=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function XZe(t,r){var e;if(t){if(typeof t=="string")return gx(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return j1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gx(t,r)}}function gx(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),e=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof ki){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,hr(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],i=this.body.nodes,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var i=this.body.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),o=10,a=null,s=this.body.edges,l=0;l0&&(this.generateClickEvent("deselectEdge",n,e,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),i=!0),i===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Mn(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Mn(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=ux(e.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(h){i.e(h)}finally{i.f()}}if(e.edges){var l=ux(e.edges),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=this.body.edges[u];if(!g)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(g)}}catch(h){l.e(h)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],c=l.getItemsOnPoint(n);i.push.apply(i,c)}for(var u=this.body.edgeIndices,g=this.body.edges,h=u.length-1;h>=0;h--){var d=g[u[h]],f=d.getItemsOnPoint(n);i.push.apply(i,f)}return i}}]),t}();function IX(t){var r=QZe();return function(){var n=xe(t),i;if(r){var o=xe(this).constructor;i=Q(n,arguments,o)}else i=n.apply(this,arguments);return Pt(this,i)}}function QZe(){if(typeof Reflect>"u"||!Q||Q.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Q(Boolean,[],function(){})),!0}catch{return!1}}var pX=function(){function t(){Ie(this,t)}return pe(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),JZe=function(t){St(e,t);var r=IX(e);function e(n){var i;return Ie(this,e),i=r.call(this),i.layout=n,i}return pe(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){d1(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),e}(pX),eKe=function(t){St(e,t);var r=IX(e);function e(n){var i;return Ie(this,e),i=r.call(this),i.layout=n,i}return pe(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){d1(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),e}(pX),tKe=Oe,rKe=W1.every,nKe=sg,iKe=nKe("every");tKe({target:"Array",proto:!0,forced:!iKe},{every:function(r){return rKe(this,r,arguments.length>1?arguments[1]:void 0)}});var oKe=Rr,aKe=oKe("Array").every,sKe=Cr,lKe=aKe,gm=Array.prototype,cKe=function(t){var r=t.every;return t===gm||sKe(gm,t)&&r===gm.every?lKe:r},uKe=cKe,gKe=uKe,hKe=gKe,mX=ke(hKe);function dKe(t,r){var e=typeof $s<"u"&&U1(t)||t["@@iterator"];if(!e){if(ut(t)||(e=fKe(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function fKe(t,r){var e;if(t){if(typeof t=="string")return hx(t,r);var n=qr(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return j1(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hx(t,r)}}function hx(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=r[o])&&(r[o]=r[i]+1)}),r}function vKe(t){return yX(function(r){var e,n;return mX(e=jr(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.to===r})},function(r,e){return e>r},"from",t)}function AKe(t){return yX(function(r){var e,n;return mX(e=jr(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.from===r})},function(r,e){return ea)return{v:{v:CKe(n,o)}};++I},b;p=A.pop();)if(b=m(),b!==0&&b)return b.v},h;for(c.s();!(u=c.n()).done;)if(h=g(),h!==0&&h)return h.v}catch(d){c.e(d)}finally{c.f()}return o}var IKe=function(){function t(){Ie(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return pe(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var c=n.childrenReference[s];if(c.length>0)for(var u=0;u0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),er(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=UI(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):dt(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,i=0;il){for(var u=e.length;e.length>l&&s<=a;){s+=1;var g=e.length;s%3===0?this.body.modules.clustering.clusterBridges(c):this.body.modules.clustering.clusterOutliers(c);var h=e.length;if(g==h&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}s>a&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var d=70,f=0;f0){var e,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new IKe;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(o===!0){var a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,i={},o=function(){for(var p=s(),m=0,b=0;b0)for(var _=0;_1&&arguments[1]!==void 0?arguments[1]:1e9,b=1e9,_=1e9,L=1e9,M=-1e9;for(var S in p)if(Object.prototype.hasOwnProperty.call(p,S)){var T=e.body.nodes[S],k=e.hierarchical.levels[T.id],O=e.direction.getPosition(T),P=e._getSpaceAroundNode(T,p),B=It(P,2),te=B[0],ee=B[1];b=Math.min(te,b),_=Math.min(ee,_),k<=m&&(L=Math.min(O,L),M=Math.max(O,M))}return[L,M,b,_]},u=function(p,m){var b=e.hierarchical.getMaxLevel(p.id),_=e.hierarchical.getMaxLevel(m.id);return Math.min(b,_)},g=function(p,m,b){for(var _=e.hierarchical,L=0;L1)for(var T=0;T2&&arguments[2]!==void 0?arguments[2]:!1,_=e.direction.getPosition(p),L=e.direction.getPosition(m),M=Math.abs(L-_),S=e.options.hierarchical.nodeSpacing;if(M>S){var T={},k={};l(p,T),l(m,k);var O=u(p,m),P=c(T,O),B=c(k,O),te=P[1],ee=B[0],re=B[2],Me=Math.abs(te-ee);if(Me>S){var He=te-ee+S;He<-re+S&&(He=-re+S),He<0&&(e._shiftBlock(m.id,He),n=!0,b===!0&&e._centerParent(m))}}},d=function(p,m){for(var b=m.id,_=m.edges,L=e.hierarchical.levels[m.id],M=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,S={},T=[],k=0;k<_.length;k++){var O=_[k];if(O.toId!=O.fromId){var P=O.toId==b?O.from:O.to;S[_[k].id]=P,e.hierarchical.levels[P.id]0?ie=Math.min(Z,ft-e.options.hierarchical.nodeSpacing):Z<0&&(ie=-Math.min(-Z,ot-e.options.hierarchical.nodeSpacing)),ie!=0&&(e._shiftBlock(m.id,ie),n=!0)},Me=function(De){var be=e.direction.getPosition(m),Ne=e._getSpaceAroundNode(m),Ue=It(Ne,2),ot=Ue[0],ft=Ue[1],Z=De-be,ie=be;Z>0?ie=Math.min(be+(ft-e.options.hierarchical.nodeSpacing),De):Z<0&&(ie=Math.max(be-(ot-e.options.hierarchical.nodeSpacing),De)),ie!==be&&(e.direction.setPosition(m,ie),n=!0)},He=ee(p,T);re(He),He=ee(p,_),Me(He)},f=function(p){var m=e.hierarchical.getLevels();m=Hl(m).call(m);for(var b=0;b0&&Math.abs(f)0&&(u=this.direction.getPosition(o[s-1])+c),this.direction.setPosition(l,u,n),this._validatePositionAndContinue(l,n,u),a++}}}}},{key:"_placeBranchNodes",value:function(e,n){var i,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var a=[],s=0;sn&&this.positionedNodes[c.id]===void 0){var g=this.options.hierarchical.nodeSpacing,h=void 0;l===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(a[l-1])+g,this.direction.setPosition(c,h,u),this._validatePositionAndContinue(c,u,h)}else return}var d=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[e],d,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-oe.hierarchical.levels[o.id]&&e.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function h(d,f){if(o[d.id]===void 0){e.hierarchical.setTreeIndex(d,f),o[d.id]=!0;for(var C,v=e._getActiveEdges(d),A=0;A({key:e,color:n.color,capitalize:SKe.includes(e)})),fileTypeShow:t,toggleFileType:r}}const{isDark:LKe}=mf(),fx=F(()=>({nodes:{shape:"dot",size:16,font:{color:LKe.value?"#fff":"#000",multi:"html"}},interaction:{hover:!0},physics:{maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:$X})),Fh=F({get:()=>dr.value.graphSettings,set:t=>{dr.value.graphSettings=t}});Je(Fh,()=>{E$()},{deep:!0});const _$=G("");nU(_$,()=>{E$()},{debounce:350});const M$=G(""),_u=new $u([]),Mu=new $u([]),z$=Bi([]),_X=new Map,va=new Map,J2=new Map,kKe=t=>t.reduce((r,e)=>(r.some(n=>n.id===e.id)||r.push(e),r),[]),MX=t=>t.reduce((r,e)=>(r.some(n=>n.from===e.from&&n.to===e.to)||r.push(e),r),[]);function OKe(){z$.value=[],_X.clear(),_u.clear(),Mu.clear(),va.clear(),J2.clear()}function zu(t){const r=t.id.includes("node_modules");return!(!Fh.value.node_modules&&r||!Fh.value.virtual&&t.virtual&&!r||!Fh.value.lib&&!t.id.includes(M$.value)&&!t.virtual)}function zX(t){const r=J2.get(t);return r?r.some(e=>zu(e.mod)):!0}const xKe=/(?:.*\/){3}([^/]+$)/;function E$(){_u.clear(),Mu.clear(),RKe();const t=[],r=[],e=[],n=NKe();(n?n.slice():z$.value.slice()).forEach(({node:a,edges:s,mod:l})=>{zu(l)&&zX(l.id)&&(t.push(a),r.push({id:l.id.match(xKe)?.[0]??l.id,fullId:l.id,node:a,edges:s,deps:l.deps}),e.push(...s))});const o=_$.value;if(o.trim().length){const a=r.filter(({id:s})=>s.includes(o));if(e.length=0,t.length=0,a.length){const{node:s,edges:l}=HKe(a);t.push(...s),e.push(...l)}}_u.add(kKe(t)),Mu.add(MX(e))}function HKe(t){const r=new Map,e=new Map;return t.forEach(n=>{n=Cv(n),n.node.font||(n.node.font={color:"#F19B4A"}),n.node.label=`${n.node.label}`,r.set(n.fullId,n.node),n.deps.forEach(i=>{const o=va.get(i);o&&zu(o.mod)&&(r.set(o.mod.id,o.node),e.set(`${n.fullId}-${o.mod.id}`,k7(o.mod.id,n.fullId)),o.edges.forEach(a=>e.set(`${a.from}-${a.to}`,a)))})}),{node:Array.from(r.values()),edges:Array.from(e.values())}}function k7(t,r){return{from:t,to:r,arrows:{to:{enabled:!0,scaleFactor:.8}}}}function S$(t){return t.replace(/\?.*$/,"").replace(/#.*$/,"").replace(/\/{2,}/g,"/")}function EX(t){return t.includes("vue&type=style")}function O7(t){return t.replace(M$.value,"")}function Cx(t){return 15+Math.min(t/2,8)}function vx(t,r){const e=[];return t.forEach(n=>{EX(n)||(n=S$(n),!e.includes(n)&&(e.push(n),r?.(n)))}),e}function VKe(t,r){if(!t)return;M$.value=r,_u.clear(),Mu.clear();const e=[],n=[];t.forEach(i=>{if(EX(i.id))return;if(i.id=S$(i.id),n.some(g=>g.id===i.id)){const g=va.get(i.id);g.node.size=Cx(g.edges.length+i.deps.length);const h=[],f=vx(i.deps,C=>{h.push(k7(i.id,C))}).filter(C=>!g.mod.deps.includes(C));if(!f.length)return;g.mod.deps.push(...f),e.push(...h);return}const o=i.id,s=o.split("/").at(-1)??"",l=O7(o),c={mod:i,info:{displayName:s,displayPath:l},node:{id:i.id,label:s,group:o.match(/\.(\w+)$/)?.[1]||"unknown",size:Cx(i.deps.length),shape:i.id.includes("/node_modules/")?"hexagon":i.virtual?"diamond":"dot"},edges:[]},u=vx(i.deps,g=>{c.edges.push(k7(i.id,g)),J2.has(g)||J2.set(g,[]);const h=J2.get(g),d=O7(o);h.find(C=>C.path===o&&C.displayPath===d&&C.mod.id===i.id)||h.push({path:o,displayPath:d,mod:i})});i.deps=u,z$.value.push(c),_X.set(i.id,c),va.set(i.id,c),zu(i)&&zX(i.id)&&(n.push(c.node),e.push(...c.edges))}),_u.add(n.slice()),Mu.add(MX(e))}const SX=G(),[PKe,x7]=Fb(!1);function RKe(){x7(!1)}function DKe(t){const r=va.get(t);if(!r)return;const e=r.mod.deps.reduce((o,a)=>{const s=va.get(a);return s&&zu(s.mod)&&o.push({path:a,displayPath:O7(S$(a))}),o},[]),i=(J2.get(r.mod.id)||[]).reduce((o,a)=>{const s=va.get(a.path);return s&&zu(s.mod)&&o.push({path:a.path,displayPath:a.displayPath}),o},[]);SX.value={name:r.info.displayName,displayPath:r.info.displayPath,path:r.mod.id,deps:e,refs:i}}const Eu=G("");Je(Eu,()=>{E$()});function NKe(){const t=Eu.value;return Eu.value=t,!t||!va.get(t)?null:TX(t)}function TX(t,r=0){const e=va.get(t);if(r+=1,!e||r>20)return[];const n=[e];return e.mod.deps.forEach(i=>{const o=va.get(i);o&&n.push(...TX(o.mod.id,r))}),n.reduce((i,o)=>(i.some(a=>a.mod.id===o.mod.id)||i.push(o),i),[])}const BKe={class:"w-300px","h-full":"","of-auto":""},FKe={"text-md":"","h-80px":"","border-b":"","border-base":"",p3:"",flex:"~ col gap1"},jKe={"text-lg":"",flex:"~ gap2 items-center"},UKe={key:0,"i-material-symbols-check-small":"","text-primary-500":""},GKe=["title"],WKe={pb2:"","text-gray-500":""},ZKe={"text-primary-500":""},KKe={flex:"~ col gap2 items-start"},YKe=["onClick"],XKe={p3:""},Ax=1500,qKe=ce({__name:"GraphDrawer",props:{top:{}},setup(t){const r=SX,e=PKe,n=Eu,i=uo(),o=g=>{if(i.vitePluginDetected.value&&iI.value){fd(g);return}c(g)},{copy:a,isSupported:s,copied:l}=sU({copiedDuring:Ax});function c(g){a(g),w8({message:"Copied to clipboard",type:"success",duration:Ax})}const u=[["refs","references"],["deps","dependencies"]];return(g,h)=>(z(),ne(y(rG),{modelValue:y(e),"onUpdate:modelValue":h[3]||(h[3]=d=>qe(e)?e.value=d:null),top:g.top,"close-outside":!1,permanent:!0,"content-blur":!0,position:"absolute","mount-to":".graph-body"},{default:W(()=>[w("div",BKe,[w("div",FKe,[w("span",jKe,[Se(ze(y(r)?.name)+" ",1),y(l)?(z(),H("span",UKe)):y(r)?(z(),H("span",{key:1,hover:"op-100","i-carbon-copy":"","cursor-pointer":"","text-sm":"","op-50":"",class:Te({"text-gray-200":!y(s)}),onClick:h[0]||(h[0]=d=>c(y(r).name))},null,2)):oe("",!0)]),w("button",{hover:"underline",truncate:"","text-left":"","text-gray-500":"",title:y(r)?.displayPath,onClick:h[1]||(h[1]=d=>o(y(r).path))},ze(y(r)?.displayPath),9,GKe)]),(z(),H(Ee,null,At(u,([d,f])=>w("div",{key:d,"max-h-60":"","of-auto":"","border-b":"","border-base":"",p3:"","text-sm":""},[w("div",WKe,[w("span",ZKe,ze(y(r)?.[d].length),1),Se(" "+ze(f),1)]),w("div",KKe,[(z(!0),H(Ee,null,At(y(r)?.[d],C=>(z(),H("button",{key:C.path,dark:"text-gray-200","of-hidden":"",truncate:"","ws-nowrap":"","pr-3":"","text-gray-800":"",hover:"underline",onClick:v=>o(C.path)},ze(C.displayPath),9,YKe))),128))])])),64)),w("div",XKe,[D(y(ct),{type:"primary",onClick:h[2]||(h[2]=d=>n.value=y(r).path)},{default:W(()=>h[4]||(h[4]=[Se(" Filter to this module ")])),_:1})])])]),_:1},8,["modelValue","top"]))}}),QKe=ce({__name:"GraphFileType",setup(t){const{fileTypeData:r,fileTypeShow:e,toggleFileType:n}=TKe();return(i,o)=>(z(),H("div",{absolute:"","bottom-0":"",grid:"","grid-cols-3":"","w-260px":"","gap-2":"","b-1":"","b-l-0":"","border-base":"","rounded-tr-lg":"",px4:"",py2:"","text-sm":"","transition-transform":"","duration-300":"","glass-effect":"",class:Te(["group",{"translate-x-[calc(-100%+30px)] translate-y-[calc(100%-30px)]":!y(e)}])},[w("div",{class:Te(["group",{"rounded-bl-lg opacity-0 group-hover:opacity-100":y(e)}]),absolute:"","right-0":"",h30px:"",w30px:"","cursor-pointer":"","rounded-tr-lg":"","bg-primary-500":"","text-white":"","transition-opacity":"",flex:"~ justify-center items-center",onClick:o[0]||(o[0]=()=>y(n)())},[w("div",{"transition-transform":"",class:Te([y(e)?"i-material-symbols-arrow-downward-alt rotate-45 hover:translate-x--10% hover:translate-y-10%":"i-mdi-file-outline"])},null,2)],2),(z(!0),H(Ee,null,At(y(r),a=>(z(),H("div",{key:a.key,flex:"","items-center":"","gap-2":""},[w("div",{h12px:"",w12px:"","rounded-full":"",style:kr({backgroundColor:a.color})},null,4),w("span",{class:Te([a.capitalize?"capitalize":"uppercase"])},ze(a.key),3)]))),128))],2))}}),JKe={flex:"~ items-center gap-4 nowrap",class:"[&_>*]:flex-[0_0_auto]",absolute:"","left-0":"","top-0":"","z-10":"","navbar-base":"","w-full":"","overflow-x-auto":"",px4:"","text-sm":"","glass-effect":""},eYe=ce({__name:"GraphNavbar",setup(t){const r=_$,e=Fh,n=[["node_modules"],["virtual","virtual module"],["lib","library module"]],i=Eu;return(o,a)=>(z(),H("div",JKe,[D(y(as),{modelValue:y(r),"onUpdate:modelValue":a[0]||(a[0]=s=>qe(r)?r.value=s:null),placeholder:"Search modules..."},null,8,["modelValue"]),(z(),H(Ee,null,At(n,s=>w("div",{key:s[0],flex:"~ gap-2 items-center"},[D(y(I2),{modelValue:y(e)[s[0]],"onUpdate:modelValue":l=>y(e)[s[0]]=l},null,8,["modelValue","onUpdate:modelValue"]),w("span",{class:Te({"text-gray-400 dark:text-gray-600":!y(e)[s[0]]})},"Show "+ze(s[1]??s[0]),3)])),64)),a[3]||(a[3]=w("div",{"flex-auto":""},null,-1)),y(i)?(z(),H("button",{key:0,"rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:a[1]||(a[1]=s=>i.value="")},a[2]||(a[2]=[Se(" Clear filter "),w("div",{"i-carbon-close":"",mb2px:""},null,-1)]))):oe("",!0)]))}});/** * vis-data * http://visjs.org/ * * Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data. * * @version 7.1.9 * @date 2023-11-24T17:53:34.179Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */function XI(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var fm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var LX={exports:{}},PC=function(t){return t&&t.Math===Math&&t},vr=PC(typeof globalThis=="object"&&globalThis)||PC(typeof window=="object"&&window)||PC(typeof self=="object"&&self)||PC(typeof fm=="object"&&fm)||function(){return this}()||fm||Function("return this")(),Rt=function(t){try{return!!t()}catch{return!0}},tYe=Rt,qf=!tYe(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),rYe=qf,kX=Function.prototype,Ix=kX.apply,px=kX.call,dg=typeof Reflect=="object"&&Reflect.apply||(rYe?px.bind(Ix):function(){return px.apply(Ix,arguments)}),OX=qf,xX=Function.prototype,H7=xX.call,nYe=OX&&xX.bind.bind(H7,H7),cr=OX?nYe:function(t){return function(){return H7.apply(t,arguments)}},HX=cr,iYe=HX({}.toString),oYe=HX("".slice),Y1=function(t){return oYe(iYe(t),8,-1)},aYe=Y1,sYe=cr,VX=function(t){if(aYe(t)==="Function")return sYe(t)},V7=typeof document=="object"&&document.all,lYe=typeof V7>"u"&&V7!==void 0,PX={all:V7,IS_HTMLDDA:lYe},RX=PX,cYe=RX.all,zr=RX.IS_HTMLDDA?function(t){return typeof t=="function"||t===cYe}:function(t){return typeof t=="function"},Lc={},uYe=Rt,vn=!uYe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),gYe=qf,RC=Function.prototype.call,An=gYe?RC.bind(RC):function(){return RC.apply(RC,arguments)},qI={},DX={}.propertyIsEnumerable,NX=Object.getOwnPropertyDescriptor,hYe=NX&&!DX.call({1:2},1);qI.f=hYe?function(r){var e=NX(this,r);return!!e&&e.enumerable}:DX;var kc=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},dYe=cr,fYe=Rt,CYe=Y1,Cm=Object,vYe=dYe("".split),QI=fYe(function(){return!Cm("z").propertyIsEnumerable(0)})?function(t){return CYe(t)==="String"?vYe(t,""):Cm(t)}:Cm,fg=function(t){return t==null},AYe=fg,IYe=TypeError,T$=function(t){if(AYe(t))throw new IYe("Can't call method on "+t);return t},pYe=QI,mYe=T$,La=function(t){return pYe(mYe(t))},mx=zr,BX=PX,yYe=BX.all,En=BX.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:mx(t)||t===yYe}:function(t){return typeof t=="object"?t!==null:mx(t)},Ar={},vm=Ar,Am=vr,bYe=zr,yx=function(t){return bYe(t)?t:void 0},Jn=function(t,r){return arguments.length<2?yx(vm[t])||yx(Am[t]):vm[t]&&vm[t][r]||Am[t]&&Am[t][r]},wYe=cr,Kr=wYe({}.isPrototypeOf),X1=typeof navigator<"u"&&String(navigator.userAgent)||"",FX=vr,Im=X1,bx=FX.process,wx=FX.Deno,$x=bx&&bx.versions||wx&&wx.version,_x=$x&&$x.v8,yo,CA;_x&&(yo=_x.split("."),CA=yo[0]>0&&yo[0]<4?1:+(yo[0]+yo[1]));!CA&&Im&&(yo=Im.match(/Edge\/(\d+)/),(!yo||yo[1]>=74)&&(yo=Im.match(/Chrome\/(\d+)/),yo&&(CA=+yo[1])));var Cg=CA,Mx=Cg,$Ye=Rt,_Ye=vr,MYe=_Ye.String,vg=!!Object.getOwnPropertySymbols&&!$Ye(function(){var t=Symbol("symbol detection");return!MYe(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Mx&&Mx<41}),zYe=vg,jX=zYe&&!Symbol.sham&&typeof Symbol.iterator=="symbol",EYe=Jn,SYe=zr,TYe=Kr,LYe=jX,kYe=Object,Qf=LYe?function(t){return typeof t=="symbol"}:function(t){var r=EYe("Symbol");return SYe(r)&&TYe(r.prototype,kYe(t))},OYe=String,Ag=function(t){try{return OYe(t)}catch{return"Object"}},xYe=zr,HYe=Ag,VYe=TypeError,bi=function(t){if(xYe(t))return t;throw new VYe(HYe(t)+" is not a function")},PYe=bi,RYe=fg,L$=function(t,r){var e=t[r];return RYe(e)?void 0:PYe(e)},pm=An,mm=zr,ym=En,DYe=TypeError,NYe=function(t,r){var e,n;if(r==="string"&&mm(e=t.toString)&&!ym(n=pm(e,t))||mm(e=t.valueOf)&&!ym(n=pm(e,t))||r!=="string"&&mm(e=t.toString)&&!ym(n=pm(e,t)))return n;throw new DYe("Can't convert object to primitive value")},UX={exports:{}},BYe=!0,zx=vr,FYe=Object.defineProperty,jYe=function(t,r){try{FYe(zx,t,{value:r,configurable:!0,writable:!0})}catch{zx[t]=r}return r},UYe=vr,GYe=jYe,Ex="__core-js_shared__",WYe=UYe[Ex]||GYe(Ex,{}),k$=WYe,Sx=k$;(UX.exports=function(t,r){return Sx[t]||(Sx[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ig=UX.exports,ZYe=T$,KYe=Object,wi=function(t){return KYe(ZYe(t))},YYe=cr,XYe=wi,qYe=YYe({}.hasOwnProperty),Yr=Object.hasOwn||function(r,e){return qYe(XYe(r),e)},QYe=cr,JYe=0,eXe=Math.random(),tXe=QYe(1 .toString),JI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+tXe(++JYe+eXe,36)},rXe=vr,nXe=Ig,Tx=Yr,iXe=JI,oXe=vg,aXe=jX,M2=rXe.Symbol,bm=nXe("wks"),sXe=aXe?M2.for||M2:M2&&M2.withoutSetter||iXe,Ir=function(t){return Tx(bm,t)||(bm[t]=oXe&&Tx(M2,t)?M2[t]:sXe("Symbol."+t)),bm[t]},lXe=An,Lx=En,kx=Qf,cXe=L$,uXe=NYe,gXe=Ir,hXe=TypeError,dXe=gXe("toPrimitive"),fXe=function(t,r){if(!Lx(t)||kx(t))return t;var e=cXe(t,dXe),n;if(e){if(r===void 0&&(r="default"),n=lXe(e,t,r),!Lx(n)||kx(n))return n;throw new hXe("Can't convert object to primitive value")}return r===void 0&&(r="number"),uXe(t,r)},CXe=fXe,vXe=Qf,e4=function(t){var r=CXe(t,"string");return vXe(r)?r:r+""},AXe=vr,Ox=En,P7=AXe.document,IXe=Ox(P7)&&Ox(P7.createElement),O$=function(t){return IXe?P7.createElement(t):{}},pXe=vn,mXe=Rt,yXe=O$,GX=!pXe&&!mXe(function(){return Object.defineProperty(yXe("div"),"a",{get:function(){return 7}}).a!==7}),bXe=vn,wXe=An,$Xe=qI,_Xe=kc,MXe=La,zXe=e4,EXe=Yr,SXe=GX,xx=Object.getOwnPropertyDescriptor;Lc.f=bXe?xx:function(r,e){if(r=MXe(r),e=zXe(e),SXe)try{return xx(r,e)}catch{}if(EXe(r,e))return _Xe(!wXe($Xe.f,r,e),r[e])};var TXe=Rt,LXe=zr,kXe=/#|\.prototype\./,Jf=function(t,r){var e=xXe[OXe(t)];return e===VXe?!0:e===HXe?!1:LXe(r)?TXe(r):!!r},OXe=Jf.normalize=function(t){return String(t).replace(kXe,".").toLowerCase()},xXe=Jf.data={},HXe=Jf.NATIVE="N",VXe=Jf.POLYFILL="P",WX=Jf,Hx=VX,PXe=bi,RXe=qf,DXe=Hx(Hx.bind),q1=function(t,r){return PXe(t),r===void 0?t:RXe?DXe(t,r):function(){return t.apply(r,arguments)}},$i={},NXe=vn,BXe=Rt,ZX=NXe&&BXe(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),FXe=En,jXe=String,UXe=TypeError,Fi=function(t){if(FXe(t))return t;throw new UXe(jXe(t)+" is not an object")},GXe=vn,WXe=GX,ZXe=ZX,DC=Fi,Vx=e4,KXe=TypeError,wm=Object.defineProperty,YXe=Object.getOwnPropertyDescriptor,$m="enumerable",_m="configurable",Mm="writable";$i.f=GXe?ZXe?function(r,e,n){if(DC(r),e=Vx(e),DC(n),typeof r=="function"&&e==="prototype"&&"value"in n&&Mm in n&&!n[Mm]){var i=YXe(r,e);i&&i[Mm]&&(r[e]=n.value,n={configurable:_m in n?n[_m]:i[_m],enumerable:$m in n?n[$m]:i[$m],writable:!1})}return wm(r,e,n)}:wm:function(r,e,n){if(DC(r),e=Vx(e),DC(n),WXe)try{return wm(r,e,n)}catch{}if("get"in n||"set"in n)throw new KXe("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var XXe=vn,qXe=$i,QXe=kc,_s=XXe?function(t,r,e){return qXe.f(t,r,QXe(1,e))}:function(t,r,e){return t[r]=e,t},NC=vr,JXe=dg,eqe=VX,tqe=zr,rqe=Lc.f,nqe=WX,e2=Ar,iqe=q1,t2=_s,Px=Yr,oqe=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return JXe(t,this,arguments)};return r.prototype=t.prototype,r},Ke=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?NC:i?NC[e]:(NC[e]||{}).prototype,s=n?e2:e2[e]||t2(e2,e,{})[e],l=s.prototype,c,u,g,h,d,f,C,v,A;for(h in r)c=nqe(n?h:e+(i?".":"#")+h,t.forced),u=!c&&a&&Px(a,h),f=s[h],u&&(t.dontCallGetSet?(A=rqe(a,h),C=A&&A.value):C=a[h]),d=u&&C?C:r[h],!(u&&typeof f==typeof d)&&(t.bind&&u?v=iqe(d,NC):t.wrap&&u?v=oqe(d):o&&tqe(d)?v=eqe(d):v=d,(t.sham||d&&d.sham||f&&f.sham)&&t2(v,"sham",!0),t2(s,h,v),o&&(g=e+"Prototype",Px(e2,g)||t2(e2,g,{}),t2(e2[g],h,d),t.real&&l&&(c||!l[h])&&t2(l,h,d)))},aqe=Ke,sqe=vn,Rx=$i.f;aqe({target:"Object",stat:!0,forced:Object.defineProperty!==Rx,sham:!sqe},{defineProperty:Rx});var lqe=Ar,KX=lqe.Object,cqe=LX.exports=function(r,e,n){return KX.defineProperty(r,e,n)};KX.defineProperty.sham&&(cqe.sham=!0);var uqe=LX.exports,gqe=uqe,YX=gqe,hqe=YX,dqe=hqe,fqe=dqe,Cqe=fqe,XX=Cqe,t4=rt(XX),vqe=Y1,Q1=Array.isArray||function(r){return vqe(r)==="Array"},Aqe=Math.ceil,Iqe=Math.floor,pqe=Math.trunc||function(r){var e=+r;return(e>0?Iqe:Aqe)(e)},mqe=pqe,r4=function(t){var r=+t;return r!==r||r===0?0:mqe(r)},yqe=r4,bqe=Math.min,wqe=function(t){return t>0?bqe(yqe(t),9007199254740991):0},$qe=wqe,ji=function(t){return $qe(t.length)},_qe=TypeError,Mqe=9007199254740991,n4=function(t){if(t>Mqe)throw _qe("Maximum allowed index exceeded");return t},zqe=e4,Eqe=$i,Sqe=kc,pg=function(t,r,e){var n=zqe(r);n in t?Eqe.f(t,n,Sqe(0,e)):t[n]=e},Tqe=Ir,Lqe=Tqe("toStringTag"),qX={};qX[Lqe]="z";var x$=String(qX)==="[object z]",kqe=x$,Oqe=zr,q5=Y1,xqe=Ir,Hqe=xqe("toStringTag"),Vqe=Object,Pqe=q5(function(){return arguments}())==="Arguments",Rqe=function(t,r){try{return t[r]}catch{}},Ms=kqe?q5:function(t){var r,e,n;return t===void 0?"Undefined":t===null?"Null":typeof(e=Rqe(r=Vqe(t),Hqe))=="string"?e:Pqe?q5(r):(n=q5(r))==="Object"&&Oqe(r.callee)?"Arguments":n},Dqe=cr,Nqe=zr,R7=k$,Bqe=Dqe(Function.toString);Nqe(R7.inspectSource)||(R7.inspectSource=function(t){return Bqe(t)});var QX=R7.inspectSource,Fqe=cr,jqe=Rt,JX=zr,Uqe=Ms,Gqe=Jn,Wqe=QX,eq=function(){},Zqe=[],tq=Gqe("Reflect","construct"),H$=/^\s*(?:class|function)\b/,Kqe=Fqe(H$.exec),Yqe=!H$.test(eq),rh=function(r){if(!JX(r))return!1;try{return tq(eq,Zqe,r),!0}catch{return!1}},rq=function(r){if(!JX(r))return!1;switch(Uqe(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Yqe||!!Kqe(H$,Wqe(r))}catch{return!0}};rq.sham=!0;var i4=!tq||jqe(function(){var t;return rh(rh.call)||!rh(Object)||!rh(function(){t=!0})||t})?rq:rh,Dx=Q1,Xqe=i4,qqe=En,Qqe=Ir,Jqe=Qqe("species"),Nx=Array,eQe=function(t){var r;return Dx(t)&&(r=t.constructor,Xqe(r)&&(r===Nx||Dx(r.prototype))?r=void 0:qqe(r)&&(r=r[Jqe],r===null&&(r=void 0))),r===void 0?Nx:r},tQe=eQe,o4=function(t,r){return new(tQe(t))(r===0?0:r)},rQe=Rt,nQe=Ir,iQe=Cg,oQe=nQe("species"),e0=function(t){return iQe>=51||!rQe(function(){var r=[],e=r.constructor={};return e[oQe]=function(){return{foo:1}},r[t](Boolean).foo!==1})},aQe=Ke,sQe=Rt,lQe=Q1,cQe=En,uQe=wi,gQe=ji,Bx=n4,Fx=pg,hQe=o4,dQe=e0,fQe=Ir,CQe=Cg,nq=fQe("isConcatSpreadable"),vQe=CQe>=51||!sQe(function(){var t=[];return t[nq]=!1,t.concat()[0]!==t}),AQe=function(t){if(!cQe(t))return!1;var r=t[nq];return r!==void 0?!!r:lQe(t)},IQe=!vQe||!dQe("concat");aQe({target:"Array",proto:!0,arity:1,forced:IQe},{concat:function(r){var e=uQe(this),n=hQe(e,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;oa;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},zQe={includes:jx(!0),indexOf:jx(!1)},t0={},EQe=cr,zm=Yr,SQe=La,TQe=zQe.indexOf,LQe=t0,Ux=EQe([].push),iq=function(t,r){var e=SQe(t),n=0,i=[],o;for(o in e)!zm(LQe,o)&&zm(e,o)&&Ux(i,o);for(;r.length>n;)zm(e,o=r[n++])&&(~TQe(i,o)||Ux(i,o));return i},V$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kQe=iq,OQe=V$,l4=Object.keys||function(r){return kQe(r,OQe)},xQe=vn,HQe=ZX,VQe=$i,PQe=Fi,RQe=La,DQe=l4;a4.f=xQe&&!HQe?Object.defineProperties:function(r,e){PQe(r);for(var n=RQe(e),i=DQe(e),o=i.length,a=0,s;o>a;)VQe.f(r,s=i[a++],n[s]);return r};var NQe=Jn,oq=NQe("document","documentElement"),BQe=Ig,FQe=JI,Gx=BQe("keys"),c4=function(t){return Gx[t]||(Gx[t]=FQe(t))},jQe=Fi,UQe=a4,Wx=V$,GQe=t0,WQe=oq,ZQe=O$,KQe=c4,Zx=">",Kx="<",D7="prototype",N7="script",aq=KQe("IE_PROTO"),Em=function(){},sq=function(t){return Kx+N7+Zx+t+Kx+"/"+N7+Zx},Yx=function(t){t.write(sq("")),t.close();var r=t.parentWindow.Object;return t=null,r},YQe=function(){var t=ZQe("iframe"),r="java"+N7+":",e;return t.style.display="none",WQe.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(sq("document.F=Object")),e.close(),e.F},BC,Q5=function(){try{BC=new ActiveXObject("htmlfile")}catch{}Q5=typeof document<"u"?document.domain&&BC?Yx(BC):YQe():Yx(BC);for(var t=Wx.length;t--;)delete Q5[D7][Wx[t]];return Q5()};GQe[aq]=!0;var xc=Object.create||function(r,e){var n;return r!==null?(Em[D7]=jQe(r),n=new Em,Em[D7]=null,n[aq]=r):n=Q5(),e===void 0?n:UQe.f(n,e)},r0={},XQe=iq,qQe=V$,QQe=qQe.concat("length","prototype");r0.f=Object.getOwnPropertyNames||function(r){return XQe(r,QQe)};var P$={},Xx=s4,JQe=ji,eJe=pg,tJe=Array,rJe=Math.max,lq=function(t,r,e){for(var n=JQe(t),i=Xx(r,n),o=Xx(e===void 0?n:e,n),a=tJe(rJe(o-i,0)),s=0;iv;v++)if((s||v in d)&&(p=d[v],m=f(p,v,h),t))if(r)I[v]=m;else if(m)switch(t){case 3:return!0;case 5:return p;case 6:return v;case 2:tH(I,p)}else switch(t){case 4:return!1;case 7:tH(I,p)}return o?-1:n||i?i:I}},bg={forEach:ks(0),map:ks(1),filter:ks(2),some:ks(3),every:ks(4),find:ks(5),findIndex:ks(6),filterReject:ks(7)},u4=Ke,o0=vr,D$=An,jJe=cr,Su=vn,Tu=vg,UJe=Rt,sn=Yr,GJe=Kr,F7=Fi,g4=La,N$=e4,WJe=Oc,j7=kc,Bd=xc,dq=l4,ZJe=r0,fq=P$,KJe=n0,Cq=Lc,vq=$i,YJe=a4,Aq=qI,rH=mg,XJe=R$,B$=Ig,qJe=c4,Iq=t0,nH=JI,QJe=Ir,JJe=i0,eet=Er,tet=gq,ret=Hc,pq=yg,h4=bg.forEach,li=qJe("hidden"),d4="Symbol",Fd="prototype",net=pq.set,iH=pq.getterFor(d4),Eo=Object[Fd],Rl=o0.Symbol,Ch=Rl&&Rl[Fd],iet=o0.RangeError,oet=o0.TypeError,Lm=o0.QObject,mq=Cq.f,Dl=vq.f,yq=fq.f,aet=Aq.f,bq=jJe([].push),gs=B$("symbols"),a0=B$("op-symbols"),set=B$("wks"),U7=!Lm||!Lm[Fd]||!Lm[Fd].findChild,wq=function(t,r,e){var n=mq(Eo,r);n&&delete Eo[r],Dl(t,r,e),n&&t!==Eo&&Dl(Eo,r,n)},G7=Su&&UJe(function(){return Bd(Dl({},"a",{get:function(){return Dl(this,"a",{value:7}).a}})).a!==7})?wq:Dl,km=function(t,r){var e=gs[t]=Bd(Ch);return net(e,{type:d4,tag:t,description:r}),Su||(e.description=r),e},f4=function(r,e,n){r===Eo&&f4(a0,e,n),F7(r);var i=N$(e);return F7(n),sn(gs,i)?(n.enumerable?(sn(r,li)&&r[li][i]&&(r[li][i]=!1),n=Bd(n,{enumerable:j7(0,!1)})):(sn(r,li)||Dl(r,li,j7(1,{})),r[li][i]=!0),G7(r,i,n)):Dl(r,i,n)},F$=function(r,e){F7(r);var n=g4(e),i=dq(n).concat(zq(n));return h4(i,function(o){(!Su||D$($q,n,o))&&f4(r,o,n[o])}),r},cet=function(r,e){return e===void 0?Bd(r):F$(Bd(r),e)},$q=function(r){var e=N$(r),n=D$(aet,this,e);return this===Eo&&sn(gs,e)&&!sn(a0,e)?!1:n||!sn(this,e)||!sn(gs,e)||sn(this,li)&&this[li][e]?n:!0},_q=function(r,e){var n=g4(r),i=N$(e);if(!(n===Eo&&sn(gs,i)&&!sn(a0,i))){var o=mq(n,i);return o&&sn(gs,i)&&!(sn(n,li)&&n[li][i])&&(o.enumerable=!0),o}},Mq=function(r){var e=yq(g4(r)),n=[];return h4(e,function(i){!sn(gs,i)&&!sn(Iq,i)&&bq(n,i)}),n},zq=function(t){var r=t===Eo,e=yq(r?a0:g4(t)),n=[];return h4(e,function(i){sn(gs,i)&&(!r||sn(Eo,i))&&bq(n,gs[i])}),n};Tu||(Rl=function(){if(GJe(Ch,this))throw new oet("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:WJe(arguments[0]),e=nH(r),n=function(i){var o=this===void 0?o0:this;o===Eo&&D$(n,a0,i),sn(o,li)&&sn(o[li],e)&&(o[li][e]=!1);var a=j7(1,i);try{G7(o,e,a)}catch(s){if(!(s instanceof iet))throw s;wq(o,e,a)}};return Su&&U7&&G7(Eo,e,{configurable:!0,set:n}),km(e,r)},Ch=Rl[Fd],rH(Ch,"toString",function(){return iH(this).tag}),rH(Rl,"withoutSetter",function(t){return km(nH(t),t)}),Aq.f=$q,vq.f=f4,YJe.f=F$,Cq.f=_q,ZJe.f=fq.f=Mq,KJe.f=zq,JJe.f=function(t){return km(QJe(t),t)},Su&&XJe(Ch,"description",{configurable:!0,get:function(){return iH(this).description}}));u4({global:!0,constructor:!0,wrap:!0,forced:!Tu,sham:!Tu},{Symbol:Rl});h4(dq(set),function(t){eet(t)});u4({target:d4,stat:!0,forced:!Tu},{useSetter:function(){U7=!0},useSimple:function(){U7=!1}});u4({target:"Object",stat:!0,forced:!Tu,sham:!Su},{create:cet,defineProperty:f4,defineProperties:F$,getOwnPropertyDescriptor:_q});u4({target:"Object",stat:!0,forced:!Tu},{getOwnPropertyNames:Mq});tet();ret(Rl,d4);Iq[li]=!0;var uet=vg,Eq=uet&&!!Symbol.for&&!!Symbol.keyFor,get=Ke,het=Jn,det=Yr,fet=Oc,Sq=Ig,Cet=Eq,Om=Sq("string-to-symbol-registry"),vet=Sq("symbol-to-string-registry");get({target:"Symbol",stat:!0,forced:!Cet},{for:function(t){var r=fet(t);if(det(Om,r))return Om[r];var e=het("Symbol")(r);return Om[r]=e,vet[e]=r,e}});var Aet=Ke,Iet=Yr,pet=Qf,met=Ag,yet=Ig,bet=Eq,oH=yet("symbol-to-string-registry");Aet({target:"Symbol",stat:!0,forced:!bet},{keyFor:function(r){if(!pet(r))throw new TypeError(met(r)+" is not a symbol");if(Iet(oH,r))return oH[r]}});var wet=cr,s0=wet([].slice),$et=cr,aH=Q1,_et=zr,sH=Y1,Met=Oc,lH=$et([].push),zet=function(t){if(_et(t))return t;if(aH(t)){for(var r=t.length,e=[],n=0;n=r.length)return t.target=void 0,GC(void 0,!0);switch(t.kind){case"keys":return GC(e,!1);case"values":return GC(r[e],!1)}return GC([e,r[e]],!1)},"values");bH.Arguments=bH.Array;var srt={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lrt=srt,crt=vr,urt=Ms,grt=_s,wH=wg,hrt=Ir,$H=hrt("toStringTag");for(var Pm in lrt){var _H=crt[Pm],Rm=_H&&_H.prototype;Rm&&urt(Rm)!==$H&&grt(Rm,$H,Pm),wH[Pm]=wH.Array}var drt=utt,Fq=drt,frt=Ir,Crt=$i.f,MH=frt("metadata"),zH=Function.prototype;zH[MH]===void 0&&Crt(zH,MH,{value:null});var vrt=Er;vrt("asyncDispose");var Art=Er;Art("dispose");var Irt=Er;Irt("metadata");var prt=Fq,mrt=prt,yrt=Jn,brt=cr,W$=yrt("Symbol"),wrt=W$.keyFor,$rt=brt(W$.prototype.valueOf),jq=W$.isRegisteredSymbol||function(r){try{return wrt($rt(r))!==void 0}catch{return!1}},_rt=Ke,Mrt=jq;_rt({target:"Symbol",stat:!0},{isRegisteredSymbol:Mrt});var zrt=Ig,Uq=Jn,Ert=cr,Srt=Qf,Trt=Ir,IA=Uq("Symbol"),EH=IA.isWellKnownSymbol,Gq=Uq("Object","getOwnPropertyNames"),Lrt=Ert(IA.prototype.valueOf),SH=zrt("wks");for(var Dm=0,TH=Gq(IA),krt=TH.length;Dm=o?t?"":void 0:(a=kH(n,i),a<55296||a>56319||i+1===o||(s=kH(n,i+1))<56320||s>57343?t?Yrt(n,i):a:t?Xrt(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},qrt={codeAt:OH(!1),charAt:OH(!0)},Qrt=qrt.charAt,Jrt=Oc,Zq=yg,ent=U$,xH=G$,Kq="String Iterator",tnt=Zq.set,rnt=Zq.getterFor(Kq);ent(String,"String",function(t){tnt(this,{type:Kq,string:Jrt(t),index:0})},function(){var r=rnt(this),e=r.string,n=r.index,i;return n>=e.length?xH(void 0,!0):(i=Qrt(e,n),r.index+=i.length,xH(i,!1))});var nnt=i0,int=nnt.f("iterator"),ont=int,Yq=ont,ant=Yq,snt=ant,lnt=snt,cnt=lnt,Xq=cnt,unt=rt(Xq);function Lu(t){"@babel/helpers - typeof";return Lu=typeof z2=="function"&&typeof unt=="symbol"?function(r){return typeof r}:function(r){return r&&typeof z2=="function"&&r.constructor===z2&&r!==z2.prototype?"symbol":typeof r},Lu(t)}var gnt=i0,hnt=gnt.f("toPrimitive"),dnt=hnt,fnt=dnt,Cnt=fnt,vnt=Cnt,Ant=vnt,Int=Ant,pnt=Int,mnt=rt(pnt);function ynt(t,r){if(Lu(t)!=="object"||t===null)return t;var e=t[mnt];if(e!==void 0){var n=e.call(t,r||"default");if(Lu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function qq(t){var r=ynt(t,"string");return Lu(r)==="symbol"?r:String(r)}function HH(t,r){for(var e=0;e=0:s>l;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},Unt={left:RH(!1),right:RH(!0)},Gnt=Rt,A4=function(t,r){var e=[][t];return!!e&&Gnt(function(){e.call(null,r||function(){return 1},1)})},Wnt=vr,Znt=Y1,c0=Znt(Wnt.process)==="process",Knt=Ke,Ynt=Unt.left,Xnt=A4,DH=Cg,qnt=c0,Qnt=!qnt&&DH>79&&DH<83,Jnt=Qnt||!Xnt("reduce");Knt({target:"Array",proto:!0,forced:Jnt},{reduce:function(r){var e=arguments.length;return Ynt(this,r,e,e>1?arguments[1]:void 0)}});var eit=xn,tit=eit("Array","reduce"),rit=Kr,nit=tit,Fm=Array.prototype,iit=function(t){var r=t.reduce;return t===Fm||rit(Fm,t)&&r===Fm.reduce?nit:r},oit=iit,ait=oit,sit=ait,lit=rt(sit),cit=Ke,uit=bg.filter,git=e0,hit=git("filter");cit({target:"Array",proto:!0,forced:!hit},{filter:function(r){return uit(this,r,arguments.length>1?arguments[1]:void 0)}});var dit=xn,fit=dit("Array","filter"),Cit=Kr,vit=fit,jm=Array.prototype,Ait=function(t){var r=t.filter;return t===jm||Cit(jm,t)&&r===jm.filter?vit:r},Iit=Ait,pit=Iit,mit=pit,E2=rt(mit),yit=Ke,bit=bg.map,wit=e0,$it=wit("map");yit({target:"Array",proto:!0,forced:!$it},{map:function(r){return bit(this,r,arguments.length>1?arguments[1]:void 0)}});var _it=xn,Mit=_it("Array","map"),zit=Kr,Eit=Mit,Um=Array.prototype,Sit=function(t){var r=t.map;return t===Um||zit(Um,t)&&r===Um.map?Eit:r},Tit=Sit,Lit=Tit,kit=Lit,bo=rt(kit),Oit=Q1,xit=ji,Hit=n4,Vit=q1,nQ=function(t,r,e,n,i,o,a,s){for(var l=i,c=0,u=a?Vit(a,s):!1,g,h;c0&&Oit(g)?(h=xit(g),l=nQ(t,r,g,h,l,o-1)-1):(Hit(l+1),t[l]=g),l++),c++;return l},Pit=nQ,Rit=Ke,Dit=Pit,Nit=bi,Bit=wi,Fit=ji,jit=o4;Rit({target:"Array",proto:!0},{flatMap:function(r){var e=Bit(this),n=Fit(e),i;return Nit(r),i=jit(e,0),i.length=Dit(i,e,e,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}});var Uit=xn;Uit("Array","flatMap");var Git=An,NH=Fi,Wit=L$,iQ=function(t,r,e){var n,i;NH(t);try{if(n=Wit(t,"return"),!n){if(r==="throw")throw e;return e}n=Git(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return NH(n),e},Zit=Fi,Kit=iQ,Yit=function(t,r,e,n){try{return n?r(Zit(e)[0],e[1]):r(e)}catch(i){Kit(t,"throw",i)}},Xit=Ir,qit=wg,Qit=Xit("iterator"),Jit=Array.prototype,oQ=function(t){return t!==void 0&&(qit.Array===t||Jit[Qit]===t)},eot=Ms,BH=L$,tot=fg,rot=wg,not=Ir,iot=not("iterator"),I4=function(t){if(!tot(t))return BH(t,iot)||BH(t,"@@iterator")||rot[eot(t)]},oot=An,aot=bi,sot=Fi,lot=Ag,cot=I4,uot=TypeError,Y$=function(t,r){var e=arguments.length<2?cot(t):r;if(aot(e))return sot(oot(e,t));throw new uot(lot(t)+" is not iterable")},got=q1,hot=An,dot=wi,fot=Yit,Cot=oQ,vot=i4,Aot=ji,FH=pg,Iot=Y$,pot=I4,jH=Array,mot=function(r){var e=dot(r),n=vot(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=got(o,i>2?arguments[2]:void 0));var s=pot(e),l=0,c,u,g,h,d,f;if(s&&!(this===jH&&Cot(s)))for(h=Iot(e,s),d=h.next,u=n?new this:[];!(g=hot(d,h)).done;l++)f=a?fot(h,o,[g.value,l],!0):g.value,FH(u,l,f);else for(c=Aot(e),u=n?new this(c):jH(c);c>l;l++)f=a?o(e[l],l):e[l],FH(u,l,f);return u.length=l,u},yot=Ir,aQ=yot("iterator"),sQ=!1;try{var bot=0,UH={next:function(){return{done:!!bot++}},return:function(){sQ=!0}};UH[aQ]=function(){return this},Array.from(UH,function(){throw 2})}catch{}var lQ=function(t,r){try{if(!r&&!sQ)return!1}catch{return!1}var e=!1;try{var n={};n[aQ]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},wot=Ke,$ot=mot,_ot=lQ,Mot=!_ot(function(t){Array.from(t)});wot({target:"Array",stat:!0,forced:Mot},{from:$ot});var zot=Ar,Eot=zot.Array.from,Sot=Eot,cQ=Sot,Tot=cQ,X$=rt(Tot),Lot=I4,kot=Lot,Oot=kot,xot=Oot,Hot=xot,Vot=Hot,Pot=Vot,Rot=Pot,uQ=Rot,gQ=rt(uQ),Dot=uQ,q$=rt(Dot),Not=Ke,Bot=Q1;Not({target:"Array",stat:!0},{isArray:Bot});var Fot=Ar,jot=Fot.Array.isArray,Uot=jot,hQ=Uot,Got=hQ,Wot=Got,Zot=Wot,Kot=Zot,Yot=Kot,dQ=rt(Yot);function Xot(t){if(dQ(t))return t}var qot=vn,Qot=Q1,Jot=TypeError,eat=Object.getOwnPropertyDescriptor,tat=qot&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),fQ=tat?function(t,r){if(Qot(t)&&!eat(t,"length").writable)throw new Jot("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r},rat=Ke,nat=wi,iat=ji,oat=fQ,aat=n4,sat=Rt,lat=sat(function(){return[].push.call({length:4294967296},1)!==4294967297}),cat=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},uat=lat||!cat();rat({target:"Array",proto:!0,arity:1,forced:uat},{push:function(r){var e=nat(this),n=iat(e),i=arguments.length;aat(n+i);for(var o=0;ot.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?arguments[1]:void 0)},Nst=Ke,ZH=Dst;Nst({target:"Array",proto:!0,forced:[].forEach!==ZH},{forEach:ZH});var Bst=xn,Fst=Bst("Array","forEach"),jst=Fst,Ust=jst,Gst=Ms,Wst=Yr,Zst=Kr,Kst=Ust,Ym=Array.prototype,Yst={DOMTokenList:!0,NodeList:!0},yQ=function(t){var r=t.forEach;return t===Ym||Zst(Ym,t)&&r===Ym.forEach||Wst(Yst,Gst(t))?Kst:r},Xst=yQ,oc=rt(Xst),qst=Ke,Qst=cr,Jst=Q1,e1t=Qst([].reverse),KH=[1,2];qst({target:"Array",proto:!0,forced:String(KH)===String(KH.reverse())},{reverse:function(){return Jst(this)&&(this.length=this.length),e1t(this)}});var t1t=xn,r1t=t1t("Array","reverse"),n1t=Kr,i1t=r1t,Xm=Array.prototype,o1t=function(t){var r=t.reverse;return t===Xm||n1t(Xm,t)&&r===Xm.reverse?i1t:r},a1t=o1t,bQ=a1t,s1t=bQ,l1t=rt(s1t),YH=Ag,c1t=TypeError,wQ=function(t,r){if(!delete t[r])throw new c1t("Cannot delete property "+YH(r)+" of "+YH(t))},u1t=Ke,g1t=wi,h1t=s4,d1t=r4,f1t=ji,C1t=fQ,v1t=n4,A1t=o4,I1t=pg,qm=wQ,p1t=e0,m1t=p1t("splice"),y1t=Math.max,b1t=Math.min;u1t({target:"Array",proto:!0,forced:!m1t},{splice:function(r,e){var n=g1t(this),i=f1t(n),o=h1t(r,i),a=arguments.length,s,l,c,u,g,h;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=b1t(y1t(d1t(e),0),i-o)),v1t(i+s-l),c=A1t(n,l),u=0;ui-l+s;u--)qm(n,u-1)}else if(s>l)for(u=i-l;u>o;u--)g=u+l-1,h=u+s-1,g in n?n[h]=n[g]:qm(n,h);for(u=0;uo;)for(var l=P1t(arguments[o++]),c=a?R1t(Jm(l),a(l)):Jm(l),u=c.length,g=0,h;u>g;)h=c[g++],(!XH||k1t(s,l,h))&&(n[h]=l[h]);return n}:n2,N1t=Ke,QH=D1t;N1t({target:"Object",stat:!0,arity:2,forced:Object.assign!==QH},{assign:QH});var B1t=Ar,F1t=B1t.Object.assign,j1t=F1t,U1t=j1t,G1t=U1t,W1t=rt(G1t),Z1t=Ke,K1t=Rt,Y1t=wi,_Q=C4,X1t=Vq,q1t=K1t(function(){_Q(1)});Z1t({target:"Object",stat:!0,forced:q1t,sham:!X1t},{getPrototypeOf:function(r){return _Q(Y1t(r))}});var Q1t=Ar,J1t=Q1t.Object.getPrototypeOf,elt=J1t,tlt=elt,rlt=Ke,nlt=vn,ilt=xc;rlt({target:"Object",stat:!0,sham:!nlt},{create:ilt});var olt=Ar,alt=olt.Object,slt=function(r,e){return alt.create(r,e)},llt=slt,MQ=llt,clt=MQ,ult=rt(clt),X7=Ar,glt=dg;X7.JSON||(X7.JSON={stringify:JSON.stringify});var hlt=function(r,e,n){return glt(X7.JSON.stringify,null,arguments)},dlt=hlt,flt=dlt,Clt=flt,vlt=rt(Clt),Alt=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",Ilt=TypeError,zQ=function(t,r){if(te,a=mlt(n)?n:_lt(n),s=o?wlt(arguments,e):[],l=o?function(){plt(a,this,s)}:a;return r?t(l,i):t(l)}:t},zlt=Ke,TQ=vr,Elt=SQ,JH=Elt(TQ.setInterval,!0);zlt({global:!0,bind:!0,forced:TQ.setInterval!==JH},{setInterval:JH});var Slt=Ke,LQ=vr,Tlt=SQ,eV=Tlt(LQ.setTimeout,!0);Slt({global:!0,bind:!0,forced:LQ.setTimeout!==eV},{setTimeout:eV});var Llt=Ar,klt=Llt.setTimeout,Olt=klt,xlt=rt(Olt),kQ={exports:{}};(function(t){function r(n){if(n)return e(n);this._callbacks=new Map}function e(n){return Object.assign(n,r.prototype),n._callbacks=new Map,n}r.prototype.on=function(n,i){const o=this._callbacks.get(n)??[];return o.push(i),this._callbacks.set(n,o),this},r.prototype.once=function(n,i){const o=(...a)=>{this.off(n,o),i.apply(this,a)};return o.fn=i,this.on(n,o),this},r.prototype.off=function(n,i){if(n===void 0&&i===void 0)return this._callbacks.clear(),this;if(i===void 0)return this._callbacks.delete(n),this;const o=this._callbacks.get(n);if(o){for(const[a,s]of o.entries())if(s===i||s.fn===i){o.splice(a,1);break}o.length===0?this._callbacks.delete(n):this._callbacks.set(n,o)}return this},r.prototype.emit=function(n,...i){const o=this._callbacks.get(n);if(o){const a=[...o];for(const s of a)s.apply(this,i)}return this},r.prototype.listeners=function(n){return this._callbacks.get(n)??[]},r.prototype.listenerCount=function(n){if(n)return this.listeners(n).length;let i=0;for(const o of this._callbacks.values())i+=o.length;return i},r.prototype.hasListeners=function(n){return this.listenerCount(n)>0},r.prototype.addEventListener=r.prototype.on,r.prototype.removeListener=r.prototype.off,r.prototype.removeEventListener=r.prototype.off,r.prototype.removeAllListeners=r.prototype.off,t.exports=r})(kQ);var Hlt=kQ.exports,Vlt=rt(Hlt);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs * Licensed under the MIT license */function Bo(){return Bo=Object.assign||function(t){for(var r=1;r"u"?{style:{}}:document.createElement("div"),Rlt="function",S2=Math.round,sc=Math.abs,e_=Date.now;function b4(t,r){for(var e,n,i=r[0].toUpperCase()+r.slice(1),o=0;o"u"?Qa={}:Qa=window;var OQ=b4(Plt.style,"touchAction"),xQ=OQ!==void 0;function Dlt(){if(!xQ)return!1;var t={},r=Qa.CSS&&Qa.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return t[e]=r?Qa.CSS.supports("touch-action",e):!0}),t}var HQ="compute",VQ="auto",Q7="manipulation",Nl="none",jd="pan-x",Ud="pan-y",ZC=Dlt(),Nlt=/mobile|tablet|ip(ad|hone|od)|android/i,PQ="ontouchstart"in Qa,Blt=b4(Qa,"PointerEvent")!==void 0,Flt=PQ&&Nlt.test(navigator.userAgent),u0="touch",jlt="pen",t_="mouse",Ult="kinect",Glt=25,Kn=1,Vc=2,Gr=4,vi=8,pA=1,g0=2,h0=4,d0=8,ku=16,Aa=g0|h0,Bl=d0|ku,RQ=Aa|Bl,DQ=["x","y"],mA=["clientX","clientY"];function Ja(t,r,e){var n;if(t)if(t.forEach)t.forEach(r,e);else if(t.length!==void 0)for(n=0;n-1}function Wlt(t){if(zl(t,Nl))return Nl;var r=zl(t,jd),e=zl(t,Ud);return r&&e?Nl:r||e?r?jd:Ud:zl(t,Q7)?Q7:VQ}var NQ=function(){function t(e,n){this.manager=e,this.set(n)}var r=t.prototype;return r.set=function(n){n===HQ&&(n=this.compute()),xQ&&this.manager.element.style&&ZC[n]&&(this.manager.element.style[OQ]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return Ja(this.manager.recognizers,function(i){w4(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),Wlt(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=zl(a,Nl)&&!ZC[Nl],l=zl(a,Ud)&&!ZC[Ud],c=zl(a,jd)&&!ZC[jd];if(s){var u=n.pointers.length===1,g=n.distance<2,h=n.deltaTime<250;if(u&&g&&h)return}if(!(c&&l)&&(s||l&&o&Aa||c&&o&Bl))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function r_(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}function BQ(t){var r=t.length;if(r===1)return{x:S2(t[0].clientX),y:S2(t[0].clientY)};for(var e=0,n=0,i=0;i=sc(r)?t<0?g0:h0:r<0?d0:ku}function Zlt(t,r){var e=r.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(r.eventType===Kn||o.eventType===Gr)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:e.x,y:e.y}),r.deltaX=i.x+(e.x-n.x),r.deltaY=i.y+(e.y-n.y)}function jQ(t,r,e){return{x:r/t||0,y:e/t||0}}function Klt(t,r){return yA(r[0],r[1],mA)/yA(t[0],t[1],mA)}function Ylt(t,r){return J7(r[1],r[0],mA)+J7(t[1],t[0],mA)}function Xlt(t,r){var e=t.lastInterval||r,n=r.timeStamp-e.timeStamp,i,o,a,s;if(r.eventType!==vi&&(n>Glt||e.velocity===void 0)){var l=r.deltaX-e.deltaX,c=r.deltaY-e.deltaY,u=jQ(n,l,c);o=u.x,a=u.y,i=sc(u.x)>sc(u.y)?u.x:u.y,s=FQ(l,c),t.lastInterval=r}else i=e.velocity,o=e.velocityX,a=e.velocityY,s=e.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function qlt(t,r){var e=t.session,n=r.pointers,i=n.length;e.firstInput||(e.firstInput=rV(r)),i>1&&!e.firstMultiple?e.firstMultiple=rV(r):i===1&&(e.firstMultiple=!1);var o=e.firstInput,a=e.firstMultiple,s=a?a.center:o.center,l=r.center=BQ(n);r.timeStamp=e_(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=J7(s,l),r.distance=yA(s,l),Zlt(e,r),r.offsetDirection=FQ(r.deltaX,r.deltaY);var c=jQ(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=c.x,r.overallVelocityY=c.y,r.overallVelocity=sc(c.x)>sc(c.y)?c.x:c.y,r.scale=a?Klt(a.pointers,n):1,r.rotation=a?Ylt(a.pointers,n):0,r.maxPointers=e.prevInput?r.pointers.length>e.prevInput.maxPointers?r.pointers.length:e.prevInput.maxPointers:r.pointers.length,Xlt(e,r);var u=t.element,g=r.srcEvent,h;g.composedPath?h=g.composedPath()[0]:g.path?h=g.path[0]:h=g.target,r_(h,u)&&(u=h),r.target=u}function Qlt(t,r,e){var n=e.pointers.length,i=e.changedPointers.length,o=r&Kn&&n-i===0,a=r&(Gr|vi)&&n-i===0;e.isFirst=!!o,e.isFinal=!!a,o&&(t.session={}),e.eventType=r,qlt(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function Gd(t){return t.trim().split(/\s+/g)}function jh(t,r,e){Ja(Gd(r),function(n){t.addEventListener(n,e,!1)})}function Uh(t,r,e){Ja(Gd(r),function(n){t.removeEventListener(n,e,!1)})}function nV(t){var r=t.ownerDocument||t;return r.defaultView||r.parentWindow||window}var $g=function(){function t(e,n){var i=this;this.manager=e,this.callback=n,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(o){w4(e.options.enable,[e])&&i.handler(o)},this.init()}var r=t.prototype;return r.handler=function(){},r.init=function(){this.evEl&&jh(this.element,this.evEl,this.domHandler),this.evTarget&&jh(this.target,this.evTarget,this.domHandler),this.evWin&&jh(nV(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Uh(this.element,this.evEl,this.domHandler),this.evTarget&&Uh(this.target,this.evTarget,this.domHandler),this.evWin&&Uh(nV(this.element),this.evWin,this.domHandler)},t}();function lc(t,r,e){if(t.indexOf&&!e)return t.indexOf(r);for(var n=0;nl[r]}):n=n.sort()),n}var tct={touchstart:Kn,touchmove:Vc,touchend:Gr,touchcancel:vi},rct="touchstart touchmove touchend touchcancel",i_=function(t){fo(r,t);function r(){var n;return r.prototype.evTarget=rct,n=t.apply(this,arguments)||this,n.targetIds={},n}var e=r.prototype;return e.handler=function(i){var o=tct[i.type],a=nct.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:u0,srcEvent:i})},r}($g);function nct(t,r){var e=Wd(t.touches),n=this.targetIds;if(r&(Kn|Vc)&&e.length===1)return n[e[0].identifier]=!0,[e,e];var i,o,a=Wd(t.changedTouches),s=[],l=this.target;if(o=e.filter(function(c){return r_(c.target,l)}),r===Kn)for(i=0;i-1&&i.splice(s,1)};setTimeout(o,sct)}}function lct(t,r){t&Kn?(this.primaryTouch=r.changedPointers[0].identifier,oV.call(this,r)):t&(Gr|vi)&&oV.call(this,r)}function cct(t){for(var r=t.srcEvent.clientX,e=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o=v1&&a(i.options.event+aV(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=sa},r.canEmit=function(){for(var n=0;no.threshold&&l&o.direction},e.attrTest=function(i){return xu.prototype.attrTest.call(this,i)&&(this.state&lo||!(this.state&lo)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=KQ(i.direction);o&&(i.additionalEvent=this.options.event+o),t.prototype.emit.call(this,i)},r}(xu),YQ=function(t){fo(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Bo({event:"swipe",threshold:10,velocity:.3,direction:Aa|Bl,pointers:1},n))||this}var e=r.prototype;return e.getTouchAction=function(){return a_.prototype.getTouchAction.call(this)},e.attrTest=function(i){var o=this.options.direction,a;return o&(Aa|Bl)?a=i.overallVelocity:o&Aa?a=i.overallVelocityX:o&Bl&&(a=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&sc(a)>this.options.velocity&&i.eventType&Gr},e.emit=function(i){var o=KQ(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(xu),XQ=function(t){fo(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Bo({event:"pinch",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Nl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&lo)},e.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}t.prototype.emit.call(this,i)},r}(xu),qQ=function(t){fo(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Bo({event:"rotate",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Nl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&lo)},r}(xu),QQ=function(t){fo(r,t);function r(n){var i;return n===void 0&&(n={}),i=t.call(this,Bo({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var e=r.prototype;return e.getTouchAction=function(){return[VQ]},e.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distancea.time;if(this._input=i,!l||!s||i.eventType&(Gr|vi)&&!c)this.reset();else if(i.eventType&Kn)this.reset(),this._timer=setTimeout(function(){o.state=es,o.tryEmit()},a.time);else if(i.eventType&Gr)return es;return sa},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===es&&(i&&i.eventType&Gr?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=e_(),this.manager.emit(this.options.event,this._input)))},r}(f0),JQ={domEvents:!1,touchAction:HQ,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},sV=[[qQ,{enable:!1}],[XQ,{enable:!1},["rotate"]],[YQ,{direction:Aa}],[a_,{direction:Aa},["swipe"]],[ey],[ey,{event:"doubletap",taps:2},["tap"]],[QQ]],dct=1,lV=2;function cV(t,r){var e=t.element;if(e.style){var n;Ja(t.options.cssProps,function(i,o){n=b4(e.style,o),r?(t.oldCssProps[n]=e.style[n],e.style[n]=i):e.style[n]=t.oldCssProps[n]||""}),r||(t.oldCssProps={})}}function fct(t,r){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=r,r.target.dispatchEvent(e)}var uV=function(){function t(e,n){var i=this;this.options=ac({},JQ,n||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=uct(this),this.touchAction=new NQ(this,this.options.touchAction),cV(this,!0),Ja(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=t.prototype;return r.set=function(n){return ac(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?lV:dct},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&es)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),t.apply(this,arguments)}}var tJ=eJ(function(t,r,e){for(var n=Object.keys(r),i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function $ct(t,r){var e;if(t){if(typeof t=="string")return hV(t,r);var n=y4(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return X$(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hV(t,r)}}function hV(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?e-1:0),i=1;i2){var n;return bA.apply(void 0,m4(n=[iJ(r[0],r[1])]).call(n,ci(y4(r).call(r,2))))}var i=r[0],o=r[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a=rJ(_st(o)),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===nJ?delete i[l]:i[l]!==null&&o[l]!==null&&typeof i[l]=="object"&&typeof o[l]=="object"&&!xi(i[l])&&!xi(o[l])?i[l]=bA(i[l],o[l]):i[l]=oJ(o[l]))}}catch(c){a.e(c)}finally{a.f()}return i}function oJ(t){return xi(t)?bo(t).call(t,function(r){return oJ(r)}):typeof t=="object"&&t!==null?t instanceof Date?new Date(t.getTime()):bA({},t):t}function aJ(t){for(var r=0,e=J$(t);ra;)l=n(e,s=i[a++]),l!==void 0&&u2t(o,s,l);return o}});var g2t=Ar,h2t=g2t.Object.getOwnPropertyDescriptors,d2t=h2t,f2t=d2t,C2t=f2t,AV=rt(C2t),vJ={exports:{}},v2t=Ke,A2t=vn,IV=a4.f;v2t({target:"Object",stat:!0,forced:Object.defineProperties!==IV,sham:!A2t},{defineProperties:IV});var I2t=Ar,AJ=I2t.Object,p2t=vJ.exports=function(r,e){return AJ.defineProperties(r,e)};AJ.defineProperties.sham&&(p2t.sham=!0);var m2t=vJ.exports,y2t=m2t,b2t=y2t,w2t=b2t,$2t=rt(w2t),_2t=YX,M2t=rt(_2t);function IJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var z2t=MQ,E2t=z2t,S2t=E2t,T2t=S2t,pJ=T2t,L2t=rt(pJ),k2t=Ke,O2t=Dq;k2t({target:"Object",stat:!0},{setPrototypeOf:O2t});var x2t=Ar,H2t=x2t.Object.setPrototypeOf,V2t=H2t,P2t=V2t,R2t=P2t,D2t=R2t,N2t=D2t,B2t=N2t,mJ=B2t,ty=rt(mJ),F2t=tQ,j2t=F2t,U2t=j2t,G2t=U2t,W2t=G2t,yJ=rt(W2t);function ry(t,r){var e;return ry=ty?yJ(e=ty).call(e):function(i,o){return i.__proto__=o,i},ry(t,r)}function Z2t(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=L2t(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),t4(t,"prototype",{writable:!1}),r&&ry(t,r)}function K2t(t,r){if(r&&(Lu(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IJ(t)}var Y2t=tlt,X2t=Y2t,q2t=X2t,Q2t=q2t,bJ=Q2t,pV=rt(bJ);function wA(t){var r;return wA=ty?yJ(r=pV).call(r):function(n){return n.__proto__||pV(n)},wA(t)}var wJ={exports:{}},$J={exports:{}};(function(t){var r=Z$,e=Xq;function n(i){"@babel/helpers - typeof";return t.exports=n=typeof r=="function"&&typeof e=="symbol"?function(o){return typeof o}:function(o){return o&&typeof r=="function"&&o.constructor===r&&o!==r.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})($J);var J2t=$J.exports,eut=yQ,tut=eut,rut=tut,nut=rut,iut=nut,mV=Yr,out=Q$,aut=Lc,sut=$i,lut=function(t,r,e){for(var n=out(r),i=sut.f,o=aut.f,a=0;ag;g++)if(d=A(t[g]),d&&bV($V,d))return d;return new tv(!1)}c=Tut(t,u)}for(f=o?t.next:c.next;!(C=_ut(f,c)).done;){try{d=A(C.value)}catch(I){wV(c,"throw",I)}if(typeof d=="object"&&d&&bV($V,d))return d}return new tv(!1)},Out=Oc,xut=function(t,r){return t===void 0?arguments.length<2?"":r:Out(t)},Hut=Ke,Vut=Kr,Put=C4,$A=Dq,Rut=lut,zJ=xc,t9=_s,r9=kc,Dut=gut,Nut=wut,But=Pc,Fut=xut,jut=Ir,Uut=jut("toStringTag"),_A=Error,Gut=[].push,Hu=function(r,e){var n=Vut(n9,this),i;$A?i=$A(new _A,n?Put(this):n9):(i=n?this:zJ(n9),t9(i,Uut,"Error")),e!==void 0&&t9(i,"message",Fut(e)),Nut(i,Hu,i.stack,1),arguments.length>2&&Dut(i,arguments[2]);var o=[];return But(r,Gut,{that:o}),t9(i,"errors",o),i};$A?$A(Hu,_A):Rut(Hu,_A,{name:!0});var n9=Hu.prototype=zJ(_A.prototype,{constructor:r9(1,Hu),message:r9(1,""),name:r9(1,"AggregateError")});Hut({global:!0,constructor:!0,arity:2},{AggregateError:Hu});var Wut=Jn,Zut=R$,Kut=Ir,Yut=vn,_V=Kut("species"),EJ=function(t){var r=Wut(t);Yut&&r&&!r[_V]&&Zut(r,_V,{configurable:!0,get:function(){return this}})},Xut=Kr,qut=TypeError,l_=function(t,r){if(Xut(r,t))return t;throw new qut("Incorrect invocation")},MV=Fi,Qut=sJ,Jut=fg,egt=Ir,tgt=egt("species"),SJ=function(t,r){var e=MV(t).constructor,n;return e===void 0||Jut(n=MV(e)[tgt])?r:Qut(n)},rgt=X1,TJ=/(?:ipad|iphone|ipod).*applewebkit/i.test(rgt),Ri=vr,ngt=dg,igt=q1,zV=zr,ogt=Yr,LJ=Rt,EV=oq,agt=s0,SV=O$,sgt=zQ,lgt=TJ,cgt=c0,ny=Ri.setImmediate,iy=Ri.clearImmediate,ugt=Ri.process,i9=Ri.Dispatch,ggt=Ri.Function,TV=Ri.MessageChannel,hgt=Ri.String,o9=0,Gh={},LV="onreadystatechange",Kd,dl,a9,s9;LJ(function(){Kd=Ri.location});var c_=function(t){if(ogt(Gh,t)){var r=Gh[t];delete Gh[t],r()}},l9=function(t){return function(){c_(t)}},kV=function(t){c_(t.data)},OV=function(t){Ri.postMessage(hgt(t),Kd.protocol+"//"+Kd.host)};(!ny||!iy)&&(ny=function(r){sgt(arguments.length,1);var e=zV(r)?r:ggt(r),n=agt(arguments,1);return Gh[++o9]=function(){ngt(e,void 0,n)},dl(o9),o9},iy=function(r){delete Gh[r]},cgt?dl=function(t){ugt.nextTick(l9(t))}:i9&&i9.now?dl=function(t){i9.now(l9(t))}:TV&&!lgt?(a9=new TV,s9=a9.port2,a9.port1.onmessage=kV,dl=igt(s9.postMessage,s9)):Ri.addEventListener&&zV(Ri.postMessage)&&!Ri.importScripts&&Kd&&Kd.protocol!=="file:"&&!LJ(OV)?(dl=OV,Ri.addEventListener("message",kV,!1)):LV in SV("script")?dl=function(t){EV.appendChild(SV("script"))[LV]=function(){EV.removeChild(this),c_(t)}}:dl=function(t){setTimeout(l9(t),0)});var kJ={set:ny,clear:iy},OJ=function(){this.head=null,this.tail=null};OJ.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}};var xJ=OJ,dgt=X1,fgt=/ipad|iphone|ipod/i.test(dgt)&&typeof Pebble<"u",Cgt=X1,vgt=/web0s(?!.*chrome)/i.test(Cgt),cc=vr,xV=q1,Agt=Lc.f,c9=kJ.set,Igt=xJ,pgt=TJ,mgt=fgt,ygt=vgt,u9=c0,HV=cc.MutationObserver||cc.WebKitMutationObserver,VV=cc.document,PV=cc.process,YC=cc.Promise,RV=Agt(cc,"queueMicrotask"),oy=RV&&RV.value,i2,g9,h9,XC,DV;if(!oy){var qC=new Igt,QC=function(){var t,r;for(u9&&(t=PV.domain)&&t.exit();r=qC.get();)try{r()}catch(e){throw qC.head&&i2(),e}t&&t.enter()};!pgt&&!u9&&!ygt&&HV&&VV?(g9=!0,h9=VV.createTextNode(""),new HV(QC).observe(h9,{characterData:!0}),i2=function(){h9.data=g9=!g9}):!mgt&&YC&&YC.resolve?(XC=YC.resolve(void 0),XC.constructor=YC,DV=xV(XC.then,XC),i2=function(){DV(QC)}):u9?i2=function(){PV.nextTick(QC)}:(c9=xV(c9,cc),i2=function(){c9(QC)}),oy=function(t){qC.head||i2(),qC.add(t)}}var bgt=oy,wgt=function(t,r){try{arguments.length===1?console.error(t):console.error(t,r)}catch{}},_g=function(t){try{return{error:!1,value:t()}}catch(r){return{error:!0,value:r}}},$gt=vr,Mg=$gt.Promise,HJ=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",_gt=HJ,Mgt=c0,zgt=!_gt&&!Mgt&&typeof window=="object"&&typeof document=="object",Egt=vr,Wh=Mg,Sgt=zr,Tgt=WX,Lgt=QX,kgt=Ir,Ogt=zgt,xgt=HJ,d9=Cg,NV=Wh&&Wh.prototype,Hgt=kgt("species"),ay=!1,VJ=Sgt(Egt.PromiseRejectionEvent),Vgt=Tgt("Promise",function(){var t=Lgt(Wh),r=t!==String(Wh);if(!r&&d9===66||!(NV.catch&&NV.finally))return!0;if(!d9||d9<51||!/native code/.test(t)){var e=new Wh(function(o){o(1)}),n=function(o){o(function(){},function(){})},i=e.constructor={};if(i[Hgt]=n,ay=e.then(function(){})instanceof n,!ay)return!0}return!r&&(Ogt||xgt)&&!VJ}),C0={CONSTRUCTOR:Vgt,REJECTION_EVENT:VJ,SUBCLASSING:ay},ka={},BV=bi,Pgt=TypeError,Rgt=function(t){var r,e;this.promise=new t(function(n,i){if(r!==void 0||e!==void 0)throw new Pgt("Bad Promise constructor");r=n,e=i}),this.resolve=BV(r),this.reject=BV(e)};ka.f=function(t){return new Rgt(t)};var Dgt=Ke,MA=c0,S1=vr,v0=An,Ngt=mg,Bgt=Hc,Fgt=EJ,jgt=bi,sy=zr,Ugt=En,Ggt=l_,Wgt=SJ,PJ=kJ.set,u_=bgt,Zgt=wgt,Kgt=_g,Ygt=xJ,RJ=yg,ly=Mg,DJ=C0,NJ=ka,$4="Promise",BJ=DJ.CONSTRUCTOR,Xgt=DJ.REJECTION_EVENT,f9=RJ.getterFor($4),qgt=RJ.set,Qgt=ly&&ly.prototype,L2=ly,C9=Qgt,FJ=S1.TypeError,cy=S1.document,g_=S1.process,uy=NJ.f,Jgt=uy,eht=!!(cy&&cy.createEvent&&S1.dispatchEvent),jJ="unhandledrejection",tht="rejectionhandled",FV=0,UJ=1,rht=2,h_=1,GJ=2,JC,jV,nht,WJ=function(t){var r;return Ugt(t)&&sy(r=t.then)?r:!1},ZJ=function(t,r){var e=r.value,n=r.state===UJ,i=n?t.ok:t.fail,o=t.resolve,a=t.reject,s=t.domain,l,c,u;try{i?(n||(r.rejection===GJ&&oht(r),r.rejection=h_),i===!0?l=e:(s&&s.enter(),l=i(e),s&&(s.exit(),u=!0)),l===t.promise?a(new FJ("Promise-chain cycle")):(c=WJ(l))?v0(c,l,o,a):o(l)):a(e)}catch(g){s&&!u&&s.exit(),a(g)}},KJ=function(t,r){t.notified||(t.notified=!0,u_(function(){for(var e=t.reactions,n;n=e.get();)ZJ(n,t);t.notified=!1,r&&!t.rejection&&iht(t)}))},YJ=function(t,r,e){var n,i;eht?(n=cy.createEvent("Event"),n.promise=r,n.reason=e,n.initEvent(t,!1,!0),S1.dispatchEvent(n)):n={promise:r,reason:e},!Xgt&&(i=S1["on"+t])?i(n):t===jJ&&Zgt("Unhandled promise rejection",e)},iht=function(t){v0(PJ,S1,function(){var r=t.facade,e=t.value,n=UV(t),i;if(n&&(i=Kgt(function(){MA?g_.emit("unhandledRejection",e,r):YJ(jJ,r,e)}),t.rejection=MA||UV(t)?GJ:h_,i.error))throw i.value})},UV=function(t){return t.rejection!==h_&&!t.parent},oht=function(t){v0(PJ,S1,function(){var r=t.facade;MA?g_.emit("rejectionHandled",r):YJ(tht,r,t.value)})},k2=function(t,r,e){return function(n){t(r,n,e)}},eu=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=rht,KJ(t,!0))},gy=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw new FJ("Promise can't be resolved itself");var n=WJ(r);n?u_(function(){var i={done:!1};try{v0(n,r,k2(gy,i,t),k2(eu,i,t))}catch(o){eu(i,o,t)}}):(t.value=r,t.state=UJ,KJ(t,!1))}catch(i){eu({done:!1},i,t)}}};BJ&&(L2=function(r){Ggt(this,C9),jgt(r),v0(JC,this);var e=f9(this);try{r(k2(gy,e),k2(eu,e))}catch(n){eu(e,n)}},C9=L2.prototype,JC=function(r){qgt(this,{type:$4,done:!1,notified:!1,parent:!1,reactions:new Ygt,rejection:!1,state:FV,value:void 0})},JC.prototype=Ngt(C9,"then",function(r,e){var n=f9(this),i=uy(Wgt(this,L2));return n.parent=!0,i.ok=sy(r)?r:!0,i.fail=sy(e)&&e,i.domain=MA?g_.domain:void 0,n.state===FV?n.reactions.add(i):u_(function(){ZJ(i,n)}),i.promise}),jV=function(){var t=new JC,r=f9(t);this.promise=t,this.resolve=k2(gy,r),this.reject=k2(eu,r)},NJ.f=uy=function(t){return t===L2||t===nht?new jV(t):Jgt(t)});Dgt({global:!0,constructor:!0,wrap:!0,forced:BJ},{Promise:L2});Bgt(L2,$4,!1,!0);Fgt($4);var aht=Mg,sht=lQ,lht=C0.CONSTRUCTOR,_4=lht||!sht(function(t){aht.all(t).then(void 0,function(){})}),cht=Ke,uht=An,ght=bi,hht=ka,dht=_g,fht=Pc,Cht=_4;cht({target:"Promise",stat:!0,forced:Cht},{all:function(r){var e=this,n=hht.f(e),i=n.resolve,o=n.reject,a=dht(function(){var s=ght(e.resolve),l=[],c=0,u=1;fht(r,function(g){var h=c++,d=!1;u++,uht(s,e,g).then(function(f){d||(d=!0,l[h]=f,--u||i(l))},o)}),--u||i(l)});return a.error&&o(a.value),n.promise}});var vht=Ke,Aht=C0.CONSTRUCTOR,GV=Mg;GV&&GV.prototype;vht({target:"Promise",proto:!0,forced:Aht,real:!0},{catch:function(t){return this.then(void 0,t)}});var Iht=Ke,pht=An,mht=bi,yht=ka,bht=_g,wht=Pc,$ht=_4;Iht({target:"Promise",stat:!0,forced:$ht},{race:function(r){var e=this,n=yht.f(e),i=n.reject,o=bht(function(){var a=mht(e.resolve);wht(r,function(s){pht(a,e,s).then(n.resolve,i)})});return o.error&&i(o.value),n.promise}});var _ht=Ke,Mht=An,zht=ka,Eht=C0.CONSTRUCTOR;_ht({target:"Promise",stat:!0,forced:Eht},{reject:function(r){var e=zht.f(this);return Mht(e.reject,void 0,r),e.promise}});var Sht=Fi,Tht=En,Lht=ka,XJ=function(t,r){if(Sht(t),Tht(r)&&r.constructor===t)return r;var e=Lht.f(t),n=e.resolve;return n(r),e.promise},kht=Ke,Oht=Jn,xht=BYe,Hht=Mg,Vht=C0.CONSTRUCTOR,Pht=XJ,Rht=Oht("Promise"),Dht=!Vht;kht({target:"Promise",stat:!0,forced:xht},{resolve:function(r){return Pht(Dht&&this===Rht?Hht:this,r)}});var Nht=Ke,Bht=An,Fht=bi,jht=ka,Uht=_g,Ght=Pc,Wht=_4;Nht({target:"Promise",stat:!0,forced:Wht},{allSettled:function(r){var e=this,n=jht.f(e),i=n.resolve,o=n.reject,a=Uht(function(){var s=Fht(e.resolve),l=[],c=0,u=1;Ght(r,function(g){var h=c++,d=!1;u++,Bht(s,e,g).then(function(f){d||(d=!0,l[h]={status:"fulfilled",value:f},--u||i(l))},function(f){d||(d=!0,l[h]={status:"rejected",reason:f},--u||i(l))})}),--u||i(l)});return a.error&&o(a.value),n.promise}});var Zht=Ke,Kht=An,Yht=bi,Xht=Jn,qht=ka,Qht=_g,Jht=Pc,edt=_4,WV="No one promise resolved";Zht({target:"Promise",stat:!0,forced:edt},{any:function(r){var e=this,n=Xht("AggregateError"),i=qht.f(e),o=i.resolve,a=i.reject,s=Qht(function(){var l=Yht(e.resolve),c=[],u=0,g=1,h=!1;Jht(r,function(d){var f=u++,C=!1;g++,Kht(l,e,d).then(function(v){C||h||(h=!0,o(v))},function(v){C||h||(C=!0,c[f]=v,--g||a(new n(c,WV)))})}),--g||a(new n(c,WV))});return s.error&&a(s.value),i.promise}});var tdt=Ke,hy=Mg,rdt=Rt,ndt=Jn,idt=zr,odt=SJ,ZV=XJ,adt=hy&&hy.prototype,sdt=!!hy&&rdt(function(){adt.finally.call({then:function(){}},function(){})});tdt({target:"Promise",proto:!0,real:!0,forced:sdt},{finally:function(t){var r=odt(this,ndt("Promise")),e=idt(t);return this.then(e?function(n){return ZV(r,t()).then(function(){return n})}:t,e?function(n){return ZV(r,t()).then(function(){throw n})}:t)}});var ldt=Ar,cdt=ldt.Promise,udt=cdt,gdt=udt,hdt=Ke,ddt=ka;hdt({target:"Promise",stat:!0},{withResolvers:function(){var r=ddt.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}});var fdt=gdt,Cdt=fdt,vdt=Ke,Adt=ka,Idt=_g;vdt({target:"Promise",stat:!0,forced:!0},{try:function(t){var r=Adt.f(this),e=Idt(t);return(e.error?r.reject:r.resolve)(e.value),r.promise}});var pdt=Cdt,mdt=pdt,ydt=mdt,bdt=bQ,wdt=bdt,$dt=wdt,_dt=$dt,Mdt=_dt;(function(t){var r=J2t.default,e=XX,n=Z$,i=pJ,o=bJ,a=iut,s=CQ,l=mJ,c=ydt,u=Mdt,g=AQ;function h(){t.exports=h=function(){return f},t.exports.__esModule=!0,t.exports.default=t.exports;var d,f={},C=Object.prototype,v=C.hasOwnProperty,A=e||function(R,V,N){R[V]=N.value},I=typeof n=="function"?n:{},p=I.iterator||"@@iterator",m=I.asyncIterator||"@@asyncIterator",b=I.toStringTag||"@@toStringTag";function _(R,V,N){return e(R,V,{value:N,enumerable:!0,configurable:!0,writable:!0}),R[V]}try{_({},"")}catch{_=function(N,K,E){return N[K]=E}}function L(R,V,N,K){var E=V&&V.prototype instanceof B?V:B,$=i(E.prototype),x=new Z(K||[]);return A($,"_invoke",{value:Ne(R,N,x)}),$}function M(R,V,N){try{return{type:"normal",arg:R.call(V,N)}}catch(K){return{type:"throw",arg:K}}}f.wrap=L;var S="suspendedStart",T="suspendedYield",k="executing",O="completed",P={};function B(){}function te(){}function ee(){}var re={};_(re,p,function(){return this});var Me=o,He=Me&&Me(Me(ie([])));He&&He!==C&&v.call(He,p)&&(re=He);var nt=ee.prototype=B.prototype=i(re);function De(R){var V;a(V=["next","throw","return"]).call(V,function(N){_(R,N,function(K){return this._invoke(N,K)})})}function be(R,V){function N(E,$,x,j){var U=M(R[E],R,$);if(U.type!=="throw"){var q=U.arg,le=q.value;return le&&r(le)=="object"&&v.call(le,"__await")?V.resolve(le.__await).then(function(ue){N("next",ue,x,j)},function(ue){N("throw",ue,x,j)}):V.resolve(le).then(function(ue){q.value=ue,x(q)},function(ue){return N("throw",ue,x,j)})}j(U.arg)}var K;A(this,"_invoke",{value:function($,x){function j(){return new V(function(U,q){N($,x,U,q)})}return K=K?K.then(j,j):j()}})}function Ne(R,V,N){var K=S;return function(E,$){if(K===k)throw new Error("Generator is already running");if(K===O){if(E==="throw")throw $;return{value:d,done:!0}}for(N.method=E,N.arg=$;;){var x=N.delegate;if(x){var j=Ue(x,N);if(j){if(j===P)continue;return j}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(K===S)throw K=O,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);K=k;var U=M(R,V,N);if(U.type==="normal"){if(K=N.done?O:T,U.arg===P)continue;return{value:U.arg,done:N.done}}U.type==="throw"&&(K=O,N.method="throw",N.arg=U.arg)}}}function Ue(R,V){var N=V.method,K=R.iterator[N];if(K===d)return V.delegate=null,N==="throw"&&R.iterator.return&&(V.method="return",V.arg=d,Ue(R,V),V.method==="throw")||N!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+N+"' method")),P;var E=M(K,R.iterator,V.arg);if(E.type==="throw")return V.method="throw",V.arg=E.arg,V.delegate=null,P;var $=E.arg;return $?$.done?(V[R.resultName]=$.value,V.next=R.nextLoc,V.method!=="return"&&(V.method="next",V.arg=d),V.delegate=null,P):$:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,P)}function ot(R){var V,N={tryLoc:R[0]};1 in R&&(N.catchLoc=R[1]),2 in R&&(N.finallyLoc=R[2],N.afterLoc=R[3]),s(V=this.tryEntries).call(V,N)}function ft(R){var V=R.completion||{};V.type="normal",delete V.arg,R.completion=V}function Z(R){this.tryEntries=[{tryLoc:"root"}],a(R).call(R,ot,this),this.reset(!0)}function ie(R){if(R||R===""){var V=R[p];if(V)return V.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var N=-1,K=function E(){for(;++N=0;--E){var $=this.tryEntries[E],x=$.completion;if($.tryLoc==="root")return K("end");if($.tryLoc<=this.prev){var j=v.call($,"catchLoc"),U=v.call($,"finallyLoc");if(j&&U){if(this.prev<$.catchLoc)return K($.catchLoc,!0);if(this.prev<$.finallyLoc)return K($.finallyLoc)}else if(j){if(this.prev<$.catchLoc)return K($.catchLoc,!0)}else{if(!U)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return K($.finallyLoc)}}}},abrupt:function(V,N){for(var K=this.tryEntries.length-1;K>=0;--K){var E=this.tryEntries[K];if(E.tryLoc<=this.prev&&v.call(E,"finallyLoc")&&this.prev=0;--N){var K=this.tryEntries[N];if(K.finallyLoc===V)return this.complete(K.completion,K.afterLoc),ft(K),P}},catch:function(V){for(var N=this.tryEntries.length-1;N>=0;--N){var K=this.tryEntries[N];if(K.tryLoc===V){var E=K.completion;if(E.type==="throw"){var $=E.arg;ft(K)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(V,N,K){return this.delegate={iterator:ie(V),resultName:N,nextLoc:K},this.method==="next"&&(this.arg=d),P}},f}t.exports=h,t.exports.__esModule=!0,t.exports.default=t.exports})(wJ);var zdt=wJ.exports,rv=zdt(),Edt=rv;try{regeneratorRuntime=rv}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=rv:Function("r","regeneratorRuntime = r")(rv)}var ri=rt(Edt),qJ={exports:{}},Sdt=Rt,Tdt=Sdt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Ldt=Rt,kdt=En,Odt=Y1,KV=Tdt,nv=Object.isExtensible,xdt=Ldt(function(){nv(1)}),Hdt=xdt||KV?function(r){return!kdt(r)||KV&&Odt(r)==="ArrayBuffer"?!1:nv?nv(r):!0}:nv,Vdt=Rt,Pdt=!Vdt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Rdt=Ke,Ddt=cr,Ndt=t0,Bdt=En,d_=Yr,Fdt=$i.f,YV=r0,jdt=P$,f_=Hdt,Udt=JI,Gdt=Pdt,QJ=!1,hs=Udt("meta"),Wdt=0,C_=function(t){Fdt(t,hs,{value:{objectID:"O"+Wdt++,weakData:{}}})},Zdt=function(t,r){if(!Bdt(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!d_(t,hs)){if(!f_(t))return"F";if(!r)return"E";C_(t)}return t[hs].objectID},Kdt=function(t,r){if(!d_(t,hs)){if(!f_(t))return!0;if(!r)return!1;C_(t)}return t[hs].weakData},Ydt=function(t){return Gdt&&QJ&&f_(t)&&!d_(t,hs)&&C_(t),t},Xdt=function(){qdt.enable=function(){},QJ=!0;var t=YV.f,r=Ddt([].splice),e={};e[hs]=1,t(e).length&&(YV.f=function(n){for(var i=t(n),o=0,a=i.length;o1?arguments[1]:void 0),d;d=d?d.next:g.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),XV(o,e?{get:function(u){var g=l(this,u);return g&&g.value},set:function(u,g){return s(this,u===0?0:u,g)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),nh&&Aft(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=v9(r),o=v9(n);bft(t,r,function(a,s){QV(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,e5(void 0,!0)):e5(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),wft(r)}},$ft=tee,_ft=nee;$ft("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},_ft);var Mft=Ar,zft=Mft.Map,Eft=zft,Sft=Eft,Tft=Sft,iee=rt(Tft),Lft=Ke,kft=bg.some,Oft=A4,xft=Oft("some");Lft({target:"Array",proto:!0,forced:!xft},{some:function(r){return kft(this,r,arguments.length>1?arguments[1]:void 0)}});var Hft=xn,Vft=Hft("Array","some"),Pft=Kr,Rft=Vft,A9=Array.prototype,Dft=function(t){var r=t.some;return t===A9||Pft(A9,t)&&r===A9.some?Rft:r},Nft=Dft,Bft=Nft,Fft=Bft,jft=rt(Fft),Uft=xn,Gft=Uft("Array","keys"),Wft=Gft,Zft=Wft,Kft=Ms,Yft=Yr,Xft=Kr,qft=Zft,I9=Array.prototype,Qft={DOMTokenList:!0,NodeList:!0},Jft=function(t){var r=t.keys;return t===I9||Xft(I9,t)&&r===I9.keys||Yft(Qft,Kft(t))?qft:r},e0t=Jft,o2=rt(e0t),JV=lq,t0t=Math.floor,dy=function(t,r){var e=t.length,n=t0t(e/2);return e<8?r0t(t,r):n0t(t,dy(JV(t,0,n),r),dy(JV(t,n),r),r)},r0t=function(t,r){for(var e=t.length,n=1,i,o;n0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},n0t=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a3)){if(A0t)return!0;if(aP)return aP<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)t1.push({k:e+i,v:n})}for(t1.sort(function(o,a){return a.v-o.v}),i=0;inP(e)?1:-1}};g0t({target:"Array",proto:!0,forced:b0t},{sort:function(r){r!==void 0&&h0t(r);var e=d0t(this);if(aee)return r===void 0?sP(e):sP(e,r);var n=[],i=rP(e),o,a;for(a=0;athis.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=xlt(function(){e.flush()},this.delay))}},{key:"flush",value:function(){var e,n;oc(e=$Q(n=this._queue).call(n,0)).call(e,function(i){i.fn.apply(i.context||i.fn,i.args||[])})}}],[{key:"extend",value:function(e,n){var i=new t(n);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var o=[{name:"flush",original:void 0}];if(n&&n.replace)for(var a=0;a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function MCt(t,r){var e;if(t){if(typeof t=="string")return gP(t,r);var n=y4(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return X$(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gP(t,r)}}function gP(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);es&&(s=g,a=u)}return a}},{key:"min",value:function(n){var i=w9(this._pairs),o=i.next();if(o.done)return null;for(var a=o.value[1],s=n(o.value[1],o.value[0]);!(o=i.next()).done;){var l=ei(o.value,2),c=l[0],u=l[1],g=n(u,c);g=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function zCt(t,r){var e;if(t){if(typeof t=="string")return CP(t,r);var n=y4(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return X$(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CP(t,r)}}function CP(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e"u"||!ev||ev.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(ev(Boolean,[],function(){})),!0}catch{return!1}}function TCt(t,r){return t[r]==null&&(t[r]=aCt()),t}var zA=function(t){Z2t(e,t);var r=ECt(e);function e(n,i){var o;return XI(this,e),o=r.call(this),C1(IJ(o),"_queue",null),n&&!xi(n)&&(i=n,n=[]),o._options=i||{},o._data=new iee,o.length=0,o._idProp=o._options.fieldId||"id",n&&n.length&&o.add(n),o.setOptions(i),o}return v4(e,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(i){i&&i.queue!==void 0&&(i.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=sCt.extend(this,{replace:["add","update","remove"]})),i.queue&&typeof i.queue=="object"&&this._queue.setOptions(i.queue)))}},{key:"add",value:function(i,o){var a=this,s=[],l;if(xi(i)){var c=bo(i).call(i,function(h){return h[a._idProp]});if(jft(c).call(c,function(h){return a._data.has(h)}))throw new Error("A duplicate id was found in the parameter array.");for(var u=0,g=i.length;uu?1:cs)&&(a=u,s=g)}}catch(h){l.e(h)}finally{l.f()}return a||null}},{key:"min",value:function(i){var o,a=null,s=null,l=$9(lP(o=this._data).call(o)),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=u[i];typeof g=="number"&&(s==null||g"u"&&vy!==void 0,hee={all:vy,IS_HTMLDDA:DCt},dee=hee,NCt=dee.all,In=dee.IS_HTMLDDA?function(t){return typeof t=="function"||t===NCt}:function(t){return typeof t=="function"},zg={},BCt=Tt,pn=!BCt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),FCt=A0,n5=Function.prototype.call,Ui=FCt?n5.bind(n5):function(){return n5.apply(n5,arguments)},M4={},fee={}.propertyIsEnumerable,Cee=Object.getOwnPropertyDescriptor,jCt=Cee&&!fee.call({1:2},1);M4.f=jCt?function(r){var e=Cee(this,r);return!!e&&e.enumerable}:fee;var p0=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}},UCt=Ot,GCt=Tt,WCt=zs,M9=Object,ZCt=UCt("".split),z4=GCt(function(){return!M9("z").propertyIsEnumerable(0)})?function(t){return WCt(t)==="String"?ZCt(t,""):M9(t)}:M9,Eg=function(t){return t==null},KCt=Eg,YCt=TypeError,m0=function(t){if(KCt(t))throw new YCt("Can't call method on "+t);return t},XCt=z4,qCt=m0,Oa=function(t){return XCt(qCt(t))},IP=In,vee=hee,QCt=vee.all,mn=vee.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:IP(t)||t===QCt}:function(t){return typeof t=="object"?t!==null:IP(t)},Lt={},z9=Lt,E9=Sr,JCt=In,pP=function(t){return JCt(t)?t:void 0},Co=function(t,r){return arguments.length<2?pP(z9[t])||pP(E9[t]):z9[t]&&z9[t][r]||E9[t]&&E9[t][r]},e5t=Ot,Dr=e5t({}.isPrototypeOf),y0=typeof navigator<"u"&&String(navigator.userAgent)||"",Aee=Sr,S9=y0,mP=Aee.process,yP=Aee.Deno,bP=mP&&mP.versions||yP&&yP.version,wP=bP&&bP.v8,wo,EA;wP&&(wo=wP.split("."),EA=wo[0]>0&&wo[0]<4?1:+(wo[0]+wo[1]));!EA&&S9&&(wo=S9.match(/Edge\/(\d+)/),(!wo||wo[1]>=74)&&(wo=S9.match(/Chrome\/(\d+)/),wo&&(EA=+wo[1])));var b0=EA,$P=b0,t5t=Tt,r5t=Sr,n5t=r5t.String,Sg=!!Object.getOwnPropertySymbols&&!t5t(function(){var t=Symbol("symbol detection");return!n5t(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$P&&$P<41}),i5t=Sg,Iee=i5t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",o5t=Co,a5t=In,s5t=Dr,l5t=Iee,c5t=Object,w0=l5t?function(t){return typeof t=="symbol"}:function(t){var r=o5t("Symbol");return a5t(r)&&s5t(r.prototype,c5t(t))},u5t=String,Tg=function(t){try{return u5t(t)}catch{return"Object"}},g5t=In,h5t=Tg,d5t=TypeError,Rc=function(t){if(g5t(t))return t;throw new d5t(h5t(t)+" is not a function")},f5t=Rc,C5t=Eg,I_=function(t,r){var e=t[r];return C5t(e)?void 0:f5t(e)},T9=Ui,L9=In,k9=mn,v5t=TypeError,A5t=function(t,r){var e,n;if(r==="string"&&L9(e=t.toString)&&!k9(n=T9(e,t))||L9(e=t.valueOf)&&!k9(n=T9(e,t))||r!=="string"&&L9(e=t.toString)&&!k9(n=T9(e,t)))return n;throw new v5t("Can't convert object to primitive value")},pee={exports:{}},_P=Sr,I5t=Object.defineProperty,p5t=function(t,r){try{I5t(_P,t,{value:r,configurable:!0,writable:!0})}catch{_P[t]=r}return r},m5t=Sr,y5t=p5t,MP="__core-js_shared__",b5t=m5t[MP]||y5t(MP,{}),p_=b5t,zP=p_;(pee.exports=function(t,r){return zP[t]||(zP[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Lg=pee.exports,w5t=m0,$5t=Object,_i=function(t){return $5t(w5t(t))},_5t=Ot,M5t=_i,z5t=_5t({}.hasOwnProperty),yn=Object.hasOwn||function(r,e){return z5t(M5t(r),e)},E5t=Ot,S5t=0,T5t=Math.random(),L5t=E5t(1 .toString),E4=function(t){return"Symbol("+(t===void 0?"":t)+")_"+L5t(++S5t+T5t,36)},k5t=Sr,O5t=Lg,EP=yn,x5t=E4,H5t=Sg,V5t=Iee,x2=k5t.Symbol,O9=O5t("wks"),P5t=V5t?x2.for||x2:x2&&x2.withoutSetter||x5t,Tr=function(t){return EP(O9,t)||(O9[t]=H5t&&EP(x2,t)?x2[t]:P5t("Symbol."+t)),O9[t]},R5t=Ui,SP=mn,TP=w0,D5t=I_,N5t=A5t,B5t=Tr,F5t=TypeError,j5t=B5t("toPrimitive"),U5t=function(t,r){if(!SP(t)||TP(t))return t;var e=D5t(t,j5t),n;if(e){if(r===void 0&&(r="default"),n=R5t(e,t,r),!SP(n)||TP(n))return n;throw new F5t("Can't convert object to primitive value")}return r===void 0&&(r="number"),N5t(t,r)},G5t=U5t,W5t=w0,S4=function(t){var r=G5t(t,"string");return W5t(r)?r:r+""},Z5t=Sr,LP=mn,Ay=Z5t.document,K5t=LP(Ay)&&LP(Ay.createElement),mee=function(t){return K5t?Ay.createElement(t):{}},Y5t=pn,X5t=Tt,q5t=mee,yee=!Y5t&&!X5t(function(){return Object.defineProperty(q5t("div"),"a",{get:function(){return 7}}).a!==7}),Q5t=pn,J5t=Ui,evt=M4,tvt=p0,rvt=Oa,nvt=S4,ivt=yn,ovt=yee,kP=Object.getOwnPropertyDescriptor;zg.f=Q5t?kP:function(r,e){if(r=rvt(r),e=nvt(e),ovt)try{return kP(r,e)}catch{}if(ivt(r,e))return tvt(!J5t(evt.f,r,e),r[e])};var avt=Tt,svt=In,lvt=/#|\.prototype\./,$0=function(t,r){var e=uvt[cvt(t)];return e===hvt?!0:e===gvt?!1:svt(r)?avt(r):!!r},cvt=$0.normalize=function(t){return String(t).replace(lvt,".").toLowerCase()},uvt=$0.data={},gvt=$0.NATIVE="N",hvt=$0.POLYFILL="P",dvt=$0,OP=A_,fvt=Rc,Cvt=A0,vvt=OP(OP.bind),_0=function(t,r){return fvt(t),r===void 0?t:Cvt?vvt(t,r):function(){return t.apply(r,arguments)}},Gi={},Avt=pn,Ivt=Tt,bee=Avt&&Ivt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),pvt=mn,mvt=String,yvt=TypeError,Wi=function(t){if(pvt(t))return t;throw new yvt(mvt(t)+" is not an object")},bvt=pn,wvt=yee,$vt=bee,i5=Wi,xP=S4,_vt=TypeError,x9=Object.defineProperty,Mvt=Object.getOwnPropertyDescriptor,H9="enumerable",V9="configurable",P9="writable";Gi.f=bvt?$vt?function(r,e,n){if(i5(r),e=xP(e),i5(n),typeof r=="function"&&e==="prototype"&&"value"in n&&P9 in n&&!n[P9]){var i=Mvt(r,e);i&&i[P9]&&(r[e]=n.value,n={configurable:V9 in n?n[V9]:i[V9],enumerable:H9 in n?n[H9]:i[H9],writable:!1})}return x9(r,e,n)}:x9:function(r,e,n){if(i5(r),e=xP(e),i5(n),wvt)try{return x9(r,e,n)}catch{}if("get"in n||"set"in n)throw new _vt("Accessors not supported");return"value"in n&&(r[e]=n.value),r};var zvt=pn,Evt=Gi,Svt=p0,kg=zvt?function(t,r,e){return Evt.f(t,r,Svt(1,e))}:function(t,r,e){return t[r]=e,t},o5=Sr,Tvt=I0,Lvt=A_,kvt=In,Ovt=zg.f,xvt=dvt,a2=Lt,Hvt=_0,s2=kg,HP=yn,Vvt=function(t){var r=function(e,n,i){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return Tvt(t,this,arguments)};return r.prototype=t.prototype,r},et=function(t,r){var e=t.target,n=t.global,i=t.stat,o=t.proto,a=n?o5:i?o5[e]:(o5[e]||{}).prototype,s=n?a2:a2[e]||s2(a2,e,{})[e],l=s.prototype,c,u,g,h,d,f,C,v,A;for(h in r)c=xvt(n?h:e+(i?".":"#")+h,t.forced),u=!c&&a&&HP(a,h),f=s[h],u&&(t.dontCallGetSet?(A=Ovt(a,h),C=A&&A.value):C=a[h]),d=u&&C?C:r[h],!(u&&typeof f==typeof d)&&(t.bind&&u?v=Hvt(d,o5):t.wrap&&u?v=Vvt(d):o&&kvt(d)?v=Lvt(d):v=d,(t.sham||d&&d.sham||f&&f.sham)&&s2(v,"sham",!0),s2(s,h,v),o&&(g=e+"Prototype",HP(a2,g)||s2(a2,g,{}),s2(a2[g],h,d),t.real&&l&&(c||!l[h])&&s2(l,h,d)))},Pvt=Math.ceil,Rvt=Math.floor,Dvt=Math.trunc||function(r){var e=+r;return(e>0?Rvt:Pvt)(e)},Nvt=Dvt,T4=function(t){var r=+t;return r!==r||r===0?0:Nvt(r)},Bvt=T4,Fvt=Math.max,jvt=Math.min,M0=function(t,r){var e=Bvt(t);return e<0?Fvt(e+r,0):jvt(e,r)},Uvt=T4,Gvt=Math.min,Wvt=function(t){return t>0?Gvt(Uvt(t),9007199254740991):0},Zvt=Wvt,vo=function(t){return Zvt(t.length)},Kvt=Oa,Yvt=M0,Xvt=vo,VP=function(t){return function(r,e,n){var i=Kvt(r),o=Xvt(i),a=Yvt(n,o),s;if(t&&e!==e){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},m_={includes:VP(!0),indexOf:VP(!1)},z0={},qvt=Ot,R9=yn,Qvt=Oa,Jvt=m_.indexOf,eAt=z0,PP=qvt([].push),wee=function(t,r){var e=Qvt(t),n=0,i=[],o;for(o in e)!R9(eAt,o)&&R9(e,o)&&PP(i,o);for(;r.length>n;)R9(e,o=r[n++])&&(~Jvt(i,o)||PP(i,o));return i},y_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tAt=wee,rAt=y_,L4=Object.keys||function(r){return tAt(r,rAt)},E0={};E0.f=Object.getOwnPropertySymbols;var RP=pn,nAt=Ot,iAt=Ui,oAt=Tt,D9=L4,aAt=E0,sAt=M4,lAt=_i,cAt=z4,l2=Object.assign,DP=Object.defineProperty,uAt=nAt([].concat),gAt=!l2||oAt(function(){if(RP&&l2({b:1},l2(DP({},"a",{enumerable:!0,get:function(){DP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach(function(i){r[i]=i}),l2({},t)[e]!==7||D9(l2({},r)).join("")!==n})?function(r,e){for(var n=lAt(r),i=arguments.length,o=1,a=aAt.f,s=sAt.f;i>o;)for(var l=cAt(arguments[o++]),c=a?uAt(D9(l),a(l)):D9(l),u=c.length,g=0,h;u>g;)h=c[g++],(!RP||iAt(s,l,h))&&(n[h]=l[h]);return n}:l2,hAt=et,NP=gAt;hAt({target:"Object",stat:!0,arity:2,forced:Object.assign!==NP},{assign:NP});var dAt=Lt,fAt=dAt.Object.assign,CAt=fAt,vAt=CAt,AAt=vAt,Wr=je(AAt),IAt=Ot,k4=IAt([].slice),$ee=Ot,pAt=Rc,mAt=mn,yAt=yn,BP=k4,bAt=A0,_ee=Function,wAt=$ee([].concat),$At=$ee([].join),N9={},_At=function(t,r,e){if(!yAt(N9,r)){for(var n=[],i=0;i=.1;)f=+o[g++%a],f>u&&(f=u),d=Math.sqrt(f*f/(1+c*c)),d=s<0?-d:d,r+=d,e+=c*d,h===!0?t.lineTo(r,e):t.moveTo(r,e),u-=f,h=!h}function NAt(t,r,e,n){t.beginPath();var i=6,o=Math.PI*2/i;t.moveTo(r+n,e);for(var a=1;a1?e-1:0),i=1;i=o?t?"":void 0:(a=UP(n,i),a<55296||a>56319||i+1===o||(s=UP(n,i+1))<56320||s>57343?t?nIt(n,i):a:t?iIt(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},oIt={codeAt:GP(!1),charAt:GP(!0)},aIt=Sr,sIt=In,WP=aIt.WeakMap,xee=sIt(WP)&&/native code/.test(String(WP)),lIt=Lg,cIt=E4,ZP=lIt("keys"),O4=function(t){return ZP[t]||(ZP[t]=cIt(t))},uIt=xee,Hee=Sr,gIt=mn,hIt=kg,F9=yn,j9=p_,dIt=O4,fIt=z0,KP="Object already initialized",py=Hee.TypeError,CIt=Hee.WeakMap,SA,Yd,TA,vIt=function(t){return TA(t)?Yd(t):SA(t,{})},AIt=function(t){return function(r){var e;if(!gIt(r)||(e=Yd(r)).type!==t)throw new py("Incompatible receiver, "+t+" required");return e}};if(uIt||j9.state){var qo=j9.state||(j9.state=new CIt);qo.get=qo.get,qo.has=qo.has,qo.set=qo.set,SA=function(t,r){if(qo.has(t))throw new py(KP);return r.facade=t,qo.set(t,r),r},Yd=function(t){return qo.get(t)||{}},TA=function(t){return qo.has(t)}}else{var c2=dIt("state");fIt[c2]=!0,SA=function(t,r){if(F9(t,c2))throw new py(KP);return r.facade=t,hIt(t,c2,r),r},Yd=function(t){return F9(t,c2)?t[c2]:{}},TA=function(t){return F9(t,c2)}}var Nc={set:SA,get:Yd,has:TA,enforce:vIt,getterFor:AIt},my=pn,IIt=yn,Vee=Function.prototype,pIt=my&&Object.getOwnPropertyDescriptor,__=IIt(Vee,"name"),mIt=__&&function(){}.name==="something",yIt=__&&(!my||my&&pIt(Vee,"name").configurable),bIt={EXISTS:__,PROPER:mIt,CONFIGURABLE:yIt},x4={},wIt=pn,$It=bee,_It=Gi,MIt=Wi,zIt=Oa,EIt=L4;x4.f=wIt&&!$It?Object.defineProperties:function(r,e){MIt(r);for(var n=zIt(e),i=EIt(e),o=i.length,a=0,s;o>a;)_It.f(r,s=i[a++],n[s]);return r};var SIt=Co,TIt=SIt("document","documentElement"),LIt=Wi,kIt=x4,YP=y_,OIt=z0,xIt=TIt,HIt=mee,VIt=O4,XP=">",qP="<",yy="prototype",by="script",Pee=VIt("IE_PROTO"),U9=function(){},Ree=function(t){return qP+by+XP+t+qP+"/"+by+XP},QP=function(t){t.write(Ree("")),t.close();var r=t.parentWindow.Object;return t=null,r},PIt=function(){var t=HIt("iframe"),r="java"+by+":",e;return t.style.display="none",xIt.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(Ree("document.F=Object")),e.close(),e.F},a5,ov=function(){try{a5=new ActiveXObject("htmlfile")}catch{}ov=typeof document<"u"?document.domain&&a5?QP(a5):PIt():QP(a5);for(var t=YP.length;t--;)delete ov[yy][YP[t]];return ov()};OIt[Pee]=!0;var Og=Object.create||function(r,e){var n;return r!==null?(U9[yy]=LIt(r),n=new U9,U9[yy]=null,n[Pee]=r):n=ov(),e===void 0?n:kIt.f(n,e)},RIt=Tt,Dee=!RIt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),DIt=yn,NIt=In,BIt=_i,FIt=O4,jIt=Dee,JP=FIt("IE_PROTO"),wy=Object,UIt=wy.prototype,H4=jIt?wy.getPrototypeOf:function(t){var r=BIt(t);if(DIt(r,JP))return r[JP];var e=r.constructor;return NIt(e)&&r instanceof e?e.prototype:r instanceof wy?UIt:null},GIt=kg,S0=function(t,r,e,n){return n&&n.enumerable?t[r]=e:GIt(t,r,e),t},WIt=Tt,ZIt=In,KIt=mn,YIt=Og,eR=H4,XIt=S0,qIt=Tr,$y=qIt("iterator"),Nee=!1,ts,G9,W9;[].keys&&(W9=[].keys(),"next"in W9?(G9=eR(eR(W9)),G9!==Object.prototype&&(ts=G9)):Nee=!0);var QIt=!KIt(ts)||WIt(function(){var t={};return ts[$y].call(t)!==t});QIt?ts={}:ts=YIt(ts);ZIt(ts[$y])||XIt(ts,$y,function(){return this});var Bee={IteratorPrototype:ts,BUGGY_SAFARI_ITERATORS:Nee},JIt=w_,e4t=Dc,t4t=JIt?{}.toString:function(){return"[object "+e4t(this)+"]"},r4t=w_,n4t=Gi.f,i4t=kg,o4t=yn,a4t=t4t,s4t=Tr,tR=s4t("toStringTag"),xg=function(t,r,e,n){if(t){var i=e?t:t.prototype;o4t(i,tR)||n4t(i,tR,{configurable:!0,value:r}),n&&!r4t&&i4t(i,"toString",a4t)}},Hg={},l4t=Bee.IteratorPrototype,c4t=Og,u4t=p0,g4t=xg,h4t=Hg,d4t=function(){return this},f4t=function(t,r,e,n){var i=r+" Iterator";return t.prototype=c4t(l4t,{next:u4t(+!n,e)}),g4t(t,i,!1,!0),h4t[i]=d4t,t},C4t=Ot,v4t=Rc,A4t=function(t,r,e){try{return C4t(v4t(Object.getOwnPropertyDescriptor(t,r)[e]))}catch{}},I4t=In,p4t=String,m4t=TypeError,y4t=function(t){if(typeof t=="object"||I4t(t))return t;throw new m4t("Can't set "+p4t(t)+" as a prototype")},b4t=A4t,w4t=Wi,$4t=y4t,_4t=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,r={},e;try{e=b4t(Object.prototype,"__proto__","set"),e(r,[]),t=r instanceof Array}catch{}return function(i,o){return w4t(i),$4t(o),t?e(i,o):i.__proto__=o,i}}():void 0),M4t=et,z4t=Ui,E4t=bIt,S4t=f4t,T4t=H4,L4t=xg,rR=S0,k4t=Tr,nR=Hg,O4t=Bee,x4t=E4t.PROPER,s5=O4t.BUGGY_SAFARI_ITERATORS,Z9=k4t("iterator"),iR="keys",l5="values",oR="entries",H4t=function(){return this},M_=function(t,r,e,n,i,o,a){S4t(e,r,n);var s=function(A){if(A===i&&h)return h;if(!s5&&A&&A in u)return u[A];switch(A){case iR:return function(){return new e(this,A)};case l5:return function(){return new e(this,A)};case oR:return function(){return new e(this,A)}}return function(){return new e(this)}},l=r+" Iterator",c=!1,u=t.prototype,g=u[Z9]||u["@@iterator"]||i&&u[i],h=!s5&&g||s(i),d=r==="Array"&&u.entries||g,f,C,v;if(d&&(f=T4t(d.call(new t)),f!==Object.prototype&&f.next&&(L4t(f,l,!0,!0),nR[l]=H4t)),x4t&&i===l5&&g&&g.name!==l5&&(c=!0,h=function(){return z4t(g,this)}),i)if(C={values:s(l5),keys:o?h:s(iR),entries:s(oR)},a)for(v in C)(s5||c||!(v in u))&&rR(u,v,C[v]);else M4t({target:r,proto:!0,forced:s5||c},C);return a&&u[Z9]!==h&&rR(u,Z9,h,{name:i}),nR[r]=h,C},z_=function(t,r){return{value:t,done:r}},V4t=oIt.charAt,P4t=xa,Fee=Nc,R4t=M_,aR=z_,jee="String Iterator",D4t=Fee.set,N4t=Fee.getterFor(jee);R4t(String,"String",function(t){D4t(this,{type:jee,string:P4t(t),index:0})},function(){var r=N4t(this),e=r.string,n=r.index,i;return n>=e.length?aR(void 0,!0):(i=V4t(e,n),r.index+=i.length,aR(i,!1))});var B4t=Ui,sR=Wi,F4t=I_,Uee=function(t,r,e){var n,i;sR(t);try{if(n=F4t(t,"return"),!n){if(r==="throw")throw e;return e}n=B4t(n,t)}catch(o){i=!0,n=o}if(r==="throw")throw e;if(i)throw n;return sR(n),e},j4t=Wi,U4t=Uee,G4t=function(t,r,e,n){try{return n?r(j4t(e)[0],e[1]):r(e)}catch(i){U4t(t,"throw",i)}},W4t=Tr,Z4t=Hg,K4t=W4t("iterator"),Y4t=Array.prototype,Gee=function(t){return t!==void 0&&(Z4t.Array===t||Y4t[K4t]===t)},X4t=Ot,q4t=In,_y=p_,Q4t=X4t(Function.toString);q4t(_y.inspectSource)||(_y.inspectSource=function(t){return Q4t(t)});var J4t=_y.inspectSource,ept=Ot,tpt=Tt,Wee=In,rpt=Dc,npt=Co,ipt=J4t,Zee=function(){},opt=[],Kee=npt("Reflect","construct"),E_=/^\s*(?:class|function)\b/,apt=ept(E_.exec),spt=!E_.test(Zee),ih=function(r){if(!Wee(r))return!1;try{return Kee(Zee,opt,r),!0}catch{return!1}},Yee=function(r){if(!Wee(r))return!1;switch(rpt(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return spt||!!apt(E_,ipt(r))}catch{return!0}};Yee.sham=!0;var V4=!Kee||tpt(function(){var t;return ih(ih.call)||!ih(Object)||!ih(function(){t=!0})||t})?Yee:ih,lpt=S4,cpt=Gi,upt=p0,Vg=function(t,r,e){var n=lpt(r);n in t?cpt.f(t,n,upt(0,e)):t[n]=e},gpt=Dc,lR=I_,hpt=Eg,dpt=Hg,fpt=Tr,Cpt=fpt("iterator"),P4=function(t){if(!hpt(t))return lR(t,Cpt)||lR(t,"@@iterator")||dpt[gpt(t)]},vpt=Ui,Apt=Rc,Ipt=Wi,ppt=Tg,mpt=P4,ypt=TypeError,Xee=function(t,r){var e=arguments.length<2?mpt(t):r;if(Apt(e))return Ipt(vpt(e,t));throw new ypt(ppt(t)+" is not iterable")},bpt=_0,wpt=Ui,$pt=_i,_pt=G4t,Mpt=Gee,zpt=V4,Ept=vo,cR=Vg,Spt=Xee,Tpt=P4,uR=Array,Lpt=function(r){var e=$pt(r),n=zpt(this),i=arguments.length,o=i>1?arguments[1]:void 0,a=o!==void 0;a&&(o=bpt(o,i>2?arguments[2]:void 0));var s=Tpt(e),l=0,c,u,g,h,d,f;if(s&&!(this===uR&&Mpt(s)))for(h=Spt(e,s),d=h.next,u=n?new this:[];!(g=wpt(d,h)).done;l++)f=a?_pt(h,o,[g.value,l],!0):g.value,cR(u,l,f);else for(c=Ept(e),u=n?new this(c):uR(c);c>l;l++)f=a?o(e[l],l):e[l],cR(u,l,f);return u.length=l,u},kpt=Tr,qee=kpt("iterator"),Qee=!1;try{var Opt=0,gR={next:function(){return{done:!!Opt++}},return:function(){Qee=!0}};gR[qee]=function(){return this},Array.from(gR,function(){throw 2})}catch{}var xpt=function(t,r){try{if(!r&&!Qee)return!1}catch{return!1}var e=!1;try{var n={};n[qee]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch{}return e},Hpt=et,Vpt=Lpt,Ppt=xpt,Rpt=!Ppt(function(t){Array.from(t)});Hpt({target:"Array",stat:!0,forced:Rpt},{from:Vpt});var Dpt=Lt,Npt=Dpt.Array.from,Bpt=Npt,Jee=Bpt,Fpt=Jee,Bc=je(Fpt),jpt=Oa,hR=Hg,ete=Nc;Gi.f;var Upt=M_,c5=z_,tte="Array Iterator",Gpt=ete.set,Wpt=ete.getterFor(tte);Upt(Array,"Array",function(t,r){Gpt(this,{type:tte,target:jpt(t),index:0,kind:r})},function(){var t=Wpt(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,c5(void 0,!0);switch(e){case"keys":return c5(n,!1);case"values":return c5(r[n],!1)}return c5([n,r[n]],!1)},"values");hR.Arguments=hR.Array;var Zpt=P4,Kpt=Zpt,Ypt={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xpt=Ypt,qpt=Sr,Qpt=Dc,Jpt=kg,dR=Hg,e3t=Tr,fR=e3t("toStringTag");for(var K9 in Xpt){var CR=qpt[K9],Y9=CR&&CR.prototype;Y9&&Qpt(Y9)!==fR&&Jpt(Y9,fR,K9),dR[K9]=dR.Array}var t3t=Kpt,r3t=t3t,n3t=r3t,i3t=n3t,o3t=i3t,a3t=o3t,rte=a3t,nte=je(rte),s3t=rte,Fc=je(s3t);function we(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var ite={exports:{}},l3t=et,c3t=pn,vR=Gi.f;l3t({target:"Object",stat:!0,forced:Object.defineProperty!==vR,sham:!c3t},{defineProperty:vR});var u3t=Lt,ote=u3t.Object,g3t=ite.exports=function(r,e,n){return ote.defineProperty(r,e,n)};ote.defineProperty.sham&&(g3t.sham=!0);var h3t=ite.exports,d3t=h3t,ate=d3t,f3t=ate,C3t=f3t,v3t=C3t,A3t=v3t,I3t=A3t,R4=je(I3t),p3t=zs,jc=Array.isArray||function(r){return p3t(r)==="Array"},m3t=TypeError,y3t=9007199254740991,S_=function(t){if(t>y3t)throw m3t("Maximum allowed index exceeded");return t},AR=jc,b3t=V4,w3t=mn,$3t=Tr,_3t=$3t("species"),IR=Array,M3t=function(t){var r;return AR(t)&&(r=t.constructor,b3t(r)&&(r===IR||AR(r.prototype))?r=void 0:w3t(r)&&(r=r[_3t],r===null&&(r=void 0))),r===void 0?IR:r},z3t=M3t,T_=function(t,r){return new(z3t(t))(r===0?0:r)},E3t=Tt,S3t=Tr,T3t=b0,L3t=S3t("species"),T0=function(t){return T3t>=51||!E3t(function(){var r=[],e=r.constructor={};return e[L3t]=function(){return{foo:1}},r[t](Boolean).foo!==1})},k3t=et,O3t=Tt,x3t=jc,H3t=mn,V3t=_i,P3t=vo,pR=S_,mR=Vg,R3t=T_,D3t=T0,N3t=Tr,B3t=b0,ste=N3t("isConcatSpreadable"),F3t=B3t>=51||!O3t(function(){var t=[];return t[ste]=!1,t.concat()[0]!==t}),j3t=function(t){if(!H3t(t))return!1;var r=t[ste];return r!==void 0?!!r:x3t(t)},U3t=!F3t||!D3t("concat");k3t({target:"Array",proto:!0,arity:1,forced:U3t},{concat:function(r){var e=V3t(this),n=R3t(e,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;ov;v++)if((s||v in d)&&(p=d[v],m=f(p,v,h),t))if(r)I[v]=m;else if(m)switch(t){case 3:return!0;case 5:return p;case 6:return v;case 2:wR(I,p)}else switch(t){case 4:return!1;case 7:wR(I,p)}return o?-1:n||i?i:I}},J1={forEach:Os(0),map:Os(1),filter:Os(2),some:Os(3),every:Os(4),find:Os(5),findIndex:Os(6),filterReject:Os(7)},N4=et,B4=Sr,k_=Ui,Amt=Ot,Vu=pn,Pu=Sg,Imt=Tt,ln=yn,pmt=Dr,My=Wi,F4=Oa,O_=S4,mmt=xa,zy=p0,Xd=Og,hte=L4,ymt=L0,dte=D4,bmt=E0,fte=zg,Cte=Gi,wmt=x4,vte=M4,$R=S0,$mt=L_,x_=Lg,_mt=O4,Ate=z0,_R=E4,Mmt=Tr,zmt=k0,Emt=Lr,Smt=gte,Tmt=xg,Ite=Nc,j4=J1.forEach,ui=_mt("hidden"),U4="Symbol",qd="prototype",Lmt=Ite.set,MR=Ite.getterFor(U4),So=Object[qd],Fl=B4.Symbol,vh=Fl&&Fl[qd],kmt=B4.RangeError,Omt=B4.TypeError,X9=B4.QObject,pte=fte.f,jl=Cte.f,mte=dte.f,xmt=vte.f,yte=Amt([].push),ds=x_("symbols"),O0=x_("op-symbols"),Hmt=x_("wks"),Ey=!X9||!X9[qd]||!X9[qd].findChild,bte=function(t,r,e){var n=pte(So,r);n&&delete So[r],jl(t,r,e),n&&t!==So&&jl(So,r,n)},Sy=Vu&&Imt(function(){return Xd(jl({},"a",{get:function(){return jl(this,"a",{value:7}).a}})).a!==7})?bte:jl,q9=function(t,r){var e=ds[t]=Xd(vh);return Lmt(e,{type:U4,tag:t,description:r}),Vu||(e.description=r),e},G4=function(r,e,n){r===So&&G4(O0,e,n),My(r);var i=O_(e);return My(n),ln(ds,i)?(n.enumerable?(ln(r,ui)&&r[ui][i]&&(r[ui][i]=!1),n=Xd(n,{enumerable:zy(0,!1)})):(ln(r,ui)||jl(r,ui,zy(1,{})),r[ui][i]=!0),Sy(r,i,n)):jl(r,i,n)},H_=function(r,e){My(r);var n=F4(e),i=hte(n).concat(Mte(n));return j4(i,function(o){(!Vu||k_(wte,n,o))&&G4(r,o,n[o])}),r},Vmt=function(r,e){return e===void 0?Xd(r):H_(Xd(r),e)},wte=function(r){var e=O_(r),n=k_(xmt,this,e);return this===So&&ln(ds,e)&&!ln(O0,e)?!1:n||!ln(this,e)||!ln(ds,e)||ln(this,ui)&&this[ui][e]?n:!0},$te=function(r,e){var n=F4(r),i=O_(e);if(!(n===So&&ln(ds,i)&&!ln(O0,i))){var o=pte(n,i);return o&&ln(ds,i)&&!(ln(n,ui)&&n[ui][i])&&(o.enumerable=!0),o}},_te=function(r){var e=mte(F4(r)),n=[];return j4(e,function(i){!ln(ds,i)&&!ln(Ate,i)&&yte(n,i)}),n},Mte=function(t){var r=t===So,e=mte(r?O0:F4(t)),n=[];return j4(e,function(i){ln(ds,i)&&(!r||ln(So,i))&&yte(n,ds[i])}),n};Pu||(Fl=function(){if(pmt(vh,this))throw new Omt("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:mmt(arguments[0]),e=_R(r),n=function(i){this===So&&k_(n,O0,i),ln(this,ui)&&ln(this[ui],e)&&(this[ui][e]=!1);var o=zy(1,i);try{Sy(this,e,o)}catch(a){if(!(a instanceof kmt))throw a;bte(this,e,o)}};return Vu&&Ey&&Sy(So,e,{configurable:!0,set:n}),q9(e,r)},vh=Fl[qd],$R(vh,"toString",function(){return MR(this).tag}),$R(Fl,"withoutSetter",function(t){return q9(_R(t),t)}),vte.f=wte,Cte.f=G4,wmt.f=H_,fte.f=$te,ymt.f=dte.f=_te,bmt.f=Mte,zmt.f=function(t){return q9(Mmt(t),t)},Vu&&$mt(vh,"description",{configurable:!0,get:function(){return MR(this).description}}));N4({global:!0,constructor:!0,wrap:!0,forced:!Pu,sham:!Pu},{Symbol:Fl});j4(hte(Hmt),function(t){Emt(t)});N4({target:U4,stat:!0,forced:!Pu},{useSetter:function(){Ey=!0},useSimple:function(){Ey=!1}});N4({target:"Object",stat:!0,forced:!Pu,sham:!Vu},{create:Vmt,defineProperty:G4,defineProperties:H_,getOwnPropertyDescriptor:$te});N4({target:"Object",stat:!0,forced:!Pu},{getOwnPropertyNames:_te});Smt();Tmt(Fl,U4);Ate[ui]=!0;var Pmt=Sg,zte=Pmt&&!!Symbol.for&&!!Symbol.keyFor,Rmt=et,Dmt=Co,Nmt=yn,Bmt=xa,Ete=Lg,Fmt=zte,Q9=Ete("string-to-symbol-registry"),jmt=Ete("symbol-to-string-registry");Rmt({target:"Symbol",stat:!0,forced:!Fmt},{for:function(t){var r=Bmt(t);if(Nmt(Q9,r))return Q9[r];var e=Dmt("Symbol")(r);return Q9[r]=e,jmt[e]=r,e}});var Umt=et,Gmt=yn,Wmt=w0,Zmt=Tg,Kmt=Lg,Ymt=zte,zR=Kmt("symbol-to-string-registry");Umt({target:"Symbol",stat:!0,forced:!Ymt},{keyFor:function(r){if(!Wmt(r))throw new TypeError(Zmt(r)+" is not a symbol");if(Gmt(zR,r))return zR[r]}});var Xmt=Ot,ER=jc,qmt=In,SR=zs,Qmt=xa,TR=Xmt([].push),Jmt=function(t){if(qmt(t))return t;if(ER(t)){for(var r=t.length,e=[],n=0;nt.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?arguments[1]:void 0)}});var w7t=bn,$7t=w7t("Array").map,_7t=Dr,M7t=$7t,i6=Array.prototype,z7t=function(t){var r=t.map;return t===i6||_7t(i6,t)&&r===i6.map?M7t:r},E7t=z7t,S7t=E7t,T7t=S7t,Ru=je(T7t),L7t=et,k7t=_i,Wte=L4,O7t=Tt,x7t=O7t(function(){Wte(1)});L7t({target:"Object",stat:!0,forced:x7t},{keys:function(r){return Wte(k7t(r))}});var H7t=Lt,V7t=H7t.Object.keys,P7t=V7t,R7t=P7t,D7t=R7t,mr=je(D7t),N7t=et,B7t=Ot,Zte=Date,F7t=B7t(Zte.prototype.getTime);N7t({target:"Date",stat:!0},{now:function(){return F7t(new Zte)}});var j7t=Lt,U7t=j7t.Date.now,G7t=U7t,W7t=G7t,Z7t=W7t,kA=je(Z7t),K7t=Tt,Pg=function(t,r){var e=[][t];return!!e&&K7t(function(){e.call(null,r||function(){return 1},1)})},Y7t=J1.forEach,X7t=Pg,q7t=X7t("forEach"),Q7t=q7t?[].forEach:function(r){return Y7t(this,r,arguments.length>1?arguments[1]:void 0)},J7t=et,ZR=Q7t;J7t({target:"Array",proto:!0,forced:[].forEach!==ZR},{forEach:ZR});var eyt=bn,tyt=eyt("Array").forEach,ryt=tyt,nyt=ryt,iyt=Dc,oyt=yn,ayt=Dr,syt=nyt,o6=Array.prototype,lyt={DOMTokenList:!0,NodeList:!0},cyt=function(t){var r=t.forEach;return t===o6||ayt(o6,t)&&r===o6.forEach||oyt(lyt,iyt(t))?syt:r},uyt=cyt,Zt=je(uyt),gyt=et,hyt=Ot,dyt=jc,fyt=hyt([].reverse),KR=[1,2];gyt({target:"Array",proto:!0,forced:String(KR)===String(KR.reverse())},{reverse:function(){return dyt(this)&&(this.length=this.length),fyt(this)}});var Cyt=bn,vyt=Cyt("Array").reverse,Ayt=Dr,Iyt=vyt,a6=Array.prototype,pyt=function(t){var r=t.reverse;return t===a6||Ayt(a6,t)&&r===a6.reverse?Iyt:r},myt=pyt,yyt=myt,byt=yyt,Ul=je(byt),YR=Tg,wyt=TypeError,Kte=function(t,r){if(!delete t[r])throw new wyt("Cannot delete property "+YR(r)+" of "+YR(t))},$yt=et,_yt=_i,Myt=M0,zyt=T4,Eyt=vo,Syt=Fte,Tyt=S_,Lyt=T_,kyt=Vg,s6=Kte,Oyt=T0,xyt=Oyt("splice"),Hyt=Math.max,Vyt=Math.min;$yt({target:"Array",proto:!0,forced:!xyt},{splice:function(r,e){var n=_yt(this),i=Eyt(n),o=Myt(r,i),a=arguments.length,s,l,c,u,g,h;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=Vyt(Hyt(zyt(e),0),i-o)),Tyt(i+s-l),c=Lyt(n,l),u=0;ui-l+s;u--)s6(n,u-1)}else if(s>l)for(u=i-l;u>o;u--)g=u+l-1,h=u+s-1,g in n?n[h]=n[g]:s6(n,h);for(u=0;u1?arguments[1]:void 0)}});var Yyt=bn,Xyt=Yyt("Array").includes,qyt=mn,Qyt=zs,Jyt=Tr,ebt=Jyt("match"),tbt=function(t){var r;return qyt(t)&&((r=t[ebt])!==void 0?!!r:Qyt(t)==="RegExp")},rbt=tbt,nbt=TypeError,ibt=function(t){if(rbt(t))throw new nbt("The method doesn't accept regular expressions");return t},obt=Tr,abt=obt("match"),sbt=function(t){var r=/./;try{"/./"[t](r)}catch{try{return r[abt]=!1,"/./"[t](r)}catch{}}return!1},lbt=et,cbt=Ot,ubt=ibt,gbt=m0,XR=xa,hbt=sbt,dbt=cbt("".indexOf);lbt({target:"String",proto:!0,forced:!hbt("includes")},{includes:function(r){return!!~dbt(XR(gbt(this)),XR(ubt(r)),arguments.length>1?arguments[1]:void 0)}});var fbt=bn,Cbt=fbt("String").includes,qR=Dr,vbt=Xyt,Abt=Cbt,c6=Array.prototype,u6=String.prototype,Ibt=function(t){var r=t.includes;return t===c6||qR(c6,t)&&r===c6.includes?vbt:typeof t=="string"||t===u6||qR(u6,t)&&r===u6.includes?Abt:r},pbt=Ibt,mbt=pbt,ybt=mbt,I1=je(ybt),bbt=et,wbt=Tt,$bt=_i,Yte=H4,_bt=Dee,Mbt=wbt(function(){Yte(1)});bbt({target:"Object",stat:!0,forced:Mbt,sham:!_bt},{getPrototypeOf:function(r){return Yte($bt(r))}});var zbt=Lt,Ebt=zbt.Object.getPrototypeOf,Sbt=Ebt,Xte=Sbt,Tbt=Xte,QR=je(Tbt),Lbt=et,kbt=J1.filter,Obt=T0,xbt=Obt("filter");Lbt({target:"Array",proto:!0,forced:!xbt},{filter:function(r){return kbt(this,r,arguments.length>1?arguments[1]:void 0)}});var Hbt=bn,Vbt=Hbt("Array").filter,Pbt=Dr,Rbt=Vbt,g6=Array.prototype,Dbt=function(t){var r=t.filter;return t===g6||Pbt(g6,t)&&r===g6.filter?Rbt:r},Nbt=Dbt,Bbt=Nbt,Fbt=Bbt,gi=je(Fbt),R_=` \v\f\r                 \u2028\u2029\uFEFF`,jbt=Ot,Ubt=m0,Gbt=xa,Ly=R_,JR=jbt("".replace),Wbt=RegExp("^["+Ly+"]+"),Zbt=RegExp("(^|[^"+Ly+"])["+Ly+"]+$"),h6=function(t){return function(r){var e=Gbt(Ubt(r));return t&1&&(e=JR(e,Wbt,"")),t&2&&(e=JR(e,Zbt,"$1")),e}},qte={start:h6(1),end:h6(2),trim:h6(3)},Qte=Sr,Kbt=Tt,Ybt=Ot,Xbt=xa,qbt=qte.trim,eD=R_,Zh=Qte.parseInt,tD=Qte.Symbol,rD=tD&&tD.iterator,Jte=/^[+-]?0x/i,Qbt=Ybt(Jte.exec),Jbt=Zh(eD+"08")!==8||Zh(eD+"0x16")!==22||rD&&!Kbt(function(){Zh(Object(rD))}),ewt=Jbt?function(r,e){var n=qbt(Xbt(r));return Zh(n,e>>>0||(Qbt(Jte,n)?16:10))}:Zh,twt=et,nD=ewt;twt({global:!0,forced:parseInt!==nD},{parseInt:nD});var rwt=Lt,nwt=rwt.parseInt,iwt=nwt,owt=iwt,awt=owt,$o=je(awt),swt=et,lwt=A_,cwt=m_.indexOf,uwt=Pg,ky=lwt([].indexOf),ere=!!ky&&1/ky([1],1,-0)<0,gwt=ere||!uwt("indexOf");swt({target:"Array",proto:!0,forced:gwt},{indexOf:function(r){var e=arguments.length>1?arguments[1]:void 0;return ere?ky(this,r,e)||0:cwt(this,r,e)}});var hwt=bn,dwt=hwt("Array").indexOf,fwt=Dr,Cwt=dwt,d6=Array.prototype,vwt=function(t){var r=t.indexOf;return t===d6||fwt(d6,t)&&r===d6.indexOf?Cwt:r},Awt=vwt,Iwt=Awt,pwt=Iwt,zt=je(pwt),mwt=et,ywt=pn,bwt=Og;mwt({target:"Object",stat:!0,sham:!ywt},{create:bwt});var wwt=Lt,$wt=wwt.Object,_wt=function(r,e){return $wt.create(r,e)},Mwt=_wt,tre=Mwt,zwt=tre,Gl=je(zwt),Oy=Lt,Ewt=I0;Oy.JSON||(Oy.JSON={stringify:JSON.stringify});var Swt=function(r,e,n){return Ewt(Oy.JSON.stringify,null,arguments)},Twt=Swt,Lwt=Twt,kwt=Lwt,H0=je(kwt),Owt=typeof Bun=="function"&&Bun&&typeof Bun.version=="string",xwt=TypeError,Hwt=function(t,r){if(te,a=Pwt(n)?n:Fwt(n),s=o?Nwt(arguments,e):[],l=o?function(){Vwt(a,this,s)}:a;return r?t(l,i):t(l)}:t},Uwt=et,ire=Sr,Gwt=nre,iD=Gwt(ire.setInterval,!0);Uwt({global:!0,bind:!0,forced:ire.setInterval!==iD},{setInterval:iD});var Wwt=et,ore=Sr,Zwt=nre,oD=Zwt(ore.setTimeout,!0);Wwt({global:!0,bind:!0,forced:ore.setTimeout!==oD},{setTimeout:oD});var Kwt=Lt,Ywt=Kwt.setTimeout,Xwt=Ywt,Ia=je(Xwt),qwt=_i,aD=M0,Qwt=vo,Jwt=function(r){for(var e=qwt(this),n=Qwt(e),i=arguments.length,o=aD(i>1?arguments[1]:void 0,n),a=i>2?arguments[2]:void 0,s=a===void 0?n:aD(a,n);s>o;)e[o++]=r;return e},e$t=et,t$t=Jwt;e$t({target:"Array",proto:!0},{fill:t$t});var r$t=bn,n$t=r$t("Array").fill,i$t=Dr,o$t=n$t,f6=Array.prototype,a$t=function(t){var r=t.fill;return t===f6||i$t(f6,t)&&r===f6.fill?o$t:r},s$t=a$t,l$t=s$t,c$t=l$t,V0=je(c$t);/*! Hammer.JS - v2.0.17-rc - 2019-12-16 * http://naver.github.io/egjs * * Forked By Naver egjs * Copyright (c) hammerjs * Licensed under the MIT license */function Fo(){return Fo=Object.assign||function(t){for(var r=1;r"u"?{style:{}}:document.createElement("div"),g$t="function",V2=Math.round,gc=Math.abs,D_=Date.now;function W4(t,r){for(var e,n,i=r[0].toUpperCase()+r.slice(1),o=0;o"u"?ns={}:ns=window;var are=W4(u$t.style,"touchAction"),sre=are!==void 0;function h$t(){if(!sre)return!1;var t={},r=ns.CSS&&ns.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){return t[e]=r?ns.CSS.supports("touch-action",e):!0}),t}var lre="compute",cre="auto",Hy="manipulation",Wl="none",Qd="pan-x",Jd="pan-y",h5=h$t(),d$t=/mobile|tablet|ip(ad|hone|od)|android/i,ure="ontouchstart"in ns,f$t=W4(ns,"PointerEvent")!==void 0,C$t=ure&&d$t.test(navigator.userAgent),P0="touch",v$t="pen",N_="mouse",A$t="kinect",I$t=25,Yn=1,Uc=2,Zr=4,Ai=8,OA=1,R0=2,D0=4,N0=8,Du=16,pa=R0|D0,Zl=N0|Du,gre=pa|Zl,hre=["x","y"],xA=["clientX","clientY"];function is(t,r,e){var n;if(t)if(t.forEach)t.forEach(r,e);else if(t.length!==void 0)for(n=0;n-1}function p$t(t){if(El(t,Wl))return Wl;var r=El(t,Qd),e=El(t,Jd);return r&&e?Wl:r||e?r?Qd:Jd:El(t,Hy)?Hy:cre}var dre=function(){function t(e,n){this.manager=e,this.set(n)}var r=t.prototype;return r.set=function(n){n===lre&&(n=this.compute()),sre&&this.manager.element.style&&h5[n]&&(this.manager.element.style[are]=n),this.actions=n.toLowerCase().trim()},r.update=function(){this.set(this.manager.options.touchAction)},r.compute=function(){var n=[];return is(this.manager.recognizers,function(i){Z4(i.options.enable,[i])&&(n=n.concat(i.getTouchAction()))}),p$t(n.join(" "))},r.preventDefaults=function(n){var i=n.srcEvent,o=n.offsetDirection;if(this.manager.session.prevented){i.preventDefault();return}var a=this.actions,s=El(a,Wl)&&!h5[Wl],l=El(a,Jd)&&!h5[Jd],c=El(a,Qd)&&!h5[Qd];if(s){var u=n.pointers.length===1,g=n.distance<2,h=n.deltaTime<250;if(u&&g&&h)return}if(!(c&&l)&&(s||l&&o&pa||c&&o&Zl))return this.preventSrc(i)},r.preventSrc=function(n){this.manager.session.prevented=!0,n.preventDefault()},t}();function B_(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}function fre(t){var r=t.length;if(r===1)return{x:V2(t[0].clientX),y:V2(t[0].clientY)};for(var e=0,n=0,i=0;i=gc(r)?t<0?R0:D0:r<0?N0:Du}function m$t(t,r){var e=r.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};(r.eventType===Yn||o.eventType===Zr)&&(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:e.x,y:e.y}),r.deltaX=i.x+(e.x-n.x),r.deltaY=i.y+(e.y-n.y)}function vre(t,r,e){return{x:r/t||0,y:e/t||0}}function y$t(t,r){return HA(r[0],r[1],xA)/HA(t[0],t[1],xA)}function b$t(t,r){return Vy(r[1],r[0],xA)+Vy(t[1],t[0],xA)}function w$t(t,r){var e=t.lastInterval||r,n=r.timeStamp-e.timeStamp,i,o,a,s;if(r.eventType!==Ai&&(n>I$t||e.velocity===void 0)){var l=r.deltaX-e.deltaX,c=r.deltaY-e.deltaY,u=vre(n,l,c);o=u.x,a=u.y,i=gc(u.x)>gc(u.y)?u.x:u.y,s=Cre(l,c),t.lastInterval=r}else i=e.velocity,o=e.velocityX,a=e.velocityY,s=e.direction;r.velocity=i,r.velocityX=o,r.velocityY=a,r.direction=s}function $$t(t,r){var e=t.session,n=r.pointers,i=n.length;e.firstInput||(e.firstInput=lD(r)),i>1&&!e.firstMultiple?e.firstMultiple=lD(r):i===1&&(e.firstMultiple=!1);var o=e.firstInput,a=e.firstMultiple,s=a?a.center:o.center,l=r.center=fre(n);r.timeStamp=D_(),r.deltaTime=r.timeStamp-o.timeStamp,r.angle=Vy(s,l),r.distance=HA(s,l),m$t(e,r),r.offsetDirection=Cre(r.deltaX,r.deltaY);var c=vre(r.deltaTime,r.deltaX,r.deltaY);r.overallVelocityX=c.x,r.overallVelocityY=c.y,r.overallVelocity=gc(c.x)>gc(c.y)?c.x:c.y,r.scale=a?y$t(a.pointers,n):1,r.rotation=a?b$t(a.pointers,n):0,r.maxPointers=e.prevInput?r.pointers.length>e.prevInput.maxPointers?r.pointers.length:e.prevInput.maxPointers:r.pointers.length,w$t(e,r);var u=t.element,g=r.srcEvent,h;g.composedPath?h=g.composedPath()[0]:g.path?h=g.path[0]:h=g.target,B_(h,u)&&(u=h),r.target=u}function _$t(t,r,e){var n=e.pointers.length,i=e.changedPointers.length,o=r&Yn&&n-i===0,a=r&(Zr|Ai)&&n-i===0;e.isFirst=!!o,e.isFinal=!!a,o&&(t.session={}),e.eventType=r,$$t(t,e),t.emit("hammer.input",e),t.recognize(e),t.session.prevInput=e}function ef(t){return t.trim().split(/\s+/g)}function Kh(t,r,e){is(ef(r),function(n){t.addEventListener(n,e,!1)})}function Yh(t,r,e){is(ef(r),function(n){t.removeEventListener(n,e,!1)})}function cD(t){var r=t.ownerDocument||t;return r.defaultView||r.parentWindow||window}var Rg=function(){function t(e,n){var i=this;this.manager=e,this.callback=n,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(o){Z4(e.options.enable,[e])&&i.handler(o)},this.init()}var r=t.prototype;return r.handler=function(){},r.init=function(){this.evEl&&Kh(this.element,this.evEl,this.domHandler),this.evTarget&&Kh(this.target,this.evTarget,this.domHandler),this.evWin&&Kh(cD(this.element),this.evWin,this.domHandler)},r.destroy=function(){this.evEl&&Yh(this.element,this.evEl,this.domHandler),this.evTarget&&Yh(this.target,this.evTarget,this.domHandler),this.evWin&&Yh(cD(this.element),this.evWin,this.domHandler)},t}();function hc(t,r,e){if(t.indexOf&&!e)return t.indexOf(r);for(var n=0;nl[r]}):n=n.sort()),n}var E$t={touchstart:Yn,touchmove:Uc,touchend:Zr,touchcancel:Ai},S$t="touchstart touchmove touchend touchcancel",j_=function(t){Ao(r,t);function r(){var n;return r.prototype.evTarget=S$t,n=t.apply(this,arguments)||this,n.targetIds={},n}var e=r.prototype;return e.handler=function(i){var o=E$t[i.type],a=T$t.call(this,i,o);a&&this.callback(this.manager,o,{pointers:a[0],changedPointers:a[1],pointerType:P0,srcEvent:i})},r}(Rg);function T$t(t,r){var e=tf(t.touches),n=this.targetIds;if(r&(Yn|Uc)&&e.length===1)return n[e[0].identifier]=!0,[e,e];var i,o,a=tf(t.changedTouches),s=[],l=this.target;if(o=e.filter(function(c){return B_(c.target,l)}),r===Yn)for(i=0;i-1&&i.splice(s,1)};setTimeout(o,x$t)}}function H$t(t,r){t&Yn?(this.primaryTouch=r.changedPointers[0].identifier,gD.call(this,r)):t&(Zr|Ai)&&gD.call(this,r)}function V$t(t){for(var r=t.srcEvent.clientX,e=t.srcEvent.clientY,n=0;n-1&&this.requireFail.splice(i,1),this},r.hasRequireFailures=function(){return this.requireFail.length>0},r.canRecognizeWith=function(n){return!!this.simultaneous[n.id]},r.emit=function(n){var i=this,o=this.state;function a(s){i.manager.emit(s,n)}o=p1&&a(i.options.event+hD(o))},r.tryEmit=function(n){if(this.canEmit())return this.emit(n);this.state=la},r.canEmit=function(){for(var n=0;no.threshold&&l&o.direction},e.attrTest=function(i){return Bu.prototype.attrTest.call(this,i)&&(this.state&co||!(this.state&co)&&this.directionTest(i))},e.emit=function(i){this.pX=i.deltaX,this.pY=i.deltaY;var o=yre(i.direction);o&&(i.additionalEvent=this.options.event+o),t.prototype.emit.call(this,i)},r}(Bu),bre=function(t){Ao(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Fo({event:"swipe",threshold:10,velocity:.3,direction:pa|Zl,pointers:1},n))||this}var e=r.prototype;return e.getTouchAction=function(){return G_.prototype.getTouchAction.call(this)},e.attrTest=function(i){var o=this.options.direction,a;return o&(pa|Zl)?a=i.overallVelocity:o&pa?a=i.overallVelocityX:o&Zl&&(a=i.overallVelocityY),t.prototype.attrTest.call(this,i)&&o&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers===this.options.pointers&&gc(a)>this.options.velocity&&i.eventType&Zr},e.emit=function(i){var o=yre(i.offsetDirection);o&&this.manager.emit(this.options.event+o,i),this.manager.emit(this.options.event,i)},r}(Bu),wre=function(t){Ao(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Fo({event:"pinch",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Wl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&co)},e.emit=function(i){if(i.scale!==1){var o=i.scale<1?"in":"out";i.additionalEvent=this.options.event+o}t.prototype.emit.call(this,i)},r}(Bu),$re=function(t){Ao(r,t);function r(n){return n===void 0&&(n={}),t.call(this,Fo({event:"rotate",threshold:0,pointers:2},n))||this}var e=r.prototype;return e.getTouchAction=function(){return[Wl]},e.attrTest=function(i){return t.prototype.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&co)},r}(Bu),_re=function(t){Ao(r,t);function r(n){var i;return n===void 0&&(n={}),i=t.call(this,Fo({event:"press",pointers:1,time:251,threshold:9},n))||this,i._timer=null,i._input=null,i}var e=r.prototype;return e.getTouchAction=function(){return[cre]},e.process=function(i){var o=this,a=this.options,s=i.pointers.length===a.pointers,l=i.distancea.time;if(this._input=i,!l||!s||i.eventType&(Zr|Ai)&&!c)this.reset();else if(i.eventType&Yn)this.reset(),this._timer=setTimeout(function(){o.state=os,o.tryEmit()},a.time);else if(i.eventType&Zr)return os;return la},e.reset=function(){clearTimeout(this._timer)},e.emit=function(i){this.state===os&&(i&&i.eventType&Zr?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=D_(),this.manager.emit(this.options.event,this._input)))},r}(B0),Mre={domEvents:!1,touchAction:lre,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},dD=[[$re,{enable:!1}],[wre,{enable:!1},["rotate"]],[bre,{direction:pa}],[G_,{direction:pa},["swipe"]],[Py],[Py,{event:"doubletap",taps:2},["tap"]],[_re]],N$t=1,fD=2;function CD(t,r){var e=t.element;if(e.style){var n;is(t.options.cssProps,function(i,o){n=W4(e.style,o),r?(t.oldCssProps[n]=e.style[n],e.style[n]=i):e.style[n]=t.oldCssProps[n]||""}),r||(t.oldCssProps={})}}function B$t(t,r){var e=document.createEvent("Event");e.initEvent(t,!0,!0),e.gesture=r,r.target.dispatchEvent(e)}var vD=function(){function t(e,n){var i=this;this.options=uc({},Mre,n||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=P$t(this),this.touchAction=new dre(this,this.options.touchAction),CD(this,!0),is(this.options.recognizers,function(o){var a=i.add(new o[0](o[1]));o[2]&&a.recognizeWith(o[2]),o[3]&&a.requireFailure(o[3])},this)}var r=t.prototype;return r.set=function(n){return uc(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},r.stop=function(n){this.session.stopped=n?fD:N$t},r.recognize=function(n){var i=this.session;if(!i.stopped){this.touchAction.preventDefaults(n);var o,a=this.recognizers,s=i.curRecognizer;(!s||s&&s.state&os)&&(i.curRecognizer=null,s=null);for(var l=0;l\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=window.console&&(window.console.warn||window.console.log);return a&&a.call(window.console,n,o),t.apply(this,arguments)}}var Ere=zre(function(t,r,e){for(var n=Object.keys(r),i=0;i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function X$t(t,r){var e;if(t){if(typeof t=="string")return ID(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ID(t,r)}}function ID(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e>>0,i-=t,i*=t,t=i>>>0,i-=t,t+=i*4294967296}return(t>>>0)*23283064365386963e-26}}function e_t(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}var W_=typeof window<"u"?window.Hammer||Y$t:function(){return e_t()};function ca(t){var r=this,e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)});var n=W_(this._dom.overlay);n.on("tap",ve(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(function(){n.destroy()});var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Zt(i).call(i,function(o){n.on(o,function(a){a.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=function(o){t_t(o.target,t)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(function(){document.body.removeEventListener("click",r._onClick)})),this._escListener=function(o){("key"in o?o.key==="Escape":o.keyCode===27)&&r.deactivate()}}kee(ca.prototype);ca.current=null;ca.prototype.destroy=function(){var t,r;this.deactivate();var e=Tre(Ul(t=rs(r=this._cleanupQueue).call(r,0)).call(t)),n;try{for(e.s();!(n=e.n()).done;){var i=n.value;i()}}catch(o){e.e(o)}finally{e.f()}};ca.prototype.activate=function(){ca.current&&ca.current.deactivate(),ca.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};ca.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};ca.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};function t_t(t,r){for(;t;){if(t===r)return!0;t=t.parentNode}return!1}var r_t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,n_t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i_t=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,o_t=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Ks(t){if(t)for(;t.hasChildNodes()===!0;){var r=t.firstChild;r&&(Ks(r),t.removeChild(r))}}function tu(t){return t instanceof String||typeof t=="string"}function pD(t){return Gt(t)==="object"&&t!==null}function dc(t,r,e,n){var i=!1;n===!0&&(i=r[e]===null&&t[e]!==void 0),i?delete t[e]:t[e]=r[e]}function Lre(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(var n in t)if(r[n]!==void 0)if(r[n]===null||Gt(r[n])!=="object")dc(t,r,n,e);else{var i=t[n],o=r[n];pD(i)&&pD(o)&&Lre(i,o,e)}}function Dg(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Bt(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i3&&arguments[3]!==void 0?arguments[3]:!1;if(Bt(e))throw new TypeError("Arrays are not supported by deepExtend");for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!I1(t).call(t,i))if(e[i]&&e[i].constructor===Object)r[i]===void 0&&(r[i]={}),r[i].constructor===Object?tr(r[i],e[i]):dc(r,e,i,n);else if(Bt(e[i])){r[i]=[];for(var o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)||e===!0)if(Gt(r[i])==="object"&&r[i]!==null&&QR(r[i])===Object.prototype)t[i]===void 0?t[i]=tr({},r[i],e):Gt(t[i])==="object"&&t[i]!==null&&QR(t[i])===Object.prototype?tr(t[i],r[i],e):dc(t,r,i,n);else if(Bt(r[i])){var o;t[i]=zn(o=r[i]).call(o)}else dc(t,r,i,n);return t}function PA(t,r){var e;return P_(e=[]).call(e,ra(t),[r])}function a_t(t){return zn(t).call(t)}function s_t(t){return t.getBoundingClientRect().left}function l_t(t){return t.getBoundingClientRect().top}function vt(t,r){if(Bt(t))for(var e=t.length,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=function(f){return f!=null},o=function(f){return f!==null&&Gt(f)==="object"},a=function(f){for(var C in f)if(Object.prototype.hasOwnProperty.call(f,C))return!1;return!0};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(r))throw new Error("Parameter options must be an object");if(!i(e))throw new Error("Parameter option must have a value");if(!o(n))throw new Error("Parameter globalOptions must be an object");var s=function(f,C,v){o(f[v])||(f[v]={});var A=C[v],I=f[v];for(var p in A)Object.prototype.hasOwnProperty.call(A,p)&&(I[p]=A[p])},l=r[e],c=o(n)&&!a(n),u=c?n[e]:void 0,g=u?u.enabled:void 0;if(l!==void 0){if(typeof l=="boolean"){o(t[e])||(t[e]={}),t[e].enabled=l;return}if(l===null&&!o(t[e]))if(i(u))t[e]=Gl(u);else return;if(o(l)){var h=!0;l.enabled!==void 0?h=l.enabled:g!==void 0&&(h=u.enabled),s(t,r,e),t[e].enabled=h}}}var g_t={linear:function(r){return r},easeInQuad:function(r){return r*r},easeOutQuad:function(r){return r*(2-r)},easeInOutQuad:function(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic:function(r){return r*r*r},easeOutCubic:function(r){return--r*r*r+1},easeInOutCubic:function(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart:function(r){return r*r*r*r},easeOutQuart:function(r){return 1- --r*r*r*r},easeInOutQuart:function(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint:function(r){return r*r*r*r*r},easeOutQuint:function(r){return 1+--r*r*r*r*r},easeInOutQuint:function(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function Ys(t,r){var e;Bt(r)||(r=[r]);var n=Tre(t),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o){e=o[r[0]];for(var a=1;a0&&arguments[0]!==void 0?arguments[0]:1;we(this,t),this.pixelRatio=r,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return $e(t,[{key:"insertTo",value:function(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}},{key:"setCloseCallback",value:function(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}},{key:"_isColorString",value:function(e){if(typeof e=="string")return h_t[e]}},{key:"setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e!=="none"){var i,o=this._isColorString(e);if(o!==void 0&&(e=o),tu(e)===!0){if(xre(e)===!0){var a=e.substr(4).substr(0,e.length-5).split(",");i={r:a[0],g:a[1],b:a[2],a:1}}else if(u_t(e)===!0){var s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(Ore(e)===!0){var l=Z_(e);i={r:l.r,g:l.g,b:l.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){var c=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:c}}if(i===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+H0(e));this._setColor(i,n)}}},{key:"show",value:function(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;n===!0&&(this.previousColor=Wr({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",Ia(function(){e.closeCallback!==void 0&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n===!0&&(this.initialColor=Wr({},e)),this.color=e;var i=Ah(e.r,e.g,e.b),o=2*Math.PI,a=this.r*i.s,s=this.centerCoordinates.x+a*Math.sin(o*i.h),l=this.centerCoordinates.y+a*Math.cos(o*i.h);this.colorPickerSelector.style.left=s-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var n=Ah(this.color.r,this.color.g,this.color.b);n.v=e/100;var i=sv(n.h,n.s,n.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,n=Ah(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,o,a),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-n.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),V0(i).call(i),this.brightnessRange.value=100*n.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,n,i,o;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var s=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var a=document.createElement("DIV");a.style.color="red",a.style.fontWeight="bold",a.style.padding="10px",a.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(a)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var l=this;this.opacityRange.onchange=function(){l._setOpacity(this.value)},this.opacityRange.oninput=function(){l._setOpacity(this.value)},this.brightnessRange.onchange=function(){l._setBrightness(this.value)},this.brightnessRange.oninput=function(){l._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=ve(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=ve(n=this._apply).call(n,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=ve(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=ve(o=this._loadLast).call(o,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new W_(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",function(n){n.isFirst&&e._moveSelector(n)}),this.hammer.on("tap",function(n){e._moveSelector(n)}),this.hammer.on("panstart",function(n){e._moveSelector(n)}),this.hammer.on("panmove",function(n){e._moveSelector(n)}),this.hammer.on("panend",function(n){e._moveSelector(n)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,n,i);var o,a,s,l;this.centerCoordinates={x:n*.5,y:i*.5},this.r=.49*n;var c=2*Math.PI/360,u=1/360,g=1/this.r,h;for(s=0;s<360;s++)for(l=0;l3&&arguments[3]!==void 0?arguments[3]:1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!1};we(this,t),this.parent=r,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Wr(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new d_t(i),this.wrapper=void 0}return $e(t,[{key:"setOptions",value:function(e){if(e!==void 0){this.popupHistory={},this._removePopup();var n=!0;if(typeof e=="string")this.options.filter=e;else if(Bt(e))this.options.filter=e.join();else if(Gt(e)==="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),gi(e)!==void 0&&(this.options.filter=gi(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(n=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,n=e):typeof e=="function"&&(this.options.filter=e,n=!0);gi(this.options)===!1&&(n=!1),this.options.enabled=n}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=gi(this.options),n=0,i=!1;for(var o in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,o)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(o,[]),i=i||this._handleObject(this.configureOptions[o],[o],!0)):(e===!0||zt(e).call(e,o)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(o),this._handleObject(this.configureOptions[o],[o])),n++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?i-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:!1,o=document.createElement("div");if(o.className="vis-configuration vis-config-label vis-config-s"+n.length,i===!0){for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(Ny("i","b",e))}else o.innerText=e+":";return o}},{key:"_makeDropdown",value:function(e,n,i){var o=document.createElement("select");o.className="vis-configuration vis-config-select";var a=0;n!==void 0&&zt(e).call(e,n)!==-1&&(a=zt(e).call(e,n));for(var s=0;ss&&s!==1&&(c.max=Math.ceil(n*h),g=c.max,u="range increased"),c.value=n}else c.value=o;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=c.value;var f=this;c.onchange=function(){d.value=this.value,f._update(Number(this.value),i)},c.oninput=function(){d.value=this.value};var C=this._makeLabel(i[i.length-1],i),v=this._makeItem(i,C,c,d);u!==""&&this.popupHistory[v]!==g&&(this.popupHistory[v]=g,this._setupPopup(u,v))}},{key:"_makeButton",value:function(){var e=this;if(this.options.showButton===!0){var n=document.createElement("div");n.className="vis-configuration vis-config-button",n.innerText="generate options",n.onclick=function(){e._printOptions()},n.onmouseover=function(){n.className="vis-configuration vis-config-button hover"},n.onmouseout=function(){n.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(n)}}},{key:"_setupPopup",value:function(e,n){var i=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,a=gi(this.options),s=!1;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){o=!0;var c=e[l],u=PA(n,l);if(typeof a=="function"&&(o=a(l,n),o===!1&&!Bt(c)&&typeof c!="string"&&typeof c!="boolean"&&c instanceof Object&&(this.allowCreation=!1,o=this._handleObject(c,u,!0),this.allowCreation=i===!1)),o!==!1){s=!0;var g=this._getValue(u);if(Bt(c))this._handleArray(c,g,u);else if(typeof c=="string")this._makeTextInput(c,g,u);else if(typeof c=="boolean")this._makeCheckbox(c,g,u);else if(c instanceof Object){if(!this.hideOption(n,l,this.moduleOptions))if(c.enabled!==void 0){var h=PA(u,"enabled"),d=this._getValue(h);if(d===!0){var f=this._makeLabel(l,u,!0);this._makeItem(u,f),s=this._handleObject(c,u)||s}else this._makeCheckbox(c,d,u)}else{var C=this._makeLabel(l,u,!0);this._makeItem(u,C),s=this._handleObject(c,u)||s}}else console.error("dont know how to handle",c,l,u)}}return s}},{key:"_handleArray",value:function(e,n,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,n,i),e[1]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="string"?(this._makeDropdown(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:n})):typeof e[0]=="number"&&(this._makeRange(e,n,i),e[0]!==n&&this.changedOptions.push({path:i,value:Number(n)}))}},{key:"_update",value:function(e,n){var i=this._constructOptions(e,n);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(var a=0;aa-this.padding&&(c=!0),c?s=this.x-i:s=this.x,u?l=this.y-n:l=this.y}else l=this.y-n,l+n+this.padding>o&&(l=o-n-this.padding),la&&(s=a-i-this.padding),sa.distance?c=" in "+t.printLocation(o.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):o.distance<=s?c='. Did you mean "'+o.closestMatch+'"?'+t.printLocation(o.path,e):c=". Did you mean one of these: "+t.print(mr(n))+t.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+c,By),oh=!0}},{key:"findInOptions",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=1e9,s="",l=[],c=e.toLowerCase(),u=void 0;for(var g in n){var h=void 0;if(n[g].__type__!==void 0&&o===!0){var d=t.findInOptions(e,n[g],PA(i,g));a>d.distance&&(s=d.closestMatch,l=d.path,a=d.distance,u=d.indexMatch)}else{var f;zt(f=g.toLowerCase()).call(f,c)!==-1&&(u=g),h=t.levenshteinDistance(e,g),a>h&&(s=g,l=a_t(i),a=h)}}return{closestMatch:s,path:l,distance:a,indexMatch:u}}},{key:"printLocation",value:function(e,n){for(var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at: `,o=` `+i+`options = { `,a=0;a":!0,"--":!0},r1="",Fu=0,ht="",Xe="",oi=Dn.NULL;function b_t(){Fu=0,ht=r1.charAt(0)}function rn(){Fu++,ht=r1.charAt(Fu)}function u2(){return r1.charAt(Fu+1)}function bD(t){var r=t.charCodeAt(0);return r<47?r===35||r===46:r<59?r>47:r<91?r>64:r<96?r===95:r<123?r>96:!1}function T1(t,r){if(t||(t={}),r)for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e]);return t}function w_t(t,r,e){for(var n=r.split("."),i=t;n.length;){var o=n.shift();n.length?(i[o]||(i[o]={}),i=i[o]):i[o]=e}}function Pre(t,r){for(var e,n,i=null,o=[t],a=t;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes){for(e=0,n=a.nodes.length;e=0;e--){var s,l=o[e];l.nodes||(l.nodes=[]),zt(s=l.nodes).call(s,i)===-1&&l.nodes.push(i)}r.attr&&(i.attr=T1(i.attr,r.attr))}function $_t(t,r){if(t.edges||(t.edges=[]),t.edges.push(r),t.edge){var e=T1({},t.edge);r.attr=T1(e,r.attr)}}function Rre(t,r,e,n,i){var o={from:r,to:e,type:n};return t.edge&&(o.attr=T1({},t.edge)),o.attr=T1(o.attr||{},i),i!=null&&i.hasOwnProperty("arrows")&&i.arrows!=null&&(o.arrows={to:{enabled:!0,type:i.arrows.type}},i.arrows=null),o}function nr(){for(oi=Dn.NULL,Xe="";ht===" "||ht===" "||ht===` `||ht==="\r";)rn();do{var t=!1;if(ht==="#"){for(var r=Fu-1;r1.charAt(r)===" "||r1.charAt(r)===" ";)r--;if(r1.charAt(r)===` `||r1.charAt(r)===""){for(;ht!=""&&ht!=` `;)rn();t=!0}}if(ht==="/"&&u2()==="/"){for(;ht!=""&&ht!=` `;)rn();t=!0}if(ht==="/"&&u2()==="*"){for(;ht!="";)if(ht==="*"&&u2()==="/"){rn(),rn();break}else rn();t=!0}for(;ht===" "||ht===" "||ht===` `||ht==="\r";)rn()}while(t);if(ht===""){oi=Dn.DELIMITER;return}var e=ht+u2();if(yD[e]){oi=Dn.DELIMITER,Xe=e,rn(),rn();return}if(yD[ht]){oi=Dn.DELIMITER,Xe=ht,rn();return}if(bD(ht)||ht==="-"){for(Xe+=ht,rn();bD(ht);)Xe+=ht,rn();Xe==="false"?Xe=!1:Xe==="true"?Xe=!0:isNaN(Number(Xe))||(Xe=Number(Xe)),oi=Dn.IDENTIFIER;return}if(ht==='"'){for(rn();ht!=""&&(ht!='"'||ht==='"'&&u2()==='"');)ht==='"'?(Xe+=ht,rn()):ht==="\\"&&u2()==="n"?(Xe+=` `,rn()):Xe+=ht,rn();if(ht!='"')throw Nn('End of string " expected');rn(),oi=Dn.IDENTIFIER;return}for(oi=Dn.UNKNOWN;ht!="";)Xe+=ht,rn();throw new SyntaxError('Syntax error in part "'+Fre(Xe,30)+'"')}function __t(){var t={};if(b_t(),nr(),Xe==="strict"&&(t.strict=!0,nr()),(Xe==="graph"||Xe==="digraph")&&(t.type=Xe,nr()),oi===Dn.IDENTIFIER&&(t.id=Xe,nr()),Xe!="{")throw Nn("Angle bracket { expected");if(nr(),Dre(t),Xe!="}")throw Nn("Angle bracket } expected");if(nr(),Xe!=="")throw Nn("End of file expected");return nr(),delete t.node,delete t.edge,delete t.graph,t}function Dre(t){for(;Xe!==""&&Xe!="}";)M_t(t),Xe===";"&&nr()}function M_t(t){var r=Nre(t);if(r){Bre(t,r);return}var e=z_t(t);if(!e){if(oi!=Dn.IDENTIFIER)throw Nn("Identifier expected");var n=Xe;if(nr(),Xe==="="){if(nr(),oi!=Dn.IDENTIFIER)throw Nn("Identifier expected");t[n]=Xe,nr()}else E_t(t,n)}}function Nre(t){var r=null;if(Xe==="subgraph"&&(r={},r.type="subgraph",nr(),oi===Dn.IDENTIFIER&&(r.id=Xe,nr())),Xe==="{"){if(nr(),r||(r={}),r.parent=t,r.node=t.node,r.edge=t.edge,r.graph=t.graph,Dre(r),Xe!="}")throw Nn("Angle bracket } expected");nr(),delete r.node,delete r.edge,delete r.graph,delete r.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(r)}return r}function z_t(t){return Xe==="node"?(nr(),t.node=Xh(),"node"):Xe==="edge"?(nr(),t.edge=Xh(),"edge"):Xe==="graph"?(nr(),t.graph=Xh(),"graph"):null}function E_t(t,r){var e={id:r},n=Xh();n&&(e.attr=n),Pre(t,e),Bre(t,r)}function Bre(t,r){for(;Xe==="->"||Xe==="--";){var e,n=Xe;nr();var i=Nre(t);if(i)e=i;else{if(oi!=Dn.IDENTIFIER)throw Nn("Identifier or subgraph expected");e=Xe,Pre(t,{id:e}),nr()}var o=Xh(),a=Rre(t,r,e,n,o);$_t(t,a),r=e}}function Xh(){for(var t,r=null,e={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},i=new Array,o=new Array;Xe==="[";){for(nr(),r={};Xe!==""&&Xe!="]";){if(oi!=Dn.IDENTIFIER)throw Nn("Attribute name expected");var a=Xe;if(nr(),Xe!="=")throw Nn("Equal sign = expected");if(nr(),oi!=Dn.IDENTIFIER)throw Nn("Attribute value expected");var s=Xe;a==="style"&&(s=e[s]);var l;a==="arrowhead"&&(l=n[s],a="arrows",s={to:{enabled:!0,type:l}}),a==="arrowtail"&&(l=n[s],a="arrows",s={from:{enabled:!0,type:l}}),i.push({attr:r,name:a,value:s}),o.push(a),nr(),Xe==","&&nr()}if(Xe!="]")throw Nn("Bracket ] expected");nr()}if(I1(o).call(o,"dir")){var c={};for(c.arrows={},t=0;t"&&(l.arrows="to"),l};Zt(i=r.edges).call(i,function(a){var s,l;if(a.from instanceof Object?s=a.from.nodes:s={id:a.from},a.to instanceof Object?l=a.to.nodes:l={id:a.to},a.from instanceof Object&&a.from.edges){var c;Zt(c=a.from.edges).call(c,function(g){var h=o(g);e.edges.push(h)})}if(S_t(s,l,function(g,h){var d=Rre(e,g.id,h.id,a.type,a.attr),f=o(d);e.edges.push(f)}),a.to instanceof Object&&a.to.edges){var u;Zt(u=a.to.edges).call(u,function(g){var h=o(g);e.edges.push(h)})}})}return r.attr&&(e.options=r.attr),e}function L_t(t,r){var e,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};r!=null&&(r.fixed!=null&&(n.nodes.fixed=r.fixed),r.parseColor!=null&&(n.nodes.parseColor=r.parseColor),r.inheritColor!=null&&(n.edges.inheritColor=r.inheritColor));var i=t.edges,o=Ru(i).call(i,function(s){var l={from:s.source,id:s.id,to:s.target};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.type==="Directed"&&(l.arrows="to"),s.color&&n.edges.inheritColor===!1&&(l.color=s.color),l}),a=Ru(e=t.nodes).call(e,function(s){var l={id:s.id,fixed:n.nodes.fixed&&s.x!=null&&s.y!=null};return s.attributes!=null&&(l.attributes=s.attributes),s.label!=null&&(l.label=s.label),s.size!=null&&(l.size=s.size),s.attributes!=null&&s.attributes.title!=null&&(l.title=s.attributes.title),s.title!=null&&(l.title=s.title),s.x!=null&&(l.x=s.x),s.y!=null&&(l.y=s.y),s.color!=null&&(n.nodes.parseColor===!0?l.color=s.color:l.color={background:s.color,border:s.color,highlight:{background:s.color,border:s.color},hover:{background:s.color,border:s.color}}),l});return{nodes:a,edges:o}}var k_t={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},O_t={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},x_t={addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},H_t={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},V_t={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},P_t={addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},R_t={addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},D_t={addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},N_t={addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"},B_t={addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},F_t={addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},j_t=Object.freeze({__proto__:null,cn:D_t,cs:F_t,de:O_t,en:k_t,es:x_t,fr:B_t,it:H_t,nl:V_t,pt:P_t,ru:R_t,uk:N_t});function U_t(t,r){try{var e=r.split(/[-_ /]/,2),n=yr(e,2),i=n[0],o=n[1],a=i!=null?i.toLowerCase():null,s=o!=null?o.toUpperCase():null;if(a&&s){var l=a+"-"+s;if(Object.prototype.hasOwnProperty.call(t,l))return l;var c;console.warn(P_(c="Unknown variant ".concat(s," of language ")).call(c,a,"."))}if(a){var u=a;if(Object.prototype.hasOwnProperty.call(t,u))return u;console.warn("Unknown language ".concat(a))}return console.warn("Unknown locale ".concat(r,", falling back to English.")),"en"}catch(g){return console.error(g),console.warn("Unexpected error while normalizing locale ".concat(r,", falling back to English.")),"en"}}var G_t=function(){function t(){we(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return $e(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var e=this.image.width,n=this.image.height;this.width=e,this.height=n;var i=Math.floor(n/2),o=Math.floor(n/4),a=Math.floor(n/8),s=Math.floor(n/16),l=Math.floor(e/2),c=Math.floor(e/4),u=Math.floor(e/8),g=Math.floor(e/16);this.canvas.width=3*c,this.canvas.height=i,this.coordinates=[[0,0,l,i],[l,0,c,o],[l,o,u,a],[5*u,o,g,s]],this._fillMipMap()}}},{key:"initialized",value:function(){return this.coordinates!==void 0}},{key:"_fillMipMap",value:function(){var e=this.canvas.getContext("2d"),n=this.coordinates[0];e.drawImage(this.image,n[0],n[1],n[2],n[3]);for(var i=1;i2){n*=.5;for(var l=0;n>2&&l=this.NUM_ITERATIONS&&(l=this.NUM_ITERATIONS-1);var c=this.coordinates[l];e.drawImage(this.canvas,c[0],c[1],c[2],c[3],i,o,a,s)}else e.drawImage(this.image,i,o,a,s)}}]),t}(),W_t=function(){function t(r){we(this,t),this.images={},this.imageBroken={},this.callback=r}return $e(t,[{key:"_tryloadBrokenUrl",value:function(e,n,i){if(!(e===void 0||i===void 0)){if(n===void 0){console.warn("No broken url image defined");return}i.image.onerror=function(){console.error("Could not load brokenImage:",n)},i.image.src=n}}},{key:"_redrawWithImage",value:function(e){this.callback&&this.callback(e)}},{key:"load",value:function(e,n){var i=this,o=this.images[e];if(o)return o;var a=new G_t;return this.images[e]=a,a.image.onload=function(){i._fixImageCoordinates(a.image),a.init(),i._redrawWithImage(a)},a.image.onerror=function(){console.error("Could not load image:",e),i._tryloadBrokenUrl(e,n,a)},a.image.src=e,a}},{key:"_fixImageCoordinates",value:function(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}}]),t}(),jre={exports:{}},Z_t=Tt,K_t=Z_t(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Y_t=Tt,X_t=mn,q_t=zs,$D=K_t,lv=Object.isExtensible,Q_t=Y_t(function(){lv(1)}),J_t=Q_t||$D?function(r){return!X_t(r)||$D&&q_t(r)==="ArrayBuffer"?!1:lv?lv(r):!0}:lv,eMt=Tt,Ure=!eMt(function(){return Object.isExtensible(Object.preventExtensions({}))}),tMt=et,rMt=Ot,nMt=z0,iMt=mn,Y_=yn,oMt=Gi.f,_D=L0,aMt=D4,X_=J_t,sMt=E4,lMt=Ure,Gre=!1,fs=sMt("meta"),cMt=0,q_=function(t){oMt(t,fs,{value:{objectID:"O"+cMt++,weakData:{}}})},uMt=function(t,r){if(!iMt(t))return typeof t=="symbol"?t:(typeof t=="string"?"S":"P")+t;if(!Y_(t,fs)){if(!X_(t))return"F";if(!r)return"E";q_(t)}return t[fs].objectID},gMt=function(t,r){if(!Y_(t,fs)){if(!X_(t))return!0;if(!r)return!1;q_(t)}return t[fs].weakData},hMt=function(t){return lMt&&Gre&&X_(t)&&!Y_(t,fs)&&q_(t),t},dMt=function(){fMt.enable=function(){},Gre=!0;var t=_D.f,r=rMt([].splice),e={};e[fs]=1,t(e).length&&(_D.f=function(n){for(var i=t(n),o=0,a=i.length;og;g++)if(d=A(t[g]),d&&MD(ED,d))return d;return new cv(!1)}c=yMt(t,u)}for(f=o?t.next:c.next;!(C=vMt(f,c)).done;){try{d=A(C.value)}catch(I){zD(c,"throw",I)}if(typeof d=="object"&&d&&MD(ED,d))return d}return new cv(!1)},$Mt=Dr,_Mt=TypeError,J_=function(t,r){if($Mt(r,t))return t;throw new _Mt("Incorrect invocation")},MMt=et,zMt=Sr,EMt=Y4,SMt=Tt,TMt=kg,LMt=Q_,kMt=J_,OMt=In,xMt=mn,HMt=Eg,VMt=xg,PMt=Gi.f,RMt=J1.forEach,DMt=pn,Wre=Nc,NMt=Wre.set,BMt=Wre.getterFor,eM=function(t,r,e){var n=t.indexOf("Map")!==-1,i=t.indexOf("Weak")!==-1,o=n?"set":"add",a=zMt[t],s=a&&a.prototype,l={},c;if(!DMt||!OMt(a)||!(i||s.forEach&&!SMt(function(){new a().entries().next()})))c=e.getConstructor(r,t,n,o),EMt.enable();else{c=r(function(h,d){NMt(kMt(h,u),{type:t,collection:new a}),HMt(d)||LMt(d,h[o],{that:h,AS_ENTRIES:n})});var u=c.prototype,g=BMt(t);RMt(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var d=h==="add"||h==="set";h in s&&!(i&&h==="clear")&&TMt(u,h,function(f,C){var v=g(this).collection;if(!d&&i&&!xMt(f))return h==="get"?void 0:!1;var A=v[h](f===0?0:f,C);return d?this:A})}),i||PMt(u,"size",{configurable:!0,get:function(){return g(this).collection.size}})}return VMt(c,t,!1,!0),l[t]=c,MMt({global:!0,forced:!0},l),i||e.setStrong(c,t,n),c},FMt=S0,tM=function(t,r,e){for(var n in r)e&&e.unsafe&&t[n]?t[n]=r[n]:FMt(t,n,r[n],e);return t},jMt=Co,UMt=L_,GMt=Tr,WMt=pn,SD=GMt("species"),ZMt=function(t){var r=jMt(t);WMt&&r&&!r[SD]&&UMt(r,SD,{configurable:!0,get:function(){return this}})},KMt=Og,YMt=L_,TD=tM,XMt=_0,qMt=J_,QMt=Eg,JMt=Q_,ezt=M_,f5=z_,tzt=ZMt,ah=pn,LD=Y4.fastKey,Zre=Nc,kD=Zre.set,v6=Zre.getterFor,Kre={getConstructor:function(t,r,e,n){var i=t(function(c,u){qMt(c,o),kD(c,{type:r,index:KMt(null),first:void 0,last:void 0,size:0}),ah||(c.size=0),QMt(u)||JMt(u,c[n],{that:c,AS_ENTRIES:e})}),o=i.prototype,a=v6(r),s=function(c,u,g){var h=a(c),d=l(c,u),f,C;return d?d.value=g:(h.last=d={index:C=LD(u,!0),key:u,value:g,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=d),f&&(f.next=d),ah?h.size++:c.size++,C!=="F"&&(h.index[C]=d)),c},l=function(c,u){var g=a(c),h=LD(u),d;if(h!=="F")return g.index[h];for(d=g.first;d;d=d.next)if(d.key===u)return d};return TD(o,{clear:function(){for(var u=this,g=a(u),h=g.index,d=g.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete h[d.index],d=d.next;g.first=g.last=void 0,ah?g.size=0:u.size=0},delete:function(c){var u=this,g=a(u),h=l(u,c);if(h){var d=h.next,f=h.previous;delete g.index[h.index],h.removed=!0,f&&(f.next=d),d&&(d.previous=f),g.first===h&&(g.first=d),g.last===h&&(g.last=f),ah?g.size--:u.size--}return!!h},forEach:function(u){for(var g=a(this),h=XMt(u,arguments.length>1?arguments[1]:void 0),d;d=d?d.next:g.first;)for(h(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(u){return!!l(this,u)}}),TD(o,e?{get:function(u){var g=l(this,u);return g&&g.value},set:function(u,g){return s(this,u===0?0:u,g)}}:{add:function(u){return s(this,u=u===0?0:u,u)}}),ah&&YMt(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,r,e){var n=r+" Iterator",i=v6(r),o=v6(n);ezt(t,r,function(a,s){kD(this,{type:n,target:a,state:i(a),kind:s,last:void 0})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=void 0,f5(void 0,!0)):f5(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},e?"entries":"values",!e,!0),tzt(r)}},rzt=eM,nzt=Kre;rzt("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},nzt);var izt=Lt,ozt=izt.Map,azt=ozt,szt=azt,lzt=szt,Yre=je(lzt),czt=function(){function t(){we(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Wr(this.options,this.defaultOptions)}return $e(t,[{key:"setOptions",value:function(e){var n=["useDefaultGroups"];if(e!==void 0){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&zt(n).call(n,i)===-1){var o=e[i];this.add(i,o)}}}},{key:"clear",value:function(){this._groups=new Yre,this._groupNames=[]}},{key:"get",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&n)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){var o=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[o]),this._groups.set(e,i)}else{var a=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[a],this._groups.set(e,i)}return i}},{key:"add",value:function(e,n){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,n),n}}]),t}(),uzt=et;uzt({target:"Number",stat:!0},{isNaN:function(r){return r!==r}});var gzt=Lt,hzt=gzt.Number.isNaN,dzt=hzt,fzt=dzt,Czt=fzt,Fy=je(Czt),vzt=Sr,Azt=vzt.isFinite,Izt=Number.isFinite||function(r){return typeof r=="number"&&Azt(r)},pzt=et,mzt=Izt;pzt({target:"Number",stat:!0},{isFinite:mzt});var yzt=Lt,bzt=yzt.Number.isFinite,wzt=bzt,$zt=wzt,_zt=$zt,Sl=je(_zt),Mzt=et,zzt=J1.some,Ezt=Pg,Szt=Ezt("some");Mzt({target:"Array",proto:!0,forced:!Szt},{some:function(r){return zzt(this,r,arguments.length>1?arguments[1]:void 0)}});var Tzt=bn,Lzt=Tzt("Array").some,kzt=Dr,Ozt=Lzt,A6=Array.prototype,xzt=function(t){var r=t.some;return t===A6||kzt(A6,t)&&r===A6.some?Ozt:r},Hzt=xzt,Vzt=Hzt,Pzt=Vzt,Rzt=je(Pzt),Dzt=Lt,Nzt=Dzt.Object.getOwnPropertySymbols,Bzt=Nzt,Fzt=Bzt,jzt=Fzt,L1=je(jzt),Xre={exports:{}},Uzt=et,Gzt=Tt,Wzt=Oa,qre=zg.f,Qre=pn,Zzt=!Qre||Gzt(function(){qre(1)});Uzt({target:"Object",stat:!0,forced:Zzt,sham:!Qre},{getOwnPropertyDescriptor:function(r,e){return qre(Wzt(r),e)}});var Kzt=Lt,Jre=Kzt.Object,Yzt=Xre.exports=function(r,e){return Jre.getOwnPropertyDescriptor(r,e)};Jre.getOwnPropertyDescriptor.sham&&(Yzt.sham=!0);var Xzt=Xre.exports,qzt=Xzt,ene=qzt,Qzt=ene,tl=je(Qzt),Jzt=et,eEt=pn,tEt=A7t,rEt=Oa,nEt=zg,iEt=Vg;Jzt({target:"Object",stat:!0,sham:!eEt},{getOwnPropertyDescriptors:function(r){for(var e=rEt(r),n=nEt.f,i=tEt(e),o={},a=0,s,l;i.length>a;)l=n(e,s=i[a++]),l!==void 0&&iEt(o,s,l);return o}});var oEt=Lt,aEt=oEt.Object.getOwnPropertyDescriptors,sEt=aEt,lEt=sEt,cEt=lEt,k1=je(cEt),tne={exports:{}},uEt=et,gEt=pn,OD=x4.f;uEt({target:"Object",stat:!0,forced:Object.defineProperties!==OD,sham:!gEt},{defineProperties:OD});var hEt=Lt,rne=hEt.Object,dEt=tne.exports=function(r,e){return rne.defineProperties(r,e)};rne.defineProperties.sham&&(dEt.sham=!0);var fEt=tne.exports,CEt=fEt,vEt=CEt,AEt=vEt,X4=je(AEt),IEt=ate,q4=je(IEt);function Q4(t,r,e){return r=Dte(r),r in t?R4(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var nne=Sr,pEt=Tt,mEt=Ot,yEt=xa,bEt=qte.trim,wEt=R_,$Et=mEt("".charAt),RA=nne.parseFloat,xD=nne.Symbol,HD=xD&&xD.iterator,_Et=1/RA(wEt+"-0")!==-1/0||HD&&!pEt(function(){RA(Object(HD))}),MEt=_Et?function(r){var e=bEt(yEt(r)),n=RA(e);return n===0&&$Et(e,0)==="-"?-0:n}:RA,zEt=et,VD=MEt;zEt({global:!0,forced:parseFloat!==VD},{parseFloat:VD});var EEt=Lt,SEt=EEt.parseFloat,TEt=SEt,LEt=TEt,kEt=LEt,ine=je(kEt),OEt=et,xEt=Tt,HEt=D4.f,VEt=xEt(function(){return!Object.getOwnPropertyNames(1)});OEt({target:"Object",stat:!0,forced:VEt},{getOwnPropertyNames:HEt});var PEt=Lt,REt=PEt.Object,DEt=function(r){return REt.getOwnPropertyNames(r)},NEt=DEt,BEt=NEt,FEt=BEt,jEt=je(FEt);function rM(t,r){var e=["node","edge","label"],n=!0,i=Ys(r,"chosen");if(typeof i=="boolean")n=i;else if(Gt(i)==="object"){if(zt(e).call(e,t)===-1)throw new Error("choosify: subOption '"+t+"' should be one of '"+e.join("', '")+"'");var o=Ys(r,["chosen",t]);(typeof o=="boolean"||typeof o=="function")&&(n=o)}return n}function jy(t,r,e){if(t.width<=0||t.height<=0)return!1;if(e!==void 0){var n={x:r.x-e.x,y:r.y-e.y};if(e.angle!==0){var i=-e.angle,o={x:Math.cos(i)*n.x-Math.sin(i)*n.y,y:Math.sin(i)*n.x+Math.cos(i)*n.y};r=o}else r=n}var a=t.x+t.width,s=t.y+t.width;return t.leftr.x&&t.topr.y}function DA(t){return typeof t=="string"&&t!==""}function one(t,r,e,n){var i=n.x,o=n.y;if(typeof n.distanceToBorder=="function"){var a=n.distanceToBorder(t,r),s=Math.sin(r)*a,l=Math.cos(r)*a;l===a?(i+=a,o=n.y):s===a?(i=n.x,o-=a):(i+=l,o-=s)}else n.shape.width>n.shape.height?(i=n.x+n.shape.width*.5,o=n.y-e):(i=n.x+e,o=n.y-n.shape.height*.5);return{x:i,y:o}}var UEt=bn,GEt=UEt("Array").values,WEt=GEt,ZEt=WEt,KEt=Dc,YEt=yn,XEt=Dr,qEt=ZEt,I6=Array.prototype,QEt={DOMTokenList:!0,NodeList:!0},JEt=function(t){var r=t.values;return t===I6||XEt(I6,t)&&r===I6.values||YEt(QEt,KEt(t))?qEt:r},eSt=JEt,ane=je(eSt),tSt=function(){function t(r){we(this,t),this.measureText=r,this.current=0,this.width=0,this.height=0,this.lines=[]}return $e(t,[{key:"_add",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});var o=n;(n===void 0||n==="")&&(o=" ");var a=this.measureText(o,i),s=Wr({},ane(a));s.text=n,s.width=a.width,s.mod=i,(n===void 0||n==="")&&(s.width=0),this.lines[e].blocks.push(s),this.lines[e].width+=s.width}},{key:"curWidth",value:function(){var e=this.lines[this.current];return e===void 0?0:e.width}},{key:"append",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n)}},{key:"newLine",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,n),this.current++}},{key:"determineLineHeights",value:function(){for(var e=0;ee&&(e=o.width),n+=o.height}this.width=e,this.height=n}},{key:"removeEmptyBlocks",value:function(){for(var e=[],n=0;n"://,""://,""://,"":/<\/b>/,"":/<\/i>/,"":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},PD=function(){function t(r){we(this,t),this.text=r,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return $e(t,[{key:"mod",value:function(){return this.modStack.length===0?"normal":this.modStack[0]}},{key:"modName",value:function(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}},{key:"parseWS",value:function(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}},{key:"setTag",value:function(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}},{key:"unsetTag",value:function(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(e,n){return!this.mono&&!this[e]&&this.match(n)?(this.setTag(e),!0):!1}},{key:"match",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.prepareRegExp(e),o=yr(i,2),a=o[0],s=o[1],l=a.test(this.text.substr(this.position,s));return l&&n&&(this.position+=s-1),l}},{key:"parseEndTag",value:function(e,n,i){var o=this.mod()===e;return e==="mono"?o=o&&this.mono:o=o&&!this.mono,o&&this.match(n)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}},{key:"replace",value:function(e,n){return this.match(e)?(this.add(n),this.position+=length-1,!0):!1}},{key:"prepareRegExp",value:function(e){var n,i;if(e instanceof RegExp)i=e,n=1;else{var o=rSt[e];o!==void 0?i=o:i=new RegExp(e),n=e.length}return[i,n]}}]),t}(),nSt=function(){function t(r,e,n,i){var o=this;we(this,t),this.ctx=r,this.parent=e,this.selected=n,this.hover=i;var a=function(l,c){if(l===void 0)return 0;var u=o.parent.getFormattingValues(r,n,i,c),g=0;if(l!==""){var h=o.ctx.measureText(l);g=h.width}return{width:g,values:u}};this.lines=new tSt(a)}return $e(t,[{key:"process",value:function(e){if(!DA(e))return this.lines.finalize();var n=this.parent.fontOptions;e=e.replace(/\r\n/g,` `),e=e.replace(/\r/g,` `);var i=String(e).split(` `),o=i.length;if(n.multi)for(var a=0;a0)for(var l=0;l0)for(var f=0;f")||n.parseStartTag("ital","")||n.parseStartTag("mono","")||n.parseEndTag("bold","")||n.parseEndTag("ital","")||n.parseEndTag("mono",""))||i(o);a||n.add(o),n.position++}return n.emitBlock(),n.blocks}},{key:"splitMarkdownBlocks",value:function(e){for(var n=this,i=new PD(e),o=!0,a=function(u){return/\\/.test(u)?(i.positionthis.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(e){for(var n="",i=0;i1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,n),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");for(var o=e.split("\r");o.length>0;){var a=this.getLongestFit(o);if(a===0){var s=o[0],l=this.getLongestFitWord(s);this.lines.newLine(zn(s).call(s,0,l),n),o[0]=zn(s).call(s,l)}else{var c=a;o[a-1]===" "?a--:o[c]===" "&&c++;var u=zn(o).call(o,0,a).join("");a==o.length&&i?this.lines.append(u,n):this.lines.newLine(u,n),o=zn(o).call(o,c)}}}}]),t}(),sh=["bold","ital","boldital","mono"],sne=function(){function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;we(this,t),this.body=r,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(e),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return $e(t,[{key:"setOptions",value:function(e){if(this.elementOptions=e,this.initFontOptions(e.font),DA(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(Gt(e.font)==="object"){var n=e.font.size;n!==void 0&&(this.baseSize=n)}}}},{key:"initFontOptions",value:function(e){var n=this;if(vt(sh,function(i){n.fontOptions[i]={}}),t.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}vt(e,function(i,o){i!=null&&Gt(i)!=="object"&&(n.fontOptions[o]=i)})}},{key:"constrain",value:function(e){var n={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=Ys(e,"widthConstraint");if(typeof i=="number")n.maxWdt=Number(i),n.minWdt=Number(i);else if(Gt(i)==="object"){var o=Ys(e,["widthConstraint","maximum"]);typeof o=="number"&&(n.maxWdt=Number(o));var a=Ys(e,["widthConstraint","minimum"]);typeof a=="number"&&(n.minWdt=Number(a))}var s=Ys(e,"heightConstraint");if(typeof s=="number")n.minHgt=Number(s);else if(Gt(s)==="object"){var l=Ys(e,["heightConstraint","minimum"]);typeof l=="number"&&(n.minHgt=Number(l));var c=Ys(e,["heightConstraint","valign"]);typeof c=="string"&&(c==="top"||c==="bottom")&&(n.valign=c)}return n}},{key:"update",value:function(e,n){this.setOptions(e,!0),this.propagateFonts(n),tr(this.fontOptions,this.constrain(n)),this.fontOptions.chooser=rM("label",n)}},{key:"adjustSizes",value:function(e){var n=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=n,this.fontOptions.minWdt-=n);var i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(e,n){for(var i=0;i5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label!==void 0){var l=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&l=this.elementOptions.scaling.label.maxVisible&&(l=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,o,a,n,i,s),this._drawBackground(e),this._drawText(e,n,this.size.yLine,s,l))}}},{key:"_drawBackground",value:function(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;var n=this.getSize();e.fillRect(n.left,n.top,n.width,n.height)}}},{key:"_drawText",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",a=arguments.length>4?arguments[4]:void 0,s=this._setAlignment(e,n,i,o),l=yr(s,2);n=l[0],i=l[1],e.textAlign="left",n=n-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(var c=0;c0&&(e.lineWidth=d.strokeWidth,e.strokeStyle=A,e.lineJoin="round"),e.fillStyle=v,d.strokeWidth>0&&e.strokeText(d.text,n+g,i+d.vadjust),e.fillText(d.text,n+g,i+d.vadjust),g+=d.width}i+=u.height}}}},{key:"_setAlignment",value:function(e,n,i,o){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){n=0,i=0;var a=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*a):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*a):e.textBaseline="middle"}else e.textBaseline=o;return[n,i]}},{key:"_getColor",value:function(e,n,i){var o=e||"#000000",a=i||"#ffffff";if(n<=this.elementOptions.scaling.label.drawThreshold){var s=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-n)));o=to(o,s),a=to(a,s)}return[o,a]}},{key:"getTextSize",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,n,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var e=2,n=this.size.left,i=this.size.top-.5*e;if(this.isEdgeLabel){var o=-this.size.width*.5;switch(this.fontOptions.align){case"middle":n=o,i=-this.size.height*.5;break;case"top":n=o,i=-(this.size.height+e);break;case"bottom":n=o,i=e;break}}var a={left:n,top:i,width:this.size.width,height:this.size.height};return a}},{key:"calculateLabelSize",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,n,i),this.size.left=o-this.size.width*.5,this.size.top=a-this.size.height*.5,this.size.yLine=a+(1-this.lineCount)*.5*this.fontOptions.size,s==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(e,n,i,o){var a=function(u,g,h){return g==="normal"?h==="mod"?"":u[h]:u[g][h]!==void 0?u[g][h]:u[h]},s={color:a(this.fontOptions,o,"color"),size:a(this.fontOptions,o,"size"),face:a(this.fontOptions,o,"face"),mod:a(this.fontOptions,o,"mod"),vadjust:a(this.fontOptions,o,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(n||i)&&(o==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?s.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(s,this.elementOptions.id,n,i));var l="";return s.mod!==void 0&&s.mod!==""&&(l+=s.mod+" "),l+=s.size+"px "+s.face,e.font=l.replace(/"/g,""),s.font=e.font,s.height=s.size,s}},{key:"differentState",value:function(e,n){return e!==this.selectedState||n!==this.hoverState}},{key:"_processLabelText",value:function(e,n,i,o){var a=new nSt(e,this,n,i);return a.process(o)}},{key:"_processLabel",value:function(e,n,i){if(!(this.labelDirty===!1&&!this.differentState(n,i))){var o=this._processLabelText(e,n,i,this.elementOptions.label);this.fontOptions.minWdt>0&&o.width0&&o.height0&&(this.enableBorderDashes(e,n),e.stroke(),this.disableBorderDashes(e,n)),e.restore()}},{key:"performFill",value:function(e,n){e.save(),e.fillStyle=n.color,this.enableShadow(e,n),V0(e).call(e),this.disableShadow(e,n),e.restore(),this.performStroke(e,n)}},{key:"_addBoundingBoxMargin",value:function(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}},{key:"_updateBoundingBox",value:function(e,n,i,o,a){i!==void 0&&this.resize(i,o,a),this.left=e-this.width/2,this.top=n-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(e,n,i,o,a){this._updateBoundingBox(e,n,i,o,a)}},{key:"getDimensionsFromLabel",value:function(e,n,i){this.textSize=this.labelModule.getTextSize(e,n,i);var o=this.textSize.width,a=this.textSize.height,s=14;return o===0&&(o=s,a=s),{width:o,height:a}}}]),t}();function KSt(t){var r=YSt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function YSt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var XSt=function(t){xt(e,t);var r=KSt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return $e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.width=s.width+this.margin.right+this.margin.left,this.height=s.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),Eee(i,this.left,this.top,this.width,this.height,c.borderRadius),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"updateBoundingBox",value:function(i,o,a,s,l){this._updateBoundingBox(i,o,a,s,l);var c=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(c)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(o)),Math.abs(this.height/2/Math.sin(o)))+a}}]),e}(Gc);function qSt(t){var r=QSt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function QSt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var oM=function(t){xt(e,t);var r=qSt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a.labelOffset=0,a.selected=!1,a}return $e(e,[{key:"setOptions",value:function(i,o,a){this.options=i,o===void 0&&a===void 0||this.setImages(o,a)}},{key:"setImages",value:function(i,o){o&&this.selected?(this.imageObj=o,this.imageObjAlt=i):(this.imageObj=i,this.imageObjAlt=o)}},{key:"switchImages",value:function(i){var o=i&&!this.selected||!i&&this.selected;if(this.selected=i,this.imageObjAlt!==void 0&&o){var a=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=a}}},{key:"_getImagePadding",value:function(){var i={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var o=this.options.imagePadding;Gt(o)=="object"?(i.top=o.top,i.right=o.right,i.bottom=o.bottom,i.left=o.left):(i.top=o,i.right=o,i.bottom=o,i.left=o)}return i}},{key:"_resizeImage",value:function(){var i,o;if(this.options.shapeProperties.useImageSize===!1){var a=1,s=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?a=this.imageObj.width/this.imageObj.height:s=this.imageObj.height/this.imageObj.width),i=this.options.size*2*a,o=this.options.size*2*s}else{var l=this._getImagePadding();i=this.imageObj.width+l.left+l.right,o=this.imageObj.height+l.top+l.bottom}this.width=i,this.height=o,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(i,o,a,s){this.initContextForDraw(i,s),b_(i,o,a,s.size),this.performFill(i,s)}},{key:"_drawImageAtPosition",value:function(i,o){if(this.imageObj.width!=0){i.globalAlpha=o.opacity!==void 0?o.opacity:1,this.enableShadow(i,o);var a=1;this.options.shapeProperties.interpolation===!0&&(a=this.imageObj.width/this.width/this.body.view.scale);var s=this._getImagePadding(),l=this.left+s.left,c=this.top+s.top,u=this.width-s.left-s.right,g=this.height-s.top-s.bottom;this.imageObj.drawImageAtPosition(i,a,l,c,u,g),this.disableShadow(i,o)}}},{key:"_drawImageLabel",value:function(i,o,a,s,l){var c=0;if(this.height!==void 0){c=this.height*.5;var u=this.labelModule.getTextSize(i,s,l);u.lineCount>=1&&(c+=u.height/2)}var g=a+c;this.options.label&&(this.labelOffset=c),this.labelModule.draw(i,o,g,s,l,"hanging")}}]),e}(Gc);function JSt(t){var r=eTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function eTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var tTt=function(t){xt(e,t);var r=JSt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return $e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=Math.max(s.width+this.margin.right+this.margin.left,s.height+this.margin.top+this.margin.bottom);this.options.size=l/2,this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this._drawRawCircle(i,o,a,c),this.updateBoundingBox(o,a),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,a,s,l)}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(oM);function rTt(t){var r=nTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function nTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var iTt=function(t){xt(e,t);var r=rTt(e);function e(n,i,o,a,s){var l;return we(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return $e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l,this.radius=.5*this.width;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){this.switchImages(s),this.resize();var u=o,g=a;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this._drawRawCircle(i,u,g,c),i.save(),i.clip(),this._drawImageAtPosition(i,c),i.restore(),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a)}},{key:"updateBoundingBox",value:function(i,o){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=o,this.boundingBox.left=i,this.boundingBox.right=i+this.options.size*2,this.boundingBox.bottom=o+this.options.size*2):(this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.width*.5}}]),e}(oM);function oTt(t){var r=aTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function aTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var rl=function(t){xt(e,t);var r=oTt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(o,a)){var l,c;this.labelModule.getTextSize(i,o,a);var u=2*s.size;this.width=(l=this.customSizeWidth)!==null&&l!==void 0?l:u,this.height=(c=this.customSizeHeight)!==null&&c!==void 0?c:u,this.radius=.5*this.width}}},{key:"_drawShape",value:function(i,o,a,s,l,c,u,g){var h=this;return this.resize(i,c,u,g),this.left=s-this.width/2,this.top=l-this.height/2,this.initContextForDraw(i,g),BAt(o)(i,s,l,g.size),this.performFill(i,g),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(i.font=(c?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",i.fillText(this.options.icon.code,s,l)),{drawExternalLabel:function(){if(h.options.label!==void 0){h.labelModule.calculateLabelSize(i,c,u,s,l,"hanging");var f=l+.5*h.height+.5*h.labelModule.size.height;h.labelModule.draw(i,s,f,c,u,"hanging")}h.updateBoundingBox(s,l)}}}},{key:"updateBoundingBox",value:function(i,o){this.boundingBox.top=o-this.options.size,this.boundingBox.left=i-this.options.size,this.boundingBox.right=i+this.options.size,this.boundingBox.bottom=o+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),e}(Gc);function FD(t,r){var e=mr(t);if(L1){var n=L1(t);r&&(n=gi(n).call(n,function(i){return tl(t,i).enumerable})),e.push.apply(e,n)}return e}function sTt(t){for(var r=1;r"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var uTt=function(t){xt(e,t);var r=lTt(e);function e(n,i,o,a){var s;return we(this,e),s=r.call(this,n,i,o,a),s.ctxRenderer=a,s}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l,c),this.left=o-this.width/2,this.top=a-this.height/2,i.save();var u=this.ctxRenderer({ctx:i,id:this.options.id,x:o,y:a,state:{selected:s,hover:l},style:sTt({},c),label:this.options.label});if(u.drawNode!=null&&u.drawNode(),i.restore(),u.drawExternalLabel){var g=u.drawExternalLabel;u.drawExternalLabel=function(){i.save(),g(),i.restore()}}return u.nodeDimensions&&(this.customSizeWidth=u.nodeDimensions.width,this.customSizeHeight=u.nodeDimensions.height),u}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(rl);function gTt(t){var r=hTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function hTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var dTt=function(t){xt(e,t);var r=gTt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return $e(e,[{key:"resize",value:function(i,o,a){if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a),l=s.width+this.margin.right+this.margin.left;this.width=l,this.height=l,this.radius=this.width/2}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.initContextForDraw(i,c),See(i,o-this.width/2,a-this.height/2,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Gc);function fTt(t){var r=CTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function CTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var vTt=function(t){xt(e,t);var r=fTt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"diamond",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(rl);function ATt(t){var r=ITt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function ITt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var pTt=function(t){xt(e,t);var r=ATt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"circle",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i){return i&&this.resize(i),this.options.size}}]),e}(rl);function mTt(t){var r=yTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function yTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var jD=function(t){xt(e,t);var r=mTt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(o,a)){var s=this.getDimensionsFromLabel(i,o,a);this.height=s.height*2,this.width=s.width+s.height,this.radius=.5*this.width}}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width*.5,this.top=a-this.height*.5,this.initContextForDraw(i,c),Iy(i,this.left,this.top,this.width,this.height),this.performFill(i,c),this.updateBoundingBox(o,a,i,s,l),this.labelModule.draw(i,o,a,s,l)}},{key:"distanceToBorder",value:function(i,o){i&&this.resize(i);var a=this.width*.5,s=this.height*.5,l=Math.sin(o)*a,c=Math.cos(o)*s;return a*s/Math.sqrt(l*l+c*c)}}]),e}(Gc);function bTt(t){var r=wTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function wTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var $Tt=function(t){xt(e,t);var r=bTt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return $e(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,o,a,s,l,c){var u=this;return this.resize(i,s,l),this.options.icon.size=this.options.icon.size||50,this.left=o-this.width/2,this.top=a-this.height/2,this._icon(i,o,a,s,l,c),{drawExternalLabel:function(){if(u.options.label!==void 0){var h=5;u.labelModule.draw(i,u.left+u.iconSize.width/2+u.margin.left,a+u.height/2+h,s)}u.updateBoundingBox(o,a)}}}},{key:"updateBoundingBox",value:function(i,o){if(this.boundingBox.top=o-this.options.icon.size*.5,this.boundingBox.left=i-this.options.icon.size*.5,this.boundingBox.right=i+this.options.icon.size*.5,this.boundingBox.bottom=o+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0){var a=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+a)}}},{key:"_icon",value:function(i,o,a,s,l,c){var u=Number(this.options.icon.size);this.options.icon.code!==void 0?(i.font=[this.options.icon.weight!=null?this.options.icon.weight:s?"bold":"",(this.options.icon.weight!=null&&s?5:0)+u+"px",this.options.icon.face].join(" "),i.fillStyle=this.options.icon.color||"black",i.textAlign="center",i.textBaseline="middle",this.enableShadow(i,c),i.fillText(this.options.icon.code,o,a),this.disableShadow(i,c)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Gc);function _Tt(t){var r=MTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function MTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var zTt=function(t){xt(e,t);var r=_Tt(e);function e(n,i,o,a,s){var l;return we(this,e),l=r.call(this,n,i,o),l.setImages(a,s),l}return $e(e,[{key:"resize",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,s=this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0;if(s){var l=this.options.size*2;this.width=l,this.height=l;return}this.needsRefresh(o,a)&&this._resizeImage()}},{key:"draw",value:function(i,o,a,s,l,c){i.save(),this.switchImages(s),this.resize();var u=o,g=a;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=o,this.top=a,u+=this.width/2,g+=this.height/2):(this.left=o-this.width/2,this.top=a-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){var h=this.options.borderWidth,d=this.options.borderWidthSelected||2*this.options.borderWidth,f=(s?d:h)/this.body.view.scale;i.lineWidth=Math.min(this.width,f),i.beginPath();var C=s?this.options.color.highlight.border:l?this.options.color.hover.border:this.options.color.border,v=s?this.options.color.highlight.background:l?this.options.color.hover.background:this.options.color.background;c.opacity!==void 0&&(C=to(C,c.opacity),v=to(v,c.opacity)),i.strokeStyle=C,i.fillStyle=v,i.rect(this.left-.5*i.lineWidth,this.top-.5*i.lineWidth,this.width+i.lineWidth,this.height+i.lineWidth),V0(i).call(i),this.performStroke(i,c),i.closePath()}this._drawImageAtPosition(i,c),this._drawImageLabel(i,u,g,s,l),this.updateBoundingBox(o,a),i.restore()}},{key:"updateBoundingBox",value:function(i,o){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=i,this.top=o):(this.left=i-this.width/2,this.top=o-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(oM);function ETt(t){var r=STt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function STt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var TTt=function(t){xt(e,t);var r=ETt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"square",2,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(rl);function LTt(t){var r=kTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function kTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var OTt=function(t){xt(e,t);var r=LTt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"hexagon",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(rl);function xTt(t){var r=HTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function HTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var VTt=function(t){xt(e,t);var r=xTt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"star",4,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(rl);function PTt(t){var r=RTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function RTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var DTt=function(t){xt(e,t);var r=PTt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a._setMargins(o),a}return $e(e,[{key:"resize",value:function(i,o,a){this.needsRefresh(o,a)&&(this.textSize=this.labelModule.getTextSize(i,o,a),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(i,o,a,s,l,c){this.resize(i,s,l),this.left=o-this.width/2,this.top=a-this.height/2,this.enableShadow(i,c),this.labelModule.draw(i,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,s,l),this.disableShadow(i,c),this.updateBoundingBox(o,a,i,s,l)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(Gc);function NTt(t){var r=BTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function BTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var FTt=function(t){xt(e,t);var r=NTt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangle",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(rl);function jTt(t){var r=UTt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function UTt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var GTt=function(t){xt(e,t);var r=jTt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"draw",value:function(i,o,a,s,l,c){return this._drawShape(i,"triangleDown",3,o,a,s,l,c)}},{key:"distanceToBorder",value:function(i,o){return this._distanceToBorder(i,o)}}]),e}(rl);function UD(t,r){var e=mr(t);if(L1){var n=L1(t);r&&(n=gi(n).call(n,function(i){return tl(t,i).enumerable})),e.push.apply(e,n)}return e}function GD(t){for(var r=1;re.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"checkOpacity",value:function(e){return 0<=e&&e<=1}},{key:"checkCoordinateOrigin",value:function(e){return e===void 0||e==="center"||e==="top-left"}},{key:"updateGroupOptions",value:function(e,n,i){var o;if(i!==void 0){var a=e.group;if(n!==void 0&&n.group!==void 0&&a!==n.group)throw new Error("updateGroupOptions: group values in options don't match.");var s=typeof a=="number"||typeof a=="string"&&a!="";if(s){var l=i.get(a);l.opacity!==void 0&&n.opacity===void 0&&(t.checkOpacity(l.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+l.opacity),l.opacity=void 0));var c=gi(o=jEt(n)).call(o,function(u){return n[u]!=null});c.push("font"),VA(c,e,l),e.color=Ry(e.color)}}}},{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4?arguments[4]:void 0,s=["color","fixed","shadow"];if(VA(s,e,n,i),t.checkMass(n),e.opacity!==void 0&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),n.opacity!==void 0&&(t.checkOpacity(n.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+n.opacity),n.opacity=void 0)),n.shapeProperties&&!t.checkCoordinateOrigin(n.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+n.shapeProperties.coordinateOrigin),Ji(e,n,"shadow",o),n.color!==void 0&&n.color!==null){var l=Ry(n.color);Lre(e.color,l)}else i===!0&&n.color===null&&(e.color=m1(o.color));n.fixed!==void 0&&n.fixed!==null&&(typeof n.fixed=="boolean"?(e.fixed.x=n.fixed,e.fixed.y=n.fixed):(n.fixed.x!==void 0&&typeof n.fixed.x=="boolean"&&(e.fixed.x=n.fixed.x),n.fixed.y!==void 0&&typeof n.fixed.y=="boolean"&&(e.fixed.y=n.fixed.y))),i===!0&&n.font===null&&(e.font=m1(o.font)),t.updateGroupOptions(e,n,a),n.scaling!==void 0&&Ji(e.scaling,n.scaling,"label",o.scaling)}},{key:"checkMass",value:function(e,n){if(e.mass!==void 0&&e.mass<=0){var i="";n!==void 0&&(i=" in node id: "+n),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",Hre),e.mass=1}}}]),t}();function WTt(t,r){var e=typeof el<"u"&&Fc(t)||t["@@iterator"];if(!e){if(Bt(t)||(e=ZTt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function ZTt(t,r){var e;if(t){if(typeof t=="string")return WD(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WD(t,r)}}function WD(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(var n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&this.body.nodes[n].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(var i=0,o=mr(this.body.nodes);i1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(see("id",e))this.body.data.nodes=e;else if(Bt(e))this.body.data.nodes=new zA,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new zA;else throw new TypeError("Array or DataSet expected");if(i&&vt(this.nodesListeners,function(s,l){i.off(l,s)}),this.body.nodes={},this.body.data.nodes){var o=this;vt(this.nodesListeners,function(s,l){o.body.data.nodes.on(l,s)});var a=this.body.data.nodes.getIds();this.add(a,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,o=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:Oi;return new n(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;vt(this.body.nodes,function(i,o){var a=e.body.data.nodes.get(o);a!==void 0&&(n===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(a))})}},{key:"getPositions",value:function(e){var n={};if(e!==void 0){if(Bt(e)===!0){for(var i=0;i0?(l=s/a,n+=l*l):n+=s;return a===1/0?1/0:a*yLt(n)}});var wLt=Lt,$Lt=wLt.Math.hypot,_Lt=$Lt,MLt=_Lt,zLt=MLt,ELt=je(zLt);function hne(t){var r=SLt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function SLt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var Hr=function(){function t(){we(this,t)}return $e(t,null,[{key:"transform",value:function(e,n){Bt(e)||(e=[e]);for(var i=n.point.x,o=n.point.y,a=n.angle,s=n.length,l=0;l4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,n),e.lineWidth=n.width,n.dashes!==!1?this._drawDashedLine(e,n,a):this._drawLine(e,n,a)}},{key:"_drawLine",value:function(e,n,i,o,a){if(this.from!=this.to)this._line(e,n,i,o,a);else{var s=this._getCircleData(e),l=yr(s,3),c=l[0],u=l[1],g=l[2];this._circle(e,n,c,u,g)}}},{key:"_drawDashedLine",value:function(e,n,i,o,a){e.lineCap="round";var s=Bt(n.dashes)?n.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(s),e.lineDashOffset=0,this.from!=this.to)this._line(e,n,i);else{var l=this._getCircleData(e),c=yr(l,3),u=c[0],g=c[1],h=c[2];this._circle(e,n,u,g,h)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)Tee(e,this.from.x,this.from.y,this.to.x,this.to.y,s);else{var d=this._getCircleData(e),f=yr(d,3),C=f[0],v=f[1],A=f[2];this._circle(e,n,C,v,A)}this.enableShadow(e,n),e.stroke(),this.disableShadow(e,n)}}},{key:"findBorderPosition",value:function(e,n,i){return this.from!=this.to?this._findBorderPosition(e,n,i):this._findBorderPositionCircle(e,n,i)}},{key:"findBorderPositions",value:function(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};var n,i=zn(n=this._getCircleData(e)).call(n,0,2),o=yr(i,2),a=o[0],s=o[1];return{from:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:a,y:s,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(e){var n=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);var i=one(e,this.options.selfReference.angle,n,this.from);return[i.x,i.y,n]}},{key:"_pointOnCircle",value:function(e,n,i,o){var a=o*2*Math.PI;return{x:e+i*Math.cos(a),y:n-i*Math.sin(a)}}},{key:"_findBorderPositionCircle",value:function(e,n,i){var o=i.x,a=i.y,s=i.low,l=i.high,c=i.direction,u=10,g=this.options.selfReference.size,h=.05,d,f=(s+l)*.5,C=0;this.options.arrowStrikethrough===!0&&(c===-1?C=this.options.endPointOffset.from:c===1&&(C=this.options.endPointOffset.to));var v=0;do{f=(s+l)*.5,d=this._pointOnCircle(o,a,g,f);var A=Math.atan2(e.y-d.y,e.x-d.x),I=e.distanceToBorder(n,A)+C,p=Math.sqrt(Math.pow(d.x-e.x,2)+Math.pow(d.y-e.y,2)),m=I-p;if(Math.abs(m)0?c>0?s=f:l=f:c>0?l=f:s=f,++v}while(s<=l&&v1?g=1:g<0&&(g=0);var h=e+g*l,d=n+g*c,f=h-a,C=d-s;return Math.sqrt(f*f+C*C)}},{key:"getArrowData",value:function(e,n,i,o,a,s){var l,c,u,g,h,d,f,C=s.width;n==="from"?(u=this.from,g=this.to,h=s.fromArrowScale<0,d=Math.abs(s.fromArrowScale),f=s.fromArrowType):n==="to"?(u=this.to,g=this.from,h=s.toArrowScale<0,d=Math.abs(s.toArrowScale),f=s.toArrowType):(u=this.to,g=this.from,h=s.middleArrowScale<0,d=Math.abs(s.middleArrowScale),f=s.middleArrowType);var v=15*d+3*C;if(u!=g){var A=ELt(u.x-g.x,u.y-g.y),I=v/A;if(n!=="middle")if(this.options.smooth.enabled===!0){var p=this._findBorderPosition(u,e,{via:i}),m=this.getPoint(p.t+I*(n==="from"?1:-1),i);l=Math.atan2(p.y-m.y,p.x-m.x),c=p}else l=Math.atan2(u.y-g.y,u.x-g.x),c=this._findBorderPosition(u,e);else{var b=(h?-I:I)/2,_=this.getPoint(.5+b,i),L=this.getPoint(.5-b,i);l=Math.atan2(_.y-L.y,_.x-L.x),c=this.getPoint(.5,i)}}else{var M=this._getCircleData(e),S=yr(M,3),T=S[0],k=S[1],O=S[2];if(n==="from"){var P=this.options.selfReference.angle,B=this.options.selfReference.angle+Math.PI,te=this._findBorderPositionCircle(this.from,e,{x:T,y:k,low:P,high:B,direction:-1});l=te.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,c=te}else if(n==="to"){var ee=this.options.selfReference.angle,re=this.options.selfReference.angle+Math.PI,Me=this._findBorderPositionCircle(this.from,e,{x:T,y:k,low:ee,high:re,direction:1});l=Me.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,c=Me}else{var He=this.options.selfReference.angle/(2*Math.PI);c=this._pointOnCircle(T,k,O,He),l=He*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}var nt=c.x-v*.9*Math.cos(l),De=c.y-v*.9*Math.sin(l),be={x:nt,y:De};return{point:c,core:be,angle:l,length:v,type:f}}},{key:"drawArrowHead",value:function(e,n,i,o,a){e.strokeStyle=this.getColor(e,n),e.fillStyle=e.strokeStyle,e.lineWidth=n.width;var s=dne.draw(e,a);s&&(this.enableShadow(e,n),V0(e).call(e),this.disableShadow(e,n))}},{key:"enableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor=n.shadowColor,e.shadowBlur=n.shadowSize,e.shadowOffsetX=n.shadowX,e.shadowOffsetY=n.shadowY)}},{key:"disableShadow",value:function(e,n){n.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"drawBackground",value:function(e,n){if(n.background!==!1){var i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=n.backgroundColor,e.lineWidth=n.backgroundSize,this.setStrokeDashed(e,n.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,n.dashes)}}},{key:"setStrokeDashed",value:function(e,n){if(n!==!1)if(e.setLineDash!==void 0){var i=Bt(n)?n:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function QD(t,r){var e=mr(t);if(L1){var n=L1(t);r&&(n=gi(n).call(n,function(i){return tl(t,i).enumerable})),e.push.apply(e,n)}return e}function JD(t){for(var r=1;r"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var aM=function(t){xt(e,t);var r=FLt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"_findBorderPositionBezier",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),s=10,l=.2,c=!1,u=1,g=0,h=this.to,d,f,C=this.options.endPointOffset?this.options.endPointOffset.to:0;i.id===this.from.id&&(h=this.from,c=!0,C=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(C=0);var v=0;do{f=(g+u)*.5,d=this.getPoint(f,a);var A=Math.atan2(h.y-d.y,h.x-d.x),I=h.distanceToBorder(o,A)+C,p=Math.sqrt(Math.pow(d.x-h.x,2)+Math.pow(d.y-h.y,2)),m=I-p;if(Math.abs(m)0&&(h=this._getDistanceToLine(A,I,C,v,l,c),g=h"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var eN=function(t){xt(e,t);var r=ULt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a.via=a.via,a._boundFunction=function(){a.positionBezierNode()},a._body.emitter.on("_repositionBezierNodes",a._boundFunction),a}return $e(e,[{key:"setOptions",value:function(i){uv(Ve(e.prototype),"setOptions",this).call(this,i);var o=!1;this.options.physics!==i.physics&&(o=!0),this.options=i,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),o===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}},{key:"setupSupportNode",value:function(){if(this.via===void 0){var i="edgeId:"+this.id,o=this._body.functions.createNode({id:i,shape:"circle",physics:!0,hidden:!0});this._body.nodes[i]=o,this.via=o,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){var a=this._getCircleData(),s=yr(a,3),l=s[0],c=s[1],u=s[2],g=2*Math.PI*(1-i);return{x:l+u*Math.sin(g),y:c+u-u*(1-Math.cos(g))}}else return{x:Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*o.x+Math.pow(i,2)*this.toPoint.x,y:Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*o.y+Math.pow(i,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o,this.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToBezierEdge(i,o,a,s,l,c,this.via)}}]),e}(aM);function WLt(t){var r=ZLt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function ZLt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var tN=function(t){xt(e,t);var r=WLt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"_line",value:function(i,o,a){this._bezierCurve(i,o,a)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var i=this.options.smooth.roundness,o=this.options.smooth.type,a=Math.abs(this.from.x-this.to.x),s=Math.abs(this.from.y-this.to.y);if(o==="discrete"||o==="diagonalCross"){var l,c;a<=s?l=c=i*s:l=c=i*a,this.from.x>this.to.x&&(l=-l),this.from.y>=this.to.y&&(c=-c);var u=this.from.x+l,g=this.from.y+c;return o==="discrete"&&(a<=s?u=athis.to.x&&(M=-M),this.from.y>=this.to.y&&(S=-S);var T=this.from.x+M,k=this.from.y+S;return a<=s?this.from.x<=this.to.x?T=this.to.xT?this.to.x:T:this.from.y>=this.to.y?k=this.to.y>k?this.to.y:k:k=this.to.y2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(i,o,a.via)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(i,o,a,s,l,c,u)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=i,s=Math.pow(1-a,2)*this.fromPoint.x+2*a*(1-a)*o.x+Math.pow(a,2)*this.toPoint.x,l=Math.pow(1-a,2)*this.fromPoint.y+2*a*(1-a)*o.y+Math.pow(a,2)*this.toPoint.y;return{x:s,y:l}}}]),e}(aM);function KLt(t){var r=YLt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function YLt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var XLt=function(t){xt(e,t);var r=KLt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"_getDistanceToBezierEdge2",value:function(i,o,a,s,l,c,u,g){for(var h=1e9,d=i,f=o,C=[0,0,0,0],v=1;v<10;v++){var A=.1*v;C[0]=Math.pow(1-A,3),C[1]=3*A*Math.pow(1-A,2),C[2]=3*Math.pow(A,2)*(1-A),C[3]=Math.pow(A,3);var I=C[0]*i+C[1]*u.x+C[2]*g.x+C[3]*a,p=C[0]*o+C[1]*u.y+C[2]*g.y+C[3]*s;if(v>0){var m=this._getDistanceToLine(d,f,I,p,l,c);h=m"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var rN=function(t){xt(e,t);var r=qLt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"_line",value:function(i,o,a){var s=a[0],l=a[1];this._bezierCurve(i,o,s,l)}},{key:"_getViaCoordinates",value:function(){var i=this.from.x-this.to.x,o=this.from.y-this.to.y,a,s,l,c,u=this.options.smooth.roundness;return(Math.abs(i)>Math.abs(o)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(s=this.from.y,c=this.to.y,a=this.from.x-u*i,l=this.to.x+u*i):(s=this.from.y-u*o,c=this.to.y+u*o,a=this.from.x,l=this.to.x),[{x:a,y:s},{x:l,y:c}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(i,o){return this._findBorderPositionBezier(i,o)}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates(),g=yr(u,2),h=g[0],d=g[1];return this._getDistanceToBezierEdge2(i,o,a,s,l,c,h,d)}},{key:"getPoint",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),a=yr(o,2),s=a[0],l=a[1],c=i,u=[Math.pow(1-c,3),3*c*Math.pow(1-c,2),3*Math.pow(c,2)*(1-c),Math.pow(c,3)],g=u[0]*this.fromPoint.x+u[1]*s.x+u[2]*l.x+u[3]*this.toPoint.x,h=u[0]*this.fromPoint.y+u[1]*s.y+u[2]*l.y+u[3]*this.toPoint.y;return{x:g,y:h}}}]),e}(XLt);function JLt(t){var r=ekt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function ekt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var nN=function(t){xt(e,t);var r=JLt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"_line",value:function(i,o){i.beginPath(),i.moveTo(this.fromPoint.x,this.fromPoint.y),i.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(i,o),i.stroke(),this.disableShadow(i,o)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(i){return{x:(1-i)*this.fromPoint.x+i*this.toPoint.x,y:(1-i)*this.fromPoint.y+i*this.toPoint.y}}},{key:"_findBorderPosition",value:function(i,o){var a=this.to,s=this.from;i.id===this.from.id&&(a=this.from,s=this.to);var l=Math.atan2(a.y-s.y,a.x-s.x),c=a.x-s.x,u=a.y-s.y,g=Math.sqrt(c*c+u*u),h=i.distanceToBorder(o,l),d=(g-h)/g;return{x:(1-d)*s.x+d*a.x,y:(1-d)*s.y+d*a.y,t:0}}},{key:"_getDistanceToEdge",value:function(i,o,a,s,l,c){return this._getDistanceToLine(i,o,a,s,l,c)}}]),e}(fne),nu=function(){function t(r,e,n,i,o){if(we(this,t),e===void 0)throw new Error("No body provided");this.options=m1(i),this.globalOptions=i,this.defaultOptions=o,this.body=e,this.imagelist=n,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new sne(this.body,this.options,!0),this.setOptions(r)}return $e(t,[{key:"setOptions",value:function(e){if(e){var n=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=ine(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=rM("edge",i),this.updateLabelModule(e),n=this.updateEdgeType()||n,this._setInteractionWidths(),this.connect(),n}}},{key:"getFormattingValues",value:function(){var e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,n=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,o=this.options.color.inherit,a={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:n,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:o?void 0:this.options.color.color,inheritsColor:o,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){var s=this.options.selectionWidth;typeof s=="function"?a.width=s(a.width):typeof s=="number"&&(a.width+=s),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.highlight,a.shadow=this.options.shadow.enabled}else if(this.hover){var l=this.options.hoverWidth;typeof l=="function"?a.width=l(a.width):typeof l=="number"&&(a.width+=l),a.width=Math.max(a.width,.3/this.body.view.scale),a.color=this.options.color.hover,a.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(a,this.options.id,this.selected,this.hover),a.color!==void 0&&(a.inheritsColor=!1),a.shadow===!1&&(a.shadowColor!==this.options.shadow.color||a.shadowSize!==this.options.shadow.size||a.shadowX!==this.options.shadow.x||a.shadowY!==this.options.shadow.y)&&(a.shadow=!0));else a.shadow=this.options.shadow.enabled,a.width=Math.max(a.width,.3/this.body.view.scale);return a}},{key:"updateLabelModule",value:function(e){var n=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var e=this.options.smooth,n=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof eN&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof rN&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof tN&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof nN&&e.type.enabled===!1)&&(i=!1),i===!0&&(n=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(n=!0,this.edgeType=new eN(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new rN(this.options,this.body,this.labelModule):this.edgeType=new tN(this.options,this.body,this.labelModule):this.edgeType=new nN(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),n}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(e,n,i){if(this.options.value!==void 0){var o=this.options.scaling.customScalingFunction(e,n,i,this.options.value),a=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){var s=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+o*s}this.options.width=this.options.scaling.min+o*a}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode();this.edgeType.drawLine(e,n,this.selected,this.hover,i),this.drawLabel(e,i)}}},{key:"drawArrows",value:function(e){var n=this.getFormattingValues();if(!n.hidden){var i=this.edgeType.getViaNode(),o={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,n.fromArrow&&(o.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.fromPoint=o.from.core),n.fromArrowSrc&&(o.from.image=this.imagelist.load(n.fromArrowSrc)),n.fromArrowImageWidth&&(o.from.imageWidth=n.fromArrowImageWidth),n.fromArrowImageHeight&&(o.from.imageHeight=n.fromArrowImageHeight)),n.toArrow&&(o.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,n),n.arrowStrikethrough===!1&&(this.edgeType.toPoint=o.to.core),n.toArrowSrc&&(o.to.image=this.imagelist.load(n.toArrowSrc)),n.toArrowImageWidth&&(o.to.imageWidth=n.toArrowImageWidth),n.toArrowImageHeight&&(o.to.imageHeight=n.toArrowImageHeight)),n.middleArrow&&(o.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,n),n.middleArrowSrc&&(o.middle.image=this.imagelist.load(n.middleArrowSrc)),n.middleArrowImageWidth&&(o.middle.imageWidth=n.middleArrowImageWidth),n.middleArrowImageHeight&&(o.middle.imageHeight=n.middleArrowImageHeight)),n.fromArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.from),n.middleArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.middle),n.toArrow&&this.edgeType.drawArrowHead(e,n,this.selected,this.hover,o.to)}}},{key:"drawLabel",value:function(e,n){if(this.options.label!==void 0){var i=this.from,o=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);var a;if(i.id!=o.id){this.labelModule.pointToSelf=!1,a=this.edgeType.getPoint(.5,n),e.save();var s=this._getRotation(e);s.angle!=0&&(e.translate(s.x,s.y),e.rotate(s.angle)),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;var l=one(e,this.options.selfReference.angle,this.options.selfReference.size,i);a=this._pointOnCircle(l.x,l.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,a.x,a.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(e){var n=[];if(this.labelModule.visible()){var i=this._getRotation();jy(this.labelModule.getSize(),e,i)&&n.push({edgeId:this.id,labelId:0})}var o={left:e.x,top:e.y};return this.isOverlappingWith(o)&&n.push({edgeId:this.id}),n}},{key:"isOverlappingWith",value:function(e){if(this.connected){var n=10,i=this.from.x,o=this.from.y,a=this.to.x,s=this.to.y,l=e.left,c=e.top,u=this.edgeType.getDistanceToEdge(i,o,a,s,l,c);return u0&&s<0)&&(l+=Math.PI),o.angle=l,o}},{key:"_pointOnCircle",value:function(e,n,i,o){return{x:e+i*Math.cos(o),y:n-i*Math.sin(o)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}}],[{key:"parseOptions",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(Dg(s,e,n,i),n.endPointOffset!==void 0&&n.endPointOffset.from!==void 0&&(Sl(n.endPointOffset.from)?e.endPointOffset.from=n.endPointOffset.from:(e.endPointOffset.from=o.endPointOffset.from!==void 0?o.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),n.endPointOffset!==void 0&&n.endPointOffset.to!==void 0&&(Sl(n.endPointOffset.to)?e.endPointOffset.to=n.endPointOffset.to:(e.endPointOffset.to=o.endPointOffset.to!==void 0?o.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),DA(n.label)?e.label=n.label:DA(e.label)||(e.label=void 0),Ji(e,n,"smooth",o),Ji(e,n,"shadow",o),Ji(e,n,"background",o),n.dashes!==void 0&&n.dashes!==null?e.dashes=n.dashes:i===!0&&n.dashes===null&&(e.dashes=Gl(o.dashes)),n.scaling!==void 0&&n.scaling!==null?(n.scaling.min!==void 0&&(e.scaling.min=n.scaling.min),n.scaling.max!==void 0&&(e.scaling.max=n.scaling.max),Ji(e.scaling,n.scaling,"label",o.scaling)):i===!0&&n.scaling===null&&(e.scaling=Gl(o.scaling)),n.arrows!==void 0&&n.arrows!==null)if(typeof n.arrows=="string"){var l=n.arrows.toLowerCase();e.arrows.to.enabled=zt(l).call(l,"to")!=-1,e.arrows.middle.enabled=zt(l).call(l,"middle")!=-1,e.arrows.from.enabled=zt(l).call(l,"from")!=-1}else if(Gt(n.arrows)==="object")Ji(e.arrows,n.arrows,"to",o.arrows),Ji(e.arrows,n.arrows,"middle",o.arrows),Ji(e.arrows,n.arrows,"from",o.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+H0(n.arrows));else i===!0&&n.arrows===null&&(e.arrows=Gl(o.arrows));if(n.color!==void 0&&n.color!==null){var c=tu(n.color)?{color:n.color,highlight:n.color,hover:n.color,inherit:!1,opacity:1}:n.color,u=e.color;if(a)tr(u,o.color,!1,i);else for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&delete u[g];if(tu(u))u.color=u,u.highlight=u,u.hover=u,u.inherit=!1,c.opacity===void 0&&(u.opacity=1);else{var h=!1;c.color!==void 0&&(u.color=c.color,h=!0),c.highlight!==void 0&&(u.highlight=c.highlight,h=!0),c.hover!==void 0&&(u.hover=c.hover,h=!0),c.inherit!==void 0&&(u.inherit=c.inherit),c.opacity!==void 0&&(u.opacity=Math.min(1,Math.max(0,c.opacity))),h===!0?u.inherit=!1:u.inherit===void 0&&(u.inherit="from")}}else i===!0&&n.color===null&&(e.color=m1(o.color));i===!0&&n.font===null&&(e.font=m1(o.font)),Object.prototype.hasOwnProperty.call(n,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=n.selfReferenceSize)}}]),t}(),tkt=function(){function t(r,e,n){var i,o=this;we(this,t),this.body=r,this.images=e,this.groups=n,this.body.functions.createEdge=ve(i=this.create).call(i,this),this.edgesListeners={add:function(s,l){o.add(l.items)},update:function(s,l){o.update(l.items)},remove:function(s,l){o.remove(l.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,l,c,u){if(l===s)return .5;var g=1/(l-s);return Math.max(0,(u-s)*g)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},tr(this.options,this.defaultOptions),this.bindEventListeners()}return $e(t,[{key:"bindEventListeners",value:function(){var e=this,n,i;this.body.emitter.on("_forceDisableDynamicCurves",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;o==="dynamic"&&(o="continuous");var s=!1;for(var l in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,l)){var c=e.body.edges[l],u=e.body.data.edges.get(l);if(u!=null){var g=u.smooth;g!==void 0&&g.enabled===!0&&g.type==="dynamic"&&(o===void 0?c.setOptions({smooth:!1}):c.setOptions({smooth:{type:o}}),s=!0)}}a===!0&&s===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",ve(n=this.refresh).call(n,this)),this.body.emitter.on("refresh",ve(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",function(){vt(e.edgesListeners,function(o,a){e.body.data.edges&&e.body.data.edges.off(a,o)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(e!==void 0){nu.parseOptions(this.options,e,!0,this.defaultOptions,!0);var n=!1;if(e.smooth!==void 0)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(n=this.body.edges[i].updateEdgeType()||n);if(e.font!==void 0)for(var o in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,o)&&this.body.edges[o].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||n===!0)&&this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.body.data.edges;if(see("id",e))this.body.data.edges=e;else if(Bt(e))this.body.data.edges=new zA,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new zA;else throw new TypeError("Array or DataSet expected");if(o&&vt(this.edgesListeners,function(s,l){o.off(l,s)}),this.body.edges={},this.body.data.edges){vt(this.edgesListeners,function(s,l){n.body.data.edges.on(l,s)});var a=this.body.data.edges.getIds();this.add(a,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),i===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,o=this.body.data.edges,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length!==0){var i=this.body.edges;vt(e,function(o){var a=i[o];a!==void 0&&a.remove()}),n&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var e=this;vt(this.body.edges,function(n,i){var o=e.body.data.edges.get(i);o!==void 0&&n.setOptions(o)})}},{key:"create",value:function(e){return new nu(e,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var e,n=this.body.nodes,i=this.body.edges;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){var o=i[e];o.from=null,o.to=null,o.connect()}}},{key:"getConnectedNodes",value:function(e){var n=[];if(this.body.edges[e]!==void 0){var i=this.body.edges[e];i.fromId!==void 0&&n.push(i.fromId),i.toId!==void 0&&n.push(i.toId)}return n}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var e=this,n=[];vt(this.body.edges,function(i,o){var a=e.body.nodes[i.toId],s=e.body.nodes[i.fromId];a!==void 0&&a.isCluster===!0||s!==void 0&&s.isCluster===!0||(a===void 0||s===void 0)&&n.push(o)}),this.remove(n,!1)}},{key:"_addMissingEdges",value:function(){var e=this.body.data.edges;if(e!=null){var n=this.body.edges,i=[];Zt(e).call(e,function(o,a){var s=n[a];s===void 0&&i.push(a)}),this.add(i,!0)}}}]),t}(),Cne=function(){function t(r,e,n){we(this,t),this.body=r,this.physicsBody=e,this.barnesHutTree,this.setOptions(n),this._rng=K4("BARNES HUT SOLVER")}return $e(t,[{key:"setOptions",value:function(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){var e,n=this.body.nodes,i=this.physicsBody.physicsNodeIndices,o=i.length,a=this._formBarnesHutTree(n,i);this.barnesHutTree=a;for(var s=0;s0&&this._getForceContributions(a.root,e)}}},{key:"_getForceContributions",value:function(e,n){this._getForceContribution(e.children.NW,n),this._getForceContribution(e.children.NE,n),this._getForceContribution(e.children.SW,n),this._getForceContribution(e.children.SE,n)}},{key:"_getForceContribution",value:function(e,n){if(e.childrenCount>0){var i=e.centerOfMass.x-n.x,o=e.centerOfMass.y-n.y,a=Math.sqrt(i*i+o*o);a*e.calcSize>this.thetaInversed?this._calculateForces(a,i,o,n,e):e.childrenCount===4?this._getForceContributions(e,n):e.children.data.id!=n.id&&this._calculateForces(a,i,o,n,e)}}},{key:"_calculateForces",value:function(e,n,i,o,a){e===0&&(e=.1,n=e),this.overlapAvoidanceFactor<1&&o.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*o.shape.radius,e-o.shape.radius));var s=this.options.gravitationalConstant*a.mass*o.options.mass/Math.pow(e,3),l=n*s,c=i*s;this.physicsBody.forces[o.id].x+=l,this.physicsBody.forces[o.id].y+=c}},{key:"_formBarnesHutTree",value:function(e,n){for(var i,o=n.length,a=e[n[0]].x,s=e[n[0]].y,l=e[n[0]].x,c=e[n[0]].y,u=1;u0&&(hl&&(l=h),dc&&(c=d))}var f=Math.abs(l-a)-Math.abs(c-s);f>0?(s-=.5*f,c+=.5*f):(a+=.5*f,l-=.5*f);var C=1e-5,v=Math.max(C,Math.abs(l-a)),A=.5*v,I=.5*(a+l),p=.5*(s+c),m={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:I-A,maxX:I+A,minY:p-A,maxY:p+A},size:v,calcSize:1/v,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(m.root);for(var b=0;b0&&this._placeInTree(m.root,i);return m}},{key:"_updateBranchMass",value:function(e,n){var i=e.centerOfMass,o=e.mass+n.options.mass,a=1/o;i.x=i.x*e.mass+n.x*n.options.mass,i.x*=a,i.y=i.y*e.mass+n.y*n.options.mass,i.y*=a,e.mass=o;var s=Math.max(Math.max(n.height,n.radius),n.width);e.maxWidth=e.maxWidthn.x?o.maxY>n.y?a="NW":a="SW":o.maxY>n.y?a="NE":a="SE",this._placeInRegion(e,n,a)}},{key:"_placeInRegion",value:function(e,n,i){var o=e.children[i];switch(o.childrenCount){case 0:o.children.data=n,o.childrenCount=1,this._updateBranchMass(o,n);break;case 1:o.children.data.x===n.x&&o.children.data.y===n.y?(n.x+=this._rng(),n.y+=this._rng()):(this._splitBranch(o),this._placeInTree(o,n));break;case 4:this._placeInTree(o,n);break}}},{key:"_splitBranch",value:function(e){var n=null;e.childrenCount===1&&(n=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),n!=null&&this._placeInTree(e,n)}},{key:"_insertRegion",value:function(e,n){var i,o,a,s,l=.5*e.size;switch(n){case"NW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY,s=e.range.minY+l;break;case"NE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY,s=e.range.minY+l;break;case"SW":i=e.range.minX,o=e.range.minX+l,a=e.range.minY+l,s=e.range.maxY;break;case"SE":i=e.range.minX+l,o=e.range.maxX,a=e.range.minY+l,s=e.range.maxY;break}e.children[n]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:o,minY:a,maxY:s},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,n){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,n))}},{key:"_drawBranch",value:function(e,n,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,n),this._drawBranch(e.children.NE,n),this._drawBranch(e.children.SE,n),this._drawBranch(e.children.SW,n)),n.strokeStyle=i,n.beginPath(),n.moveTo(e.range.minX,e.range.minY),n.lineTo(e.range.maxX,e.range.minY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.minY),n.lineTo(e.range.maxX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.maxX,e.range.maxY),n.lineTo(e.range.minX,e.range.maxY),n.stroke(),n.beginPath(),n.moveTo(e.range.minX,e.range.maxY),n.lineTo(e.range.minX,e.range.minY),n.stroke()}}]),t}(),rkt=function(){function t(r,e,n){we(this,t),this._rng=K4("REPULSION SOLVER"),this.body=r,this.physicsBody=e,this.setOptions(n)}return $e(t,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,n,i,o,a,s,l,c,u=this.body.nodes,g=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces,d=this.options.nodeDistance,f=-2/3/d,C=4/3,v=0;v"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var skt=function(t){xt(e,t);var r=okt(e);function e(n,i,o){var a;return we(this,e),a=r.call(this,n,i,o),a._rng=K4("FORCE ATLAS 2 BASED REPULSION SOLVER"),a}return $e(e,[{key:"_calculateForces",value:function(i,o,a,s,l){i===0&&(i=.1*this._rng(),o=i),this.overlapAvoidanceFactor<1&&s.shape.radius&&(i=Math.max(.1+this.overlapAvoidanceFactor*s.shape.radius,i-s.shape.radius));var c=s.edges.length+1,u=this.options.gravitationalConstant*l.mass*s.options.mass*c/Math.pow(i,2),g=o*u,h=a*u;this.physicsBody.forces[s.id].x+=g,this.physicsBody.forces[s.id].y+=h}}]),e}(Cne);function lkt(t){var r=ckt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function ckt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var ukt=function(t){xt(e,t);var r=lkt(e);function e(n,i,o){return we(this,e),r.call(this,n,i,o)}return $e(e,[{key:"_calculateForces",value:function(i,o,a,s,l){if(i>0){var c=l.edges.length+1,u=this.options.centralGravity*c*l.options.mass;s[l.id].x=o*u,s[l.id].y=a*u}}}]),e}(gv),gkt=function(){function t(r){we(this,t),this.body=r,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Wr(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return $e(t,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,VA(["stabilization"],this.options,e),Ji(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());var n=this.options.wind;n&&((typeof n.x!="number"||Fy(n.x))&&(n.x=0),(typeof n.y!="number"||Fy(n.y))&&(n.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new skt(this.body,this.physicsBody,e),this.edgesSolver=new m6(this.body,this.physicsBody,e),this.gravitySolver=new ukt(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new rkt(this.body,this.physicsBody,e),this.edgesSolver=new m6(this.body,this.physicsBody,e),this.gravitySolver=new gv(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new nkt(this.body,this.physicsBody,e),this.edgesSolver=new ikt(this.body,this.physicsBody,e),this.gravitySolver=new gv(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new Cne(this.body,this.physicsBody,e),this.edgesSolver=new m6(this.body,this.physicsBody,e),this.gravitySolver=new gv(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=ve(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=kA();this.physicsTick();var n=kA()-e;(n<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&Ia(function(){e.body.emitter.emit("stabilized",{iterations:n}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){var e=1.2;this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/es))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,n=0,i=0,o=5,a=0;as&&(e=e>0?s:-s),e}},{key:"_performStep",value:function(e){var n=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var o=this.physicsBody.velocities[e];this.previousStates[e]={x:n.x,y:n.y,vx:o.x,vy:o.y},n.options.fixed.x===!1?(o.x=this.calculateComponentVelocity(o.x,i.x,n.options.mass),n.x+=o.x*this.timestep):(i.x=0,o.x=0),n.options.fixed.y===!1?(o.y=this.calculateComponentVelocity(o.y,i.y,n.options.mass),n.y+=o.y*this.timestep):(i.y=0,o.y=0);var a=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.y,2));return a}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n].x&&e[n].y){var i=e[n].options.fixed;this.freezeCache[n]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.freezeCache[n]!==void 0&&(e[n].options.fixed.x=this.freezeCache[n].x,e[n].options.fixed.y=this.freezeCache[n].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof n!="number"&&(n=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",n)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=n,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,Ia(function(){return e._stabilizationBatch()},0)}},{key:"_startStabilizing",value:function(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var e=this,n=function(){return e.stabilized===!1&&e.stabilizationIterations1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.shape.boundingBox.left&&(a=l.shape.boundingBox.left),sl.shape.boundingBox.top&&(i=l.shape.boundingBox.top),o1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,o=-1e9,a=1e9,s=-1e9,l;if(n.length>0)for(var c=0;cl.x&&(a=l.x),sl.y&&(i=l.y),o"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var Ikt=function(t){xt(e,t);var r=vkt(e);function e(n,i,o,a,s,l){var c;return we(this,e),c=r.call(this,n,i,o,a,s,l),c.isCluster=!0,c.containedNodes={},c.containedEdges={},c}return $e(e,[{key:"_openChildCluster",value:function(i){var o=this,a=this.body.nodes[i];if(this.containedNodes[i]===void 0)throw new Error("node with id: "+i+" not in current cluster");if(!a.isCluster)throw new Error("node with id: "+i+" is not a cluster");delete this.containedNodes[i],vt(a.edges,function(s){delete o.containedEdges[s.id]}),vt(a.containedNodes,function(s,l){o.containedNodes[l]=s}),a.containedNodes={},vt(a.containedEdges,function(s,l){o.containedEdges[l]=s}),a.containedEdges={},vt(a.edges,function(s){vt(o.edges,function(l){var c,u,g=zt(c=l.clusteringEdgeReplacingIds).call(c,s.id);g!==-1&&(vt(s.clusteringEdgeReplacingIds,function(h){l.clusteringEdgeReplacingIds.push(h),o.body.edges[h].edgeReplacedById=l.id}),rs(u=l.clusteringEdgeReplacingIds).call(u,g,1))})}),a.edges=[]}}]),e}(Oi),pkt=function(){function t(r){var e=this;we(this,t),this.body=r,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Wr(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){e.clusteredNodes={},e.clusteredEdges={}})}return $e(t,[{key:"clusterByHubsize",value:function(e,n){e===void 0?e=this._getHubSize():Gt(e)==="object"&&(n=this._checkOptions(e),e=this._getHubSize());for(var i=[],o=0;o=e&&i.push(a.id)}for(var s=0;s0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(n.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");n=this._checkOptions(n);var o={},a={};vt(this.body.nodes,function(s,l){s.options&&n.joinCondition(s.options)===!0&&(o[l]=s,vt(s.edges,function(c){e.clusteredEdges[c.id]===void 0&&(a[c.id]=c)}))}),this._cluster(o,a,n,i)}},{key:"clusterByEdgeCount",value:function(e,n){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;n=this._checkOptions(n);for(var a=[],s={},l,c,u,g=function(){var C={},v={},A=i.body.nodeIndices[h],I=i.body.nodes[A];if(s[A]===void 0){u=0,c=[];for(var p=0;p0&&mr(v).length>0&&b===!0){var M=function(){for(var P=0;P1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,n)}},{key:"clusterBridges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,n)}},{key:"clusterByConnection",value:function(e,n){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");var a=this.body.nodes[e];n=this._checkOptions(n,a),n.clusterNodeProperties.x===void 0&&(n.clusterNodeProperties.x=a.x),n.clusterNodeProperties.y===void 0&&(n.clusterNodeProperties.y=a.y),n.clusterNodeProperties.fixed===void 0&&(n.clusterNodeProperties.fixed={},n.clusterNodeProperties.fixed.x=a.options.fixed.x,n.clusterNodeProperties.fixed.y=a.options.fixed.y);var s={},l={},c=a.id,u=Un.cloneOptions(a);s[c]=a;for(var g=0;g-1&&(l[p.id]=p)}this._cluster(s,l,n,o)}},{key:"_createClusterEdges",value:function(e,n,i,o){for(var a,s,l,c,u,g,h=mr(e),d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&this.clusteredNodes[s]!==void 0&&a.push(s);for(var l=0;lo?l.x:o,a=l.ys?l.y:s;return{x:.5*(i+o),y:.5*(a+s)}}},{key:"openCluster",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");var o=this.body.nodes[e];if(o===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(o.isCluster!==!0||o.containedNodes===void 0||o.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");var a=this.findNode(e),s=zt(a).call(a,e)-1;if(s>=0){var l=a[s],c=this.body.nodes[l];c._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}var u=o.containedNodes,g=o.containedEdges;if(n!==void 0&&n.releaseFunction!==void 0&&typeof n.releaseFunction=="function"){var h={},d={x:o.x,y:o.y};for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var C=this.body.nodes[f];h[f]={x:C.x,y:C.y}}var v=n.releaseFunction(d,h);for(var A in u)if(Object.prototype.hasOwnProperty.call(u,A)){var I=this.body.nodes[A];v[A]!==void 0&&(I.x=v[A].x===void 0?o.x:v[A].x,I.y=v[A].y===void 0?o.y:v[A].y)}}else vt(u,function(Me){Me.options.fixed.x===!1&&(Me.x=o.x),Me.options.fixed.y===!1&&(Me.y=o.y)});for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var m=this.body.nodes[p];m.vx=o.vx,m.vy=o.vy,m.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var b=[],_=0;_0&&so&&(o=s.edges.length),e+=s.edges.length,n+=Math.pow(s.edges.length,2),i+=1}e=e/i,n=n/i;var l=n-Math.pow(e,2),c=Math.sqrt(l),u=Math.floor(e+2*c);return u>o&&(u=o),u}},{key:"_createClusteredEdge",value:function(e,n,i,o,a){var s=Un.cloneOptions(i,"edge");tr(s,o),s.from=e,s.to=n,s.id="clusterEdge:"+qh(),a!==void 0&&tr(s,a);var l=this.body.functions.createEdge(s);return l.clusteringEdgeReplacingIds=[i.id],l.connect(),this.body.edges[l.id]=l,l}},{key:"_clusterEdges",value:function(e,n,i,o){if(n instanceof nu){var a=n,s={};s[a.id]=a,n=s}if(e instanceof Oi){var l=e,c={};c[l.id]=l,e=c}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");o===void 0&&(o=i.clusterEdgeProperties),this._createClusterEdges(e,n,i,o);for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&this.body.edges[u]!==void 0){var g=this.body.edges[u];this._backupEdgeOptions(g),g.setOptions({physics:!1})}for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&(this.clusteredNodes[h]={clusterId:i.id,node:this.body.nodes[h]},this.body.nodes[h].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(e){if(e!==void 0){var n=this.clusteredNodes[e];if(n!==void 0){var i=n.clusterId;if(i!==void 0)return this.body.nodes[i]}}}},{key:"_filter",value:function(e,n){var i=[];return vt(e,function(o){n(o)&&i.push(o)}),i}},{key:"_updateState",value:function(){var e=this,n,i=[],o={},a=function(f){vt(e.body.nodes,function(C){C.isCluster===!0&&f(C)})};for(n in this.clusteredNodes)if(Object.prototype.hasOwnProperty.call(this.clusteredNodes,n)){var s=this.body.nodes[n];s===void 0&&i.push(n)}a(function(d){for(var f=0;f0}(!d.endPointsValid()||!C)&&(o[f]=f)}),a(function(d){vt(o,function(f){delete d.containedEdges[f],vt(d.edges,function(C,v){if(C.id===f){d.edges[v]=null;return}C.clusteringEdgeReplacingIds=e._filter(C.clusteringEdgeReplacingIds,function(A){return!o[A]})}),d.edges=e._filter(d.edges,function(C){return C!==null})})}),vt(o,function(d){delete e.clusteredEdges[d]}),vt(o,function(d){delete e.body.edges[d]});var c=mr(this.body.edges);vt(c,function(d){var f=e.body.edges[d],C=e._isClusteredNode(f.fromId)||e._isClusteredNode(f.toId);if(C!==e._isClusteredEdge(f.id))if(C){var v=e._getClusterNodeForNode(f.fromId);v!==void 0&&e._clusterEdges(e.body.nodes[f.fromId],f,v);var A=e._getClusterNodeForNode(f.toId);A!==void 0&&e._clusterEdges(e.body.nodes[f.toId],f,A)}else delete e._clusterEdges[d],e._restoreEdge(f)});for(var u=!1,g=!0,h=function(){var f=[];a(function(v){var A=mr(v.containedNodes).length,I=v.options.allowSingleNodeCluster===!0;(I&&A<1||!I&&A<2)&&f.push(v.id)});for(var C=0;C0,u=u||g};g;)h();u&&this._updateState()}},{key:"_isClusteredNode",value:function(e){return this.clusteredNodes[e]!==void 0}},{key:"_isClusteredEdge",value:function(e){return this.clusteredEdges[e]!==void 0}}]),t}();function mkt(){var t;window!==void 0&&(t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),t===void 0?window.requestAnimationFrame=function(r){r()}:window.requestAnimationFrame=t}var ykt=function(){function t(r,e){we(this,t),mkt(),this.body=r,this.canvas=e,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Wr(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return $e(t,[{key:"bindEventListeners",value:function(){var e=this,n;this.body.emitter.on("dragStart",function(){e.dragging=!0}),this.body.emitter.on("dragEnd",function(){e.dragging=!1}),this.body.emitter.on("zoom",function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Ia(function(){var i;e.zooming=!1,ve(i=e._requestRedraw).call(i,e)()},250)}),this.body.emitter.on("_resizeNodes",function(){e._resizeNodes()}),this.body.emitter.on("_redraw",function(){e.renderingActive===!1&&e._redraw()}),this.body.emitter.on("_blockRedraw",function(){e.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",function(){e.allowRedraw=!0,e.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",ve(n=this._requestRedraw).call(n,this)),this.body.emitter.on("_startRendering",function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()}),this.body.emitter.on("_stopRendering",function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(e!==void 0){var n=["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"];Dg(n,this.options,e)}}},{key:"_requestNextFrame",value:function(e,n){if(!(typeof window>"u")){var i,o=window;return this.requiresTimeout===!0?i=Ia(e,n):o.requestAnimationFrame&&(i=o.requestAnimationFrame(e)),i}}},{key:"_startRendering",value:function(){if(this.renderingActive===!0&&this.renderTimer===void 0){var e;this.renderTimer=this._requestNextFrame(ve(e=this._renderStep).call(e,this),this.simulationInterval)}}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this._requestNextFrame(function(){e._redraw(!1)},0))}},{key:"_redraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var n={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();var i=this.canvas.getContext(),o=this.canvas.frame.canvas.clientWidth,a=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,o,a),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){var s=this._drawNodes(i,e),l=s.drawExternalLabels;n.drawExternalLabels=l}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),n.drawExternalLabels!=null&&n.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,o,a)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var n=this.body.nodes,i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i=n[o],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,o=this.body.nodeIndices,a,s=[],l=[],c=20,u=this.canvas.DOMtoCanvas({x:-c,y:-c}),g=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+c,y:this.canvas.frame.canvas.clientHeight+c}),h={top:u.y,left:u.x,bottom:g.y,right:g.x},d=[],f=0;f0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,n=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&n!=1?i=this.cameraState.scale*.5*(e+n):e!=1?i=this.cameraState.scale*e:n!=1&&(i=this.cameraState.scale*n),this.body.view.scale=i;var o=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),a={x:o.x-this.cameraState.position.x,y:o.y-this.cameraState.position.y};this.body.view.translation.x+=a.x*this.body.view.scale,this.body.view.translation.y+=a.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(zt(e).call(e,"%")!==-1||zt(e).call(e,"px")!==-1)return e;if(zt(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new ru(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:ru.DIRECTION_ALL}),NA(this.hammer,function(n){e.body.eventListeners.onTouch(n)}),this.hammer.on("tap",function(n){e.body.eventListeners.onTap(n)}),this.hammer.on("doubletap",function(n){e.body.eventListeners.onDoubleTap(n)}),this.hammer.on("press",function(n){e.body.eventListeners.onHold(n)}),this.hammer.on("panstart",function(n){e.body.eventListeners.onDragStart(n)}),this.hammer.on("panmove",function(n){e.body.eventListeners.onDrag(n)}),this.hammer.on("panend",function(n){e.body.eventListeners.onDragEnd(n)}),this.hammer.on("pinch",function(n){e.body.eventListeners.onPinch(n)}),this.frame.canvas.addEventListener("wheel",function(n){e.body.eventListeners.onMouseWheel(n)}),this.frame.canvas.addEventListener("mousemove",function(n){e.body.eventListeners.onMouseMove(n)}),this.frame.canvas.addEventListener("contextmenu",function(n){e.body.eventListeners.onContext(n)}),this.hammerFrame=new ru(this.frame),vne(this.hammerFrame,function(n){e.body.eventListeners.onRelease(n)})}},{key:"setSize",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),n=this._prepareValue(n);var i=!1,o=this.frame.canvas.width,a=this.frame.canvas.height,s=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||n!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=n)this._getCameraState(s),this.frame.style.width=e,this.frame.style.height=n,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=n,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var l=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),c=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==l||this.frame.canvas.height!==c)&&this._getCameraState(s),this.frame.canvas.width!==l&&(this.frame.canvas.width=l,i=!0),this.frame.canvas.height!==c&&(this.frame.canvas.height=c,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(o/this.pixelRatio),oldHeight:Math.round(a/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");var n=1;typeof window<"u"&&(n=window.devicePixelRatio||1);var i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return n/i}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),t}();function zkt(t,r){var e=Wr({nodes:r,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},t??{});if(!Bt(e.nodes))throw new TypeError("Nodes has to be an array of ids.");if(e.nodes.length===0&&(e.nodes=r),!(typeof e.minZoomLevel=="number"&&e.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof e.maxZoomLevel=="number"&&e.minZoomLevel<=e.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return e}var Ekt=function(){function t(r,e){var n,i=this,o;we(this,t),this.body=r,this.canvas=e,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",ve(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",ve(o=this.releaseNode).call(o,this))}return $e(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}},{key:"fit",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=zkt(e,this.body.nodeIndices);var i=this.canvas.frame.canvas.clientWidth,o=this.canvas.frame.canvas.clientHeight,a,s;if(i===0||o===0)s=1,a=Un.getRange(this.body.nodes,e.nodes);else if(n===!0){var l=0;for(var c in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,c)){var u=this.body.nodes[c];u.predefinedPosition===!0&&(l+=1)}if(l>.5*this.body.nodeIndices.length){this.fit(e,!1);return}a=Un.getRange(this.body.nodes,e.nodes);var g=this.body.nodeIndices.length;s=12.662/(g+7.4147)+.0964822;var h=Math.min(i/600,o/600);s*=h}else{this.body.emitter.emit("_resizeNodes"),a=Un.getRange(this.body.nodes,e.nodes);var d=Math.abs(a.maxX-a.minX)*1.1,f=Math.abs(a.maxY-a.minY)*1.1,C=i/d,v=o/f;s=C<=v?C:v}s>e.maxZoomLevel?s=e.maxZoomLevel:s1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){var i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};n.position=i,n.lockedOnNode=e,this.moveTo(n)}else console.error("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!Sl(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!Sl(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!Sl(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!Sl(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}},{key:"animateView",value:function(e){if(e!==void 0){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.position.x,y:n.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var o;this.viewFunction=ve(o=this._lockedRedraw).call(o,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var a;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=ve(a=this._transitionRedraw).call(a,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:n.x-e.x,y:n.y-e.y},o=this.body.view.translation,a={x:o.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:o.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=a}},{key:"releaseNode",value:function(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var n=g_t[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*n,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*n,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*n},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=ve(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function oN(t){var r=t&&t.preventDefault||!1,e=t&&t.container||window,n={},i={keydown:{},keyup:{}},o={},a;for(a=97;a<=122;a++)o[String.fromCharCode(a)]={code:65+(a-97),shift:!1};for(a=65;a<=90;a++)o[String.fromCharCode(a)]={code:a,shift:!0};for(a=0;a<=9;a++)o[""+a]={code:48+a,shift:!1};for(a=1;a<=12;a++)o["F"+a]={code:111+a,shift:!1};for(a=0;a<=9;a++)o["num"+a]={code:96+a,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var s=function(u){c(u,"keydown")},l=function(u){c(u,"keyup")},c=function(u,g){if(i[g][u.keyCode]!==void 0){for(var h=i[g][u.keyCode],d=0;d700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,n=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,n=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,o=n/e,a=(1-o)*this.canvas.canvasViewCenter.x+i.x*o,s=(1-o)*this.canvas.canvasViewCenter.y+i.y*o;this.body.view.scale=n,this.body.view.translation={x:a,y:s},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=oN({container:window,preventDefault:!0}):this.keycharm=oN({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var n,i,o,a,s,l,c,u,g,h,d,f,C,v,A,I,p,m,b,_,L,M,S,T;ve(n=this.keycharm).call(n,"up",function(){e.bindToRedraw("_moveUp")},"keydown"),ve(i=this.keycharm).call(i,"down",function(){e.bindToRedraw("_moveDown")},"keydown"),ve(o=this.keycharm).call(o,"left",function(){e.bindToRedraw("_moveLeft")},"keydown"),ve(a=this.keycharm).call(a,"right",function(){e.bindToRedraw("_moveRight")},"keydown"),ve(s=this.keycharm).call(s,"=",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(l=this.keycharm).call(l,"num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(c=this.keycharm).call(c,"num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(u=this.keycharm).call(u,"-",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(g=this.keycharm).call(g,"[",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(h=this.keycharm).call(h,"]",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(d=this.keycharm).call(d,"pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),ve(f=this.keycharm).call(f,"pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),ve(C=this.keycharm).call(C,"up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),ve(v=this.keycharm).call(v,"down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),ve(A=this.keycharm).call(A,"left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),ve(I=this.keycharm).call(I,"right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),ve(p=this.keycharm).call(p,"=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(m=this.keycharm).call(m,"num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(b=this.keycharm).call(b,"num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ve(_=this.keycharm).call(_,"-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ve(L=this.keycharm).call(L,"[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),ve(M=this.keycharm).call(M,"]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(S=this.keycharm).call(S,"pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),ve(T=this.keycharm).call(T,"pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")}}}]),t}();function Tkt(t,r){var e=typeof el<"u"&&Fc(t)||t["@@iterator"];if(!e){if(Bt(t)||(e=Lkt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Lkt(t,r){var e;if(t){if(typeof t=="string")return aN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aN(t,r)}}function aN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}},{key:"onTap",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n)}},{key:"onDoubleTap",value:function(e){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,n)}},{key:"onHold",value:function(e){var n=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(n,i),this.selectionHandler.commitAndEmit(n,e),this.selectionHandler.generateClickEvent("click",e,n),this.selectionHandler.generateClickEvent("hold",e,n)}},{key:"onRelease",value:function(e){if(new Date().valueOf()-this.touchTime>10){var n=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,n),this.touchTime=new Date().valueOf()}}},{key:"onContext",value:function(e){var n=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,n)}},{key:"checkSelectionChanges",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}},{key:"_determineDifference",value:function(e,n){var i=function(a,s){for(var l=[],c=0;c=a.minX&&g.x<=a.maxX&&g.y>=a.minY&&g.y<=a.maxY});Zt(s).call(s,function(u){return n.selectionHandler.selectObject(n.body.nodes[u])});var l=this.getPointer(e.center);this.selectionHandler.commitAndEmit(l,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var c=this.drag.selection;c&&c.length?(Zt(c).call(c,function(u){u.node.options.fixed.x=u.xFixed,u.node.options.fixed.y=u.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(e){var n=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);var i=this.pinch.scale*e.scale;this.zoom(i,n)}},{key:"zoom",value:function(e,n){if(this.options.zoomView===!0){var i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);var o=void 0;this.drag!==void 0&&this.drag.dragging===!0&&(o=this.canvas.DOMtoCanvas(this.drag.pointer));var a=this.body.view.translation,s=e/i,l=(1-s)*n.x+a.x*s,c=(1-s)*n.y+a.y*s;if(this.body.view.scale=e,this.body.view.translation={x:l,y:c},o!=null){var u=this.canvas.canvasToDOM(o);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),i0&&(this.popupObj=u[h[h.length-1]],s=!0)}if(this.popupObj===void 0&&s===!1){for(var f=this.body.edgeIndices,C=this.body.edges,v,A=[],I=0;I0&&(this.popupObj=C[A[A.length-1]],l="edge")}this.popupObj!==void 0?this.popupObj.id!==a&&(this.popup===void 0&&(this.popup=new p_t(this.canvas.frame)),this.popup.popupTargetType=l,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var n=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(n),i===!0)){var o=this.selectionHandler.getNodeAt(e);i=o===void 0?!1:o.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(n));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),Okt=eM,xkt=Kre;Okt("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},xkt);var Hkt=Lt,Vkt=Hkt.Set,Pkt=Vkt,Rkt=Pkt,Dkt=Rkt,yl=je(Dkt),Nkt=Ot,sN=tM,v5=Y4.getWeakData,Bkt=J_,Fkt=Wi,jkt=Eg,y6=mn,Ukt=Q_,Ane=J1,lN=yn,Ine=Nc,Gkt=Ine.set,Wkt=Ine.getterFor,Zkt=Ane.find,Kkt=Ane.findIndex,Ykt=Nkt([].splice),Xkt=0,A5=function(t){return t.frozen||(t.frozen=new pne)},pne=function(){this.entries=[]},b6=function(t,r){return Zkt(t.entries,function(e){return e[0]===r})};pne.prototype={get:function(t){var r=b6(this,t);if(r)return r[1]},has:function(t){return!!b6(this,t)},set:function(t,r){var e=b6(this,t);e?e[1]=r:this.entries.push([t,r])},delete:function(t){var r=Kkt(this.entries,function(e){return e[0]===t});return~r&&Ykt(this.entries,r,1),!!~r}};var qkt={getConstructor:function(t,r,e,n){var i=t(function(l,c){Bkt(l,o),Gkt(l,{type:r,id:Xkt++,frozen:void 0}),jkt(c)||Ukt(c,l[n],{that:l,AS_ENTRIES:e})}),o=i.prototype,a=Wkt(r),s=function(l,c,u){var g=a(l),h=v5(Fkt(c),!0);return h===!0?A5(g).set(c,u):h[g.id]=u,l};return sN(o,{delete:function(l){var c=a(this);if(!y6(l))return!1;var u=v5(l);return u===!0?A5(c).delete(l):u&&lN(u,c.id)&&delete u[c.id]},has:function(c){var u=a(this);if(!y6(c))return!1;var g=v5(c);return g===!0?A5(u).has(c):g&&lN(g,u.id)}}),sN(o,e?{get:function(c){var u=a(this);if(y6(c)){var g=v5(c);return g===!0?A5(u).get(c):g?g[u.id]:void 0}},set:function(c,u){return s(this,c,u)}}:{add:function(c){return s(this,c,!0)}}),i}},Qkt=Ure,cN=Sr,hv=Ot,uN=tM,Jkt=Y4,eOt=eM,mne=qkt,I5=mn,p5=Nc.enforce,tOt=Tt,rOt=xee,F0=Object,nOt=Array.isArray,m5=F0.isExtensible,yne=F0.isFrozen,iOt=F0.isSealed,bne=F0.freeze,oOt=F0.seal,gN={},hN={},aOt=!cN.ActiveXObject&&"ActiveXObject"in cN,lh,wne=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$ne=eOt("WeakMap",wne,mne),v2=$ne.prototype,dv=hv(v2.set),sOt=function(){return Qkt&&tOt(function(){var t=bne([]);return dv(new $ne,t,1),!yne(t)})};if(rOt)if(aOt){lh=mne.getConstructor(wne,"WeakMap",!0),Jkt.enable();var dN=hv(v2.delete),y5=hv(v2.has),fN=hv(v2.get);uN(v2,{delete:function(t){if(I5(t)&&!m5(t)){var r=p5(this);return r.frozen||(r.frozen=new lh),dN(this,t)||r.frozen.delete(t)}return dN(this,t)},has:function(r){if(I5(r)&&!m5(r)){var e=p5(this);return e.frozen||(e.frozen=new lh),y5(this,r)||e.frozen.has(r)}return y5(this,r)},get:function(r){if(I5(r)&&!m5(r)){var e=p5(this);return e.frozen||(e.frozen=new lh),y5(this,r)?fN(this,r):e.frozen.get(r)}return fN(this,r)},set:function(r,e){if(I5(r)&&!m5(r)){var n=p5(this);n.frozen||(n.frozen=new lh),y5(this,r)?dv(this,r,e):n.frozen.set(r,e)}else dv(this,r,e);return this}})}else sOt()&&uN(v2,{set:function(r,e){var n;return nOt(r)&&(yne(r)?n=gN:iOt(r)&&(n=hN)),dv(this,r,e),n===gN&&bne(r),n===hN&&oOt(r),this}});var lOt=Lt,cOt=lOt.WeakMap,uOt=cOt,gOt=uOt,hOt=gOt,Qh=je(hOt);function Jt(t,r,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?t!==r||!n:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(t):n?n.value:r.get(t)}function Wy(t,r,e,n,i){if(typeof r=="function"?t!==r||!i:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r.set(t,e),e}function Zy(t,r){var e=typeof el<"u"&&Fc(t)||t["@@iterator"];if(!e){if(Bt(t)||(e=dOt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function dOt(t,r){var e;if(t){if(typeof t=="string")return CN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CN(t,r)}}function CN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&arguments[0]!==void 0?arguments[0]:function(){};we(this,t),Ds.set(this,new AN),Ns.set(this,new AN),fv.set(this,void 0),Wy(this,fv,r)}return $e(t,[{key:"sizeNodes",get:function(){return Jt(this,Ds,"f").size}},{key:"sizeEdges",get:function(){return Jt(this,Ns,"f").size}},{key:"getNodes",value:function(){return Jt(this,Ds,"f").getSelection()}},{key:"getEdges",value:function(){return Jt(this,Ns,"f").getSelection()}},{key:"addNodes",value:function(){var e;(e=Jt(this,Ds,"f")).add.apply(e,arguments)}},{key:"addEdges",value:function(){var e;(e=Jt(this,Ns,"f")).add.apply(e,arguments)}},{key:"deleteNodes",value:function(e){Jt(this,Ds,"f").delete(e)}},{key:"deleteEdges",value:function(e){Jt(this,Ns,"f").delete(e)}},{key:"clear",value:function(){Jt(this,Ds,"f").clear(),Jt(this,Ns,"f").clear()}},{key:"commit",value:function(){for(var e,n,i={nodes:Jt(this,Ds,"f").commit(),edges:Jt(this,Ns,"f").commit()},o=arguments.length,a=new Array(o),s=0;s=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function COt(t,r){var e;if(t){if(typeof t=="string")return pN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pN(t,r)}}function pN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e4&&arguments[4]!==void 0?arguments[4]:!1,s=this._initBaseEvent(n,i);if(a===!0)s.nodes=[],s.edges=[];else{var l=this.getSelection();s.nodes=l.nodes,s.edges=l.edges}o!==void 0&&(s.previousSelection=o),e=="click"&&(s.items=this.getClickedItems(i)),n.controlEdge!==void 0&&(s.controlEdge=n.controlEdge),this.body.emitter.emit(e,s)}},{key:"selectObject",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;if(e!==void 0){if(e instanceof Oi){if(n===!0){var i;(i=this._selectionAccumulator).addEdges.apply(i,ra(e.edges))}this._selectionAccumulator.addNodes(e)}else this._selectionAccumulator.addEdges(e);return!0}return!1}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var n=[],i=this.body.nodes,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),o=this._getAllNodesOverlappingWith(i);if(o.length>0)return n===!0?this.body.nodes[o[o.length-1]]:o[o.length-1]}},{key:"_getEdgesOverlappingWith",value:function(e,n){for(var i=this.body.edges,o=0;o1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),o=10,a=null,s=this.body.edges,l=0;l0&&(this.generateClickEvent("deselectEdge",n,e,a),i=!0),o.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",n,e,a),i=!0),o.nodes.added.length>0&&(this.generateClickEvent("selectNode",n,e),i=!0),o.edges.added.length>0&&(this.generateClickEvent("selectEdge",n,e),i=!0),i===!0&&this.generateClickEvent("select",n,e)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var e;return Ru(e=this._selectionAccumulator.getNodes()).call(e,function(n){return n.id})}},{key:"getSelectedEdgeIds",value:function(){var e;return Ru(e=this._selectionAccumulator.getEdges()).call(e,function(n){return n.id})}},{key:"setSelection",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((n.unselectAll||n.unselectAll===void 0)&&this.unselectAll(),e.nodes){var i=IN(e.nodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value,s=this.body.nodes[a];if(!s)throw new RangeError('Node with id "'+a+'" not found');this.selectObject(s,n.highlightEdges)}}catch(h){i.e(h)}finally{i.f()}}if(e.edges){var l=IN(e.edges),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,g=this.body.edges[u];if(!g)throw new RangeError('Edge with id "'+u+'" not found');this.selectObject(g)}}catch(h){l.e(h)}finally{l.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:n})}},{key:"selectEdges",value:function(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(var n in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,n.id)||this._selectionAccumulator.deleteEdges(n)}},{key:"getClickedItems",value:function(e){for(var n=this.canvas.DOMtoCanvas(e),i=[],o=this.body.nodeIndices,a=this.body.nodes,s=o.length-1;s>=0;s--){var l=a[o[s]],c=l.getItemsOnPoint(n);i.push.apply(i,c)}for(var u=this.body.edgeIndices,g=this.body.edges,h=u.length-1;h>=0;h--){var d=g[u[h]],f=d.getItemsOnPoint(n);i.push.apply(i,f)}return i}}]),t}(),mN=lte,AOt=Math.floor,Ky=function(t,r){var e=t.length,n=AOt(e/2);return e<8?IOt(t,r):pOt(t,Ky(mN(t,0,n),r),Ky(mN(t,n),r),r)},IOt=function(t,r){for(var e=t.length,n=1,i,o;n0;)t[o]=t[--o];o!==n++&&(t[o]=i)}return t},pOt=function(t,r,e,n){for(var i=r.length,o=e.length,a=0,s=0;a3)){if(OOt)return!0;if(zN)return zN<603;var t="",r,e,n,i;for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)n1.push({k:e+i,v:n})}for(n1.sort(function(o,a){return a.v-o.v}),i=0;i$N(e)?1:-1}};zOt({target:"Array",proto:!0,forced:ROt},{sort:function(r){r!==void 0&&EOt(r);var e=SOt(this);if(Mne)return r===void 0?EN(e):EN(e,r);var n=[],i=wN(e),o,a;for(a=0;a=0:s>l;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},JOt={left:SN(!1),right:SN(!0)},ext=Sr,txt=zs,rxt=txt(ext.process)==="process",nxt=et,ixt=JOt.left,oxt=Pg,TN=b0,axt=rxt,sxt=!axt&&TN>79&&TN<83,lxt=sxt||!oxt("reduce");nxt({target:"Array",proto:!0,forced:lxt},{reduce:function(r){var e=arguments.length;return ixt(this,r,e,e>1?arguments[1]:void 0)}});var cxt=bn,uxt=cxt("Array").reduce,gxt=Dr,hxt=uxt,$6=Array.prototype,dxt=function(t){var r=t.reduce;return t===$6||gxt($6,t)&&r===$6.reduce?hxt:r},fxt=dxt,Cxt=fxt,vxt=Cxt,zne=je(vxt);function Ene(t){var r=Axt();return function(){var n=Ve(t),i;if(r){var o=Ve(this).constructor;i=J(n,arguments,o)}else i=n.apply(this,arguments);return Ft(this,i)}}function Axt(){if(typeof Reflect>"u"||!J||J.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(J(Boolean,[],function(){})),!0}catch{return!1}}var Sne=function(){function t(){we(this,t)}return $e(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(e){return this.fake_use(e),this.abstract()}},{key:"setPosition",value:function(e,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,n,i),this.abstract()}},{key:"getTreeSize",value:function(e){return this.fake_use(e),this.abstract()}},{key:"sort",value:function(e){this.fake_use(e),this.abstract()}},{key:"fix",value:function(e,n){this.fake_use(e,n),this.abstract()}},{key:"shift",value:function(e,n){this.fake_use(e,n),this.abstract()}}]),t}(),Ixt=function(t){xt(e,t);var r=Ene(e);function e(n){var i;return we(this,e),i=r.call(this),i.layout=n,i}return $e(e,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(i){return i.x}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.x=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_x,max:o.max_x}}},{key:"sort",value:function(i){Jh(i).call(i,function(o,a){return o.x-a.x})}},{key:"fix",value:function(i,o){i.y=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.y=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].x+=o}}]),e}(Sne),pxt=function(t){xt(e,t);var r=Ene(e);function e(n){var i;return we(this,e),i=r.call(this),i.layout=n,i}return $e(e,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(i){return i.y}},{key:"setPosition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;a!==void 0&&this.layout.hierarchical.addToOrdering(i,a),i.y=o}},{key:"getTreeSize",value:function(i){var o=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,i);return{min:o.min_y,max:o.max_y}}},{key:"sort",value:function(i){Jh(i).call(i,function(o,a){return o.y-a.y})}},{key:"fix",value:function(i,o){i.x=this.layout.options.hierarchical.levelSeparation*o,i.options.fixed.x=!0}},{key:"shift",value:function(i,o){this.layout.body.nodes[i].y+=o}}]),e}(Sne),mxt=et,yxt=J1.every,bxt=Pg,wxt=bxt("every");mxt({target:"Array",proto:!0,forced:!wxt},{every:function(r){return yxt(this,r,arguments.length>1?arguments[1]:void 0)}});var $xt=bn,_xt=$xt("Array").every,Mxt=Dr,zxt=_xt,_6=Array.prototype,Ext=function(t){var r=t.every;return t===_6||Mxt(_6,t)&&r===_6.every?zxt:r},Sxt=Ext,Txt=Sxt,Lxt=Txt,Tne=je(Lxt);function kxt(t,r){var e=typeof el<"u"&&Fc(t)||t["@@iterator"];if(!e){if(Bt(t)||(e=Oxt(t))||r){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Oxt(t,r){var e;if(t){if(typeof t=="string")return LN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LN(t,r)}}function LN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e=r[o])&&(r[o]=r[i]+1)}),r}function Hxt(t){return Lne(function(r){var e,n;return Tne(e=gi(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.to===r})},function(r,e){return e>r},"from",t)}function Vxt(t){return Lne(function(r){var e,n;return Tne(e=gi(n=r.edges).call(n,function(i){return t.has(i.toId)})).call(e,function(i){return i.from===r})},function(r,e){return ea)return{v:{v:xxt(n,o)}};++I},b;p=A.pop();)if(b=m(),b!==0&&b)return b.v},h;for(c.s();!(u=c.n()).done;)if(h=g(),h!==0&&h)return h.v}catch(d){c.e(d)}finally{c.f()}return o}var Pxt=function(){function t(){we(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return $e(t,[{key:"addRelation",value:function(e,n){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(n),this.parentReference[n]===void 0&&(this.parentReference[n]=[]),this.parentReference[n].push(e)}},{key:"checkIfTree",value:function(){for(var e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(e,n){n!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=n,this.treeIndex=Math.max(n,this.treeIndex))}},{key:"ensureLevel",value:function(e){this.levels[e]===void 0&&(this.levels[e]=0)}},{key:"getMaxLevel",value:function(e){var n=this,i={},o=function a(s){if(i[s]!==void 0)return i[s];var l=n.levels[s];if(n.childrenReference[s]){var c=n.childrenReference[s];if(c.length>0)for(var u=0;u0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(n);if(o===!0)return this.body.emitter.emit("refresh"),tr(n,this.optionsBackup)}return n}},{key:"_resetRNG",value:function(e){this.initialRandomSeed=e,this._rng=K4(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){var n=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:n.enabled===void 0?!0:n.enabled,solver:"hierarchicalRepulsion"},n.enabled=n.enabled===void 0?!0:n.enabled,n.solver=n.solver||"barnesHut"):Gt(e.physics)==="object"?(n.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,n.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(n.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{var o=e.edges.smooth;o.type!==void 0&&o.type!=="dynamic"&&(i=o.type),this.optionsBackup.edges={smooth:{enabled:o.enabled===void 0?!0:o.enabled,type:o.type===void 0?"dynamic":o.type,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}},e.edges.smooth={enabled:o.enabled===void 0?!0:o.enabled,type:i,roundness:o.roundness===void 0?.5:o.roundness,forceDirection:o.forceDirection===void 0?!1:o.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);for(var n=e.length+50,i=0;il){for(var u=e.length;e.length>l&&s<=a;){s+=1;var g=e.length;s%3===0?this.body.modules.clustering.clusterBridges(c):this.body.modules.clustering.clusterOutliers(c);var h=e.length;if(g==h&&s%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*u)})}s>a&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();for(var d=70,f=0;f0){var e,n,i=!1,o=!1;this.lastNodeOnLevel={},this.hierarchical=new Pxt;for(n in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,n)&&(e=this.body.nodes[n],e.options.level!==void 0?(i=!0,this.hierarchical.levels[n]=e.options.level):o=!0);if(o===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(o===!0){var a=this.options.hierarchical.sortMethod;a==="hubsize"?this._determineLevelsByHubsize():a==="directed"?this._determineLevelsDirected():a==="custom"&&this._determineLevelsCustomCallback()}for(var s in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,s)&&this.hierarchical.ensureLevel(s);var l=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(l),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,n=!1,i={},o=function(){for(var p=s(),m=0,b=0;b0)for(var _=0;_1&&arguments[1]!==void 0?arguments[1]:1e9,b=1e9,_=1e9,L=1e9,M=-1e9;for(var S in p)if(Object.prototype.hasOwnProperty.call(p,S)){var T=e.body.nodes[S],k=e.hierarchical.levels[T.id],O=e.direction.getPosition(T),P=e._getSpaceAroundNode(T,p),B=yr(P,2),te=B[0],ee=B[1];b=Math.min(te,b),_=Math.min(ee,_),k<=m&&(L=Math.min(O,L),M=Math.max(O,M))}return[L,M,b,_]},u=function(p,m){var b=e.hierarchical.getMaxLevel(p.id),_=e.hierarchical.getMaxLevel(m.id);return Math.min(b,_)},g=function(p,m,b){for(var _=e.hierarchical,L=0;L1)for(var T=0;T2&&arguments[2]!==void 0?arguments[2]:!1,_=e.direction.getPosition(p),L=e.direction.getPosition(m),M=Math.abs(L-_),S=e.options.hierarchical.nodeSpacing;if(M>S){var T={},k={};l(p,T),l(m,k);var O=u(p,m),P=c(T,O),B=c(k,O),te=P[1],ee=B[0],re=B[2],Me=Math.abs(te-ee);if(Me>S){var He=te-ee+S;He<-re+S&&(He=-re+S),He<0&&(e._shiftBlock(m.id,He),n=!0,b===!0&&e._centerParent(m))}}},d=function(p,m){for(var b=m.id,_=m.edges,L=e.hierarchical.levels[m.id],M=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,S={},T=[],k=0;k<_.length;k++){var O=_[k];if(O.toId!=O.fromId){var P=O.toId==b?O.from:O.to;S[_[k].id]=P,e.hierarchical.levels[P.id]0?ie=Math.min(Z,ft-e.options.hierarchical.nodeSpacing):Z<0&&(ie=-Math.min(-Z,ot-e.options.hierarchical.nodeSpacing)),ie!=0&&(e._shiftBlock(m.id,ie),n=!0)},Me=function(De){var be=e.direction.getPosition(m),Ne=e._getSpaceAroundNode(m),Ue=yr(Ne,2),ot=Ue[0],ft=Ue[1],Z=De-be,ie=be;Z>0?ie=Math.min(be+(ft-e.options.hierarchical.nodeSpacing),De):Z<0&&(ie=Math.max(be-(ot-e.options.hierarchical.nodeSpacing),De)),ie!==be&&(e.direction.setPosition(m,ie),n=!0)},He=ee(p,T);re(He),He=ee(p,_),Me(He)},f=function(p){var m=e.hierarchical.getLevels();m=Ul(m).call(m);for(var b=0;b0&&Math.abs(f)0&&(u=this.direction.getPosition(o[s-1])+c),this.direction.setPosition(l,u,n),this._validatePositionAndContinue(l,n,u),a++}}}}},{key:"_placeBranchNodes",value:function(e,n){var i,o=this.hierarchical.childrenReference[e];if(o!==void 0){for(var a=[],s=0;sn&&this.positionedNodes[c.id]===void 0){var g=this.options.hierarchical.nodeSpacing,h=void 0;l===0?h=this.direction.getPosition(this.body.nodes[e]):h=this.direction.getPosition(a[l-1])+g,this.direction.setPosition(c,h,u),this._validatePositionAndContinue(c,u,h)}else return}var d=this._getCenterPosition(a);this.direction.setPosition(this.body.nodes[e],d,n)}}},{key:"_validatePositionAndContinue",value:function(e,n,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[n]!==void 0){var o=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[n]]);if(i-oe.hierarchical.levels[o.id]&&e.hierarchical.addRelation(o.id,a.id)};this._crawlNetwork(n),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,o={},a=function h(d,f){if(o[d.id]===void 0){e.hierarchical.setTreeIndex(d,f),o[d.id]=!0;for(var C,v=e._getActiveEdges(d),A=0;A=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&e.return!=null&&e.return()}finally{if(a)throw s}}}}function Nxt(t,r){var e;if(t){if(typeof t=="string")return kN(t,r);var n=zn(e=Object.prototype.toString.call(t)).call(e,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Bc(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kN(t,r)}}function kN(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e0&&this.options.deleteNode!==!1?(l===!0&&this._createSeperator(4),this._createDeleteButton(s)):i===0&&this.options.deleteEdge!==!1&&(l===!0&&this._createSeperator(4),this._createDeleteButton(s))),this._bindElementEvents(this.closeDiv,ve(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",ve(n=this.showManipulatorToolbar).call(n,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,ve(n=this.toggleEditMode).call(n,this))}this._temporaryBindEvent("click",ve(e=this._performAddNode).call(e,this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var n=this.selectionHandler.getSelectedNodes()[0];if(n!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(n.isCluster!==!0){var i=tr({},n.options,!1);if(i.x=n.x,i.y=n.y,this.options.editNode.length===2)this.options.editNode(i,function(o){o!=null&&e.inMode==="editNode"&&e.body.data.nodes.getDataSet().update(o),e.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var e,n,i,o,a;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var s,l=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(l),this._createSeperator(),this._createDescription(l.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,ve(s=this.toggleEditMode).call(s,this))}this._temporaryBindUI("onTouch",ve(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",ve(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDrag",ve(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",ve(o=this._finishConnect).call(o,this)),this._temporaryBindUI("onDragStart",ve(a=this._dragStartEdge).call(a,this)),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",Gt(this.options.editEdge)==="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){var e=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(e.from.id,e.to.id);return}if(this.guiEnabled===!0){var n,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,ve(n=this.toggleEditMode).call(n,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var o,a,s,l,c=this.body.edges[this.edgeBeingEditedId],u=this._getNewTargetNode(c.from.x,c.from.y),g=this._getNewTargetNode(c.to.x,c.to.y);this.temporaryIds.nodes.push(u.id),this.temporaryIds.nodes.push(g.id),this.body.nodes[u.id]=u,this.body.nodeIndices.push(u.id),this.body.nodes[g.id]=g,this.body.nodeIndices.push(g.id),this._temporaryBindUI("onTouch",ve(o=this._controlNodeTouch).call(o,this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",ve(a=this._controlNodeDragStart).call(a,this)),this._temporaryBindUI("onDrag",ve(s=this._controlNodeDrag).call(s,this)),this._temporaryBindUI("onDragEnd",ve(l=this._controlNodeDragEnd).call(l,this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(h){var d=c.edgeType.findBorderPositions(h);u.selected===!1&&(u.x=d.from.x,u.y=d.from.y),g.selected===!1&&(g.x=d.to.x,g.y=d.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var n=this.selectionHandler.getSelectedNodeIds(),i=this.selectionHandler.getSelectedEdgeIds(),o=void 0;if(n.length>0){for(var a=0;a0&&typeof this.options.deleteEdge=="function"&&(o=this.options.deleteEdge);if(typeof o=="function"){var s={nodes:n,edges:i};if(o.length===2)o(s,function(l){l!=null&&e.inMode==="delete"?(e.body.data.edges.getDataSet().remove(l.edges),e.body.data.nodes.getDataSet().remove(l.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(n),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,n;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(n=this.options.locales[this.options.locale])===null||n===void 0?void 0:n.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}},{key:"_getNewTargetNode",value:function(e,n){var i=tr({},this.options.controlNodeStyle);i.id="targetNode"+qh(),i.hidden=!1,i.physics=!1,i.x=e,i.y=n;var o=this.body.functions.createNode(i);return o.shape.boundingBox={left:e,right:e,top:n,bottom:n},o}},{key:"_createEditButton",value:function(){var e;this._clean(),this.manipulationDOM={},Ks(this.editModeDiv);var n=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",n.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,ve(e=this.toggleEditMode).call(e,this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(Ks(this.editModeDiv),Ks(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var e,n=Dxt(rs(e=this._domEventListenerCleanupQueue).call(e,0)),i;try{for(n.s();!(i=n.n()).done;){var o=i.value;o()}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Ks(this.manipulationDiv),Ks(this.editModeDiv),Ks(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var n,i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,ve(n=this.addNodeMode).call(n,this))}},{key:"_createAddEdgeButton",value:function(e){var n,i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,ve(n=this.addEdgeMode).call(n,this))}},{key:"_createEditNodeButton",value:function(e){var n,i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,ve(n=this.editNode).call(n,this))}},{key:"_createEditEdgeButton",value:function(e){var n,i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,ve(n=this.editEdgeMode).call(n,this))}},{key:"_createDeleteButton",value:function(e){var n,i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";var o=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(o),this._bindElementEvents(o,ve(n=this.deleteSelected).call(n,this))}},{key:"_createBackButton",value:function(e){var n,i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,ve(n=this.showManipulatorToolbar).call(n,this))}},{key:"_createButton",value:function(e,n,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+n,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=o,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(e,n){this.temporaryEventFunctions.push({event:e,boundFunction:n}),this.body.emitter.on(e,n)}},{key:"_temporaryBindUI",value:function(e,n){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=n;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+H0(mr(this.body.eventListeners)))}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;l--)if(a[l]!==this.selectedControlNode.id){s=this.body.nodes[a[l]];break}if(s!==void 0&&this.selectedControlNode!==void 0)if(s.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var c=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===c.id?this._performEditEdge(s.id,o.to.id):this._performEditEdge(o.from.id,s.id)}else o.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Wr({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var n=this.lastTouch,i=this.selectionHandler.getNodeAt(n);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var o=this._getNewTargetNode(i.x,i.y);this.body.nodes[o.id]=o,this.body.nodeIndices.push(o.id);var a=this.body.functions.createEdge({id:"connectionEdge"+qh(),from:i.id,to:o.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[a.id]=a,this.body.edgeIndices.push(a.id),this.temporaryIds.nodes.push(o.id),this.temporaryIds.edges.push(a.id)}this.touchTime=new Date().valueOf()}}},{key:"_dragControlNode",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(zt(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}if(e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,n),this.temporaryIds.nodes[0]!==void 0){var u=this.body.nodes[this.temporaryIds.nodes[0]];u.x=this.canvas._XconvertDOMtoCanvas(n.x),u.y=this.canvas._YconvertDOMtoCanvas(n.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}},{key:"_finishConnect",value:function(e){var n=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(n),o=void 0;this.temporaryIds.edges[0]!==void 0&&(o=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var a=this.selectionHandler._getAllNodesOverlappingWith(i),s=void 0,l=a.length-1;l>=0;l--){var c;if(zt(c=this.temporaryIds.nodes).call(c,a[l])===-1){s=this.body.nodes[a[l]];break}}this._cleanupTemporaryNodesAndEdges(),s!==void 0&&(s.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[o]!==void 0&&this.body.nodes[s.id]!==void 0&&this._performAddEdge(o,s.id)),e.controlEdge={from:o,to:s?s.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,n),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(e){var n=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,n,void 0,!0)}},{key:"_performAddNode",value:function(e){var n=this,i={id:qh(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(i,function(o){o!=null&&n.inMode==="addNode"&&n.body.data.nodes.getDataSet().add(o),n.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,n){var i=this,o={from:e,to:n};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(o,function(a){a!=null&&i.inMode==="addEdge"&&(i.body.data.edges.getDataSet().add(a),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,n){var i=this,o={id:this.edgeBeingEditedId,from:e,to:n,label:this.body.data.edges.get(this.edgeBeingEditedId).label},a=this.options.editEdge;if(Gt(a)==="object"&&(a=a.editWithoutDrag),typeof a=="function")if(a.length===2)a(o,function(s){s==null||i.inMode!=="editEdge"?(i.body.edges[o.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(s),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(o),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),ye="string",de="boolean",X="number",Ih="array",Fe="object",kne="dom",Fxt="any",M6=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],z6={borderWidth:{number:X},borderWidthSelected:{number:X,undefined:"undefined"},brokenImage:{string:ye,undefined:"undefined"},chosen:{label:{boolean:de,function:"function"},node:{boolean:de,function:"function"},__type__:{object:Fe,boolean:de}},color:{border:{string:ye},background:{string:ye},highlight:{border:{string:ye},background:{string:ye},__type__:{object:Fe,string:ye}},hover:{border:{string:ye},background:{string:ye},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},opacity:{number:X,undefined:"undefined"},fixed:{x:{boolean:de},y:{boolean:de},__type__:{object:Fe,boolean:de}},font:{align:{string:ye},color:{string:ye},size:{number:X},face:{string:ye},background:{string:ye},strokeWidth:{number:X},strokeColor:{string:ye},vadjust:{number:X},multi:{boolean:de,string:ye},bold:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},boldital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},ital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},mono:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},group:{string:ye,number:X,undefined:"undefined"},heightConstraint:{minimum:{number:X},valign:{string:ye},__type__:{object:Fe,boolean:de,number:X}},hidden:{boolean:de},icon:{face:{string:ye},code:{string:ye},size:{number:X},color:{string:ye},weight:{string:ye,number:X},__type__:{object:Fe}},id:{string:ye,number:X},image:{selected:{string:ye,undefined:"undefined"},unselected:{string:ye,undefined:"undefined"},__type__:{object:Fe,string:ye}},imagePadding:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Fe,number:X}},label:{string:ye,undefined:"undefined"},labelHighlightBold:{boolean:de},level:{number:X,undefined:"undefined"},margin:{top:{number:X},right:{number:X},bottom:{number:X},left:{number:X},__type__:{object:Fe,number:X}},mass:{number:X},physics:{boolean:de},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:de},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Fe,boolean:de}},customScalingFunction:{function:"function"},__type__:{object:Fe}},shadow:{enabled:{boolean:de},color:{string:ye},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Fe,boolean:de}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:de,array:Ih},borderRadius:{number:X},interpolation:{boolean:de},useImageSize:{boolean:de},useBorderWithImage:{boolean:de},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Fe}},size:{number:X},title:{string:ye,dom:kne,undefined:"undefined"},value:{number:X,undefined:"undefined"},widthConstraint:{minimum:{number:X},maximum:{number:X},__type__:{object:Fe,boolean:de,number:X}},x:{number:X},y:{number:X},__type__:{object:Fe}},jxt={configure:{enabled:{boolean:de},filter:{boolean:de,string:ye,array:Ih,function:"function"},container:{dom:kne},showButton:{boolean:de},__type__:{object:Fe,boolean:de,string:ye,array:Ih,function:"function"}},edges:{arrows:{to:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageHeight:{number:X},imageWidth:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},middle:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageWidth:{number:X},imageHeight:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},from:{enabled:{boolean:de},scaleFactor:{number:X},type:{string:M6},imageWidth:{number:X},imageHeight:{number:X},src:{string:ye},__type__:{object:Fe,boolean:de}},__type__:{string:["from","to","middle"],object:Fe}},endPointOffset:{from:{number:X},to:{number:X},__type__:{object:Fe,number:X}},arrowStrikethrough:{boolean:de},background:{enabled:{boolean:de},color:{string:ye},size:{number:X},dashes:{boolean:de,array:Ih},__type__:{object:Fe,boolean:de}},chosen:{label:{boolean:de,function:"function"},edge:{boolean:de,function:"function"},__type__:{object:Fe,boolean:de}},color:{color:{string:ye},highlight:{string:ye},hover:{string:ye},inherit:{string:["from","to","both"],boolean:de},opacity:{number:X},__type__:{object:Fe,string:ye}},dashes:{boolean:de,array:Ih},font:{color:{string:ye},size:{number:X},face:{string:ye},background:{string:ye},strokeWidth:{number:X},strokeColor:{string:ye},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:X},multi:{boolean:de,string:ye},bold:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},boldital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},ital:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},mono:{color:{string:ye},size:{number:X},face:{string:ye},mod:{string:ye},vadjust:{number:X},__type__:{object:Fe,string:ye}},__type__:{object:Fe,string:ye}},hidden:{boolean:de},hoverWidth:{function:"function",number:X},label:{string:ye,undefined:"undefined"},labelHighlightBold:{boolean:de},length:{number:X,undefined:"undefined"},physics:{boolean:de},scaling:{min:{number:X},max:{number:X},label:{enabled:{boolean:de},min:{number:X},max:{number:X},maxVisible:{number:X},drawThreshold:{number:X},__type__:{object:Fe,boolean:de}},customScalingFunction:{function:"function"},__type__:{object:Fe}},selectionWidth:{function:"function",number:X},selfReferenceSize:{number:X},selfReference:{size:{number:X},angle:{number:X},renderBehindTheNode:{boolean:de},__type__:{object:Fe}},shadow:{enabled:{boolean:de},color:{string:ye},size:{number:X},x:{number:X},y:{number:X},__type__:{object:Fe,boolean:de}},smooth:{enabled:{boolean:de},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:X},forceDirection:{string:["horizontal","vertical","none"],boolean:de},__type__:{object:Fe,boolean:de}},title:{string:ye,undefined:"undefined"},width:{number:X},widthConstraint:{maximum:{number:X},__type__:{object:Fe,boolean:de,number:X}},value:{number:X,undefined:"undefined"},__type__:{object:Fe}},groups:{useDefaultGroups:{boolean:de},__any__:z6,__type__:{object:Fe}},interaction:{dragNodes:{boolean:de},dragView:{boolean:de},hideEdgesOnDrag:{boolean:de},hideEdgesOnZoom:{boolean:de},hideNodesOnDrag:{boolean:de},hover:{boolean:de},keyboard:{enabled:{boolean:de},speed:{x:{number:X},y:{number:X},zoom:{number:X},__type__:{object:Fe}},bindToWindow:{boolean:de},autoFocus:{boolean:de},__type__:{object:Fe,boolean:de}},multiselect:{boolean:de},navigationButtons:{boolean:de},selectable:{boolean:de},selectConnectedEdges:{boolean:de},hoverConnectedEdges:{boolean:de},tooltipDelay:{number:X},zoomView:{boolean:de},zoomSpeed:{number:X},__type__:{object:Fe}},layout:{randomSeed:{undefined:"undefined",number:X,string:ye},improvedLayout:{boolean:de},clusterThreshold:{number:X},hierarchical:{enabled:{boolean:de},levelSeparation:{number:X},nodeSpacing:{number:X},treeSpacing:{number:X},blockShifting:{boolean:de},edgeMinimization:{boolean:de},parentCentralization:{boolean:de},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Fe,boolean:de}},__type__:{object:Fe}},manipulation:{enabled:{boolean:de},initiallyActive:{boolean:de},addNode:{boolean:de,function:"function"},addEdge:{boolean:de,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Fe,boolean:de,function:"function"}},deleteNode:{boolean:de,function:"function"},deleteEdge:{boolean:de,function:"function"},controlNodeStyle:z6,__type__:{object:Fe,boolean:de}},nodes:z6,physics:{enabled:{boolean:de},barnesHut:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},forceAtlas2Based:{theta:{number:X},gravitationalConstant:{number:X},centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},repulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},__type__:{object:Fe}},hierarchicalRepulsion:{centralGravity:{number:X},springLength:{number:X},springConstant:{number:X},nodeDistance:{number:X},damping:{number:X},avoidOverlap:{number:X},__type__:{object:Fe}},maxVelocity:{number:X},minVelocity:{number:X},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:de},iterations:{number:X},updateInterval:{number:X},onlyDynamicEdges:{boolean:de},fit:{boolean:de},__type__:{object:Fe,boolean:de}},timestep:{number:X},adaptiveTimestep:{boolean:de},wind:{x:{number:X},y:{number:X},__type__:{object:Fe}},__type__:{object:Fe,boolean:de}},autoResize:{boolean:de},clickToUse:{boolean:de},locale:{string:ye},locales:{__any__:{any:Fxt},__type__:{object:Fe}},height:{string:ye},width:{string:ye},__type__:{object:Fe}},One={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},Uxt=function(r,e,n){var i;return!!(I1(r).call(r,"physics")&&I1(i=One.physics.solver).call(i,e)&&n.physics.solver!==e&&e!=="wind")},Gxt=function(){function t(){we(this,t)}return $e(t,[{key:"getDistances",value:function(e,n,i){for(var o={},a=e.edges,s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,o=this.distanceSolver.getDistances(this.body,e,n);this._createL_matrix(o),this._createK_matrix(o),this._createE_matrix();for(var a=.01,s=1,l=0,c=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),u=5,g=1e9,h=0,d=0,f=0,C=0,v=0;g>a&&ls&&vl);Mo.value.getGraphModules().then(l=>{VKe(l,s)})}function e(){r()}hj(()=>{r(),Mo.functions.on("graphModuleUpdated",e)});const n=G(),i=Bi();function o(){const s=n.value,l=i.value=new Pe(s,{nodes:_u,edges:Mu},fx.value);Je(fx,c=>{l.setOptions(c)},{immediate:!0}),l.on("selectNode",c=>{DKe(c.nodes[0]),x7(!0)}),l.on("deselectNode",()=>{x7(!1)}),Je(()=>Eu.value,c=>{c&&l.moveTo({position:{x:0,y:0}})})}Ii(()=>{o()}),fn(()=>{OKe(),i.value?.destroy(),Mo.functions.off("graphModuleUpdated",e)});const a=G();return(s,l)=>{const c=eYe,u=QKe,g=qKe;return z(),H("div",Zxt,[D(c,{ref_key:"navbarRef",ref:a},null,512),w("div",{ref_key:"container",ref:n,class:"absolute h-full w-full"},null,512),D(u),D(g,{top:y(a)},null,8,["top"])])}}}),Yxt={},Xxt={viewBox:"0 0 566 154",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qxt(t,r){return z(),H("svg",Xxt,r[0]||(r[0]=[oF('',2)]))}const xne=fI(Yxt,[["render",qxt]]);function lM(){return of?"electron":ma?"chrome":RN?"iframe":"separate-window"}const Qxt={key:0,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},Jxt={key:1,flex:"~ col gap3",relative:"","h-screen":"","w-full":"","items-center":"","justify-center":"","text-center":""},eHt={"max-w-190":"","text-lg":""},tHt=ce({__name:"index",setup(t){const r=lM(),e=Cc(),n=dr;function i(){n.value.isFirstVisit=!1,e.replace("/overview")}return(o,a)=>{const s=xne;return y(r)==="chrome"?(z(),H("div",Qxt,[a[1]||(a[1]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Welcome to the new Vue Devtools v7! ",-1)),a[2]||(a[2]=w("p",{"max-w-190":"","text-lg":""},[Se(" This new version supports only Vue 3. "),w("span",{op50:""},[Se(" (Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org "),Se(") ")]),w("br"),Se(" The legacy version that supports both Vue 2 and Vue 3 has been moved to "),w("a",{href:"https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp",target:"_blank",class:"op50"},"here"),Se(". ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:W(()=>a[0]||(a[0]=[w("span",null,"Get Started",-1)])),_:1})])):(z(),H("div",Jxt,[a[6]||(a[6]=w("p",{my2:"","text-3em":"","text-primary-600":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Vue DevTools! ",-1)),w("p",eHt,[D(s,{"mr-0.5":"","inline-block":"","h-8":"","translate-y--1.1":"","align-mid":""}),a[3]||(a[3]=Se(" is a set of visual tools that help you to know your Vue app better, and enhance your development experience with Vue. Enjoy!")),a[4]||(a[4]=w("br",null,null,-1))]),a[7]||(a[7]=w("p",{mb6:"",op50:""},[Se(" Learn more at "),w("a",{href:"https://devtools.vuejs.org/",target:"_blank",rel:"noopener noreferrer",n:"primary"}," devtools.vuejs.org ")],-1)),D(y(ct),{type:"primary",onClick:i},{default:W(()=>a[5]||(a[5]=[w("span",null,"Get Started",-1)])),_:1})]))}}}),rHt="7.5.3",nHt={"h-full":"","w-full":"",flex:"","of-auto":""},iHt={flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",px20:""},oHt={flex:"~ col","mt-20":"","items-center":""},aHt={flex:"~","mt--10":"","items-center":"","justify-center":""},sHt={key:0,mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},lHt={op40:""},cHt={flex:"~ gap2 wrap"},uHt={p4:"","theme-card-green":"",flex:"~ col auto"},gHt={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},hHt={flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-2":"","text-sm":"",op40:""},dHt={key:0,flex:"~ gap-1","cursor-default":"","items-center":"","justify-center":"","pb-8":"","text-sm":"",op40:""},fHt=ce({__name:"overview",setup(t){const{vueVersion:r}=uo(),e=G(1),n=G(0);function i(s){let l=0;for(const c of s)l++,c.children?.length&&(l+=i(c.children));return l}function o(s){e.value=s?.routes?.length||1}function a(s){const l=Qr(s);l.inspectorId==="components"&&(n.value=i(l.rootNodes))}return Hb(()=>{Ae.value.getRouterInfo().then(s=>{e.value=s?.routes?.length||1}),Ae.functions.on(Nt.ROUTER_INFO_UPDATED,o),Ae.value.getInspectorTree({inspectorId:"components",filter:""}).then(s=>{const l=Qr(s);n.value=i(l)})}),Ae.functions.on(Nt.INSPECTOR_TREE_UPDATED,a),fn(()=>{Ae.functions.off(Nt.INSPECTOR_TREE_UPDATED,a),Ae.functions.off(Nt.ROUTER_INFO_UPDATED,o)}),(s,l)=>{const c=xne,u=Vo("RouterLink");return z(),H("div",nHt,[w("div",iHt,[l[29]||(l[29]=w("div",{"flex-auto":""},null,-1)),w("div",oHt,[w("div",aHt,[D(c,{"h-18":""})]),y(ma)?oe("",!0):(z(),H("div",sHt,[l[0]||(l[0]=w("span",{op40:""}," Vue DevTools ",-1)),w("code",lHt,"v"+ze(y(rHt)),1)]))]),w("div",cHt,[w("div",uHt,[l[1]||(l[1]=w("div",{"i-logos-vue":"","text-3xl":""},null,-1)),w("code",null,"v"+ze(y(r)),1)]),D(u,{flex:"~ col auto",to:"/pages",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[l[2]||(l[2]=w("div",{"i-carbon-tree-view-alt":"","text-3xl":""},null,-1)),w("div",null,ze(y(e))+" pages",1)]),_:1}),y(n)?(z(),ne(u,{key:0,flex:"~ col auto",to:"/components",replace:"","min-w-40":"",p4:"","theme-card-lime":""},{default:W(()=>[l[3]||(l[3]=w("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1)),w("div",null,ze(y(n))+" components",1)]),_:1})):oe("",!0)]),w("div",gHt,[l[5]||(l[5]=w("a",{href:"https://github.com/vuejs/devtools-next",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[w("div",{"i-carbon-star":""}),Se(" Star on GitHub ")],-1)),l[6]||(l[6]=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/111",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[w("div",{"i-carbon-data-enrichment":""}),Se(" Ideas & Suggestions ")],-1)),l[7]||(l[7]=w("a",{href:"https://github.com/vuejs/devtools-next/discussions/112",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[w("div",{"i-carbon-plan":""}),Se(" Project Roadmap ")],-1)),l[8]||(l[8]=w("a",{href:"https://github.com/vuejs/devtools-next/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[w("div",{"i-carbon-debug":""}),Se(" Bug Reports ")],-1)),D(u,{to:"/settings",flex:"~ gap1",replace:"","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:W(()=>l[4]||(l[4]=[w("div",{"i-carbon-settings":""},null,-1),Se(" Settings ")])),_:1})]),l[30]||(l[30]=w("div",{"flex-auto":""},null,-1)),w("div",hHt,[l[15]||(l[15]=Se(" Press ")),y(dM)()?(z(),H(Ee,{key:0},[D(y(ct),null,{default:W(()=>l[9]||(l[9]=[Se(" ⌘ Command ")])),_:1}),l[11]||(l[11]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[10]||(l[10]=[Se(" K ")])),_:1})],64)):(z(),H(Ee,{key:1},[D(y(ct),null,{default:W(()=>l[12]||(l[12]=[Se(" Alt ")])),_:1}),l[14]||(l[14]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[13]||(l[13]=[Se(" K ")])),_:1})],64)),l[16]||(l[16]=Se(" to toggle Command Palette "))]),!y(of)&&!y(ma)?(z(),H("div",dHt,[l[27]||(l[27]=Se(" Press ")),y(dM)()?(z(),H(Ee,{key:0},[D(y(ct),null,{default:W(()=>l[17]||(l[17]=[Se(" ⇧ Shift ")])),_:1}),l[20]||(l[20]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[18]||(l[18]=[Se(" ⌥ Option ")])),_:1}),l[21]||(l[21]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[19]||(l[19]=[Se(" D ")])),_:1})],64)):(z(),H(Ee,{key:1},[D(y(ct),null,{default:W(()=>l[22]||(l[22]=[Se(" Shift ")])),_:1}),l[25]||(l[25]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[23]||(l[23]=[Se(" Alt ")])),_:1}),l[26]||(l[26]=w("span",null,"+",-1)),D(y(ct),null,{default:W(()=>l[24]||(l[24]=[Se(" D ")])),_:1})],64)),l[28]||(l[28]=Se(" to toggle DevTools "))])):oe("",!0)])])}}}),CHt={"p-2":""},vHt={class:"flex items-center justify-between"},AHt=ce({__name:"RouteMetaDetail",props:{meta:{}},emits:["close"],setup(t){return(r,e)=>(z(),H("div",CHt,[w("div",vHt,[e[1]||(e[1]=w("span",{class:"font-500"},"Route meta detail",-1)),w("div",{class:"i-carbon-close cursor-pointer p1 $ui-text",onClick:e[0]||(e[0]=n=>r.$emit("close"))})]),D(y(lw),{code:JSON.stringify(r.meta,null,2),lang:"json",lines:""},null,8,["code"])]))}}),IHt={block:"","cursor-pointer":""},pHt={p2:""},mHt=["onSubmit"],yHt={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},bHt={key:1},wHt=ce({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(t,{emit:r}){const e=t,n=r;function i(u){return u.split(/(:\w+[?*+]?(?:\([^)]*\))?[?*+]?)/).filter(Boolean)}const o=G([]),a=F(()=>i(e.route.path));gn(()=>{o.value=Array.from({length:a.value.length},()=>"")});const s=F(()=>a.value.map((u,g)=>u[0]===":"?o.value[g]:u).join("").replace(/\/+/g,"/")),l=F(()=>e.route.path.includes(":"));function c(){n("navigate",s.value)}return(u,g)=>y(l)?(z(),ne(y(Cu),{key:1},{popper:W(({hide:h})=>[w("div",pHt,[w("form",{flex:"~ col",onSubmit:Wn(()=>{c(),h()},["prevent"])},[y(l)?(z(),H(Ee,{key:0},[g[0]||(g[0]=w("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1)),w("div",yHt,[(z(!0),H(Ee,null,At(y(a),(d,f)=>(z(),H(Ee,{key:f},[d[0]===":"?(z(),ne(y(as),{key:0,modelValue:y(o)[f],"onUpdate:modelValue":C=>y(o)[f]=C,"n-sm":"","w-20":"",placeholder:d.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(z(),H("span",bHt,ze(d),1))],64))),128))])],64)):oe("",!0),D(y(ct),{block:"",type:"primary"},{default:W(()=>g[1]||(g[1]=[Se(" Navigate ")])),_:1})],40,mHt)])]),default:W(()=>[w("code",IHt,[(z(!0),H(Ee,null,At(y(a),(h,d)=>(z(),H("span",{key:d,class:Te(h[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},ze(h[0]===":"?h.slice(1):h),3))),128))])]),_:1})):(z(),H("button",{key:0,onClick:c},[w("code",null,ze(u.route.path),1)]))}}),$Ht={"w-full":""},_Ht={border:"b base","px-3":""},MHt={key:0,"text-left":""},zHt={"w-20":"","pr-1":""},EHt={flex:"","items-center":"","justify-end":""},SHt={"text-sm":""},THt={flex:"inline gap3","items-center":""},LHt={op0:"","group-hover:op100":"",flex:"~ gap1"},kHt=["onClick"],OHt={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},xHt={key:0,"w-50":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:"",hover:"text-primary op100"},HHt=["title","onClick"],VHt=ce({__name:"RoutesTable",props:{pages:{},matched:{},matchedPending:{}},emits:["navigate","selectMeta"],setup(t){const r=t,e=F(()=>[...r.pages].sort((s,l)=>s.path.localeCompare(l.path))),n=F(()=>iI.value),i=uo();function o(s,l=0){const c=JSON.stringify(s,null,l);return c==="{}"?"-":c}const a=F(()=>e.value.some(s=>Object.keys(s.meta)?.length));return(s,l)=>{const c=wHt;return z(),H("div",null,[w("table",$Ht,[w("thead",_Ht,[w("tr",null,[l[1]||(l[1]=w("th",{"text-left":""},null,-1)),l[2]||(l[2]=w("th",{"text-left":""}," Route Path ",-1)),l[3]||(l[3]=w("th",{"text-left":""}," Name ",-1)),y(a)?(z(),H("th",MHt," Route Meta ")):oe("",!0)])]),w("tbody",null,[(z(!0),H(Ee,null,At(y(e),u=>(z(),H("tr",{key:u.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[w("td",zHt,[w("div",EHt,[s.matched.find(g=>g.name===u.name)?(z(),ne(y(xS),{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):s.matchedPending.find(g=>g.name===u.name)?(z(),ne(y(xS),{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):oe("",!0)])]),w("td",SHt,[w("div",THt,[D(c,{route:u,class:Te(s.matched.find(g=>g.name===u.name)?"text-primary-400":s.matchedPending.find(g=>g.name===u.name)?"text-teal":""),onNavigate:l[0]||(l[0]=g=>s.$emit("navigate",g))},null,8,["route","class"]),w("div",LHt,[u.meta?.file&&y(i).vitePluginDetected.value&&y(n)?(z(),H("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary-400",title:"Open in editor",onClick:g=>y(fd)(u.meta?.file)},l[4]||(l[4]=[w("div",{"i-carbon-script-reference":""},null,-1)]),8,kHt)):oe("",!0)])])]),w("td",OHt,ze(u.name),1),y(a)?(z(),H("td",xHt,[w("span",{"inline-block":"","w-50":"","cursor-pointer":"","overflow-hidden":"","text-ellipsis":"",title:o(u.meta,2),onClick:()=>s.$emit("selectMeta",u.meta)},ze(o(u.meta)),9,HHt)])):oe("",!0)]))),128))])])])}}}),PHt={block:"","h-screen":"","of-auto":""},RHt={"h-full":"",class:"grid grid-rows-[auto_1fr]"},DHt={border:"b base",flex:"~ col gap1",px4:"",py3:""},NHt={key:1,op50:""},BHt={key:0,"text-orange":"",op75:""},FHt={key:1,op50:""},jHt=ce({__name:"pages",setup(t){const r=G(""),e=G(null),n=G([]),i=F(()=>r.value===e.value?.path?[]:n.value),o=G([]),a=G();function s(u){o.value=u.routes,e.value=u.currentRoute,r.value=e.value?.path??"/"}function l(){i.value.length&&c(r.value)}function c(u){Ae.value.navigate(u)}return Hb(()=>{Ae.value.getRouterInfo().then(u=>{s(u)}),Ae.functions.on(Nt.ROUTER_INFO_UPDATED,s)}),nU(r,()=>{r.value!==e.value?.path&&Ae.value.getMatchedRoutes(r.value).then(u=>{n.value=u})}),fn(()=>{Ae.functions.off(Nt.ROUTER_INFO_UPDATED,s)}),(u,g)=>{const h=VHt,d=aG,f=AHt;return z(),H("div",PHt,[w("div",RHt,[w("div",DHt,[w("div",null,[(z(),H("span",NHt,"Current route"))]),D(y(as),{modelValue:y(r),"onUpdate:modelValue":g[0]||(g[0]=C=>qe(r)?r.value=C:null),"left-icon":"i-carbon-direction-right-01 scale-y--100",class:Te(y(e)?.path===y(r)?"":y(i).length?"text-green!":"text-orange!"),onKeydown:dF(l,["enter"])},null,8,["modelValue","class"]),w("div",null,[y(e)?.path!==y(r)?(z(),H(Ee,{key:0},[g[6]||(g[6]=w("span",null,[Se("Press "),w("b",{"font-bold":""},"Enter"),Se(" to navigate")],-1)),y(i).length?oe("",!0):(z(),H("span",BHt," (no match)"))],64)):(z(),H("span",FHt,"Edit path above to navigate"))])]),D(y(R1),{class:"of-hidden"},{default:W(()=>[D(y(hn),{size:"70",class:"of-auto!"},{default:W(()=>[D(d,{icon:"i-carbon-tree-view-alt",text:"All Routes",description:`${y(o).length} routes registered in your application`,padding:!1},{default:W(()=>[y(o).length?(z(),ne(h,{key:0,pages:y(o),matched:y(e)?.matched??[],"matched-pending":y(i),onNavigate:c,onSelectMeta:g[1]||(g[1]=C=>a.value=C)},null,8,["pages","matched","matched-pending"])):oe("",!0)]),_:1},8,["description"])]),_:1}),y(a)?(z(),ne(y(hn),{key:0,size:"30",class:"of-auto!"},{default:W(()=>[D(f,{meta:y(a),onClose:g[2]||(g[2]=C=>a.value=void 0)},null,8,["meta"])]),_:1})):oe("",!0)]),_:1})])])}}}),UHt=ce({__name:"pinia",setup(t){return(r,e)=>(z(),ne(y(w9e)))}}),GHt=ce({__name:"router",setup(t){const{registeredInspector:r}=KG(),e=F(()=>r.value?.find(i=>i.packageName==="vue-router")),n=F(()=>e.value?.id);return(i,o)=>(z(),ne(y(N9e),{id:y(n)},null,8,["id"]))}}),WHt=["src","alt"],ZHt=["title"],ON="custom-ic-",j0=ce({__name:"TabIcon",props:{icon:{},title:{},showTitle:{type:Boolean,default:!0},fallback:{}},setup(t){const r=t,e=G(r.icon);Je(()=>r.icon,i=>{e.value=i});function n(){e.value=r.fallback}return(i,o)=>y(e)&&y(nie)(y(e))?(z(),H("img",Xr({key:0,style:{width:"1em",height:"1em"}},i.$attrs,{src:y(e),alt:i.title,onError:n}),null,16,WHt)):y(e)?.startsWith(ON)?(z(),ne(y(Md),Xr({key:1,name:y(e).slice(ON.length)},i.$attrs,{title:i.showTitle?i.title:void 0}),null,16,["name","title"])):(z(),H("div",Xr({key:2,style:{width:"1em",height:"1em"}},i.$attrs,{class:y(e)||"i-carbon-bring-forward",title:i.showTitle?i.title:void 0}),null,16,ZHt))}}),KHt={"h-full":"","w-full":"","of-auto":"",px8:"",py6:""},YHt={grid:"~ md:cols-[repeat(auto-fit,minmax(16rem,1fr))] gap-x-10 gap-y-3","max-w-300":""},XHt={flex:"~ col gap-2"},qHt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},QHt={capitalize:"",op75:""},JHt={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"","pr-4":"","text-sm":""},eVt=["onClick"],tVt=["onClick"],rVt=["onClick"],nVt={flex:"~ col gap-2"},iVt={flex:"~ gap2"},oVt={class:"flex items-center gap2 text-sm"},aVt={class:"flex items-center gap2 text-sm"},sVt={class:"flex items-center gap2 text-sm"},lVt={class:"flex items-center gap2 text-sm"},cVt={flex:"~ gap-2"},uVt=ce({__name:"settings",setup(t){const{categorizedTabs:r}=$f(),e=lM(),n=e==="iframe"||e==="separate-window",{scale:i,interactionCloseOnOutsideClick:o,showPanel:a,minimizePanelInteractive:s,expandSidebar:l,scrollableSidebar:c}=x6(Due(dr)),u=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],g=[["Always",0],["1s",1e3],["2s",2e3],["5s",5e3],["10s",1e4],["Never",-1]],{hiddenTabCategories:h,hiddenTabs:d,pinnedTabs:f}=x6(dr.value.tabSettings);function C(L,M){M?d.value=d.value.filter(S=>S!==L):d.value.push(L)}function v(L,M){M?h.value=h.value.filter(S=>S!==L):h.value.push(L)}function A(L){f.value.includes(L)?f.value=f.value.filter(M=>M!==L):f.value.push(L)}function I(L,M){const S=f.value.indexOf(L);if(S===-1)return;const T=S+M;if(T<0||T>=f.value.length)return;const k=[...f.value];k.splice(S,1),k.splice(T,0,L),f.value=k}const p=G(!1);async function m(){i6e(),window.location.reload()}const b=g.map(([L,M])=>({label:L,value:M})),_=F(()=>`${b.find(M=>M.value===s.value)?.label??"Select..."}`);return(L,M)=>{const S=uw,T=j0;return z(),H("div",KHt,[D(S,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),w("div",YHt,[w("div",XHt,[M[12]||(M[12]=w("h3",{"text-lg":""}," Tabs ",-1)),(z(!0),H(Ee,null,At(y(r),([{name:k,hidden:O},P])=>(z(),H(Ee,{key:k},[P.length?(z(),ne(y(V5),{key:0,p3:"",flex:"~ col gap-1",class:Te(O?"op50 grayscale":"")},{default:W(()=>[D(y($8),{"model-value":!y(h).includes(k),class:"row-reverse flex hover:bg-active py1 pl2 pr1","onUpdate:modelValue":B=>v(k,B)},{default:W(()=>[w("div",qHt,[w("span",QHt,ze(k),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),M[11]||(M[11]=w("div",{"mx--1":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),(z(!0),H(Ee,null,At(P,B=>(z(),ne(y($8),{key:B.name,class:Te(["row-reverse n-primary flex hover:bg-active py1 pl2 pr1",B.hidden?"op35":""]),"model-value":!y(d).includes(B.name),"onUpdate:modelValue":te=>C(B.name,te)},{default:W(()=>[w("div",JHt,[D(T,{"text-xl":"",icon:B.icon,fallback:B.fallbackIcon,title:B.title},null,8,["icon","fallback","title"]),w("span",null,ze(B.title),1),M[10]||(M[10]=w("div",{"flex-auto":""},null,-1)),y(f).includes(B.name)?(z(),H(Ee,{key:0},[w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(B.name)!==0&&I(B.name,-1)},["stop"])},M[8]||(M[8]=[w("div",{class:"i-carbon-caret-up"},null,-1)]),8,eVt),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(()=>{y(f).indexOf(B.name)!==y(f).length-1&&I(B.name,1)},["stop"])},M[9]||(M[9]=[w("div",{class:"i-carbon-caret-down"},null,-1)]),8,tVt)],64)):oe("",!0),w("button",{class:"flex items-center hover:bg-active hover:op100 px1 py1 text-sm op65",onClick:Wn(te=>A(B.name),["stop"])},[w("div",{class:Te(y(f).includes(B.name)?" i-carbon-pin-filled rotate--45":" i-carbon-pin op45")},null,2)],8,rVt)])]),_:2},1032,["model-value","class","onUpdate:modelValue"]))),128))]),_:2},1032,["class"])):oe("",!0)],64))),128))]),w("div",nVt,[M[25]||(M[25]=w("h3",{"text-lg":""}," Appearance ",-1)),D(y(V5),{p4:"",flex:"~ col gap-2"},{default:W(()=>[w("div",iVt,[D(y(tG),null,{default:W(({isDark:k,toggle:O})=>[D(y(ct),{outlined:"",type:"primary",onClick:O},{default:W(()=>[M[13]||(M[13]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Se(" "+ze(k?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})]),M[16]||(M[16]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),M[17]||(M[17]=w("p",null,"UI Scale",-1)),w("div",null,[D(y(zd),{modelValue:y(i),"onUpdate:modelValue":M[0]||(M[0]=k=>qe(i)?i.value=k:null),options:u.map(([k,O])=>({label:k,value:O})),"button-props":{outlined:!0}},null,8,["modelValue","options"])]),M[18]||(M[18]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),w("div",oVt,[D(y(I2),{modelValue:y(l),"onUpdate:modelValue":M[1]||(M[1]=k=>qe(l)?l.value=k:null)},null,8,["modelValue"]),M[14]||(M[14]=w("span",{op75:""},"Expand Sidebar",-1))]),w("div",aVt,[D(y(I2),{modelValue:y(c),"onUpdate:modelValue":M[2]||(M[2]=k=>qe(c)?c.value=k:null)},null,8,["modelValue"]),M[15]||(M[15]=w("span",{op75:""},"Scrollable Sidebar",-1))])]),_:1}),y(n)?(z(),H(Ee,{key:0},[M[23]||(M[23]=w("h3",{mt2:"","text-lg":""}," Features ",-1)),D(y(V5),{p4:"",flex:"~ col gap-2"},{default:W(()=>[w("div",sVt,[D(y(I2),{modelValue:y(o),"onUpdate:modelValue":M[3]||(M[3]=k=>qe(o)?o.value=k:null)},null,8,["modelValue"]),M[19]||(M[19]=w("span",{op75:""},"Close DevTools when clicking outside",-1))]),w("div",lVt,[D(y(I2),{modelValue:y(a),"onUpdate:modelValue":M[4]||(M[4]=k=>qe(a)?a.value=k:null)},null,8,["modelValue"]),M[20]||(M[20]=w("span",{op75:""},"Always show the floating panel",-1))]),M[21]||(M[21]=w("div",{"mx--2":"",my1:"","h-1px":"",border:"b base",op75:""},null,-1)),M[22]||(M[22]=w("p",null,"Minimize floating panel on inactive",-1)),w("div",null,[D(y(zd),{modelValue:y(s),"onUpdate:modelValue":M[5]||(M[5]=k=>qe(s)?s.value=k:null),"button-props":{outlined:!0},options:y(b),placeholder:y(_)},null,8,["modelValue","options","placeholder"])])]),_:1})],64)):oe("",!0),M[26]||(M[26]=w("h3",{mt2:"","text-lg":""}," Debug ",-1)),w("div",cVt,[D(y(ct),{outlined:"",type:"warning",onClick:M[6]||(M[6]=k=>p.value=!0)},{default:W(()=>M[24]||(M[24]=[w("div",{"i-carbon-breaking-change":""},null,-1),Se(" Reset Local Settings & State ")])),_:1}),D(y(Y0e),{modelValue:y(p),"onUpdate:modelValue":M[7]||(M[7]=k=>qe(p)?p.value=k:null),title:"Clear Local Settings & State",width:"40%",height:"200px",content:"Are you sure you to reset all local settings & state? Devtools will reload.",onConfirm:m},null,8,["modelValue"])])])])])}}}),gVt={"h-full":"",flex:"","flex-col":"",p2:""},hVt={class:"relative mb-1 w-full flex items-center justify-end pb-1",border:"b dashed base"},dVt={key:0,class:"absolute left-0 text-xs text-gray-300 dark:text-gray-500"},fVt={class:"flex items-center gap-2 px-1"},CVt={key:0,class:"recording recording-btn bg-[#ef4444]"},vVt={key:1,class:"recording-btn bg-black op70 dark:bg-white hover:op100"},AVt={class:"flex items-center gap1"},IVt={class:"p2"},pVt=["onClick"],mVt=["onClick"],yVt=ce({__name:"TimelineLayers",props:iu({data:{}},{modelValue:{},modelModifiers:{}}),emits:iu(["select","clear"],["update:modelValue"]),setup(t,{emit:r}){const e=r,n=uo(),i=F(()=>n.timelineLayersState.value.recordingState),o=F(()=>n.timelineLayersState.value),a=F(()=>i.value?"Stop recording":"Start recording"),{colorMode:s}=mf();F(()=>s.value==="dark");const l=XA(t,"modelValue");function c(d){l.value=d,e("select",d),Ae.value.updateTimelineLayersState({selected:d})}Je(()=>o.value.selected,d=>{l.value=d},{immediate:!0});function u(d){return{mouse:o.value.mouseEventEnabled,keyboard:o.value.keyboardEventEnabled,"component-event":o.value.componentEventEnabled,performance:o.value.performanceEventEnabled}[d]}function g(){Ae.value.updateTimelineLayersState({recordingState:!i.value})}function h(d){const f={mouse:"mouseEventEnabled",keyboard:"keyboardEventEnabled","component-event":"componentEventEnabled",performance:"performanceEventEnabled"}[d];Ae.value.updateTimelineLayersState({[f]:!u(d)})}return(d,f)=>(z(),H("div",gVt,[w("div",hVt,[y(i)?oe("",!0):(z(),H("span",dVt,"Not recording")),w("div",fVt,[$t((z(),H("div",{class:"flex items-center gap1",onClick:g},[y(i)?(z(),H("span",CVt)):(z(),H("span",vVt))])),[[y(sr),{content:y(a)},void 0,{"bottom-end":!0}]]),$t((z(),H("div",{class:"flex items-center gap1",onClick:f[0]||(f[0]=C=>e("clear"))},[D(y(Md),{name:"baseline-delete","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(sr),{content:"Clear all timelines"},void 0,{"bottom-end":!0}]]),$t((z(),H("div",AVt,[D(y(Md),{name:"baseline-tips-and-updates","cursor-pointer":"","text-xl":"",op70:"","hover:op100":""})])),[[y(sr),{content:"

Timeline events can cause significant performance overhead in large applications, so we recommend enabling it only when needed and on-demand.

",html:!0},void 0,{"bottom-end":!0}]])])]),w("ul",IVt,[(z(!0),H(Ee,null,At(d.data,C=>(z(),H("li",{key:C.id,class:Te(["group relative selectable-item",{active:C.id===l.value}]),onClick:v=>c(C.id)},[Se(ze(C.label)+" ",1),w("span",{class:"absolute right-2 rounded-1 bg-primary-500 px1 text-3 text-white op0 [.active_&]:bg-primary-400 [.active_&]:dark:bg-gray-600 group-hover:op80 hover:op100!",onClick:Wn(v=>h(C.id),["stop"])},ze(u(C.id)?"Disabled":"Enabled"),9,mVt)],10,pVt))),128))])]))}}),bVt=fI(yVt,[["__scopeId","data-v-aac44163"]]),wVt={class:"h-full w-full"},$Vt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},_Vt={class:"h-full flex flex-col"},MVt={class:"no-scrollbar h-full flex select-none gap-2 overflow-scroll"},zVt={class:"h-full flex flex-col p2"},EVt=ce({__name:"timeline",setup(t){const r=G(),e=G(),n=G(!1),{width:i}=uU(e),o=F(()=>n.value?i.value<700:!1),a=uo(),s=F(()=>a.appRecords.value.map(C=>({label:C.name+(C.version?` (${C.version})`:""),value:C.id}))),l=F(()=>s.value.map(C=>({label:C.label,id:C.value}))),c=G(a.activeAppRecordId.value);gn(()=>{c.value=a.activeAppRecordId.value});function u(C){Ae.value.toggleApp(C).then(()=>{d()})}const g=G(""),h=[{label:"Mouse",id:"mouse"},{label:"Keyboard",id:"keyboard"},{label:"Component events",id:"component-event"},{label:"Performance",id:"performance"}];function d(){r.value?.clear()}function f(){d()}return(C,v)=>{const A=bVt;return z(),H("div",wVt,[D(y(R1),{ref_key:"splitpanesRef",ref:e,class:"flex-1 overflow-auto",horizontal:y(o),onReady:v[2]||(v[2]=I=>n.value=!0)},{default:W(()=>[y(s).length>1?(z(),ne(y(hn),{key:0,border:"base h-full",size:"20"},{default:W(()=>[w("div",$Vt,[D(y(BG),{modelValue:y(c),"onUpdate:modelValue":v[0]||(v[0]=I=>qe(c)?c.value=I:null),data:y(l),class:"w-full",onSelect:u},null,8,["modelValue","data"])])]),_:1})):oe("",!0),D(y(hn),{border:"base","h-full":""},{default:W(()=>[w("div",_Vt,[w("div",MVt,[D(A,{modelValue:y(g),"onUpdate:modelValue":v[1]||(v[1]=I=>qe(g)?g.value=I:null),data:h,class:"w-full",onSelect:f,onClear:d},null,8,["modelValue"])])])]),_:1}),D(y(hn),{relative:"","h-full":"",size:"65"},{default:W(()=>[w("div",zVt,[D(y(yI),{ref_key:"timelineRef",ref:r,"layer-ids":[y(g)],"header-visible":!1,"doc-link":""},null,8,["layer-ids"])])]),_:1})]),_:1},8,["horizontal"])])}}});function SVt(t){const r=new Map;return t.forEach(e=>r.set(e.id,e)),Array.from(r.values())}const Yy=ya(new Map);function TVt(){const{enabledFlattenTabs:t}=$f(),r=Cc(),e=uo();let n=[];const i=F(()=>nW(e.commands.value,n)?n:(n=e.commands.value,e.commands.value)),o=[{id:"fixed:settings",title:"Settings",icon:"i-carbon-settings-adjust",action:()=>{r.push("/settings")}},{id:"fixed:docs",title:"Vue Documentations",icon:"i-vscode-icons-file-type-vue",action:()=>kVt()}],a=F(()=>t.value.map(s=>({id:`tab:${s.name}`,title:s.title||s.name,icon:s.icon,action:()=>{"onClick"in s&&s.onClick?s.onClick():r.push("path"in s&&s.path?s.path:`/custom-tab-view/${s.name}`)}})));return F(()=>SVt([...o,...a.value,...LVt(i.value),...Array.from(Yy.values()).flatMap(s=>rd(s))]))}function xN(t){t?.type==="url"&&window.open(t.src,"_blank")}function LVt(t){return t.map(r=>({id:`${r.id}`,title:r.title,icon:r.icon,description:r.description,order:r.order,action:()=>{if(r.children)return r.children.map(e=>({id:e.id,title:e.title,icon:e.icon,description:e.description,order:e.order,action:()=>{xN(e.action)}})).sort((e,n)=>(n.order??0)-(e.order??0));xN(r.action)}})).sort((r,e)=>(e.order??0)-(r.order??0))}function HN(t){const r=iie();Yy.set(r,t),fn(()=>{Yy.delete(r)})}let E6;const VN={"utility-types":"i-mdi-language-typescript",ssr:"i-codicon-server-process","custom-renderer":"i-codicon-server-process","sfc-script-setup":"i-material-symbols:magic-button","sfc-css-features":"i-material-symbols-css","built-in-directives":"i-material-symbols-code","built-in-special-attributes":"i-material-symbols-code","component-instance":"i-material-symbols-code","composition-api-dependency-injection":"i-material-symbols-code","composition-api-lifecycle":"i-material-symbols-code",general:"i-material-symbols-code","compile-time-flags":"i-material-symbols-toggle-on","reactivity-utilities":"i-mdi-api","reactivity-advanced":"i-mdi-api","render-function":"i-mdi-api","...others":"i-uim-vuejs"};async function kVt(){return E6||(E6=(await Si(()=>import("./vue-apis-DWRQGgDp.js"),[],import.meta.url).then(r=>r.default)).map(r=>({...r,icon:VN[r.description]??VN["...others"],action:()=>{window.open(r.url,"_blank")}}))),E6}const OVt={flex:"~ col",h:"60%",border:"1 base","m-x-4":"","max-h-120":"","min-h-60":"","w-xl":"","of-hidden":"","rounded-md":"","text-3.75":""},xVt={border:"b base","flex-none":""},HVt={"flex-auto":"","of-auto":"",p2:"",flex:"~ col"},VVt=["id","onClick","onMouseover"],PVt={flex:"","flex-auto":"","items-center":"",gap2:"","of-hidden":""},RVt={"ws-nowrap":""},DVt={"of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:""},NVt={key:0,"h-full":"",flex:"","items-center":"","justify-center":"","gap-2":"","text-xl":""},BVt={"text-primary":""},FVt={border:"t base",flex:"~ none justify-between items-center gap-4","pointer-events-none":"",px4:"",py2:""},jVt={"text-xs":"",flex:"~ items-center gap2"},UVt={px1:""},GVt={px1:""},WVt={"text-xs":"",flex:"~ items-center gap2"},ZVt={op75:""},KVt={"text-xs":"",flex:"~ items-center gap2"},YVt={px1:""},XVt=ce({__name:"CommandPalette",setup(t){const r=G(!1),e=G(""),n=TVt(),i=G(),o=F(()=>i.value||n.value),a=F(()=>new pc(o.value,{keys:["id","title"],distance:50})),s=F(()=>e.value?a.value.search(e.value).map(h=>h.item):o.value||[]),l=G(0);Je(e,()=>{l.value=0,u()});function c(h){l.value=(l.value+h+s.value.length)%s.value.length,u()}function u(){document.getElementById(s.value[l.value]?.id)?.scrollIntoView({block:"center"})}async function g(h){const d=await h.action();d?(i.value=d,e.value=""):(i.value=void 0,e.value="",r.value=!1)}return hi("keydown",h=>{if((h.altKey||h.metaKey)&&h.key==="k"){h.preventDefault(),i.value=void 0,e.value="",r.value=!r.value;return}if(r.value)switch(h.key){case"ArrowDown":case"ArrowUp":h.preventDefault(),c(h.key==="ArrowDown"?1:-1);break;case"Enter":{const d=s.value[l.value];d&&(h.preventDefault(),g(d));break}case"Escape":{h.preventDefault(),i.value?(i.value=void 0,e.value=""):r.value=!1;break}}}),(h,d)=>{const f=j0;return y(r)?(z(),ne(y(cw),{key:0,dim:"",class:"$ui-z-max-override backdrop-blur-2xl!"},{default:W(()=>[w("div",OVt,[w("header",xVt,[D(y(as),{modelValue:y(e),"onUpdate:modelValue":d[0]||(d[0]=C=>qe(e)?e.value=C:null),placeholder:"Type to search...",flat:"","auto-focus":"",class:"h12 border-none!"},null,8,["modelValue"])]),w("div",HVt,[(z(!0),H(Ee,null,At(y(s),(C,v)=>(z(),H("button",{id:C.id,key:C.id,onClick:A=>g(C),onMouseover:A=>l.value=v},[w("div",{flex:"~ gap-2 items-center justify-between",rounded:"",px3:"",py2:"",class:Te(y(l)===v?"op100 saturate-100 bg-active":"op80")},[D(f,{icon:C.icon,title:C.title,"flex-none":"","text-xl":""},null,8,["icon","title"]),w("span",PVt,[w("span",RVt,ze(C.title),1),w("span",DVt,ze(C.description),1)]),y(l)===v?(z(),ne(y(Ut),{key:0,icon:"i-carbon-text-new-line scale-x--100","flex-none":""})):oe("",!0)],2)],40,VVt))),128)),y(s).length?oe("",!0):(z(),H("div",NVt,[D(y(Ut),{icon:"carbon-search",op50:""}),w("div",null,[d[1]||(d[1]=w("span",{op50:""},"No results for",-1)),w("strong",BVt,' "'+ze(y(e))+'" ',1)])]))]),w("footer",FVt,[w("div",jVt,[w("button",UVt,[D(y(Ut),{icon:"i-carbon-arrow-down"})]),w("button",GVt,[D(y(Ut),{icon:"i-carbon-arrow-up"})]),d[2]||(d[2]=w("span",{op75:""},"to navigate",-1))]),w("div",WVt,[d[3]||(d[3]=w("button",{px1:""}," Esc ",-1)),w("span",ZVt,"to "+ze(y(i)?"go back":"close"),1)]),w("div",KVt,[w("button",YVt,[D(y(Ut),{icon:"i-carbon-text-new-line scale-x--100","scale-x--100":""})]),d[4]||(d[4]=w("span",{op75:""},"to select",-1))])])])]),_:1})):oe("",!0)}}}),qVt={flex:"~ items-center gap-3"},QVt={key:0,"text-md":"","overflow-hidden":"","text-ellipsis":"","ws-nowrap":""},JVt={"translate-y-0.5px":""},ePt={key:0,hidden:"","lg:block":""},Hne=ce({__name:"SideNavItem",props:{tab:{},minimized:{type:Boolean,default:!0},target:{default:"main"},disabled:{type:Boolean,default:!1}},setup(t){const r=t,e=vf(),n=F(()=>"path"in r.tab?`${r.tab.path.startsWith("/")?"":"/"}${r.tab.path}`:`/custom-tab-view/${r.tab.name}`),i=F(()=>"badge"in r.tab&&r.tab.badge?.()),o=F(()=>e.path.startsWith(n.value));function a(){r.disabled||("onClick"in r.tab&&r.tab.onClick?r.tab.onClick():r.target==="side"&&(dr.value.splitScreen.view=r.tab.name))}return(s,l)=>{const c=j0;return z(),ne(y(oCe),{disabled:!s.minimized,placement:"right",class:Te({"w-full":!s.minimized})},{popper:W(()=>[w("div",null,ze(s.tab.title),1),"extraTabVNode"in s.tab&&s.tab.extraTabVNode?(z(),H("div",ePt,[(z(),ne(y1(s.tab.extraTabVNode)))])):oe("",!0)]),default:W(()=>[(z(),ne(y1(s.target==="main"?y(Mj):"button"),{to:y(n),flex:`~ items-center ${s.minimized?"justify-center":"justify-between"}`,"text-secondary":"",relative:"",block:"","h-10":"","select-none":"",op65:"",disabled:s.disabled,class:Te([s.disabled?"cursor-not-allowed op40!":"hover:bg-active hover:op-100"]),w:s.minimized?"10":"full",rounded:s.minimized?"xl":"",p:s.minimized?"1":"x3","exact-active-class":"!text-primary-600 bg-active op-100!",onClick:a},{default:W(()=>[w("div",qVt,[D(c,{"text-xl":"",icon:s.tab.icon,fallback:s.tab.fallbackIcon,title:s.tab.name,"show-title":!1},null,8,["icon","fallback","title"]),s.minimized?oe("",!0):(z(),H("span",QVt,ze(s.tab.title),1))]),y(i)?(z(),H("div",{key:0,"h-4":"","w-4":"","rounded-full":"","text-9px":"","text-white":"",flex:"~ items-center justify-center",class:Te([y(o)?"bg-primary-600":"bg-gray",{"absolute bottom-0 right-0":s.minimized}])},[w("span",JVt,ze(y(wr)(y(i))),1)],2)):oe("",!0)]),_:1},8,["to","flex","disabled","class","w","rounded","p"]))]),_:1},8,["disabled","class"])}}}),tPt={flex:"~ col gap-1","max-w-80":"",py1:""},rPt={key:0,"h-1px":"",border:"b base"},nPt={flex:"~ wrap",px1:""},Vne=ce({__name:"TabsGrid",props:{categories:{},target:{},disabledItems:{}},setup(t){return(r,e)=>{const n=Hne;return z(),H("div",tPt,[(z(!0),H(Ee,null,At(r.categories,([i,o],a)=>(z(),H(Ee,{key:i},[o.length?(z(),H(Ee,{key:0},[a?(z(),H("div",rPt)):oe("",!0),w("div",nPt,[(z(!0),H(Ee,null,At(o,s=>(z(),ne(n,{key:s.name,disabled:r.disabledItems?.includes(s.name),target:r.target,tab:s},null,8,["disabled","target","tab"]))),128))])],64)):oe("",!0)],64))),128))])}}}),iPt={"h-full":"","h-screen":"","of-hidden":""},oPt={key:0,border:"b base",flex:"~ gap1","z-99":"",px4:"",py3:"","navbar-glass":""},aPt={flex:"","cursor-pointer":"","items-center":"",gap2:""},sPt={capitalize:""},lPt={key:2,"of-auto":"",class:"h-[calc(100%-50px)]"},cPt={key:3,class:"h-full w-full $ui-fcc"},uPt=ce({__name:"SplitScreen",setup(t){function r(){dr.value.splitScreen.enabled=!1}const e=F(()=>dr.value.splitScreen),{enabledTabs:n,flattenedTabs:i}=$f(),o=Cc(),a=vf(),s=Bi(),l=G(null),c=G(null),u=G(null);function g(v){const A=f();return v?v.name===A:!1}const h=F(()=>{const v=i.value.find(A=>A.name===e.value.view);return g(v)?void 0:v}),d=F(()=>f());function f(){return a.path.startsWith(`/${B8}/`)?a.path.slice(B8.length+2):a.path.startsWith(`/${xh}/`)?a.path.slice(xh.length+2):a.path.startsWith("/")?a.path.slice(1):a.path}Je(()=>h.value,v=>{if(!v)return;if(v.view){l.value=v.name,u.value="custom-tab";return}if(v.path.startsWith(xh)){l.value=v.name,c.value=v.pluginId,u.value="custom-inspector";return}l.value=null;const p=o.getRoutes().find(m=>m.path===`/${v.path}`)?.components?.default;typeof p=="function"?s.value=poe(p):s.value=p},{immediate:!0});const C=G(!1);return(v,A)=>{const I=j0,p=Vne,m=rW;return z(),H("div",iPt,[(y(s)||y(l))&&y(h)?(z(),H("div",oPt,[D(y(Cu),{placement:"bottom-start",distance:12,skidding:5,shown:y(C),trigger:"click"},{popper:W(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),default:W(()=>[w("div",aPt,[A[0]||(A[0]=w("div",{"i-carbon-chevron-down":"","text-sm":"",op50:""},null,-1)),D(I,{"text-xl":"",icon:y(h)?.icon,title:y(h).name,fallback:y(h).fallbackIcon,"show-title":!1},null,8,["icon","title","fallback"]),w("span",sPt,ze(y(h)?.name),1)])]),_:1},8,["shown"]),A[2]||(A[2]=w("div",{"flex-auto":""},null,-1)),$t((z(),H("button",{title:"Close split screen","cursor-pointer":"","hover:bg-active":"",px1:"",onClick:r},A[1]||(A[1]=[w("div",{"i-carbon:side-panel-open":""},null,-1)]))),[[y(sr),"Close split screen"]])])):oe("",!0),y(l)&&y(h)?(z(),H(Ee,{key:1},[y(u)==="custom-tab"?(z(),ne(m,{key:0,tab:y(h),class:"h-[calc(100%-50px)]","iframe-inline":"","of-auto":""},null,8,["tab"])):y(c)?(z(),ne(y(JG),{key:1,id:y(l),"plugin-id":y(c)},null,8,["id","plugin-id"])):oe("",!0)],64)):y(s)&&y(h)?(z(),H("div",lPt,[(z(),ne(y1(y(s)),{key:`tab-${y(h).name}`}))])):(z(),H("div",cPt,[w("div",null,[A[4]||(A[4]=w("span",{"text-lg":"",op50:""}," Select a tab to start ",-1)),D(y(V5),{px4:"",py2:"","bg-base":""},{default:W(()=>[D(p,{categories:y(n),target:"side","disabled-items":[y(d)]},null,8,["categories","disabled-items"])]),_:1}),D(y(ct),{type:"warning",outlined:"",mt2:"",onClick:r},{default:W(()=>A[3]||(A[3]=[Se(" Close Split Screen ")])),_:1})])]))])}}}),gPt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},hPt={px3:"",py2:"",border:"b base",flex:"~ gap-2"},dPt={px3:"",py2:"",flex:"~ gap2"},fPt=ce({__name:"DockingPanel",setup(t){const r=Cc(),e=F({get:()=>dr.value.expandSidebar,set:u=>dr.value.expandSidebar=u}),n=F({get:()=>dr.value.splitScreen.enabled,set:u=>dr.value.splitScreen.enabled=u});function i(){location.reload()}const o=uo(),a=F(()=>o.appRecords.value.map(u=>({label:u.name+(u.version?` (${u.version})`:""),value:u.id}))),s=G(o.activeAppRecordId.value);gn(()=>{s.value=o.activeAppRecordId.value});const l=F(()=>a.value.find(u=>u.value===s.value)?.label??"");function c(u){Ae.value.toggleApp(u).then(()=>{r.push("/overview").then(()=>{fj()})})}return(u,g)=>(z(),H("div",null,[w("div",gPt,[D(y(tG),null,{default:W(({isDark:h,toggle:d})=>[D(y(ct),{outlined:"",type:"primary",onClick:d},{default:W(()=>[g[3]||(g[3]=w("div",{"i-carbon-sun":"","dark:i-carbon-moon":"","translate-y--1px":""},null,-1)),Se(" "+ze(h?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),D(y(ct),{outlined:"",type:"primary",onClick:g[0]||(g[0]=h=>e.value=!y(e))},{default:W(()=>[D(y(Ut),{icon:y(e)?"i-carbon-side-panel-close":"i-carbon-side-panel-open"},null,8,["icon"]),Se(" "+ze(y(e)?"Minimize Sidebar":"Expand Sidebar"),1)]),_:1}),D(y(ct),{to:"/settings",outlined:"",type:"primary"},{default:W(()=>g[4]||(g[4]=[w("div",{"i-carbon-settings-adjust":""},null,-1),Se(" Settings ")])),_:1})]),w("div",hPt,[D(y(ct),{outlined:"",type:"primary",onClick:g[1]||(g[1]=h=>n.value=!y(n))},{default:W(()=>[g[5]||(g[5]=w("div",{"i-carbon-split-screen":""},null,-1)),Se(" "+ze(y(n)?"Close Split Screen":"Split Screen"),1)]),_:1})]),w("div",dPt,[y(a).length>1?(z(),ne(y(zd),{key:0,modelValue:y(s),"onUpdate:modelValue":[g[2]||(g[2]=h=>qe(s)?s.value=h:null),c],options:y(a),placeholder:y(l)||"Toggle App","button-props":{outlined:!0,type:"primary"}},null,8,["modelValue","options","placeholder"])):oe("",!0),D(y(ct),{outlined:"",type:"primary",onClick:i},{default:W(()=>g[6]||(g[6]=[Se(" Refresh Page ")])),_:1})])]))}}),CPt={sticky:"","top-0":"","z-1":"","w-full":"",p1:"","bg-base":"",border:"b base"},vPt={flex:"~ auto col gap-0.5 items-center","w-full":"","of-x-hidden":"","of-y-auto":"",p1:"",class:"no-scrollbar"},APt={key:0,my1:"","h-1px":"","w-full":"",border:"b base"},IPt=["flex"],pPt={absolute:"","bottom-0":"","right-0":"","h-4":"","w-4":"","rounded-full":"","text-9px":"",flex:"~ items-center justify-center",border:"~ base"},mPt={"translate-y-0.5px":""},yPt=45,bPt=ce({__name:"SideNav",emits:["toggleDevtoolsClientVisible"],setup(t,{emit:r}){const e=r,n=G(!1),i=G(!1),o=G(),a=G(),s=G(),l=F(()=>dr.value.expandSidebar),c=F(()=>dr.value.scrollableSidebar),{enabledTabs:u,flattenedTabs:g}=$f(),{height:h}=Ege(),d=F(()=>{const _=h.value-130;return Math.max(0,Math.floor(_/yPt))}),f=F(()=>g.value.slice(0,d.value)),C=F(()=>g.value.slice(d.value)),v=yT(f,u),A=yT(C,u),I=F(()=>c.value||l.value?u.value:v.value);tge(o,_=>{a.value&&_.composedPath().includes(a.value)||s.value&&_.composedPath().includes(s.value)||(n.value=!1,i.value=!1)},{detectIframe:!0});const p=G(),m=G(6);jb(p,()=>{m.value=m.value===6?6.01:6});const b=lM();return Cge(p,([{isIntersecting:_}])=>{e("toggleDevtoolsClientVisible",{visible:_,host:b})}),(_,L)=>{const M=fPt,S=Hne,T=j0,k=Vne;return z(),H("div",{ref_key:"containerRef",ref:p,border:"r base",flex:"~ col items-start",class:"$ui-z-max-override","h-full":"","of-hidden":"","bg-base":""},[w("div",CPt,[D(y(Cu),{placement:"left-start",distance:y(m),skidding:5,trigger:"click",shown:y(n),class:"w-full"},{popper:W(()=>[D(M)]),default:W(()=>[w("button",{ref_key:"buttonDocking",ref:a,flex:"~ items-center justify-center gap-2",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-full":"","select-none":"",p2:"","exact-active-class":"!text-primary bg-active",class:Te([y(l)?"rounded pl2.5":"rounded-xl"])},[L[3]||(L[3]=w("div",{"i-logos-vue":"","h-6":"","w-6":""},null,-1)),y(l)?(z(),H(Ee,{key:0},[L[0]||(L[0]=w("span",{"text-lg":"","font-600":"","text-base":""}," DevTools ",-1)),L[1]||(L[1]=w("div",{"flex-auto":""},null,-1)),L[2]||(L[2]=w("div",{"i-carbon-overflow-menu-vertical":""},null,-1))],64)):oe("",!0)],2)]),_:1},8,["distance","shown"])]),w("div",vPt,[(z(!0),H(Ee,null,At(y(I),([O,P],B)=>(z(),H(Ee,{key:O},[B?(z(),H("div",APt)):oe("",!0),(z(!0),H(Ee,null,At(P.filter(te=>!te.hidden),te=>(z(),ne(S,{key:te.name,tab:te,minimized:!y(l)},null,8,["tab","minimized"]))),128))],64))),128)),L[4]||(L[4]=w("div",{"flex-auto":""},null,-1))]),w("div",{flex:`~ items-center gap-1 ${y(l)?"":"none col"}`,border:"t base",sticky:"","bottom-0":"","w-full":"",p1:"","bg-base":"",class:"$ui-z-max-override"},[y(C).length&&!y(c)&&!y(l)?(z(),ne(y(Cu),{key:0,placement:"left-end",distance:6},{popper:W(()=>[D(k,{categories:y(A),"max-w-80":"",target:"main"},null,8,["categories"])]),default:W(()=>[w("button",{ref_key:"buttonMoreTabs",ref:s,flex:"~",hover:"bg-active","text-secondary":"",relative:"","h-10":"","w-10":"","select-none":"","items-center":"","justify-center":"","rounded-xl":"",p1:"","exact-active-class":"!text-primary bg-active"},[D(T,{"text-xl":"",icon:"i-carbon-overflow-menu-vertical",title:"More tabs","show-title":!1}),w("div",pPt,[w("span",mPt,ze(y(C).length),1)])],512)]),_:1})):oe("",!0),D(S,{minimized:!y(l),tab:{icon:"i-carbon-settings-adjust",title:"Settings",name:"settings",path:"/settings"}},null,8,["minimized"])],8,IPt)],512)}}}),Pne=Bi([]),Rne=G(null);F(()=>Pne.value.find(t=>t.id===Rne.value));const wPt={class:"fixed inset-0 h-screen w-screen $ui-bg-base"},$Pt=ce({__name:"App",setup(t){mf();const r=Cc(),e=vf(),{connected:n,clientConnected:i,activeAppRecordId:o,appRecords:a}=uo(),s=dr,l=F(()=>n.value&&i.value),c=F(()=>e.path.startsWith("/__")||e.path==="/"),u=F(()=>s.value.expandSidebar),g=F(()=>s.value.splitScreen.enabled),h=F({get:()=>s.value.splitScreen.size,set:A=>s.value.splitScreen.size=A});gn(()=>{const A=dr.value.scale;document.documentElement.style.fontSize=`${A*15}px`}),Ga(()=>{gn(()=>{Ae.value.emit("update-client-state",{minimizePanelInteractive:dr.value.minimizePanelInteractive,closeOnOutsideClick:dr.value.interactionCloseOnOutsideClick,showFloatingPanel:dr.value.showPanel})})}),Je(l,A=>{A&&(r.replace(s.value.isFirstVisit?"/":s.value.route),r.afterEach(()=>{const I=e.path;I.includes("__")||(s.value.route=I)}))},{immediate:!0}),hi("keydown",A=>{A.code==="KeyD"&&A.altKey&&A.shiftKey&&Ae.value.emit("toggle-panel")}),gn(()=>{Pne.value=a.value,Rne.value=o.value}),Ga(()=>{Ae.value.initDevToolsServerListener(),Ae.value.checkVueInspectorDetected().then(A=>{A&&(iI.value=!0,HN(()=>[{id:"action:vue-inspector",title:"Inspector",icon:"i-carbon-select-window",action:async()=>{Ae.value.emit("toggle-panel",!1),await Ae.value.enableVueInspector()}}]))})});function d(){r.push("/overview").then(()=>{fj()})}Hb(()=>{Ae.functions.on(Nt.ACTIVE_APP_UNMOUNTED,d)});const{copy:f}=CI(),C=vge({});HN(()=>[...C.isSupported.value?[{id:"action:eye-dropper",title:"Color Picker",icon:"i-carbon-eyedropper",action:async()=>{Ae.value.emit("toggle-panel",!1);const{sRGBHex:A}=await C.open()||{};A&&f(A)}}]:[]]),Ii(()=>{Ga(()=>{Ae.value.toggleClientConnected(!0)})}),fn(()=>{Ae.value.toggleClientConnected(!1),Ae.functions.off(Nt.ACTIVE_APP_UNMOUNTED,d)});function v(A){const{host:I,visible:p}=A;Ae.value.updateDevToolsClientDetected({[I]:p})}return(A,I)=>{const p=hCe,m=bPt,b=Vo("RouterView"),_=uPt,L=XVt;return z(),H("main",wPt,[y(l)?(z(),H("div",{key:1,class:Te(["h-full of-auto transition-base",y(c)?"flex":y(u)?"grid grid-cols-[250px_1fr]":"grid grid-cols-[50px_1fr]"]),"h-full":"","h-screen":"","of-hidden":"","font-sans":"","bg-base":""},[y(c)?oe("",!0):(z(),ne(m,{key:0,"of-x-hidden":"","of-y-auto":"",onToggleDevtoolsClientVisible:v})),D(y(R1),{"h-full":"","of-hidden":"",onResize:I[0]||(I[0]=M=>h.value=M.map(S=>S.size))},{default:W(()=>[D(y(hn),{"h-full":"",class:"of-auto!","min-size":"10",size:y(h)[0]},{default:W(()=>[D(b)]),_:1},8,["size"]),!y(c)&&y(g)?(z(),ne(y(hn),{key:0,relative:"","h-full":"",class:"of-auto!",size:y(h)[1]},{default:W(()=>[D(_)]),_:1},8,["size"])):oe("",!0)]),_:1})],2)):(z(),ne(p,{key:0})),D(L)])}}}),_Pt=[{path:"/",component:tHt},{path:"/overview",component:fHt},{path:"/components",component:B9e},{path:"/pinia",component:UHt},{path:"/router",component:GHt},{path:"/pages",component:jHt},{path:"/timeline",component:EVt},{path:"/assets",component:Ive},{path:"/graph",component:Kxt},{path:"/settings",component:uVt},{path:`/${B8}/:name`,component:o6e},{path:`/${xh}/:name`,component:K9e}],MPt=O2e({history:u2e(),routes:_Pt}),cM=CF($Pt);cM.use(MPt);cM.use(Oce());cM.mount("#app");async function zPt(){return ma?void 0:(await Hce(`${location.pathname.split("/__devtools__")[0]||""}/`.replace(/\/\//g,"/"),!1))?.createHotContext("/____")}async function EPt(){const t=await zPt();return t&&Xle(t),t}EPt().then(t=>{t&&kce()});DN?Q6(IE,{preset:"broadcast"}):Q6(IE,{preset:"iframe"});