HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/files.wb-cloud.nl/public_html/apps/text/js/EditorOutline-CqmB-AYU.chunk.mjs
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/text-text.mjs'),window.OC.filePath('text', '', 'js/index-6AQ8QgJK.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-DwlFXcXb.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-C9BcAUzb.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor-Bi-gMhs0.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Be8Hx1Gh.chunk.mjs'),window.OC.filePath('text', '', 'js/NcLoadingIcon-DmVcM0-B.chunk.mjs'),window.OC.filePath('text', '', 'js/index-CCUE3e_p.chunk.mjs'),window.OC.filePath('text', '', 'css/NcLoadingIcon-CFe6qyTF.chunk.css'),window.OC.filePath('text', '', 'js/dav-CQDyL7M_-Dl4xEXlI.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-ChweF_5Q-5iiVgoP-.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-ChweF_5Q-BAYWJnqj.chunk.css'),window.OC.filePath('text', '', 'js/MenuBar-D7Mx5BJq.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CjlCfPBG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-B8nYQ_zQ.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-DVPLBGl3.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-XSZyZ-Zg.chunk.mjs'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-ip_mRd2T-Df5K32Av.chunk.mjs'),window.OC.filePath('text', '', 'css/NcCheckboxRadioSwitch-ip_mRd2T-Bebqso8K.chunk.css'),window.OC.filePath('text', '', 'css/MenuBar-DZeLx75j.chunk.css'),window.OC.filePath('text', '', 'css/Editor-CW8w_8G1.chunk.css'),window.OC.filePath('text', '', 'css/text-BrKBJp1J.chunk.css'),window.OC.filePath('text', '', 'js/index-BC-7VPxC-CghEXBN8.chunk.mjs'),window.OC.filePath('text', '', 'js/mermaid.core-DG2R2EW0.chunk.mjs')])))=>i.map(i=>d[i]);
import{d as Ma,g as U1,B as um,n as ut,c as fr,t as xe,G as ro,r as Et,o as L4,b as me,q as WC,s as Y4,u as KC,v as H4,w as Z4,x as P4,y as $4,N as Vd,z as U4,A as QC,C as z4,D as V4,E as j4,F as JC,H as G4,I as XC,J as q4,h as W4,K as K4,L as Q4,M as eN,O as tN,P as J4,l as X4,Q as eB,R as tB,S as nB,T as rB,U as iB,V as oB,W as sB,X as aB,Y as lB,Z as cB,_ as uB,$ as dB,a0 as hB,a1 as pB,a2 as fB,a3 as mB,a4 as gB,a5 as TB,a6 as bB,a7 as AB,a8 as yB,a9 as EB,aa as vB,ab as DB,ac as SB}from"./NcLoadingIcon-DmVcM0-B.chunk.mjs";import{_ as io,v as Xi,w as bv,f as wB,h as _B}from"./index-CCUE3e_p.chunk.mjs";import{g as Av,i as od,p as Ip,s as yv,r as pi,c as bs,d as z1,u as jd,k as CB,l as NB,t as FB,h as gu,v as OB,w as ma,V as Mr,n as nN,x as xB,b as kB,f as RB,e as MB,q as BB}from"./vue.runtime.esm-C9BcAUzb.chunk.mjs";import{l as Nr}from"./logger-DVPLBGl3.chunk.mjs";import{p as Ei,s as F0,g as IB,_ as O0,d as Wb,a as sd,u as V1,e as ad,r as LB,c as YB,f as HB}from"./index-6AQ8QgJK.chunk.mjs";import{l as dm}from"./index-B8nYQ_zQ.chunk.mjs";import{g as $l,e as Rc,d as rN,c as hs}from"./emoji-picker-DwlFXcXb.chunk.mjs";import{i as ZB,d as Tu,m as PB,l as iN,c as Os,S as oN,b as _i,k as Ks,o as sN,q as $B,r as UB,v as zB,w as VB,e as pl,x as jB,y as GB,D as aN,C as lN,N as cN,u as qB,z as WB,g as Ev,p as KB,t as cc,A as QB,h as hm,B as JB,E as XB,F as e6,G as t6,I as yh,a as n6,s as uN}from"./NcNoteCard-ChweF_5Q-5iiVgoP-.chunk.mjs";import{u as Po}from"./NcCheckboxRadioSwitch-ip_mRd2T-Df5K32Av.chunk.mjs";import{n as Ee}from"./_plugin-vue2_normalizer-XSZyZ-Zg.chunk.mjs";import{u as dN,f as r6,h as i6,i as o6,g as s6,j as a6,c as l6,k as c6,l as Kb,m as pm,n as u6,p as hN}from"./MediaHandler.provider-CjlCfPBG.chunk.mjs";const I4="text";function d6(e,t,n){const r=document.querySelector(`#initial-state-${e}-${t}`);if(r===null)throw new Error(`Could not find initial state ${t} of ${e}`);try{return JSON.parse(atob(r.value))}catch{throw new Error(`Could not parse initial state ${t} of ${e}`)}}function fm(){try{return d6("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function h6(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(Ma()),t=e.getWeekInfo?.()??e.weekInfo;return t?t.firstDay%7:1}function p6(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=Ma();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"})]}function f6(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=Ma();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"})]}function m6(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=Ma();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"})]}function g6(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=Ma();return[new Date("1970-01-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-02-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-03-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-04-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-05-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-06-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-07-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-08-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-09-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-10-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-11-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-12-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"})]}function T6(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=Ma();return[new Date("1970-01-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-02-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-03-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-04-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-05-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-06-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-07-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-08-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-09-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-10-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-11-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-12-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"})]}function b6(e=Date.now(),t={}){const n={ignoreSeconds:!1,language:U1(),relativeTime:"long",...t},r=new Date(e),i=new Intl.RelativeTimeFormat([n.language,U1()],{numeric:"auto",style:n.relativeTime}),o=(r.getTime()-Date.now())/1e3;if(Math.abs(o)<59.5)return n.ignoreSeconds||i.format(Math.round(o),"second");const s=o/60;if(Math.abs(s)<=59)return i.format(Math.round(s),"minute");const a=s/60;if(Math.abs(a)<23.5)return i.format(Math.round(a),"hour");const l=a/24;if(Math.abs(l)<6.5)return i.format(Math.round(l),"day");if(Math.abs(l)<27.5){const d=l/7;return i.format(Math.round(d),"week")}const c=l/30,u=Math.abs(c)<11?{month:n.relativeTime,day:"numeric"}:{year:n.relativeTime==="narrow"?"2-digit":"numeric",month:n.relativeTime};return new Intl.DateTimeFormat([n.language,U1()],u).format(r)}function Ar(e){this.content=e}Ar.prototype={constructor:Ar,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),o=r.content.slice();return i==-1?o.push(n||e,t):(o[i+1]=t,n&&(o[i]=n)),new Ar(o)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Ar(n)},addToStart:function(e,t){return new Ar([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Ar(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),o=r.find(e);return i.splice(o==-1?i.length:o,0,t,n),new Ar(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Ar.from(e),e.size?new Ar(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Ar.from(e),e.size?new Ar(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Ar.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},Ar.from=function(e){if(e instanceof Ar)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Ar(t)};function pN(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),o=t.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){let s=pN(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function fN(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let s=e.child(--i),a=t.child(--o),l=s.nodeSize;if(s==a){n-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let c=fN(s.content,a.content,n-1,r-1);if(c)return c}n-=l,r-=l}}class ue{constructor(t,n){if(this.content=t,this.size=n||0,n==null)for(let r=0;r<t.length;r++)this.size+=t[r].nodeSize}nodesBetween(t,n,r,i=0,o){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>t&&r(l,i+a,o||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,n-u),r,i+u)}a=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,i){let o="",s=!0;return this.nodesBetween(t,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(t,l)-l,n-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(s?s=!1:o+=r),o+=c},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<t.content.length;o++)i.push(t.content[o]);return new ue(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let o=0,s=0;s<n;o++){let a=this.content[o],l=s+a.nodeSize;l>t&&((s<t||l>n)&&(a.isText?a=a.cut(Math.max(0,t-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,t-s-1),Math.min(a.content.size,n-s-1))),r.push(a),i+=a.nodeSize),s=l}return new ue(r,i)}cutByIndex(t,n){return t==n?ue.empty:t==0&&n==this.content.length?this:new ue(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new ue(i,o)}addToStart(t){return new ue([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new ue(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(t.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(t){let n=this.content[t];if(!n)throw new RangeError("Index "+t+" out of range for "+this);return n}maybeChild(t){return this.content[t]||null}forEach(t){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];t(i,r,n),r+=i.nodeSize}}findDiffStart(t,n=0){return pN(this,t,n)}findDiffEnd(t,n=this.size,r=t.size){return fN(this,t,n,r)}findIndex(t,n=-1){if(t==0)return Eh(0,t);if(t==this.size)return Eh(this.content.length,t);if(t>this.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),s=i+o.nodeSize;if(s>=t)return s==t||n>0?Eh(r+1,s):Eh(r,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return ue.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ue(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return ue.empty;let n,r=0;for(let i=0;i<t.length;i++){let o=t[i];r+=o.nodeSize,i&&o.isText&&t[i-1].sameMarkup(o)?(n||(n=t.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new ue(n||t,r)}static from(t){if(!t)return ue.empty;if(t instanceof ue)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new ue([t],t.nodeSize);throw new RangeError("Can not convert "+t+" to a Fragment"+(t.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ue.empty=new ue([],0);const j1={index:0,offset:0};function Eh(e,t){return j1.index=e,j1.offset=t,j1}function Lp(e,t){if(e===t)return!0;if(!(e&&typeof e=="object")||!(t&&typeof t=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!Lp(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!Lp(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}let Xt=class DT{constructor(t,n){this.type=t,this.attrs=n}addToSet(t){let n,r=!1;for(let i=0;i<t.length;i++){let o=t[i];if(this.eq(o))return t;if(this.type.excludes(o.type))n||(n=t.slice(0,i));else{if(o.type.excludes(this.type))return t;!r&&o.type.rank>this.type.rank&&(n||(n=t.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return t.slice(0,n).concat(t.slice(n+1));return t}isInSet(t){for(let n=0;n<t.length;n++)if(this.eq(t[n]))return!0;return!1}eq(t){return this==t||this.type==t.type&&Lp(this.attrs,t.attrs)}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=t.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(t,n){if(t==n)return!0;if(t.length!=n.length)return!1;for(let r=0;r<t.length;r++)if(!t[r].eq(n[r]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return DT.none;if(t instanceof DT)return[t];let n=t.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};Xt.none=[];class Yp extends Error{}class we{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=gN(this.content,t+this.openStart,n);return r&&new we(r,this.openStart,this.openEnd)}removeBetween(t,n){return new we(mN(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return we.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new we(ue.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=t.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new we(t,r,i)}}we.empty=new we(ue.empty,0,0);function mN(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:s,offset:a}=e.findIndex(n);if(i==t||o.isText){if(a!=n&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(mN(o.content,t-i-1,n-i-1)))}function gN(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i);if(o==t||s.isText)return e.cut(0,t).append(n).append(e.cut(t));let a=gN(s.content,t-o-1,n);return a&&e.replaceChild(i,s.copy(a))}function A6(e,t,n){if(n.openStart>e.depth)throw new Yp("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Yp("Inconsistent open depths");return TN(e,t,n,0)}function TN(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let s=TN(e,t,n,r+1);return o.copy(o.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let s=e.parent,a=s.content;return yl(s,a.cut(0,e.parentOffset).append(n.content).append(a.cut(t.parentOffset)))}else{let{start:s,end:a}=y6(n,e);return yl(o,AN(e,s,a,t,r))}else return yl(o,Hp(e,t,r))}function bN(e,t){if(!t.type.compatibleContent(e.type))throw new Yp("Cannot join "+t.type.name+" onto "+e.type.name)}function ST(e,t,n){let r=e.node(n);return bN(r,t.node(n)),r}function Al(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function x0(e,t,n,r){let i=(t||e).node(n),o=0,s=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(Al(e.nodeAfter,r),o++));for(let a=o;a<s;a++)Al(i.child(a),r);t&&t.depth==n&&t.textOffset&&Al(t.nodeBefore,r)}function yl(e,t){return e.type.checkContent(t),e.copy(t)}function AN(e,t,n,r,i){let o=e.depth>i&&ST(e,t,i+1),s=r.depth>i&&ST(n,r,i+1),a=[];return x0(null,e,i,a),o&&s&&t.index(i)==n.index(i)?(bN(o,s),Al(yl(o,AN(e,t,n,r,i+1)),a)):(o&&Al(yl(o,Hp(e,t,i+1)),a),x0(t,n,i,a),s&&Al(yl(s,Hp(n,r,i+1)),a)),x0(r,null,i,a),new ue(a)}function Hp(e,t,n){let r=[];if(x0(null,e,n,r),e.depth>n){let i=ST(e,t,n+1);Al(yl(i,Hp(e,t,n+1)),r)}return x0(t,null,n,r),new ue(r)}function y6(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let i=n-1;i>=0;i--)r=t.node(i).copy(ue.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class ld{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=t.child(n);return r?t.child(n).cut(r):i}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<t;o++)i+=r.child(o).nodeSize;return i}marks(){let t=this.parent,n=this.index();if(t.content.size==0)return Xt.none;if(this.textOffset)return t.child(n).marks;let r=t.maybeChild(n-1),i=t.maybeChild(n);if(!r){let a=r;r=i,i=a}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(t){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=t.parent.maybeChild(t.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(t){for(let n=this.depth;n>0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos<this.pos)return t.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==t.pos?1:0);r>=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new Zp(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos<this.pos?t:this}toString(){let t="";for(let n=1;n<=this.depth;n++)t+=(t?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return t+":"+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let s=t;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(r.push(s,a,i+l),!c||(s=s.child(a),s.isText))break;o=c-1,i+=l+1}return new ld(n,r,o)}static resolveCached(t,n){let r=vv.get(t);if(r)for(let o=0;o<r.elts.length;o++){let s=r.elts[o];if(s.pos==n)return s}else vv.set(t,r=new E6);let i=r.elts[r.i]=ld.resolve(t,n);return r.i=(r.i+1)%v6,i}}class E6{constructor(){this.elts=[],this.i=0}}const v6=12,vv=new WeakMap;class Zp{constructor(t,n,r){this.$from=t,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const D6=Object.create(null);let As=class wT{constructor(t,n,r,i=Xt.none){this.type=t,this.attrs=n,this.marks=i,this.content=r||ue.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(t){return this.content.child(t)}maybeChild(t){return this.content.maybeChild(t)}forEach(t){this.content.forEach(t)}nodesBetween(t,n,r,i=0){this.content.nodesBetween(t,n,r,i,this)}descendants(t){this.nodesBetween(0,this.content.size,t)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(t,n,r,i){return this.content.textBetween(t,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(t){return this==t||this.sameMarkup(t)&&this.content.eq(t.content)}sameMarkup(t){return this.hasMarkup(t.type,t.attrs,t.marks)}hasMarkup(t,n,r){return this.type==t&&Lp(this.attrs,n||t.defaultAttrs||D6)&&Xt.sameSet(this.marks,r||Xt.none)}copy(t=null){return t==this.content?this:new wT(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new wT(this.type,this.attrs,this.content,t)}cut(t,n=this.content.size){return t==0&&n==this.content.size?this:this.copy(this.content.cut(t,n))}slice(t,n=this.content.size,r=!1){if(t==n)return we.empty;let i=this.resolve(t),o=this.resolve(n),s=r?0:i.sharedDepth(n),a=i.start(s),l=i.node(s).content.cut(i.pos-a,o.pos-a);return new we(l,i.depth-s,o.depth-s)}replace(t,n,r){return A6(this.resolve(t),this.resolve(n),r)}nodeAt(t){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(t);if(n=n.maybeChild(r),!n)return null;if(i==t||n.isText)return n;t-=i+1}}childAfter(t){let{index:n,offset:r}=this.content.findIndex(t);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(t){if(t==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(t);if(r<t)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(t){return ld.resolveCached(this,t)}resolveNoCache(t){return ld.resolve(this,t)}rangeHasMark(t,n,r){let i=!1;return n>t&&this.nodesBetween(t,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),yN(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=ue.empty,i=0,o=r.childCount){let s=this.contentMatchAt(t).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(t,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(t).matchType(r),s=o&&o.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(t){return t.content.size?this.canReplace(this.childCount,this.childCount,t.content):this.type.compatibleContent(t.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let t=Xt.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),t=r.addToSet(t)}if(!Xt.sameSet(t,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let i=ue.fromJSON(t,n.content),o=t.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};As.prototype.text=void 0;class Pp extends As{constructor(t,n,r,i){if(super(t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):yN(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Pp(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Pp(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function yN(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class kl{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new S6(t,n);if(r.next==null)return kl.empty;let i=EN(r);r.next&&r.err("Unexpected trailing text");let o=x6(O6(i));return k6(o,r),o}matchType(t){for(let n=0;n<this.next.length;n++)if(this.next[n].type==t)return this.next[n].next;return null}matchFragment(t,n=0,r=t.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(t.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let t=0;t<this.next.length;t++){let{type:n}=this.next[t];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(t){for(let n=0;n<this.next.length;n++)for(let r=0;r<t.next.length;r++)if(this.next[n].type==t.next[r].type)return!0;return!1}fillBefore(t,n=!1,r=0){let i=[this];function o(s,a){let l=s.matchFragment(t,r);if(l&&(!n||l.validEnd))return ue.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let h=o(d,a.concat(u));if(h)return h}}return null}return o(this,[])}findWrapping(t){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==t)return this.wrapCache[r+1];let n=this.computeWrapping(t);return this.wrapCache.push(t,n),n}computeWrapping(t){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(t)){let s=[];for(let a=i;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:a,next:l}=o.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(t){if(t>=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let i=0;i<r.next.length;i++)t.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),t.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+t.indexOf(r.next[s].next);return o}).join(`
`)}}kl.empty=new kl(!0);class S6{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function EN(e){let t=[];do t.push(w6(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function w6(e){let t=[];do t.push(_6(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function _6(e){let t=F6(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=C6(e,t);else break;return t}function Dv(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function C6(e,t){let n=Dv(e),r=n;return e.eat(",")&&(e.next!="}"?r=Dv(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function N6(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let s=n[o];s.isInGroup(t)&&i.push(s)}return i.length==0&&e.err("No node type or group '"+t+"' found"),i}function F6(e){if(e.eat("(")){let t=EN(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=N6(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function O6(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(s,a,l){let c={term:l,to:a};return t[s].push(c),c}function i(s,a){s.forEach(l=>l.to=a)}function o(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(o(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=o(s.exprs[l],a);if(l==s.exprs.length-1)return c;i(c,a=n())}else if(s.type=="star"){let l=n();return r(a,l),i(o(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(o(s.expr,a),l),i(o(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(o(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();i(o(s.expr,l),u),l=u}if(s.max==-1)i(o(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();r(l,u),i(o(s.expr,l),u),l=u}return[r(l)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function vN(e,t){return t-e}function Sv(e,t){let n=[];return r(t),n.sort(vN);function r(i){let o=e[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let s=0;s<o.length;s++){let{term:a,to:l}=o[s];!a&&n.indexOf(l)==-1&&r(l)}}}function x6(e){let t=Object.create(null);return n(Sv(e,0));function n(r){let i=[];r.forEach(s=>{e[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<i.length;u++)i[u][0]==a&&(c=i[u][1]);Sv(e,l).forEach(u=>{c||i.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=t[r.join(",")]=new kl(r.indexOf(e.length-1)>-1);for(let s=0;s<i.length;s++){let a=i[s][1].sort(vN);o.next.push({type:i[s][0],next:t[a.join(",")]||n(a)})}return o}}function k6(e,t){for(let n=0,r=[e];n<r.length;n++){let i=r[n],o=!i.validEnd,s=[];for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];s.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function DN(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function SN(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let o=e[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function wN(e,t,n,r){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in e){let o=e[i];o.validate&&o.validate(t[i])}}function _N(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new M6(e,r,t[r]);return n}let wv=class CN{constructor(t,n,r){this.name=t,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=_N(t,r.attrs),this.defaultAttrs=DN(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||t=="text"),this.isText=t=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==kl.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(t){return this.groups.indexOf(t)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:SN(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new As(this,this.computeAttrs(t),ue.from(n),Xt.setFrom(r))}createChecked(t=null,n,r){return n=ue.from(n),this.checkContent(n),new As(this,this.computeAttrs(t),n,Xt.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=ue.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(ue.empty,!0);return o?new As(this,t,n.append(o),Xt.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r<t.childCount;r++)if(!this.allowsMarks(t.child(r).marks))return!1;return!0}checkContent(t){if(!this.validContent(t))throw new RangeError(`Invalid content for node ${this.name}: ${t.toString().slice(0,50)}`)}checkAttrs(t){wN(this.attrs,t,"node",this.name)}allowsMarkType(t){return this.markSet==null||this.markSet.indexOf(t)>-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;n<t.length;n++)if(!this.allowsMarkType(t[n].type))return!1;return!0}allowedMarks(t){if(this.markSet==null)return t;let n;for(let r=0;r<t.length;r++)this.allowsMarkType(t[r].type)?n&&n.push(t[r]):n||(n=t.slice(0,r));return n?n.length?n:Xt.none:t}static compile(t,n){let r=Object.create(null);t.forEach((o,s)=>r[o]=new CN(o,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function R6(e,t,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class M6{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?R6(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class mm{constructor(t,n,r,i){this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=_N(t,i.attrs),this.excluded=null;let o=DN(this.attrs);this.instance=o?new Xt(this,o):null}create(t=null){return!t&&this.instance?this.instance:new Xt(this,SN(this.attrs,t))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((o,s)=>r[o]=new mm(o,i++,n,s)),r}removeFromSet(t){for(var n=0;n<t.length;n++)t[n].type==this&&(t=t.slice(0,n).concat(t.slice(n+1)),n--);return t}isInSet(t){for(let n=0;n<t.length;n++)if(t[n].type==this)return t[n]}checkAttrs(t){wN(this.attrs,t,"mark",this.name)}excludes(t){return this.excluded.indexOf(t)>-1}}class Qb{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in t)n[i]=t[i];n.nodes=Ar.from(t.nodes),n.marks=Ar.from(t.marks||{}),this.nodes=wv.compile(this.spec.nodes,this),this.marks=mm.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;if(o.contentMatch=r[s]||(r[s]=kl.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=a=="_"?null:a?_v(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:_v(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,i){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof wv){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,i)}text(t,n){let r=this.nodes.text;return new Pp(r,r.defaultAttrs,t,Xt.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeFromJSON(t){return As.fromJSON(this,t)}markFromJSON(t){return Xt.fromJSON(this,t)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function _v(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],o=e.marks[i],s=o;if(o)n.push(o);else for(let a in e.marks){let l=e.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function B6(e){return e.tag!=null}function I6(e){return e.style!=null}let Mc=class _T{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(B6(i))this.tags.push(i);else if(I6(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=t.nodes[i.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new Nv(this,n,!1);return r.addAll(t,Xt.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new Nv(this,n,!0);return r.addAll(t,Xt.none,n.from,n.to),we.maxOpen(r.finish())}matchTag(t,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(H6(t,o.tag)&&(o.namespace===void 0||t.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let s=o.getAttrs(t);if(s===!1)continue;o.attrs=s||void 0}return o}}}matchStyle(t,n,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let s=this.styles[o],a=s.style;if(!(a.indexOf(t)!=0||s.context&&!r.matchesContext(s.context)||a.length>t.length&&(a.charCodeAt(t.length)!=61||a.slice(t.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(t){let n=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<o)break}n.splice(s,0,i)}for(let i in t.marks){let o=t.marks[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Fv(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in t.nodes){let o=t.nodes[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Fv(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new _T(t,_T.schemaRules(t)))}};const NN={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},L6={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},FN={ol:!0,ul:!0},cd=1,CT=2,cp=4;function Cv(e,t,n){return t!=null?(t?cd:0)|(t==="full"?CT:0):e&&e.whitespace=="pre"?cd|CT:n&-5}class vh{constructor(t,n,r,i,o,s){this.type=t,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=Xt.none,this.match=o||(s&cp?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ue.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(t.type))?(this.match=r,i):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&cd)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=ue.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(ue.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!NN.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class Nv{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,o,s=Cv(null,n.preserveWhitespace,0)|(r?cp:0);i?o=new vh(i.type,i.attrs,Xt.none,!0,n.topMatch||i.type.contentMatch,s):r?o=new vh(null,null,Xt.none,!0,null,s):o=new vh(t.schema.topNodeType,null,Xt.none,!0,null,s),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,i=this.top,o=i.options&CT?"full":this.localPreserveWS||(i.options&cd)>0;if(o==="full"||i.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(o)o!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,`
`);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],a=t.previousSibling;(!s||a&&a.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let i=this.localPreserveWS,o=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let s=t.nodeName.toLowerCase(),a;FN.hasOwnProperty(s)&&this.parser.normalizeLists&&Y6(t);let l=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(a=this.parser.matchTag(t,this,r));e:if(l?l.ignore:L6.hasOwnProperty(s))this.findInside(t),this.ignoreFallback(t,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(t=l.skip);let c,u=this.needsBlock;if(NN.hasOwnProperty(s))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let d=l&&l.skip?n:this.readStyles(t,n);d&&this.addAll(t,d),c&&this.sync(o),this.needsBlock=u}else{let c=this.readStyles(t,n);c&&this.addElementByRule(t,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=i}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(`
`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],s=r.getPropertyValue(o);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(o,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(t,n,r,i){let o,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r)||this.leafFallback(t,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(t);else if(i)this.addElement(t,r,i);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(l=>this.insertNode(l,r));else{let l=t;typeof n.contentElement=="string"?l=t.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(t):n.contentElement&&(l=n.contentElement),this.findAround(t,l,!0),this.addAll(l,r),this.findAround(t,l,!1)}o&&this.sync(a)&&this.open--}addAll(t,n,r,i){let o=r||0;for(let s=r?t.childNodes[r]:t.firstChild,a=i==null?null:t.childNodes[i];s!=a;s=s.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(s,n);this.findAtPoint(t,o)}findPlace(t,n){let r,i;for(let o=this.open;o>=0;o--){let s=this.nodes[o],a=s.findWrapping(t);if(a&&(!r||r.length>a.length)&&(r=a,i=s,!a.length)||s.solid)break}if(!r)return null;this.sync(i);for(let o=0;o<r.length;o++)n=this.enterInner(r[o],null,n,!1);return n}insertNode(t,n){if(t.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let r=this.findPlace(t,n);if(r){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(t.type));let o=Xt.none;for(let s of r.concat(t.marks))(i.type?i.type.allowsMarkType(s.type):Ov(s.type,t.type))&&(o=s.addToSet(o));return i.content.push(t.mark(o)),!0}return!1}enter(t,n,r,i){let o=this.findPlace(t.create(n),r);return o&&(o=this.enterInner(t,n,r,!0,i)),o}enterInner(t,n,r,i=!1,o){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(t);let a=Cv(t,o,s.options);s.options&cp&&s.content.length==0&&(a|=cp);let l=Xt.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):Ov(c.type,t))?(l=c.addToSet(l),!1):!0),this.nodes.push(new vh(t,n,l,i,null,a)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=cd)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)t+=r[i].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==t&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&t.nodeType==1&&t.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(t,n,r){if(t!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&t.nodeType==1&&t.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==t&&(this.find[n].pos=this.currentPos-(t.nodeValue.length-this.find[n].offset))}matchesContext(t){if(t.indexOf("|")>-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function Y6(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&FN.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function H6(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Fv(e){let t={};for(let n in e)t[n]=e[n];return t}function Ov(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],s=a=>{o.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==t||o.indexOf(u)<0&&s(u))return!0}};if(s(i.contentMatch))return!0}}class Ul{constructor(t,n){this.nodes=t,this.marks=n}serializeFragment(t,n={},r){r||(r=G1(n).createDocumentFragment());let i=r,o=[];return t.forEach(s=>{if(o.length||s.marks.length){let a=0,l=0;for(;a<o.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<o.length;)i=o.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(o.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(t,n){let{dom:r,contentDOM:i}=up(G1(n),this.nodes[t.type.name](t),null,t.attrs);if(i){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,i)}return r}serializeNode(t,n={}){let r=this.serializeNodeInner(t,n);for(let i=t.marks.length-1;i>=0;i--){let o=this.serializeMark(t.marks[i],t.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(t,n,r={}){let i=this.marks[t.type.name];return i&&up(G1(r),i(t,n),null,t.attrs)}static renderSpec(t,n,r=null,i){return up(t,n,r,i)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Ul(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=xv(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return xv(t.marks)}}function xv(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function G1(e){return e.document||window.document}const kv=new WeakMap;function Z6(e){let t=kv.get(e);return t===void 0&&kv.set(e,t=P6(e)),t}function P6(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(e),t}function up(e,t,n,r){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let i=t[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=Z6(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let a,l=n?e.createElementNS(n,i):e.createElement(i),c=t[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let h=d.indexOf(" ");h>0?l.setAttributeNS(d.slice(0,h),d.slice(h+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<t.length;d++){let h=t[d];if(h===0){if(d<t.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:m}=up(e,h,n,r);if(l.appendChild(p),m){if(a)throw new RangeError("Multiple content holes");a=m}}}return{dom:l,contentDOM:a}}const ON=65535,xN=Math.pow(2,16);function $6(e,t){return e+t*xN}function Rv(e){return e&ON}function U6(e){return(e-(e&ON))/xN}const kN=1,RN=2,dp=4,MN=8;class NT{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&MN)>0}get deletedBefore(){return(this.delInfo&(kN|dp))>0}get deletedAfter(){return(this.delInfo&(RN|dp))>0}get deletedAcross(){return(this.delInfo&dp)>0}}class vi{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&vi.empty)return vi.empty}recover(t){let n=0,r=Rv(t);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+U6(t)}mapResult(t,n=1){return this._map(t,n,!1)}map(t,n=1){return this._map(t,n,!0)}_map(t,n,r){let i=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?i:0);if(l>t)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(t<=d){let h=c?t==l?-1:t==d?1:n:n,p=l+i+(h<0?0:u);if(r)return p;let m=t==(n<0?l:d)?null:$6(a/3,t-l),b=t==l?RN:t==d?kN:dp;return(n<0?t!=l:t!=d)&&(b|=MN),new NT(p,b,m)}i+=u-c}return r?t+i:new NT(t+i,0,null)}touches(t,n){let r=0,i=Rv(n),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>t)break;let c=this.ranges[a+o],u=l+c;if(t<=u&&a==i*3)return!0;r+=this.ranges[a+s]-c}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let s=this.ranges[i],a=s-(this.inverted?o:0),l=s+(this.inverted?0:o),c=this.ranges[i+n],u=this.ranges[i+r];t(a,a+c,l,l+u),o+=u-c}}invert(){return new vi(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(t){return t==0?vi.empty:new vi(t<0?[0,-t,0]:[0,0,t])}}vi.empty=new vi([]);class $p{constructor(t,n,r=0,i=t?t.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=t||[],this.ownData=!(t||n)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new $p(this._maps,this.mirror,t,n)}appendMap(t,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(t),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(t){for(let n=0,r=this._maps.length;n<t._maps.length;n++){let i=t.getMirror(n);this.appendMap(t._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(t){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==t)return this.mirror[n+(n%2?-1:1)]}}setMirror(t,n){this.mirror||(this.mirror=[]),this.mirror.push(t,n)}appendMappingInverted(t){for(let n=t.maps.length-1,r=this._maps.length+t._maps.length;n>=0;n--){let i=t.getMirror(n);this.appendMap(t._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let t=new $p;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;r<this.to;r++)t=this._maps[r].map(t,n);return t}mapResult(t,n=1){return this._map(t,n,!1)}_map(t,n,r){let i=0;for(let o=this.from;o<this.to;o++){let s=this._maps[o],a=s.mapResult(t,n);if(a.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,t=this._maps[l].recover(a.recover);continue}}i|=a.delInfo,t=a.pos}return r?t:new NT(t,i,null)}}const q1=Object.create(null);class Ir{getMap(){return vi.empty}merge(t){return null}static fromJSON(t,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=q1[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in q1)throw new RangeError("Duplicate use of step JSON ID "+t);return q1[t]=n,n.prototype.jsonID=t,n}}class Kn{constructor(t,n){this.doc=t,this.failed=n}static ok(t){return new Kn(t,null)}static fail(t){return new Kn(null,t)}static fromReplace(t,n,r,i){try{return Kn.ok(t.replace(n,r,i))}catch(o){if(o instanceof Yp)return Kn.fail(o.message);throw o}}}function Jb(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy(Jb(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return ue.fromArray(r)}class la extends Ir{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=t.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new we(Jb(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return Kn.fromReplace(t,this.from,this.to,o)}invert(){return new Fo(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new la(n.pos,r.pos,this.mark)}merge(t){return t instanceof la&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new la(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new la(n.from,n.to,t.markFromJSON(n.mark))}}Ir.jsonID("addMark",la);class Fo extends Ir{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new we(Jb(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),t),n.openStart,n.openEnd);return Kn.fromReplace(t,this.from,this.to,r)}invert(){return new la(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Fo(n.pos,r.pos,this.mark)}merge(t){return t instanceof Fo&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Fo(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Fo(n.from,n.to,t.markFromJSON(n.mark))}}Ir.jsonID("removeMark",Fo);class ca extends Ir{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Kn.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Kn.fromReplace(t,this.pos,this.pos+1,new we(ue.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new ca(this.pos,n.marks[i]);return new ca(this.pos,this.mark)}}return new jc(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new ca(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ca(n.pos,t.markFromJSON(n.mark))}}Ir.jsonID("addNodeMark",ca);class jc extends Ir{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Kn.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Kn.fromReplace(t,this.pos,this.pos+1,new we(ue.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new ca(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new jc(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new jc(n.pos,t.markFromJSON(n.mark))}}Ir.jsonID("removeNodeMark",jc);class hr extends Ir{constructor(t,n,r,i=!1){super(),this.from=t,this.to=n,this.slice=r,this.structure=i}apply(t){return this.structure&&FT(t,this.from,this.to)?Kn.fail("Structure replace would overwrite content"):Kn.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new vi([this.from,this.to-this.from,this.slice.size])}invert(t){return new hr(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new hr(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(t){if(!(t instanceof hr)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?we.empty:new we(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new hr(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?we.empty:new we(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new hr(t.from,this.to,n,this.structure)}else return null}toJSON(){let t={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new hr(n.from,n.to,we.fromJSON(t,n.slice),!!n.structure)}}Ir.jsonID("replace",hr);class gr extends Ir{constructor(t,n,r,i,o,s,a=!1){super(),this.from=t,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=a}apply(t){if(this.structure&&(FT(t,this.from,this.gapFrom)||FT(t,this.gapTo,this.to)))return Kn.fail("Structure gap-replace would overwrite content");let n=t.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Kn.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Kn.fromReplace(t,this.from,this.to,r):Kn.fail("Content does not fit in gap")}getMap(){return new vi([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new gr(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new gr(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new gr(n.from,n.to,n.gapFrom,n.gapTo,we.fromJSON(t,n.slice),n.insert,!!n.structure)}}Ir.jsonID("replaceAround",gr);function FT(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let s=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function z6(e,t,n,r){let i=[],o=[],s,a;e.doc.nodesBetween(t,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let h=Math.max(c,t),p=Math.min(c+l.nodeSize,n),m=r.addToSet(d);for(let b=0;b<d.length;b++)d[b].isInSet(m)||(s&&s.to==h&&s.mark.eq(d[b])?s.to=p:i.push(s=new Fo(h,p,d[b])));a&&a.to==h?a.to=p:o.push(a=new la(h,p,r))}}),i.forEach(l=>e.step(l)),o.forEach(l=>e.step(l))}function V6(e,t,n,r){let i=[],o=0;e.doc.nodesBetween(t,n,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(r instanceof mm){let c=s.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],h;for(let p=0;p<i.length;p++){let m=i[p];m.step==o-1&&d.eq(i[p].style)&&(h=m)}h?(h.to=c,h.step=o):i.push({style:d,from:Math.max(a,t),to:c,step:o})}}}),i.forEach(s=>e.step(new Fo(s.from,s.to,s.style)))}function Xb(e,t,n,r=n.contentMatch,i=!0){let o=e.doc.nodeAt(t),s=[],a=t+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=a+c.nodeSize,d=r.matchType(c.type);if(!d)s.push(new hr(a,u,we.empty));else{r=d;for(let h=0;h<c.marks.length;h++)n.allowsMarkType(c.marks[h].type)||e.step(new Fo(a,u,c.marks[h]));if(i&&c.isText&&n.whitespace!="pre"){let h,p=/\r?\n|\r/g,m;for(;h=p.exec(c.text);)m||(m=new we(ue.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new hr(a+h.index,a+h.index+h[0].length,m))}}a=u}if(!r.validEnd){let l=r.fillBefore(ue.empty,!0);e.replace(a,a,new we(l,0,0))}for(let l=s.length-1;l>=0;l--)e.step(s[l])}function j6(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function bu(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(i,o,t))return n;if(n==0||r.type.spec.isolating||!j6(r,i,o))break}return null}function G6(e,t,n){let{$from:r,$to:i,depth:o}=t,s=r.before(o+1),a=i.after(o+1),l=s,c=a,u=ue.empty,d=0;for(let m=o,b=!1;m>n;m--)b||r.index(m)>0?(b=!0,u=ue.from(r.node(m).copy(u)),d++):l--;let h=ue.empty,p=0;for(let m=o,b=!1;m>n;m--)b||i.after(m+1)<i.end(m)?(b=!0,h=ue.from(i.node(m).copy(h)),p++):c++;e.step(new gr(l,c,s,a,new we(u.append(h),d,p),u.size-d,!0))}function eA(e,t,n=null,r=e){let i=q6(e,t),o=i&&W6(r,t);return o?i.map(Mv).concat({type:t,attrs:n}).concat(o.map(Mv)):null}function Mv(e){return{type:e,attrs:null}}function q6(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return n.canReplaceWith(r,i,s)?o:null}function W6(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let l=r;a&&l<i;l++)a=a.matchType(n.child(l).type);return!a||!a.validEnd?null:s}function K6(e,t,n){let r=ue.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let a=n[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ue.from(n[s].type.create(n[s].attrs,r))}let i=t.start,o=t.end;e.step(new gr(i,o,i,o,new we(r,0,0),n.length,!0))}function Q6(e,t,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(s,a)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&J6(e.doc,e.mapping.slice(o).map(a),r)){let c=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?c=!1:!p&&m&&(c=!0)}c===!1&&IN(e,s,a,o),Xb(e,e.mapping.slice(o).map(a,1),r,void 0,c===null);let u=e.mapping.slice(o),d=u.map(a,1),h=u.map(a+s.nodeSize,1);return e.step(new gr(d,h,d+1,h-1,new we(ue.from(r.create(l,null,s.marks)),0,0),1,!0)),c===!0&&BN(e,s,a,o),!1}})}function BN(e,t,n,r){t.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let l=e.mapping.slice(r).map(n+1+o+s.index);e.replaceWith(l,l+1,t.type.schema.linebreakReplacement.create())}}})}function IN(e,t,n,r){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let s=e.mapping.slice(r).map(n+1+o);e.replaceWith(s,s+1,t.type.schema.text(`
`))}})}function J6(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function X6(e,t,n,r,i){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let s=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,s);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new gr(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new we(ue.from(s),0,0),1,!0))}function ys(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),h=i.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),m=r&&r[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let b=r&&r[u]||d;if(!d.canReplace(h+1,d.childCount)||!b.type.validContent(p))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function e5(e,t,n=1,r){let i=e.doc.resolve(t),o=ue.empty,s=ue.empty;for(let a=i.depth,l=i.depth-n,c=n-1;a>l;a--,c--){o=ue.from(i.node(a).copy(o));let u=r&&r[c];s=ue.from(u?u.type.create(u.attrs,s):i.node(a).copy(s))}e.step(new hr(t,t,new we(o.append(s),n,n),!0))}function Ba(e,t){let n=e.resolve(t),r=n.index();return LN(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function t5(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==r?e.type.schema.nodes.text:o.type;if(n=n.matchType(s),!n||!e.type.allowsMarks(o.marks))return!1}return n.validEnd}function LN(e,t){return!!(e&&t&&!e.isLeaf&&t5(e,t))}function gm(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let o,s,a=r.index(i);if(i==r.depth?(o=r.nodeBefore,s=r.nodeAfter):n>0?(o=r.node(i+1),a++,s=r.node(i).maybeChild(a)):(o=r.node(i).maybeChild(a-1),s=r.node(i+1)),o&&!o.isTextblock&&LN(o,s)&&r.node(i).canReplace(a,a+1))return t;if(i==0)break;t=n<0?r.before(i):r.after(i)}}function n5(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,o=e.doc.resolve(t-n),s=o.node().type;if(i&&s.inlineContent){let u=s.whitespace=="pre",d=!!s.contentMatch.matchType(i);u&&!d?r=!1:!u&&d&&(r=!0)}let a=e.steps.length;if(r===!1){let u=e.doc.resolve(t+n);IN(e,u.node(),u.before(),a)}s.inlineContent&&Xb(e,t+n-1,s,o.node().contentMatchAt(o.index()),r==null);let l=e.mapping.slice(a),c=l.map(t-n);if(e.step(new hr(c,l.map(t+n,-1),we.empty,!0)),r===!0){let u=e.doc.resolve(c);BN(e,u.node(),u.before(),e.steps.length)}return e}function r5(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function YN(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let s=r.depth;s>=0;s--){let a=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(a>0?1:0),c=r.node(s),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?r.pos:a<0?r.before(s+1):r.after(s+1)}return null}function Tm(e,t,n=t,r=we.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return HN(i,o,r)?new hr(t,n,r):new i5(i,o,r).fit()}function HN(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class i5{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=ue.empty;for(let i=0;i<=t.depth;i++){let o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(let i=t.depth;i>0;i--)this.placed=ue.from(t.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;let o=this.placed,s=r.depth,a=i.depth;for(;s&&a&&o.childCount==1;)o=o.firstChild.content,s--,a--;let l=new we(o,s,a);return t>-1?new gr(r.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new hr(r.pos,i.pos,l):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<t;r++){let o=n.firstChild;if(n.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){t=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=W1(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let s=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(ue.from(s),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:a,parent:o,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:a,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=W1(t,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new we(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,i=W1(t,n);if(i.childCount<=1&&n>0){let o=t.size-n<=n+i.size;this.unplaced=new we(b0(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new we(b0(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let b=0;b<o.length;b++)this.openFrontierNode(o[b]);let s=this.unplaced,a=r?r.content:s.content,l=s.openStart-t,c=0,u=[],{match:d,type:h}=this.frontier[n];if(i){for(let b=0;b<i.childCount;b++)u.push(i.child(b));d=d.matchFragment(i)}let p=a.size+t-(s.content.size-s.openEnd);for(;c<a.childCount;){let b=a.child(c),A=d.matchType(b.type);if(!A)break;c++,(c>1||l==0||b.content.size)&&(d=A,u.push(ZN(b.mark(h.allowedMarks(b.marks)),c==1?l:0,c==a.childCount?p:-1)))}let m=c==a.childCount;m||(p=-1),this.placed=A0(this.placed,n,ue.from(u)),this.frontier[n].match=d,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let b=0,A=a;b<p;b++){let v=A.lastChild;this.frontier.push({type:v.type,match:v.contentMatchAt(v.childCount)}),A=v.content}this.unplaced=m?t==0?we.empty:new we(b0(s.content,t-1,1),t-1,p<0?s.openEnd:t-1):new we(b0(s.content,t,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let t=this.frontier[this.depth],n;if(!t.type.isTextblock||!K1(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n<t.depth&&t.end(n+1)==t.pos+(t.depth-(n+1)),s=K1(t,n,i,r,o);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=K1(t,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:o?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=A0(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let i=t.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,t.index(r));this.openFrontierNode(i.type,i.attrs,o)}return t}openFrontierNode(t,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(t),this.placed=A0(this.placed,this.depth,ue.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(ue.empty,!0);t.childCount&&(this.placed=A0(this.placed,this.frontier.length,t))}}function b0(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(b0(e.firstChild.content,t-1,n)))}function A0(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(A0(e.lastChild.content,t-1,n)))}function W1(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function ZN(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,ZN(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(ue.empty,!0)))),e.copy(r)}function K1(e,t,n,r,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!o5(n,o.content,s)?a:null}function o5(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function s5(e){return e.spec.defining||e.spec.definingForContent}function a5(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),o=e.doc.resolve(n);if(HN(i,o,r))return e.step(new hr(t,n,r));let s=$N(i,e.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(i.depth+1);s.unshift(a);for(let h=i.depth,p=i.pos-1;h>0;h--,p--){let m=i.node(h).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(h)>-1?a=h:i.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(a),c=[],u=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(c.push(m),p==r.openStart)break;h=m.content}for(let h=u-1;h>=0;h--){let p=c[h],m=s5(p.type);if(m&&!p.sameMarkup(i.node(Math.abs(a)-1)))u=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+u+1)%(r.openStart+1),m=c[p];if(m)for(let b=0;b<s.length;b++){let A=s[(b+l)%s.length],v=!0;A<0&&(v=!1,A=-A);let D=i.node(A-1),C=i.index(A-1);if(D.canReplaceWith(C,C,m.type,m.marks))return e.replace(i.before(A),v?o.after(A):n,new we(PN(r.content,0,r.openStart,p),p,r.openEnd))}}let d=e.steps.length;for(let h=s.length-1;h>=0&&(e.replace(t,n,r),!(e.steps.length>d));h--){let p=s[h];p<0||(t=i.before(p),n=o.after(p))}}function PN(e,t,n,r,i){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(PN(o.content,t+1,n,r,o)))}if(t>r){let o=i.contentMatchAt(0),s=o.fillBefore(e).append(e);e=s.append(o.matchFragment(s).fillBefore(ue.empty,!0))}return e}function l5(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=r5(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new we(ue.from(r),0,0))}function c5(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=$N(r,i);for(let s=0;s<o.length;s++){let a=o[s],l=s==o.length-1;if(l&&a==0||r.node(a).type.contentMatch.validEnd)return e.delete(r.start(a),i.end(a));if(a>0&&(l||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return e.delete(r.before(a),i.after(a))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(t-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return e.delete(r.before(s),n);e.delete(t,n)}function $N(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let o=e.start(i);if(o<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}class Bc extends Ir{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Kn.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Kn.fromReplace(t,this.pos,this.pos+1,new we(ue.from(i),0,n.isLeaf?0:1))}getMap(){return vi.empty}invert(t){return new Bc(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new Bc(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Bc(n.pos,n.attr,n.value)}}Ir.jsonID("attr",Bc);class ud extends Ir{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let i in t.attrs)n[i]=t.attrs[i];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Kn.ok(r)}getMap(){return vi.empty}invert(t){return new ud(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ud(n.attr,n.value)}}Ir.jsonID("docAttr",ud);let mc=class extends Error{};mc=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},mc.prototype=Object.create(Error.prototype),mc.prototype.constructor=mc,mc.prototype.name="TransformError";class tA{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new $p}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new mc(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=we.empty){let i=Tm(this.doc,t,n,r);return i&&this.step(i),this}replaceWith(t,n,r){return this.replace(t,n,new we(ue.from(r),0,0))}delete(t,n){return this.replace(t,n,we.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return a5(this,t,n,r),this}replaceRangeWith(t,n,r){return l5(this,t,n,r),this}deleteRange(t,n){return c5(this,t,n),this}lift(t,n){return G6(this,t,n),this}join(t,n=1){return n5(this,t,n),this}wrap(t,n){return K6(this,t,n),this}setBlockType(t,n=t,r,i=null){return Q6(this,t,n,r,i),this}setNodeMarkup(t,n,r=null,i){return X6(this,t,n,r,i),this}setNodeAttribute(t,n,r){return this.step(new Bc(t,n,r)),this}setDocAttribute(t,n){return this.step(new ud(t,n)),this}addNodeMark(t,n){return this.step(new ca(t,n)),this}removeNodeMark(t,n){if(!(n instanceof Xt)){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n=n.isInSet(r.marks),!n)return this}return this.step(new jc(t,n)),this}split(t,n=1,r){return e5(this,t,n,r),this}addMark(t,n,r){return z6(this,t,n,r),this}removeMark(t,n,r){return V6(this,t,n,r),this}clearIncompatible(t,n,r){return Xb(this,t,n,r),this}}const Q1=Object.create(null);class ct{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new UN(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n<t.length;n++)if(t[n].$from.pos!=t[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(t,n=we.empty){let r=n.content.lastChild,i=null;for(let a=0;a<n.openEnd;a++)i=r,r=r.lastChild;let o=t.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=t.mapping.slice(o);t.replaceRange(u.map(l.pos),u.map(c.pos),a?we.empty:n),a==0&&Lv(t,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(t,n){let r=t.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:s,$to:a}=i[o],l=t.mapping.slice(r),c=l.map(s.pos),u=l.map(a.pos);o?t.deleteRange(c,u):(t.replaceRangeWith(c,u,n),Lv(t,r,n.isInline?-1:1))}}static findFrom(t,n,r=!1){let i=t.parent.inlineContent?new Ke(t):gc(t.node(0),t.parent,t.pos,t.index(),n,r);if(i)return i;for(let o=t.depth-1;o>=0;o--){let s=n<0?gc(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):gc(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,n,r);if(s)return s}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new ai(t.node(0))}static atStart(t){return gc(t,t,0,0,1)||new ai(t)}static atEnd(t){return gc(t,t,t.content.size,t.childCount,-1)||new ai(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Q1[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in Q1)throw new RangeError("Duplicate use of selection JSON ID "+t);return Q1[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Ke.between(this.$anchor,this.$head).getBookmark()}}ct.prototype.visible=!0;class UN{constructor(t,n){this.$from=t,this.$to=n}}let Bv=!1;function Iv(e){!Bv&&!e.parent.inlineContent&&(Bv=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Ke extends ct{constructor(t,n=t){Iv(t),Iv(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return ct.near(r);let i=t.resolve(n.map(this.anchor));return new Ke(i.parent.inlineContent?i:r,r)}replace(t,n=we.empty){if(super.replace(t,n),n==we.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Ke&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new bm(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ke(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let i=t.resolve(n);return new this(i,r==n?i:t.resolve(r))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=ct.findFrom(n,r,!0)||ct.findFrom(n,-r,!0);if(o)n=o.$head;else return ct.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(ct.findFrom(t,-r,!0)||ct.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new Ke(t,n)}}ct.jsonID("text",Ke);class bm{constructor(t,n){this.anchor=t,this.head=n}map(t){return new bm(t.map(this.anchor),t.map(this.head))}resolve(t){return Ke.between(t.resolve(this.anchor),t.resolve(this.head))}}class We extends ct{constructor(t){let n=t.nodeAfter,r=t.node(0).resolve(t.pos+n.nodeSize);super(t,r),this.node=n}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),o=t.resolve(i);return r?ct.near(o):new We(o)}content(){return new we(ue.from(this.node),0,0)}eq(t){return t instanceof We&&t.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new nA(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new We(t.resolve(n.anchor))}static create(t,n){return new We(t.resolve(n))}static isSelectable(t){return!t.isText&&t.type.spec.selectable!==!1}}We.prototype.visible=!1,ct.jsonID("node",We);class nA{constructor(t){this.anchor=t}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new bm(r,r):new nA(r)}resolve(t){let n=t.resolve(this.anchor),r=n.nodeAfter;return r&&We.isSelectable(r)?new We(n):ct.near(n)}}class ai extends ct{constructor(t){super(t.resolve(0),t.resolve(t.content.size))}replace(t,n=we.empty){if(n==we.empty){t.delete(0,t.doc.content.size);let r=ct.atStart(t.doc);r.eq(t.selection)||t.setSelection(r)}else super.replace(t,n)}toJSON(){return{type:"all"}}static fromJSON(t){return new ai(t)}map(t){return new ai(t)}eq(t){return t instanceof ai}getBookmark(){return u5}}ct.jsonID("all",ai);const u5={map(){return this},resolve(e){return new ai(e)}};function gc(e,t,n,r,i,o=!1){if(t.inlineContent)return Ke.create(e,n);for(let s=r-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let a=t.child(s);if(a.isAtom){if(!o&&We.isSelectable(a))return We.create(e,n-(i<0?a.nodeSize:0))}else{let l=gc(e,a,n+i,i<0?a.childCount:0,i,o);if(l)return l}n+=a.nodeSize*i}return null}function Lv(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof hr||i instanceof gr))return;let o=e.mapping.maps[r],s;o.forEach((a,l,c,u)=>{s==null&&(s=u)}),e.setSelection(ct.near(e.doc.resolve(s),n))}const Yv=1,Hv=2,Zv=4;let d5=class extends tA{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Yv)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&Yv)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Hv,this}ensureMarks(e){return Xt.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Hv)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&-3,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||Xt.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n==null&&(n=t),n=n??t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let o=this.doc.resolve(t);i=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(ct.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Zv,this}get scrolledIntoView(){return(this.updated&Zv)>0}};function Pv(e,t){return!t||!e?e:e.bind(t)}class y0{constructor(t,n,r){this.name=t,this.init=Pv(n.init,r),this.apply=Pv(n.apply,r)}}const h5=[new y0("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new y0("selection",{init(e,t){return e.selection||ct.atStart(t.doc)},apply(e){return e.selection}}),new y0("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new y0("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class J1{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=h5.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new y0(r.key,r.spec.state,r))})}}class Cc{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,t,this))return!1}return!0}applyTransaction(t){if(!this.filterTransaction(t))return{state:this,transactions:[]};let n=[t],r=this.applyInner(t),i=null;for(;;){let o=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=i?i[s].n:0,c=i?i[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",t),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<s?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),o=!0}i&&(i[s]={state:r,n:n.length})}}if(!o)return{state:r,transactions:n}}}applyInner(t){if(!t.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Cc(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];n[o.name]=o.apply(t,this[o.name],this,n)}return n}get tr(){return new d5(this)}static create(t){let n=new J1(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new Cc(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(t,r);return r}reconfigure(t){let n=new J1(this.schema,t.plugins),r=n.fields,i=new Cc(n);for(let o=0;o<r.length;o++){let s=r[o].name;i[s]=this.hasOwnProperty(s)?this[s]:r[o].init(t,i)}return i}toJSON(t){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=t[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let i=new J1(t.schema,t.plugins),o=new Cc(i);return i.fields.forEach(s=>{if(s.name=="doc")o.doc=As.fromJSON(t.schema,n.doc);else if(s.name=="selection")o.selection=ct.fromJSON(o.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let a in r){let l=r[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){o[s.name]=c.fromJSON.call(l,t,n[a],o);return}}o[s.name]=s.init(t,o)}}),o}}function zN(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r=="handleDOMEvents"&&(i=zN(i,t,{})),n[r]=i}return n}class kt{constructor(t){this.spec=t,this.props={},t.props&&zN(t.props,this,this.props),this.key=t.key?t.key.key:VN("plugin")}getState(t){return t[this.key]}}const X1=Object.create(null);function VN(e){return e in X1?e+"$"+ ++X1[e]:(X1[e]=0,e+"$")}class Lt{constructor(t="key"){this.key=VN(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const yr=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Gc=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let OT=null;const cs=function(e,t,n){let r=OT||(OT=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},p5=function(){OT=null},Rl=function(e,t,n,r){return n&&($v(e,t,n,r,-1)||$v(e,t,n,r,1))},f5=/^(img|br|input|textarea|hr)$/i;function $v(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Yi(e))){let o=e.parentNode;if(!o||o.nodeType!=1||Gd(e)||f5.test(e.nodeName)||e.contentEditable=="false")return!1;t=yr(e)+(i<0?0:1),e=o}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.contentEditable=="false")return!1;t=i<0?Yi(e):0}else return!1}}function Yi(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function m5(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Yi(e)}else if(e.parentNode&&!Gd(e))t=yr(e),e=e.parentNode;else return null}}function g5(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Gd(e))t=yr(e)+1,e=e.parentNode;else return null}}function T5(e,t,n){for(let r=t==0,i=t==Yi(e);r||i;){if(e==n)return!0;let o=yr(e);if(e=e.parentNode,!e)return!1;r=r&&o==0,i=i&&o==Yi(e)}}function Gd(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Am=function(e){return e.focusNode&&Rl(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function ul(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function b5(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function A5(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(Yi(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(Yi(r.startContainer),r.startOffset)}}}const Io=typeof navigator<"u"?navigator:null,Uv=typeof document<"u"?document:null,Ia=Io&&Io.userAgent||"",xT=/Edge\/(\d+)/.exec(Ia),jN=/MSIE \d/.exec(Ia),kT=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ia),li=!!(jN||kT||xT),ga=jN?document.documentMode:kT?+kT[1]:xT?+xT[1]:0,oo=!li&&/gecko\/(\d+)/i.test(Ia);oo&&+(/Firefox\/(\d+)/.exec(Ia)||[0,0])[1];const RT=!li&&/Chrome\/(\d+)/.exec(Ia),kr=!!RT,GN=RT?+RT[1]:0,qr=!li&&!!Io&&/Apple Computer/.test(Io.vendor),qc=qr&&(/Mobile\/\w+/.test(Ia)||!!Io&&Io.maxTouchPoints>2),Ii=qc||(Io?/Mac/.test(Io.platform):!1),y5=Io?/Win/.test(Io.platform):!1,ps=/Android \d/.test(Ia),qd=!!Uv&&"webkitFontSmoothing"in Uv.documentElement.style,E5=qd?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function v5(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Qo(e,t){return typeof e=="number"?e:e[t]}function D5(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function zv(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let s=n||e.dom;s;){if(s.nodeType!=1){s=Gc(s);continue}let a=s,l=a==o.body,c=l?v5(o):D5(a),u=0,d=0;if(t.top<c.top+Qo(r,"top")?d=-(c.top-t.top+Qo(i,"top")):t.bottom>c.bottom-Qo(r,"bottom")&&(d=t.bottom-t.top>c.bottom-c.top?t.top+Qo(i,"top")-c.top:t.bottom-c.bottom+Qo(i,"bottom")),t.left<c.left+Qo(r,"left")?u=-(c.left-t.left+Qo(i,"left")):t.right>c.right-Qo(r,"right")&&(u=t.right-c.right+Qo(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let p=a.scrollLeft,m=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let b=a.scrollLeft-p,A=a.scrollTop-m;t={left:t.left-b,top:t.top-A,right:t.right-b,bottom:t.bottom-A}}let h=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(h))break;s=h=="absolute"?s.offsetParent:Gc(s)}}function S5(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let o=(t.left+t.right)/2,s=n+1;s<Math.min(innerHeight,t.bottom);s+=5){let a=e.root.elementFromPoint(o,s);if(!a||a==e.dom||!e.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){r=a,i=l.top;break}}return{refDOM:r,refTop:i,stack:qN(e.dom)}}function qN(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=Gc(r));return t}function w5({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;WN(n,r==0?0:r-t)}function WN(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:o}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}let uc=null;function _5(e){if(e.setActive)return e.setActive();if(uc)return e.focus(uc);let t=qN(e);e.focus(uc==null?{get preventScroll(){return uc={preventScroll:!0},!0}}:void 0),uc||(uc=!1,WN(t,0))}function KN(e,t){let n,r=2e8,i,o=0,s=t.top,a=t.top,l,c;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=cs(u).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=a){s=Math.max(m.bottom,s),a=Math.min(m.top,a);let b=m.left>t.left?m.left-t.left:m.right<t.left?t.left-m.right:0;if(b<r){n=u,r=b,i=b&&n.nodeType==3?{left:m.right<t.left?m.right:m.left,top:t.top}:t,u.nodeType==1&&b&&(o=d+(t.left>=(m.left+m.right)/2?1:0));continue}}else m.top>t.top&&!l&&m.left<=t.left&&m.right>=t.left&&(l=u,c={left:Math.max(m.left,Math.min(m.right,t.left)),top:m.top});!n&&(t.left>=m.right&&t.top>=m.top||t.left>=m.left&&t.top>=m.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?C5(n,i):!n||r&&n.nodeType==1?{node:e,offset:o}:KN(n,i)}function C5(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i<n;i++){r.setEnd(e,i+1),r.setStart(e,i);let o=qs(r,1);if(o.top!=o.bottom&&rA(t,o))return{node:e,offset:i+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function rA(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function N5(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function F5(e,t,n){let{node:r,offset:i}=KN(t,n),o=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function O5(e,t,n,r){let i=-1;for(let o=t,s=!1;o!=e.dom;){let a=e.docView.nearestDesc(o,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&(!s&&l.left>r.left||l.top>r.top?i=a.posBefore:(!s&&l.right<r.left||l.bottom<r.top)&&(i=a.posAfter),s=!0),!a.contentDOM&&i<0&&!a.node.isText))return(a.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;o=a.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function QN(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let s=e.childNodes[o];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(rA(t,c))return QN(s,t,c)}}if((o=(o+1)%r)==i)break}return e}function x5(e,t){let n=e.dom.ownerDocument,r,i=0,o=A5(n,t.left,t.top);o&&({node:r,offset:i}=o);let s=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),a;if(!s||!e.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=e.dom.getBoundingClientRect();if(!rA(t,c)||(s=QN(e.dom,t,c),!s))return null}if(qr)for(let c=s;r&&c;c=Gc(c))c.draggable&&(r=void 0);if(s=N5(s,t),r){if(oo&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let u=r.childNodes[i],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=t.left&&d.bottom>t.top&&i++}let c;qd&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=O5(e,r,i,t))}a==null&&(a=F5(e,s,t));let l=e.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Vv(e){return e.top<e.bottom||e.left<e.right}function qs(e,t){let n=e.getClientRects();if(n.length){let r=n[t<0?0:n.length-1];if(Vv(r))return r}return Array.prototype.find.call(n,Vv)||e.getBoundingClientRect()}const k5=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function JN(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),s=qd||oo;if(r.nodeType==3)if(s&&(k5.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let a=qs(cs(r,i,i),n);if(oo&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let l=qs(cs(r,i-1,i-1),-1);if(l.top==a.top){let c=qs(cs(r,i,i+1),-1);if(c.top!=a.top)return Pu(c,c.left<l.left)}}return a}else{let a=i,l=i,c=n<0?1:-1;return n<0&&!i?(l++,c=-1):n>=0&&i==r.nodeValue.length?(a--,c=1):n<0?a--:l++,Pu(qs(cs(r,a,l),c),c<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==Yi(r))){let a=r.childNodes[i-1];if(a.nodeType==1)return eg(a.getBoundingClientRect(),!1)}if(o==null&&i<Yi(r)){let a=r.childNodes[i];if(a.nodeType==1)return eg(a.getBoundingClientRect(),!0)}return eg(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==Yi(r))){let a=r.childNodes[i-1],l=a.nodeType==3?cs(a,Yi(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(l)return Pu(qs(l,1),!1)}if(o==null&&i<Yi(r)){let a=r.childNodes[i];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let l=a?a.nodeType==3?cs(a,0,s?0:1):a.nodeType==1?a:null:null;if(l)return Pu(qs(l,-1),!0)}return Pu(qs(r.nodeType==3?cs(r):r,-n),n>=0)}function Pu(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function eg(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function XN(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function R5(e,t,n){let r=t.selection,i=n=="up"?r.$from:r.$to;return XN(e,t,()=>{let{node:o}=e.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let a=e.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let s=JN(e,i.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=cs(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const M5=/[\u0590-\u08ac]/;function B5(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,s=i==r.parent.content.size,a=e.domSelection();return a?!M5.test(r.parent.textContent)||!a.modify?n=="left"||n=="backward"?o:s:XN(e,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=e.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",n,"character");let p=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:m,focusOffset:b}=e.domSelectionRange(),A=m&&!p.contains(m.nodeType==1?m:m.parentNode)||l==m&&c==b;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return h!=null&&(a.caretBidiLevel=h),A}):r.pos==r.start()||r.pos==r.end()}let jv=null,Gv=null,qv=!1;function I5(e,t,n){return jv==t&&Gv==n?qv:(jv=t,Gv=n,qv=n=="up"||n=="down"?R5(e,t,n):B5(e,t,n))}const Pi=0,Wv=1,fl=2,Lo=3;class Wd{constructor(t,n,r,i){this.parent=t,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Pi,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;n<this.children.length;n++)t+=this.children[n].size;return t}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let t=0;t<this.children.length;t++)this.children[t].destroy()}posBeforeChild(t){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==t)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(t,n,r){if(this.contentDOM&&this.contentDOM.contains(t.nodeType==1?t:t.parentNode))if(r<0){let o,s;if(t==this.contentDOM)o=t.childNodes[n-1];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;o=t.previousSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(s)+s.size:this.posAtStart}else{let o,s;if(t==this.contentDOM)o=t.childNodes[n];else{for(;t.parentNode!=this.contentDOM;)t=t.parentNode;o=t.nextSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}let i;if(t==this.dom&&this.contentDOM)i=n>yr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,i=t;i;i=i.parentNode){let o=this.getDesc(i),s;if(o&&(!n||o.node))if(r&&(s=o.nodeDOM)&&!(s.nodeType==1?s.contains(t.nodeType==1?t:t.parentNode):s==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let i=t;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],o=r+i.size;if(r==t&&o!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let a=i.children[s];if(a.size){i=a;break}}return i}if(t<o)return i.descAt(t-r-i.border);r=o}}domFromPos(t,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:t+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.size;if(a>t||s instanceof tF){i=t-o;break}o=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof eF&&o.side>=0;r--);if(n<=0){let o,s=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,s=!1);return o&&n&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?yr(o.dom)+1:0}}else{let o,s=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,s=!1);return o&&s&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?yr(o.dom):this.contentDOM.childNodes.length}}}parseRange(t,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:t,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let s=r,a=0;;a++){let l=this.children[a],c=s+l.size;if(i==-1&&t<=c){let u=s+l.border;if(t>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,n,u);t=s;for(let d=a;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){i=yr(h.dom)+1;break}t-=h.size}i==-1&&(i=0)}if(i>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){o=yr(d.dom);break}n+=d.size}o==-1&&(o=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:t,to:n,fromOffset:i,toOffset:o}}emptyChildAt(t){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[t<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(t)}domAfterPos(t){let{node:n,offset:r}=this.domFromPos(t,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+t);return n.childNodes[r]}setSelection(t,n,r,i=!1){let o=Math.min(t,n),s=Math.max(t,n);for(let p=0,m=0;p<this.children.length;p++){let b=this.children[p],A=m+b.size;if(o>m&&s<A)return b.setSelection(t-m-b.border,n-m-b.border,r,i);m=A}let a=this.domFromPos(t,t?-1:1),l=n==t?a:this.domFromPos(n,n?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),d=!1;if((oo||qr)&&t==n){let{node:p,offset:m}=a;if(p.nodeType==3){if(d=!!(m&&p.nodeValue[m-1]==`
`),d&&m==p.nodeValue.length)for(let b=p,A;b;b=b.parentNode){if(A=b.nextSibling){A.nodeName=="BR"&&(a=l={node:A.parentNode,offset:yr(A)+1});break}let v=b.pmViewDesc;if(v&&v.node&&v.node.isBlock)break}}else{let b=p.childNodes[m-1];d=b&&(b.nodeName=="BR"||b.contentEditable=="false")}}if(oo&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let p=u.focusNode.childNodes[u.focusOffset];p&&p.contentEditable=="false"&&(i=!0)}if(!(i||d&&qr)&&Rl(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Rl(l.node,l.offset,u.focusNode,u.focusOffset))return;let h=!1;if((c.extend||t==n)&&!d){c.collapse(a.node,a.offset);try{t!=n&&c.extend(l.node,l.offset),h=!0}catch{}}if(!h){if(t>n){let m=a;a=l,l=m}let p=document.createRange();p.setEnd(l.node,l.offset),p.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(p)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],s=r+o.size;if(r==s?t<=s&&n>=r:t<s&&n>r){let a=r+o.border,l=s-o.border;if(t>=a&&n<=l){this.dirty=t==r||n==s?fl:Wv,t==a&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Lo:o.markDirty(t-a,n-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?fl:Lo}r=s}this.dirty=fl}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?fl:Wv;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(t){return!1}}class eF extends Wd{constructor(t,n,r,i){let o,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==Pi&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class L5 extends Wd{constructor(t,n,r,i){super(t,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Ml extends Wd{constructor(t,n,r,i,o){super(t,[],r,i),this.mark=n,this.spec=o}static create(t,n,r,i){let o=i.nodeViews[n.type.name],s=o&&o(n,i,r);return(!s||!s.dom)&&(s=Ul.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Ml(t,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Lo||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Lo&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Pi){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Pi}}slice(t,n,r){let i=Ml.create(this.parent,this.mark,!0,r),o=this.children,s=this.size;n<s&&(o=BT(o,n,s,r)),t>0&&(o=BT(o,0,t,r));for(let a=0;a<o.length;a++)o[a].parent=i;return i.children=o,i}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Ta extends Wd{constructor(t,n,r,i,o,s,a,l,c){super(t,[],o,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=a}static create(t,n,r,i,o,s){let a=o.nodeViews[n.type.name],l,c=a&&a(n,o,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Ul.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=iF(u,r,n),c?l=new Y5(t,n,r,i,u,d||null,h,c,o,s+1):n.isText?new ym(t,n,r,i,u,h,o):new Ta(t,n,r,i,u,d||null,h,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ue.empty)}return t}matchesNode(t,n,r){return this.dirty==Pi&&t.eq(this.node)&&Up(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,i=n,o=t.composing?this.localCompositionInfo(t,n):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new Z5(this,s&&s.node,t);U5(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,t):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Xt.none:this.node.child(u).marks,r,t),l.placeWidget(c,t,i)},(c,u,d,h)=>{l.syncToMarks(c.marks,r,t);let p;l.findNodeMatch(c,u,d,h)||a&&t.state.selection.from>i&&t.state.selection.to<i+c.nodeSize&&(p=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,d,p,t)||l.updateNextNode(c,u,d,t,h,i)||l.addNode(c,u,d,t,i),i+=c.nodeSize}),l.syncToMarks([],r,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==fl)&&(s&&this.protectLocalComposition(t,s),nF(this.contentDOM,this.children,t),qc&&z5(this.dom))}localCompositionInfo(t,n){let{from:r,to:i}=t.state.selection;if(!(t.state.selection instanceof Ke)||r<n||i>n+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let s=o.nodeValue,a=V5(this.node.content,s,r-n,i-n);return a<0?null:{node:o,pos:a,text:s}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new L5(this,o,n,i);t.input.compositionNodes.push(s),this.children=BT(this.children,r,r+i.length,t,s)}update(t,n,r,i){return this.dirty==Lo||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,i),!0)}updateInner(t,n,r,i){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Pi}updateOuterDeco(t){if(Up(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=rF(this.dom,this.nodeDOM,MT(this.outerDeco,this.node,n),MT(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Kv(e,t,n,r,i){iF(r,t,e);let o=new Ta(void 0,e,t,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class ym extends Ta{constructor(t,n,r,i,o,s,a){super(t,n,r,i,o,null,s,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,i){return this.dirty==Lo||this.dirty!=Pi&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Pi||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=t,this.dirty=Pi,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let i=this.node.cut(t,n),o=document.createTextNode(i.text);return new ym(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Lo)}get domAtom(){return!1}isText(t){return this.node.text==t}}class tF extends Wd{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Pi&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Y5 extends Ta{constructor(t,n,r,i,o,s,a,l,c,u){super(t,n,r,i,o,s,a,c,u),this.spec=l}update(t,n,r,i){if(this.dirty==Lo)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,i),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,i){this.spec.setSelection?this.spec.setSelection(t,n,r.root):super.setSelection(t,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function nF(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o<t.length;o++){let s=t[o],a=s.dom;if(a.parentNode==e){for(;a!=r;)r=Qv(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(a,r);if(s instanceof Ml){let l=r?r.previousSibling:e.lastChild;nF(s.contentDOM,s.children,n),r=l?l.nextSibling:e.firstChild}}for(;r;)r=Qv(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}const k0=function(e){e&&(this.nodeName=e)};k0.prototype=Object.create(null);const ml=[new k0];function MT(e,t,n){if(e.length==0)return ml;let r=n?ml[0]:new k0,i=[r];for(let o=0;o<e.length;o++){let s=e[o].type.attrs;if(s){s.nodeName&&i.push(r=new k0(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&i.length==1&&i.push(r=new k0(t.isInline?"span":"div")),a=="class"?r.class=(r.class?r.class+" ":"")+l:a=="style"?r.style=(r.style?r.style+";":"")+l:a!="nodeName"&&(r[a]=l))}}}return i}function rF(e,t,n,r){if(n==ml&&r==ml)return t;let i=t;for(let o=0;o<r.length;o++){let s=r[o],a=n[o];if(o){let l;a&&a.nodeName==s.nodeName&&i!=e&&(l=i.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(i),a=ml[0]),i=l}H5(i,a||ml[0],s)}return i}function H5(e,t,n){for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&e.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&e.classList.add(i[o]);e.classList.length==0&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(t.style);)e.style.removeProperty(i[1])}n.style&&(e.style.cssText+=n.style)}}function iF(e,t,n){return rF(e,e,ml,MT(t,n,e.nodeType!=1))}function Up(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Qv(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class Z5{constructor(t,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=t,this.preMatch=P5(t.node.content,t)}destroyBetween(t,n){if(t!=n){for(let r=t;r<n;r++)this.top.children[r].destroy();this.top.children.splice(t,n-t),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(t,n,r){let i=0,o=this.stack.length>>1,s=Math.min(o,t.length);for(;i<s&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(t[i])&&t[i].type.spec.spanning!==!1;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=Pi,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<t.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(t[o])&&!this.isLocked(c.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Ml.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,i){let o=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(t,n,r))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(t,n,r)&&!this.preMatch.matched.has(c)){o=a;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(t,n,r,i,o){let s=this.top.children[i];return s.dirty==Lo&&s.dom==s.contentDOM&&(s.dirty=fl),s.update(t,n,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(t){for(;;){let n=t.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=t.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}t=n}}updateNextNode(t,n,r,i,o,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof Ta){let c=this.preMatch.matched.get(l);if(c!=null&&c!=o)return!1;let u=l.dom,d,h=this.isLocked(u)&&!(t.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==t.text&&l.dirty!=Lo&&Up(n,l.outerDeco));if(!h&&l.update(t,n,r,i))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(d=this.recreateWrapper(l,t,n,r,i,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=fl,d.updateChildren(i,s+1),d.dirty=Pi),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(t,n,r,i,o,s){if(t.dirty||n.isAtom||!t.children.length||!t.node.content.eq(n.content)||!Up(r,t.outerDeco)||!i.eq(t.innerDeco))return null;let a=Ta.create(this.top,n,r,i,o,s);if(a.contentDOM){a.children=t.children,t.children=[];for(let l of a.children)l.parent=a}return t.destroy(),a}addNode(t,n,r,i,o){let s=Ta.create(this.top,t,n,r,i,o);s.contentDOM&&s.updateChildren(i,o+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(t,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(t)&&(t==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new eF(this.top,t,n,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let t=this.top.children[this.index-1],n=this.top;for(;t instanceof Ml;)n=t,t=n.children[n.children.length-1];(!t||!(t instanceof ym)||/\n$/.test(t.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(t.node.text))&&((qr||kr)&&t&&t.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(t,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(t))this.index++;else{let r=document.createElement(t);t=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),t=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new tF(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(t){return this.lock&&(t==this.lock||t.nodeType==1&&t.contains(this.lock.parentNode))}}function P5(e,t){let n=t,r=n.children.length,i=e.childCount,o=new Map,s=[];e:for(;i>0;){let a;for(;;)if(r){let c=n.children[r-1];if(c instanceof Ml)n=c,r=c.children.length;else{a=c,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=e.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}function $5(e,t){return e.type.side-t.type.side}function U5(e,t,n,r){let i=t.locals(e),o=0;if(i.length==0){for(let c=0;c<e.childCount;c++){let u=e.child(c);r(u,i,t.forChild(o,u),c),o+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d;for(;s<i.length&&i[s].to==o;){let A=i[s++];A.widget&&(u?(d||(d=[u])).push(A):u=A)}if(u)if(d){d.sort($5);for(let A=0;A<d.length;A++)n(d[A],c,!!l)}else n(u,c,!!l);let h,p;if(l)p=-1,h=l,l=null;else if(c<e.childCount)p=c,h=e.child(c++);else break;for(let A=0;A<a.length;A++)a[A].to<=o&&a.splice(A--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let m=o+h.nodeSize;if(h.isText){let A=m;s<i.length&&i[s].from<A&&(A=i[s].from);for(let v=0;v<a.length;v++)a[v].to<A&&(A=a[v].to);A<m&&(l=h.cut(A-o),h=h.cut(0,A-o),m=A,p=-1)}else for(;s<i.length&&i[s].to<m;)s++;let b=h.isInline&&!h.isLeaf?a.filter(A=>!A.inline):a.slice();r(h,b,t.forChild(o,h),p),o=m}}function z5(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function V5(e,t,n,r){for(let i=0,o=0;i<e.childCount&&o<=r;){let s=e.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<e.childCount;){let c=e.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=n){if(o>=r&&l.slice(r-t.length-a,r-a)==t)return r-t.length;let c=a<r?l.lastIndexOf(t,r-a-1):-1;if(c>=0&&c+t.length+a>=n)return a+c;if(n==r&&l.length>=r+t.length-a&&l.slice(r-a,r-a+t.length)==t)return r}}return-1}function BT(e,t,n,r,i){let o=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=n||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function iA(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),o=i&&i.size==0,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=r.resolve(s),l,c;if(Am(n)){for(l=s;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&We.isSelectable(d)&&i.parent&&!(d.isInline&&T5(n.focusNode,n.focusOffset,i.dom))){let h=i.posBefore;c=new We(s==h?a:r.resolve(h))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,h=s;for(let p=0;p<n.rangeCount;p++){let m=n.getRangeAt(p);d=Math.min(d,e.docView.posFromDOM(m.startContainer,m.startOffset,1)),h=Math.max(h,e.docView.posFromDOM(m.endContainer,m.endOffset,-1))}if(d<0)return null;[l,s]=h==e.state.selection.anchor?[h,d]:[d,h],a=r.resolve(s)}else l=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let d=t=="pointer"||e.state.selection.head<a.pos&&!o?1:-1;c=oA(e,u,a,d)}return c}function oF(e){return e.editable?e.hasFocus():aF(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Es(e,t=!1){let n=e.state.selection;if(sF(e,n),!!oF(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&kr){let r=e.domSelectionRange(),i=e.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&Rl(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)G5(e);else{let{anchor:r,head:i}=n,o,s;Jv&&!(n instanceof Ke)&&(n.$from.parent.inlineContent||(o=Xv(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Xv(e,n.to))),e.docView.setSelection(r,i,e,t),Jv&&(o&&eD(o),s&&eD(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&j5(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Jv=qr||kr&&GN<63;function Xv(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(qr&&i&&i.contentEditable=="false")return tg(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return tg(i);if(o)return tg(o)}}function tg(e){return e.contentEditable="true",qr&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function eD(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function j5(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!oF(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function G5(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,yr(r)+1):n.setStart(r,0),n.collapse(!0),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&li&&ga<=11&&(r.disabled=!0,r.disabled=!1)}function sF(e,t){if(t instanceof We){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(tD(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else tD(e)}function tD(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function oA(e,t,n,r){return e.someProp("createSelectionBetween",i=>i(e,t,n))||Ke.between(t,n,r)}function nD(e){return e.editable&&!e.hasFocus()?!1:aF(e)}function aF(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function q5(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Rl(t.node,t.offset,n.anchorNode,n.anchorOffset)}function IT(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return o&&ct.findFrom(o,t)}function Qs(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function rD(e,t,n){let r=e.state.selection;if(r instanceof Ke)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let s=e.state.doc.resolve(i.pos+o.nodeSize*(t<0?-1:1));return Qs(e,new Ke(r.$anchor,s))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let i=IT(e.state,t);return i&&i instanceof We?Qs(e,i):!1}else if(!(Ii&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:t<0?i.nodeBefore:i.nodeAfter,s;if(!o||o.isText)return!1;let a=t<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(s=e.docView.descAt(a))&&!s.contentDOM?We.isSelectable(o)?Qs(e,new We(t<0?e.state.doc.resolve(i.pos-o.nodeSize):i)):qd?Qs(e,new Ke(e.state.doc.resolve(t<0?a:a+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof We&&r.node.isInline)return Qs(e,new Ke(t>0?r.$to:r.$from));{let i=IT(e.state,t);return i?Qs(e,i):!1}}}function zp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function R0(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function dc(e,t){return t<0?W5(e):K5(e)}function W5(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=!1;for(oo&&n.nodeType==1&&r<zp(n)&&R0(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let a=n.childNodes[r-1];if(R0(a,-1))i=n,o=--r;else if(a.nodeType==3)n=a,r=n.nodeValue.length;else break}}else{if(lF(n))break;{let a=n.previousSibling;for(;a&&R0(a,-1);)i=n.parentNode,o=yr(a),a=a.previousSibling;if(a)n=a,r=zp(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?LT(e,n,r):i&&LT(e,i,o)}function K5(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=zp(n),o,s;for(;;)if(r<i){if(n.nodeType!=1)break;let a=n.childNodes[r];if(R0(a,1))o=n,s=++r;else break}else{if(lF(n))break;{let a=n.nextSibling;for(;a&&R0(a,1);)o=a.parentNode,s=yr(a)+1,a=a.nextSibling;if(a)n=a,r=0,i=zp(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}}o&&LT(e,o,s)}function lF(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Q5(e,t){for(;e&&t==e.childNodes.length&&!Gd(e);)t=yr(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=0}}function J5(e,t){for(;e&&!t&&!Gd(e);)t=yr(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,t=e.childNodes.length}}function LT(e,t,n){if(t.nodeType!=3){let o,s;(s=Q5(t,n))?(t=s,n=0):(o=J5(t,n))&&(t=o,n=o.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Am(r)){let o=document.createRange();o.setEnd(t,n),o.setStart(t,n),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&Es(e)},50)}function iD(e,t){let n=e.state.doc.resolve(t);if(!(kr||y5)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let i=e.coordsAtPos(t-1),o=(i.top+i.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(t<n.end()){let i=e.coordsAtPos(t+1),o=(i.top+i.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function oD(e,t,n){let r=e.state.selection;if(r instanceof Ke&&!r.empty||n.indexOf("s")>-1||Ii&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let s=IT(e.state,t);if(s&&s instanceof We)return Qs(e,s)}if(!i.parent.inlineContent){let s=t<0?i:o,a=r instanceof ai?ct.near(s,t):ct.findFrom(s,t);return a?Qs(e,a):!1}return!1}function sD(e,t){if(!(e.state.selection instanceof Ke))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let s=e.state.tr;return t<0?s.delete(n.pos-o.nodeSize,n.pos):s.delete(n.pos,n.pos+o.nodeSize),e.dispatch(s),!0}return!1}function aD(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function X5(e){if(!qr||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;aD(e,r,"true"),setTimeout(()=>aD(e,r,"false"),20)}return!1}function e9(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function t9(e,t){let n=t.keyCode,r=e9(t);if(n==8||Ii&&n==72&&r=="c")return sD(e,-1)||dc(e,-1);if(n==46&&!t.shiftKey||Ii&&n==68&&r=="c")return sD(e,1)||dc(e,1);if(n==13||n==27)return!0;if(n==37||Ii&&n==66&&r=="c"){let i=n==37?iD(e,e.state.selection.from)=="ltr"?-1:1:-1;return rD(e,i,r)||dc(e,i)}else if(n==39||Ii&&n==70&&r=="c"){let i=n==39?iD(e,e.state.selection.from)=="ltr"?1:-1:1;return rD(e,i,r)||dc(e,i)}else{if(n==38||Ii&&n==80&&r=="c")return oD(e,-1,r)||dc(e,-1);if(n==40||Ii&&n==78&&r=="c")return X5(e)||oD(e,1,r)||dc(e,1);if(r==(Ii?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function sA(e,t){e.someProp("transformCopied",p=>{t=p(t,e)});let n=[],{content:r,openStart:i,openEnd:o}=t;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=e.someProp("clipboardSerializer")||Ul.fromSchema(e.state.schema),a=fF(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=pF[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=a.createElement(u[p]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",p=>p(t,e))||t.content.textBetween(0,t.content.size,`

`);return{dom:l,text:h,slice:t}}function cF(e,t,n,r,i){let o=i.parent.type.spec.code,s,a;if(!n&&!t)return null;let l=t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",h=>{t=h(t,o||r,e)}),o)return t?new we(ue.from(e.state.schema.text(t.replace(/\r\n?/g,`
`))),0,0):we.empty;let d=e.someProp("clipboardTextParser",h=>h(t,i,r,e));if(d)a=d;else{let h=i.marks(),{schema:p}=e.state,m=Ul.fromSchema(p);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(b=>{let A=s.appendChild(document.createElement("p"));b&&A.appendChild(m.serializeNode(p.text(b,h)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),s=o9(n),qd&&s9(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(a||(a=(e.someProp("clipboardParser")||e.someProp("domParser")||Mc.fromSchema(e.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!n9.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)a=a9(lD(a,+u[1],+u[2]),u[4]);else if(a=we.maxOpen(r9(a.content,i),!0),a.openStart||a.openEnd){let d=0,h=0;for(let p=a.content.firstChild;d<a.openStart&&!p.type.spec.isolating;d++,p=p.firstChild);for(let p=a.content.lastChild;h<a.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);a=lD(a,d,h)}return e.someProp("transformPasted",d=>{a=d(a,e)}),a}const n9=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function r9(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,o=[];if(e.forEach(s=>{if(!o)return;let a=r.findWrapping(s.type),l;if(!a)return o=null;if(l=o.length&&i.length&&dF(a,i,s,o[o.length-1],0))o[o.length-1]=l;else{o.length&&(o[o.length-1]=hF(o[o.length-1],i.length));let c=uF(s,a);o.push(c),r=r.matchType(c.type),i=a}}),o)return ue.from(o)}return e}function uF(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ue.from(e));return e}function dF(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let o=dF(e,t,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(ue.from(uF(n,e,i+1))))}}function hF(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,hF(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(ue.empty,!0);return e.copy(n.append(r))}function YT(e,t,n,r,i,o){let s=t<0?e.firstChild:e.lastChild,a=s.content;return e.childCount>1&&(o=0),i<r-1&&(a=YT(a,t,n,r,i+1,o)),i>=n&&(a=t<0?s.contentMatchAt(0).fillBefore(a,o<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(ue.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(a))}function lD(e,t,n){return t<e.openStart&&(e=new we(YT(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new we(YT(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const pF={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let cD=null;function fF(){return cD||(cD=document.implementation.createHTMLDocument("title"))}let ng=null;function i9(e){let t=window.trustedTypes;return t?(ng||(ng=t.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),ng.createHTML(e)):e}function o9(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=fF().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&pF[r[1].toLowerCase()])&&(e=i.map(o=>"<"+o+">").join("")+e+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=i9(e),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function s9(e){let t=e.querySelectorAll(kr?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function a9(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:o,openEnd:s}=e;for(let a=r.length-2;a>=0;a-=2){let l=n.nodes[r[a]];if(!l||l.hasRequiredAttrs())break;i=ue.from(l.create(r[a+1],i)),o++,s++}return new we(i,o,s)}const Ur={},Vr={},l9={touchstart:!0,touchmove:!0};class c9{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function u9(e){for(let t in Ur){let n=Ur[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{h9(e,r)&&!aA(e,r)&&(e.editable||!(r.type in Vr))&&n(e,r)},l9[t]?{passive:!0}:void 0)}qr&&e.dom.addEventListener("input",()=>null),HT(e)}function ua(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function d9(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function HT(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>aA(e,r))})}function aA(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function h9(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function p9(e,t){!aA(e,t)&&Ur[t.type]&&(e.editable||!(t.type in Vr))&&Ur[t.type](e,t)}Vr.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!uD(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(ps&&kr&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),qc&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",i=>i(e,ul(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||t9(e,n)?n.preventDefault():ua(e,"key")},Vr.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},Vr.keypress=(e,t)=>{let n=t;if(uD(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Ii&&n.metaKey)return;if(e.someProp("handleKeyPress",i=>i(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Ke)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!e.someProp("handleTextInput",o=>o(e,r.$from.pos,r.$to.pos,i))&&e.dispatch(e.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function Vp(e){return{left:e.clientX,top:e.clientY}}function f9(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function lA(e,t,n,r,i){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let s=o.depth+1;s>0;s--)if(e.someProp(t,a=>s>o.depth?a(e,n,o.nodeAfter,o.before(s),i,!0):a(e,n,o.node(s),o.before(s),i,!1)))return!0;return!1}function Ic(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function m9(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&We.isSelectable(r)?(Ic(e,new We(n)),!0):!1}function g9(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof We&&(r=n.node);let o=e.state.doc.resolve(t);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(We.isSelectable(a)){r&&n.$from.depth>0&&s>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(s);break}}return i!=null?(Ic(e,We.create(e.state.doc,i)),!0):!1}function T9(e,t,n,r,i){return lA(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(i?g9(e,n):m9(e,n))}function b9(e,t,n,r){return lA(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",i=>i(e,t,r))}function A9(e,t,n,r){return lA(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",i=>i(e,t,r))||y9(e,n,r)}function y9(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Ic(e,Ke.create(r,0,r.content.size)),!0):!1;let i=r.resolve(t);for(let o=i.depth+1;o>0;o--){let s=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(s.inlineContent)Ic(e,Ke.create(r,a+1,a+1+s.content.size));else if(We.isSelectable(s))Ic(e,We.create(r,a));else continue;return!0}}function ZT(e){return jp(e)}const mF=Ii?"metaKey":"ctrlKey";Ur.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=ZT(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&f9(n,e.input.lastClick)&&!n[mF]&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let s=e.posAtCoords(Vp(n));s&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new E9(e,s,n,!!r)):(o=="doubleClick"?b9:A9)(e,s.pos,s.inside,n)?n.preventDefault():ua(e,"pointer"))};class E9{constructor(t,n,r,i){this.view=t,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[mF],this.allowDefault=r.shiftKey;let o,s;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),s=n.inside;else{let u=t.state.doc.resolve(n.pos);o=u.parent,s=u.depth?u.before():0}const a=i?null:r.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof We&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&oo&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),ua(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Es(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Vp(t))),this.updateAllowDefault(t),this.allowDefault||!n?ua(this.view,"pointer"):T9(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||qr&&this.mightDrag&&!this.mightDrag.node.isAtom||kr&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Ic(this.view,ct.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):ua(this.view,"pointer")}move(t){this.updateAllowDefault(t),ua(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Ur.touchstart=e=>{e.input.lastTouch=Date.now(),ZT(e),ua(e,"pointer")},Ur.touchmove=e=>{e.input.lastTouch=Date.now(),ua(e,"pointer")},Ur.contextmenu=e=>ZT(e);function uD(e,t){return e.composing?!0:qr&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const v9=ps?5e3:-1;Vr.compositionstart=Vr.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Ke&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),jp(e,!0),e.markCursor=null;else if(jp(e,!t.selection.empty),oo&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let s=o<0?i.lastChild:i.childNodes[o-1];if(!s)break;if(s.nodeType==3){let a=e.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else i=s,o=-1}}e.input.composing=!0}dD(e,v9)},Vr.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,dD(e,20))};function dD(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>jp(e),t))}function gF(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=S9());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function D9(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=m5(t.focusNode,t.focusOffset),r=g5(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function S9(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function jp(e,t=!1){if(!(ps&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),gF(e),t||e.docView&&e.docView.dirty){let n=iA(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!e.state.selection.empty?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function w9(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const M0=li&&ga<15||qc&&E5<604;Ur.copy=Vr.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type=="cut";if(r.empty)return;let o=M0?null:n.clipboardData,s=r.content(),{dom:a,text:l}=sA(e,s);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):w9(e,a),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function _9(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function C9(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?dd(e,r.value,null,i,t):dd(e,r.textContent,r.innerHTML,i,t)},50)}function dd(e,t,n,r,i){let o=cF(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,i,o||we.empty)))return!0;if(!o)return!1;let s=_9(o),a=s?e.state.tr.replaceSelectionWith(s,r):e.state.tr.replaceSelection(o);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function TF(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Vr.paste=(e,t)=>{let n=t;if(e.composing&&!ps)return;let r=M0?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&dd(e,TF(r),r.getData("text/html"),i,n)?n.preventDefault():C9(e,n)};class bF{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const hD=Ii?"altKey":"ctrlKey";Ur.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(Vp(n)),s;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof We?i.to-1:i.to))){if(r&&r.mightDrag)s=We.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(s=We.create(e.state.doc,d.posBefore))}}let a=(s||e.state.selection).content(),{dom:l,text:c,slice:u}=sA(e,a);(!n.dataTransfer.files.length||!kr||GN>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(M0?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",M0||n.dataTransfer.setData("text/plain",c),e.dragging=new bF(u,!n[hD],s)},Ur.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Vr.dragover=Vr.dragenter=(e,t)=>t.preventDefault(),Vr.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let i=e.posAtCoords(Vp(n));if(!i)return;let o=e.state.doc.resolve(i.pos),s=r&&r.slice;s?e.someProp("transformPasted",m=>{s=m(s,e)}):s=cF(e,TF(n.dataTransfer),M0?null:n.dataTransfer.getData("text/html"),!1,o);let a=!!(r&&!n[hD]);if(e.someProp("handleDrop",m=>m(e,n,s||we.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?YN(e.state.doc,o.pos,s):o.pos;l==null&&(l=o.pos);let c=e.state.tr;if(a){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(d&&We.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new We(p));else{let m=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((b,A,v,D)=>m=D),c.setSelection(oA(e,p,c.doc.resolve(m)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},Ur.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Es(e)},20))},Ur.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Ur.beforeinput=(e,t)=>{if(kr&&ps&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",i=>i(e,ul(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in Vr)Ur[e]=Vr[e];function hd(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Gp{constructor(t,n){this.toDOM=t,this.spec=n||El,this.side=this.spec.side||0}map(t,n,r,i){let{pos:o,deleted:s}=t.mapResult(n.from+i,this.side<0?-1:1);return s?null:new xn(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Gp&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&hd(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class ba{constructor(t,n){this.attrs=t,this.spec=n||El}map(t,n,r,i){let o=t.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=t.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=s?null:new xn(o,s,this)}valid(t,n){return n.from<n.to}eq(t){return this==t||t instanceof ba&&hd(this.attrs,t.attrs)&&hd(this.spec,t.spec)}static is(t){return t.type instanceof ba}destroy(){}}class cA{constructor(t,n){this.attrs=t,this.spec=n||El}map(t,n,r,i){let o=t.mapResult(n.from+i,1);if(o.deleted)return null;let s=t.mapResult(n.to+i,-1);return s.deleted||s.pos<=o.pos?null:new xn(o.pos-r,s.pos-r,this)}valid(t,n){let{index:r,offset:i}=t.content.findIndex(n.from),o;return i==n.from&&!(o=t.child(r)).isText&&i+o.nodeSize==n.to}eq(t){return this==t||t instanceof cA&&hd(this.attrs,t.attrs)&&hd(this.spec,t.spec)}destroy(){}}class xn{constructor(t,n,r){this.from=t,this.to=n,this.type=r}copy(t,n){return new xn(t,n,this.type)}eq(t,n=0){return this.type.eq(t.type)&&this.from+n==t.from&&this.to+n==t.to}map(t,n,r){return this.type.map(t,this,n,r)}static widget(t,n,r){return new xn(t,t,new Gp(n,r))}static inline(t,n,r,i){return new xn(t,n,new ba(r,i))}static node(t,n,r,i){return new xn(t,n,new cA(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof ba}get widget(){return this.type instanceof Gp}}const Tc=[],El={};class Rt{constructor(t,n){this.local=t.length?t:Tc,this.children=n.length?n:Tc}static create(t,n){return n.length?qp(n,t,0,El):wr}find(t,n,r){let i=[];return this.findInner(t??0,n??1e9,i,0,r),i}findInner(t,n,r,i,o){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=t&&(!o||o(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>t){let a=this.children[s]+1;this.children[s+2].findInner(t-a,n-a,r,i+a,o)}}map(t,n,r){return this==wr||t.maps.length==0?this:this.mapInner(t,n,0,0,r||El)}mapInner(t,n,r,i,o){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(t,r,i);l&&l.type.valid(n,l)?(s||(s=[])).push(l):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?N9(this.children,s||[],t,n,r,i,o):s?new Rt(s.sort(vl),Tc):wr}add(t,n){return n.length?this==wr?Rt.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,o=0;t.forEach((a,l)=>{let c=l+r,u;if(u=yF(n,a,c)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(a,u,c+1):i.splice(o,0,l,l+a.nodeSize,qp(u,a,c+1,El)),o+=3}});let s=AF(o?EF(n):n,-r);for(let a=0;a<s.length;a++)s[a].type.valid(t,s[a])||s.splice(a--,1);return new Rt(s.length?this.local.concat(s).sort(vl):this.local,i||this.children)}remove(t){return t.length==0||this==wr?this:this.removeInner(t,0)}removeInner(t,n){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let s,a=r[o]+n,l=r[o+1]+n;for(let u=0,d;u<t.length;u++)(d=t[u])&&d.from>a&&d.to<l&&(t[u]=null,(s||(s=[])).push(d));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[o+2].removeInner(s,a+1);c!=wr?r[o+2]=c:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,s;o<t.length;o++)if(s=t[o])for(let a=0;a<i.length;a++)i[a].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(a--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new Rt(i,r):wr}forChild(t,n){if(this==wr)return this;if(n.isLeaf)return Rt.empty;let r,i;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=t){this.children[a]==t&&(r=this.children[a+2]);break}let o=t+1,s=o+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof ba){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;c<u&&(i||(i=[])).push(l.copy(c,u))}}if(i){let a=new Rt(i.sort(vl),Tc);return r?new ea([a,r]):a}return r||wr}eq(t){if(this==t)return!0;if(!(t instanceof Rt)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(t.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=t.children[n]||this.children[n+1]!=t.children[n+1]||!this.children[n+2].eq(t.children[n+2]))return!1;return!0}locals(t){return uA(this.localsInner(t))}localsInner(t){if(this==wr)return Tc;if(t.inlineContent||!this.local.some(ba.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof ba||n.push(this.local[r]);return n}forEachSet(t){t(this)}}Rt.empty=new Rt([],[]),Rt.removeOverlap=uA;const wr=Rt.empty;class ea{constructor(t){this.members=t}map(t,n){const r=this.members.map(i=>i.map(t,n,El));return ea.from(r)}forChild(t,n){if(n.isLeaf)return Rt.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(t,n);o!=wr&&(o instanceof ea?r=r.concat(o.members):r.push(o))}return ea.from(r)}eq(t){if(!(t instanceof ea)||t.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(t.members[n]))return!1;return!0}locals(t){let n,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(t);if(o.length)if(!n)n=o;else{r&&(n=n.slice(),r=!1);for(let s=0;s<o.length;s++)n.push(o[s])}}return n?uA(r?n:n.sort(vl)):Tc}static from(t){switch(t.length){case 0:return wr;case 1:return t[0];default:return new ea(t.every(n=>n instanceof Rt)?t:t.reduce((n,r)=>n.concat(r instanceof Rt?r:r.members),[]))}}forEachSet(t){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(t)}}function N9(e,t,n,r,i,o,s){let a=e.slice();for(let c=0,u=o;c<n.maps.length;c++){let d=0;n.maps[c].forEach((h,p,m,b)=>{let A=b-m-(p-h);for(let v=0;v<a.length;v+=3){let D=a[v+1];if(D<0||h>D+u-d)continue;let C=a[v]+u-d;p>=C?a[v+1]=h<=C?-2:-1:h>=u&&A&&(a[v]+=A,a[v+1]+=A)}d+=A}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(e[c]+o),d=u-i;if(d<0||d>=r.content.size){l=!0;continue}let h=n.map(e[c+1]+o,-1),p=h-i,{index:m,offset:b}=r.content.findIndex(d),A=r.maybeChild(m);if(A&&b==d&&b+A.nodeSize==p){let v=a[c+2].mapInner(n,A,u+1,e[c]+o+1,s);v!=wr?(a[c]=d,a[c+1]=p,a[c+2]=v):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=F9(a,e,t,n,i,o,s),u=qp(c,r,0,s);t=u.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,h=0;d<u.children.length;d+=3){let p=u.children[d];for(;h<a.length&&a[h]<p;)h+=3;a.splice(h,0,u.children[d],u.children[d+1],u.children[d+2])}}return new Rt(t.sort(vl),a)}function AF(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new xn(i.from+t,i.to+t,i.type))}return n}function F9(e,t,n,r,i,o,s){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(r,i,c);d?n.push(d):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<e.length;l+=3)e[l+1]==-1&&a(e[l+2],t[l]+o+1);return n}function yF(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let o=0,s;o<e.length;o++)(s=e[o])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),e[o]=null);return i}function EF(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function qp(e,t,n,r){let i=[],o=!1;t.forEach((a,l)=>{let c=yF(e,a,l+n);if(c){o=!0;let u=qp(c,a,n+l+1,r);u!=wr&&i.push(l,l+a.nodeSize,u)}});let s=AF(o?EF(e):e,-n).sort(vl);for(let a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(r.onRemove&&r.onRemove(s[a].spec),s.splice(a--,1));return s.length||i.length?new Rt(s,i):wr}function vl(e,t){return e.from-t.from||e.to-t.to}function uA(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let o=t[i];if(o.from==r.from){o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),pD(t,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),pD(t,i,r.copy(o.from,r.to)));break}}}return t}function pD(e,t,n){for(;t<e.length&&vl(n,e[t])>0;)t++;e.splice(t,0,n)}function rg(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=wr&&t.push(r)}),e.cursorWrapper&&t.push(Rt.create(e.state.doc,[e.cursorWrapper.deco])),ea.from(t)}const O9={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},x9=li&&ga<=11;class k9{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class R9{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new k9,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);li&&ga<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),x9&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,O9)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(nD(this.view)){if(this.suppressingSelectionUpdates)return Es(this.view);if(li&&ga<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Rl(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=Gc(o))n.add(o);for(let o=t.anchorNode;o;o=Gc(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&nD(t)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];if(t.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(o=o<0?d.from:Math.min(d.from,o),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(a=!0))}if(oo&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,h]=u;d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let h of u){let p=h.parentNode;p&&p.nodeName=="LI"&&(!d||I9(t,d)!=p)&&h.remove()}}}let c=null;o<0&&i&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)<Date.now()-300&&Am(r)&&(c=iA(t))&&c.eq(ct.near(t.state.doc.resolve(0),1))?(t.input.lastFocus=0,Es(t),this.currentSelection.set(r),t.scrollToSelection()):(o>-1||i)&&(o>-1&&(t.docView.markDirty(o,s),M9(t)),this.handleDOMChange(o,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||Es(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let u=0;u<t.addedNodes.length;u++){let d=t.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(t.target))return{from:r.posBefore,to:r.posAfter};let i=t.previousSibling,o=t.nextSibling;if(li&&ga<=11&&t.addedNodes.length)for(let u=0;u<t.addedNodes.length;u++){let{previousSibling:d,nextSibling:h}=t.addedNodes[u];(!d||Array.prototype.indexOf.call(t.addedNodes,d)<0)&&(i=d),(!h||Array.prototype.indexOf.call(t.addedNodes,h)<0)&&(o=h)}let s=i&&i.parentNode==t.target?yr(i)+1:0,a=r.localPosFromDOM(t.target,s,-1),l=o&&o.parentNode==t.target?yr(o):t.target.childNodes.length,c=r.localPosFromDOM(t.target,l,1);return{from:a,to:c}}else return t.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=t.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:t.target.nodeValue==t.oldValue})}}let fD=new WeakMap,mD=!1;function M9(e){if(!fD.has(e)&&(fD.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=oo,mD)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),mD=!0}}function gD(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return Rl(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function B9(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return gD(e,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?gD(e,n):null}function I9(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let r=e.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function L9(e,t,n){let{node:r,fromOffset:i,toOffset:o,from:s,to:a}=e.docView.parseRange(t,n),l=e.domSelectionRange(),c,u=l.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],Am(l)||c.push({node:l.focusNode,offset:l.focusOffset})),kr&&e.input.lastKeyCode===8)for(let A=o;A>i;A--){let v=r.childNodes[A-1],D=v.pmViewDesc;if(v.nodeName=="BR"&&!D){o=A;break}if(!D||D.size)break}let d=e.state.doc,h=e.someProp("domParser")||Mc.fromSchema(e.state.schema),p=d.resolve(s),m=null,b=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:o,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Y9,context:p});if(c&&c[0].pos!=null){let A=c[0].pos,v=c[1]&&c[1].pos;v==null&&(v=A),m={anchor:A+s,head:v+s}}return{doc:b,sel:m,from:s,to:a}}function Y9(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(qr&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||qr&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const H9=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Z9(e,t,n,r,i){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let U=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,w=iA(e,U);if(w&&!e.state.selection.eq(w)){if(kr&&ps&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",V=>V(e,ul(13,"Enter"))))return;let z=e.state.tr.setSelection(w);U=="pointer"?z.setMeta("pointer",!0):U=="key"&&z.scrollIntoView(),o&&z.setMeta("composition",o),e.dispatch(z)}return}let s=e.state.doc.resolve(t),a=s.sharedDepth(n);t=s.before(a+1),n=e.state.doc.resolve(n).after(a+1);let l=e.state.selection,c=L9(e,t,n),u=e.state.doc,d=u.slice(c.from,c.to),h,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(h=e.state.selection.to,p="end"):(h=e.state.selection.from,p="start"),e.input.lastKeyCode=null;let m=U9(d.content,c.doc.content,c.from,h,p);if(m&&e.input.domChangeCount++,(qc&&e.input.lastIOSEnter>Date.now()-225||ps)&&i.some(U=>U.nodeType==1&&!H9.test(U.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",U=>U(e,ul(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(r&&l instanceof Ke&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let U=TD(e,e.state.doc,c.sel);if(U&&!U.eq(e.state.selection)){let w=e.state.tr.setSelection(U);o&&w.setMeta("composition",o),e.dispatch(w)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof Ke&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),li&&ga<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let b=c.doc.resolveNoCache(m.start-c.from),A=c.doc.resolveNoCache(m.endB-c.from),v=u.resolve(m.start),D=b.sameParent(A)&&b.parent.inlineContent&&v.end()>=m.endA,C;if((qc&&e.input.lastIOSEnter>Date.now()-225&&(!D||i.some(U=>U.nodeName=="DIV"||U.nodeName=="P"))||!D&&b.pos<c.doc.content.size&&!b.sameParent(A)&&(C=ct.findFrom(c.doc.resolve(b.pos+1),1,!0))&&C.head==A.pos)&&e.someProp("handleKeyDown",U=>U(e,ul(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&$9(u,m.start,m.endA,b,A)&&e.someProp("handleKeyDown",U=>U(e,ul(8,"Backspace")))){ps&&kr&&e.domObserver.suppressSelectionUpdates();return}kr&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),ps&&!D&&b.start()!=A.start()&&A.parentOffset==0&&b.depth==A.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,A=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(U){return U(e,ul(13,"Enter"))})},20));let S=m.start,O=m.endA,k,Z,W;if(D){if(b.pos==A.pos)li&&ga<=11&&b.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Es(e),20)),k=e.state.tr.delete(S,O),Z=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(W=P9(b.parent.content.cut(b.parentOffset,A.parentOffset),v.parent.content.cut(v.parentOffset,m.endA-v.start()))))k=e.state.tr,W.type=="add"?k.addMark(S,O,W.mark):k.removeMark(S,O,W.mark);else if(b.parent.child(b.index()).isText&&b.index()==A.index()-(A.textOffset?0:1)){let U=b.parent.textBetween(b.parentOffset,A.parentOffset);if(e.someProp("handleTextInput",w=>w(e,S,O,U)))return;k=e.state.tr.insertText(U,S,O)}}if(k||(k=e.state.tr.replace(S,O,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let U=TD(e,k.doc,c.sel);U&&!(kr&&e.composing&&U.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(U.head==S||U.head==k.mapping.map(O)-1)||li&&U.empty&&U.head==S)&&k.setSelection(U)}Z&&k.ensureMarks(Z),o&&k.setMeta("composition",o),e.dispatch(k.scrollIntoView())}function TD(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:oA(e,t.resolve(n.anchor),t.resolve(n.head))}function P9(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,o=r,s,a,l;for(let u=0;u<r.length;u++)i=r[u].removeFromSet(i);for(let u=0;u<n.length;u++)o=n[u].removeFromSet(o);if(i.length==1&&o.length==0)a=i[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(i.length==0&&o.length==1)a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<t.childCount;u++)c.push(l(t.child(u)));if(ue.from(c).eq(e))return{mark:a,type:s}}function $9(e,t,n,r,i){if(n-t<=i.pos-r.pos||ig(r,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(!r.parent.isTextblock){let a=o.nodeAfter;return a!=null&&n==t+a.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=e.resolve(ig(o,!0,!0));return!s.parent.isTextblock||s.pos>n||ig(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function ig(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function U9(e,t,n,r,i){let o=e.findDiffStart(t,n);if(o==null)return null;let{a:s,b:a}=e.findDiffEnd(t,n+e.size,n+t.size);if(i=="end"){let l=Math.max(0,o-Math.min(s,a));r-=s+l-o}if(s<o&&e.size<t.size){let l=r<=o&&r>=s?o-r:0;o-=l,o&&o<t.size&&bD(t.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}else if(a<o){let l=r<=o&&r>=a?o-r:0;o-=l,o&&o<e.size&&bD(e.textBetween(o-1,o+1))&&(o+=l?1:-1),s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}function bD(e){if(e.length!=2)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class z9{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new c9,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(DD),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=ED(this),yD(this),this.nodeViews=vD(this),this.docView=Kv(this.state.doc,AD(this),rg(this),this.dom,this),this.domObserver=new R9(this,(r,i,o,s)=>Z9(this,r,i,o,s)),this.domObserver.start(),u9(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&HT(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(DD),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let i=this.state,o=!1,s=!1;t.storedMarks&&this.composing&&(gF(this),s=!0),this.state=t;let a=i.plugins!=t.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=vD(this);j9(p,this.nodeViews)&&(this.nodeViews=p,o=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&HT(this),this.editable=ED(this),yD(this);let l=rg(this),c=AD(this),u=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,c,l);(d||!t.selection.eq(i.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&S5(this);if(s){this.domObserver.stop();let p=d&&(li||kr)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&V9(i.selection,t.selection);if(d){let m=kr?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=D9(this)),(o||!this.docView.update(t.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Kv(t.doc,c,l,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&q5(this))?Es(this,p):(sF(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&w5(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))&&!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof We){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&zv(this,n.getBoundingClientRect(),t)}else zv(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,t)}}updateDraggedNode(t,n){let r=t.node,i=-1;if(this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let o=r.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new bF(t.slice,t.move,i<0?void 0:We.create(this.state.doc,i))}someProp(t,n){let r=this._props&&this._props[t],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[t];if(a!=null&&(i=n?n(a):a))return i}let o=this.state.plugins;if(o)for(let s=0;s<o.length;s++){let a=o[s].props[t];if(a!=null&&(i=n?n(a):a))return i}}hasFocus(){if(li){let t=this.root.activeElement;if(t==this.dom)return!0;if(!t||!this.dom.contains(t))return!1;for(;t&&this.dom!=t&&this.dom.contains(t);){if(t.contentEditable=="false")return!1;t=t.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&_5(this.dom),Es(this),this.domObserver.start()}get root(){let t=this._root;if(t==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return x5(this,t)}coordsAtPos(t,n=1){return JN(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let i=this.docView.posFromDOM(t,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(t,n){return I5(this,n||this.state,t)}pasteHTML(t,n){return dd(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return dd(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return sA(this,t)}destroy(){this.docView&&(d9(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],rg(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,p5())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return p9(this,t)}dispatch(t){let n=this._props.dispatchTransaction;n?n.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){let t=this.domSelection();return t?qr&&this.root.nodeType===11&&b5(this.dom.ownerDocument)==this.dom&&B9(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function AD(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[xn.node(0,e.state.doc.content.size,t)]}function yD(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:xn.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function ED(e){return!e.someProp("editable",t=>t(e.state)===!1)}function V9(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function vD(e){let t=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(t,i)||(t[i]=r[i])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function j9(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function DD(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Sa={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},Wp={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},SD=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),G9=typeof navigator<"u"&&/Apple Computer/.test(navigator.vendor),q9=typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent),wD=typeof navigator<"u"&&/Mac/.test(navigator.platform),W9=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),K9=SD&&(wD||+SD[1]<57)||q9&&wD,Er=0;Er<10;Er++)Sa[48+Er]=Sa[96+Er]=String(Er);for(var Er=1;Er<=24;Er++)Sa[Er+111]="F"+Er;for(var Er=65;Er<=90;Er++)Sa[Er]=String.fromCharCode(Er+32),Wp[Er]=String.fromCharCode(Er);for(var og in Sa)Wp.hasOwnProperty(og)||(Wp[og]=Sa[og]);function Q9(e){var t=K9&&(e.ctrlKey||e.altKey||e.metaKey)||(G9||W9)&&e.shiftKey&&e.key&&e.key.length==1,n=!t&&e.key||(e.shiftKey?Wp:Sa)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const J9=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function X9(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,i,o,s;for(let a=0;a<t.length-1;a++){let l=t[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))J9?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function eI(e){let t=Object.create(null);for(let n in e)t[X9(n)]=e[n];return t}function sg(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function tI(e){return new kt({props:{handleKeyDown:dA(e)}})}function dA(e){let t=eI(e);return function(n,r){let i=Q9(r),o,s=t[sg(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let a=t[sg(i,r,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||i.charCodeAt(0)>127)&&(o=Sa[r.keyCode])&&o!=i){let a=t[sg(o,r)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const PT=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function vF(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const DF=(e,t,n)=>{let r=vF(e,n);if(!r)return!1;let i=hA(r);if(!i){let s=r.blockRange(),a=s&&bu(s);return a==null?!1:(t&&t(e.tr.lift(s,a).scrollIntoView()),!0)}let o=i.nodeBefore;if(kF(e,i,t,-1))return!0;if(r.parent.content.size==0&&(Wc(o,"end")||We.isSelectable(o)))for(let s=r.depth;;s--){let a=Tm(e.doc,r.before(s),r.after(s),we.empty);if(a&&a.slice.size<a.to-a.from){if(t){let l=e.tr.step(a);l.setSelection(Wc(o,"end")?ct.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):We.create(l.doc,i.pos-o.nodeSize)),t(l.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},nI=(e,t,n)=>{let r=vF(e,n);if(!r)return!1;let i=hA(r);return i?SF(e,i,t):!1},rI=(e,t,n)=>{let r=_F(e,n);if(!r)return!1;let i=pA(r);return i?SF(e,i,t):!1};function SF(e,t,n){let r=t.nodeBefore,i=r,o=t.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let s=t.nodeAfter,a=s,l=t.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=Tm(e.doc,o,l,we.empty);if(!c||c.from!=o||c instanceof hr&&c.slice.size>=l-o)return!1;if(n){let u=e.tr.step(c);u.setSelection(Ke.create(u.doc,o)),n(u.scrollIntoView())}return!0}function Wc(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const wF=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=hA(r)}let s=o&&o.nodeBefore;return!s||!We.isSelectable(s)?!1:(t&&t(e.tr.setSelection(We.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)};function hA(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function _F(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const CF=(e,t,n)=>{let r=_F(e,n);if(!r)return!1;let i=pA(r);if(!i)return!1;let o=i.nodeAfter;if(kF(e,i,t,1))return!0;if(r.parent.content.size==0&&(Wc(o,"start")||We.isSelectable(o))){let s=Tm(e.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(t){let a=e.tr.step(s);a.setSelection(Wc(o,"start")?ct.findFrom(a.doc.resolve(a.mapping.map(i.pos)),1):We.create(a.doc,a.mapping.map(i.pos))),t(a.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},NF=(e,t,n)=>{let{$head:r,empty:i}=e.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;o=pA(r)}let s=o&&o.nodeAfter;return!s||!We.isSelectable(s)?!1:(t&&t(e.tr.setSelection(We.create(e.doc,o.pos)).scrollIntoView()),!0)};function pA(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const iI=(e,t)=>{let n=e.selection,r=n instanceof We,i;if(r){if(n.node.isTextblock||!Ba(e.doc,n.from))return!1;i=n.from}else if(i=gm(e.doc,n.from,-1),i==null)return!1;if(t){let o=e.tr.join(i);r&&o.setSelection(We.create(o.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},oI=(e,t)=>{let n=e.selection,r;if(n instanceof We){if(n.node.isTextblock||!Ba(e.doc,n.to))return!1;r=n.to}else if(r=gm(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},sI=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),o=i&&bu(i);return o==null?!1:(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},FF=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
`).scrollIntoView()),!0)};function fA(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const aI=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),s=fA(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(t){let a=n.after(),l=e.tr.replaceWith(a,a,s.createAndFill());l.setSelection(ct.near(l.doc.resolve(a),1)),t(l.scrollIntoView())}return!0},OF=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof ai||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=fA(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=e.tr.insert(s,o.createAndFill());a.setSelection(Ke.create(a.doc,s+1)),t(a.scrollIntoView())}return!0},xF=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(ys(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&bu(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function lI(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof We&&t.selection.node.isBlock)return!r.parentOffset||!ys(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],s,a,l=!1,c=!1;for(let p=r.depth;;p--)if(r.node(p).isBlock){l=r.end(p)==r.pos+(r.depth-p),c=r.start(p)==r.pos-(r.depth-p),a=fA(r.node(p-1).contentMatchAt(r.indexAfter(p-1))),o.unshift(l&&a?{type:a}:null),s=p;break}else{if(p==1)return!1;o.unshift(null)}let u=t.tr;(t.selection instanceof Ke||t.selection instanceof ai)&&u.deleteSelection();let d=u.mapping.map(r.pos),h=ys(u.doc,d,o.length,o);if(h||(o[0]=a?{type:a}:null,h=ys(u.doc,d,o.length,o)),u.split(d,o.length,o),!l&&c&&r.node(s).type!=a){let p=u.mapping.map(r.before(s)),m=u.doc.resolve(p);a&&r.node(s-1).canReplaceWith(m.index(),m.index()+1,a)&&u.setNodeMarkup(u.mapping.map(r.before(s)),a)}return n&&n(u.scrollIntoView()),!0}}const cI=lI(),uI=(e,t)=>{let{$from:n,to:r}=e.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),t&&t(e.tr.setSelection(We.create(e.doc,i))),!0)};function dI(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,o=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(i.isTextblock||Ba(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function kF(e,t,n,r){let i=t.nodeBefore,o=t.nodeAfter,s,a,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&dI(e,t,n))return!0;let c=!l&&t.parent.canReplace(t.index(),t.index()+1);if(c&&(s=(a=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&a.matchType(s[0]||o.type).validEnd){if(n){let p=t.pos+o.nodeSize,m=ue.empty;for(let v=s.length-1;v>=0;v--)m=ue.from(s[v].create(null,m));m=ue.from(i.copy(m));let b=e.tr.step(new gr(t.pos-1,p,t.pos,p,new we(m,1,0),s.length,!0)),A=b.doc.resolve(p+2*s.length);A.nodeAfter&&A.nodeAfter.type==i.type&&Ba(b.doc,A.pos)&&b.join(A.pos),n(b.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:ct.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),h=d&&bu(d);if(h!=null&&h>=t.depth)return n&&n(e.tr.lift(d,h).scrollIntoView()),!0;if(c&&Wc(o,"start",!0)&&Wc(i,"end")){let p=i,m=[];for(;m.push(p),!p.isTextblock;)p=p.lastChild;let b=o,A=1;for(;!b.isTextblock;b=b.firstChild)A++;if(p.canReplace(p.childCount,p.childCount,b.content)){if(n){let v=ue.empty;for(let C=m.length-1;C>=0;C--)v=ue.from(m[C].copy(v));let D=e.tr.step(new gr(t.pos-m.length,t.pos+o.nodeSize,t.pos+A,t.pos+o.nodeSize-A,new we(v,m.length,0),0,!0));n(D.scrollIntoView())}return!0}}return!1}function RF(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(t.tr.setSelection(Ke.create(t.doc,e<0?i.start(o):i.end(o)))),!0):!1}}const hI=RF(-1),pI=RF(1);function fI(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),a=s&&eA(s,e,t);return a?(r&&r(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function _D(e,t=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[o];n.doc.nodesBetween(s,a,(l,c)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,e)}})}if(!i)return!1;if(r){let o=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];o.setBlockType(a,l,e,t)}r(o.scrollIntoView())}return!0}}function ag(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}ag(PT,DF,wF),ag(PT,CF,NF),ag(FF,OF,xF,cI),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function mI(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&i.node(s.depth-1).type.compatibleContent(e)&&s.startIndex==0){if(i.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);l=new Zp(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new Zp(i,n.doc.resolve(o.end(s.depth)),s.depth)),a=!0}let c=eA(l,e,t,s);return c?(r&&r(gI(n.tr,s,c,a,e).scrollIntoView()),!0):!1}}function gI(e,t,n,r,i){let o=ue.empty;for(let u=n.length-1;u>=0;u--)o=ue.from(n[u].type.create(n[u].attrs,o));e.step(new gr(t.start-(r?2:0),t.end,t.start,t.end,new we(o,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==i&&(s=u+1);let a=n.length-s,l=t.start+n.length-(r?2:0),c=t.parent;for(let u=t.startIndex,d=t.endIndex,h=!0;u<d;u++,h=!1)!h&&ys(e.doc,l,a)&&(e.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return e}function TI(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?bI(t,n,e,o):AI(t,n,o):!0:!1}}function bI(e,t,n,r){let i=e.tr,o=r.end,s=r.$to.end(r.depth);o<s&&(i.step(new gr(o-1,s,o,s,new we(ue.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Zp(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const a=bu(r);if(a==null)return!1;i.lift(r,a);let l=i.mapping.map(o,-1)-1;return Ba(i.doc,l)&&i.join(l),t(i.scrollIntoView()),!0}function AI(e,t,n){let r=e.tr,i=n.parent;for(let p=n.end,m=n.endIndex-1,b=n.startIndex;m>b;m--)p-=i.child(m).nodeSize,r.delete(p-1,p+1);let o=r.doc.resolve(n.start),s=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?ue.empty:ue.from(i))))return!1;let d=o.pos,h=d+s.nodeSize;return r.step(new gr(d-(a?1:0),h+(l?1:0),d+1,h-1,new we((a?ue.empty:ue.from(i.copy(ue.empty))).append(l?ue.empty:ue.from(i.copy(ue.empty))),a?0:1,l?0:1),a?0:1)),t(r.scrollIntoView()),!0}function yI(e){return function(t,n){let{$from:r,$to:i}=t.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==e);if(!o)return!1;let s=o.startIndex;if(s==0)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=e)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=ue.from(c?e.create():null),d=new we(ue.from(e.create(null,ue.from(a.type.create(null,u)))),c?3:1,0),h=o.start,p=o.end;n(t.tr.step(new gr(h-(c?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}function Em(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}class vm{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:i}=n,{tr:o}=r,s=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...c)=>{const u=l(...c)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:s}=i,a=[],l=!!t,c=t||o.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...m)=>{const b=this.buildProps(c,n),A=p(...m)(b);return a.push(A),d}])),run:u};return d}createCan(t){const{rawCommands:n,state:r}=this,i=!1,o=t||r.tr,s=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(n).map(([a,l])=>[a,(...c)=>l(...c)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(t,n=!0){const{rawCommands:r,editor:i,state:o}=this,{view:s}=i,a={tr:t,editor:i,view:s,state:Em({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let EI=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const n=this.callbacks[e];return n&&n.forEach(r=>r.apply(this,t)),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(r=>r!==t):delete this.callbacks[e]),this}once(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}};function $e(e,t,n){return e.config[t]===void 0&&e.parent?$e(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?$e(e.parent,t,n):null}):e.config[t]}function Dm(e){const t=e.filter(i=>i.type==="extension"),n=e.filter(i=>i.type==="node"),r=e.filter(i=>i.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function MF(e){const t=[],{nodeExtensions:n,markExtensions:r}=Dm(e),i=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage,extensions:i},l=$e(s,"addGlobalAttributes",a);l&&l().forEach(c=>{c.types.forEach(u=>{Object.entries(c.attributes).forEach(([d,h])=>{t.push({type:u,name:d,attribute:{...o,...h}})})})})}),i.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=$e(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const h={...o,...d};typeof h?.default=="function"&&(h.default=h.default()),h?.isRequired&&h?.default===void 0&&delete h.default,t.push({type:s.name,name:u,attribute:h})})}),t}function nr(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Ft(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const s=o?String(o).split(" "):[],a=r[i]?r[i].split(" "):[],l=s.filter(c=>!a.includes(c));r[i]=[...a,...l].join(" ")}else if(i==="style"){const s=o?o.split(";").map(c=>c.trim()).filter(Boolean):[],a=r[i]?r[i].split(";").map(c=>c.trim()).filter(Boolean):[],l=new Map;a.forEach(c=>{const[u,d]=c.split(":").map(h=>h.trim());l.set(u,d)}),s.forEach(c=>{const[u,d]=c.split(":").map(h=>h.trim());l.set(u,d)}),r[i]=Array.from(l.entries()).map(([c,u])=>`${c}: ${u}`).join("; ")}else r[i]=o}),r},{})}function $T(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Ft(n,r),{})}function BF(e){return typeof e=="function"}function Nt(e,t=void 0,...n){return BF(e)?t?e.bind(t)(...n):e(...n):e}function vI(e={}){return Object.keys(e).length===0&&e.constructor===Object}function DI(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function CD(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const i=t.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(n):DI(n.getAttribute(s.name));return a==null?o:{...o,[s.name]:a}},{});return{...r,...i}}}}function ND(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&vI(n)?!1:n!=null))}function SI(e,t){var n;const r=MF(e),{nodeExtensions:i,markExtensions:o}=Dm(e),s=(n=i.find(c=>$e(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(i.map(c=>{const u=r.filter(v=>v.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:t},h=e.reduce((v,D)=>{const C=$e(D,"extendNodeSchema",d);return{...v,...C?C(c):{}}},{}),p=ND({...h,content:Nt($e(c,"content",d)),marks:Nt($e(c,"marks",d)),group:Nt($e(c,"group",d)),inline:Nt($e(c,"inline",d)),atom:Nt($e(c,"atom",d)),selectable:Nt($e(c,"selectable",d)),draggable:Nt($e(c,"draggable",d)),code:Nt($e(c,"code",d)),whitespace:Nt($e(c,"whitespace",d)),linebreakReplacement:Nt($e(c,"linebreakReplacement",d)),defining:Nt($e(c,"defining",d)),isolating:Nt($e(c,"isolating",d)),attrs:Object.fromEntries(u.map(v=>{var D;return[v.name,{default:(D=v?.attribute)===null||D===void 0?void 0:D.default}]}))}),m=Nt($e(c,"parseHTML",d));m&&(p.parseDOM=m.map(v=>CD(v,u)));const b=$e(c,"renderHTML",d);b&&(p.toDOM=v=>b({node:v,HTMLAttributes:$T(v,u)}));const A=$e(c,"renderText",d);return A&&(p.toText=A),[c.name,p]})),l=Object.fromEntries(o.map(c=>{const u=r.filter(A=>A.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:t},h=e.reduce((A,v)=>{const D=$e(v,"extendMarkSchema",d);return{...A,...D?D(c):{}}},{}),p=ND({...h,inclusive:Nt($e(c,"inclusive",d)),excludes:Nt($e(c,"excludes",d)),group:Nt($e(c,"group",d)),spanning:Nt($e(c,"spanning",d)),code:Nt($e(c,"code",d)),attrs:Object.fromEntries(u.map(A=>{var v;return[A.name,{default:(v=A?.attribute)===null||v===void 0?void 0:v.default}]}))}),m=Nt($e(c,"parseHTML",d));m&&(p.parseDOM=m.map(A=>CD(A,u)));const b=$e(c,"renderHTML",d);return b&&(p.toDOM=A=>b({mark:A,HTMLAttributes:$T(A,u)})),[c.name,p]}));return new Qb({topNode:s,nodes:a,marks:l})}function lg(e,t){return t.nodes[e]||t.marks[e]||null}function FD(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function mA(e,t){const n=Ul.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const wI=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(i,o,s,a)=>{var l,c;const u=((c=(l=i.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:i,pos:o,parent:s,index:a}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?u:u.slice(0,Math.max(0,r-o))}),n};function gA(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class Au{constructor(t){this.find=t.find,this.handler=t.handler}}const _I=(e,t)=>{if(gA(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Dh(e){var t;const{editor:n,from:r,to:i,text:o,rules:s,plugin:a}=e,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||!((t=c.nodeBefore||c.nodeAfter)===null||t===void 0)&&t.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=wI(c)+o;return s.forEach(h=>{if(u)return;const p=_I(d,h.find);if(!p)return;const m=l.state.tr,b=Em({state:l.state,transaction:m}),A={from:r-(p[0].length-o.length),to:i},{commands:v,chain:D,can:C}=new vm({editor:n,state:b});h.handler({state:b,range:A,match:p,commands:v,chain:D,can:C})===null||!m.steps.length||(m.setMeta(a,{transform:m,from:r,to:i,text:o}),l.dispatch(m),u=!0)}),u}function CI(e){const{editor:t,rules:n}=e,r=new kt({state:{init(){return null},apply(i,o,s){const a=i.getMeta(r);if(a)return a;const l=i.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:c}=l;typeof c=="string"?c=c:c=mA(ue.from(c),s.schema);const{from:u}=l,d=u+c.length;Dh({editor:t,from:u,to:d,text:c,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,s,a){return Dh({editor:t,from:o,to:s,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&Dh({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:s}=i.state.selection;return s?Dh({editor:t,from:s.pos,to:s.pos,text:`
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function NI(e){return Object.prototype.toString.call(e).slice(8,-1)}function Sh(e){return NI(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Sm(e,t){const n={...e};return Sh(e)&&Sh(t)&&Object.keys(t).forEach(r=>{Sh(t[r])&&Sh(e[r])?n[r]=Sm(e[r],t[r]):n[r]=t[r]}),n}class so{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Nt($e(this,"addOptions",{name:this.name}))),this.storage=Nt($e(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new so(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>Sm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new so(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Nt($e(n,"addOptions",{name:n.name})),n.storage=Nt($e(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const o=i.marks();if(!o.find(a=>a?.type.name===n.name))return!1;const s=o.find(a=>a?.type.name===n.name);return s&&r.removeStoredMark(s),r.insertText(" ",i.pos),t.view.dispatch(r),!0}return!1}}function FI(e){return typeof e=="number"}class OI{constructor(t){this.find=t.find,this.handler=t.handler}}const xI=(e,t,n)=>{if(gA(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=e,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function kI(e){const{editor:t,state:n,from:r,to:i,rule:o,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:c,can:u}=new vm({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(h,p)=>{if(!h.isTextblock||h.type.spec.code)return;const m=Math.max(r,p),b=Math.min(i,p+h.content.size),A=h.textBetween(m-p,b-p,void 0,"");xI(A,o.find,s).forEach(v=>{if(v.index===void 0)return;const D=m+v.index+1,C=D+v[0].length,S={from:n.tr.mapping.map(D),to:n.tr.mapping.map(C)},O=o.handler({state:n,range:S,match:v,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(O)})}),d.every(h=>h!==null)}let wh=null;const RI=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function MI(e){const{editor:t,rules:n}=e;let r=null,i=!1,o=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:c,from:u,to:d,rule:h,pasteEvt:p})=>{const m=c.tr,b=Em({state:c,transaction:m});if(!(!kI({editor:t,state:b,from:Math.max(u-1,0),to:d.b-1,rule:h,pasteEvent:p,dropEvent:a})||!m.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(c=>new kt({view(u){const d=p=>{var m;r=!((m=u.dom.parentElement)===null||m===void 0)&&m.contains(p.target)?u.dom.parentElement:null,r&&(wh=t)},h=()=>{wh&&(wh=null)};return window.addEventListener("dragstart",d),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",d),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(u,d)=>{if(o=r===u.dom.parentElement,a=d,!o){const h=wh;h?.isEditable&&setTimeout(()=>{const p=h.state.selection;p&&h.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(u,d)=>{var h;const p=(h=d.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=d,i=!!p?.includes("data-pm-slice"),!1}}},appendTransaction:(u,d,h)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!i,b=p.getMeta("uiEvent")==="drop"&&!o,A=p.getMeta("applyPasteRules"),v=!!A;if(!m&&!b&&!v)return;if(v){let{text:S}=A;typeof S=="string"?S=S:S=mA(ue.from(S),h.schema);const{from:O}=A,k=O+S.length,Z=RI(S);return l({rule:c,state:h,from:O,to:{b:k},pasteEvt:Z})}const D=d.doc.content.findDiffStart(h.doc.content),C=d.doc.content.findDiffEnd(h.doc.content);if(!(!FI(D)||!C||D===C.b))return l({rule:c,state:h,from:D,to:C,pasteEvt:s})}}))}function BI(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class Nc{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=Nc.resolve(t),this.schema=SI(this.extensions,n),this.setupExtensions()}static resolve(t){const n=Nc.sort(Nc.flatten(t)),r=BI(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=$e(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(t){return t.sort((n,r)=>{const i=$e(n,"priority")||100,o=$e(r,"priority")||100;return i>o?-1:i<o?1:0})}get commands(){return this.extensions.reduce((t,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:lg(n.name,this.schema)},i=$e(n,"addCommands",r);return i?{...t,...i()}:t},{})}get plugins(){const{editor:t}=this,n=Nc.sort([...this.extensions].reverse()),r=[],i=[],o=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:t,type:lg(s.name,this.schema)},l=[],c=$e(s,"addKeyboardShortcuts",a);let u={};if(s.type==="mark"&&$e(s,"exitable",a)&&(u.ArrowRight=()=>so.handleExit({editor:t,mark:s})),c){const b=Object.fromEntries(Object.entries(c()).map(([A,v])=>[A,()=>v({editor:t})]));u={...u,...b}}const d=tI(u);l.push(d);const h=$e(s,"addInputRules",a);FD(s,t.options.enableInputRules)&&h&&r.push(...h());const p=$e(s,"addPasteRules",a);FD(s,t.options.enablePasteRules)&&p&&i.push(...p());const m=$e(s,"addProseMirrorPlugins",a);if(m){const b=m();l.push(...b)}return l}).flat();return[CI({editor:t,rules:r}),...MI({editor:t,rules:i}),...o]}get attributes(){return MF(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=Dm(this.extensions);return Object.fromEntries(n.filter(r=>!!$e(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t,type:nr(r.name,this.schema)},s=$e(r,"addNodeView",o);if(!s)return[];const a=(l,c,u,d,h)=>{const p=$T(l,i);return s()({node:l,view:c,getPos:u,decorations:d,innerDecorations:h,editor:t,extension:r,HTMLAttributes:p})};return[r.name,a]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:lg(t.name,this.schema)};t.type==="mark"&&(!((n=Nt($e(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const i=$e(t,"onBeforeCreate",r),o=$e(t,"onCreate",r),s=$e(t,"onUpdate",r),a=$e(t,"onSelectionUpdate",r),l=$e(t,"onTransaction",r),c=$e(t,"onFocus",r),u=$e(t,"onBlur",r),d=$e(t,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class pn{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Nt($e(this,"addOptions",{name:this.name}))),this.storage=Nt($e(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new pn(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>Sm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new pn({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Nt($e(n,"addOptions",{name:n.name})),n.storage=Nt($e(n,"addStorage",{name:n.name,options:n.options})),n}}function IF(e,t,n){const{from:r,to:i}=t,{blockSeparator:o=`

`,textSerializers:s={}}=n||{};let a="";return e.nodesBetween(r,i,(l,c,u,d)=>{var h;l.isBlock&&c>r&&(a+=o);const p=s?.[l.type.name];if(p)return u&&(a+=p({node:l,pos:c,parent:u,index:d,range:t})),!1;l.isText&&(a+=(h=l?.text)===null||h===void 0?void 0:h.slice(Math.max(r,c)-c,i-c))}),a}function TA(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const II=pn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new kt({key:new Lt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:o}=i,s=Math.min(...o.map(c=>c.$from.pos)),a=Math.max(...o.map(c=>c.$to.pos)),l=TA(n);return IF(r,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),LI=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window?.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),YI=(e=!1)=>({commands:t})=>t.setContent("",e),HI=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:s})=>{e.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=t,d=c.resolve(u.map(l)),h=c.resolve(u.map(l+a.nodeSize)),p=d.blockRange(h);if(!p)return;const m=bu(p);if(a.type.isTextblock){const{defaultType:b}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,b)}(m||m===0)&&t.lift(p,m)})}),!0},ZI=e=>t=>e(t),PI=()=>({state:e,dispatch:t})=>OF(e,t),$I=(e,t)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const s=r.mapping.map(t);return r.insert(s,o.content),r.setSelection(new Ke(r.doc.resolve(Math.max(s-1,0)))),!0},UI=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const i=e.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(t){const s=i.before(o),a=i.after(o);e.delete(s,a).scrollIntoView()}return!0}return!1},zI=e=>({tr:t,state:n,dispatch:r})=>{const i=nr(e,n.schema),o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===i){if(r){const a=o.before(s),l=o.after(s);t.delete(a,l).scrollIntoView()}return!0}return!1},VI=e=>({tr:t,dispatch:n})=>{const{from:r,to:i}=e;return n&&t.delete(r,i),!0},jI=()=>({state:e,dispatch:t})=>PT(e,t),GI=()=>({commands:e})=>e.keyboardShortcut("Enter"),qI=()=>({state:e,dispatch:t})=>aI(e,t);function Kp(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(i=>n.strict?t[i]===e[i]:gA(t[i])?t[i].test(e[i]):t[i]===e[i]):!0}function LF(e,t,n={}){return e.find(r=>r.type===t&&Kp(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function OD(e,t,n={}){return!!LF(e,t,n)}function wm(e,t,n){var r;if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if((!i.node||!i.node.marks.some(c=>c.type===t))&&(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some(c=>c.type===t)||(n=n||((r=i.node.marks[0])===null||r===void 0?void 0:r.attrs),!LF([...i.node.marks],t,n)))return;let o=i.index,s=e.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(;o>0&&OD([...e.parent.child(o-1).marks],t,n);)o-=1,s-=e.parent.child(o).nodeSize;for(;a<e.parent.childCount&&OD([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function La(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}const WI=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const o=La(e,r.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(i){const d=wm(l,o,t);if(d&&d.from<=c&&d.to>=u){const h=Ke.create(s,d.from,d.to);n.setSelection(h)}}return!0},KI=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};function YF(e){return e instanceof Ke}function fs(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function HF(e,t=null){if(!t)return null;const n=ct.atStart(e),r=ct.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;const i=n.from,o=r.to;return t==="all"?Ke.create(e,fs(0,i,o),fs(e.content.size,i,o)):Ke.create(e,fs(t,i,o),fs(t,i,o))}function ZF(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function _m(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const QI=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:o})=>{t={scrollIntoView:!0,...t};const s=()=>{(_m()||ZF())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!YF(n.state.selection))return s(),!0;const a=HF(i.doc,e)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},JI=(e,t)=>n=>e.every((r,i)=>t(r,{...n,index:i})),XI=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),PF=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&PF(r)}return e};function _h(e){const t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,"text/html").body;return PF(n)}function pd(e,t,n){if(e instanceof As||e instanceof ue)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,i=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return ue.fromArray(e.map(s=>t.nodeFromJSON(s)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),pd("",t,n)}if(i){if(n.errorOnInvalidContent){let s=!1,a="";const l=new Qb({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Mc.fromSchema(l).parseSlice(_h(e),n.parseOptions):Mc.fromSchema(l).parse(_h(e),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const o=Mc.fromSchema(t);return n.slice?o.parseSlice(_h(e),n.parseOptions).content:o.parse(_h(e),n.parseOptions)}return pd("",t,n)}function eL(e,t,n){const r=e.steps.length-1;if(r<t)return;const i=e.steps[r];if(!(i instanceof hr||i instanceof gr))return;const o=e.mapping.maps[r];let s=0;o.forEach((a,l,c,u)=>{s===0&&(s=u)}),e.setSelection(ct.near(e.doc.resolve(s),n))}const tL=e=>!("type"in e),nL=(e,t,n)=>({tr:r,dispatch:i,editor:o})=>{var s;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const l=b=>{o.emit("contentError",{editor:o,error:b,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{pd(t,o.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(b){l(b)}try{a=pd(t,o.schema,{parseOptions:c,errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:o.options.enableContentCheck})}catch(b){return l(b),!1}let{from:u,to:d}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},h=!0,p=!0;if((tL(a)?a:[a]).forEach(b=>{b.check(),h=h?b.isText&&b.marks.length===0:!1,p=p?b.isBlock:!1}),u===d&&p){const{parent:b}=r.doc.resolve(u);b.isTextblock&&!b.type.spec.code&&!b.childCount&&(u-=1,d+=1)}let m;if(h){if(Array.isArray(t))m=t.map(b=>b.text||"").join("");else if(t instanceof ue){let b="";t.forEach(A=>{A.text&&(b+=A.text)}),m=b}else typeof t=="object"&&t&&t.text?m=t.text:m=t;r.insertText(m,u,d)}else m=a,r.replaceWith(u,d,m);n.updateSelection&&eL(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:m}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:m})}return!0},rL=()=>({state:e,dispatch:t})=>iI(e,t),iL=()=>({state:e,dispatch:t})=>oI(e,t),oL=()=>({state:e,dispatch:t})=>DF(e,t),sL=()=>({state:e,dispatch:t})=>CF(e,t),aL=()=>({state:e,dispatch:t,tr:n})=>{try{const r=gm(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},lL=()=>({state:e,dispatch:t,tr:n})=>{try{const r=gm(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},cL=()=>({state:e,dispatch:t})=>nI(e,t),uL=()=>({state:e,dispatch:t})=>rI(e,t);function $F(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function dL(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,i,o,s;for(let a=0;a<t.length-1;a+=1){const l=t[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))_m()||$F()?s=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),o&&(n=`Shift-${n}`),n}const hL=e=>({editor:t,view:n,tr:r,dispatch:i})=>{const o=dL(e).split(/-(?!$)/),s=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))})?.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function Ds(e,t,n={}){const{from:r,to:i,empty:o}=e.selection,s=t?nr(t,e.schema):null,a=[];e.doc.nodesBetween(r,i,(u,d)=>{if(u.isText)return;const h=Math.max(r,d),p=Math.min(i,d+u.nodeSize);a.push({node:u,from:h,to:p})});const l=i-r,c=a.filter(u=>s?s.name===u.node.type.name:!0).filter(u=>Kp(u.node.attrs,n,{strict:!1}));return o?!!c.length:c.reduce((u,d)=>u+d.to-d.from,0)>=l}const pL=(e,t={})=>({state:n,dispatch:r})=>{const i=nr(e,n.schema);return Ds(n,i,t)?sI(n,r):!1},fL=()=>({state:e,dispatch:t})=>xF(e,t),mL=e=>({state:t,dispatch:n})=>{const r=nr(e,t.schema);return TI(r)(t,n)},gL=()=>({state:e,dispatch:t})=>FF(e,t);function Cm(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function xD(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,i)=>(n.includes(i)||(r[i]=e[i]),r),{})}const TL=(e,t)=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null;const a=Cm(typeof e=="string"?e:e.name,r.schema);return a?(a==="node"&&(o=nr(e,r.schema)),a==="mark"&&(s=La(e,r.schema)),i&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&n.setNodeMarkup(u,void 0,xD(c.attrs,t)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&n.addMark(u,u+c.nodeSize,s.create(xD(d.attrs,t)))})})}),!0):!1},bL=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),AL=()=>({tr:e,dispatch:t})=>{if(t){const n=new ai(e.doc);e.setSelection(n)}return!0},yL=()=>({state:e,dispatch:t})=>wF(e,t),EL=()=>({state:e,dispatch:t})=>NF(e,t),vL=()=>({state:e,dispatch:t})=>uI(e,t),DL=()=>({state:e,dispatch:t})=>pI(e,t),SL=()=>({state:e,dispatch:t})=>hI(e,t);function UT(e,t,n={},r={}){return pd(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const wL=(e,t=!1,n={},r={})=>({editor:i,tr:o,dispatch:s,commands:a})=>{var l,c;const{doc:u}=o;if(n.preserveWhitespace!=="full"){const d=UT(e,i.schema,n,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck});return s&&o.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!t),!0}return s&&o.setMeta("preventUpdate",!t),a.insertContentAt({from:0,to:u.content.size},e,{parseOptions:n,errorOnInvalidContent:(c=r.errorOnInvalidContent)!==null&&c!==void 0?c:i.options.enableContentCheck})};function bA(e,t){const n=La(t,e.schema),{from:r,to:i,empty:o}=e.selection,s=[];o?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function UF(e,t){const n=new tA(e);return t.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function _L(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function zT(e,t){const n=[];return e.descendants((r,i)=>{t(r)&&n.push({node:r,pos:i})}),n}function zF(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,(i,o)=>{n(i)&&r.push({node:i,pos:o})}),r}function VF(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function AA(e){return t=>VF(t.$from,e)}function jF(e,t){const n={from:0,to:e.content.size};return IF(e,n,t)}function CL(e,t){const n=nr(t,e.schema),{from:r,to:i}=e.selection,o=[];e.doc.nodesBetween(r,i,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function GF(e,t){const n=Cm(typeof t=="string"?t:t.name,e.schema);return n==="node"?CL(e,t):n==="mark"?bA(e,t):{}}function NL(e,t=JSON.stringify){const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function FL(e){const t=NL(e);return t.length===1?t:t.filter((n,r)=>!t.filter((i,o)=>o!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function qF(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((i,o)=>{const s=[];if(i.ranges.length)i.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[o];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=t.slice(o).map(a,-1),u=t.slice(o).map(l),d=t.invert().map(c,-1),h=t.invert().map(u);r.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),FL(r)}function yA(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(i=>{const o=n.resolve(e),s=wm(o,i.type);s&&r.push({mark:i,...s})}):n.nodesBetween(e,t,(i,o)=>{!i||i?.nodeSize===void 0||r.push(...i.marks.map(s=>({from:o,to:o+i.nodeSize,mark:s})))}),r}function hp(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=e.find(o=>o.type===t&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function Qp(e,t,n={}){const{empty:r,ranges:i}=e.selection,o=t?La(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(u=>o?o.name===u.type.name:!0).find(u=>Kp(u.attrs,n,{strict:!1}));let s=0;const a=[];if(i.forEach(({$from:u,$to:d})=>{const h=u.pos,p=d.pos;e.doc.nodesBetween(h,p,(m,b)=>{if(!m.isText&&!m.marks.length)return;const A=Math.max(h,b),v=Math.min(p,b+m.nodeSize),D=v-A;s+=D,a.push(...m.marks.map(C=>({mark:C,from:A,to:v})))})}),s===0)return!1;const l=a.filter(u=>o?o.name===u.mark.type.name:!0).filter(u=>Kp(u.mark.attrs,n,{strict:!1})).reduce((u,d)=>u+d.to-d.from,0),c=a.filter(u=>o?u.mark.type!==o&&u.mark.type.excludes(o):!0).reduce((u,d)=>u+d.to-d.from,0);return(l>0?l+c:l)>=s}function WF(e,t,n={}){if(!t)return Ds(e,null,n)||Qp(e,null,n);const r=Cm(t,e.schema);return r==="node"?Ds(e,t,n):r==="mark"?Qp(e,t,n):!1}function kD(e,t){const{nodeExtensions:n}=Dm(t),r=n.find(s=>s.name===e);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=Nt($e(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function EA(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let i=!0;return e.content.forEach(o=>{i!==!1&&(EA(o,{ignoreWhitespace:n,checkChildren:t})||(i=!1))}),i}return!1}function OL(e){return e instanceof We}function xL(e,t,n){const r=e.state.doc.content.size,i=fs(t,0,r),o=fs(n,0,r),s=e.coordsAtPos(i),a=e.coordsAtPos(o,-1),l=Math.min(s.top,a.top),c=Math.max(s.bottom,a.bottom),u=Math.min(s.left,a.left),d=Math.max(s.right,a.right),h=d-u,p=c-l,m={top:l,bottom:c,left:u,right:d,width:h,height:p,x:u,y:l};return{...m,toJSON:()=>m}}function kL(e,t,n){var r;const{selection:i}=t;let o=null;if(YF(i)&&(o=i.$cursor),o){const a=(r=e.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:s}=i;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(a.pos,l.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(b=>b.type.excludes(n));c=p&&m}return!c}),c})}const RL=(e,t={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:s,ranges:a}=o,l=La(e,r.schema);if(i)if(s){const c=bA(r,l);n.addStoredMark(l.create({...c,...t}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(h,p)=>{const m=Math.max(p,u),b=Math.min(p+h.nodeSize,d);h.marks.find(A=>A.type===l)?h.marks.forEach(A=>{l===A.type&&n.addMark(m,b,l.create({...A.attrs,...t}))}):n.addMark(m,b,l.create(t))})});return kL(r,n,l)},ML=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),BL=(e,t={})=>({state:n,dispatch:r,chain:i})=>{const o=nr(e,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),o.isTextblock?i().command(({commands:a})=>_D(o,{...s,...t})(n)?!0:a.clearNodes()).command(({state:a})=>_D(o,{...s,...t})(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},IL=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,i=fs(e,0,r.content.size),o=We.create(r,i);t.setSelection(o)}return!0},LL=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:i,to:o}=typeof e=="number"?{from:e,to:e}:e,s=Ke.atStart(r).from,a=Ke.atEnd(r).to,l=fs(i,s,a),c=fs(o,s,a),u=Ke.create(r,l,c);t.setSelection(u)}return!0},YL=e=>({state:t,dispatch:n})=>{const r=nr(e,t.schema);return yI(r)(t,n)};function RD(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(i=>t?.includes(i.type.name));e.tr.ensureMarks(r)}}const HL=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:s}=t,{$from:a,$to:l}=o,c=i.extensionManager.attributes,u=hp(c,a.node().type.name,a.node().attrs);if(o instanceof We&&o.node.isBlock)return!a.parentOffset||!ys(s,a.pos)?!1:(r&&(e&&RD(n,i.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,h=a.depth===0?void 0:_L(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=d&&h?[{type:h,attrs:u}]:void 0,m=ys(t.doc,t.mapping.map(a.pos),1,p);if(!p&&!m&&ys(t.doc,t.mapping.map(a.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),r){if(m&&(o instanceof Ke&&t.deleteSelection(),t.split(t.mapping.map(a.pos),1,p),h&&!d&&!a.parentOffset&&a.parent.type!==h)){const b=t.mapping.map(a.before()),A=t.doc.resolve(b);a.node(-1).canReplaceWith(A.index(),A.index()+1,h)&&t.setNodeMarkup(t.mapping.map(a.before()),h)}e&&RD(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},ZL=(e,t={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var s;const a=nr(e,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const h=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let v=ue.empty;const D=l.index(-1)?1:l.index(-2)?2:3;for(let W=l.depth-D;W>=l.depth-3;W-=1)v=ue.from(l.node(W).copy(v));const C=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,S={...hp(h,l.node().type.name,l.node().attrs),...t},O=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(S))||void 0;v=v.append(ue.from(a.createAndFill(null,O)||void 0));const k=l.before(l.depth-(D-1));n.replace(k,l.after(-C),new we(v,4-D,0));let Z=-1;n.doc.nodesBetween(k,n.doc.content.size,(W,U)=>{if(Z>-1)return!1;W.isTextblock&&W.content.size===0&&(Z=U+1)}),Z>-1&&n.setSelection(Ke.near(n.doc.resolve(Z))),n.scrollIntoView()}return!0}const p=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,m={...hp(h,d.type.name,d.attrs),...t},b={...hp(h,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,c.pos);const A=p?[{type:a,attrs:m},{type:p,attrs:b}]:[{type:a,attrs:m}];if(!ys(n.doc,l.pos,2))return!1;if(i){const{selection:v,storedMarks:D}=r,{splittableMarks:C}=o.extensionManager,S=D||v.$to.parentOffset&&v.$from.marks();if(n.split(l.pos,2,A).scrollIntoView(),!S||!i)return!0;const O=S.filter(k=>C.includes(k.type.name));n.ensureMarks(O)}return!0},cg=(e,t)=>{const n=AA(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===i?.type&&Ba(e.doc,n.pos)&&e.join(n.pos),!0},ug=(e,t)=>{const n=AA(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=e.doc.nodeAt(r);return n.node.type===i?.type&&Ba(e.doc,r)&&e.join(r),!0},PL=(e,t,n,r={})=>({editor:i,tr:o,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:h}=i.extensionManager,p=nr(e,s.schema),m=nr(t,s.schema),{selection:b,storedMarks:A}=s,{$from:v,$to:D}=b,C=v.blockRange(D),S=A||b.$to.parentOffset&&b.$from.marks();if(!C)return!1;const O=AA(k=>kD(k.type.name,d))(b);if(C.depth>=1&&O&&C.depth-O.depth<=1){if(O.node.type===p)return c.liftListItem(m);if(kD(O.node.type.name,d)&&p.validContent(O.node.content)&&a)return l().command(()=>(o.setNodeMarkup(O.pos,p),!0)).command(()=>cg(o,p)).command(()=>ug(o,p)).run()}return!n||!S||!a?l().command(()=>u().wrapInList(p,r)?!0:c.clearNodes()).wrapInList(p,r).command(()=>cg(o,p)).command(()=>ug(o,p)).run():l().command(()=>{const k=u().wrapInList(p,r),Z=S.filter(W=>h.includes(W.type.name));return o.ensureMarks(Z),k?!0:c.clearNodes()}).wrapInList(p,r).command(()=>cg(o,p)).command(()=>ug(o,p)).run()},$L=(e,t={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,s=La(e,r.schema);return Qp(r,s,t)?i.unsetMark(s,{extendEmptyMarkRange:o}):i.setMark(s,t)},UL=(e,t,n={})=>({state:r,commands:i})=>{const o=nr(e,r.schema),s=nr(t,r.schema),a=Ds(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),a?i.setNode(s,l):i.setNode(o,{...l,...n})},zL=(e,t={})=>({state:n,commands:r})=>{const i=nr(e,n.schema);return Ds(n,i,t)?r.lift(i):r.wrapIn(i,t)},VL=()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let o;if(i.spec.isInputRules&&(o=i.getState(e))){if(t){const s=e.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},jL=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},GL=(e,t={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=n,l=La(e,r.schema),{$from:c,empty:u,ranges:d}=a;if(!i)return!0;if(u&&s){let{from:h,to:p}=a;const m=(o=c.marks().find(A=>A.type===l))===null||o===void 0?void 0:o.attrs,b=wm(c,l,m);b&&(h=b.from,p=b.to),n.removeMark(h,p,l)}else d.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,l)});return n.removeStoredMark(l),!0},qL=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null;const a=Cm(typeof e=="string"?e:e.name,r.schema);return a?(a==="node"&&(o=nr(e,r.schema)),a==="mark"&&(s=La(e,r.schema)),i&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,h,p,m;n.selection.empty?r.doc.nodesBetween(c,u,(b,A)=>{o&&o===b.type&&(p=Math.max(A,c),m=Math.min(A+b.nodeSize,u),d=A,h=b)}):r.doc.nodesBetween(c,u,(b,A)=>{A<c&&o&&o===b.type&&(p=Math.max(A,c),m=Math.min(A+b.nodeSize,u),d=A,h=b),A>=c&&A<=u&&(o&&o===b.type&&n.setNodeMarkup(A,void 0,{...b.attrs,...t}),s&&b.marks.length&&b.marks.forEach(v=>{if(s===v.type){const D=Math.max(A,c),C=Math.min(A+b.nodeSize,u);n.addMark(D,C,s.create({...v.attrs,...t}))}}))}),h&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...h.attrs,...t}),s&&h.marks.length&&h.marks.forEach(b=>{s===b.type&&n.addMark(p,m,s.create({...b.attrs,...t}))}))}),!0):!1},WL=(e,t={})=>({state:n,dispatch:r})=>{const i=nr(e,n.schema);return fI(i,t)(n,r)},KL=(e,t={})=>({state:n,dispatch:r})=>{const i=nr(e,n.schema);return mI(i,t)(n,r)};var QL=Object.freeze({__proto__:null,blur:LI,clearContent:YI,clearNodes:HI,command:ZI,createParagraphNear:PI,cut:$I,deleteCurrentNode:UI,deleteNode:zI,deleteRange:VI,deleteSelection:jI,enter:GI,exitCode:qI,extendMarkRange:WI,first:KI,focus:QI,forEach:JI,insertContent:XI,insertContentAt:nL,joinBackward:oL,joinDown:iL,joinForward:sL,joinItemBackward:aL,joinItemForward:lL,joinTextblockBackward:cL,joinTextblockForward:uL,joinUp:rL,keyboardShortcut:hL,lift:pL,liftEmptyBlock:fL,liftListItem:mL,newlineInCode:gL,resetAttributes:TL,scrollIntoView:bL,selectAll:AL,selectNodeBackward:yL,selectNodeForward:EL,selectParentNode:vL,selectTextblockEnd:DL,selectTextblockStart:SL,setContent:wL,setMark:RL,setMeta:ML,setNode:BL,setNodeSelection:IL,setTextSelection:LL,sinkListItem:YL,splitBlock:HL,splitListItem:ZL,toggleList:PL,toggleMark:$L,toggleNode:UL,toggleWrap:zL,undoInputRule:VL,unsetAllMarks:jL,unsetMark:GL,updateAttributes:qL,wrapIn:WL,wrapInList:KL});const JL=pn.create({name:"commands",addCommands(){return{...QL}}}),XL=pn.create({name:"drop",addProseMirrorPlugins(){return[new kt({key:new Lt("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),e7=pn.create({name:"editable",addProseMirrorPlugins(){return[new kt({key:new Lt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),t7=new Lt("focusEvents"),n7=pn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new kt({key:t7,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),r7=pn.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:s})=>{const{selection:a,doc:l}=s,{empty:c,$anchor:u}=a,{pos:d,parent:h}=u,p=u.parent.isTextblock&&d>0?s.doc.resolve(d-1):u,m=p.parent.type.spec.isolating,b=u.pos-u.parentOffset,A=m&&p.parent.childCount===1?b===u.pos:ct.atStart(l).from===d;return!c||!h.type.isTextblock||h.textContent.length||!A||A&&u.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return _m()||$F()?i:r},addProseMirrorPlugins(){return[new kt({key:new Lt("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(p=>p.getMeta("composition")))return;const r=e.some(p=>p.docChanged)&&!t.doc.eq(n.doc),i=e.some(p=>p.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:s,to:a}=t.selection,l=ct.atStart(t.doc).from,c=ct.atEnd(t.doc).to;if(o||!(s===l&&a===c)||!EA(n.doc))return;const u=n.tr,d=Em({state:n,transaction:u}),{commands:h}=new vm({editor:this.editor,state:d});if(h.clearNodes(),!!u.steps.length)return u}})]}}),i7=pn.create({name:"paste",addProseMirrorPlugins(){return[new kt({key:new Lt("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),o7=pn.create({name:"tabindex",addProseMirrorPlugins(){return[new kt({key:new Lt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class dl{get name(){return this.node.type.name}constructor(t,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new dl(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new dl(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new dl(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,s=this.pos+r+(o?0:1);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(s);if(!i&&a.depth<=this.depth)return;const l=new dl(a,this.editor,i,i?n:null);i&&(l.actualDepth=this.depth+1),t.push(new dl(a,this.editor,i,i?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===t)if(Object.keys(n).length>0){const o=i.node.attrs,s=Object.keys(n);for(let a=0;a<s.length;a+=1){const l=s[a];if(o[l]!==n[l])break}}else r=i;i=i.parent}return r}querySelector(t,n={}){return this.querySelectorAll(t,n,!0)[0]||null}querySelectorAll(t,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const o=Object.keys(n);return this.children.forEach(s=>{r&&i.length>0||(s.node.type.name===t&&o.every(a=>n[a]===s.node.attrs[a])&&i.push(s),!(r&&i.length>0)&&(i=i.concat(s.querySelectorAll(t,n,r))))}),i}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const s7=`.ProseMirror {
  position: relative;
}

.ProseMirror {
  word-wrap: break-word;
  white-space: pre-wrap;
  white-space: break-spaces;
  -webkit-font-variant-ligatures: none;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}

.ProseMirror [contenteditable="false"] {
  white-space: normal;
}

.ProseMirror [contenteditable="false"] [contenteditable="true"] {
  white-space: pre-wrap;
}

.ProseMirror pre {
  white-space: pre-wrap;
}

img.ProseMirror-separator {
  display: inline !important;
  border: none !important;
  margin: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.ProseMirror-gapcursor {
  display: none;
  pointer-events: none;
  position: absolute;
  margin: 0;
}

.ProseMirror-gapcursor:after {
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  width: 20px;
  border-top: 1px solid black;
  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes ProseMirror-cursor-blink {
  to {
    visibility: hidden;
  }
}

.ProseMirror-hideselection *::selection {
  background: transparent;
}

.ProseMirror-hideselection *::-moz-selection {
  background: transparent;
}

.ProseMirror-hideselection * {
  caret-color: transparent;
}

.ProseMirror-focused .ProseMirror-gapcursor {
  display: block;
}

.tippy-box[data-animation=fade][data-state=hidden] {
  opacity: 0
}`;function a7(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}let abe=class extends EI{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:t,slice:n,moved:r})=>this.options.onDrop(t,n,r)),this.on("paste",({event:t,slice:n})=>this.options.onPaste(t,n)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=a7(s7,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=BF(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(i=>{const o=typeof i=="string"?`${i}$`:i.key;n=n.filter(s=>!s.key.startsWith(o))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[e7,II.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),JL,n7,r7,o7,XL,i7].filter(r=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[r.name]!==!1:!0):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r?.type));this.extensionManager=new Nc(n,this)}createCommandManager(){this.commandManager=new vm({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=UT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(s=>s.name!=="collaboration"),this.createExtensionManager()}}),t=UT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=HF(t,this.options.autofocus);this.view=new z9(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Cc.create({doc:t,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(o=>{var s;return(s=this.capturedTransaction)===null||s===void 0?void 0:s.step(o)});return}const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return GF(this.state,e)}isActive(e,t){const n=typeof e=="string"?e:null,r=typeof e=="string"?t:e;return WF(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return mA(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`

`,textSerializers:n={}}=e||{};return jF(this.state.doc,{blockSeparator:t,textSerializers:{...TA(this.schema),...n}})}get isEmpty(){return EA(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new dl(t,this)}get $doc(){return this.$pos(0)}};function Ss(e){return new Au({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Nt(e.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=t,s=r[r.length-1],a=r[0];if(s){const l=a.search(/\S/),c=n.from+a.indexOf(s),u=c+s.length;if(yA(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(p=>p===e.type&&p!==h.mark.type)).filter(h=>h.to>c).length)return null;u<n.to&&o.delete(u,n.to),c>n.from&&o.delete(n.from+l,c);const d=n.from+l+s.length;o.addMark(n.from+l,d,e.type.create(i||{})),o.removeStoredMark(e.type)}}})}function KF(e){return new Au({find:e.find,handler:({state:t,range:n,match:r})=>{const i=Nt(e.getAttributes,void 0,r)||{},{tr:o}=t,s=n.from;let a=n.to;const l=e.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=s+c;u>a?u=a:a=u+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,s+r[0].length-1),o.replaceWith(u,a,l)}else if(r[0]){const c=e.type.isInline?s:s-1;o.insert(c,e.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a))}o.scrollIntoView()}})}function VT(e){return new Au({find:e.find,handler:({state:t,range:n,match:r})=>{const i=t.doc.resolve(n.from),o=Nt(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function Vt(e){return new Au({find:e.find,handler:({state:t,range:n,match:r})=>{let i=e.replace,o=n.from;const s=n.to;if(r[1]){const a=r[0].lastIndexOf(r[1]);i+=r[0].slice(a+r[1].length),o+=a;const l=o-s;l>0&&(i=r[0].slice(a-l,a)+i,o=s)}t.tr.insertText(i,o,s)}})}function wa(e){return new Au({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{const o=Nt(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),l=a&&eA(a,e.type,o);if(!l)return null;if(s.wrap(a,l),e.keepMarks&&e.editor){const{selection:u,storedMarks:d}=t,{splittableMarks:h}=e.editor.extensionManager,p=d||u.$to.parentOffset&&u.$from.marks();if(p){const m=p.filter(b=>h.includes(b.type.name));s.ensureMarks(m)}}if(e.keepAttributes){const u=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(u,o).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Ba(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&s.join(n.from-1)}})}let bn=class jT{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Nt($e(this,"addOptions",{name:this.name}))),this.storage=Nt($e(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new jT(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>Sm(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new jT(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Nt($e(n,"addOptions",{name:n.name})),n.storage=Nt($e(n,"addStorage",{name:n.name,options:n.options})),n}};class l7{constructor(t,n,r){this.isDragging=!1,this.component=t,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var n,r,i,o,s,a,l;const{view:c}=this.editor,u=t.target,d=u.nodeType===3?(n=u.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(u)||!d)return;let h=0,p=0;if(this.dom!==d){const D=this.dom.getBoundingClientRect(),C=d.getBoundingClientRect(),S=(i=t.offsetX)!==null&&i!==void 0?i:(o=t.nativeEvent)===null||o===void 0?void 0:o.offsetX,O=(s=t.offsetY)!==null&&s!==void 0?s:(a=t.nativeEvent)===null||a===void 0?void 0:a.offsetY;h=C.x-D.x+S,p=C.y-D.y+O}const m=this.dom.cloneNode(!0);(l=t.dataTransfer)===null||l===void 0||l.setDragImage(m,h,p);const b=this.getPos();if(typeof b!="number")return;const A=We.create(c.state.doc,b),v=c.state.tr.setSelection(A);c.dispatch(v)}stopEvent(t){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const r=t.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const i=t.type.startsWith("drag"),o=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!o&&!i)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,c=We.isSelectable(this.node),u=t.type==="copy",d=t.type==="paste",h=t.type==="cut",p=t.type==="mousedown";if(!l&&c&&i&&t.target===this.dom&&t.preventDefault(),l&&i&&!a&&t.target===this.dom)return t.preventDefault(),!1;if(l&&s&&!a&&p){const m=r.closest("[data-drag-handle]");m&&(this.dom===m||this.dom.contains(m))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(a||o||u||d||h||p&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(_m()||ZF())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const n=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:n})}}function ws(e){return new OI({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{const o=Nt(e.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:s}=t,a=r[r.length-1],l=r[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),h=d+a.length;if(yA(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(m=>m===e.type&&m!==p.mark.type)).filter(p=>p.to>d).length)return null;h<n.to&&s.delete(h,n.to),d>n.from&&s.delete(n.from+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,e.type.create(o||{})),s.removeStoredMark(e.type)}}})}function c7(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof We){const o=r.index();return r.parent.canReplaceWith(o,o+1,t)}let i=r.depth;for(;i>=0;){const o=r.index(i);if(r.node(i).contentMatchAt(o).matchType(t))return!0;i-=1}return!1}function u7(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const jr=()=>new Map,GT=e=>{const t=jr();return e.forEach((n,r)=>{t.set(r,n)}),t},ji=(e,t,n)=>{let r=e.get(t);return r===void 0&&e.set(t,r=n()),r},d7=(e,t)=>{const n=[];for(const[r,i]of e)n.push(t(i,r));return n},h7=(e,t)=>{for(const[n,r]of e)if(t(r,n))return!0;return!1},_s=()=>new Set,dg=e=>e[e.length-1],p7=(e,t)=>{for(let n=0;n<t.length;n++)e.push(t[n])},Cs=Array.from,f7=(e,t)=>{for(let n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1},qT=Array.isArray;class QF{constructor(){this._observers=jr()}on(t,n){return ji(this._observers,t,_s).add(n),n}once(t,n){const r=(...i)=>{this.off(t,r),n(...i)};this.on(t,r)}off(t,n){const r=this._observers.get(t);r!==void 0&&(r.delete(n),r.size===0&&this._observers.delete(t))}emit(t,n){return Cs((this._observers.get(t)||jr()).values()).forEach(r=>r(...n))}destroy(){this._observers=jr()}}class JF{constructor(){this._observers=jr()}on(t,n){ji(this._observers,t,_s).add(n)}once(t,n){const r=(...i)=>{this.off(t,r),n(...i)};this.on(t,r)}off(t,n){const r=this._observers.get(t);r!==void 0&&(r.delete(n),r.size===0&&this._observers.delete(t))}emit(t,n){return Cs((this._observers.get(t)||jr()).values()).forEach(r=>r(...n))}destroy(){this._observers=jr()}}const Yo=Math.floor,pp=Math.abs,ko=(e,t)=>e<t?e:t,ao=(e,t)=>e>t?e:t,m7=Math.pow,XF=e=>e!==0?e<0:1/e<0,MD=1,BD=2,hg=4,pg=8,fd=32,vs=64,Gr=128,g7=1<<29,Nm=31,WT=63,Dl=127,T7=2147483647,eO=Number.MAX_SAFE_INTEGER,b7=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&Yo(e)===e),A7=String.fromCharCode,y7=e=>e.toLowerCase(),E7=/^\s*/g,v7=e=>e.replace(E7,""),D7=/([A-Z])/g,ID=(e,t)=>v7(e.replace(D7,n=>`${t}${y7(n)}`)),S7=e=>{const t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let i=0;i<n;i++)r[i]=t.codePointAt(i);return r},md=typeof TextEncoder<"u"?new TextEncoder:null,w7=e=>md.encode(e),_7=md?w7:S7;let B0=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});B0&&B0.decode(new Uint8Array).length===1&&(B0=null);class Kd{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const er=()=>new Kd,C7=e=>{const t=er();return e(t),Cn(t)},vA=e=>{let t=e.cpos;for(let n=0;n<e.bufs.length;n++)t+=e.bufs[n].length;return t},Cn=e=>{const t=new Uint8Array(vA(e));let n=0;for(let r=0;r<e.bufs.length;r++){const i=e.bufs[r];t.set(i,n),n+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),t},N7=(e,t)=>{const n=e.cbuf.length;n-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(ao(n,t)*2),e.cpos=0)},ur=(e,t)=>{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=t},KT=ur,Xe=(e,t)=>{for(;t>Dl;)ur(e,Gr|Dl&t),t=Yo(t/128);ur(e,Dl&t)},DA=(e,t)=>{const n=XF(t);for(n&&(t=-t),ur(e,(t>WT?Gr:0)|(n?vs:0)|WT&t),t=Yo(t/64);t>0;)ur(e,(t>Dl?Gr:0)|Dl&t),t=Yo(t/128)},QT=new Uint8Array(3e4),F7=QT.length/3,O7=(e,t)=>{if(t.length<F7){const n=md.encodeInto(t,QT).written||0;Xe(e,n);for(let r=0;r<n;r++)ur(e,QT[r])}else jn(e,_7(t))},x7=(e,t)=>{const n=unescape(encodeURIComponent(t)),r=n.length;Xe(e,r);for(let i=0;i<r;i++)ur(e,n.codePointAt(i))},Sl=md&&md.encodeInto?O7:x7,Fm=(e,t)=>{const n=e.cbuf.length,r=e.cpos,i=ko(n-r,t.length),o=t.length-i;e.cbuf.set(t.subarray(0,i),r),e.cpos+=i,o>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(ao(n*2,o)),e.cbuf.set(t.subarray(i)),e.cpos=o)},jn=(e,t)=>{Xe(e,t.byteLength),Fm(e,t)},SA=(e,t)=>{N7(e,t);const n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},k7=(e,t)=>SA(e,4).setFloat32(0,t,!1),R7=(e,t)=>SA(e,8).setFloat64(0,t,!1),M7=(e,t)=>SA(e,8).setBigInt64(0,t,!1),LD=new DataView(new ArrayBuffer(4)),B7=e=>(LD.setFloat32(0,e),LD.getFloat32(0)===e),Kc=(e,t)=>{switch(typeof t){case"string":ur(e,119),Sl(e,t);break;case"number":b7(t)&&pp(t)<=T7?(ur(e,125),DA(e,t)):B7(t)?(ur(e,124),k7(e,t)):(ur(e,123),R7(e,t));break;case"bigint":ur(e,122),M7(e,t);break;case"object":if(t===null)ur(e,126);else if(qT(t)){ur(e,117),Xe(e,t.length);for(let n=0;n<t.length;n++)Kc(e,t[n])}else if(t instanceof Uint8Array)ur(e,116),jn(e,t);else{ur(e,118);const n=Object.keys(t);Xe(e,n.length);for(let r=0;r<n.length;r++){const i=n[r];Sl(e,i),Kc(e,t[i])}}break;case"boolean":ur(e,t?120:121);break;default:ur(e,127)}};class YD extends Kd{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&Xe(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}}const HD=e=>{e.count>0&&(DA(e.encoder,e.count===1?e.s:-e.s),e.count>1&&Xe(e.encoder,e.count-2))};class fp{constructor(){this.encoder=new Kd,this.s=0,this.count=0}write(t){this.s===t?this.count++:(HD(this),this.count=1,this.s=t)}toUint8Array(){return HD(this),Cn(this.encoder)}}const ZD=e=>{if(e.count>0){const t=e.diff*2+(e.count===1?0:1);DA(e.encoder,t),e.count>1&&Xe(e.encoder,e.count-2)}};class fg{constructor(){this.encoder=new Kd,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(ZD(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return ZD(this),Cn(this.encoder)}}class I7{constructor(){this.sarr=[],this.s="",this.lensE=new fp}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){const t=new Kd;return this.sarr.push(this.s),this.s="",Sl(t,this.sarr.join("")),Fm(t,this.lensE.toUint8Array()),Cn(t)}}const _a=e=>new Error(e),no=()=>{throw _a("Method unimplemented")},fi=()=>{throw _a("Unexpected case")},tO=_a("Unexpected end of array"),nO=_a("Integer out of Range");class Om{constructor(t){this.arr=t,this.pos=0}}const xs=e=>new Om(e),L7=e=>e.pos!==e.arr.length,Y7=(e,t=e.pos)=>{const n=xs(e.arr);return n.pos=t,n},H7=(e,t)=>{const n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,n},_r=e=>H7(e,Tt(e)),Qc=e=>e.arr[e.pos++],Tt=e=>{let t=0,n=1;const r=e.arr.length;for(;e.pos<r;){const i=e.arr[e.pos++];if(t=t+(i&Dl)*n,n*=128,i<Gr)return t;if(t>eO)throw nO}throw tO},wA=e=>{let t=e.arr[e.pos++],n=t&WT,r=64;const i=(t&vs)>0?-1:1;if((t&Gr)===0)return i*n;const o=e.arr.length;for(;e.pos<o;){if(t=e.arr[e.pos++],n=n+(t&Dl)*r,r*=128,t<Gr)return i*n;if(n>eO)throw nO}throw tO},Z7=e=>{let t=Tt(e);if(t===0)return"";{let n=String.fromCodePoint(Qc(e));if(--t<100)for(;t--;)n+=String.fromCodePoint(Qc(e));else for(;t>0;){const r=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+r);e.pos+=r,n+=String.fromCodePoint.apply(null,i),t-=r}return decodeURIComponent(escape(n))}},P7=e=>B0.decode(_r(e)),Aa=B0?P7:Z7,_A=(e,t)=>{const n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,n},$7=e=>_A(e,4).getFloat32(0,!1),U7=e=>_A(e,8).getFloat64(0,!1),z7=e=>_A(e,8).getBigInt64(0,!1),V7=[e=>{},e=>null,wA,$7,U7,z7,e=>!1,e=>!0,Aa,e=>{const t=Tt(e),n={};for(let r=0;r<t;r++){const i=Aa(e);n[i]=gd(e)}return n},e=>{const t=Tt(e),n=[];for(let r=0;r<t;r++)n.push(gd(e));return n},_r],gd=e=>V7[127-Qc(e)](e);class PD extends Om{constructor(t,n){super(t),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),L7(this)?this.count=Tt(this)+1:this.count=-1),this.count--,this.s}}class mp extends Om{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=wA(this);const t=XF(this.s);this.count=1,t&&(this.s=-this.s,this.count=Tt(this)+2)}return this.count--,this.s}}class mg extends Om{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const t=wA(this),n=t&1;this.diff=Yo(t/2),this.count=1,n&&(this.count=Tt(this)+2)}return this.s+=this.diff,this.count--,this.s}}class j7{constructor(t){this.decoder=new mp(t),this.str=Aa(this.decoder),this.spos=0}read(){const t=this.spos+this.decoder.read(),n=this.str.slice(this.spos,t);return this.spos=t,n}}const G7=crypto.getRandomValues.bind(crypto),q7=Math.random,rO=()=>G7(new Uint32Array(1))[0],W7=e=>e[Yo(q7()*e.length)],K7="10000000-1000-4000-8000"+-1e11,Q7=()=>K7.replace(/[018]/g,e=>(e^rO()&15>>e/4).toString(16)),Ca=Date.now,$D=e=>new Promise(e);Promise.all.bind(Promise);const J7=e=>e===void 0?null:e;class X7{constructor(){this.map=new Map}setItem(t,n){this.map.set(t,n)}getItem(t){return this.map.get(t)}}let iO=new X7,CA=!0;try{typeof localStorage<"u"&&localStorage&&(iO=localStorage,CA=!1)}catch{}const oO=iO,e8=e=>CA||addEventListener("storage",e),t8=e=>CA||removeEventListener("storage",e),n8=Object.assign,NA=Object.keys,r8=(e,t)=>{for(const n in e)t(e[n],n)},i8=(e,t)=>{const n=[];for(const r in e)n.push(t(e[r],r));return n},UD=e=>NA(e).length,zD=e=>NA(e).length,o8=e=>{for(const t in e)return!1;return!0},sO=(e,t)=>{for(const n in e)if(!t(e[n],n))return!1;return!0},aO=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s8=(e,t)=>e===t||zD(e)===zD(t)&&sO(e,(n,r)=>(n!==void 0||aO(t,r))&&t[r]===n),a8=Object.freeze,lO=e=>{for(const t in e){const n=e[t];(typeof n=="object"||typeof n=="function")&&lO(e[t])}return a8(e)},VD=Symbol("Equality"),FA=(e,t,n=0)=>{try{for(;n<e.length;n++)e[n](...t)}finally{n<e.length&&FA(e,t,n+1)}},l8=e=>e,I0=(e,t)=>{if(e===t)return!0;if(e==null||t==null||e.constructor!==t.constructor)return!1;if(e[VD]!=null)return e[VD](t);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:{if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;break}case Set:{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;break}case Map:{if(e.size!==t.size)return!1;for(const n of e.keys())if(!t.has(n)||!I0(e.get(n),t.get(n)))return!1;break}case Object:if(UD(e)!==UD(t))return!1;for(const n in e)if(!aO(e,n)||!I0(e[n],t[n]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!I0(e[n],t[n]))return!1;break;default:return!1}return!0},c8=(e,t)=>t.includes(e);var cO={};const Na=typeof Ei<"u"&&Ei.release&&/node|io\.js/.test(Ei.release.name)&&Object.prototype.toString.call(typeof Ei<"u"?Ei:0)==="[object process]",OA=typeof window<"u"&&typeof document<"u"&&!Na;let yo;const u8=()=>{if(yo===void 0)if(Na){yo=jr();const e=Ei.argv;let t=null;for(let n=0;n<e.length;n++){const r=e[n];r[0]==="-"?(t!==null&&yo.set(t,""),t=r):t!==null&&(yo.set(t,r),t=null)}t!==null&&yo.set(t,"")}else typeof location=="object"?(yo=jr(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){const[t,n]=e.split("=");yo.set(`--${ID(t,"-")}`,n),yo.set(`-${ID(t,"-")}`,n)}})):yo=jr();return yo},JT=e=>u8().has(e),Jp=e=>J7(Na?cO[e.toUpperCase().replaceAll("-","_")]:oO.getItem(e)),uO=e=>JT("--"+e)||Jp(e)!==null;uO("production");const d8=Na&&c8(cO.FORCE_COLOR,["true","1","2"]),h8=d8||!JT("--no-colors")&&!uO("no-color")&&(!Na||Ei.stdout.isTTY)&&(!Na||JT("--color")||Jp("COLORTERM")!==null||(Jp("TERM")||"").includes("color")),dO=e=>new Uint8Array(e),p8=(e,t,n)=>new Uint8Array(e,t,n),f8=e=>new Uint8Array(e),m8=e=>{let t="";for(let n=0;n<e.byteLength;n++)t+=A7(e[n]);return btoa(t)},g8=e=>um.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),T8=e=>{const t=atob(e),n=dO(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},b8=e=>{const t=um.from(e,"base64");return p8(t.buffer,t.byteOffset,t.byteLength)},xA=OA?m8:g8,hO=OA?T8:b8,A8=e=>{const t=dO(e.byteLength);return t.set(e),t},y8=e=>C7(t=>Kc(t,e));class E8{constructor(t,n){this.left=t,this.right=n}}const Jo=(e,t)=>new E8(e,t),v8=typeof document<"u"?document:{};typeof DOMParser<"u"&&new DOMParser;const D8=e=>d7(e,(t,n)=>`${n}:${t};`).join(""),S8=e=>class{constructor(t){this._=t}destroy(){e(this._)}},w8=S8(clearTimeout),kA=(e,t)=>new w8(setTimeout(t,e)),ks=Symbol,pO=ks(),fO=ks(),_8=ks(),C8=ks(),N8=ks(),mO=ks(),F8=ks(),RA=ks(),O8=ks(),x8=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const t=[],n=[];let r=0;for(;r<e.length;r++){const i=e[r];if(i===void 0)break;if(i.constructor===String||i.constructor===Number)t.push(i);else if(i.constructor===Object)break}for(r>0&&n.push(t.join(""));r<e.length;r++){const i=e[r];i instanceof Symbol||n.push(i)}return n},k8={[pO]:Jo("font-weight","bold"),[fO]:Jo("font-weight","normal"),[_8]:Jo("color","blue"),[N8]:Jo("color","green"),[C8]:Jo("color","grey"),[mO]:Jo("color","red"),[F8]:Jo("color","purple"),[RA]:Jo("color","orange"),[O8]:Jo("color","black")},R8=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const t=[],n=[],r=jr();let i=[],o=0;for(;o<e.length;o++){const s=e[o],a=k8[s];if(a!==void 0)r.set(a.left,a.right);else{if(s===void 0)break;if(s.constructor===String||s.constructor===Number){const l=D8(r);o>0||l.length>0?(t.push("%c"+s),n.push(l)):t.push(s)}else break}}for(o>0&&(i=n,i.unshift(t.join("")));o<e.length;o++){const s=e[o];s instanceof Symbol||i.push(s)}return i},gO=h8?R8:x8,M8=(...e)=>{console.log(...gO(e)),bO.forEach(t=>t.print(e))},TO=(...e)=>{console.warn(...gO(e)),e.unshift(RA),bO.forEach(t=>t.print(e))},bO=_s(),AO=e=>({[Symbol.iterator](){return this},next:e}),B8=(e,t)=>AO(()=>{let n;do n=e.next();while(!n.done&&!t(n.value));return n}),gg=(e,t)=>AO(()=>{const{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}});class MA{constructor(t,n){this.clock=t,this.len=n}}class yu{constructor(){this.clients=new Map}}const Fa=(e,t,n)=>t.clients.forEach((r,i)=>{const o=e.doc.store.clients.get(i);if(o!=null){const s=o[o.length-1],a=s.id.clock+s.length;for(let l=0,c=r[l];l<r.length&&c.clock<a;c=r[++l])MO(e,o,c.clock,c.len,n)}}),I8=(e,t)=>{let n=0,r=e.length-1;for(;n<=r;){const i=Yo((n+r)/2),o=e[i],s=o.clock;if(s<=t){if(t<s+o.len)return i;n=i+1}else r=i-1}return null},Eu=(e,t)=>{const n=e.clients.get(t.client);return n!==void 0&&I8(n,t.clock)!==null},BA=e=>{e.clients.forEach(t=>{t.sort((i,o)=>i.clock-o.clock);let n,r;for(n=1,r=1;n<t.length;n++){const i=t[r-1],o=t[n];i.clock+i.len>=o.clock?i.len=ao(i.len,o.clock+o.len-i.clock):(r<n&&(t[r]=o),r++)}t.length=r})},XT=e=>{const t=new yu;for(let n=0;n<e.length;n++)e[n].clients.forEach((r,i)=>{if(!t.clients.has(i)){const o=r.slice();for(let s=n+1;s<e.length;s++)p7(o,e[s].clients.get(i)||[]);t.clients.set(i,o)}});return BA(t),t},Td=(e,t,n,r)=>{ji(e.clients,t,()=>[]).push(new MA(n,r))},yO=()=>new yu,EO=e=>{const t=yO();return e.clients.forEach((n,r)=>{const i=[];for(let o=0;o<n.length;o++){const s=n[o];if(s.deleted){const a=s.id.clock;let l=s.length;if(o+1<n.length)for(let c=n[o+1];o+1<n.length&&c.deleted;c=n[++o+1])l+=c.length;i.push(new MA(a,l))}}i.length>0&&t.clients.set(r,i)}),t},vu=(e,t)=>{Xe(e.restEncoder,t.clients.size),Cs(t.clients.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{e.resetDsCurVal(),Xe(e.restEncoder,n);const i=r.length;Xe(e.restEncoder,i);for(let o=0;o<i;o++){const s=r[o];e.writeDsClock(s.clock),e.writeDsLen(s.len)}})},IA=e=>{const t=new yu,n=Tt(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();const i=Tt(e.restDecoder),o=Tt(e.restDecoder);if(o>0){const s=ji(t.clients,i,()=>[]);for(let a=0;a<o;a++)s.push(new MA(e.readDsClock(),e.readDsLen()))}}return t},jD=(e,t,n)=>{const r=new yu,i=Tt(e.restDecoder);for(let o=0;o<i;o++){e.resetDsCurVal();const s=Tt(e.restDecoder),a=Tt(e.restDecoder),l=n.clients.get(s)||[],c=Gn(n,s);for(let u=0;u<a;u++){const d=e.readDsClock(),h=d+e.readDsLen();if(d<c){c<h&&Td(r,s,c,h-c);let p=lo(l,d),m=l[p];for(!m.deleted&&m.id.clock<d&&(l.splice(p+1,0,sf(t,m,d-m.id.clock)),p++);p<l.length&&(m=l[p++],m.id.clock<h);)m.deleted||(h<m.id.clock+m.length&&l.splice(p,0,sf(t,m,h-m.id.clock)),m.delete(t))}else Td(r,s,d,h-d)}}if(r.clients.size>0){const o=new Bl;return Xe(o.restEncoder,0),vu(o,r),o.toUint8Array()}return null},vO=rO;class Ya extends QF{constructor({guid:t=Q7(),collectionid:n=null,gc:r=!0,gcFilter:i=()=>!0,meta:o=null,autoLoad:s=!1,shouldLoad:a=!0}={}){super(),this.gc=r,this.gcFilter=i,this.clientID=vO(),this.guid=t,this.collectionid=n,this.share=new Map,this.store=new kO,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=a,this.autoLoad=s,this.meta=o,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=$D(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});const l=()=>$D(c=>{const u=d=>{(d===void 0||d===!0)&&(this.off("sync",u),c())};this.on("sync",u)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=l()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=l()}load(){const t=this._item;t!==null&&!this.shouldLoad&&Tn(t.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(Cs(this.subdocs).map(t=>t.guid))}transact(t,n=null){return Tn(this,t,n)}get(t,n=Tr){const r=ji(this.share,t,()=>{const o=new n;return o._integrate(this,null),o}),i=r.constructor;if(n!==Tr&&i!==n)if(i===Tr){const o=new n;o._map=r._map,r._map.forEach(s=>{for(;s!==null;s=s.left)s.parent=o}),o._start=r._start;for(let s=o._start;s!==null;s=s.right)s.parent=o;return o._length=r._length,this.share.set(t,o),o._integrate(this,null),o}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return r}getArray(t=""){return this.get(t,Hc)}getText(t=""){return this.get(t,Il)}getMap(t=""){return this.get(t,Xc)}getXmlElement(t=""){return this.get(t,zr)}getXmlFragment(t=""){return this.get(t,Oa)}toJSON(){const t={};return this.share.forEach((n,r)=>{t[r]=n.toJSON()}),t}destroy(){this.isDestroyed=!0,Cs(this.subdocs).forEach(n=>n.destroy());const t=this._item;if(t!==null){this._item=null;const n=t.content;n.doc=new Ya({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=t,Tn(t.parent.doc,r=>{const i=n.doc;t.deleted||r.subdocsAdded.add(i),r.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class DO{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return Tt(this.restDecoder)}readDsLen(){return Tt(this.restDecoder)}}class SO extends DO{readLeftID(){return vt(Tt(this.restDecoder),Tt(this.restDecoder))}readRightID(){return vt(Tt(this.restDecoder),Tt(this.restDecoder))}readClient(){return Tt(this.restDecoder)}readInfo(){return Qc(this.restDecoder)}readString(){return Aa(this.restDecoder)}readParentInfo(){return Tt(this.restDecoder)===1}readTypeRef(){return Tt(this.restDecoder)}readLen(){return Tt(this.restDecoder)}readAny(){return gd(this.restDecoder)}readBuf(){return A8(_r(this.restDecoder))}readJSON(){return JSON.parse(Aa(this.restDecoder))}readKey(){return Aa(this.restDecoder)}}class L8{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=Tt(this.restDecoder),this.dsCurrVal}readDsLen(){const t=Tt(this.restDecoder)+1;return this.dsCurrVal+=t,t}}class Jc extends L8{constructor(t){super(t),this.keys=[],Tt(t),this.keyClockDecoder=new mg(_r(t)),this.clientDecoder=new mp(_r(t)),this.leftClockDecoder=new mg(_r(t)),this.rightClockDecoder=new mg(_r(t)),this.infoDecoder=new PD(_r(t),Qc),this.stringDecoder=new j7(_r(t)),this.parentInfoDecoder=new PD(_r(t),Qc),this.typeRefDecoder=new mp(_r(t)),this.lenDecoder=new mp(_r(t))}readLeftID(){return new Lc(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Lc(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return gd(this.restDecoder)}readBuf(){return _r(this.restDecoder)}readJSON(){return gd(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t<this.keys.length)return this.keys[t];{const n=this.stringDecoder.read();return this.keys.push(n),n}}}class wO{constructor(){this.restEncoder=er()}toUint8Array(){return Cn(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){Xe(this.restEncoder,t)}writeDsLen(t){Xe(this.restEncoder,t)}}class Qd extends wO{writeLeftID(t){Xe(this.restEncoder,t.client),Xe(this.restEncoder,t.clock)}writeRightID(t){Xe(this.restEncoder,t.client),Xe(this.restEncoder,t.clock)}writeClient(t){Xe(this.restEncoder,t)}writeInfo(t){KT(this.restEncoder,t)}writeString(t){Sl(this.restEncoder,t)}writeParentInfo(t){Xe(this.restEncoder,t?1:0)}writeTypeRef(t){Xe(this.restEncoder,t)}writeLen(t){Xe(this.restEncoder,t)}writeAny(t){Kc(this.restEncoder,t)}writeBuf(t){jn(this.restEncoder,t)}writeJSON(t){Sl(this.restEncoder,JSON.stringify(t))}writeKey(t){Sl(this.restEncoder,t)}}class _O{constructor(){this.restEncoder=er(),this.dsCurrVal=0}toUint8Array(){return Cn(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){const n=t-this.dsCurrVal;this.dsCurrVal=t,Xe(this.restEncoder,n)}writeDsLen(t){t===0&&fi(),Xe(this.restEncoder,t-1),this.dsCurrVal+=t}}class Bl extends _O{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new fg,this.clientEncoder=new fp,this.leftClockEncoder=new fg,this.rightClockEncoder=new fg,this.infoEncoder=new YD(KT),this.stringEncoder=new I7,this.parentInfoEncoder=new YD(KT),this.typeRefEncoder=new fp,this.lenEncoder=new fp}toUint8Array(){const t=er();return Xe(t,0),jn(t,this.keyClockEncoder.toUint8Array()),jn(t,this.clientEncoder.toUint8Array()),jn(t,this.leftClockEncoder.toUint8Array()),jn(t,this.rightClockEncoder.toUint8Array()),jn(t,Cn(this.infoEncoder)),jn(t,this.stringEncoder.toUint8Array()),jn(t,Cn(this.parentInfoEncoder)),jn(t,this.typeRefEncoder.toUint8Array()),jn(t,this.lenEncoder.toUint8Array()),Fm(t,Cn(this.restEncoder)),Cn(t)}writeLeftID(t){this.clientEncoder.write(t.client),this.leftClockEncoder.write(t.clock)}writeRightID(t){this.clientEncoder.write(t.client),this.rightClockEncoder.write(t.clock)}writeClient(t){this.clientEncoder.write(t)}writeInfo(t){this.infoEncoder.write(t)}writeString(t){this.stringEncoder.write(t)}writeParentInfo(t){this.parentInfoEncoder.write(t?1:0)}writeTypeRef(t){this.typeRefEncoder.write(t)}writeLen(t){this.lenEncoder.write(t)}writeAny(t){Kc(this.restEncoder,t)}writeBuf(t){jn(this.restEncoder,t)}writeJSON(t){Kc(this.restEncoder,t)}writeKey(t){const n=this.keyMap.get(t);n===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(t)):this.keyClockEncoder.write(n)}}const Y8=(e,t,n,r)=>{r=ao(r,t[0].id.clock);const i=lo(t,r);Xe(e.restEncoder,t.length-i),e.writeClient(n),Xe(e.restEncoder,r);const o=t[i];o.write(e,r-o.id.clock);for(let s=i+1;s<t.length;s++)t[s].write(e,0)},LA=(e,t,n)=>{const r=new Map;n.forEach((i,o)=>{Gn(t,o)>i&&r.set(o,i)}),Jd(t).forEach((i,o)=>{n.has(o)||r.set(o,0)}),Xe(e.restEncoder,r.size),Cs(r.entries()).sort((i,o)=>o[0]-i[0]).forEach(([i,o])=>{Y8(e,t.clients.get(i),i,o)})},H8=(e,t)=>{const n=jr(),r=Tt(e.restDecoder);for(let i=0;i<r;i++){const o=Tt(e.restDecoder),s=new Array(o),a=e.readClient();let l=Tt(e.restDecoder);n.set(a,{i:0,refs:s});for(let c=0;c<o;c++){const u=e.readInfo();switch(Nm&u){case 0:{const d=e.readLen();s[c]=new Hi(vt(a,l),d),l+=d;break}case 10:{const d=Tt(e.restDecoder);s[c]=new Zi(vt(a,l),d),l+=d;break}default:{const d=(u&(vs|Gr))===0,h=new hn(vt(a,l),null,(u&Gr)===Gr?e.readLeftID():null,null,(u&vs)===vs?e.readRightID():null,d?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,d&&(u&fd)===fd?e.readString():null,tx(e,u));s[c]=h,l+=h.length}}}}return n},Z8=(e,t,n)=>{const r=[];let i=Cs(n.keys()).sort((p,m)=>p-m);if(i.length===0)return null;const o=()=>{if(i.length===0)return null;let p=n.get(i[i.length-1]);for(;p.refs.length===p.i;)if(i.pop(),i.length>0)p=n.get(i[i.length-1]);else return null;return p};let s=o();if(s===null)return null;const a=new kO,l=new Map,c=(p,m)=>{const b=l.get(p);(b==null||b>m)&&l.set(p,m)};let u=s.refs[s.i++];const d=new Map,h=()=>{for(const p of r){const m=p.id.client,b=n.get(m);b?(b.i--,a.clients.set(m,b.refs.slice(b.i)),n.delete(m),b.i=0,b.refs=[]):a.clients.set(m,[p]),i=i.filter(A=>A!==m)}r.length=0};for(;;){if(u.constructor!==Zi){const p=ji(d,u.id.client,()=>Gn(t,u.id.client))-u.id.clock;if(p<0)r.push(u),c(u.id.client,u.id.clock-1),h();else{const m=u.getMissing(e,t);if(m!==null){r.push(u);const b=n.get(m)||{refs:[],i:0};if(b.refs.length===b.i)c(m,Gn(t,m)),h();else{u=b.refs[b.i++];continue}}else(p===0||p<u.length)&&(u.integrate(e,p),d.set(u.id.client,u.id.clock+u.length))}}if(r.length>0)u=r.pop();else if(s!==null&&s.i<s.refs.length)u=s.refs[s.i++];else{if(s=o(),s===null)break;u=s.refs[s.i++]}}if(a.clients.size>0){const p=new Bl;return LA(p,a,new Map),Xe(p.restEncoder,0),{missing:l,update:p.toUint8Array()}}return null},P8=(e,t)=>LA(e,t.doc.store,t.beforeState),$8=(e,t,n,r=new Jc(e))=>Tn(t,i=>{i.local=!1;let o=!1;const s=i.doc,a=s.store,l=H8(r,s),c=Z8(i,a,l),u=a.pendingStructs;if(u){for(const[h,p]of u.missing)if(p<Gn(a,h)){o=!0;break}if(c){for(const[h,p]of c.missing){const m=u.missing.get(h);(m==null||m>p)&&u.missing.set(h,p)}u.update=ef([u.update,c.update])}}else a.pendingStructs=c;const d=jD(r,i,a);if(a.pendingDs){const h=new Jc(xs(a.pendingDs));Tt(h.restDecoder);const p=jD(h,i,a);d&&p?a.pendingDs=ef([d,p]):a.pendingDs=d||p}else a.pendingDs=d;if(o){const h=a.pendingStructs.update;a.pendingStructs=null,Xp(i.doc,h)}},n,!1),Xp=(e,t,n,r=Jc)=>{const i=xs(t);$8(i,e,n,new r(i))},U8=(e,t,n)=>Xp(e,t,n,SO),z8=(e,t,n=new Map)=>{LA(e,t.store,n),vu(e,EO(t.store))},V8=(e,t=new Uint8Array([0]),n=new Bl)=>{const r=CO(t);z8(n,e,r);const i=[n.toUint8Array()];if(e.store.pendingDs&&i.push(e.store.pendingDs),e.store.pendingStructs&&i.push(uY(e.store.pendingStructs.update,t)),i.length>1){if(n.constructor===Qd)return lY(i.map((o,s)=>s===0?o:hY(o)));if(n.constructor===Bl)return ef(i)}return i[0]},YA=(e,t)=>V8(e,t,new Qd),j8=e=>{const t=new Map,n=Tt(e.restDecoder);for(let r=0;r<n;r++){const i=Tt(e.restDecoder),o=Tt(e.restDecoder);t.set(i,o)}return t},CO=e=>j8(new DO(xs(e))),NO=(e,t)=>(Xe(e.restEncoder,t.size),Cs(t.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{Xe(e.restEncoder,n),Xe(e.restEncoder,r)}),e),G8=(e,t)=>NO(e,Jd(t.store)),q8=(e,t=new _O)=>(e instanceof Map?NO(t,e):G8(t,e),t.toUint8Array()),FO=e=>q8(e,new wO);class W8{constructor(){this.l=[]}}const GD=()=>new W8,qD=(e,t)=>e.l.push(t),WD=(e,t)=>{const n=e.l,r=n.length;e.l=n.filter(i=>t!==i),r===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},OO=(e,t,n)=>FA(e.l,[t,n]);class Lc{constructor(t,n){this.client=t,this.clock=n}}const Fc=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,vt=(e,t)=>new Lc(e,t),bd=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw fi()},Ad=(e,t)=>{for(;t!==null;){if(t.parent===e)return!0;t=t.parent._item}return!1};class yd{constructor(t,n,r,i=0){this.type=t,this.tname=n,this.item=r,this.assoc=i}}const L0=e=>new yd(e.type==null?null:vt(e.type.client,e.type.clock),e.tname??null,e.item==null?null:vt(e.item.client,e.item.clock),e.assoc==null?0:e.assoc);class K8{constructor(t,n,r=0){this.type=t,this.index=n,this.assoc=r}}const Q8=(e,t,n=0)=>new K8(e,t,n),Ch=(e,t,n)=>{let r=null,i=null;return e._item===null?i=bd(e):r=vt(e._item.id.client,e._item.id.clock),new yd(r,i,t,n)},Tg=(e,t,n=0)=>{let r=e._start;if(n<0){if(t===0)return Ch(e,null,n);t--}for(;r!==null;){if(!r.deleted&&r.countable){if(r.length>t)return Ch(e,vt(r.id.client,r.id.clock+t),n);t-=r.length}if(r.right===null&&n<0)return Ch(e,r.lastId,n);r=r.right}return Ch(e,null,n)},J8=(e,t)=>{const n=Yc(e,t),r=t.clock-n.id.clock;return{item:n,diff:r}},X8=(e,t,n=!0)=>{const r=t.store,i=e.item,o=e.type,s=e.tname,a=e.assoc;let l=null,c=0;if(i!==null){if(Gn(r,i.client)<=i.clock)return null;const u=n?rb(r,i):J8(r,i),d=u.item;if(!(d instanceof hn))return null;if(l=d.parent,l._item===null||!l._item.deleted){c=d.deleted||!d.countable?0:u.diff+(a>=0?0:1);let h=d.left;for(;h!==null;)!h.deleted&&h.countable&&(c+=h.length),h=h.left}}else{if(s!==null)l=t.get(s);else if(o!==null){if(Gn(r,o.client)<=o.clock)return null;const{item:u}=n?rb(r,o):{item:Yc(r,o)};if(u instanceof hn&&u.content instanceof $o)l=u.content.type;else return null}else throw fi();a>=0?c=l._length:c=0}return Q8(l,c,e.assoc)},KD=(e,t)=>e===t||e!==null&&t!==null&&e.tname===t.tname&&Fc(e.item,t.item)&&Fc(e.type,t.type)&&e.assoc===t.assoc;class HA{constructor(t,n){this.ds=t,this.sv=n}}const xO=(e,t)=>new HA(e,t),bg=e=>xO(EO(e.store),Jd(e.store)),hl=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!Eu(t.ds,e.id),eb=(e,t)=>{const n=ji(e.meta,eb,_s),r=e.doc.store;n.has(t)||(t.sv.forEach((i,o)=>{i<Gn(r,o)&&oi(e,vt(o,i))}),Fa(e,t.ds,i=>{}),n.add(t))};class kO{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Jd=e=>{const t=new Map;return e.clients.forEach((n,r)=>{const i=n[n.length-1];t.set(r,i.id.clock+i.length)}),t},Gn=(e,t)=>{const n=e.clients.get(t);if(n===void 0)return 0;const r=n[n.length-1];return r.id.clock+r.length},RO=(e,t)=>{let n=e.clients.get(t.id.client);if(n===void 0)n=[],e.clients.set(t.id.client,n);else{const r=n[n.length-1];if(r.id.clock+r.length!==t.id.clock)throw fi()}n.push(t)},lo=(e,t)=>{let n=0,r=e.length-1,i=e[r],o=i.id.clock;if(o===t)return r;let s=Yo(t/(o+i.length-1)*r);for(;n<=r;){if(i=e[s],o=i.id.clock,o<=t){if(t<o+i.length)return s;n=s+1}else r=s-1;s=Yo((n+r)/2)}throw fi()},eY=(e,t)=>{const n=e.clients.get(t.client);return n[lo(n,t.clock)]},Yc=eY,tb=(e,t,n)=>{const r=lo(t,n),i=t[r];return i.id.clock<n&&i instanceof hn?(t.splice(r+1,0,sf(e,i,n-i.id.clock)),r+1):r},oi=(e,t)=>{const n=e.doc.store.clients.get(t.client);return n[tb(e,n,t.clock)]},QD=(e,t,n)=>{const r=t.clients.get(n.client),i=lo(r,n.clock),o=r[i];return n.clock!==o.id.clock+o.length-1&&o.constructor!==Hi&&r.splice(i+1,0,sf(e,o,n.clock-o.id.clock+1)),o},tY=(e,t,n)=>{const r=e.clients.get(t.id.client);r[lo(r,t.id.clock)]=n},MO=(e,t,n,r,i)=>{if(r===0)return;const o=n+r;let s=tb(e,t,n),a;do a=t[s++],o<a.id.clock+a.length&&tb(e,t,o),i(a);while(s<t.length&&t[s].id.clock<o)};class nY{constructor(t,n,r){this.doc=t,this.deleteSet=new yu,this.beforeState=Jd(t.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=n,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const JD=(e,t)=>t.deleteSet.clients.size===0&&!h7(t.afterState,(n,r)=>t.beforeState.get(r)!==n)?!1:(BA(t.deleteSet),P8(e,t),vu(e,t.deleteSet),!0),XD=(e,t,n)=>{const r=t._item;(r===null||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&ji(e.changed,t,_s).add(n)},gp=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted===n.deleted&&r.constructor===n.constructor&&r.mergeWith(n)){n instanceof hn&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r);continue}break}const o=t-i;return o&&e.splice(t+1-o,o),o},rY=(e,t,n)=>{for(const[r,i]of e.clients.entries()){const o=t.clients.get(r);for(let s=i.length-1;s>=0;s--){const a=i[s],l=a.clock+a.len;for(let c=lo(o,a.clock),u=o[c];c<o.length&&u.id.clock<l;u=o[++c]){const d=o[c];if(a.clock+a.len<=d.id.clock)break;d instanceof hn&&d.deleted&&!d.keep&&n(d)&&d.gc(t,!1)}}}},iY=(e,t)=>{e.clients.forEach((n,r)=>{const i=t.clients.get(r);for(let o=n.length-1;o>=0;o--){const s=n[o],a=ko(i.length-1,1+lo(i,s.clock+s.len-1));for(let l=a,c=i[l];l>0&&c.id.clock>=s.clock;c=i[l])l-=1+gp(i,l)}})},BO=(e,t)=>{if(t<e.length){const n=e[t],r=n.doc,i=r.store,o=n.deleteSet,s=n._mergeStructs;try{BA(o),n.afterState=Jd(n.doc.store),r.emit("beforeObserverCalls",[n,r]);const a=[];n.changed.forEach((l,c)=>a.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(n,l)})),a.push(()=>{n.changedParentTypes.forEach((l,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(l=l.filter(u=>u.target._item===null||!u.target._item.deleted),l.forEach(u=>{u.currentTarget=c,u._path=null}),l.sort((u,d)=>u.path.length-d.path.length),OO(c._dEH,l,n))})}),a.push(()=>r.emit("afterTransaction",[n,r])),FA(a,[]),n._needFormattingCleanup&&_Y(n)}finally{r.gc&&rY(o,i,r.gcFilter),iY(o,i),n.afterState.forEach((u,d)=>{const h=n.beforeState.get(d)||0;if(h!==u){const p=i.clients.get(d),m=ao(lo(p,h),1);for(let b=p.length-1;b>=m;)b-=1+gp(p,b)}});for(let u=s.length-1;u>=0;u--){const{client:d,clock:h}=s[u].id,p=i.clients.get(d),m=lo(p,h);m+1<p.length&&gp(p,m+1)>1||m>0&&gp(p,m)}if(!n.local&&n.afterState.get(r.clientID)!==n.beforeState.get(r.clientID)&&(M8(RA,pO,"[yjs] ",fO,mO,"Changed the client-id because another client seems to be using it."),r.clientID=vO()),r.emit("afterTransactionCleanup",[n,r]),r._observers.has("update")){const u=new Qd;JD(u,n)&&r.emit("update",[u.toUint8Array(),n.origin,r,n])}if(r._observers.has("updateV2")){const u=new Bl;JD(u,n)&&r.emit("updateV2",[u.toUint8Array(),n.origin,r,n])}const{subdocsAdded:a,subdocsLoaded:l,subdocsRemoved:c}=n;(a.size>0||c.size>0||l.size>0)&&(a.forEach(u=>{u.clientID=r.clientID,u.collectionid==null&&(u.collectionid=r.collectionid),r.subdocs.add(u)}),c.forEach(u=>r.subdocs.delete(u)),r.emit("subdocs",[{loaded:l,added:a,removed:c},r,n]),c.forEach(u=>u.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,e])):BO(e,t+1)}}},Tn=(e,t,n=null,r=!0)=>{const i=e._transactionCleanups;let o=!1,s=null;e._transaction===null&&(o=!0,e._transaction=new nY(e,n,r),i.push(e._transaction),i.length===1&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{s=t(e._transaction)}finally{if(o){const a=e._transaction===i[0];e._transaction=null,a&&BO(i,0)}}return s};class oY{constructor(t,n){this.insertions=n,this.deletions=t,this.meta=new Map}}const eS=(e,t,n)=>{Fa(e,n.deletions,r=>{r instanceof hn&&t.scope.some(i=>i===e.doc||Ad(i,r))&&GA(r,!1)})},tS=(e,t,n)=>{let r=null;const i=e.doc,o=e.scope;Tn(i,a=>{for(;t.length>0&&e.currStackItem===null;){const l=i.store,c=t.pop(),u=new Set,d=[];let h=!1;Fa(a,c.insertions,p=>{if(p instanceof hn){if(p.redone!==null){let{item:m,diff:b}=rb(l,p.id);b>0&&(m=oi(a,vt(m.id.client,m.id.clock+b))),p=m}!p.deleted&&o.some(m=>m===a.doc||Ad(m,p))&&d.push(p)}}),Fa(a,c.deletions,p=>{p instanceof hn&&o.some(m=>m===a.doc||Ad(m,p))&&!Eu(c.insertions,p.id)&&u.add(p)}),u.forEach(p=>{h=ex(a,p,u,c.insertions,e.ignoreRemoteMapChanges,e)!==null||h});for(let p=d.length-1;p>=0;p--){const m=d[p];e.deleteFilter(m)&&(m.delete(a),h=!0)}e.currStackItem=h?c:null}a.changed.forEach((l,c)=>{l.has(null)&&c._searchMarker&&(c._searchMarker.length=0)}),r=a},e);const s=e.currStackItem;if(s!=null){const a=r.changedParentTypes;e.emit("stack-item-popped",[{stackItem:s,type:n,changedParentTypes:a,origin:e},e]),e.currStackItem=null}return s};class sY extends QF{constructor(t,{captureTimeout:n=500,captureTransaction:r=l=>!0,deleteFilter:i=()=>!0,trackedOrigins:o=new Set([null]),ignoreRemoteMapChanges:s=!1,doc:a=qT(t)?t[0].doc:t instanceof Ya?t:t.doc}={}){super(),this.scope=[],this.doc=a,this.addToScope(t),this.deleteFilter=i,o.add(this),this.trackedOrigins=o,this.captureTransaction=r,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=s,this.captureTimeout=n,this.afterTransactionHandler=l=>{if(!this.captureTransaction(l)||!this.scope.some(A=>l.changedParentTypes.has(A)||A===this.doc)||!this.trackedOrigins.has(l.origin)&&(!l.origin||!this.trackedOrigins.has(l.origin.constructor)))return;const c=this.undoing,u=this.redoing,d=c?this.redoStack:this.undoStack;c?this.stopCapturing():u||this.clear(!1,!0);const h=new yu;l.afterState.forEach((A,v)=>{const D=l.beforeState.get(v)||0,C=A-D;C>0&&Td(h,v,D,C)});const p=Ca();let m=!1;if(this.lastChange>0&&p-this.lastChange<this.captureTimeout&&d.length>0&&!c&&!u){const A=d[d.length-1];A.deletions=XT([A.deletions,l.deleteSet]),A.insertions=XT([A.insertions,h])}else d.push(new oY(l.deleteSet,h)),m=!0;!c&&!u&&(this.lastChange=p),Fa(l,l.deleteSet,A=>{A instanceof hn&&this.scope.some(v=>v===l.doc||Ad(v,A))&&GA(A,!0)});const b=[{stackItem:d[d.length-1],origin:l.origin,type:c?"redo":"undo",changedParentTypes:l.changedParentTypes},this];m?this.emit("stack-item-added",b):this.emit("stack-item-updated",b)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(t){const n=new Set(this.scope);t=qT(t)?t:[t],t.forEach(r=>{n.has(r)||(n.add(r),(r instanceof Tr?r.doc!==this.doc:r!==this.doc)&&TO("[yjs#509] Not same Y.Doc"),this.scope.push(r))})}addTrackedOrigin(t){this.trackedOrigins.add(t)}removeTrackedOrigin(t){this.trackedOrigins.delete(t)}clear(t=!0,n=!0){(t&&this.canUndo()||n&&this.canRedo())&&this.doc.transact(r=>{t&&(this.undoStack.forEach(i=>eS(r,this,i)),this.undoStack=[]),n&&(this.redoStack.forEach(i=>eS(r,this,i)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:t,redoStackCleared:n}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let t;try{t=tS(this,this.undoStack,"undo")}finally{this.undoing=!1}return t}redo(){this.redoing=!0;let t;try{t=tS(this,this.redoStack,"redo")}finally{this.redoing=!1}return t}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}function*aY(e){const t=Tt(e.restDecoder);for(let n=0;n<t;n++){const r=Tt(e.restDecoder),i=e.readClient();let o=Tt(e.restDecoder);for(let s=0;s<r;s++){const a=e.readInfo();if(a===10){const l=Tt(e.restDecoder);yield new Zi(vt(i,o),l),o+=l}else if((Nm&a)!==0){const l=(a&(vs|Gr))===0,c=new hn(vt(i,o),null,(a&Gr)===Gr?e.readLeftID():null,null,(a&vs)===vs?e.readRightID():null,l?e.readParentInfo()?e.readString():e.readLeftID():null,l&&(a&fd)===fd?e.readString():null,tx(e,a));yield c,o+=c.length}else{const l=e.readLen();yield new Hi(vt(i,o),l),o+=l}}}}class ZA{constructor(t,n){this.gen=aY(t),this.curr=null,this.done=!1,this.filterSkips=n,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===Zi);return this.curr}}class PA{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}}const lY=e=>ef(e,SO,Qd),cY=(e,t)=>{if(e.constructor===Hi){const{client:n,clock:r}=e.id;return new Hi(vt(n,r+t),e.length-t)}else if(e.constructor===Zi){const{client:n,clock:r}=e.id;return new Zi(vt(n,r+t),e.length-t)}else{const n=e,{client:r,clock:i}=n.id;return new hn(vt(r,i+t),null,vt(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},ef=(e,t=Jc,n=Bl)=>{if(e.length===1)return e[0];const r=e.map(u=>new t(xs(u)));let i=r.map(u=>new ZA(u,!0)),o=null;const s=new n,a=new PA(s);for(;i=i.filter(u=>u.curr!==null),i.sort((u,d)=>{if(u.curr.id.client===d.curr.id.client){const h=u.curr.id.clock-d.curr.id.clock;return h===0?u.curr.constructor===d.curr.constructor?0:u.curr.constructor===Zi?1:-1:h}else return d.curr.id.client-u.curr.id.client}),i.length!==0;){const u=i[0],d=u.curr.id.client;if(o!==null){let h=u.curr,p=!1;for(;h!==null&&h.id.clock+h.length<=o.struct.id.clock+o.struct.length&&h.id.client>=o.struct.id.client;)h=u.next(),p=!0;if(h===null||h.id.client!==d||p&&h.id.clock>o.struct.id.clock+o.struct.length)continue;if(d!==o.struct.id.client)ta(a,o.struct,o.offset),o={struct:h,offset:0},u.next();else if(o.struct.id.clock+o.struct.length<h.id.clock)if(o.struct.constructor===Zi)o.struct.length=h.id.clock+h.length-o.struct.id.clock;else{ta(a,o.struct,o.offset);const m=h.id.clock-o.struct.id.clock-o.struct.length;o={struct:new Zi(vt(d,o.struct.id.clock+o.struct.length),m),offset:0}}else{const m=o.struct.id.clock+o.struct.length-h.id.clock;m>0&&(o.struct.constructor===Zi?o.struct.length-=m:h=cY(h,m)),o.struct.mergeWith(h)||(ta(a,o.struct,o.offset),o={struct:h,offset:0},u.next())}}else o={struct:u.curr,offset:0},u.next();for(let h=u.curr;h!==null&&h.id.client===d&&h.id.clock===o.struct.id.clock+o.struct.length&&h.constructor!==Zi;h=u.next())ta(a,o.struct,o.offset),o={struct:h,offset:0}}o!==null&&(ta(a,o.struct,o.offset),o=null),$A(a);const l=r.map(u=>IA(u)),c=XT(l);return vu(s,c),s.toUint8Array()},uY=(e,t,n=Jc,r=Bl)=>{const i=CO(t),o=new r,s=new PA(o),a=new n(xs(e)),l=new ZA(a,!1);for(;l.curr;){const u=l.curr,d=u.id.client,h=i.get(d)||0;if(l.curr.constructor===Zi){l.next();continue}if(u.id.clock+u.length>h)for(ta(s,u,ao(h-u.id.clock,0)),l.next();l.curr&&l.curr.id.client===d;)ta(s,l.curr,0),l.next();else for(;l.curr&&l.curr.id.client===d&&l.curr.id.clock+l.curr.length<=h;)l.next()}$A(s);const c=IA(a);return vu(o,c),o.toUint8Array()},IO=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:Cn(e.encoder.restEncoder)}),e.encoder.restEncoder=er(),e.written=0)},ta=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&IO(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),Xe(e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},$A=e=>{IO(e);const t=e.encoder.restEncoder;Xe(t,e.clientStructs.length);for(let n=0;n<e.clientStructs.length;n++){const r=e.clientStructs[n];Xe(t,r.written),Fm(t,r.restEncoder)}},dY=(e,t,n,r)=>{const i=new n(xs(e)),o=new ZA(i,!1),s=new r,a=new PA(s);for(let c=o.curr;c!==null;c=o.next())ta(a,t(c),0);$A(a);const l=IA(i);return vu(s,l),s.toUint8Array()},hY=e=>dY(e,l8,Jc,Qd),nS="You must not compute changes after the event-handler fired.";class xm{constructor(t,n){this.target=t,this.currentTarget=t,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=pY(this.currentTarget,this.target))}deletes(t){return Eu(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw _a(nS);const t=new Map,n=this.target;this.transaction.changed.get(n).forEach(r=>{if(r!==null){const i=n._map.get(r);let o,s;if(this.adds(i)){let a=i.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(i))if(a!==null&&this.deletes(a))o="delete",s=dg(a.content.getContent());else return;else a!==null&&this.deletes(a)?(o="update",s=dg(a.content.getContent())):(o="add",s=void 0)}else if(this.deletes(i))o="delete",s=dg(i.content.getContent());else return;t.set(r,{action:o,oldValue:s})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw _a(nS);const n=this.target,r=_s(),i=_s(),o=[];if(t={added:r,deleted:i,delta:o,keys:this.keys},this.transaction.changed.get(n).has(null)){let s=null;const a=()=>{s&&o.push(s)};for(let l=n._start;l!==null;l=l.right)l.deleted?this.deletes(l)&&!this.adds(l)&&((s===null||s.delete===void 0)&&(a(),s={delete:0}),s.delete+=l.length,i.add(l)):this.adds(l)?((s===null||s.insert===void 0)&&(a(),s={insert:[]}),s.insert=s.insert.concat(l.content.getContent()),r.add(l)):((s===null||s.retain===void 0)&&(a(),s={retain:0}),s.retain+=l.length);s!==null&&s.retain===void 0&&a()}this._changes=t}return t}}const pY=(e,t)=>{const n=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)n.unshift(t._item.parentSub);else{let r=0,i=t._item.parent._start;for(;i!==t._item&&i!==null;)!i.deleted&&i.countable&&(r+=i.length),i=i.right;n.unshift(r)}t=t._item.parent}return n},Rr=()=>{TO("Invalid access: Add Yjs type to a document before reading data.")},LO=80;let UA=0;class fY{constructor(t,n){t.marker=!0,this.p=t,this.index=n,this.timestamp=UA++}}const mY=e=>{e.timestamp=UA++},YO=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=UA++},gY=(e,t,n)=>{if(e.length>=LO){const r=e.reduce((i,o)=>i.timestamp<o.timestamp?i:o);return YO(r,t,n),r}else{const r=new fY(t,n);return e.push(r),r}},km=(e,t)=>{if(e._start===null||t===0||e._searchMarker===null)return null;const n=e._searchMarker.length===0?null:e._searchMarker.reduce((o,s)=>pp(t-o.index)<pp(t-s.index)?o:s);let r=e._start,i=0;for(n!==null&&(r=n.p,i=n.index,mY(n));r.right!==null&&i<t;){if(!r.deleted&&r.countable){if(t<i+r.length)break;i+=r.length}r=r.right}for(;r.left!==null&&i>t;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);for(;r.left!==null&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock;)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return n!==null&&pp(n.index-i)<r.parent.length/LO?(YO(n,r,i),n):gY(e._searchMarker,r,i)},Ed=(e,t,n)=>{for(let r=e.length-1;r>=0;r--){const i=e[r];if(n>0){let o=i.p;for(o.marker=!1;o&&(o.deleted||!o.countable);)o=o.left,o&&!o.deleted&&o.countable&&(i.index-=o.length);if(o===null||o.marker===!0){e.splice(r,1);continue}i.p=o,o.marker=!0}(t<i.index||n>0&&t===i.index)&&(i.index=ao(t,i.index+n))}},Rm=(e,t,n)=>{const r=e,i=t.changedParentTypes;for(;ji(i,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;OO(r._eH,n,t)};class Tr{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=GD(),this._dEH=GD(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,n){this.doc=t,this._item=n}_copy(){throw no()}clone(){throw no()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,n){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){qD(this._eH,t)}observeDeep(t){qD(this._dEH,t)}unobserve(t){WD(this._eH,t)}unobserveDeep(t){WD(this._dEH,t)}toJSON(){}}const HO=(e,t,n)=>{e.doc??Rr(),t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t;const i=[];let o=e._start;for(;o!==null&&r>0;){if(o.countable&&!o.deleted){const s=o.content.getContent();if(s.length<=t)t-=s.length;else{for(let a=t;a<s.length&&r>0;a++)i.push(s[a]),r--;t=0}}o=o.right}return i},ZO=e=>{e.doc??Rr();const t=[];let n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){const r=n.content.getContent();for(let i=0;i<r.length;i++)t.push(r[i])}n=n.right}return t},PO=(e,t)=>{const n=[];let r=e._start;for(;r!==null;){if(r.countable&&hl(r,t)){const i=r.content.getContent();for(let o=0;o<i.length;o++)n.push(i[o])}r=r.right}return n},vd=(e,t)=>{let n=0,r=e._start;for(e.doc??Rr();r!==null;){if(r.countable&&!r.deleted){const i=r.content.getContent();for(let o=0;o<i.length;o++)t(i[o],n++,e)}r=r.right}},$O=(e,t)=>{const n=[];return vd(e,(r,i)=>{n.push(t(r,i,e))}),n},TY=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}const i=n[r++];return n.length<=r&&(n=null),{done:!1,value:i}}}},UO=(e,t)=>{e.doc??Rr();const n=km(e,t);let r=e._start;for(n!==null&&(r=n.p,t-=n.index);r!==null;r=r.right)if(!r.deleted&&r.countable){if(t<r.length)return r.content.getContent()[t];t-=r.length}},tf=(e,t,n,r)=>{let i=n;const o=e.doc,s=o.clientID,a=o.store,l=n===null?t._start:n.right;let c=[];const u=()=>{c.length>0&&(i=new hn(vt(s,Gn(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new Ll(c)),i.integrate(e,0),c=[])};r.forEach(d=>{if(d===null)c.push(d);else switch(d.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(d);break;default:switch(u(),d.constructor){case Uint8Array:case ArrayBuffer:i=new hn(vt(s,Gn(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new Xd(new Uint8Array(d))),i.integrate(e,0);break;case Ya:i=new hn(vt(s,Gn(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new eh(d)),i.integrate(e,0);break;default:if(d instanceof Tr)i=new hn(vt(s,Gn(a,s)),i,i&&i.lastId,l,l&&l.id,t,null,new $o(d)),i.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),u()},zO=()=>_a("Length exceeded!"),VO=(e,t,n,r)=>{if(n>t._length)throw zO();if(n===0)return t._searchMarker&&Ed(t._searchMarker,n,r.length),tf(e,t,null,r);const i=n,o=km(t,n);let s=t._start;for(o!==null&&(s=o.p,n-=o.index,n===0&&(s=s.prev,n+=s&&s.countable&&!s.deleted?s.length:0));s!==null;s=s.right)if(!s.deleted&&s.countable){if(n<=s.length){n<s.length&&oi(e,vt(s.id.client,s.id.clock+n));break}n-=s.length}return t._searchMarker&&Ed(t._searchMarker,i,r.length),tf(e,t,s,r)},bY=(e,t,n)=>{let r=(t._searchMarker||[]).reduce((i,o)=>o.index>i.index?o:i,{index:0,p:t._start}).p;if(r)for(;r.right;)r=r.right;return tf(e,t,r,n)},jO=(e,t,n,r)=>{if(r===0)return;const i=n,o=r,s=km(t,n);let a=t._start;for(s!==null&&(a=s.p,n-=s.index);a!==null&&n>0;a=a.right)!a.deleted&&a.countable&&(n<a.length&&oi(e,vt(a.id.client,a.id.clock+n)),n-=a.length);for(;r>0&&a!==null;)a.deleted||(r<a.length&&oi(e,vt(a.id.client,a.id.clock+r)),a.delete(e),r-=a.length),a=a.right;if(r>0)throw zO();t._searchMarker&&Ed(t._searchMarker,i,-o+r)},nf=(e,t,n)=>{const r=t._map.get(n);r!==void 0&&r.delete(e)},zA=(e,t,n,r)=>{const i=t._map.get(n)||null,o=e.doc,s=o.clientID;let a;if(r==null)a=new Ll([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:a=new Ll([r]);break;case Uint8Array:a=new Xd(r);break;case Ya:a=new eh(r);break;default:if(r instanceof Tr)a=new $o(r);else throw new Error("Unexpected content type")}new hn(vt(s,Gn(o.store,s)),i,i&&i.lastId,null,null,t,n,a).integrate(e,0)},VA=(e,t)=>{e.doc??Rr();const n=e._map.get(t);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},GO=e=>{const t={};return e.doc??Rr(),e._map.forEach((n,r)=>{n.deleted||(t[r]=n.content.getContent()[n.length-1])}),t},qO=(e,t)=>{e.doc??Rr();const n=e._map.get(t);return n!==void 0&&!n.deleted},AY=(e,t)=>{const n={};return e._map.forEach((r,i)=>{let o=r;for(;o!==null&&(!t.sv.has(o.id.client)||o.id.clock>=(t.sv.get(o.id.client)||0));)o=o.left;o!==null&&hl(o,t)&&(n[i]=o.content.getContent()[o.length-1])}),n},Nh=e=>(e.doc??Rr(),B8(e._map.entries(),t=>!t[1].deleted));class yY extends xm{}class Hc extends Tr{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){const n=new Hc;return n.push(t),n}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Hc}clone(){const t=new Hc;return t.insert(0,this.toArray().map(n=>n instanceof Tr?n.clone():n)),t}get length(){return this.doc??Rr(),this._length}_callObserver(t,n){super._callObserver(t,n),Rm(this,t,new yY(this,t))}insert(t,n){this.doc!==null?Tn(this.doc,r=>{VO(r,this,t,n)}):this._prelimContent.splice(t,0,...n)}push(t){this.doc!==null?Tn(this.doc,n=>{bY(n,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,n=1){this.doc!==null?Tn(this.doc,r=>{jO(r,this,t,n)}):this._prelimContent.splice(t,n)}get(t){return UO(this,t)}toArray(){return ZO(this)}slice(t=0,n=this.length){return HO(this,t,n)}toJSON(){return this.map(t=>t instanceof Tr?t.toJSON():t)}map(t){return $O(this,t)}forEach(t){vd(this,t)}[Symbol.iterator](){return TY(this)}_write(t){t.writeTypeRef(VY)}}const EY=e=>new Hc;class vY extends xm{constructor(t,n,r){super(t,n),this.keysChanged=r}}class Xc extends Tr{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,n){super._integrate(t,n),this._prelimContent.forEach((r,i)=>{this.set(i,r)}),this._prelimContent=null}_copy(){return new Xc}clone(){const t=new Xc;return this.forEach((n,r)=>{t.set(r,n instanceof Tr?n.clone():n)}),t}_callObserver(t,n){Rm(this,t,new vY(this,t,n))}toJSON(){this.doc??Rr();const t={};return this._map.forEach((n,r)=>{if(!n.deleted){const i=n.content.getContent()[n.length-1];t[r]=i instanceof Tr?i.toJSON():i}}),t}get size(){return[...Nh(this)].length}keys(){return gg(Nh(this),t=>t[0])}values(){return gg(Nh(this),t=>t[1].content.getContent()[t[1].length-1])}entries(){return gg(Nh(this),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this.doc??Rr(),this._map.forEach((n,r)=>{n.deleted||t(n.content.getContent()[n.length-1],r,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?Tn(this.doc,n=>{nf(n,this,t)}):this._prelimContent.delete(t)}set(t,n){return this.doc!==null?Tn(this.doc,r=>{zA(r,this,t,n)}):this._prelimContent.set(t,n),n}get(t){return VA(this,t)}has(t){return qO(this,t)}clear(){this.doc!==null?Tn(this.doc,t=>{this.forEach(function(n,r,i){nf(t,i,r)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(jY)}}const DY=e=>new Xc,da=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&s8(e,t);class nb{constructor(t,n,r,i){this.left=t,this.right=n,this.index=r,this.currentAttributes=i}forward(){switch(this.right===null&&fi(),this.right.content.constructor){case Qn:this.right.deleted||Du(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const rS=(e,t,n)=>{for(;t.right!==null&&n>0;){switch(t.right.content.constructor){case Qn:t.right.deleted||Du(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n<t.right.length&&oi(e,vt(t.right.id.client,t.right.id.clock+n)),t.index+=t.right.length,n-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},Fh=(e,t,n,r)=>{const i=new Map,o=r?km(t,n):null;if(o){const s=new nb(o.p.left,o.p,o.index,i);return rS(e,s,n-o.index)}else{const s=new nb(null,t._start,0,i);return rS(e,s,n)}},WO=(e,t,n,r)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===Qn&&da(r.get(n.right.content.key),n.right.content.value));)n.right.deleted||r.delete(n.right.content.key),n.forward();const i=e.doc,o=i.clientID;r.forEach((s,a)=>{const l=n.left,c=n.right,u=new hn(vt(o,Gn(i.store,o)),l,l&&l.lastId,c,c&&c.id,t,null,new Qn(a,s));u.integrate(e,0),n.right=u,n.forward()})},Du=(e,t)=>{const{key:n,value:r}=t;r===null?e.delete(n):e.set(n,r)},KO=(e,t)=>{for(;e.right!==null&&(e.right.deleted||e.right.content.constructor===Qn&&da(t[e.right.content.key]??null,e.right.content.value));)e.forward()},QO=(e,t,n,r)=>{const i=e.doc,o=i.clientID,s=new Map;for(const a in r){const l=r[a],c=n.currentAttributes.get(a)??null;if(!da(c,l)){s.set(a,c);const{left:u,right:d}=n;n.right=new hn(vt(o,Gn(i.store,o)),u,u&&u.lastId,d,d&&d.id,t,null,new Qn(a,l)),n.right.integrate(e,0),n.forward()}}return s},Ag=(e,t,n,r,i)=>{n.currentAttributes.forEach((h,p)=>{i[p]===void 0&&(i[p]=null)});const o=e.doc,s=o.clientID;KO(n,i);const a=QO(e,t,n,i),l=r.constructor===String?new co(r):r instanceof Tr?new $o(r):new zl(r);let{left:c,right:u,index:d}=n;t._searchMarker&&Ed(t._searchMarker,n.index,l.getLength()),u=new hn(vt(s,Gn(o.store,s)),c,c&&c.lastId,u,u&&u.id,t,null,l),u.integrate(e,0),n.right=u,n.index=d,n.forward(),WO(e,t,n,a)},iS=(e,t,n,r,i)=>{const o=e.doc,s=o.clientID;KO(n,i);const a=QO(e,t,n,i);e:for(;n.right!==null&&(r>0||a.size>0&&(n.right.deleted||n.right.content.constructor===Qn));){if(!n.right.deleted)switch(n.right.content.constructor){case Qn:{const{key:l,value:c}=n.right.content,u=i[l];if(u!==void 0){if(da(u,c))a.delete(l);else{if(r===0)break e;a.set(l,c)}n.right.delete(e)}else n.currentAttributes.set(l,c);break}default:r<n.right.length&&oi(e,vt(n.right.id.client,n.right.id.clock+r)),r-=n.right.length;break}n.forward()}if(r>0){let l="";for(;r>0;r--)l+=`
`;n.right=new hn(vt(s,Gn(o.store,s)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new co(l)),n.right.integrate(e,0),n.forward()}WO(e,t,n,a)},JO=(e,t,n,r,i)=>{let o=t;const s=jr();for(;o&&(!o.countable||o.deleted);){if(!o.deleted&&o.content.constructor===Qn){const c=o.content;s.set(c.key,c)}o=o.right}let a=0,l=!1;for(;t!==o;){if(n===t&&(l=!0),!t.deleted){const c=t.content;switch(c.constructor){case Qn:{const{key:u,value:d}=c,h=r.get(u)??null;(s.get(u)!==c||h===d)&&(t.delete(e),a++,!l&&(i.get(u)??null)===d&&h!==d&&(h===null?i.delete(u):i.set(u,h))),!l&&!t.deleted&&Du(i,c);break}}}t=t.right}return a},SY=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;const n=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===Qn){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},wY=e=>{let t=0;return Tn(e.doc,n=>{let r=e._start,i=e._start,o=jr();const s=GT(o);for(;i;){if(i.deleted===!1)switch(i.content.constructor){case Qn:Du(s,i.content);break;default:t+=JO(n,r,i,o,s),o=GT(s),r=i;break}i=i.right}}),t},_Y=e=>{const t=new Set,n=e.doc;for(const[r,i]of e.afterState.entries()){const o=e.beforeState.get(r)||0;i!==o&&MO(e,n.store.clients.get(r),o,i,s=>{!s.deleted&&s.content.constructor===Qn&&s.constructor!==Hi&&t.add(s.parent)})}Tn(n,r=>{Fa(e,e.deleteSet,i=>{if(i instanceof Hi||!i.parent._hasFormatting||t.has(i.parent))return;const o=i.parent;i.content.constructor===Qn?t.add(o):SY(r,i)});for(const i of t)wY(i)})},oS=(e,t,n)=>{const r=n,i=GT(t.currentAttributes),o=t.right;for(;n>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case $o:case zl:case co:n<t.right.length&&oi(e,vt(t.right.id.client,t.right.id.clock+n)),n-=t.right.length,t.right.delete(e);break}t.forward()}o&&JO(e,o,t.right,i,t.currentAttributes);const s=(t.left||t.right).parent;return s._searchMarker&&Ed(s._searchMarker,t.index,-r+n),t};class CY extends xm{constructor(t,n,r){super(t,n),this.childListChanged=!1,this.keysChanged=new Set,r.forEach(i=>{i===null?this.childListChanged=!0:this.keysChanged.add(i)})}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc,n=[];Tn(t,r=>{const i=new Map,o=new Map;let s=this.target._start,a=null;const l={};let c="",u=0,d=0;const h=()=>{if(a!==null){let p=null;switch(a){case"delete":d>0&&(p={delete:d}),d=0;break;case"insert":(typeof c=="object"||c.length>0)&&(p={insert:c},i.size>0&&(p.attributes={},i.forEach((m,b)=>{m!==null&&(p.attributes[b]=m)}))),c="";break;case"retain":u>0&&(p={retain:u},o8(l)||(p.attributes=n8({},l))),u=0;break}p&&n.push(p),a=null}};for(;s!==null;){switch(s.content.constructor){case $o:case zl:this.adds(s)?this.deletes(s)||(h(),a="insert",c=s.content.getContent()[0],h()):this.deletes(s)?(a!=="delete"&&(h(),a="delete"),d+=1):s.deleted||(a!=="retain"&&(h(),a="retain"),u+=1);break;case co:this.adds(s)?this.deletes(s)||(a!=="insert"&&(h(),a="insert"),c+=s.content.str):this.deletes(s)?(a!=="delete"&&(h(),a="delete"),d+=s.length):s.deleted||(a!=="retain"&&(h(),a="retain"),u+=s.length);break;case Qn:{const{key:p,value:m}=s.content;if(this.adds(s)){if(!this.deletes(s)){const b=i.get(p)??null;da(b,m)?m!==null&&s.delete(r):(a==="retain"&&h(),da(m,o.get(p)??null)?delete l[p]:l[p]=m)}}else if(this.deletes(s)){o.set(p,m);const b=i.get(p)??null;da(b,m)||(a==="retain"&&h(),l[p]=b)}else if(!s.deleted){o.set(p,m);const b=l[p];b!==void 0&&(da(b,m)?b!==null&&s.delete(r):(a==="retain"&&h(),m===null?delete l[p]:l[p]=m))}s.deleted||(a==="insert"&&h(),Du(i,s.content));break}}s=s.right}for(h();n.length>0;){const p=n[n.length-1];if(p.retain!==void 0&&p.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class Il extends Tr{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??Rr(),this._length}_integrate(t,n){super._integrate(t,n);try{this._pending.forEach(r=>r())}catch(r){console.error(r)}this._pending=null}_copy(){return new Il}clone(){const t=new Il;return t.applyDelta(this.toDelta()),t}_callObserver(t,n){super._callObserver(t,n);const r=new CY(this,t,n);Rm(this,t,r),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){this.doc??Rr();let t="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===co&&(t+=n.content.str),n=n.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:n=!0}={}){this.doc!==null?Tn(this.doc,r=>{const i=new nb(null,this._start,0,new Map);for(let o=0;o<t.length;o++){const s=t[o];if(s.insert!==void 0){const a=!n&&typeof s.insert=="string"&&o===t.length-1&&i.right===null&&s.insert.slice(-1)===`
`?s.insert.slice(0,-1):s.insert;(typeof a!="string"||a.length>0)&&Ag(r,this,i,a,s.attributes||{})}else s.retain!==void 0?iS(r,this,i,s.retain,s.attributes||{}):s.delete!==void 0&&oS(r,i,s.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,n,r){this.doc??Rr();const i=[],o=new Map,s=this.doc;let a="",l=this._start;function c(){if(a.length>0){const d={};let h=!1;o.forEach((m,b)=>{h=!0,d[b]=m});const p={insert:a};h&&(p.attributes=d),i.push(p),a=""}}const u=()=>{for(;l!==null;){if(hl(l,t)||n!==void 0&&hl(l,n))switch(l.content.constructor){case co:{const d=o.get("ychange");t!==void 0&&!hl(l,t)?(d===void 0||d.user!==l.id.client||d.type!=="removed")&&(c(),o.set("ychange",r?r("removed",l.id):{type:"removed"})):n!==void 0&&!hl(l,n)?(d===void 0||d.user!==l.id.client||d.type!=="added")&&(c(),o.set("ychange",r?r("added",l.id):{type:"added"})):d!==void 0&&(c(),o.delete("ychange")),a+=l.content.str;break}case $o:case zl:{c();const d={insert:l.content.getContent()[0]};if(o.size>0){const h={};d.attributes=h,o.forEach((p,m)=>{h[m]=p})}i.push(d);break}case Qn:hl(l,t)&&(c(),Du(o,l.content));break}l=l.right}c()};return t||n?Tn(s,d=>{t&&eb(d,t),n&&eb(d,n),u()},"cleanup"):u(),i}insert(t,n,r){if(n.length<=0)return;const i=this.doc;i!==null?Tn(i,o=>{const s=Fh(o,this,t,!r);r||(r={},s.currentAttributes.forEach((a,l)=>{r[l]=a})),Ag(o,this,s,n,r)}):this._pending.push(()=>this.insert(t,n,r))}insertEmbed(t,n,r){const i=this.doc;i!==null?Tn(i,o=>{const s=Fh(o,this,t,!r);Ag(o,this,s,n,r||{})}):this._pending.push(()=>this.insertEmbed(t,n,r||{}))}delete(t,n){if(n===0)return;const r=this.doc;r!==null?Tn(r,i=>{oS(i,Fh(i,this,t,!0),n)}):this._pending.push(()=>this.delete(t,n))}format(t,n,r){if(n===0)return;const i=this.doc;i!==null?Tn(i,o=>{const s=Fh(o,this,t,!1);s.right!==null&&iS(o,this,s,n,r)}):this._pending.push(()=>this.format(t,n,r))}removeAttribute(t){this.doc!==null?Tn(this.doc,n=>{nf(n,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,n){this.doc!==null?Tn(this.doc,r=>{zA(r,this,t,n)}):this._pending.push(()=>this.setAttribute(t,n))}getAttribute(t){return VA(this,t)}getAttributes(){return GO(this)}_write(t){t.writeTypeRef(GY)}}const NY=e=>new Il;class yg{constructor(t,n=()=>!0){this._filter=n,this._root=t,this._currentNode=t._start,this._firstCall=!0,t.doc??Rr()}[Symbol.iterator](){return this}next(){let t=this._currentNode,n=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(n)))do if(n=t.content.type,!t.deleted&&(n.constructor===zr||n.constructor===Oa)&&n._start!==null)t=n._start;else for(;t!==null;){const r=t.next;if(r!==null){t=r;break}else t.parent===this._root?t=null:t=t.parent._item}while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}}class Oa extends Tr{constructor(){super(),this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,n){super._integrate(t,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Oa}clone(){const t=new Oa;return t.insert(0,this.toArray().map(n=>n instanceof Tr?n.clone():n)),t}get length(){return this.doc??Rr(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new yg(this,t)}querySelector(t){t=t.toUpperCase();const n=new yg(this,r=>r.nodeName&&r.nodeName.toUpperCase()===t).next();return n.done?null:n.value}querySelectorAll(t){return t=t.toUpperCase(),Cs(new yg(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t))}_callObserver(t,n){Rm(this,t,new xY(this,n,t))}toString(){return $O(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,n={},r){const i=t.createDocumentFragment();return r!==void 0&&r._createAssociation(i,this),vd(this,o=>{i.insertBefore(o.toDOM(t,n,r),null)}),i}insert(t,n){this.doc!==null?Tn(this.doc,r=>{VO(r,this,t,n)}):this._prelimContent.splice(t,0,...n)}insertAfter(t,n){if(this.doc!==null)Tn(this.doc,r=>{const i=t&&t instanceof Tr?t._item:t;tf(r,this,i,n)});else{const r=this._prelimContent,i=t===null?0:r.findIndex(o=>o===t)+1;if(i===0&&t!==null)throw _a("Reference item not found");r.splice(i,0,...n)}}delete(t,n=1){this.doc!==null?Tn(this.doc,r=>{jO(r,this,t,n)}):this._prelimContent.splice(t,n)}toArray(){return ZO(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return UO(this,t)}slice(t=0,n=this.length){return HO(this,t,n)}forEach(t){vd(this,t)}_write(t){t.writeTypeRef(WY)}}const FY=e=>new Oa;class zr extends Oa{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,n){super._integrate(t,n),this._prelimAttrs.forEach((r,i)=>{this.setAttribute(i,r)}),this._prelimAttrs=null}_copy(){return new zr(this.nodeName)}clone(){const t=new zr(this.nodeName),n=this.getAttributes();return r8(n,(r,i)=>{typeof r=="string"&&t.setAttribute(i,r)}),t.insert(0,this.toArray().map(r=>r instanceof Tr?r.clone():r)),t}toString(){const t=this.getAttributes(),n=[],r=[];for(const a in t)r.push(a);r.sort();const i=r.length;for(let a=0;a<i;a++){const l=r[a];n.push(l+'="'+t[l]+'"')}const o=this.nodeName.toLocaleLowerCase(),s=n.length>0?" "+n.join(" "):"";return`<${o}${s}>${super.toString()}</${o}>`}removeAttribute(t){this.doc!==null?Tn(this.doc,n=>{nf(n,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,n){this.doc!==null?Tn(this.doc,r=>{zA(r,this,t,n)}):this._prelimAttrs.set(t,n)}getAttribute(t){return VA(this,t)}hasAttribute(t){return qO(this,t)}getAttributes(t){return t?AY(this,t):GO(this)}toDOM(t=document,n={},r){const i=t.createElement(this.nodeName),o=this.getAttributes();for(const s in o){const a=o[s];typeof a=="string"&&i.setAttribute(s,a)}return vd(this,s=>{i.appendChild(s.toDOM(t,n,r))}),r!==void 0&&r._createAssociation(i,this),i}_write(t){t.writeTypeRef(qY),t.writeKey(this.nodeName)}}const OY=e=>new zr(e.readKey());class xY extends xm{constructor(t,n,r){super(t,r),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(i=>{i===null?this.childListChanged=!0:this.attributesChanged.add(i)})}}class rf extends Xc{constructor(t){super(),this.hookName=t}_copy(){return new rf(this.hookName)}clone(){const t=new rf(this.hookName);return this.forEach((n,r)=>{t.set(r,n)}),t}toDOM(t=document,n={},r){const i=n[this.hookName];let o;return i!==void 0?o=i.createDom(this):o=document.createElement(this.hookName),o.setAttribute("data-yjs-hook",this.hookName),r!==void 0&&r._createAssociation(o,this),o}_write(t){t.writeTypeRef(KY),t.writeKey(this.hookName)}}const kY=e=>new rf(e.readKey());class ci extends Il{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new ci}clone(){const t=new ci;return t.applyDelta(this.toDelta()),t}toDOM(t=document,n,r){const i=t.createTextNode(this.toString());return r!==void 0&&r._createAssociation(i,this),i}toString(){return this.toDelta().map(t=>{const n=[];for(const i in t.attributes){const o=[];for(const s in t.attributes[i])o.push({key:s,value:t.attributes[i][s]});o.sort((s,a)=>s.key<a.key?-1:1),n.push({nodeName:i,attrs:o})}n.sort((i,o)=>i.nodeName<o.nodeName?-1:1);let r="";for(let i=0;i<n.length;i++){const o=n[i];r+=`<${o.nodeName}`;for(let s=0;s<o.attrs.length;s++){const a=o.attrs[s];r+=` ${a.key}="${a.value}"`}r+=">"}r+=t.insert;for(let i=n.length-1;i>=0;i--)r+=`</${n[i].nodeName}>`;return r}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(QY)}}const RY=e=>new ci;class jA{constructor(t,n){this.id=t,this.length=n}get deleted(){throw no()}mergeWith(t){return!1}write(t,n,r){throw no()}integrate(t,n){throw no()}}const MY=0;class Hi extends jA{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){n>0&&(this.id.clock+=n,this.length-=n),RO(t.doc.store,this)}write(t,n){t.writeInfo(MY),t.writeLen(this.length-n)}getMissing(t,n){return null}}class Xd{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Xd(this.content)}splice(t){throw no()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeBuf(this.content)}getRef(){return 3}}const BY=e=>new Xd(e.readBuf());class Dd{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new Dd(this.len)}splice(t){const n=new Dd(this.len-t);return this.len=t,n}mergeWith(t){return this.len+=t.len,!0}integrate(t,n){Td(t.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(t){}gc(t){}write(t,n){t.writeLen(this.len-n)}getRef(){return 1}}const IY=e=>new Dd(e.readLen()),XO=(e,t)=>new Ya({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class eh{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;const n={};this.opts=n,t.gc||(n.gc=!1),t.autoLoad&&(n.autoLoad=!0),t.meta!==null&&(n.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new eh(XO(this.doc.guid,this.opts))}splice(t){throw no()}mergeWith(t){return!1}integrate(t,n){this.doc._item=n,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,n){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}}const LY=e=>new eh(XO(e.readString(),e.readAny()));class zl{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new zl(this.embed)}splice(t){throw no()}mergeWith(t){return!1}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeJSON(this.embed)}getRef(){return 5}}const YY=e=>new zl(e.readJSON());class Qn{constructor(t,n){this.key=t,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new Qn(this.key,this.value)}splice(t){throw no()}mergeWith(t){return!1}integrate(t,n){const r=n.parent;r._searchMarker=null,r._hasFormatting=!0}delete(t){}gc(t){}write(t,n){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}}const HY=e=>new Qn(e.readKey(),e.readJSON());class of{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new of(this.arr)}splice(t){const n=new of(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){const r=this.arr.length;t.writeLen(r-n);for(let i=n;i<r;i++){const o=this.arr[i];t.writeString(o===void 0?"undefined":JSON.stringify(o))}}getRef(){return 2}}const ZY=e=>{const t=e.readLen(),n=[];for(let r=0;r<t;r++){const i=e.readString();i==="undefined"?n.push(void 0):n.push(JSON.parse(i))}return new of(n)},PY=Jp("node_env")==="development";class Ll{constructor(t){this.arr=t,PY&&lO(t)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Ll(this.arr)}splice(t){const n=new Ll(this.arr.slice(t));return this.arr=this.arr.slice(0,t),n}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){const r=this.arr.length;t.writeLen(r-n);for(let i=n;i<r;i++){const o=this.arr[i];t.writeAny(o)}}getRef(){return 8}}const $Y=e=>{const t=e.readLen(),n=[];for(let r=0;r<t;r++)n.push(e.readAny());return new Ll(n)};class co{constructor(t){this.str=t}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new co(this.str)}splice(t){const n=new co(this.str.slice(t));this.str=this.str.slice(0,t);const r=this.str.charCodeAt(t-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,t-1)+"�",n.str="�"+n.str.slice(1)),n}mergeWith(t){return this.str+=t.str,!0}integrate(t,n){}delete(t){}gc(t){}write(t,n){t.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const UY=e=>new co(e.readString()),zY=[EY,DY,NY,OY,FY,kY,RY],VY=0,jY=1,GY=2,qY=3,WY=4,KY=5,QY=6;class $o{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new $o(this.type._copy())}splice(t){throw no()}mergeWith(t){return!1}integrate(t,n){this.type._integrate(t.doc,n)}delete(t){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(t.beforeState.get(n.id.client)||0)&&t._mergeStructs.push(n):n.delete(t),n=n.right;this.type._map.forEach(r=>{r.deleted?r.id.clock<(t.beforeState.get(r.id.client)||0)&&t._mergeStructs.push(r):r.delete(t)}),t.changed.delete(this.type)}gc(t){let n=this.type._start;for(;n!==null;)n.gc(t,!0),n=n.right;this.type._start=null,this.type._map.forEach(r=>{for(;r!==null;)r.gc(t,!0),r=r.left}),this.type._map=new Map}write(t,n){this.type._write(t)}getRef(){return 7}}const JY=e=>new $o(zY[e.readTypeRef()](e)),rb=(e,t)=>{let n=t,r=0,i;do r>0&&(n=vt(n.client,n.clock+r)),i=Yc(e,n),r=n.clock-i.id.clock,n=i.redone;while(n!==null&&i instanceof hn);return{item:i,diff:r}},GA=(e,t)=>{for(;e!==null&&e.keep!==t;)e.keep=t,e=e.parent._item},sf=(e,t,n)=>{const{client:r,clock:i}=t.id,o=new hn(vt(r,i+n),t,vt(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&o.markDeleted(),t.keep&&(o.keep=!0),t.redone!==null&&(o.redone=vt(t.redone.client,t.redone.clock+n)),t.right=o,o.right!==null&&(o.right.left=o),e._mergeStructs.push(o),o.parentSub!==null&&o.right===null&&o.parent._map.set(o.parentSub,o),t.length=n,o},sS=(e,t)=>f7(e,n=>Eu(n.deletions,t)),ex=(e,t,n,r,i,o)=>{const s=e.doc,a=s.store,l=s.clientID,c=t.redone;if(c!==null)return oi(e,c);let u=t.parent._item,d=null,h;if(u!==null&&u.deleted===!0){if(u.redone===null&&(!n.has(u)||ex(e,u,n,r,i,o)===null))return null;for(;u.redone!==null;)u=oi(e,u.redone)}const p=u===null?t.parent:u.content.type;if(t.parentSub===null){for(d=t.left,h=t;d!==null;){let v=d;for(;v!==null&&v.parent._item!==u;)v=v.redone===null?null:oi(e,v.redone);if(v!==null&&v.parent._item===u){d=v;break}d=d.left}for(;h!==null;){let v=h;for(;v!==null&&v.parent._item!==u;)v=v.redone===null?null:oi(e,v.redone);if(v!==null&&v.parent._item===u){h=v;break}h=h.right}}else if(h=null,t.right&&!i){for(d=t;d!==null&&d.right!==null&&(d.right.redone||Eu(r,d.right.id)||sS(o.undoStack,d.right.id)||sS(o.redoStack,d.right.id));)for(d=d.right;d.redone;)d=oi(e,d.redone);if(d&&d.right!==null)return null}else d=p._map.get(t.parentSub)||null;const m=Gn(a,l),b=vt(l,m),A=new hn(b,d,d&&d.lastId,h,h&&h.id,p,t.parentSub,t.content.copy());return t.redone=b,GA(A,!0),A.integrate(e,0),A};class hn extends jA{constructor(t,n,r,i,o,s,a,l){super(t,l.getLength()),this.origin=r,this.left=n,this.right=i,this.rightOrigin=o,this.parent=s,this.parentSub=a,this.redone=null,this.content=l,this.info=this.content.isCountable()?BD:0}set marker(t){(this.info&pg)>0!==t&&(this.info^=pg)}get marker(){return(this.info&pg)>0}get keep(){return(this.info&MD)>0}set keep(t){this.keep!==t&&(this.info^=MD)}get countable(){return(this.info&BD)>0}get deleted(){return(this.info&hg)>0}set deleted(t){this.deleted!==t&&(this.info^=hg)}markDeleted(){this.info|=hg}getMissing(t,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Gn(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Gn(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Lc&&this.id.client!==this.parent.client&&this.parent.clock>=Gn(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=QD(t,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=oi(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Hi||this.right&&this.right.constructor===Hi)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===hn?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===hn&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Lc){const r=Yc(n,this.parent);r.constructor===Hi?this.parent=null:this.parent=r.content.type}return null}integrate(t,n){if(n>0&&(this.id.clock+=n,this.left=QD(t,t.doc.store,vt(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(n),this.length-=n),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let r=this.left,i;if(r!==null)i=r.right;else if(this.parentSub!==null)for(i=this.parent._map.get(this.parentSub)||null;i!==null&&i.left!==null;)i=i.left;else i=this.parent._start;const o=new Set,s=new Set;for(;i!==null&&i!==this.right;){if(s.add(i),o.add(i),Fc(this.origin,i.origin)){if(i.id.client<this.id.client)r=i,o.clear();else if(Fc(this.rightOrigin,i.rightOrigin))break}else if(i.origin!==null&&s.has(Yc(t.doc.store,i.origin)))o.has(Yc(t.doc.store,i.origin))||(r=i,o.clear());else break;i=i.right}this.left=r}if(this.left!==null){const r=this.left.right;this.right=r,this.left.right=this}else{let r;if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start,this.parent._start=this;this.right=r}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(t)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),RO(t.doc.store,this),this.content.integrate(t,this),XD(t,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(t)}else new Hi(this.id,this.length).integrate(t,0)}get next(){let t=this.right;for(;t!==null&&t.deleted;)t=t.right;return t}get prev(){let t=this.left;for(;t!==null&&t.deleted;)t=t.left;return t}get lastId(){return this.length===1?this.id:vt(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&Fc(t.origin,this.lastId)&&this.right===t&&Fc(this.rightOrigin,t.rightOrigin)&&this.id.client===t.id.client&&this.id.clock+this.length===t.id.clock&&this.deleted===t.deleted&&this.redone===null&&t.redone===null&&this.content.constructor===t.content.constructor&&this.content.mergeWith(t.content)){const n=this.parent._searchMarker;return n&&n.forEach(r=>{r.p===t&&(r.p=this,!this.deleted&&this.countable&&(r.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),Td(t.deleteSet,this.id.client,this.id.clock,this.length),XD(t,n,this.parentSub),this.content.delete(t)}}gc(t,n){if(!this.deleted)throw fi();this.content.gc(t),n?tY(t,this,new Hi(this.id,this.length)):this.content=new Dd(this.length)}write(t,n){const r=n>0?vt(this.id.client,this.id.clock+n-1):this.origin,i=this.rightOrigin,o=this.parentSub,s=this.content.getRef()&Nm|(r===null?0:Gr)|(i===null?0:vs)|(o===null?0:fd);if(t.writeInfo(s),r!==null&&t.writeLeftID(r),i!==null&&t.writeRightID(i),r===null&&i===null){const a=this.parent;if(a._item!==void 0){const l=a._item;if(l===null){const c=bd(a);t.writeParentInfo(!0),t.writeString(c)}else t.writeParentInfo(!1),t.writeLeftID(l.id)}else a.constructor===String?(t.writeParentInfo(!0),t.writeString(a)):a.constructor===Lc?(t.writeParentInfo(!1),t.writeLeftID(a)):fi();o!==null&&t.writeString(o)}this.content.write(t,n)}}const tx=(e,t)=>XY[t&Nm](e),XY=[()=>{fi()},IY,ZY,BY,UY,YY,HY,JY,$Y,LY,()=>{fi()}],eH=10;class Zi extends jA{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,n){fi()}write(t,n){t.writeInfo(eH),Xe(t.restEncoder,this.length-n)}getMissing(t,n){return null}}const aS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Av<"u"?Av:{},lS="__ $YJS$ __";aS[lS]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),aS[lS]=!0;const Eg=3e4;class tH extends JF{constructor(t){super(),this.doc=t,this.clientID=t.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const n=Ca();this.getLocalState()!==null&&Eg/2<=n-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const r=[];this.meta.forEach((i,o)=>{o!==this.clientID&&Eg<=n-i.lastUpdated&&this.states.has(o)&&r.push(o)}),r.length>0&&qA(this,r,"timeout")},Yo(Eg/10)),t.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(t){const n=this.clientID,r=this.meta.get(n),i=r===void 0?0:r.clock+1,o=this.states.get(n);t===null?this.states.delete(n):this.states.set(n,t),this.meta.set(n,{clock:i,lastUpdated:Ca()});const s=[],a=[],l=[],c=[];t===null?c.push(n):o==null?t!=null&&s.push(n):(a.push(n),I0(o,t)||l.push(n)),(s.length>0||l.length>0||c.length>0)&&this.emit("change",[{added:s,updated:l,removed:c},"local"]),this.emit("update",[{added:s,updated:a,removed:c},"local"])}setLocalStateField(t,n){const r=this.getLocalState();r!==null&&this.setLocalState({...r,[t]:n})}getStates(){return this.states}}const qA=(e,t,n)=>{const r=[];for(let i=0;i<t.length;i++){const o=t[i];if(e.states.has(o)){if(e.states.delete(o),o===e.clientID){const s=e.meta.get(o);e.meta.set(o,{clock:s.clock+1,lastUpdated:Ca()})}r.push(o)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},n]),e.emit("update",[{added:[],updated:[],removed:r},n]))},Y0=(e,t,n=e.states)=>{const r=t.length,i=er();Xe(i,r);for(let o=0;o<r;o++){const s=t[o],a=n.get(s)||null,l=e.meta.get(s).clock;Xe(i,s),Xe(i,l),Sl(i,JSON.stringify(a))}return Cn(i)},nH=(e,t,n)=>{const r=xs(t),i=Ca(),o=[],s=[],a=[],l=[],c=Tt(r);for(let u=0;u<c;u++){const d=Tt(r);let h=Tt(r);const p=JSON.parse(Aa(r)),m=e.meta.get(d),b=e.states.get(d),A=m===void 0?0:m.clock;(A<h||A===h&&p===null&&e.states.has(d))&&(p===null?d===e.clientID&&e.getLocalState()!=null?h++:e.states.delete(d):e.states.set(d,p),e.meta.set(d,{clock:h,lastUpdated:i}),m===void 0&&p!==null?o.push(d):m!==void 0&&p===null?l.push(d):p!==null&&(I0(p,b)||a.push(d),s.push(d)))}(o.length>0||a.length>0||l.length>0)&&e.emit("change",[{added:o,updated:a,removed:l},n]),(o.length>0||s.length>0||l.length>0)&&e.emit("update",[{added:o,updated:s,removed:l},n])},rH=()=>{let e=!0;return(t,n)=>{if(e){e=!1;try{t()}finally{e=!0}}else n!==void 0&&n()}},iH=/[\uD800-\uDBFF]/,oH=/[\uDC00-\uDFFF]/,sH=(e,t)=>{let n=0,r=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;for(n>0&&iH.test(e[n-1])&&n--;r+n<e.length&&r+n<t.length&&e[e.length-r-1]===t[t.length-r-1];)r++;return r>0&&oH.test(e[e.length-r])&&r--,{index:n,remove:e.length-n-r,insert:t.slice(n,t.length-r)}},aH=sH,tr=new Lt("y-sync"),lH=new Lt("y-undo"),Oh=new Lt("yjs-cursor"),Ro=(e,t)=>e>>>t|e<<32-t,cH=e=>Ro(e,2)^Ro(e,13)^Ro(e,22),uH=e=>Ro(e,6)^Ro(e,11)^Ro(e,25),dH=e=>Ro(e,7)^Ro(e,18)^e>>>3,hH=e=>Ro(e,17)^Ro(e,19)^e>>>10,pH=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),fH=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);class mH{constructor(){const t=new ArrayBuffer(320);this._H=new Uint32Array(t,0,8),this._H.set(fH),this._W=new Uint32Array(t,64,64)}_updateHash(){const t=this._H,n=this._W;for(let d=16;d<64;d++)n[d]=hH(n[d-2])+n[d-7]+dH(n[d-15])+n[d-16];let r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7];for(let d=0,h,p;d<64;d++)h=u+uH(a)+(a&l^~a&c)+pH[d]+n[d]>>>0,p=cH(r)+(r&i^r&o^i&o)>>>0,u=c,c=l,l=a,a=s+h>>>0,s=o,o=i,i=r,r=h+p>>>0;t[0]+=r,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=l,t[6]+=c,t[7]+=u}digest(t){let n=0;for(;n+56<=t.length;){let s=0;for(;s<16&&n+3<t.length;s++)this._W[s]=t[n++]<<24|t[n++]<<16|t[n++]<<8|t[n++];if(n%64!==0){for(this._W.fill(0,s,16);n<t.length;)this._W[s]|=t[n]<<(3-n%4)*8,n++;this._W[s]|=Gr<<(3-n%4)*8}this._updateHash()}const r=n%64!==0;this._W.fill(0,0,16);let i=0;for(;n<t.length;i++)for(let s=3;s>=0&&n<t.length;s--)this._W[i]|=t[n++]<<s*8;r||(this._W[i-(n%4===0?0:1)]|=Gr<<(3-n%4)*8),this._W[14]=t.byteLength/g7,this._W[15]=t.byteLength*8,this._updateHash();const o=new Uint8Array(32);for(let s=0;s<this._H.length;s++)for(let a=0;a<4;a++)o[s*4+a]=this._H[s]>>>(3-a)*8;return o}}const gH=e=>new mH().digest(e),TH=e=>{for(let t=6;t<e.length;t++)e[t%6]=e[t%6]^e[t];return e.slice(0,6)},bH=e=>xA(TH(gH(y8(e)))),af=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&t.sv.get(e.id.client)>e.id.clock&&!Eu(t.ds,e.id),AH=[{light:"#ecd44433",dark:"#ecd444"}],yH=(e,t,n)=>{if(!e.has(n)){if(e.size<t.length){const r=_s();e.forEach(i=>r.add(i)),t=t.filter(i=>!r.has(i))}e.set(n,W7(t))}return e.get(n)},lbe=(e,{colors:t=AH,colorMapping:n=new Map,permanentUserData:r=null,onFirstRender:i=()=>{},mapping:o}={})=>{let s=!1;const a=new vH(e,o),l=new kt({props:{editable:c=>{const u=tr.getState(c);return u.snapshot==null&&u.prevSnapshot==null}},key:tr,state:{init:(c,u)=>({type:e,doc:e.doc,binding:a,snapshot:null,prevSnapshot:null,isChangeOrigin:!1,isUndoRedoOperation:!1,addToHistory:!0,colors:t,colorMapping:n,permanentUserData:r}),apply:(c,u)=>{const d=c.getMeta(tr);if(d!==void 0){u=Object.assign({},u);for(const h in d)u[h]=d[h]}return u.addToHistory=c.getMeta("addToHistory")!==!1,u.isChangeOrigin=d!==void 0&&!!d.isChangeOrigin,u.isUndoRedoOperation=d!==void 0&&!!d.isChangeOrigin&&!!d.isUndoRedoOperation,a.prosemirrorView!==null&&d!==void 0&&(d.snapshot!=null||d.prevSnapshot!=null)&&kA(0,()=>{a.prosemirrorView!=null&&(d.restore==null?a._renderSnapshot(d.snapshot,d.prevSnapshot,u):(a._renderSnapshot(d.snapshot,d.snapshot,u),delete u.restore,delete u.snapshot,delete u.prevSnapshot,a.mux(()=>{a._prosemirrorChanged(a.prosemirrorView.state.doc)})))}),u}},view:c=>(a.initView(c),o==null&&a._forceRerender(),i(),{update:()=>{const u=l.getState(c.state);if(u.snapshot==null&&u.prevSnapshot==null&&(s||c.state.doc.content.findDiffStart(c.state.doc.type.createAndFill().content)!==null)){if(s=!0,u.addToHistory===!1&&!u.isChangeOrigin){const d=lH.getState(c.state),h=d&&d.undoManager;h&&h.stopCapturing()}a.mux(()=>{u.doc.transact(d=>{d.meta.set("addToHistory",u.addToHistory),a._prosemirrorChanged(c.state.doc)},tr)})}},destroy:()=>{a.destroy()}})});return l},EH=(e,t,n)=>{if(t!==null&&t.anchor!==null&&t.head!==null)if(t.type==="all")e.setSelection(new ai(e.doc));else if(t.type==="node"){const r=Zc(n.doc,n.type,t.anchor,n.mapping);e.setSelection(We.create(e.doc,r))}else{const r=Zc(n.doc,n.type,t.anchor,n.mapping),i=Zc(n.doc,n.type,t.head,n.mapping);if(r!==null&&i!==null){const o=Ke.between(e.doc.resolve(r),e.doc.resolve(i));e.setSelection(o)}}},cS=(e,t)=>({type:t.selection.jsonID,anchor:uf(t.selection.anchor,e.type,e.mapping),head:uf(t.selection.head,e.type,e.mapping)});class vH{constructor(t,n=new Map){this.type=t,this.prosemirrorView=null,this.mux=rH(),this.mapping=n,this.isOMark=new Map,this._observeFunction=this._typeChanged.bind(this),this.doc=t.doc,this.beforeTransactionSelection=null,this.beforeAllTransactions=()=>{this.beforeTransactionSelection===null&&this.prosemirrorView!=null&&(this.beforeTransactionSelection=cS(this,this.prosemirrorView.state))},this.afterAllTransactions=()=>{this.beforeTransactionSelection=null},this._domSelectionInView=null}get _tr(){return this.prosemirrorView.state.tr.setMeta("addToHistory",!1)}_isLocalCursorInView(){return this.prosemirrorView.hasFocus()?(OA&&this._domSelectionInView===null&&(kA(0,()=>{this._domSelectionInView=null}),this._domSelectionInView=this._isDomSelectionInView()),this._domSelectionInView):!1}_isDomSelectionInView(){const t=this.prosemirrorView._root.getSelection();if(t==null||t.anchorNode==null)return!1;const n=this.prosemirrorView._root.createRange();n.setStart(t.anchorNode,t.anchorOffset),n.setEnd(t.focusNode,t.focusOffset),n.getClientRects().length===0&&n.startContainer&&n.collapsed&&n.selectNodeContents(n.startContainer);const r=n.getBoundingClientRect(),i=v8.documentElement;return r.bottom>=0&&r.right>=0&&r.left<=(window.innerWidth||i.clientWidth||0)&&r.top<=(window.innerHeight||i.clientHeight||0)}renderSnapshot(t,n){n||(n=xO(yO(),new Map)),this.prosemirrorView.dispatch(this._tr.setMeta(tr,{snapshot:t,prevSnapshot:n}))}unrenderSnapshot(){this.mapping.clear(),this.mux(()=>{const t=this.type.toArray().map(r=>Tp(r,this.prosemirrorView.state.schema,this)).filter(r=>r!==null),n=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new we(ue.from(t),0,0));n.setMeta(tr,{snapshot:null,prevSnapshot:null}),this.prosemirrorView.dispatch(n)})}_forceRerender(){this.mapping.clear(),this.mux(()=>{const t=this.beforeTransactionSelection!==null?null:this.prosemirrorView.state.selection,n=this.type.toArray().map(i=>Tp(i,this.prosemirrorView.state.schema,this)).filter(i=>i!==null),r=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new we(ue.from(n),0,0));if(t){const i=ko(ao(t.anchor,0),r.doc.content.size),o=ko(ao(t.head,0),r.doc.content.size);r.setSelection(Ke.create(r.doc,i,o))}this.prosemirrorView.dispatch(r.setMeta(tr,{isChangeOrigin:!0,binding:this}))})}_renderSnapshot(t,n,r){let i=this.doc,o=this.type;if(t||(t=bg(this.doc)),t instanceof Uint8Array||n instanceof Uint8Array)if((!(t instanceof Uint8Array)||!(n instanceof Uint8Array))&&fi(),i=new Ya({gc:!1}),Xp(i,n),n=bg(i),Xp(i,t),t=bg(i),o._item===null){const s=Array.from(this.doc.share.keys()).find(a=>this.doc.share.get(a)===this.type);o=i.getXmlFragment(s)}else{const s=i.store.clients.get(o._item.id.client)??[],a=lo(s,o._item.id.clock);o=s[a].content.type}this.mapping.clear(),this.mux(()=>{i.transact(s=>{const a=r.permanentUserData;a&&a.dss.forEach(d=>{Fa(s,d,h=>{})});const l=(d,h)=>{const p=d==="added"?a.getUserByClientId(h.client):a.getUserByDeletedId(h);return{user:p,type:d,color:yH(r.colorMapping,r.colors,p)}},c=PO(o,new HA(n.ds,t.sv)).map(d=>!d._item.deleted||af(d._item,t)||af(d._item,n)?Tp(d,this.prosemirrorView.state.schema,{mapping:new Map,isOMark:new Map},t,n,l):null).filter(d=>d!==null),u=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new we(ue.from(c),0,0));this.prosemirrorView.dispatch(u.setMeta(tr,{isChangeOrigin:!0}))},tr)})}_typeChanged(t,n){if(this.prosemirrorView==null)return;const r=tr.getState(this.prosemirrorView.state);if(t.length===0||r.snapshot!=null||r.prevSnapshot!=null){this.renderSnapshot(r.snapshot,r.prevSnapshot);return}this.mux(()=>{const i=(a,l)=>this.mapping.delete(l);Fa(n,n.deleteSet,a=>{if(a.constructor===hn){const l=a.content.type;l&&this.mapping.delete(l)}}),n.changed.forEach(i),n.changedParentTypes.forEach(i);const o=this.type.toArray().map(a=>nx(a,this.prosemirrorView.state.schema,this)).filter(a=>a!==null);let s=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new we(ue.from(o),0,0));EH(s,this.beforeTransactionSelection,this),s=s.setMeta(tr,{isChangeOrigin:!0,isUndoRedoOperation:n.origin instanceof sY}),this.beforeTransactionSelection!==null&&this._isLocalCursorInView()&&s.scrollIntoView(),this.prosemirrorView.dispatch(s)})}_prosemirrorChanged(t){this.doc.transact(()=>{cf(this.doc,this.type,t,this),this.beforeTransactionSelection=cS(this,this.prosemirrorView.state)},tr)}initView(t){this.prosemirrorView!=null&&this.destroy(),this.prosemirrorView=t,this.doc.on("beforeAllTransactions",this.beforeAllTransactions),this.doc.on("afterAllTransactions",this.afterAllTransactions),this.type.observeDeep(this._observeFunction)}destroy(){this.prosemirrorView!=null&&(this.prosemirrorView=null,this.type.unobserveDeep(this._observeFunction),this.doc.off("beforeAllTransactions",this.beforeAllTransactions),this.doc.off("afterAllTransactions",this.afterAllTransactions))}}const nx=(e,t,n,r,i,o)=>{const s=n.mapping.get(e);if(s===void 0){if(e instanceof zr)return Tp(e,t,n,r,i,o);throw no()}return s},Tp=(e,t,n,r,i,o)=>{const s=[],a=l=>{if(l instanceof zr){const c=nx(l,t,n,r,i,o);c!==null&&s.push(c)}else{const c=l._item.right?.content?.type;c instanceof Il&&!c._item.deleted&&c._item.id.client===c.doc.clientID&&(l.applyDelta([{retain:l.length},...c.toDelta()]),c.doc.transact(d=>{c._item.delete(d)}));const u=DH(l,t,n,r,i,o);u!==null&&u.forEach(d=>{d!==null&&s.push(d)})}};r===void 0||i===void 0?e.toArray().forEach(a):PO(e,new HA(i.ds,r.sv)).forEach(a);try{const l=e.getAttributes(r);r!==void 0&&(af(e._item,r)?af(e._item,i)||(l.ychange=o?o("added",e._item.id):{type:"added"}):l.ychange=o?o("removed",e._item.id):{type:"removed"});const c=t.node(e.nodeName,l,s);return n.mapping.set(e,c),c}catch{return e.doc.transact(l=>{e._item.delete(l)},tr),n.mapping.delete(e),null}},DH=(e,t,n,r,i,o)=>{const s=[],a=e.toDelta(r,i,o);try{for(let l=0;l<a.length;l++){const c=a[l];s.push(t.text(c.insert,FH(c.attributes,t)))}}catch{return e.doc.transact(l=>{e._item.delete(l)},tr),null}return s},SH=(e,t)=>{const n=new ci,r=e.map(i=>({insert:i.text,attributes:ix(i.marks,t)}));return n.applyDelta(r),t.mapping.set(n,e),n},wH=(e,t)=>{const n=new zr(e.type.name);for(const r in e.attrs){const i=e.attrs[r];i!==null&&r!=="ychange"&&n.setAttribute(r,i)}return n.insert(0,Mm(e).map(r=>ib(r,t))),t.mapping.set(n,e),n},ib=(e,t)=>e instanceof Array?SH(e,t):wH(e,t),uS=e=>typeof e=="object"&&e!==null,WA=(e,t)=>{const n=Object.keys(e).filter(i=>e[i]!==null);let r=n.length===(t==null?0:Object.keys(t).filter(i=>t[i]!==null).length);for(let i=0;i<n.length&&r;i++){const o=n[i],s=e[o],a=t[o];r=o==="ychange"||s===a||uS(s)&&uS(a)&&WA(s,a)}return r},Mm=e=>{const t=e.content.content,n=[];for(let r=0;r<t.length;r++){const i=t[r];if(i.isText){const o=[];for(let s=t[r];r<t.length&&s.isText;s=t[++r])o.push(s);r--,n.push(o)}else n.push(i)}return n},rx=(e,t)=>{const n=e.toDelta();return n.length===t.length&&n.every((r,i)=>r.insert===t[i].text&&NA(r.attributes||{}).length===t[i].marks.length&&sO(r.attributes,(o,s)=>{const a=KA(s),l=t[i].marks;return WA(o,l.find(c=>c.type.name===a)?.attrs)}))},Sd=(e,t)=>{if(e instanceof zr&&!(t instanceof Array)&&ob(e,t)){const n=Mm(t);return e._length===n.length&&WA(e.getAttributes(),t.attrs)&&e.toArray().every((r,i)=>Sd(r,n[i]))}return e instanceof ci&&t instanceof Array&&rx(e,t)},lf=(e,t)=>e===t||e instanceof Array&&t instanceof Array&&e.length===t.length&&e.every((n,r)=>t[r]===n),dS=(e,t,n)=>{const r=e.toArray(),i=Mm(t),o=i.length,s=r.length,a=ko(s,o);let l=0,c=0,u=!1;for(;l<a;l++){const d=r[l],h=i[l];if(lf(n.mapping.get(d),h))u=!0;else if(!Sd(d,h))break}for(;l+c<a;c++){const d=r[s-c-1],h=i[o-c-1];if(lf(n.mapping.get(d),h))u=!0;else if(!Sd(d,h))break}return{equalityFactor:l+c,foundMappedChild:u}},_H=e=>{let t="",n=e._start;const r={};for(;n!==null;)n.deleted||(n.countable&&n.content instanceof co?t+=n.content.str:n.content instanceof Qn&&(r[n.content.key]=null)),n=n.right;return{str:t,nAttrs:r}},CH=(e,t,n)=>{n.mapping.set(e,t);const{nAttrs:r,str:i}=_H(e),o=t.map(c=>({insert:c.text,attributes:Object.assign({},r,ix(c.marks,n))})),{insert:s,remove:a,index:l}=aH(i,o.map(c=>c.insert).join(""));e.delete(l,a),e.insert(l,s),e.applyDelta(o.map(c=>({retain:c.insert.length,attributes:c.attributes})))},NH=/(.*)(--[a-zA-Z0-9+/=]{8})$/,KA=e=>NH.exec(e)?.[1]??e,FH=(e,t)=>{const n=[];for(const r in e)n.push(t.mark(KA(r),e[r]));return n},ix=(e,t)=>{const n={};return e.forEach(r=>{if(r.type.name!=="ychange"){const i=ji(t.isOMark,r.type,()=>!r.type.excludes(r.type));n[i?`${r.type.name}--${bH(r.toJSON())}`:r.type.name]=r.attrs}}),n},cf=(e,t,n,r)=>{if(t instanceof zr&&t.nodeName!==n.type.name)throw new Error("node name mismatch!");if(r.mapping.set(t,n),t instanceof zr){const d=t.getAttributes(),h=n.attrs;for(const p in h)h[p]!==null?d[p]!==h[p]&&p!=="ychange"&&t.setAttribute(p,h[p]):t.removeAttribute(p);for(const p in d)h[p]===void 0&&t.removeAttribute(p)}const i=Mm(n),o=i.length,s=t.toArray(),a=s.length,l=ko(o,a);let c=0,u=0;for(;c<l;c++){const d=s[c],h=i[c];if(!lf(r.mapping.get(d),h))if(Sd(d,h))r.mapping.set(d,h);else break}for(;u+c<l;u++){const d=s[a-u-1],h=i[o-u-1];if(!lf(r.mapping.get(d),h))if(Sd(d,h))r.mapping.set(d,h);else break}e.transact(()=>{for(;a-c-u>0&&o-c-u>0;){const h=s[c],p=i[c],m=s[a-u-1],b=i[o-u-1];if(h instanceof ci&&p instanceof Array)rx(h,p)||CH(h,p,r),c+=1;else{let A=h instanceof zr&&ob(h,p),v=m instanceof zr&&ob(m,b);if(A&&v){const D=dS(h,p,r),C=dS(m,b,r);D.foundMappedChild&&!C.foundMappedChild?v=!1:!D.foundMappedChild&&C.foundMappedChild||D.equalityFactor<C.equalityFactor?A=!1:v=!1}A?(cf(e,h,p,r),c+=1):v?(cf(e,m,b,r),u+=1):(r.mapping.delete(t.get(c)),t.delete(c,1),t.insert(c,[ib(p,r)]),c+=1)}}const d=a-c-u;if(a===1&&o===0&&s[0]instanceof ci?(r.mapping.delete(s[0]),s[0].delete(0,s[0].length)):d>0&&(t.slice(c,c+d).forEach(h=>r.mapping.delete(h)),t.delete(c,d)),c+u<o){const h=[];for(let p=c;p<o-u;p++)h.push(ib(i[p],r));t.insert(c,h)}},tr)},ob=(e,t)=>!(t instanceof Array)&&e.nodeName===t.type.name;let H0=null;const OH=()=>{const e=H0;H0=null,e.forEach((t,n)=>{const r=n.state.tr,i=tr.getState(n.state);i&&i.binding&&!i.binding.isDestroyed&&(t.forEach((o,s)=>{r.setMeta(s,o)}),n.dispatch(r))})},xH=(e,t,n)=>{H0||(H0=new Map,kA(0,OH)),ji(H0,e,jr).set(t,n)},uf=(e,t,n)=>{if(e===0)return Tg(t,0,t.length===0?-1:0);let r=t._first===null?null:t._first.content.type;for(;r!==null&&t!==r;){if(r instanceof ci){if(r._length>=e)return Tg(r,e,t.length===0?-1:0);if(e-=r._length,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{do r=r._item===null?null:r._item.parent,e--;while(r!==t&&r!==null&&r._item!==null&&r._item.next===null);r!==null&&r!==t&&(r=r._item===null?null:r._item.next.content.type)}}else{const i=(n.get(r)||{nodeSize:0}).nodeSize;if(r._first!==null&&e<i)r=r._first.content.type,e--;else{if(e===1&&r._length===0&&i>1)return new yd(r._item===null?null:r._item.id,r._item===null?bd(r):null,null);if(e-=i,r._item!==null&&r._item.next!==null)r=r._item.next.content.type;else{if(e===0)return r=r._item===null?r:r._item.parent,new yd(r._item===null?null:r._item.id,r._item===null?bd(r):null,null);do r=r._item.parent,e--;while(r!==t&&r._item.next===null);r!==t&&(r=r._item.next.content.type)}}}if(r===null)throw fi();if(e===0&&r.constructor!==ci&&r!==t)return kH(r._item.parent,r._item)}return Tg(t,t._length,t.length===0?-1:0)},kH=(e,t)=>{let n=null,r=null;return e._item===null?r=bd(e):n=vt(e._item.id.client,e._item.id.clock),new yd(n,r,t.id)},Zc=(e,t,n,r)=>{const i=X8(n,e);if(i===null||i.type!==t&&!Ad(t,i.type._item))return null;let o=i.type,s=0;if(o.constructor===ci)s=i.index;else if(o._item===null||!o._item.deleted){let a=o._first,l=0;for(;l<o._length&&l<i.index&&a!==null;){if(!a.deleted){const c=a.content.type;l++,c instanceof ci?s+=c._length:s+=r.get(c).nodeSize}a=a.right}s+=1}for(;o!==t&&o._item!==null;){const a=o._item.parent;if(a._item===null||!a._item.deleted){s+=1;let l=a._first;for(;l!==null;){const c=l.content.type;if(c===o)break;l.deleted||(c instanceof ci?s+=c._length:s+=r.get(c).nodeSize),l=l.right}}o=a}return s-1};function cbe(e,t){const n=t||new Oa,r=n.doc?n.doc:{transact:i=>i(void 0)};return cf(r,n,e,{mapping:new Map,isOMark:new Map}),n}function ube(e){const t=e.toArray(),n=r=>{let i;if(r instanceof ci)i=r.toDelta().map(o=>{const s={type:"text",text:o.insert};return o.attributes&&(s.marks=Object.keys(o.attributes).map(a=>{const l=o.attributes[a],c={type:KA(a)};return Object.keys(l)&&(c.attrs=l),c})),s});else if(r instanceof zr){i={type:r.nodeName};const o=r.getAttributes();Object.keys(o).length&&(i.attrs=o);const s=r.toArray();s.length&&(i.content=s.map(n).flat())}else fi();return i};return{type:"doc",content:t.map(n)}}const RH=(e,t,n)=>e!==t,MH=e=>{const t=document.createElement("span");t.classList.add("ProseMirror-yjs-cursor"),t.setAttribute("style",`border-color: ${e.color}`);const n=document.createElement("div");n.setAttribute("style",`background-color: ${e.color}`),n.insertBefore(document.createTextNode(e.name),null);const r=document.createTextNode("⁠"),i=document.createTextNode("⁠");return t.insertBefore(r,null),t.insertBefore(n,null),t.insertBefore(i,null),t},ox=e=>({style:`background-color: ${e.color}70`,class:"ProseMirror-yjs-selection"}),BH=/^#[0-9a-fA-F]{6}$/,hS=(e,t,n,r,i)=>{const o=tr.getState(e),s=o.doc,a=[];return o.snapshot!=null||o.prevSnapshot!=null||o.binding.mapping.size===0?Rt.create(e.doc,[]):(t.getStates().forEach((l,c)=>{if(n(s.clientID,c,l)&&l.cursor!=null){const u=l.user||{};u.color==null?u.color="#ffa500":BH.test(u.color)||console.warn("A user uses an unsupported color format",u),u.name==null&&(u.name=`User: ${c}`);let d=Zc(s,o.type,L0(l.cursor.anchor),o.binding.mapping),h=Zc(s,o.type,L0(l.cursor.head),o.binding.mapping);if(d!==null&&h!==null){const p=ao(e.doc.content.size-1,0);d=ko(d,p),h=ko(h,p),a.push(xn.widget(h,()=>r(u,c),{key:c+"",side:10}));const m=ko(d,h),b=ao(d,h);a.push(xn.inline(m,b,i(u,c),{inclusiveEnd:!0,inclusiveStart:!1}))}}}),Rt.create(e.doc,a))},IH=(e,{awarenessStateFilter:t=RH,cursorBuilder:n=MH,selectionBuilder:r=ox,getSelection:i=s=>s.selection}={},o="cursor")=>new kt({key:Oh,state:{init(s,a){return hS(a,e,t,n,r)},apply(s,a,l,c){const u=tr.getState(c),d=s.getMeta(Oh);return u&&u.isChangeOrigin||d&&d.awarenessUpdated?hS(c,e,t,n,r):a.map(s.mapping,s.doc)}},props:{decorations:s=>Oh.getState(s)},view:s=>{const a=()=>{s.docView&&xH(s,Oh,{awarenessUpdated:!0})},l=()=>{const c=tr.getState(s.state),u=e.getLocalState()||{};if(s.hasFocus()){const d=i(s.state),h=uf(d.anchor,c.type,c.binding.mapping),p=uf(d.head,c.type,c.binding.mapping);(u.cursor==null||!KD(L0(u.cursor.anchor),h)||!KD(L0(u.cursor.head),p))&&e.setLocalStateField(o,{anchor:h,head:p})}else u.cursor!=null&&Zc(c.doc,c.type,L0(u.cursor.anchor),c.binding.mapping)!==null&&e.setLocalStateField(o,null)};return e.on("change",a),s.dom.addEventListener("focusin",l),s.dom.addEventListener("focusout",l),{update:l,destroy:()=>{s.dom.removeEventListener("focusin",l),s.dom.removeEventListener("focusout",l),e.off("change",a),e.setLocalStateField(o,null)}}}}),sx=Symbol("tiptap:editor"),dbe=e=>{Ip(sx,e)},ax=()=>{const e=od(sx);if(!e)throw new Error("Failed to inject Editor");return{editor:e}},lx=Symbol("editor:flags"),hbe=e=>{const t=e.isDirectEditing||ZB(),n=e.richWorkspace??!1,r=dm("text","rich_editing_enabled",!0)&&e.mime==="text/markdown";return Ip(lx,{isPublic:t,isRichEditor:r,isRichWorkspace:n}),{isPublic:t,isRichEditor:r,isRichWorkspace:n}},LH=()=>{const{isPublic:e,isRichEditor:t,isRichWorkspace:n}=od(lx,{isPublic:!1,isRichEditor:!1,isRichWorkspace:!1});return{isPublic:e,isRichEditor:t,isRichWorkspace:n}},YH={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var HH=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ZH=[],PH=Ee(YH,HH,ZH,!1,null,null);const $H=PH.exports,UH={name:"AlertDecagramIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zH=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-decagram-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},VH=[],jH=Ee(UH,zH,VH,!1,null,null);const GH=jH.exports,qH={name:"AlignHorizontalCenterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var WH=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon align-horizontal-center-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11 2H13V7H21V10H13V14H18V17H13V22H11V17H6V14H11V10H3V7H11V2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},KH=[],QH=Ee(qH,WH,KH,!1,null,null);const JH=QH.exports,XH={name:"AlignHorizontalLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var eZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon align-horizontal-left-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M4 22H2V2H4V22M22 7H6V10H22V7M16 14H6V17H16V14Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},tZ=[],nZ=Ee(XH,eZ,tZ,!1,null,null);const rZ=nZ.exports,iZ={name:"AlignHorizontalRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var oZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon align-horizontal-right-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20 2H22V22H20V2M2 10H18V7H2V10M8 17H18V14H8V17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},sZ=[],aZ=Ee(iZ,oZ,sZ,!1,null,null);const lZ=aZ.exports,cZ={name:"AlphabeticalVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var uZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alphabetical-variant-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3 7A2 2 0 0 0 1 9V17H3V13H5V17H7V9A2 2 0 0 0 5 7H3M3 9H5V11H3M15 10.5V9A2 2 0 0 0 13 7H9V17H13A2 2 0 0 0 15 15V13.5A1.54 1.54 0 0 0 13.5 12A1.54 1.54 0 0 0 15 10.5M13 15H11V13H13V15M13 11H11V9H13M19 7A2 2 0 0 0 17 9V15A2 2 0 0 0 19 17H21A2 2 0 0 0 23 15V14H21V15H19V9H21V10H23V9A2 2 0 0 0 21 7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},dZ=[],hZ=Ee(cZ,uZ,dZ,!1,null,null);const pZ=hZ.exports,fZ={name:"ArrowULeftTopIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var mZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-u-left-top-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},gZ=[],TZ=Ee(fZ,mZ,gZ,!1,null,null);const bZ=TZ.exports,AZ={name:"ArrowURightTopIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-u-right-top-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10.5 18H18V20H10.5C6.91 20 4 17.09 4 13.5S6.91 7 10.5 7H16.17L13.08 3.91L14.5 2.5L20 8L14.5 13.5L13.09 12.09L16.17 9H10.5C8 9 6 11 6 13.5S8 18 10.5 18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},EZ=[],vZ=Ee(AZ,yZ,EZ,!1,null,null);const DZ=vZ.exports,SZ={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},_Z=[],CZ=Ee(SZ,wZ,_Z,!1,null,null);const cx=CZ.exports,NZ={name:"CheckboxMarkedCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var FZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon checkbox-marked-circle-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},OZ=[],xZ=Ee(NZ,FZ,OZ,!1,null,null);const kZ=xZ.exports,RZ={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var MZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},BZ=[],IZ=Ee(RZ,MZ,BZ,!1,null,null);const ux=IZ.exports,LZ={name:"CodeBracketsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var YZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon code-brackets-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M15,4V6H18V18H15V20H20V4M4,4V20H9V18H6V6H9V4H4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},HZ=[],ZZ=Ee(LZ,YZ,HZ,!1,null,null);const PZ=ZZ.exports,$Z={name:"CodeTagsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var UZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon code-tags-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},zZ=[],VZ=Ee($Z,UZ,zZ,!1,null,null);const jZ=VZ.exports,GZ={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon dots-horizontal-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},WZ=[],KZ=Ee(GZ,qZ,WZ,!1,null,null);const QZ=KZ.exports,JZ={name:"EmoticonOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var XZ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon emoticon-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,17.5C14.33,17.5 16.3,16.04 17.11,14H6.89C7.69,16.04 9.67,17.5 12,17.5M8.5,11A1.5,1.5 0 0,0 10,9.5A1.5,1.5 0 0,0 8.5,8A1.5,1.5 0 0,0 7,9.5A1.5,1.5 0 0,0 8.5,11M15.5,11A1.5,1.5 0 0,0 17,9.5A1.5,1.5 0 0,0 15.5,8A1.5,1.5 0 0,0 14,9.5A1.5,1.5 0 0,0 15.5,11M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},eP=[],tP=Ee(JZ,XZ,eP,!1,null,null);const nP=tP.exports,rP={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var iP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon file-document-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},oP=[],sP=Ee(rP,iP,oP,!1,null,null);const aP=sP.exports,lP={name:"FolderOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var cP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon folder-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},uP=[],dP=Ee(lP,cP,uP,!1,null,null);const hP=dP.exports,pP={name:"FormatBoldIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var fP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-bold-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},mP=[],gP=Ee(pP,fP,mP,!1,null,null);const TP=gP.exports,bP={name:"FormatHeader1Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var AP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-header1-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},yP=[],EP=Ee(bP,AP,yP,!1,null,null);const vP=EP.exports,DP={name:"FormatHeader2Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var SP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-header2-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},wP=[],_P=Ee(DP,SP,wP,!1,null,null);const CP=_P.exports,NP={name:"FormatHeader3Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var FP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-header3-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},OP=[],xP=Ee(NP,FP,OP,!1,null,null);const kP=xP.exports,RP={name:"FormatHeader4Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var MP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-header4-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},BP=[],IP=Ee(RP,MP,BP,!1,null,null);const LP=IP.exports,YP={name:"FormatHeader5Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var HP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-header5-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ZP=[],PP=Ee(YP,HP,ZP,!1,null,null);const $P=PP.exports,UP={name:"FormatHeader6Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-header6-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},VP=[],jP=Ee(UP,zP,VP,!1,null,null);const GP=jP.exports,qP={name:"FormatIndentDecreaseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var WP=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-indent-decrease-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},KP=[],QP=Ee(qP,WP,KP,!1,null,null);const JP=QP.exports,XP={name:"FormatIndentIncreaseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var e$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-indent-increase-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},t$=[],n$=Ee(XP,e$,t$,!1,null,null);const r$=n$.exports,i$={name:"FormatItalicIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var o$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-italic-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},s$=[],a$=Ee(i$,o$,s$,!1,null,null);const l$=a$.exports,c$={name:"FormatListBulletedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var u$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-list-bulleted-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},d$=[],h$=Ee(c$,u$,d$,!1,null,null);const p$=h$.exports,f$={name:"FormatListCheckboxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var m$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-list-checkbox-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},g$=[],T$=Ee(f$,m$,g$,!1,null,null);const b$=T$.exports,A$={name:"FormatListNumberedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var y$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-list-numbered-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},E$=[],v$=Ee(A$,y$,E$,!1,null,null);const D$=v$.exports,S$={name:"FormatQuoteCloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var w$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-quote-close-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},_$=[],C$=Ee(S$,w$,_$,!1,null,null);const N$=C$.exports,F$={name:"FormatSizeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var O$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-size-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M2 4V7H7V19H10V7H15V4H2M21 9H12V12H15V19H18V12H21V9Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},x$=[],k$=Ee(F$,O$,x$,!1,null,null);const R$=k$.exports,M$={name:"FormatStrikethroughIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var B$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-strikethrough-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},I$=[],L$=Ee(M$,B$,I$,!1,null,null);const Y$=L$.exports,H$={name:"FormatUnderlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Z$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon format-underline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},P$=[],$$=Ee(H$,Z$,P$,!1,null,null);const U$=$$.exports,z$={name:"HelpCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var V$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon help-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},j$=[],G$=Ee(z$,V$,j$,!1,null,null);const dx=G$.exports,q$={name:"ImageOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var W$=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon image-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},K$=[],Q$=Ee(q$,W$,K$,!1,null,null);const J$=Q$.exports,X$={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var eU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon information-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},tU=[],nU=Ee(X$,eU,tU,!1,null,null);const rU=nU.exports,iU={name:"LinkIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var oU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon link-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},sU=[],aU=Ee(iU,oU,sU,!1,null,null);const lU=aU.exports,cU={name:"LinkOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var uU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon link-off-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.43 19.12,14.63 17.79,15L19.25,16.44C20.88,15.61 22,13.95 22,12A5,5 0 0,0 17,7M16,11H13.81L15.81,13H16V11M2,4.27L5.11,7.38C3.29,8.12 2,9.91 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12C3.9,10.41 5.11,9.1 6.66,8.93L8.73,11H8V13H10.73L13,15.27V17H14.73L18.74,21L20,19.74L3.27,3L2,4.27Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},dU=[],hU=Ee(cU,uU,dU,!1,null,null);const hx=hU.exports,pU={name:"LoadingIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var fU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon loading-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},mU=[],gU=Ee(pU,fU,mU,!1,null,null);const TU=gU.exports,bU={name:"PaperclipIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var AU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon paperclip-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},yU=[],EU=Ee(bU,AU,yU,!1,null,null);const vU=EU.exports,DU={name:"PencilOffOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var SU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon pencil-off-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10,10.2L14,6.2L17.8,10L13.8,14L12.4,12.6L15,9.9L14.1,9L11.5,11.6L10,10.2M20.7,5.6L18.4,3.3C18.2,3.1 17.9,3 17.7,3C17.5,3 17.2,3.1 17,3.3L15.2,5.1L19,8.9L20.7,7C21.1,6.7 21.1,6 20.7,5.6M19,21.7L17.7,23L11.2,16.5L6.8,21H3V17.2L7.5,12.7L1,6.3L2.3,5L19,21.7M9.8,15.1L8.9,14.2L5,18.1V19H5.9L9.8,15.1Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},wU=[],_U=Ee(DU,SU,wU,!1,null,null);const CU=_U.exports,NU={name:"PencilOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var FU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon pencil-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14.06,9L15,9.94L5.92,19H5V18.08L14.06,9M17.66,3C17.41,3 17.15,3.1 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18.17,3.09 17.92,3 17.66,3M14.06,6.19L3,17.25V21H6.75L17.81,9.94L14.06,6.19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},OU=[],xU=Ee(NU,FU,OU,!1,null,null);const px=xU.exports,kU={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var RU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},MU=[],BU=Ee(kU,RU,MU,!1,null,null);const fx=BU.exports,IU={name:"ShapeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var LU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon shape-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},YU=[],HU=Ee(IU,LU,YU,!1,null,null);const ZU=HU.exports,PU={name:"TableIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $U=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon table-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},UU=[],zU=Ee(PU,$U,UU,!1,null,null);const VU=zU.exports,jU={name:"TableCogIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var GU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon table-cog-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M3 3H17C18.11 3 19 3.9 19 5V12.08C17.45 11.82 15.92 12.18 14.68 13H11V17H12.08C11.97 17.68 11.97 18.35 12.08 19H3C1.9 19 1 18.11 1 17V5C1 3.9 1.9 3 3 3M3 7V11H9V7H3M11 7V11H17V7H11M3 13V17H9V13H3M22.78 19.32L21.71 18.5C21.73 18.33 21.75 18.17 21.75 18S21.74 17.67 21.71 17.5L22.77 16.68C22.86 16.6 22.89 16.47 22.83 16.36L21.83 14.63C21.77 14.5 21.64 14.5 21.5 14.5L20.28 15C20 14.82 19.74 14.65 19.43 14.53L19.24 13.21C19.23 13.09 19.12 13 19 13H17C16.88 13 16.77 13.09 16.75 13.21L16.56 14.53C16.26 14.66 15.97 14.82 15.71 15L14.47 14.5C14.36 14.5 14.23 14.5 14.16 14.63L13.16 16.36C13.1 16.47 13.12 16.6 13.22 16.68L14.28 17.5C14.26 17.67 14.25 17.83 14.25 18S14.26 18.33 14.28 18.5L13.22 19.32C13.13 19.4 13.1 19.53 13.16 19.64L14.16 21.37C14.22 21.5 14.35 21.5 14.47 21.5L15.71 21C15.97 21.18 16.25 21.35 16.56 21.47L16.75 22.79C16.77 22.91 16.87 23 17 23H19C19.12 23 19.23 22.91 19.25 22.79L19.44 21.47C19.74 21.34 20 21.18 20.28 21L21.5 21.5C21.64 21.5 21.77 21.5 21.84 21.37L22.84 19.64C22.9 19.53 22.87 19.4 22.78 19.32M18 19.5C17.17 19.5 16.5 18.83 16.5 18S17.18 16.5 18 16.5 19.5 17.17 19.5 18 18.84 19.5 18 19.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},qU=[],WU=Ee(jU,GU,qU,!1,null,null);const KU=WU.exports,QU={name:"TableColumnPlusAfterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var JU=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon table-column-plus-after-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},XU=[],ez=Ee(QU,JU,XU,!1,null,null);const tz=ez.exports,nz={name:"TableColumnPlusBeforeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon table-column-plus-before-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},iz=[],oz=Ee(nz,rz,iz,!1,null,null);const sz=oz.exports,az={name:"TableRowPlusAfterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon table-row-plus-after-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},cz=[],uz=Ee(az,lz,cz,!1,null,null);const dz=uz.exports,hz={name:"TableRowPlusBeforeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon table-row-plus-before-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},fz=[],mz=Ee(hz,pz,fz,!1,null,null);const gz=mz.exports,Tz={name:"TranslateIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var bz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon translate-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Az=[],yz=Ee(Tz,bz,Az,!1,null,null);const Ez=yz.exports,vz={name:"TrashCanOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Dz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon trash-can-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Sz=[],wz=Ee(vz,Dz,Sz,!1,null,null);const mx=wz.exports,_z={name:"TrayArrowUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Cz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon tray-arrow-up-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 2L6.46 7.46L7.88 8.88L11 5.75V15H13V5.75L16.13 8.88L17.55 7.45L12 2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Nz=[],Fz=Ee(_z,Cz,Nz,!1,null,null);const Oz=Fz.exports,xz={name:"UnfoldMoreHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon unfold-more-horizontal-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Rz=[],Mz=Ee(xz,kz,Rz,!1,null,null);const Bz=Mz.exports,Iz={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Lz=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Yz=[],Hz=Ee(Iz,Lz,Yz,!1,null,null);const Zz=Hz.exports,gx=20,st=e=>({functional:!0,render(t,{data:n,props:r}){return t(e,{data:n,key:n.key,staticClass:n.staticClass,props:{size:gx,...r}})}}),sb={functional:!0,render(e,{data:t,props:n}){return e(TU,{data:t,staticClass:"animation-rotate",props:{size:gx,...n}})}},pbe=st(pZ),Pz=st(JH),$z=st(rZ),Uz=st(lZ),zz=st(ux),Vz=st(PZ),jz=st(jZ),Tx=st(GH),Gz=st(aP),fbe=st(QZ),qz=st(nP),Wz=st(hP),Kz=st(TP),Qz=st(R$),Jz=st(vP),Xz=st(CP),eV=st(kP),tV=st(LP),nV=st($P),rV=st(GP),iV=st(JP),oV=st(r$),sV=st(l$),bp=st(p$),aV=st(b$),lV=st(D$),cV=st(N$),uV=st(Y$),dV=st(U$),mbe=st(dx),hV=st(J$),QA=st(rU),pV=st(lU),fV=st(hx),mV=st(vU),gV=st(px),TV=st(CU),bx=st(kZ),bV=st(DZ),AV=st(ZU),yV=st(VU),Ax=st(tz),EV=st(sz),yx=st(dz),vV=st(gz),DV=st(KU),Bm=st(mx),gbe=st(Ez),SV=st(bZ),wV=st(Bz),_V=st(Oz),Ex=st($H),CV=st(Zz),NV=st(fx),JA={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},FV=function(e,t){let n=e.$parent;for(;n;){if(n.$options.name===t)return n;n=n.$parent}},Im={mixins:[JA],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const t=FV(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},OV={name:"NcActionButton",components:{NcIconSvgWrapper:Tu},mixins:[Im],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},setup(){return{mdiCheck:iN,mdiChevronRight:PB}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var xV=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled},attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("button",e._b({class:["action-button button-vue",{"action-button--active":e.isChecked,focusable:e.isFocusable}],attrs:{"aria-label":e.ariaLabel,disabled:e.disabled,title:e.title,type:e.nativeType},on:{click:e.handleClick}},"button",e.buttonAttributes,!1),[e._t("icon",function(){return[t("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),t("span",{staticClass:"action-button__longtext-wrapper"},[e.name?t("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]):e._e(),e.isLongText?t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-button__text"},[e._v(" "+e._s(e.text)+" ")]),e.description?t("span",{staticClass:"action-button__description",domProps:{textContent:e._s(e.description)}}):e._e()]),e.isMenu?t("NcIconSvgWrapper",{staticClass:"action-button__menu-icon",attrs:{directional:"",path:e.mdiChevronRight}}):e.isChecked?t("NcIconSvgWrapper",{staticClass:"action-button__pressed-icon",attrs:{path:e.mdiCheck}}):e.isChecked===!1?t("span",{staticClass:"action-button__pressed-icon material-design-icon"}):e._e(),e._e()],2)])},kV=[],RV=ut(OV,xV,kV,!1,null,"102cfc0a");const Ha=RV.exports,MV={name:"NcActionSeparator"};var BV=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action action-separator action--disabled",attrs:{role:"separator"}})},IV=[],LV=ut(MV,BV,IV,!1,null,"3e2324b7");const XA=LV.exports;async function YV(e){const t=`${e.token?io("/apps/text/public"):io("/apps/text")}/session/${e.fileId}/create`,n=await fr.put(t,e),{document:r,session:i}=n.data;return{connection:{documentId:r.id,sessionId:i.id,sessionToken:i.token,baseVersionEtag:r.baseVersionEtag,filePath:e.filePath,shareToken:e.token},data:n.data}}async function Tbe(e,t){if(!t.shareToken)throw new Error("Cannot set guest name without a share token!");const n=t.documentId,r=io(`/apps/text/public/session/${n}/session`);return(await fr.post(r,{documentId:t.documentId,sessionId:t.sessionId,sessionToken:t.sessionToken,token:t.shareToken,guestName:e})).data}async function HV(e){const t=e.documentId,n=io(`/apps/text/session/${t}/close`);return(await fr.post(n,{documentId:e.documentId,sessionId:e.sessionId,sessionToken:e.sessionToken})).data}const vx=Symbol("text:connection"),Dx=Symbol("text:opendata");function bbe(e){let t;const n=yv(void 0),r=yv(void 0),i=async()=>{const o=localStorage.getItem("nick")??"",{connection:s,data:a}=PV(e)||await YV({fileId:e.fileId,guestName:o,token:e.shareToken,filePath:e.relativePath,baseVersionEtag:t});return t=a.document.baseVersionEtag,n.value=s,r.value=a,a};return Ip(vx,n),Ip(Dx,r),{connection:n,openConnection:i,openData:r}}const ZV=()=>{const e=od(vx),t=od(Dx);return{connection:e,openData:t}};function PV(e){if(e.initialSession){const{document:t,session:n}=e.initialSession;return{connection:{documentId:t.id,sessionId:n.id,sessionToken:n.token,baseVersionEtag:t.baseVersionEtag,filePath:e.relativePath,shareToken:e.shareToken},data:e.initialSession}}}function $V(){const e=pi(navigator.onLine?null:Date.now()),t=bs(()=>!e.value);return F0("networkOnline",n=>{n.success&&(e.value=null)}),F0("networkOffline",()=>{e.value=Date.now()}),{networkOnline:t,offlineSince:e}}var xh={exports:{}},pS;function UV(){if(pS)return xh.exports;pS=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:i}=typeof r=="boolean"?{immediate:r}:r;let o,s,a,l,c;function u(){const p=o,m=s;return o=void 0,s=void 0,c=t.apply(p,m),c}function d(){const p=Date.now()-l;p<n&&p>=0?a=setTimeout(d,n-p):(a=void 0,i||(c=u()))}const h=function(...p){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,s=p,l=Date.now();const m=i&&!a;return a||(a=setTimeout(d,n)),m&&(c=u()),c};return Object.defineProperty(h,"isPending",{get(){return a!==void 0}}),h.clear=()=>{a&&(clearTimeout(a),a=void 0)},h.flush=()=>{a&&h.trigger()},h.trigger=()=>{c=u(),h.clear()},h}return xh.exports.debounce=e,xh.exports=e,xh.exports}var zV=UV();const th=$l(zV),VV=Symbol("wrapper:outline-state"),jV=Symbol("wrapper:outline-actions"),GV=Symbol("wrapper:read-only-actions"),Sx={inject:{$outlineState:{from:VV,default:{visible:!1,enable:!1}}}},wx={inject:{$outlineActions:{from:jV,default:{toggle:()=>{}}}}},qV={inject:{$readOnlyActions:{from:GV,default:{toggle:()=>{}}}}},ab=navigator.userAgent.includes("Mac"),Ct={Mod:ab?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},WV={[Ct.Mod]:ab?xe("text","Command"):xe("text","Ctrl"),[Ct.Control]:xe("text","Ctrl"),[Ct.Alt]:xe("text",ab?"Option":"Alt"),[Ct.Shift]:xe("text","Shift")},KV=(e,t)=>({"is-active":t,[`action-menu-${e.key}`]:!0}),QV=(e,t=[])=>t.map(n=>WV[n]).concat(e.toUpperCase()).join("+"),JV=({keyChar:e,keyModifiers:t=[]})=>t.map(n=>Ct[n]).concat(e).join("+"),fS=(e,{keyChar:t,keyModifiers:n})=>!e&&t?`(${QV(t,n)})`:"",XV=(e,t)=>e.action&&!e.action(t.can(),t),_x=({isActive:e},t)=>{if(!e)return!1;const n=Array.isArray(e)?e:[e];for(const r of n){let i;if(r!==null&&typeof r=="object"?i=r.name?[r.name,{...r.attributes}]:[{...r.attributes}]:i=[r],t.isActive(...i))return!0}return!1},ej=e=>Array.isArray(e.isActive)?"button":e.isActive&&typeof e.isActive=="object"?"radio":typeof e.isActive=="string"?"checkbox":"button",mS=(e,t)=>{const n=_x(e,t);return{disabled:XV(e,t),class:KV(e,n),active:n,type:ej(e)}},df={mixins:[dN,wx,Sx,qV],setup(){const{editor:e}=ax();return{editor:e}},props:{actionEntry:{type:Object,required:!0},canBeFocussed:{type:Boolean,default:null}},data(){return{state:mS(this.actionEntry,this.editor)}},computed:{label(){const{label:e}=this.actionEntry;return typeof e=="function"?e(this):e},icon(){return this.actionEntry.icon},keyshortcuts(){return JV(this.actionEntry)},tooltip(){return[this.label,fS(this.$isMobile,this.actionEntry)].join(" ")},listItemTooltip(){return[fS(this.$isMobile,this.actionEntry)].join(" ")}},watch:{canBeFocussed(){this.setTabIndexOnButton()}},mounted(){this.$_updateState=th(this.updateState.bind(this),50),this.editor.on("update",this.$_updateState),this.editor.on("selectionUpdate",this.$_updateState),this.$emit("disabled",this.state.disabled),this.setTabIndexOnButton()},beforeDestroy(){this.editor.off("update",this.$_updateState),this.editor.off("selectionUpdate",this.$_updateState)},methods:{updateState(){this.state=mS(this.actionEntry,this.editor),this.$emit("disabled",this.state.disabled)},setTabIndexOnButton(){const e=this.$el.tagName.toLowerCase()==="button"?this.$el:this.$el.querySelector("button");this.canBeFocussed===null?e.removeAttribute("tabindex"):e.setAttribute("tabindex",this.canBeFocussed?"0":"-1")},focusButton(){(this.$el.tagName.toLowerCase()==="button"?this.$el:this.$el.querySelector("button")).focus()}}},tj=Symbol("menu::id"),ey={inject:{$menuID:{from:tj,default:null}},computed:{menuIDSelector(){return`#${this.$menuID}`}}},nj={name:"ActionAttachmentUpload",components:{NcActions:Os,NcActionSeparator:XA,NcActionButton:Ha,NcIconSvgWrapper:Tu,Loading:sb,Folder:Wz,Upload:_V,Plus:NV},extends:df,mixins:[r6,i6,o6,s6,a6,ey],setup(){const{isPublic:e}=LH(),{openData:t}=ZV(),{networkOnline:n}=$V();return{...df.setup(),isPublic:e,networkOnline:n,openData:t}},computed:{icon(){return this.isUploadingAttachments?sb:this.actionEntry.icon},isUploadingAttachments(){return this.$uploadingState.isUploadingAttachments},templates(){return dm("files","templates",[])},isUploadDisabled(){return!this.openData?.hasOwner||!this.networkOnline},menuTitle(){return this.networkOnline?this.openData?.hasOwner?this.actionEntry.label:xe("text","Attachments cannot be created or uploaded because this file is shared from another cloud."):xe("text","Disabled because you are currently offline.")}},methods:{createAttachment(e){this.$callCreateAttachment(e)},t:xe}};var rj=function(){var e=this,t=e._self._c;return t("NcActions",{staticClass:"entry-action entry-action__image-upload",attrs:{"data-text-action-entry":e.actionEntry.key,name:e.actionEntry.label,disabled:e.isUploadDisabled,title:e.menuTitle,"aria-label":e.actionEntry.label,container:e.menuIDSelector},scopedSlots:e._u([{key:"icon",fn:function(){return[t(e.icon,{tag:"component",attrs:{name:e.actionEntry.label,"aria-label":e.actionEntry.label}})]},proxy:!0}])},[e.$editorUpload?t("NcActionButton",{attrs:{"close-after-click":"",disabled:e.isUploadingAttachments,"data-text-action-entry":`${e.actionEntry.key}-upload`},on:{click:e.$callChooseLocalAttachment},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Upload")]},proxy:!0}],null,!1,933298848)},[e._v(" "+e._s(e.t("text","Upload from computer"))+" ")]):e._e(),e.isPublic?e._e():t("NcActionButton",{attrs:{"close-after-click":"",disabled:e.isUploadingAttachments,"data-text-action-entry":`${e.actionEntry.key}-insert`},on:{click:e.$callAttachmentPrompt},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Folder")]},proxy:!0}],null,!1,2750733237)},[e._v(" "+e._s(e.t("text","Insert from Files"))+" ")]),e.templates.length?[t("NcActionSeparator"),e._l(e.templates,function(n,r){return t("NcActionButton",{key:`${n.app}-${r}`,attrs:{"close-after-click":"",disabled:e.isUploadingAttachments,"data-text-action-entry":`${e.actionEntry.key}-add-${n.app}-${r}`},on:{click:function(i){return e.createAttachment(n)}},scopedSlots:e._u([{key:"icon",fn:function(){return[n.iconSvgInline?t("NcIconSvgWrapper",{attrs:{svg:n.iconSvgInline}}):t("Plus")]},proxy:!0}],null,!0)},[e._v(" "+e._s(n.actionLabel)+" ")])})]:e._e()],2)},ij=[],oj=Ee(nj,rj,ij,!1,null,null);const sj=oj.exports,aj=["date","datetime-local","month","time","week"],lj={name:"NcDateTimePickerNative",inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:Date,default:void 0},modelValue:{type:Date,default:null},id:{type:String,default:()=>"date-time-picker-"+ro(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>aj.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Date,Boolean],default:null},max:{type:[Date,Boolean],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:Po("value","input")}},computed:{formattedValue(){return this.formatValue(this.model)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1},listeners(){return{...this.$listeners,input:e=>{if(isNaN(e.target.valueAsNumber))this.model=null;else if(this.type==="time"){const t=e.target.value;if(this.model===""){const{yyyy:n,MM:r,dd:i}=this.getReadableDate(new Date);this.model=new Date(`${n}-${r}-${i}T${t}`)}else{const{yyyy:n,MM:r,dd:i}=this.getReadableDate(this.model);this.model=new Date(`${n}-${r}-${i}T${t}`)}}else if(this.type==="month"){const t=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.model===""){const{yyyy:n,dd:r,hh:i,mm:o}=this.getReadableDate(new Date);this.model=new Date(`${n}-${t}-${r}T${i}:${o}`)}else{const{yyyy:n,dd:r,hh:i,mm:o}=this.getReadableDate(this.model);this.model=new Date(`${n}-${t}-${r}T${i}:${o}`)}}else{const t=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,n=e.target.valueAsNumber+t;this.model=new Date(n)}}}}},methods:{getReadableDate(e){if(e instanceof Date){const t=e.getFullYear().toString().padStart(4,"0"),n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0"),i=e.getHours().toString().padStart(2,"0"),o=e.getMinutes().toString().padStart(2,"0");return{yyyy:t,MM:n,dd:r,hh:i,mm:o}}},formatValue(e){if(e instanceof Date){const{yyyy:t,MM:n,dd:r,hh:i,mm:o}=this.getReadableDate(e);if(this.type==="datetime-local")return`${t}-${n}-${r}T${i}:${o}`;if(this.type==="date")return`${t}-${n}-${r}`;if(this.type==="month")return`${t}-${n}`;if(this.type==="time")return`${i}:${o}`;if(this.type==="week"){const s=new Date(t,0,1),a=Math.floor((e-s)/(24*60*60*1e3)),l=Math.ceil(a/7);return`${t}-W${l}`}}else return""}}};var cj=function(){var e=this,t=e._self._c;return t("div",{staticClass:"native-datetime-picker"},[t("label",{staticClass:"native-datetime-picker--label",class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" ")]),t("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},uj=[],dj=ut(lj,cj,uj,!1,null,"9e776556");const Cx=dj.exports;oN(Cx);function Yl(e,t,n){const r=document.querySelector(`#initial-state-${e}-${t}`);if(r===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${t} of ${e}`)}try{return JSON.parse(atob(r.value))}catch{throw new Error(`Could not parse initial state ${t} of ${e}`)}}const hj={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pj=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},fj=[],mj=ut(hj,pj,fj,!1,null,null);const gj=mj.exports,Tj={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var bj=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Aj=[],yj=ut(Tj,bj,Aj,!1,null,null);const Ej=yj.exports,vj={name:"NcInputField",components:{NcButton:_i,AlertCircle:gj,Check:Ej},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){const e=Po("value","update:value",!0);return{isLegacy32:Ks,model:e}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+ro()},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){if(this.hasPlaceholder)return this.placeholder;if(Ks)return this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){const t=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=t},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var Dj=function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled,"input-field--error":e.error,"input-field--label-outside":e.labelOutside||!e.isValidLabel,"input-field--leading-icon":!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,"input-field--success":e.success,"input-field--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field--pill":e.pill,"input-field--legacy":e.isLegacy32}},[t("div",{staticClass:"input-field__main-wrapper"},[t("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model?.toString()},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?t("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("icon",function(){return[e._t("default")]})],2),e.showTrailingButton?t("NcButton",{staticClass:"input-field__trailing-button",attrs:{"aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background"},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?t("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?t("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?t("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?t("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?t("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?t("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},Sj=[],wj=ut(vj,Dj,Sj,!1,null,"fb753715");const eu=wj.exports,Z0=IB().detectUser().setApp("@nextcloud/vue").build(),_j={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Cj=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Nj=[],Fj=ut(_j,Cj,Nj,!1,null,null);const Oj=Fj.exports,xj={name:"EyeOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kj=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-off-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Rj=[],Mj=ut(xj,kj,Rj,!1,null,null);const Bj=Mj.exports;Et(L4);const gS=Yl("core","capabilities",{}).password_policy||null,Ij=new Set(Object.keys(eu.props)),Lj={name:"NcPasswordField",components:{NcInputField:eu,IconEye:Oj,IconEyeOff:Bj},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{" ":{},...eu.props,showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:0},maxlength:{type:Number,default:null},asText:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["valid","invalid","update:value","update:modelValue","update:model-value","update:visible"],setup(e,{emit:t}){const n=Po("value","update:value"),r=sN(e,"visible",t,{passive:!0});return{t:me,model:n,visibility:r}},data(){return{internalHelpMessage:"",isValid:null}},computed:{computedError(){return this.error||this.isValid===!1},computedSuccess(){return this.success||this.isValid===!0},computedHelperText(){return this.helperText.length>0?this.helperText:this.internalHelpMessage},rules(){const{minlength:e}=this;return{minlength:e??gS?.minLength}},trailingButtonLabelPassword(){return this.visibility?me("Hide password"):me("Show password")},propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Ij.has(e)))}}},watch:{model(e){if(this.checkPasswordStrength){if(gS===null)return;this.checkPassword(e)}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.model=e.target.value},toggleVisibility(){this.visibility=!this.visibility},checkPassword:th(async function(e){try{const{data:t}=await fr.post(Xi("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=t.ocs.data.passed,t.ocs.data.passed){this.internalHelpMessage=me("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=t.ocs.data.reason,this.$emit("invalid")}catch(t){Z0.error("Password policy returned an error",t)}},500)}};var Yj=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",attrs:{type:e.visibility||e.asText?"text":"password","trailing-button-label":e.trailingButtonLabelPassword,"helper-text":e.computedHelperText,error:e.computedError,success:e.computedSuccess,minlength:e.rules.minlength,"input-class":{"password-field__input--secure-text":!e.visibility&&e.asText}},on:{"trailing-button-click":e.toggleVisibility,input:e.handleInput},scopedSlots:e._u([e.$scopedSlots.icon||e.$slots.default||e.$scopedSlots.default?{key:"icon",fn:function(){return[e._t("icon",function(){return[e._t("default")]})]},proxy:!0}:null,{key:"trailing-button-icon",fn:function(){return[e.visibility?t("IconEyeOff",{attrs:{size:18}}):t("IconEye",{attrs:{size:18}})]},proxy:!0}],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners))},Hj=[],Zj=ut(Lj,Yj,Hj,!1,null,"e7f7c9e3");const Pj=Zj.exports;Et(Y4,WC);const $j=new Set(Object.keys(eu.props)),Uj={name:"NcTextField",components:{NcIconSvgWrapper:Tu,NcInputField:eu},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{" ":{},...eu.props,trailingButtonLabel:{type:String,default:""},trailingButtonIcon:{type:String,default:"close",validator:e=>["close","arrowEnd","arrowRight","undo"].includes(e)}},emits:["update:value","update:modelValue","update:model-value"],setup(){return{model:Po("value","update:value"),mdiArrowRight:zB,mdiClose:UB,mdiUndo:$B}},computed:{isArrow(){return this.trailingButtonIcon==="arrowEnd"||this.trailingButtonIcon==="arrowRight"},propsAndAttrsToForward(){const e={arrowEnd:me("Save changes"),arrowRight:me("Save changes"),close:me("Clear text"),undo:me("Undo changes")};return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([t])=>$j.has(t))),trailingButtonLabel:this.trailingButtonLabel||e[this.trailingButtonIcon]}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()}}};var zj=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",scopedSlots:e._u([e.$scopedSlots.icon||e.$slots.default||e.$scopedSlots.default?{key:"icon",fn:function(){return[e._t("icon",function(){return[e._t("default")]})]},proxy:!0}:null,e.type!=="search"?{key:"trailing-button-icon",fn:function(){return[e.isArrow?t("NcIconSvgWrapper",{attrs:{directional:"",path:e.mdiArrowRight}}):t("NcIconSvgWrapper",{attrs:{path:e.trailingButtonIcon==="undo"?e.mdiUndo:e.mdiClose}})]},proxy:!0}:null],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners))},Vj=[],jj=ut(Uj,zj,Vj,!1,null,null);const Lm=jj.exports;Et(KC);const Gj={name:"NcActionInput",components:{NcDateTimePickerNative:Cx,NcPasswordField:Pj,NcTextField:Lm,NcColorPicker:z1(()=>O0(()=>import("./text-text.mjs").then(e=>e.a),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)),NcDateTimePicker:z1(()=>O0(()=>Promise.resolve().then(()=>ade),void 0,import.meta.url)),NcSelect:z1(()=>O0(()=>import("./text-text.mjs").then(e=>e.N),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url))},mixins:[JA],model:{prop:"modelValue",event:"update:modelValue"},props:{id:{type:String,default:()=>"action-"+ro(),validator:e=>e.trim()!==""},inputId:{type:String,default:()=>"action-input-"+ro(),validator:e=>e.trim()!==""},icon:{type:String,default:""},type:{type:String,default:"text",validator(e){return["date","datetime-local","month","multiselect","number","password","search","tel","text","time","url","week","color","email"].indexOf(e)>-1}},idNativeDateTimePicker:{type:String,default:"date-time-picker_id"},isNativePicker:{type:Boolean,default:!1},label:{type:String,default:null},labelOutside:{type:Boolean,default:!0},value:{type:[String,Date,Number,Array],default:void 0},modelValue:{type:[String,Date,Number,Array],default:""},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""},ariaHidden:{type:Boolean,default:null},showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:{type:String,default:me("Submit")}},emits:["input","submit","change","update:value","update:modelValue","update:model-value"],setup(){return{model:Po("value","update:value")}},computed:{isIconUrl(){try{return new URL(this.icon)}catch{return!1}},isMultiselectType(){return this.type==="multiselect"},nativeDatePickerType(){switch(this.type){case"date":case"month":case"time":case"week":case"datetime-local":return this.type}return!1},datePickerType(){if(!this.isNativePicker)switch(this.type){case"date":case"month":case"time":return this.type;case"datetime-local":return"datetime"}return!1},isFocusable(){return!this.disabled}},methods:{onLeave(){this.$refs.datetimepicker&&this.$refs.datetimepicker.$refs.datepicker&&this.$refs.datetimepicker.$refs.datepicker.closePopup()},onInput(e){this.$emit("input",e),this.model=e.target?e.target.value:e},onSubmit(e){if(e.preventDefault(),e.stopPropagation(),!this.disabled)this.$emit("submit",e);else return!1},onChange(e){this.$emit("change",e)}}};var qj=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled}},[t("span",{staticClass:"action-input",class:{"action-input-picker--disabled":e.disabled,"action-input--visible-label":e.labelOutside&&e.label},on:{mouseleave:e.onLeave}},[t("span",{staticClass:"action-input__icon-wrapper"},[e._t("icon",function(){return[t("span",{staticClass:"action-input__icon",class:[e.isIconUrl?"action-input__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]})],2),t("form",{ref:"form",staticClass:"action-input__form",attrs:{disabled:e.disabled},on:{submit:function(n){return n.preventDefault(),e.onSubmit.apply(null,arguments)}}},[t("div",{staticClass:"action-input__container"},[e.label&&e.labelOutside?t("label",{staticClass:"action-input__text-label",class:{"action-input__text-label--hidden":!e.labelOutside},attrs:{for:e.inputId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{staticClass:"action-input__input-container"},[e.datePickerType?t("NcDateTimePicker",e._b({ref:"datetimepicker",staticClass:"action-input__datetimepicker",staticStyle:{"z-index":"99999999999"},attrs:{value:e.model,placeholder:e.text,disabled:e.disabled,type:e.datePickerType,"input-class":["mx-input",{focusable:e.isFocusable}]},on:{input:e.onInput,change:e.onChange}},"NcDateTimePicker",e.$attrs,!1)):e.isNativePicker?t("NcDateTimePickerNative",e._b({staticClass:"action-input__datetimepicker",attrs:{id:e.idNativeDateTimePicker,value:e.model,type:e.nativeDatePickerType,"input-class":{focusable:e.isFocusable}},on:{"update:model-value":function(n){e.model=n},change:function(n){return e.$emit("change",n)}}},"NcDateTimePickerNative",e.$attrs,!1)):e.isMultiselectType?t("NcSelect",e._g(e._b({staticClass:"action-input__multi",attrs:{value:e.model,placeholder:e.text,disabled:e.disabled,"append-to-body":e.$attrs.appendToBody||e.$attrs["append-to-body"]||!1,"input-class":{focusable:e.isFocusable}}},"NcSelect",e.$attrs,!1),e.$listeners)):e.type==="password"?t("NcPasswordField",e._g(e._b({attrs:{id:e.inputId,value:e.model,label:e.label,"label-outside":!e.label||e.labelOutside,placeholder:e.text,disabled:e.disabled,"input-class":{focusable:e.isFocusable},"show-trailing-button":e.showTrailingButton&&!e.disabled},on:{input:e.onInput,change:e.onChange}},"NcPasswordField",e.$attrs,!1),e.$listeners)):e.type==="color"?t("div",{staticClass:"action-input__container"},[e.label&&e.type==="color"?t("label",{staticClass:"action-input__text-label",class:{"action-input__text-label--hidden":!e.labelOutside},attrs:{for:e.inputId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{staticClass:"action-input__input-container"},[t("NcColorPicker",e._g(e._b({staticClass:"colorpicker__trigger",attrs:{id:"inputId",value:e.model},on:{"update:model-value":e.onInput,submit:function(n){return e.$refs.form.requestSubmit()}}},"NcColorPicker",e.$attrs,!1),e.$listeners),[t("button",{staticClass:"colorpicker__preview",class:{focusable:e.isFocusable},style:{"background-color":e.model}})])],1)]):t("NcTextField",e._g(e._b({attrs:{id:e.inputId,value:e.model,label:e.label,"label-outside":!e.label||e.labelOutside,placeholder:e.text,disabled:e.disabled,"input-class":{focusable:e.isFocusable},type:e.type,"trailing-button-icon":"arrowRight","trailing-button-label":e.trailingButtonLabel,"show-trailing-button":e.showTrailingButton&&!e.disabled},on:{"trailing-button-click":function(n){return e.$refs.form.requestSubmit()},input:e.onInput,change:e.onChange}},"NcTextField",e.$attrs,!1),e.$listeners))],1)])])])])},Wj=[],Kj=ut(Gj,qj,Wj,!1,null,"caba6a2d");const Nx=Kj.exports;window._vue_richtext_widgets||(window._vue_richtext_widgets={});const TS=e=>!!window._vue_richtext_widgets[e],Qj=e=>!!window._vue_richtext_widgets[e]?.hasInteractiveView,Jj=e=>!!window._vue_richtext_widgets[e]?.fullWidth,Xj=(e,t,n=i=>{},r)=>{const i={hasInteractiveView:!0,fullWidth:!1,...r};if(window._vue_richtext_widgets[e]){console.error("Widget for id "+e+" already registered");return}window._vue_richtext_widgets[e]={id:e,callback:t,onDestroy:n,...i}},eG=(e,{richObjectType:t,richObject:n,accessible:r,interactive:i})=>{if(t!=="open-graph"){if(!window._vue_richtext_widgets[t]){console.error("Widget for rich object type "+t+" not registered");return}window._vue_richtext_widgets[t].callback(e,{richObjectType:t,richObject:n,accessible:r,interactive:i})}},tG=(e,t)=>{e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(t)};window._registerWidget=(e,t,n,r)=>{Xj(e,t,n,r)},window._vue_richtext_custom_picker_elements||(window._vue_richtext_custom_picker_elements={});const wd=e=>!!window._vue_richtext_custom_picker_elements[e],nG=e=>{const t=window._vue_richtext_custom_picker_elements[e]?.size;return["small","normal","large","full"].includes(t)?t:null},rG=(e,t,n=i=>{},r="large")=>{if(window._vue_richtext_custom_picker_elements[e]){console.error("Custom reference picker element for id "+e+" already registered");return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:t,onDestroy:n,size:r}},iG=(e,{providerId:t,accessible:n})=>{if(!window._vue_richtext_custom_picker_elements[t]){console.error("Custom reference picker element for reference provider ID "+t+" not registered");return}return window._vue_richtext_custom_picker_elements[t].callback(e,{providerId:t,accessible:n})},oG=(e,t,n)=>{window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(t,n)};window._registerCustomPickerElement=rG;const sG={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){return this.description!==""||this.$slots.description?.[0]}}};var aG=function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty-content",attrs:{role:"note"}},[e.$slots.icon?t("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e._t("name",function(){return[e.hasName?t("span",{staticClass:"empty-content__name"},[e._v(" "+e._s(e.name)+" ")]):e._e()]}),e.hasDescription?t("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?t("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()],2)},lG=[],cG=ut(sG,aG,lG,!1,null,"8aaa3146");const ty=cG.exports,Fx=(e,t)=>{const n=[];let r=0,i=e.toLowerCase().indexOf(t.toLowerCase(),r),o=0;for(;i>-1&&o<e.length;)r=i+t.length,n.push({start:i,end:r}),i=e.toLowerCase().indexOf(t.toLowerCase(),r),o++;return n},uG={name:"NcHighlight",props:{text:{type:String,default:""},search:{type:String,default:""},highlight:{type:Array,default:()=>[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=Fx(this.text,this.search),e.forEach((t,n)=>{t.end<t.start&&(e[n]={start:t.end,end:t.start})}),e=e.reduce((t,n)=>(n.start<this.text.length&&n.end>0&&t.push({start:n.start<0?0:n.start,end:n.end>this.text.length?this.text.length:n.end}),t),[]),e.sort((t,n)=>t.start-n.start),e=e.reduce((t,n)=>{if(!t.length)t.push(n);else{const r=t.length-1;t[r].end>=n.start?t[r]={start:t[r].start,end:Math.max(t[r].end,n.end)}:t.push(n)}return t},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let t=0,n=0;for(;t<this.text.length;){const r=this.ranges[n];if(r.start===t){e.push({...r,highlight:!0,text:this.text.slice(r.start,r.end)}),n++,t=r.end,n>=this.ranges.length&&t<this.text.length&&(e.push({start:t,end:this.text.length,highlight:!1,text:this.text.slice(t)}),t=this.text.length);continue}e.push({start:t,end:r.start,highlight:!1,text:this.text.slice(t,r.start)}),t=r.start}return e}},render(e){return this.ranges.length?e("span",{},this.chunks.map(t=>t.highlight?e("strong",{},t.text):t.text)):e("span",{},this.text)}},dG=null,hG=null;var pG=ut(uG,dG,hG,!1,null,null);const Ym=pG.exports;var lb={exports:{}},fG=lb.exports,bS;function mG(){return bS||(bS=1,function(e,t){(function(n,r){e.exports=r()})(typeof self<"u"?self:fG,function(){return(()=>{var n={646:s=>{s.exports=function(a){if(Array.isArray(a)){for(var l=0,c=new Array(a.length);l<a.length;l++)c[l]=a[l];return c}}},713:s=>{s.exports=function(a,l,c){return l in a?Object.defineProperty(a,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[l]=c,a}},860:s=>{s.exports=function(a){if(Symbol.iterator in Object(a)||Object.prototype.toString.call(a)==="[object Arguments]")return Array.from(a)}},206:s=>{s.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(s,a,l)=>{var c=l(646),u=l(860),d=l(206);s.exports=function(h){return c(h)||u(h)||d()}},8:s=>{function a(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s.exports=a=function(c){return typeof c}:s.exports=a=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a(l)}s.exports=a}},r={};function i(s){var a=r[s];if(a!==void 0)return a.exports;var l=r[s]={exports:{}};return n[s](l,l.exports,i),l.exports}i.n=s=>{var a=s&&s.__esModule?()=>s.default:()=>s;return i.d(a,{a}),a},i.d=(s,a)=>{for(var l in a)i.o(a,l)&&!i.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:a[l]})},i.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{VueSelect:()=>Z,default:()=>U,mixins:()=>W});var s=i(319),a=i.n(s),l=i(8),c=i.n(l),u=i(713),d=i.n(u);const h={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(w){var z=this;this.autoscroll&&w&&this.$nextTick(function(){return z.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var w,z=((w=this.$refs.dropdownMenu)===null||w===void 0?void 0:w.children[this.typeAheadPointer])||!1;if(z){var V=this.getDropdownViewport(),L=z.getBoundingClientRect(),se=L.top,J=L.bottom,Se=L.height;if(se<V.top)return this.$refs.dropdownMenu.scrollTop=z.offsetTop;if(J>V.bottom)return this.$refs.dropdownMenu.scrollTop=z.offsetTop-(V.height-Se)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},p={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var w=0;w<this.filteredOptions.length;w++)if(this.selectable(this.filteredOptions[w])){this.typeAheadPointer=w;break}}},open:function(w){w&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var w=this.typeAheadPointer-1;w>=0;w--)if(this.selectable(this.filteredOptions[w])){this.typeAheadPointer=w;break}},typeAheadDown:function(){for(var w=this.typeAheadPointer+1;w<this.filteredOptions.length;w++)if(this.selectable(this.filteredOptions[w])){this.typeAheadPointer=w;break}},typeAheadSelect:function(){var w=this.filteredOptions[this.typeAheadPointer];w&&this.selectable(w)&&this.select(w)},typeAheadToLastSelected:function(){var w=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;w!==-1&&(this.typeAheadPointer=w)}}},m={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(w){this.mutableLoading=w}},methods:{toggleLoading:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=w??!this.mutableLoading}}};function b(w,z,V,L,se,J,Se,G){var ie,ce=typeof w=="function"?w.options:w;return z&&(ce.render=z,ce.staticRenderFns=V,ce._compiled=!0),{exports:w,options:ce}}const A={Deselect:b({},function(){var w=this.$createElement,z=this._self._c||w;return z("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[z("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:b({},function(){var w=this.$createElement,z=this._self._c||w;return z("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[z("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},v={inserted:function(w,z,V){var L=V.context;if(L.appendToBody){document.body.appendChild(w);var se=L.$refs.toggle.getBoundingClientRect(),J=se.height,Se=se.top,G=se.left,ie=se.width,ce=window.scrollX||window.pageXOffset,De=window.scrollY||window.pageYOffset;w.unbindPosition=L.calculatePosition(w,L,{width:ie+"px",left:ce+G+"px",top:De+Se+J+"px"})}},unbind:function(w,z,V){V.context.appendToBody&&(w.unbindPosition&&typeof w.unbindPosition=="function"&&w.unbindPosition(),w.parentNode&&w.parentNode.removeChild(w))}},D=function(w){var z={};return Object.keys(w).sort().forEach(function(V){z[V]=w[V]}),JSON.stringify(z)};var C=0;const S=function(){return++C};function O(w,z){var V=Object.keys(w);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(w);z&&(L=L.filter(function(se){return Object.getOwnPropertyDescriptor(w,se).enumerable})),V.push.apply(V,L)}return V}function k(w){for(var z=1;z<arguments.length;z++){var V=arguments[z]!=null?arguments[z]:{};z%2?O(Object(V),!0).forEach(function(L){d()(w,L,V[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(V)):O(Object(V)).forEach(function(L){Object.defineProperty(w,L,Object.getOwnPropertyDescriptor(V,L))})}return w}const Z=b({components:k({},A),directives:{appendToBody:v},mixins:[h,p,m],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},ariaLabelCombobox:{type:String,default:"Search for options"},ariaLabelListbox:{type:String,default:"Options"},ariaLabelClearSelected:{type:String,default:"Clear selected"},ariaLabelDeselectOption:{type:Function,default:function(w){return"Deselect ".concat(w)}},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(w){return w}},selectable:{type:Function,default:function(w){return!0}},getOptionLabel:{type:Function,default:function(w){return c()(w)==="object"?w.hasOwnProperty(this.label)?w[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(w),`.
`)+"https://vue-select.org/api/props.html#getoptionlabel"):w}},getOptionKey:{type:Function,default:function(w){if(c()(w)!=="object")return w;try{return w.hasOwnProperty("id")?w.id:D(w)}catch(z){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
https://vue-select.org/api/props.html#getoptionkey`,w,z)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(w,z,V){return(z||"").toLocaleLowerCase().indexOf(V.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(w,z){var V=this;return w.filter(function(L){var se=V.getOptionLabel(L);return typeof se=="number"&&(se=se.toString()),V.filterBy(L,se,z)})}},createOption:{type:Function,default:function(w){return c()(this.optionList[0])==="object"?d()({},this.label,w):w}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(w){return["function","boolean"].includes(c()(w))}},clearSearchOnBlur:{type:Function,default:function(w){var z=w.clearSearchOnSelect,V=w.multiple;return z&&!V}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(w,z){return w}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(w,z,V){var L=V.width,se=V.top,J=V.left;w.style.top=se,w.style.left=J,w.style.width=L}},dropdownShouldOpen:{type:Function,default:function(w){var z=w.noDrop,V=w.open,L=w.mutableLoading;return!z&&V&&!L}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return S()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var w=this.value;return this.isTrackingValues&&(w=this.$data._value),w!=null&&w!==""?[].concat(w):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var w=this,z={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:k({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return w.isComposing=!0},compositionend:function(){return w.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(V){return w.search=V.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:z,listFooter:z,header:k({},z,{deselect:this.deselect}),footer:k({},z,{deselect:this.deselect})}},childComponents:function(){return k({},A,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var w=this,z=function(J){return w.limit!==null?J.slice(0,w.limit):J},V=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return z(V);var L=this.search.length?this.filter(V,this.search,this):V;if(this.taggable&&this.search.length){var se=this.createOption(this.search);this.optionExists(se)||L.unshift(se)}return z(L)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(w,z){var V=this;!this.taggable&&(typeof V.resetOnOptionsChange=="function"?V.resetOnOptionsChange(w,z,V.selectedValue):V.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(w){this.isTrackingValues&&this.setInternalValueFromOptions(w)}},multiple:function(){this.clearSelection()},open:function(w){this.$emit(w?"open":"close")},search:function(w){w.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(w){var z=this;Array.isArray(w)?this.$data._value=w.map(function(V){return z.findOptionFromReducedValue(V)}):this.$data._value=this.findOptionFromReducedValue(w)},select:function(w){this.$emit("option:selecting",w),this.isOptionSelected(w)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(w):(this.taggable&&!this.optionExists(w)&&this.$emit("option:created",w),this.multiple&&(w=this.selectedValue.concat(w)),this.updateValue(w),this.$emit("option:selected",w)),this.onAfterSelect(w)},deselect:function(w){var z=this;this.$emit("option:deselecting",w),this.updateValue(this.selectedValue.filter(function(V){return!z.optionComparator(V,w)})),this.$emit("option:deselected",w)},keyboardDeselect:function(w,z){var V,L;this.deselect(w);var se=(V=this.$refs.deselectButtons)===null||V===void 0?void 0:V[z+1],J=(L=this.$refs.deselectButtons)===null||L===void 0?void 0:L[z-1],Se=se??J;Se?Se.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(w){var z=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return z.$refs.search.focus()})},updateValue:function(w){var z=this;this.value===void 0&&(this.$data._value=w),w!==null&&(w=Array.isArray(w)?w.map(function(V){return z.reduce(V)}):this.reduce(w)),this.$emit("input",w)},toggleDropdown:function(w){var z=w.target!==this.searchEl;z&&w.preventDefault();var V=[].concat(a()(this.$refs.deselectButtons||[]),a()([this.$refs.clearButton]));this.searchEl===void 0||V.filter(Boolean).some(function(L){return L.contains(w.target)||L===w.target})?w.preventDefault():this.open&&z?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(w){var z=this;return this.selectedValue.some(function(V){return z.optionComparator(V,w)})},isOptionDeselectable:function(w){return this.isOptionSelected(w)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(w){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&w===this.typeAheadPointer},optionComparator:function(w,z){return this.getOptionKey(w)===this.getOptionKey(z)},findOptionFromReducedValue:function(w){var z=this,V=[].concat(a()(this.options),a()(this.pushedTags)).filter(function(L){return JSON.stringify(z.reduce(L))===JSON.stringify(w)});return V.length===1?V[0]:V.find(function(L){return z.optionComparator(L,z.$data._value)})||w},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var w=null;this.multiple&&(w=a()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(w)}},optionExists:function(w){var z=this;return this.optionList.some(function(V){return z.optionComparator(V,w)})},optionAriaSelected:function(w){return this.selectable(w)?String(this.isOptionSelected(w)):null},normalizeOptionForSlot:function(w){return c()(w)==="object"?w:d()({},this.label,w)},pushTag:function(w){this.pushedTags.push(w)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var w=this.clearSearchOnSelect,z=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:w,multiple:z})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(w,z){this.isKeyboardNavigation=!1,this.selectable(w)&&(this.typeAheadPointer=z)},onSearchKeyDown:function(w){var z=this,V=function(J){if(J.preventDefault(),z.open)return!z.isComposing&&z.typeAheadSelect();z.open=!0},L={8:function(J){return z.maybeDeleteValue()},9:function(J){return z.onTab()},27:function(J){return z.onEscape()},38:function(J){if(J.preventDefault(),z.isKeyboardNavigation=!0,z.open)return z.typeAheadUp();z.open=!0},40:function(J){if(J.preventDefault(),z.isKeyboardNavigation=!0,z.open)return z.typeAheadDown();z.open=!0}};this.selectOnKeyCodes.forEach(function(J){return L[J]=V});var se=this.mapKeydown(L,this);if(typeof se[w.keyCode]=="function")return se[w.keyCode](w)},onSearchKeyPress:function(w){this.open||w.keyCode!==32||(w.preventDefault(),this.open=!0)}}},function(){var w=this,z=w.$createElement,V=w._self._c||z;return V("div",{staticClass:"v-select",class:w.stateClasses,attrs:{id:"v-select-"+w.uid,dir:w.dir}},[w._t("header",null,null,w.scope.header),w._v(" "),V("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[V("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:w.toggleDropdown}},[w._l(w.selectedValue,function(L,se){return w._t("selected-option-container",[V("span",{key:w.getOptionKey(L),staticClass:"vs__selected"},[w._t("selected-option",[w._v(`
            `+w._s(w.getOptionLabel(L))+`
          `)],null,w.normalizeOptionForSlot(L)),w._v(" "),w.multiple?V("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:w.disabled,type:"button",title:w.ariaLabelDeselectOption(w.getOptionLabel(L)),"aria-label":w.ariaLabelDeselectOption(w.getOptionLabel(L))},on:{mousedown:function(J){return J.stopPropagation(),w.deselect(L)},keydown:function(J){return!J.type.indexOf("key")&&w._k(J.keyCode,"enter",13,J.key,"Enter")?null:w.keyboardDeselect(L,se)}}},[V(w.childComponents.Deselect,{tag:"component"})],1):w._e()],2)],{option:w.normalizeOptionForSlot(L),deselect:w.deselect,multiple:w.multiple,disabled:w.disabled})}),w._v(" "),w._t("search",[V("input",w._g(w._b({staticClass:"vs__search"},"input",w.scope.search.attributes,!1),w.scope.search.events))],null,w.scope.search)],2),w._v(" "),V("div",{ref:"actions",staticClass:"vs__actions"},[V("button",{directives:[{name:"show",rawName:"v-show",value:w.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:w.disabled,type:"button",title:w.ariaLabelClearSelected,"aria-label":w.ariaLabelClearSelected},on:{click:w.clearSelection}},[V(w.childComponents.Deselect,{tag:"component"})],1),w._v(" "),w.noDrop?w._e():V("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+w.uid+"__listbox","aria-controls":"vs-"+w.uid+"__listbox","aria-expanded":w.dropdownOpen.toString()},on:{mousedown:w.toggleDropdown}},[w._t("open-indicator",[V(w.childComponents.OpenIndicator,w._b({tag:"component"},"component",w.scope.openIndicator.attributes,!1))],null,w.scope.openIndicator)],2),w._v(" "),w._t("spinner",[V("div",{directives:[{name:"show",rawName:"v-show",value:w.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[w._v("Loading...")])],null,w.scope.spinner)],2)]),w._v(" "),V("transition",{attrs:{name:w.transition}},[w.dropdownOpen?V("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+w.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+w.uid+"__listbox",role:"listbox","aria-label":w.ariaLabelListbox,"aria-multiselectable":w.multiple,tabindex:"-1"},on:{mousedown:function(L){return L.preventDefault(),w.onMousedown(L)},mouseup:w.onMouseUp}},[w._t("list-header",null,null,w.scope.listHeader),w._v(" "),w._l(w.filteredOptions,function(L,se){return V("li",{key:w.getOptionKey(L),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":w.isOptionDeselectable(L)&&se===w.typeAheadPointer,"vs__dropdown-option--selected":w.isOptionSelected(L),"vs__dropdown-option--highlight":se===w.typeAheadPointer,"vs__dropdown-option--kb-focus":w.hasKeyboardFocusBorder(se),"vs__dropdown-option--disabled":!w.selectable(L)},attrs:{id:"vs-"+w.uid+"__option-"+se,role:"option","aria-selected":w.optionAriaSelected(L)},on:{mousemove:function(J){return w.onMouseMove(L,se)},click:function(J){J.preventDefault(),J.stopPropagation(),w.selectable(L)&&w.select(L)}}},[w._t("option",[w._v(`
          `+w._s(w.getOptionLabel(L))+`
        `)],null,w.normalizeOptionForSlot(L))],2)}),w._v(" "),w.filteredOptions.length===0?V("li",{staticClass:"vs__no-options"},[w._t("no-options",[w._v(`
          Sorry, no matching options.
        `)],null,w.scope.noOptions)],2):w._e(),w._v(" "),w._t("list-footer",null,null,w.scope.listFooter)],2):V("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+w.uid+"__listbox",role:"listbox","aria-label":w.ariaLabelListbox}})]),w._v(" "),w._t("footer",null,null,w.scope.footer)],2)},[]).exports,W={ajax:m,pointer:p,pointerScroll:h},U=Z})(),o})()})}(lb)),lb.exports}var il=mG();const hf=Math.min,wl=Math.max,pf=Math.round,kh=Math.floor,Mo=e=>({x:e,y:e}),gG={left:"right",right:"left",bottom:"top",top:"bottom"},TG={start:"end",end:"start"};function AS(e,t,n){return wl(e,hf(t,n))}function tu(e,t){return typeof e=="function"?e(t):e}function xa(e){return e.split("-")[0]}function Hm(e){return e.split("-")[1]}function ny(e){return e==="x"?"y":"x"}function Ox(e){return e==="y"?"height":"width"}const bG=new Set(["top","bottom"]);function ms(e){return bG.has(xa(e))?"y":"x"}function xx(e){return ny(ms(e))}function AG(e,t,n){n===void 0&&(n=!1);const r=Hm(e),i=xx(e),o=Ox(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ff(s)),[s,ff(s)]}function yG(e){const t=ff(e);return[cb(e),t,cb(t)]}function cb(e){return e.replace(/start|end/g,t=>TG[t])}const yS=["left","right"],ES=["right","left"],EG=["top","bottom"],vG=["bottom","top"];function DG(e,t,n){switch(e){case"top":case"bottom":return n?t?ES:yS:t?yS:ES;case"left":case"right":return t?EG:vG;default:return[]}}function SG(e,t,n,r){const i=Hm(e);let o=DG(xa(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(cb)))),o}function ff(e){return e.replace(/left|right|bottom|top/g,t=>gG[t])}function wG(e){return{top:0,right:0,bottom:0,left:0,...e}}function _G(e){return typeof e!="number"?wG(e):{top:e,right:e,bottom:e,left:e}}function mf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vS(e,t,n){let{reference:r,floating:i}=e;const o=ms(t),s=xx(t),a=Ox(s),l=xa(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Hm(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1);break}return p}const CG=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=vS(c,r,l),h=r,p={},m=0;for(let b=0;b<a.length;b++){const{name:A,fn:v}=a[b],{x:D,y:C,data:S,reset:O}=await v({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=D??u,d=C??d,p={...p,[A]:{...p[A],...S}},O&&m<=50&&(m++,typeof O=="object"&&(O.placement&&(h=O.placement),O.rects&&(c=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:u,y:d}=vS(c,h,l)),b=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}};async function kx(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=tu(t,e),m=_G(p),b=a[h?d==="floating"?"reference":"floating":d],A=mf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),C=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},S=mf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:D,strategy:l}):v);return{top:(A.top-S.top+m.top)/C.y,bottom:(S.bottom-A.bottom+m.bottom)/C.y,left:(A.left-S.left+m.left)/C.x,right:(S.right-A.right+m.right)/C.x}}const NG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...A}=tu(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=xa(i),D=ms(a),C=xa(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),O=h||(C||!b?[ff(a)]:yG(a)),k=m!=="none";!h&&k&&O.push(...SG(a,b,m,S));const Z=[a,...O],W=await kx(t,A),U=[];let w=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&U.push(W[v]),d){const se=AG(i,s,S);U.push(W[se[0]],W[se[1]])}if(w=[...w,{placement:i,overflows:U}],!U.every(se=>se<=0)){var z,V;const se=(((z=o.flip)==null?void 0:z.index)||0)+1,J=Z[se];if(J&&(!(d==="alignment"&&D!==ms(J))||w.every(G=>ms(G.placement)===D?G.overflows[0]>0:!0)))return{data:{index:se,overflows:w},reset:{placement:J}};let Se=(V=w.filter(G=>G.overflows[0]<=0).sort((G,ie)=>G.overflows[1]-ie.overflows[1])[0])==null?void 0:V.placement;if(!Se)switch(p){case"bestFit":{var L;const G=(L=w.filter(ie=>{if(k){const ce=ms(ie.placement);return ce===D||ce==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(ce=>ce>0).reduce((ce,De)=>ce+De,0)]).sort((ie,ce)=>ie[1]-ce[1])[0])==null?void 0:L[0];G&&(Se=G);break}case"initialPlacement":Se=a;break}if(i!==Se)return{reset:{placement:Se}}}return{}}}},Rx=new Set(["left","top"]);async function FG(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=xa(n),a=Hm(n),l=ms(n)==="y",c=Rx.has(s)?-1:1,u=o&&l?-1:1,d=tu(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const OG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await FG(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},xG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:A=>{let{x:v,y:D}=A;return{x:v,y:D}}},...l}=tu(e,t),c={x:n,y:r},u=await kx(t,l),d=ms(xa(i)),h=ny(d);let p=c[h],m=c[d];if(o){const A=h==="y"?"top":"left",v=h==="y"?"bottom":"right",D=p+u[A],C=p-u[v];p=AS(D,p,C)}if(s){const A=d==="y"?"top":"left",v=d==="y"?"bottom":"right",D=m+u[A],C=m-u[v];m=AS(D,m,C)}const b=a.fn({...t,[h]:p,[d]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:o,[d]:s}}}}}},kG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=tu(e,t),u={x:n,y:r},d=ms(i),h=ny(d);let p=u[h],m=u[d];const b=tu(a,t),A=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const C=h==="y"?"height":"width",S=o.reference[h]-o.floating[C]+A.mainAxis,O=o.reference[h]+o.reference[C]-A.mainAxis;p<S?p=S:p>O&&(p=O)}if(c){var v,D;const C=h==="y"?"width":"height",S=Rx.has(xa(i)),O=o.reference[d]-o.floating[C]+(S&&((v=s.offset)==null?void 0:v[d])||0)+(S?0:A.crossAxis),k=o.reference[d]+o.reference[C]+(S?0:((D=s.offset)==null?void 0:D[d])||0)-(S?A.crossAxis:0);m<O?m=O:m>k&&(m=k)}return{[h]:p,[d]:m}}}};function Zm(){return typeof window<"u"}function Su(e){return Mx(e)?(e.nodeName||"").toLowerCase():"#document"}function wi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uo(e){var t;return(t=(Mx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mx(e){return Zm()?e instanceof Node||e instanceof wi(e).Node:!1}function uo(e){return Zm()?e instanceof Element||e instanceof wi(e).Element:!1}function Ho(e){return Zm()?e instanceof HTMLElement||e instanceof wi(e).HTMLElement:!1}function DS(e){return!Zm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wi(e).ShadowRoot}const RG=new Set(["inline","contents"]);function nh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ho(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!RG.has(i)}const MG=new Set(["table","td","th"]);function BG(e){return MG.has(Su(e))}const IG=[":popover-open",":modal"];function Pm(e){return IG.some(t=>{try{return e.matches(t)}catch{return!1}})}const LG=["transform","translate","scale","rotate","perspective"],YG=["transform","translate","scale","rotate","perspective","filter"],HG=["paint","layout","strict","content"];function ry(e){const t=iy(),n=uo(e)?ho(e):e;return LG.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||YG.some(r=>(n.willChange||"").includes(r))||HG.some(r=>(n.contain||"").includes(r))}function ZG(e){let t=ka(e);for(;Ho(t)&&!nu(t);){if(ry(t))return t;if(Pm(t))return null;t=ka(t)}return null}function iy(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const PG=new Set(["html","body","#document"]);function nu(e){return PG.has(Su(e))}function ho(e){return wi(e).getComputedStyle(e)}function $m(e){return uo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ka(e){if(Su(e)==="html")return e;const t=e.assignedSlot||e.parentNode||DS(e)&&e.host||Uo(e);return DS(t)?t.host:t}function Bx(e){const t=ka(e);return nu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ho(t)&&nh(t)?t:Bx(t)}function _d(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Bx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=wi(i);if(o){const a=ub(s);return t.concat(s,s.visualViewport||[],nh(i)?i:[],a&&n?_d(a):[])}return t.concat(i,_d(i,[],n))}function ub(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ix(e){const t=ho(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ho(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=pf(n)!==o||pf(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function oy(e){return uo(e)?e:e.contextElement}function Pc(e){const t=oy(e);if(!Ho(t))return Mo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(t);let s=(o?pf(n.width):n.width)/r,a=(o?pf(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const $G=Mo(0);function Lx(e){const t=wi(e);return!iy()||!t.visualViewport?$G:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function UG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wi(e)?!1:t}function Hl(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=oy(e);let s=Mo(1);t&&(r?uo(r)&&(s=Pc(r)):s=Pc(e));const a=UG(o,n,r)?Lx(o):Mo(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const h=wi(o),p=r&&uo(r)?wi(r):r;let m=h,b=ub(m);for(;b&&r&&p!==m;){const A=Pc(b),v=b.getBoundingClientRect(),D=ho(b),C=v.left+(b.clientLeft+parseFloat(D.paddingLeft))*A.x,S=v.top+(b.clientTop+parseFloat(D.paddingTop))*A.y;l*=A.x,c*=A.y,u*=A.x,d*=A.y,l+=C,c+=S,m=wi(b),b=ub(m)}}return mf({width:u,height:d,x:l,y:c})}function Um(e,t){const n=$m(e).scrollLeft;return t?t.left+n:Hl(Uo(e)).left+n}function Yx(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Um(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function zG(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Uo(r),a=t?Pm(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Mo(1);const u=Mo(0),d=Ho(r);if((d||!d&&!o)&&((Su(r)!=="body"||nh(s))&&(l=$m(r)),Ho(r))){const p=Hl(r);c=Pc(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=s&&!d&&!o?Yx(s,l):Mo(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function VG(e){return Array.from(e.getClientRects())}function jG(e){const t=Uo(e),n=$m(e),r=e.ownerDocument.body,i=wl(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=wl(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Um(e);const a=-n.scrollTop;return ho(r).direction==="rtl"&&(s+=wl(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const SS=25;function GG(e,t){const n=wi(e),r=Uo(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=iy();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=Um(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-p);m<=SS&&(o-=m)}else c<=SS&&(o+=c);return{width:o,height:s,x:a,y:l}}const qG=new Set(["absolute","fixed"]);function WG(e,t){const n=Hl(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ho(e)?Pc(e):Mo(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function wS(e,t,n){let r;if(t==="viewport")r=GG(e,n);else if(t==="document")r=jG(Uo(e));else if(uo(t))r=WG(t,n);else{const i=Lx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return mf(r)}function Hx(e,t){const n=ka(e);return n===t||!uo(n)||nu(n)?!1:ho(n).position==="fixed"||Hx(n,t)}function KG(e,t){const n=t.get(e);if(n)return n;let r=_d(e,[],!1).filter(a=>uo(a)&&Su(a)!=="body"),i=null;const o=ho(e).position==="fixed";let s=o?ka(e):e;for(;uo(s)&&!nu(s);){const a=ho(s),l=ry(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&i&&qG.has(i.position)||nh(s)&&!l&&Hx(e,s))?r=r.filter(c=>c!==s):i=a,s=ka(s)}return t.set(e,r),r}function QG(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Pm(t)?[]:KG(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((l,c)=>{const u=wS(t,c,i);return l.top=wl(u.top,l.top),l.right=hf(u.right,l.right),l.bottom=hf(u.bottom,l.bottom),l.left=wl(u.left,l.left),l},wS(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function JG(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function XG(e,t,n){const r=Ho(t),i=Uo(t),o=n==="fixed",s=Hl(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Mo(0);function c(){l.x=Um(i)}if(r||!r&&!o)if((Su(t)!=="body"||nh(i))&&(a=$m(t)),r){const p=Hl(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?Yx(i,a):Mo(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function vg(e){return ho(e).position==="static"}function _S(e,t){if(!Ho(e)||ho(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Uo(e)===n&&(n=n.ownerDocument.body),n}function Zx(e,t){const n=wi(e);if(Pm(e))return n;if(!Ho(e)){let i=ka(e);for(;i&&!nu(i);){if(uo(i)&&!vg(i))return i;i=ka(i)}return n}let r=_S(e,t);for(;r&&BG(r)&&vg(r);)r=_S(r,t);return r&&nu(r)&&vg(r)&&!ry(r)?n:r||ZG(e)||n}const eq=async function(e){const t=this.getOffsetParent||Zx,n=this.getDimensions,r=await n(e.floating);return{reference:XG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tq(e){return ho(e).direction==="rtl"}const nq={convertOffsetParentRelativeRectToViewportRelativeRect:zG,getDocumentElement:Uo,getClippingRect:QG,getOffsetParent:Zx,getElementRects:eq,getClientRects:VG,getDimensions:JG,getScale:Pc,isElement:uo,isRTL:tq};function Px(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rq(e,t){let n=null,r;const i=Uo(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const m=kh(d),b=kh(i.clientWidth-(u+h)),A=kh(i.clientHeight-(d+p)),v=kh(u),D={rootMargin:-m+"px "+-b+"px "+-A+"px "+-v+"px",threshold:wl(0,hf(1,l))||1};let C=!0;function S(O){const k=O[0].intersectionRatio;if(k!==l){if(!C)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Px(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,D)}n.observe(e)}return s(!0),o}function iq(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=oy(e),u=i||o?[...c?_d(c):[],..._d(t)]:[];u.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=c&&a?rq(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(v=>{let[D]=v;D&&D.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let m,b=l?Hl(e):null;l&&A();function A(){const v=Hl(e);b&&!Px(b,v)&&n(),b=v,m=requestAnimationFrame(A)}return n(),()=>{var v;u.forEach(D=>{i&&D.removeEventListener("scroll",n),o&&D.removeEventListener("resize",n)}),d?.(),(v=p)==null||v.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const oq=OG,sq=xG,aq=NG,lq=kG,cq=(e,t,n)=>{const r=new Map,i={platform:nq,...n},o={...i.platform,_c:r};return CG(e,t,{...i,platform:o})},uq={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var dq=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},hq=[],pq=ut(uq,dq,hq,!1,null,null);const fq=pq.exports,mq={name:"NcEllipsisedOption",components:{NcHighlight:Ym},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?Fx(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var gq=function(){var e=this,t=e._self._c;return t("span",{staticClass:"name-parts",attrs:{dir:"auto",title:e.name}},[t("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?t("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},Tq=[],bq=ut(mq,gq,Tq,!1,null,"f6384352");const Aq=bq.exports;function $x(e){return CB()?(NB(e),!0):!1}function P0(e){return typeof e=="function"?e():jd(e)}const Ux=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yq=Object.prototype.toString,Eq=e=>yq.call(e)==="[object Object]",$0=()=>{},db=vq();function vq(){var e,t;return Ux&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}const CS={mounted:"inserted",unmounted:"unbind"};function Dq(...e){if(e.length!==1)return FB(...e);const t=e[0];return typeof t=="function"?gu(OB(()=>({get:t,set:$0}))):pi(t)}function E0(e){var t;const n=P0(e);return(t=n?.$el)!=null?t:n}const zx=Ux?window:void 0;function Ap(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=zx):[t,n,r,i]=e,!t)return $0;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},a=(u,d,h,p)=>(u.addEventListener(d,h,p),()=>u.removeEventListener(d,h,p)),l=ma(()=>[E0(t),P0(i)],([u,d])=>{if(s(),!u)return;const h=Eq(d)?{...d}:d;o.push(...n.flatMap(p=>r.map(m=>a(u,p,m,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return $x(c),c}let NS=!1;function FS(e,t,n={}){const{window:r=zx,ignore:i=[],capture:o=!0,detectIframe:s=!1}=n;if(!r)return $0;db&&!NS&&(NS=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",$0)),r.document.documentElement.addEventListener("click",$0));let a=!0;const l=u=>i.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(h=>h===u.target||u.composedPath().includes(h));{const h=E0(d);return h&&(u.target===h||u.composedPath().includes(h))}}),c=[Ap(r,"click",u=>{const d=E0(e);if(!(!d||d===u.target||u.composedPath().includes(d))){if(u.detail===0&&(a=!l(u)),!a){a=!0;return}t(u)}},{passive:!0,capture:o}),Ap(r,"pointerdown",u=>{const d=E0(e);a=!l(u)&&!!(d&&!u.composedPath().includes(d))},{passive:!0}),s&&Ap(r,"blur",u=>{setTimeout(()=>{var d;const h=E0(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!h?.contains(r.document.activeElement)&&t(u)},0)})].filter(Boolean);return()=>c.forEach(u=>u())}const Sq={[CS.mounted](e,t){const n=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=FS(e,t.value,{capture:n});else{const[r,i]=t.value;e.__onClickOutside_stop=FS(e,r,Object.assign({capture:n},i))}},[CS.unmounted](e){e.__onClickOutside_stop()}};function Dg(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Vx(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Vx(n)}}function wq(e){const t=e||window.event,n=t.target;return Vx(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Sg=new WeakMap;function _q(e,t=!1){const n=pi(t);let r=null,i="";ma(Dq(e),a=>{const l=Dg(P0(a));if(l){const c=l;if(Sg.get(c)||Sg.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(i=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const o=()=>{const a=Dg(P0(e));!a||n.value||(db&&(r=Ap(a,"touchmove",l=>{wq(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},s=()=>{const a=Dg(P0(e));!a||!n.value||(db&&r?.(),a.style.overflow=i,Sg.delete(a),n.value=!1)};return $x(s),bs({get(){return n.value},set(a){a?o():s()}})}function Cq(){let e=!1;const t=pi(!1);return(n,r)=>{if(t.value=r.value,e)return;e=!0;const i=_q(n,r.value);ma(t,o=>i.value=o)}}Cq();const Nq={name:"NcActionLink",mixins:[Im],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{href:{type:String,default:"#",required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var Fq=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("a",{staticClass:"action-link focusable",attrs:{download:e.download,href:e.href,"aria-label":e.ariaLabel,target:e.target,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-link__icon",class:[e.isIconUrl?"action-link__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),e.name?t("span",{staticClass:"action-link__longtext-wrapper"},[t("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},Oq=[],xq=ut(Nq,Fq,Oq,!1,null,"30c015f0");const jx=xq.exports,kq={name:"NcActionRouter",mixins:[Im],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],default:"",required:!0},exact:{type:Boolean,default:!1}}};var Rq=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("RouterLink",{staticClass:"action-router focusable",attrs:{to:e.to,"aria-label":e.ariaLabel,exact:e.exact,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(n){return e.onClick.apply(null,arguments)}}},[e._t("icon",function(){return[t("span",{staticClass:"action-router__icon",class:[e.isIconUrl?"action-router__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),e.name?t("span",{staticClass:"action-router__longtext-wrapper"},[t("strong",{staticClass:"action-router__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-router__text"},[e._v(e._s(e.text))]),e._e()],2)],1)},Mq=[],Bq=ut(kq,Rq,Mq,!1,null,"579c6b4d");const Iq=Bq.exports,Lq={name:"NcActionText",mixins:[Im],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var Yq=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("span",{staticClass:"action-text",on:{click:e.onClick}},[e._t("icon",function(){return[e.icon!==""?t("span",{staticClass:"action-text__icon",class:[e.isIconUrl?"action-text__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}}):e._e()]}),e.name?t("span",{staticClass:"action-text__longtext-wrapper"},[t("strong",{staticClass:"action-text__name"},[e._v(" "+e._s(e.name)+" ")]),t("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-text__text"},[e._v(e._s(e.text))]),e._e()],2)])},Hq=[],Zq=ut(Lq,Yq,Hq,!1,null,"6a01d6d2");const Pq=Zq.exports,$q=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-online, var(--color-success, #2D7B41))"
		d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,Uq=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="var(--color-success)" d="M4.8 11.2h6.4V4.8H4.8v6.4zM8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" />
</svg>
`,zq=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-away, var(--color-warning, #C88800))"
		d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,OS=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="none" d="M-4-4h24v24H-4z" />
	<path fill="var(--color-warning)" d="M6.9.1C3 .6-.1 4-.1 8c0 4.4 3.6 8 8 8 4 0 7.4-3 8-6.9-1.2 1.3-2.9 2.1-4.7 2.1-3.5 0-6.4-2.9-6.4-6.4 0-1.9.8-3.6 2.1-4.7z" />
</svg>
`,Vq=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-busy, var(--color-error, #DB0606))"
		d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,jq=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-busy, var(--color-error, #DB0606))"
		d="M280-440h400v-80H280v80ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,Gq=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="none" d="M-4-4h24v24H-4V-4z" />
	<path fill="var(--color-border-error, var(--color-error))" d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" />
	<path fill="#fdffff" d="M5 6.5h6c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5H5c-.8 0-1.5-.7-1.5-1.5S4.2 6.5 5 6.5z" />
</svg>
`,xS=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-offline, var(--color-text-maxcontrast, #6B6B6B))"
		d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/>
</svg>
`,kS=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="none" d="M-4-4h24v24H-4V-4z" />
	<path d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 3.2c2.7 0 4.8 2.1 4.8 4.8s-2.1 4.8-4.8 4.8S3.2 10.7 3.2 8 5.3 3.2 8 3.2z" />
</svg>
`;Et(H4);const Gx=e=>{switch(e){case"away":return me("away");case"busy":return me("busy");case"dnd":return me("do not disturb");case"online":return me("online");case"invisible":return me("invisible");case"offline":return me("offline");default:return e}};Et(Z4);const qq={online:Ks?Uq:$q,away:Ks?OS:zq,busy:Ks?OS:Vq,dnd:Ks?Gq:jq,invisible:Ks?kS:xS,offline:Ks?kS:xS},Wq={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:e=>["online","away","busy","dnd","invisible","offline"].includes(e)},ariaHidden:{type:String,default:null,validator:e=>["true","false"].includes(e)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){return this.status??this.fetchedUserStatus},activeSvg(){return qq[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:me("User status: {status}",{status:Gx(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e,t){if(!e||!fm()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:n}=await fr.get(Xi("/apps/user_status/api/v1/statuses/{user}",{user:e}));this.fetchedUserStatus=n.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var Kq=function(){var e=this,t=e._self._c;return e.activeStatus?t("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(e.status)},attrs:{role:"img","aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel},domProps:{innerHTML:e._s(e.activeSvg)}}):e._e()},Qq=[],Jq=ut(Wq,Kq,Qq,!1,null,"02786ab5");const qx=Jq.exports,RS=/(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig,Wx=(e,t)=>{const n=(u,d)=>u.startsWith(d)?u.slice(d.length):u,r=(u,...d)=>d.reduce((h,p)=>n(h,p),u);if(!e)return null;const i=/^https?:\/\//.test(t),o=/^[a-z][a-z0-9+.-]*:.+/.test(t);if(!i&&o||i&&!t.startsWith(bv())||!i&&!t.startsWith("/"))return null;const s=i?r(t,bv(),"/index.php"):t,a=r(e.history.base,wB(),"/index.php"),l=r(s,a)||"/",c=e.resolve(l).route;return c.matched.length?c.fullPath:null};function gf(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}gf();const Xq=Symbol.for("nc:theme:enforced");function eW(e){const t=bs(()=>pl(e)??document.body),n=pi(gf(t.value)),r=jB();function i(){n.value=gf(t.value)}return GB(t,i,{attributes:!0}),ma(t,i),ma(r,i,{immediate:!0}),gu(n)}const tW=VB(()=>eW());function sy(){const e=tW(),t=od(Xq,void 0);return bs(()=>t?.value?t.value==="dark":e.value)}Et(P4);class Hn{constructor(t,n,r,i){this.r=t,this.g=n,this.b=r,i&&(this.name=i)}get color(){const t=n=>`00${n.toString(16)}`.slice(-2);return`#${t(this.r)}${t(this.g)}${t(this.b)}`}}function nW(e,t){const n=new Array(3);return n[0]=(t[1].r-t[0].r)/e,n[1]=(t[1].g-t[0].g)/e,n[2]=(t[1].b-t[0].b)/e,n}function wg(e,t,n){const r=[];r.push(t);const i=nW(e,[t,n]);for(let o=1;o<e;o++){const s=Math.floor(t.r+i[0]*o),a=Math.floor(t.g+i[1]*o),l=Math.floor(t.b+i[2]*o);r.push(new Hn(s,a,l))}return r}const rW=[new Hn(182,70,157,me("Purple")),new Hn(191,103,139,me("Rosy brown")),new Hn(201,136,121,me("Feldspar")),new Hn(211,169,103,me("Whiskey")),new Hn(221,203,85,me("Gold")),new Hn(165,184,114,me("Olivine")),new Hn(110,166,143,me("Acapulco")),new Hn(55,148,172,me("Boston Blue")),new Hn(0,130,201,me("Nextcloud blue")),new Hn(45,115,190,me("Mariner")),new Hn(91,100,179,me("Blue Violet")),new Hn(136,85,168,me("Deluge"))];function iW(e){const t=new Hn(182,70,157,me("Purple")),n=new Hn(221,203,85,me("Gold")),r=new Hn(0,130,201,me("Nextcloud blue")),i=wg(e,t,n),o=wg(e,n,r),s=wg(e,r,t);return i.concat(o).concat(s)}var MS={exports:{}},BS={exports:{}},IS;function oW(){return IS||(IS=1,function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],i=0,o=0;i<n.length;i++,o+=8)r[o>>>5]|=n[i]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],i=0;i<n.length*32;i+=8)r.push(n[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(n){for(var r=[],i=0;i<n.length;i++)r.push((n[i]>>>4).toString(16)),r.push((n[i]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substr(i,2),16));return r},bytesToBase64:function(n){for(var r=[],i=0;i<n.length;i+=3)for(var o=n[i]<<16|n[i+1]<<8|n[i+2],s=0;s<4;s++)i*8+s*6<=n.length*8?r.push(e.charAt(o>>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,o=0;i<n.length;o=++i%4)o!=0&&r.push((e.indexOf(n.charAt(i-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(n.charAt(i))>>>6-o*2);return r}};BS.exports=t}()),BS.exports}var _g,LS;function YS(){if(LS)return _g;LS=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r)&255);return n},bytesToString:function(t){for(var n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(t[r]));return n.join("")}}};return _g=e,_g}var Cg,HS;function sW(){if(HS)return Cg;HS=1,Cg=function(n){return n!=null&&(e(n)||t(n)||!!n._isBuffer)};function e(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function t(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&e(n.slice(0,0))}return Cg}var ZS;function aW(){return ZS||(ZS=1,function(){var e=oW(),t=YS().utf8,n=sW(),r=YS().bin,i=function(o,s){o.constructor==String?s&&s.encoding==="binary"?o=r.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var a=e.bytesToWords(o),l=o.length*8,c=1732584193,u=-271733879,d=-1732584194,h=271733878,p=0;p<a.length;p++)a[p]=(a[p]<<8|a[p]>>>24)&16711935|(a[p]<<24|a[p]>>>8)&4278255360;a[l>>>5]|=128<<l%32,a[(l+64>>>9<<4)+14]=l;for(var m=i._ff,b=i._gg,A=i._hh,v=i._ii,p=0;p<a.length;p+=16){var D=c,C=u,S=d,O=h;c=m(c,u,d,h,a[p+0],7,-680876936),h=m(h,c,u,d,a[p+1],12,-389564586),d=m(d,h,c,u,a[p+2],17,606105819),u=m(u,d,h,c,a[p+3],22,-1044525330),c=m(c,u,d,h,a[p+4],7,-176418897),h=m(h,c,u,d,a[p+5],12,1200080426),d=m(d,h,c,u,a[p+6],17,-1473231341),u=m(u,d,h,c,a[p+7],22,-45705983),c=m(c,u,d,h,a[p+8],7,1770035416),h=m(h,c,u,d,a[p+9],12,-1958414417),d=m(d,h,c,u,a[p+10],17,-42063),u=m(u,d,h,c,a[p+11],22,-1990404162),c=m(c,u,d,h,a[p+12],7,1804603682),h=m(h,c,u,d,a[p+13],12,-40341101),d=m(d,h,c,u,a[p+14],17,-1502002290),u=m(u,d,h,c,a[p+15],22,1236535329),c=b(c,u,d,h,a[p+1],5,-165796510),h=b(h,c,u,d,a[p+6],9,-1069501632),d=b(d,h,c,u,a[p+11],14,643717713),u=b(u,d,h,c,a[p+0],20,-373897302),c=b(c,u,d,h,a[p+5],5,-701558691),h=b(h,c,u,d,a[p+10],9,38016083),d=b(d,h,c,u,a[p+15],14,-660478335),u=b(u,d,h,c,a[p+4],20,-405537848),c=b(c,u,d,h,a[p+9],5,568446438),h=b(h,c,u,d,a[p+14],9,-1019803690),d=b(d,h,c,u,a[p+3],14,-187363961),u=b(u,d,h,c,a[p+8],20,1163531501),c=b(c,u,d,h,a[p+13],5,-1444681467),h=b(h,c,u,d,a[p+2],9,-51403784),d=b(d,h,c,u,a[p+7],14,1735328473),u=b(u,d,h,c,a[p+12],20,-1926607734),c=A(c,u,d,h,a[p+5],4,-378558),h=A(h,c,u,d,a[p+8],11,-2022574463),d=A(d,h,c,u,a[p+11],16,1839030562),u=A(u,d,h,c,a[p+14],23,-35309556),c=A(c,u,d,h,a[p+1],4,-1530992060),h=A(h,c,u,d,a[p+4],11,1272893353),d=A(d,h,c,u,a[p+7],16,-155497632),u=A(u,d,h,c,a[p+10],23,-1094730640),c=A(c,u,d,h,a[p+13],4,681279174),h=A(h,c,u,d,a[p+0],11,-358537222),d=A(d,h,c,u,a[p+3],16,-722521979),u=A(u,d,h,c,a[p+6],23,76029189),c=A(c,u,d,h,a[p+9],4,-640364487),h=A(h,c,u,d,a[p+12],11,-421815835),d=A(d,h,c,u,a[p+15],16,530742520),u=A(u,d,h,c,a[p+2],23,-995338651),c=v(c,u,d,h,a[p+0],6,-198630844),h=v(h,c,u,d,a[p+7],10,1126891415),d=v(d,h,c,u,a[p+14],15,-1416354905),u=v(u,d,h,c,a[p+5],21,-57434055),c=v(c,u,d,h,a[p+12],6,1700485571),h=v(h,c,u,d,a[p+3],10,-1894986606),d=v(d,h,c,u,a[p+10],15,-1051523),u=v(u,d,h,c,a[p+1],21,-2054922799),c=v(c,u,d,h,a[p+8],6,1873313359),h=v(h,c,u,d,a[p+15],10,-30611744),d=v(d,h,c,u,a[p+6],15,-1560198380),u=v(u,d,h,c,a[p+13],21,1309151649),c=v(c,u,d,h,a[p+4],6,-145523070),h=v(h,c,u,d,a[p+11],10,-1120210379),d=v(d,h,c,u,a[p+2],15,718787259),u=v(u,d,h,c,a[p+9],21,-343485551),c=c+D>>>0,u=u+C>>>0,d=d+S>>>0,h=h+O>>>0}return e.endian([c,u,d,h])};i._ff=function(o,s,a,l,c,u,d){var h=o+(s&a|~s&l)+(c>>>0)+d;return(h<<u|h>>>32-u)+s},i._gg=function(o,s,a,l,c,u,d){var h=o+(s&l|a&~l)+(c>>>0)+d;return(h<<u|h>>>32-u)+s},i._hh=function(o,s,a,l,c,u,d){var h=o+(s^a^l)+(c>>>0)+d;return(h<<u|h>>>32-u)+s},i._ii=function(o,s,a,l,c,u,d){var h=o+(a^(s|~l))+(c>>>0)+d;return(h<<u|h>>>32-u)+s},i._blocksize=16,i._digestsize=16,MS.exports=function(o,s){if(o==null)throw new Error("Illegal argument "+o);var a=e.wordsToBytes(i(o,s));return s&&s.asBytes?a:s&&s.asString?r.bytesToString(a):e.bytesToHex(a)}}()),MS.exports}var lW=aW();const cW=$l(lW);function PS(e){let t=e.toLowerCase();t.match(/^([0-9a-f]{4}-?){8}$/)===null&&(t=cW(t)),t=t.replace(/[^0-9a-f]/g,"");const n=6,r=iW(n);function i(o,s){let a=0;const l=[];for(let c=0;c<o.length;c++)l.push(parseInt(o.charAt(c),16)%16);for(const c in l)a+=l[c];return parseInt(parseInt(a,10)%s,10)}return r[i(t,n*3)]}function uW(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(t=>t.enabled(e)):[]}const Kx=pi(Qx());window.addEventListener("resize",()=>{Kx.value=Qx()});function Qx(){return window.outerHeight===window.screen.height}gu(Kx);const ay=1024,Jx=ay/2,Tf=e=>document.documentElement.clientWidth<e,ly=pi(Tf(ay)),dW=pi(Tf(Jx));window.addEventListener("resize",()=>{ly.value=Tf(ay),dW.value=Tf(Jx)},{passive:!0});function Abe(){return gu(ly)}gu(ly);function Xx(e,t){const n=(t?.size||64)<=64?64:512,r=t?.isGuest?"/guest":"",i=t?.isDarkTheme??gf(document.body)?"/dark":"";return io(`/avatar${r}/{user}/{size}${i}`,{user:e,size:n})}var hb={exports:{}},hW=hb.exports,$S;function pW(){return $S||($S=1,function(e){(function(t){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const r=n("plaintext"),i=n("html"),o=n("comment"),s=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function l(m,b,A){m=m||"",b=b||[],A=A||"";let v=u(b,A);return d(m,v)}function c(m,b){m=m||[],b=b||"";let A=u(m,b);return function(v){return d(v||"",A)}}l.init_streaming_mode=c;function u(m,b){return m=h(m),{allowable_tags:m,tag_replacement:b,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function d(m,b){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let A=b.allowable_tags,v=b.tag_replacement,D=b.state,C=b.tag_buffer,S=b.depth,O=b.in_quote_char,k="";for(let Z=0,W=m.length;Z<W;Z++){let U=m[Z];if(D===r)switch(U){case"<":D=i,C+=U;break;default:k+=U;break}else if(D===i)switch(U){case"<":if(O)break;S++;break;case">":if(O)break;if(S){S--;break}O="",D=r,C+=">",A.has(p(C))?k+=C:k+=v,C="";break;case'"':case"'":U===O?O="":O=O||U,C+=U;break;case"-":C==="<!-"&&(D=o),C+=U;break;case" ":case`
`:if(C==="<"){D=r,k+="< ",C="";break}C+=U;break;default:C+=U;break}else if(D===o)switch(U){case">":C.slice(-2)=="--"&&(D=r),C="";break;default:C+=U;break}}return b.state=D,b.tag_buffer=C,b.depth=S,b.in_quote_char=O,k}function h(m){let b=new Set;if(typeof m=="string"){let A;for(;A=s.exec(m);)b.add(A[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?b=new Set(m):typeof m.forEach=="function"&&m.forEach(b.add,b);return b}function p(m){let b=a.exec(m);return b?b[1].toLowerCase():null}e.exports?e.exports=l:t.striptags=l})(hW)}(hb)),hb.exports}pW();const ek={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){if(!e)return;const t=fm();if(!(!Object.prototype.hasOwnProperty.call(t,"user_status")||!t.user_status.enabled)&&sd())try{const{data:n}=await fr.get(Xi("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:r,message:i,icon:o}=n.ocs.data;this.userStatus.status=r,this.userStatus.message=i||"",this.userStatus.icon=o||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&n.response.data.ocs?.data?.length===0)return;console.error(n)}}}};Et($4);const tk=Wb.getBuilder("nextcloud").persist().build();function fW(e){const t=tk.getItem("user-has-avatar."+e);return typeof t=="string"?!!t:null}function US(e,t){e&&tk.setItem("user-has-avatar."+e,t)}const mW={name:"NcAvatar",directives:{ClickOutside:Sq},components:{IconDotsHorizontal:aN,NcActions:Os,NcButton:_i,NcIconSvgWrapper:Tu,NcLoadingIcon:Vd,NcUserStatusIcon:qx},mixins:[ek],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},showUserStatus:{type:Boolean,default:!0},verboseStatus:{type:Boolean,default:!1},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[String,Object,Element,Boolean],default:"body"}},setup(){return{isDarkTheme:sy()}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?me("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:Gx(this.userStatus.status)}):me("Avatar of {displayName}",{displayName:this.displayName??this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&this.showUserStatus&&!this.verboseStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===sd()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--avatar-size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:t,b:n}=PS(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${t}, ${n}, 0.1)`}},initialsStyle(){const{r:e,g:t,b:n}=PS(this.userIdentifier);return{color:`rgb(${e}, ${t}, ${n})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const t=this.userIdentifier.trim();if(t==="")return e;const n=t.match(/[\p{L}\p{N}\s]/gu);if(n==null)return e;const r=n.join(""),i=r.lastIndexOf(" ");e=String.fromCodePoint(r.codePointAt(0)),i!==-1&&(e=e.concat(String.fromCodePoint(r.codePointAt(i+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(n=>{const r=Wx(this.$router,n.hyperlink);return{ncActionComponent:r?Iq:jx,ncActionComponentProps:r?{to:r,icon:n.icon}:{href:n.hyperlink,icon:n.icon},text:n.title}});for(const n of uW(this.contactsMenuData))try{e.push({ncActionComponent:Ha,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>n.callback(this.contactsMenuData)},text:n.displayName(this.contactsMenuData),iconSvg:n.iconSvg(this.contactsMenuData)})}catch(r){Z0.error(`Failed to render ContactsMenu action ${n.id}`,{error:r,action:n})}function t(n){const r=document.createTextNode(n),i=document.createElement("p");return i.appendChild(r),i.innerHTML}if(!this.hideStatus&&this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
					<text x="50%" y="50%" text-anchor="middle" style="dominant-baseline: central; font-size: 85%">${t(this.userStatus.icon)}</text>
				</svg>`;return[{ncActionComponent:Pq,ncActionComponentProps:{},iconSvg:this.userStatus.icon?n:void 0,text:`${this.userStatus.message}`}].concat(e)}return e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),F0("settings:avatar:updated",this.loadAvatarUrl),F0("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),F0("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){V1("settings:avatar:updated",this.loadAvatarUrl),V1("settings:display-name:updated",this.loadAvatarUrl),V1("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:me,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message},this.hasStatus=e.status!==null)},async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:t}=await fr.post(io("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuData=t,this.contactsMenuActions=t.topAction?[t.topAction].concat(t.actions):t.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),t=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,t)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,t){let n=Xx(e,{size:t,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return e===sd()?.uid&&typeof oc_userconfig<"u"&&(n+="?v="+oc_userconfig.avatar.version),n},updateImageIfValid(e,t=null){const n=fW(this.user);if(this.isUserDefined&&typeof n=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),n===!1&&(this.userDoesNotExist=!0);return}const r=new Image;r.onload=()=>{this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),this.isAvatarLoaded=!0,US(this.user,!0)},r.onerror=()=>{console.debug("Invalid avatar url",e),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,US(this.user,!1)},t&&(r.srcset=t),r.src=e}}};var gW=function(){var e=this,t=e._self._c;return t("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip}},[e._t("icon",function(){return[e.iconClass?t("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?t("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&e.menu.length===0?t("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.avatarAriaLabel,variant:"tertiary-no-background"},on:{click:e.toggleMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?t("NcLoadingIcon"):t("IconDotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,1269954734)}):e.hasMenu?t("NcActions",{attrs:{"aria-label":e.avatarAriaLabel,container:e.menuContainer,"force-menu":"","manual-open":"",open:e.contactsMenuOpenState,variant:"tertiary-no-background"},on:{"update:open":function(n){e.contactsMenuOpenState=n},click:e.toggleMenu},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[t("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(n,r){return t(n.ncActionComponent,e._g(e._b({key:r,tag:"component",scopedSlots:e._u([n.iconSvg?{key:"icon",fn:function(){return[t("NcIconSvgWrapper",{attrs:{svg:n.iconSvg}})]},proxy:!0}:null],null,!0)},"component",n.ncActionComponentProps,!1),n.ncActionComponentHandlers),[e._v(" "+e._s(n.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?t("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?t("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:e.userStatus.status,"aria-hidden":String(e.hasMenu)}}):e._e(),e.showInitials?t("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[t("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},TW=[],bW=ut(mW,gW,TW,!1,null,"4c42c96e");const nk=bW.exports,AW=8,zS=32,yW={name:"NcListItemIcon",components:{NcAvatar:nk,NcHighlight:Ym,NcIconSvgWrapper:Tu},mixins:[ek],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:zS},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:AW,defaultSize:zS}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){return this.subname?.trim?.()!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,t=this.search.match(e);return this.isNoUser||!t?[this.search,this.search]:[t[1].trim(),t[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var EW=function(){var e=this,t=e._self._c;return t("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSize<e.defaultSize},style:e.cssVars,attrs:{id:e.id}},e.$listeners),[t("NcAvatar",e._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":e.displayName||e.name,"is-no-user":e.isNoUser,size:e.avatarSize}},"NcAvatar",e.$attrs,!1)),t("div",{staticClass:"option__details"},[t("NcHighlight",{staticClass:"option__lineone",attrs:{text:e.name,search:e.searchParts[0]}}),e.isValidSubname&&e.isSizeBigEnough?t("NcHighlight",{staticClass:"option__linetwo",attrs:{text:e.subname,search:e.searchParts[1]}}):e.hasStatus?t("span",[t("span",[e._v(e._s(e.userStatus.icon))]),t("span",[e._v(e._s(e.userStatus.message))])]):e._e()],1),e._t("default",function(){return[e.hasIconSvg?t("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:e.iconSvg,name:e.iconName}}):e.hasIcon?t("span",{staticClass:"icon option__icon",class:e.icon,attrs:{"aria-label":e.iconName}}):e._e()]})],2)},vW=[],DW=ut(yW,EW,vW,!1,null,"a0f4d73a");const SW=DW.exports;Et(QC,U4);const wW={name:"NcSelect",components:{ChevronDown:fq,NcEllipsisedOption:Aq,NcListItemIcon:SW,NcLoadingIcon:Vd,VueSelect:il.VueSelect},model:{prop:"modelValue",event:"update:modelValue"},props:{...il.VueSelect.props,...il.VueSelect.mixins.reduce((e,t)=>({...e,...t.props}),{}),ariaLabelClearSelected:{type:String,default:me("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:me("Options")},ariaLabelDeselectOption:{type:Function,default:e=>me("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:e=>e(lN,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:t})=>e?!1:t},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${ro()}`},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,t){return{...e,27:n=>{t.open&&n.stopPropagation(),e[27](n)}}}},uid:{type:String,default:()=>ro()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","input","update:modelValue","update:model-value"],setup(){const e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),t=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),n=e-2*t,r=Po("value","input");return{avatarSize:n,model:r}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,t,{width:n})=>{e.style.width=n;const r={name:"addClass",fn(s){return e.classList.add("vs__dropdown-menu--floating"),{}}},i={name:"togglePlacementClass",fn({placement:s}){return t.$el.classList.toggle("select--drop-up",s==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",s==="top"),{}}},o=()=>{cq(t.$refs.toggle,e,{placement:this.placement,middleware:[oq(-1),r,i,aq(),sq({limiter:lq()})]}).then(({x:s,y:a})=>{Object.assign(e.style,{left:`${s}px`,top:`${a}px`,width:`${t.$refs.toggle.getBoundingClientRect().width}px`})})};return iq(t.$refs.toggle,e,o)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(t,n,r)=>{const i=r.match(e);return i&&t.subname?.toLocaleLowerCase?.()?.indexOf(i[1].toLocaleLowerCase())>-1||`${n} ${t.subname}`.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())>-1}:il.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":il.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(il.VueSelect.props),...il.VueSelect.mixins.flatMap(t=>Object.keys(t.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([t,n])=>e.includes(t))),value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}},listenersToForward(){return{...this.$listeners,input:e=>{this.model=e}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&Mr.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&Mr.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:me}};var _W=function(){var e=this,t=e._self._c;return t("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:n=>e.search=n},scopedSlots:e._u([!e.labelOutside&&e.inputLabel?{key:"header",fn:function(){return[t("label",{staticClass:"select__label",attrs:{for:e.inputId}},[e._v(" "+e._s(e.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:n,events:r}){return[t("input",e._g(e._b({class:["vs__search",e.inputClass],attrs:{required:e.inputRequired,dir:"auto"}},"input",n,!1),r))]}},{key:"open-indicator",fn:function({attributes:n}){return[t("ChevronDown",e._b({style:{cursor:e.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",n,!1))]}},{key:"option",fn:function(n){return[e._t("option",function(){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":32,name:n[e.localLabel],search:e.search}},"NcListItemIcon",n,!1)):t("NcEllipsisedOption",{attrs:{name:String(n[e.localLabel]),search:e.search}})]},null,n)]}},{key:"selected-option",fn:function(n){return[e._t("selected-option",function(){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":e.avatarSize,name:n[e.localLabel],"no-margin":"",search:e.search}},"NcListItemIcon",n,!1)):t("NcEllipsisedOption",{attrs:{name:String(n[e.localLabel]),search:e.search}})]},{vBind:n})]}},{key:"spinner",fn:function(n){return[n.loading?t("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(n,r){return{key:r,fn:function(i){return[e._t(r,null,null,i)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.listenersToForward))},CW=[],NW=ut(wW,_W,CW,!1,null,null);const zm=NW.exports;function Ji(e,t){for(var n in t)e[n]=t[n];return e}var FW=/[!'()*]/g,OW=function(e){return"%"+e.charCodeAt(0).toString(16)},xW=/%2C/g,hc=function(e){return encodeURIComponent(e).replace(FW,OW).replace(xW,",")};function pb(e){try{return decodeURIComponent(e)}catch{}return e}function kW(e,t,n){t===void 0&&(t={});var r=n||RW,i;try{i=r(e||"")}catch{i={}}for(var o in t){var s=t[o];i[o]=Array.isArray(s)?s.map(VS):VS(s)}return i}var VS=function(e){return e==null||typeof e=="object"?e:String(e)};function RW(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var r=n.replace(/\+/g," ").split("="),i=pb(r.shift()),o=r.length>0?pb(r.join("=")):null;t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}),t}function MW(e){var t=e?Object.keys(e).map(function(n){var r=e[n];if(r===void 0)return"";if(r===null)return hc(n);if(Array.isArray(r)){var i=[];return r.forEach(function(o){o!==void 0&&(o===null?i.push(hc(n)):i.push(hc(n)+"="+hc(o)))}),i.join("&")}return hc(n)+"="+hc(r)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var bf=/\/?$/;function Af(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=fb(o)}catch{}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:jS(t,i),matched:e?BW(e):[]};return n&&(s.redirectedFrom=jS(n,i)),Object.freeze(s)}function fb(e){if(Array.isArray(e))return e.map(fb);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=fb(e[n]);return t}else return e}var Ra=Af(null,{path:"/"});function BW(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function jS(e,t){var n=e.path,r=e.query;r===void 0&&(r={});var i=e.hash;i===void 0&&(i="");var o=t||MW;return(n||"/")+o(r)+i}function rk(e,t,n){return t===Ra?e===t:t?e.path&&t.path?e.path.replace(bf,"")===t.path.replace(bf,"")&&(n||e.hash===t.hash&&yp(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&yp(e.query,t.query)&&yp(e.params,t.params)):!1:!1}function yp(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length!==r.length?!1:n.every(function(i,o){var s=e[i],a=r[o];if(a!==i)return!1;var l=t[i];return s==null||l==null?s===l:typeof s=="object"&&typeof l=="object"?yp(s,l):String(s)===String(l)})}function IW(e,t){return e.path.replace(bf,"/").indexOf(t.path.replace(bf,"/"))===0&&(!t.hash||e.hash===t.hash)&&LW(e.query,t.query)}function LW(e,t){for(var n in t)if(!(n in e))return!1;return!0}function ik(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(!(!i||!o)){delete n.enteredCbs[r];for(var s=0;s<o.length;s++)i._isBeingDestroyed||o[s](i)}}}}var YW={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,o=t.data;o.routerView=!0;for(var s=i.$createElement,a=n.name,l=i.$route,c=i._routerViewCache||(i._routerViewCache={}),u=0,d=!1;i&&i._routerRoot!==i;){var h=i.$vnode?i.$vnode.data:{};h.routerView&&u++,h.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(o.routerViewDepth=u,d){var p=c[a],m=p&&p.component;return m?(p.configProps&&GS(m,o,p.route,p.configProps),s(m,o,r)):s()}var b=l.matched[u],A=b&&b.components[a];if(!b||!A)return c[a]=null,s();c[a]={component:A},o.registerRouteInstance=function(D,C){var S=b.instances[a];(C&&S!==D||!C&&S===D)&&(b.instances[a]=C)},(o.hook||(o.hook={})).prepatch=function(D,C){b.instances[a]=C.componentInstance},o.hook.init=function(D){D.data.keepAlive&&D.componentInstance&&D.componentInstance!==b.instances[a]&&(b.instances[a]=D.componentInstance),ik(l)};var v=b.props&&b.props[a];return v&&(Ji(c[a],{route:l,configProps:v}),GS(A,o,l,v)),s(A,o,r)}};function GS(e,t,n,r){var i=t.props=HW(n,r);if(i){i=t.props=Ji({},i);var o=t.attrs=t.attrs||{};for(var s in i)(!e.props||!(s in e.props))&&(o[s]=i[s],delete i[s])}}function HW(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}function ok(e,t,n){var r=e.charAt(0);if(r==="/")return e;if(r==="?"||r==="#")return t+e;var i=t.split("/");(!n||!i[i.length-1])&&i.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];a===".."?i.pop():a!=="."&&i.push(a)}return i[0]!==""&&i.unshift(""),i.join("/")}function ZW(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function ya(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var yf=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Oc=lk,PW=cy,$W=jW,UW=sk,zW=ak,VW=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function cy(e,t){for(var n=[],r=0,i=0,o="",s=t&&t.delimiter||"/",a;(a=VW.exec(e))!=null;){var l=a[0],c=a[1],u=a.index;if(o+=e.slice(i,u),i=u+l.length,c){o+=c[1];continue}var d=e[i],h=a[2],p=a[3],m=a[4],b=a[5],A=a[6],v=a[7];o&&(n.push(o),o="");var D=h!=null&&d!=null&&d!==h,C=A==="+"||A==="*",S=A==="?"||A==="*",O=a[2]||s,k=m||b;n.push({name:p||r++,prefix:h||"",delimiter:O,optional:S,repeat:C,partial:D,asterisk:!!v,pattern:k?WW(k):v?".*":"[^"+Ep(O)+"]+?"})}return i<e.length&&(o+=e.substr(i)),o&&n.push(o),n}function jW(e,t){return sk(cy(e,t),t)}function GW(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function qW(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function sk(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",dy(t)));return function(i,o){for(var s="",a=i||{},l=o||{},c=l.pretty?GW:encodeURIComponent,u=0;u<e.length;u++){var d=e[u];if(typeof d=="string"){s+=d;continue}var h=a[d.name],p;if(h==null)if(d.optional){d.partial&&(s+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(yf(h)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(h.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var m=0;m<h.length;m++){if(p=c(h[m]),!n[u].test(p))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(p)+"`");s+=(m===0?d.prefix:d.delimiter)+p}continue}if(p=d.asterisk?qW(h):c(h),!n[u].test(p))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+p+'"');s+=d.prefix+p}return s}}function Ep(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function WW(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function uy(e,t){return e.keys=t,e}function dy(e){return e&&e.sensitive?"":"i"}function KW(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return uy(e,t)}function QW(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(lk(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",dy(n));return uy(o,t)}function JW(e,t,n){return ak(cy(e,n),t,n)}function ak(e,t,n){yf(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,o="",s=0;s<e.length;s++){var a=e[s];if(typeof a=="string")o+=Ep(a);else{var l=Ep(a.prefix),c="(?:"+a.pattern+")";t.push(a),a.repeat&&(c+="(?:"+l+c+")*"),a.optional?a.partial?c=l+"("+c+")?":c="(?:"+l+"("+c+"))?":c=l+"("+c+")",o+=c}}var u=Ep(n.delimiter||"/"),d=o.slice(-u.length)===u;return r||(o=(d?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),i?o+="$":o+=r&&d?"":"(?="+u+"|$)",uy(new RegExp("^"+o,dy(n)),t)}function lk(e,t,n){return yf(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?KW(e,t):yf(e)?QW(e,t,n):JW(e,t,n)}Oc.parse=PW,Oc.compile=$W,Oc.tokensToFunction=UW,Oc.tokensToRegExp=zW;var qS=Object.create(null);function vp(e,t,n){t=t||{};try{var r=qS[e]||(qS[e]=Oc.compile(e));return typeof t.pathMatch=="string"&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch{return""}finally{delete t[0]}}function hy(e,t,n,r){var i=typeof e=="string"?{path:e}:e;if(i._normalized)return i;if(i.name){i=Ji({},e);var o=i.params;return o&&typeof o=="object"&&(i.params=Ji({},o)),i}if(!i.path&&i.params&&t){i=Ji({},i),i._normalized=!0;var s=Ji(Ji({},t.params),i.params);if(t.name)i.name=t.name,i.params=s;else if(t.matched.length){var a=t.matched[t.matched.length-1].path;i.path=vp(a,s,"path "+t.path)}return i}var l=ZW(i.path||""),c=t&&t.path||"/",u=l.path?ok(l.path,c,n||i.append):c,d=kW(l.query,i.query,r&&r.options.parseQuery),h=i.hash||l.hash;return h&&h.charAt(0)!=="#"&&(h="#"+h),{_normalized:!0,path:u,query:d,hash:h}}var XW=[String,Object],eK=[String,Array],WS=function(){},py={name:"RouterLink",props:{to:{type:XW,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:eK,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,s=i.route,a=i.href,l={},c=n.options.linkActiveClass,u=n.options.linkExactActiveClass,d=c??"router-link-active",h=u??"router-link-exact-active",p=this.activeClass==null?d:this.activeClass,m=this.exactActiveClass==null?h:this.exactActiveClass,b=s.redirectedFrom?Af(null,hy(s.redirectedFrom),null,n):s;l[m]=rk(r,b,this.exactPath),l[p]=this.exact||this.exactPath?l[m]:IW(r,b);var A=l[m]?this.ariaCurrentValue:null,v=function(z){KS(z)&&(t.replace?n.replace(o,WS):n.push(o,WS))},D={click:KS};Array.isArray(this.event)?this.event.forEach(function(z){D[z]=v}):D[this.event]=v;var C={class:l},S=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:a,route:s,navigate:v,isActive:l[p],isExactActive:l[m]});if(S){if(S.length===1)return S[0];if(S.length>1||!S.length)return S.length===0?e():e("span",{},S)}if(this.tag==="a")C.on=D,C.attrs={href:a,"aria-current":A};else{var O=ck(this.$slots.default);if(O){O.isStatic=!1;var k=O.data=Ji({},O.data);k.on=k.on||{};for(var Z in k.on){var W=k.on[Z];Z in D&&(k.on[Z]=Array.isArray(W)?W:[W])}for(var U in D)U in k.on?k.on[U].push(D[U]):k.on[U]=v;var w=O.data.attrs=Ji({},O.data.attrs);w.href=a,w["aria-current"]=A}else C.on=D}return e(this.tag,C,this.$slots.default)}};function KS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ck(e){if(e){for(var t,n=0;n<e.length;n++)if(t=e[n],t.tag==="a"||t.children&&(t=ck(t.children)))return t}}var Ef;function mb(e){if(!(mb.installed&&Ef===e)){mb.installed=!0,Ef=e;var t=function(i){return i!==void 0},n=function(i,o){var s=i.$options._parentVnode;t(s)&&t(s=s.data)&&t(s=s.registerRouteInstance)&&s(i,o)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",YW),e.component("RouterLink",py);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var rh=typeof window<"u";function Rh(e,t,n,r,i){var o=t||[],s=n||Object.create(null),a=r||Object.create(null);e.forEach(function(u){gb(o,s,a,u,i)});for(var l=0,c=o.length;l<c;l++)o[l]==="*"&&(o.push(o.splice(l,1)[0]),c--,l--);return{pathList:o,pathMap:s,nameMap:a}}function gb(e,t,n,r,i,o){var s=r.path,a=r.name,l=r.pathToRegexpOptions||{},c=nK(s,i,l.strict);typeof r.caseSensitive=="boolean"&&(l.sensitive=r.caseSensitive);var u={path:c,regex:tK(c,l),components:r.components||{default:r.component},alias:r.alias?typeof r.alias=="string"?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:a,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:r.props==null?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach(function(b){var A=o?ya(o+"/"+b.path):void 0;gb(e,t,n,b,u,A)}),t[u.path]||(e.push(u.path),t[u.path]=u),r.alias!==void 0)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],h=0;h<d.length;++h){var p=d[h],m={path:p,children:r.children};gb(e,t,n,m,i,u.path||"/")}a&&(n[a]||(n[a]=u))}function tK(e,t){var n=Oc(e,[],t);return n}function nK(e,t,n){return n||(e=e.replace(/\/$/,"")),e[0]==="/"||t==null?e:ya(t.path+"/"+e)}function rK(e,t){var n=Rh(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function s(p){Rh(p,r,i,o)}function a(p,m){var b=typeof p!="object"?o[p]:void 0;Rh([m||p],r,i,o,b),b&&b.alias.length&&Rh(b.alias.map(function(A){return{path:A,children:[m]}}),r,i,o,b)}function l(){return r.map(function(p){return i[p]})}function c(p,m,b){var A=hy(p,m,!1,t),v=A.name;if(v){var D=o[v];if(!D)return h(null,A);var C=D.regex.keys.filter(function(W){return!W.optional}).map(function(W){return W.name});if(typeof A.params!="object"&&(A.params={}),m&&typeof m.params=="object")for(var S in m.params)!(S in A.params)&&C.indexOf(S)>-1&&(A.params[S]=m.params[S]);return A.path=vp(D.path,A.params),h(D,A,b)}else if(A.path){A.params={};for(var O=0;O<r.length;O++){var k=r[O],Z=i[k];if(iK(Z.regex,A.path,A.params))return h(Z,A,b)}}return h(null,A)}function u(p,m){var b=p.redirect,A=typeof b=="function"?b(Af(p,m,null,t)):b;if(typeof A=="string"&&(A={path:A}),!A||typeof A!="object")return h(null,m);var v=A,D=v.name,C=v.path,S=m.query,O=m.hash,k=m.params;if(S=v.hasOwnProperty("query")?v.query:S,O=v.hasOwnProperty("hash")?v.hash:O,k=v.hasOwnProperty("params")?v.params:k,D)return o[D],c({_normalized:!0,name:D,query:S,hash:O,params:k},void 0,m);if(C){var Z=oK(C,p),W=vp(Z,k);return c({_normalized:!0,path:W,query:S,hash:O},void 0,m)}else return h(null,m)}function d(p,m,b){var A=vp(b,m.params),v=c({_normalized:!0,path:A});if(v){var D=v.matched,C=D[D.length-1];return m.params=v.params,h(C,m)}return h(null,m)}function h(p,m,b){return p&&p.redirect?u(p,b||m):p&&p.matchAs?d(p,m,p.matchAs):Af(p,m,b,t)}return{match:c,addRoute:a,getRoutes:l,addRoutes:s}}function iK(e,t,n){var r=t.match(e);if(r){if(!n)return!0}else return!1;for(var i=1,o=r.length;i<o;++i){var s=e.keys[i-1];s&&(n[s.name||"pathMatch"]=typeof r[i]=="string"?pb(r[i]):r[i])}return!0}function oK(e,t){return ok(e,t.parent?t.parent.path:"/",!0)}var sK=rh&&window.performance&&window.performance.now?window.performance:Date;function uk(){return sK.now().toFixed(3)}var dk=uk();function Vm(){return dk}function hk(e){return dk=e}var pk=Object.create(null);function fk(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=Ji({},window.history.state);return n.key=Vm(),window.history.replaceState(n,"",t),window.addEventListener("popstate",QS),function(){window.removeEventListener("popstate",QS)}}function Ea(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick(function(){var o=aK(),s=i.call(e,t,n,r?o:null);s&&(typeof s.then=="function"?s.then(function(a){e2(a,o)}).catch(function(a){}):e2(s,o))})}}function mk(){var e=Vm();e&&(pk[e]={x:window.pageXOffset,y:window.pageYOffset})}function QS(e){mk(),e.state&&e.state.key&&hk(e.state.key)}function aK(){var e=Vm();if(e)return pk[e]}function lK(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function JS(e){return ru(e.x)||ru(e.y)}function XS(e){return{x:ru(e.x)?e.x:window.pageXOffset,y:ru(e.y)?e.y:window.pageYOffset}}function cK(e){return{x:ru(e.x)?e.x:0,y:ru(e.y)?e.y:0}}function ru(e){return typeof e=="number"}var uK=/^#\d/;function e2(e,t){var n=typeof e=="object";if(n&&typeof e.selector=="string"){var r=uK.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var i=e.offset&&typeof e.offset=="object"?e.offset:{};i=cK(i),t=lK(r,i)}else JS(e)&&(t=XS(e))}else n&&JS(e)&&(t=XS(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var va=rh&&function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&typeof window.history.pushState=="function"}();function vf(e,t){mk();var n=window.history;try{if(t){var r=Ji({},n.state);r.key=Vm(),n.replaceState(r,"",e)}else n.pushState({key:hk(uk())},"",e)}catch{window.location[t?"replace":"assign"](e)}}function Tb(e){vf(e,!0)}var Vl={redirected:2,aborted:4,cancelled:8,duplicated:16};function dK(e,t){return jm(e,t,Vl.redirected,'Redirected when going from "'+e.fullPath+'" to "'+mK(t)+'" via a navigation guard.')}function hK(e,t){var n=jm(e,t,Vl.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function t2(e,t){return jm(e,t,Vl.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function pK(e,t){return jm(e,t,Vl.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function jm(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var fK=["params","query","hash"];function mK(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return fK.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}function Df(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Sf(e,t){return Df(e)&&e._isRouter&&(t==null||e.type===t)}function n2(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],function(){r(i+1)}):r(i+1)};r(0)}function gK(e){return function(t,n,r){var i=!1,o=0,s=null;gk(e,function(a,l,c,u){if(typeof a=="function"&&a.cid===void 0){i=!0,o++;var d=r2(function(b){bK(b)&&(b=b.default),a.resolved=typeof b=="function"?b:Ef.extend(b),c.components[u]=b,o--,o<=0&&r()}),h=r2(function(b){var A="Failed to resolve async component "+u+": "+b;s||(s=Df(b)?b:new Error(A),r(s))}),p;try{p=a(d,h)}catch(b){h(b)}if(p)if(typeof p.then=="function")p.then(d,h);else{var m=p.component;m&&typeof m.then=="function"&&m.then(d,h)}}}),i||r()}}function gk(e,t){return Tk(e.map(function(n){return Object.keys(n.components).map(function(r){return t(n.components[r],n.instances[r],n,r)})}))}function Tk(e){return Array.prototype.concat.apply([],e)}var TK=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function bK(e){return e.__esModule||TK&&e[Symbol.toStringTag]==="Module"}function r2(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Qi=function(e,t){this.router=e,this.base=AK(t),this.current=Ra,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};Qi.prototype.listen=function(e){this.cb=e},Qi.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Qi.prototype.onError=function(e){this.errorCbs.push(e)},Qi.prototype.transitionTo=function(e,t,n){var r=this,i;try{i=this.router.match(e,this.current)}catch(s){throw this.errorCbs.forEach(function(a){a(s)}),s}var o=this.current;this.confirmTransition(i,function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach(function(s){s&&s(i,o)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(s){s(i)}))},function(s){n&&n(s),s&&!r.ready&&(!Sf(s,Vl.redirected)||o!==Ra)&&(r.ready=!0,r.readyErrorCbs.forEach(function(a){a(s)}))})},Qi.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current;this.pending=e;var o=function(m){!Sf(m)&&Df(m)&&(r.errorCbs.length?r.errorCbs.forEach(function(b){b(m)}):console.error(m)),n&&n(m)},s=e.matched.length-1,a=i.matched.length-1;if(rk(e,i)&&s===a&&e.matched[s]===i.matched[a])return this.ensureURL(),e.hash&&Ea(this.router,i,e,!1),o(hK(i,e));var l=yK(this.current.matched,e.matched),c=l.updated,u=l.deactivated,d=l.activated,h=[].concat(vK(u),this.router.beforeHooks,DK(c),d.map(function(m){return m.beforeEnter}),gK(d)),p=function(m,b){if(r.pending!==e)return o(t2(i,e));try{m(e,i,function(A){A===!1?(r.ensureURL(!0),o(pK(i,e))):Df(A)?(r.ensureURL(!0),o(A)):typeof A=="string"||typeof A=="object"&&(typeof A.path=="string"||typeof A.name=="string")?(o(dK(i,e)),typeof A=="object"&&A.replace?r.replace(A):r.push(A)):b(A)})}catch(A){o(A)}};n2(h,p,function(){var m=SK(d),b=m.concat(r.router.resolveHooks);n2(b,p,function(){if(r.pending!==e)return o(t2(i,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick(function(){ik(e)})})})},Qi.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Qi.prototype.setupListeners=function(){},Qi.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Ra,this.pending=null};function AK(e){if(!e)if(rh){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function yK(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function fy(e,t,n,r){var i=gk(e,function(o,s,a,l){var c=EK(o,t);if(c)return Array.isArray(c)?c.map(function(u){return n(u,s,a,l)}):n(c,s,a,l)});return Tk(r?i.reverse():i)}function EK(e,t){return typeof e!="function"&&(e=Ef.extend(e)),e.options[t]}function vK(e){return fy(e,"beforeRouteLeave",bk,!0)}function DK(e){return fy(e,"beforeRouteUpdate",bk)}function bk(e,t){if(t)return function(){return e.apply(t,arguments)}}function SK(e){return fy(e,"beforeRouteEnter",function(t,n,r,i){return wK(t,r,i)})}function wK(e,t,n){return function(r,i,o){return e(r,i,function(s){typeof s=="function"&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(s)),o(s)})}}var Ak=function(e){function t(n,r){e.call(this,n,r),this._startLocation=v0(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var r=this.router,i=r.options.scrollBehavior,o=va&&i;o&&this.listeners.push(fk());var s=function(){var a=n.current,l=v0(n.base);n.current===Ra&&l===n._startLocation||n.transitionTo(l,function(c){o&&Ea(r,c,a,!0)})};window.addEventListener("popstate",s),this.listeners.push(function(){window.removeEventListener("popstate",s)})}},t.prototype.go=function(n){window.history.go(n)},t.prototype.push=function(n,r,i){var o=this,s=this,a=s.current;this.transitionTo(n,function(l){vf(ya(o.base+l.fullPath)),Ea(o.router,l,a,!1),r&&r(l)},i)},t.prototype.replace=function(n,r,i){var o=this,s=this,a=s.current;this.transitionTo(n,function(l){Tb(ya(o.base+l.fullPath)),Ea(o.router,l,a,!1),r&&r(l)},i)},t.prototype.ensureURL=function(n){if(v0(this.base)!==this.current.fullPath){var r=ya(this.base+this.current.fullPath);n?vf(r):Tb(r)}},t.prototype.getCurrentLocation=function(){return v0(this.base)},t}(Qi);function v0(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return e&&(n===r||n.indexOf(ya(r+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var yk=function(e){function t(n,r,i){e.call(this,n,r),!(i&&_K(this.base))&&i2()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var r=this.router,i=r.options.scrollBehavior,o=va&&i;o&&this.listeners.push(fk());var s=function(){var l=n.current;i2()&&n.transitionTo(Dp(),function(c){o&&Ea(n.router,c,l,!0),va||Sp(c.fullPath)})},a=va?"popstate":"hashchange";window.addEventListener(a,s),this.listeners.push(function(){window.removeEventListener(a,s)})}},t.prototype.push=function(n,r,i){var o=this,s=this,a=s.current;this.transitionTo(n,function(l){o2(l.fullPath),Ea(o.router,l,a,!1),r&&r(l)},i)},t.prototype.replace=function(n,r,i){var o=this,s=this,a=s.current;this.transitionTo(n,function(l){Sp(l.fullPath),Ea(o.router,l,a,!1),r&&r(l)},i)},t.prototype.go=function(n){window.history.go(n)},t.prototype.ensureURL=function(n){var r=this.current.fullPath;Dp()!==r&&(n?o2(r):Sp(r))},t.prototype.getCurrentLocation=function(){return Dp()},t}(Qi);function _K(e){var t=v0(e);if(!/^\/#/.test(t))return window.location.replace(ya(e+"/#"+t)),!0}function i2(){var e=Dp();return e.charAt(0)==="/"?!0:(Sp("/"+e),!1)}function Dp(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function bb(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function o2(e){va?vf(bb(e)):window.location.hash=e}function Sp(e){va?Tb(bb(e)):window.location.replace(bb(e))}var CK=function(e){function t(n,r){e.call(this,n,r),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(n,r,i){var o=this;this.transitionTo(n,function(s){o.stack=o.stack.slice(0,o.index+1).concat(s),o.index++,r&&r(s)},i)},t.prototype.replace=function(n,r,i){var o=this;this.transitionTo(n,function(s){o.stack=o.stack.slice(0,o.index).concat(s),r&&r(s)},i)},t.prototype.go=function(n){var r=this,i=this.index+n;if(!(i<0||i>=this.stack.length)){var o=this.stack[i];this.confirmTransition(o,function(){var s=r.current;r.index=i,r.updateRoute(o),r.router.afterHooks.forEach(function(a){a&&a(o,s)})},function(s){Sf(s,Vl.duplicated)&&(r.index=i)})}},t.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Qi),On=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=rK(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback=t==="history"&&!va&&e.fallback!==!1,this.fallback&&(t="hash"),rh||(t="abstract"),this.mode=t,t){case"history":this.history=new Ak(this,e.base);break;case"hash":this.history=new yk(this,e.base,this.fallback);break;case"abstract":this.history=new CK(this,e.base);break}},s2={currentRoute:{configurable:!0}};On.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},s2.currentRoute.get=function(){return this.history&&this.history.current},On.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var o=t.apps.indexOf(e);o>-1&&t.apps.splice(o,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=e;var n=this.history;if(n instanceof Ak||n instanceof yk){var r=function(o){var s=n.current,a=t.options.scrollBehavior,l=va&&a;l&&"fullPath"in o&&Ea(t,o,s,!1)},i=function(o){n.setupListeners(),r(o)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(o){t.apps.forEach(function(s){s._route=o})})}},On.prototype.beforeEach=function(e){return Ng(this.beforeHooks,e)},On.prototype.beforeResolve=function(e){return Ng(this.resolveHooks,e)},On.prototype.afterEach=function(e){return Ng(this.afterHooks,e)},On.prototype.onReady=function(e,t){this.history.onReady(e,t)},On.prototype.onError=function(e){this.history.onError(e)},On.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&typeof Promise<"u")return new Promise(function(i,o){r.history.push(e,i,o)});this.history.push(e,t,n)},On.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&typeof Promise<"u")return new Promise(function(i,o){r.history.replace(e,i,o)});this.history.replace(e,t,n)},On.prototype.go=function(e){this.history.go(e)},On.prototype.back=function(){this.go(-1)},On.prototype.forward=function(){this.go(1)},On.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(n){return Object.keys(n.components).map(function(r){return n.components[r]})})):[]},On.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=hy(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,s=this.history.base,a=NK(s,o,this.mode);return{location:r,route:i,href:a,normalizedTo:r,resolved:i}},On.prototype.getRoutes=function(){return this.matcher.getRoutes()},On.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==Ra&&this.history.transitionTo(this.history.getCurrentLocation())},On.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Ra&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(On.prototype,s2);function Ng(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function NK(e,t,n){var r=n==="hash"?"#"+t:t;return e?ya(e+"/"+r):r}On.install=mb,On.version="3.6.5",On.isNavigationFailure=Sf,On.NavigationFailureType=Vl,On.START_LOCATION=Ra,rh&&window.Vue&&window.Vue.use(On);const FK={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var OK=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},xK=[],kK=ut(FK,OK,xK,!1,null,null);const RK=kK.exports;Et(z4);const MK=3*60*1e3,BK={name:"NcReferenceWidget",components:{NcButton:_i},props:{reference:{type:Object,required:!0},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(){const e=pi(!1),t=pi(),{width:n}=qB(t);return WB(t,([r])=>{nN(()=>{e.value=r.isIntersecting})}),{width:n,isVisible:e,widgetRoot:t}},data(){return{showInteractive:!1,rendered:!1,idleTimeout:null}},computed:{isInteractive(){return!this.interactiveOptIn&&this.interactive||this.showInteractive},hasFullWidth(){return Jj(this.reference.richObjectType)},hasCustomWidget(){return TS(this.reference.richObjectType)},hasInteractiveView(){return TS(this.reference.richObjectType)&&Qj(this.reference.richObjectType)},noAccess(){return this.reference&&!this.reference.accessible},descriptionStyle(){if(this.numberOfLines===0)return{display:"none"};const e=this.numberOfLines;return{lineClamp:e,webkitLineClamp:e}},numberOfLines(){return[450,550,650,1/0].findIndex(e=>this.width<e)},compactLink(){const e=this.reference.openGraphObject.link;return e?e.startsWith("https://")?e.substring(8):e.startsWith("http://")?e.substring(7):e:""},route(){return Wx(this.$router,this.reference.openGraphObject.link)},referenceWidgetLinkComponent(){return this.route?py:"a"},referenceWidgetLinkProps(){return this.route?{to:this.route}:{href:this.reference.openGraphObject.link,target:"_blank"}}},watch:{isVisible:{handler(e){if(!e){this.idleTimeout=setTimeout(()=>{this.isVisible||this.destroyWidget()},MK);return}this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.rendered||this.renderWidget()},immediate:!0}},beforeDestroy(){this.destroyWidget()},methods:{t:me,enableInteractive(){this.showInteractive=!0,this.renderWidget()},renderWidget(){if(!this.$refs.customWidget||this?.reference?.richObjectType==="open-graph")return;this.$refs.customWidget.innerHTML="";const e=document.createElement("div");e.style="width: 100%;",this.$refs.customWidget.appendChild(e),this.$nextTick(()=>{eG(e,{...this.reference,interactive:this.isInteractive}),this.rendered=!0})},destroyWidget(){this.rendered&&(tG(this.reference.richObjectType,this.$el),this.rendered=!1)}}};var IK=function(){var e=this,t=e._self._c;return t("div",{ref:"widgetRoot",class:{"toggle-interactive":e.hasInteractiveView&&!e.isInteractive}},[e.reference&&e.hasCustomWidget?t("div",{ref:"customWidget",staticClass:"widget-custom",class:{"full-width":e.hasFullWidth}}):!e.noAccess&&e.reference&&e.reference.openGraphObject&&!e.hasCustomWidget?t(e.referenceWidgetLinkComponent,e._b({tag:"component",staticClass:"widget-default",attrs:{rel:"noopener noreferrer"}},"component",e.referenceWidgetLinkProps,!1),[e.reference.openGraphObject.thumb?t("img",{staticClass:"widget-default--image",attrs:{src:e.reference.openGraphObject.thumb}}):e._e(),t("div",{staticClass:"widget-default--details"},[t("p",{staticClass:"widget-default--name"},[e._v(" "+e._s(e.reference.openGraphObject.name)+" ")]),t("p",{staticClass:"widget-default--description",style:e.descriptionStyle},[e._v(" "+e._s(e.reference.openGraphObject.description)+" ")]),t("p",{staticClass:"widget-default--link"},[e._v(" "+e._s(e.compactLink)+" ")])])]):e._e(),e.interactiveOptIn&&e.hasInteractiveView&&!e.isInteractive?t("NcButton",{staticClass:"toggle-interactive--button",on:{click:e.enableInteractive}},[e._v(" "+e._s(e.t("Enable interactive view"))+" ")]):e._e()],1)},LK=[],YK=ut(BK,IK,LK,!1,null,"734d6ae9");const Ek=YK.exports,HK={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit"],data(){return{isRegistered:wd(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeDestroy(){this.isRegistered&&oG(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=iG(this.$refs.domElement,{providerId:this.provider.id,accessible:!1});Promise.resolve(e).then(t=>{this.renderResult=t,this.renderResult.object?._isVue&&this.renderResult.object?.$on&&(this.renderResult.object.$on("submit",this.onSubmit),this.renderResult.object.$on("cancel",this.onCancel)),this.renderResult.element.addEventListener("submit",n=>{this.onSubmit(n.detail)}),this.renderResult.element.addEventListener("cancel",this.onCancel)})},onSubmit(e){this.$emit("submit",e)},onCancel(){this.$emit("cancel")}}};var ZK=function(){var e=this,t=e._self._c;return t("div",{ref:"domElement"})},PK=[],$K=ut(HK,ZK,PK,!1,null,"de9850e4");const UK=$K.exports;Et(V4);const vk="any-link",Dk={id:vk,title:me("Any link"),icon_url:_B("core","filetypes/link.svg")};window._vue_richtext_reference_providers||(window._vue_richtext_reference_providers=Yl("core","reference-provider-list",[])),window._vue_richtext_reference_provider_timestamps||(window._vue_richtext_reference_provider_timestamps=Yl("core","reference-provider-timestamps",{}));function zK(e){return e===vk?Dk:Sk().find(t=>t.id===e)}function Sk(){return window._vue_richtext_reference_providers.filter(e=>{const t=!!e.search_providers_ids&&e.search_providers_ids.length>0||wd(e.id);return t||console.debug("[smart picker]",e.id,"reference provider is discoverable but does not have any related search provider or custom picker component registered"),t})}function VK(e){const t=window._vue_richtext_reference_provider_timestamps;return e.sort((n,r)=>n.order===r.order?0:n.order>r.order?1:-1).sort((n,r)=>{const i=t[n.id],o=t[r.id];return i===o?0:o===void 0?-1:i===void 0?1:i>o?-1:1})}function wk(e,t=null){const n=Sk(),r=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),i=new RegExp(r,"i"),o=VK(n).filter(a=>a.title.match(i)),s=t?o.slice(0,t):o;return(e===""||s.length===0)&&s.push(Dk),s}function jK(e){const t=Math.floor(Date.now()/1e3),n={timestamp:t},r=Xi("references/provider/{providerId}",{providerId:e});fr.put(r,n).then(i=>{window._vue_richtext_reference_provider_timestamps[e]=t})}let a2=0;function _k(e,t){return function(){const n=this,r=arguments;clearTimeout(a2),a2=setTimeout(function(){e.apply(n,r)},t)}}function my(e){try{return!!new URL(e)}catch{return!1}}Et(JC,j4);const GK={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qK=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon link-variant-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},WK=[],KK=ut(GK,qK,WK,!1,null,null);const gy=KK.exports,QK={name:"NcProviderList",components:{NcSelect:zm,NcHighlight:Ym,NcEmptyContent:ty,LinkVariantIcon:gy},emits:["select-provider","submit"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:me("Select provider"),providerIconAlt:me("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&my(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...wk(this.query)),e}},methods:{focus(){setTimeout(()=>{this.$refs["provider-select"]?.$el?.querySelector("#provider-select-input")?.focus()},300)},onProviderSelected(e){e!==null&&(e.isLink?this.$emit("submit",e.title):this.$emit("select-provider",e),this.selectedProvider=null)},onSearch(e,t){this.query=e}}};var JK=function(){var e=this,t=e._self._c;return t("div",{staticClass:"provider-list"},[t("NcSelect",{ref:"provider-select",staticClass:"provider-list--select",attrs:{"input-id":"provider-select-input",label:"title",placeholder:e.multiselectPlaceholder,options:e.options,"append-to-body":!1,"clear-search-on-select":!0,"clear-search-on-blur":()=>!1,filterable:!1},on:{search:e.onSearch,input:e.onProviderSelected},scopedSlots:e._u([{key:"option",fn:function(n){return[n.isLink?t("div",{staticClass:"provider"},[t("LinkVariantIcon",{staticClass:"link-icon",attrs:{size:20}}),t("span",[e._v(e._s(n.title))])],1):t("div",{staticClass:"provider"},[t("img",{staticClass:"provider-icon",attrs:{src:n.icon_url,alt:e.providerIconAlt}}),t("NcHighlight",{staticClass:"option-text",attrs:{search:e.query,text:n.title}})],1)]}}]),model:{value:e.selectedProvider,callback:function(n){e.selectedProvider=n},expression:"selectedProvider"}}),t("NcEmptyContent",{staticClass:"provider-list--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[t("LinkVariantIcon")]},proxy:!0}])})],1)},XK=[],eQ=ut(QK,JK,XK,!1,null,"f03ee0c9");const tQ=eQ.exports;Et(G4);const nQ={name:"NcRawLinkInput",components:{LinkVariantIcon:gy,NcEmptyContent:ty,NcLoadingIcon:Vd,NcReferenceWidget:Ek,NcTextField:Lm},props:{provider:{type:Object,required:!0}},emits:["submit"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:me("Enter link")}},computed:{isLinkValid(){return my(this.inputValue)}},methods:{focus(){this.$refs["url-input"].$el.getElementsByTagName("input")[0]?.focus()},onSubmit(e){const t=e.target.value;this.isLinkValid&&this.$emit("submit",t)},onClear(){this.inputValue="",this.reference=null},onInput(){this.reference=null,this.abortController&&this.abortController.abort(),this.isLinkValid&&_k(()=>{this.updateReference()},500)()},updateReference(){this.loading=!0,this.abortController=new AbortController,fr.get(Xi("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{console.error(e)}).then(()=>{this.loading=!1})}}};var rQ=function(){var e=this,t=e._self._c;return t("div",{staticClass:"raw-link"},[t("div",{staticClass:"input-wrapper"},[t("NcTextField",{ref:"url-input",attrs:{value:e.inputValue,"show-trailing-button":e.inputValue!=="",label:e.inputPlaceholder},on:{"update:value":[function(n){e.inputValue=n},e.onInput],"trailing-button-click":e.onClear},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.onSubmit.apply(null,arguments)}}},[e.loading?t("NcLoadingIcon",{attrs:{size:16}}):t("LinkVariantIcon",{attrs:{size:16}})],1)],1),e.reference!==null?t("NcReferenceWidget",{staticClass:"reference-widget",attrs:{reference:e.reference}}):t("NcEmptyContent",{staticClass:"raw-link--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}])})],1)},iQ=[],oQ=ut(nQ,rQ,iQ,!1,null,"3c1803b5");const sQ=oQ.exports,aQ={name:"NcSearchResult",components:{NcHighlight:Ym},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}};var lQ=function(){var e=this,t=e._self._c;return t("div",{staticClass:"result"},[e.entry.icon?t("div",{staticClass:"result--icon-class",class:{[e.entry.icon]:!0,rounded:e.entry.rounded}}):t("img",{staticClass:"result--image",class:{rounded:e.entry.rounded},attrs:{src:e.entry.thumbnailUrl}}),t("div",{staticClass:"result--content"},[t("span",{staticClass:"result--content--name"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.title}})],1),t("span",{staticClass:"result--content--subline"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.subline}})],1)])])},cQ=[],uQ=ut(aQ,lQ,cQ,!1,null,"ff4bcbf3");const dQ=uQ.exports;Et(q4,JC,XC);const l2=5,hQ={name:"NcSearch",components:{LinkVariantIcon:gy,DotsHorizontalIcon:aN,NcEmptyContent:ty,NcSelect:zm,NcSearchResult:dQ},props:{provider:{type:Object,required:!0},showEmptyContent:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:null}},emits:["submit"],data(){return{searchQuery:"",selectedResult:null,resultsBySearchProvider:{},searching:!1,searchingMoreOf:null,abortController:null,noOptionsText:me("Start typing to search"),providerIconAlt:me("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||me("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return my(this.searchQuery)&&e.push(this.rawLinkEntry),e.push(...this.formattedSearchResults),e},rawLinkEntry(){return{id:"rawLinkEntry",resourceUrl:this.searchQuery,isRawLink:!0}},formattedSearchResults(){const e=[];return this.searchProviderIds.forEach(t=>{if(this.resultsBySearchProvider[t].entries.length>0){(this.searchProviderIds.length>1||this.resultsBySearchProvider[t].entries.length>1)&&e.push({id:"groupTitle-"+t,name:this.resultsBySearchProvider[t].name,isCustomGroupTitle:!0,providerId:t});const n=this.resultsBySearchProvider[t].entries.map((r,i)=>({id:"provider-"+t+"-entry-"+i,...r}));e.push(...n),this.resultsBySearchProvider[t].isPaginated&&e.push({id:"moreOf-"+t,name:this.resultsBySearchProvider[t].name,isMore:!0,providerId:t,isLoading:this.searchingMoreOf===t})}}),e}},mounted(){this.resetResults()},beforeDestroy(){this.cancelSearchRequests()},methods:{t:me,resetResults(){const e={};this.searchProviderIds.forEach(t=>{e[t]={entries:[]}}),this.resultsBySearchProvider=e},focus(){setTimeout(()=>{this.$refs["search-select"]?.$el?.querySelector("#search-select-input")?.focus()},300)},cancelSearchRequests(){this.abortController&&this.abortController.abort()},onSearchInput(e,t){this.searchQuery=e,_k(()=>{this.updateSearch()},500)()},onSelectResultSelected(e){e!==null&&(e.resourceUrl?(this.cancelSearchRequests(),this.$emit("submit",e.resourceUrl)):e.isMore&&this.searchMoreOf(e.providerId).then(()=>{this.selectedResult=null}))},searchMoreOf(e){return this.searchingMoreOf=e,this.cancelSearchRequests(),this.searchProviders(e)},updateSearch(){if(this.cancelSearchRequests(),this.resetResults(),this.searchQuery===""){this.searching=!1;return}return this.searchProviders()},searchProviders(e=null){this.abortController=new AbortController,this.searching=!0;const t=e===null?[...this.searchProviderIds].map(n=>this.searchOneProvider(n)):[this.searchOneProvider(e,this.resultsBySearchProvider[e]?.cursor??null)];return Promise.allSettled(t).then(n=>{n.find(r=>r.status==="rejected"&&(r.reason.name==="CanceledError"||r.reason.code==="ERR_CANCELED"))||(this.searching=!1,this.searchingMoreOf=null)})},searchOneProvider(e,t=null){const n=t===null?Xi("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:l2}):Xi("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:l2,cursor:t});return fr.get(n,{signal:this.abortController.signal}).then(r=>{const i=r.data.ocs.data;this.resultsBySearchProvider[e].name=i.name,this.resultsBySearchProvider[e].cursor=i.cursor,this.resultsBySearchProvider[e].isPaginated=i.isPaginated,this.resultsBySearchProvider[e].entries.push(...i.entries)})}}};var pQ=function(){var e=this,t=e._self._c;return t("div",{staticClass:"smart-picker-search",class:{"with-empty-content":e.showEmptyContent}},[t("NcSelect",{ref:"search-select",staticClass:"smart-picker-search--select",attrs:{"input-id":"search-select-input",label:"name",placeholder:e.mySearchPlaceholder,options:e.options,"append-to-body":!1,"close-on-select":!1,"clear-search-on-select":!1,"clear-search-on-blur":()=>!1,"reset-focus-on-options-change":!1,filterable:!1,autoscroll:!0,"reset-on-options-change":!1,loading:e.searching},on:{search:e.onSearchInput,input:e.onSelectResultSelected},scopedSlots:e._u([{key:"option",fn:function(n){return[n.isRawLink?t("div",{staticClass:"custom-option"},[t("LinkVariantIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t("Raw link {options}",{options:n.resourceUrl}))+" ")])],1):n.resourceUrl?t("NcSearchResult",{staticClass:"search-result",attrs:{entry:n,query:e.searchQuery}}):n.isCustomGroupTitle?t("span",{staticClass:"custom-option group-name"},[e.provider.icon_url?t("img",{staticClass:"provider-icon group-name-icon",attrs:{src:e.provider.icon_url}}):e._e(),t("span",{staticClass:"option-text"},[t("strong",[e._v(e._s(n.name))])])]):n.isMore?t("span",{class:{"custom-option":!0}},[n.isLoading?t("span",{staticClass:"option-simple-icon icon-loading-small"}):t("DotsHorizontalIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t('Load more "{options}"',{options:n.name}))+" ")])],1):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.noOptionsText)+" ")]},proxy:!0}]),model:{value:e.selectedResult,callback:function(n){e.selectedResult=n},expression:"selectedResult"}}),e.showEmptyContent?t("NcEmptyContent",{staticClass:"smart-picker-search--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{alt:e.providerIconAlt,src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}],null,!1,2922132592)}):e._e()],1)},fQ=[],mQ=ut(hQ,pQ,fQ,!1,null,"05fef988");const gQ=mQ.exports,$u={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},TQ={name:"NcReferencePicker",components:{NcCustomPickerElement:UK,NcProviderList:tQ,NcRawLinkInput:sQ,NcSearch:gQ},props:{initialProvider:{type:Object,default:()=>null},width:{type:Number,default:null},focusOnCreate:{type:Boolean,default:!0}},emits:["cancel","cancel-raw-link","cancel-search","provider-selected","submit"],data(){return{MODES:$u,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?$u.providerList:wd(this.selectedProvider.id)?$u.customElement:this.selectedProvider.search_providers_ids?$u.searchInput:$u.standardLinkInput},pickerWrapperStyle(){return{width:this.width?this.width+"px":void 0}}},mounted(){this.focusOnCreate&&(this.initialProvider?setTimeout(()=>{this.$refs["url-input"]?.focus()},300):this.$nextTick(()=>{this.$refs["provider-list"]?.focus()}))},methods:{onEscapePressed(){this.selectedProvider!==null?this.deselectProvider():this.cancelProviderSelection()},onProviderSelected(e){this.selectedProvider=e,this.$emit("provider-selected",e),this.$nextTick(()=>{this.$refs["url-input"]?.focus()})},cancelCustomElement(){this.deselectProvider()},cancelSearch(){this.$emit("cancel-search",this.selectedProvider?.title),this.deselectProvider()},cancelRawLinkInput(){this.$emit("cancel-raw-link",this.selectedProvider?.title),this.deselectProvider()},cancelProviderSelection(){this.$emit("cancel")},submitLink(e){this.selectedProvider!==null&&jK(this.selectedProvider.id),this.$emit("submit",e),this.deselectProvider()},deselectProvider(){this.selectedProvider=null,this.$emit("provider-selected",null),setTimeout(()=>{this.$refs["provider-list"]?.focus()},300)}}};var bQ=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reference-picker",style:e.pickerWrapperStyle,attrs:{tabindex:"-1"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:(n.stopPropagation(),n.preventDefault(),e.onEscapePressed.apply(null,arguments))}}},[e.mode===e.MODES.providerList?t("NcProviderList",{ref:"provider-list",on:{"select-provider":e.onProviderSelected,submit:e.submitLink,cancel:e.cancelProviderSelection}}):e.mode===e.MODES.standardLinkInput?t("NcRawLinkInput",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelRawLinkInput}}):e.mode===e.MODES.searchInput?t("NcSearch",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{cancel:e.cancelSearch,submit:e.submitLink}}):e.mode===e.MODES.customElement?t("div",{staticClass:"custom-element-wrapper"},[t("NcCustomPickerElement",{staticClass:"custom-element",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelCustomElement}})],1):e._e()],1)},AQ=[],yQ=ut(TQ,bQ,AQ,!1,null,"cd33df8e");const EQ=yQ.exports;Et(K4,W4);const vQ={name:"NcReferencePickerModal",components:{NcReferencePicker:EQ,NcModal:cN,NcButton:_i,ArrowLeftIcon:RK,CloseIcon:lN},props:{initialProvider:{type:Object,default:()=>null},focusOnCreate:{type:Boolean,default:!0},isInsideViewer:{type:Boolean,default:!1}},emits:["cancel","submit"],data(){return{show:!0,selectedProvider:this.initialProvider,backButtonTitle:me("Back to provider selection"),closeButtonTitle:me("Close"),closeButtonLabel:me("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){return this.isProviderSelected&&wd(this.selectedProvider.id)?nG(this.selectedProvider.id)??"large":"normal"},showModalName(){return!this.isProviderSelected||!wd(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:me("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;ad("viewer:trapElements:changed",e)}},methods:{onCancel(){this.show=!1,this.$emit("cancel")},onSubmit(e){this.show=!1,this.$emit("submit",e)},onProviderSelect(e){this.selectedProvider=e,e===null&&this.initialProvider!==null&&this.onCancel()},onBackClicked(){this.$refs.referencePicker.deselectProvider()}}};var DQ=function(){var e=this,t=e._self._c;return e.show?t("NcModal",{staticClass:"reference-picker-modal",attrs:{size:e.modalSize,"can-close":!0},on:{close:e.onCancel}},[t("div",{ref:"modal_content",staticClass:"reference-picker-modal--content"},[e.showBackButton?t("NcButton",{staticClass:"back-button",attrs:{"aria-label":e.backButtonTitle,title:e.backButtonTitle},on:{click:e.onBackClicked},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowLeftIcon")]},proxy:!0}],null,!1,3001860362)}):e._e(),t("NcButton",{staticClass:"close-button",attrs:{"aria-label":e.closeButtonLabel,title:e.closeButtonTitle,variant:"tertiary"},on:{click:e.onCancel},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CloseIcon")]},proxy:!0}],null,!1,2491825086)}),e.showModalName?t("h2",[e._v(" "+e._s(e.modalName)+" ")]):e._e(),t("NcReferencePicker",{ref:"referencePicker",attrs:{"initial-provider":e.initialProvider,"focus-on-create":e.focusOnCreate},on:{"provider-selected":e.onProviderSelect,submit:e.onSubmit,cancel:e.onCancel}})],1)]):e._e()},SQ=[],wQ=ut(vQ,DQ,SQ,!1,null,"a3c031e1");const _Q=wQ.exports;async function Ck(e=null,t=void 0){return await new Promise((n,r)=>{const i="referencePickerModal",o=document.createElement("div");o.id=i,document.body.append(o);const s=e===null?null:zK(e)??null,a=Mr.extend(_Q),l=new a({propsData:{initialProvider:s,isInsideViewer:t}}).$mount(o);l.$on("cancel",()=>{l.$destroy(),r(new Error("User cancellation"))}),l.$on("submit",c=>{l.$destroy(),n(c)})})}const CQ={name:"NcReferenceList",components:{NcReferenceWidget:Ek},props:{text:{type:String,default:""},referenceData:{type:Array,default:null},limit:{type:Number,default:1},displayFallback:{type:Boolean,default:!1},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},data(){return{references:null,loading:!0}},computed:{isVisible(){return this.loading||this.displayedReferences.length!==0},values(){return this.referenceData?this.referenceData:this.displayFallback&&!this.loading&&!this.references?[this.fallbackReference]:this.references?Object.values(this.references):[]},firstReference(){return this.values[0]??null},displayedReferences(){return this.values.slice(0,this.limit)},fallbackReference(){return{accessible:!0,openGraphObject:{id:this.text,link:this.text,name:this.text},richObjectType:"open-graph"}}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){if(this.loading=!0,this.referenceData){this.references=null,this.loading=!1;return}if(!new RegExp(RS).exec(this.text)){this.references=null,this.loading=!1;return}this.resolve().then(e=>{this.references=e.data.ocs.data.references,this.loading=!1,this.$emit("loaded")}).catch(e=>{console.error("Failed to extract references",e),this.loading=!1,this.$emit("loaded")})},resolve(){const e=new RegExp(RS).exec(this.text.trim()),t=sd()===null;return this.limit===1&&e?t?fr.get(Xi("references/resolvePublic")+`?reference=${encodeURIComponent(e[0])}&sharingToken=${Ev()}`):fr.get(Xi("references/resolve")+`?reference=${encodeURIComponent(e[0])}`):t?fr.post(Xi("references/extractPublic"),{text:this.text,resolve:!0,limit:this.limit,sharingToken:Ev()}):fr.post(Xi("references/extract"),{text:this.text,resolve:!0,limit:this.limit})}}};var NQ=function(){var e=this,t=e._self._c;return e.isVisible?t("div",{staticClass:"widgets--list",class:{"icon-loading":e.loading}},e._l(e.displayedReferences,function(n){return t("NcReferenceWidget",{key:n?.openGraphObject?.id,attrs:{reference:n,interactive:e.interactive,"interactive-opt-in":e.interactiveOptIn}})}),1):e._e()},FQ=[],OQ=ut(CQ,NQ,FQ,!1,null,"ffdba753");const Nk=OQ.exports,Cd=Gm(/[A-Za-z]/),Ty=Gm(/[\dA-Za-z]/);function xQ(e){return e!==null&&(e<32||e===127)}function iu(e){return e!==null&&(e<0||e===32)}const Fk=Gm(new RegExp("\\p{P}|\\p{S}","u")),Nd=Gm(/\s/);function Gm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const Ok=function(e){if(e==null)return BQ;if(typeof e=="function")return qm(e);if(typeof e=="object")return Array.isArray(e)?kQ(e):RQ(e);if(typeof e=="string")return MQ(e);throw new Error("Expected function, string, or object as test")};function kQ(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ok(e[n]);return qm(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function RQ(e){const t=e;return qm(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function MQ(e){return qm(t);function t(n){return n&&n.type===e}}function qm(e){return t;function t(n,r,i){return!!(IQ(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function BQ(){return!0}function IQ(e){return e!==null&&typeof e=="object"&&"type"in e}Ok(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);const LQ={tokenize:$Q,partial:!0},xk={tokenize:UQ,partial:!0},kk={tokenize:zQ,partial:!0},Rk={tokenize:VQ,partial:!0},YQ={tokenize:jQ,partial:!0},c2={tokenize:ZQ,previous:Mk},u2={tokenize:PQ,previous:Bk},is={tokenize:HQ,previous:Ik},ss={};let ol=48;for(;ol<123;)ss[ol]=is,ol++,ol===58?ol=65:ol===91&&(ol=97);ss[43]=is,ss[45]=is,ss[46]=is,ss[95]=is,ss[72]=[is,u2],ss[104]=[is,u2],ss[87]=[is,c2],ss[119]=[is,c2];function HQ(e,t,n){const r=this;let i,o;return s;function s(d){return!Ab(d)||!Ik.call(r,r.previous)||by(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return Ab(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(YQ,u,c)(d):d===45||d===95||Ty(d)?(o=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return o&&i&&Cd(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function ZQ(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Mk.call(r,r.previous)||by(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(LQ,e.attempt(xk,e.attempt(kk,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function PQ(e,t,n){const r=this;let i="",o=!1;return s;function s(d){return(d===72||d===104)&&Bk.call(r,r.previous)&&!by(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(Cd(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||xQ(d)||iu(d)||Nd(d)||Fk(d)?n(d):e.attempt(xk,e.attempt(kk,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function $Q(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function UQ(e,t,n){let r,i,o;return s;function s(c){return c===46||c===95?e.check(Rk,l,a)(c):c===null||iu(c)||Nd(c)||c!==45&&Fk(c)?l(c):(o=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function l(c){return i||r||!o?n(c):t(c)}}function zQ(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Rk,t,o)(s):s===null||iu(s)||Nd(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function VQ(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||iu(a)||Nd(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||iu(a)||Nd(a)?t(a):r(a)}function o(a){return Cd(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):Cd(a)?(e.consume(a),s):n(a)}}function jQ(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ty(o)?n(o):t(o)}}function Mk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||iu(e)}function Bk(e){return!Cd(e)}function Ik(e){return!(e===47||Ab(e))}function Ab(e){return e===43||e===45||e===46||e===95||Ty(e)}function by(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}pi(null);function GQ(e,t={},n={},r=()=>{}){typeof n=="function"&&(r=n,n={});let{container:i}=n;"container"in t&&typeof t.container=="string"&&(i??=t.container);const o=(typeof i=="string"&&document.querySelector(i)||document.body).appendChild(document.createElement("div")),s=new Mr({el:o,name:"VueDialogHelper",render:a=>a(e,{props:{container:null,...t},on:{close:(...l)=>{r(...l.map(c=>xB(c))),s.$destroy(),o.remove()}}})});return s}const qQ='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-move" viewBox="0 0 24 24"><path d="M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z" /></svg>',WQ='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-multiple" viewBox="0 0 24 24"><path d="M22,4H14L12,2H6A2,2 0 0,0 4,4V16A2,2 0 0,0 6,18H22A2,2 0 0,0 24,16V6A2,2 0 0,0 22,4M2,6H0V11H0V20A2,2 0 0,0 2,22H20V20H2V6Z" /></svg>';class KQ extends Error{}class QQ{title;multiSelect;mimeTypeFilter;directoriesAllowed;buttons;path;filter;container;disabledNavigation;constructor(t,n,r,i,o,s,a,l,c=!1){this.title=t,this.multiSelect=n,this.mimeTypeFilter=r,this.directoriesAllowed=i,this.path=s,this.filter=a,this.buttons=o,this.container=l,this.disabledNavigation=c}async pickNodes(){const{FilePickerVue:t}=await O0(async()=>{const{FilePickerVue:n}=await import("./index-BC-7VPxC-CghEXBN8.chunk.mjs");return{FilePickerVue:n}},__vite__mapDeps([22,1,2,3]),import.meta.url);return new Promise((n,r)=>{GQ(t,{allowPickDirectory:this.directoriesAllowed,buttons:this.buttons,container:this.container,name:this.title,path:this.path,mimetypeFilter:this.mimeTypeFilter,multiselect:this.multiSelect,filterFn:this.filter,disabledNavigation:this.disabledNavigation},(...i)=>{const[o]=i;!Array.isArray(o)||o.length===0?r(new KQ("FilePicker: No nodes selected")):n(o)})})}async pick(){const t=await this.pickNodes();return this.multiSelect?t.map(n=>n.path):t[0]?.path??"/"}}class JQ{title;multiSelect=!1;mimeTypeFilter=[];directoriesAllowed=!1;path;filter;buttons=[];container;disabledNavigation=!1;constructor(t){this.title=t}setContainer(t){return this.container=t,this}setMultiSelect(t){return this.multiSelect=t,this}addMimeTypeFilter(t){return this.mimeTypeFilter.push(t),this}setMimeTypeFilter(t){return this.mimeTypeFilter=t,this}addButton(t){return typeof this.buttons=="function"&&(console.warn("FilePicker buttons were set to factory, now overwritten with button object."),this.buttons=[]),this.buttons.push(t),this}setButtonFactory(t){return this.buttons=t,this}setType(t){return this.buttons=(n,r)=>{const i=[],o=n?.[0]?.attributes?.displayName||n?.[0]?.basename,s=o||KB.basename(r);if(t===1){let a=cc("Choose");n.length===1?a=cc("Choose {file}",{file:o}):this.multiSelect&&(a=QB("Choose %n file","Choose %n files",n.length)),i.push({callback:()=>{},type:"primary",label:a})}return(t===4||t===3)&&i.push({callback:()=>{},label:s?cc("Copy to {target}",{target:s}):cc("Copy"),type:"primary",icon:WQ}),(t===2||t===4)&&i.push({callback:()=>{},label:s?cc("Move to {target}",{target:s}):cc("Move"),type:t===2?"primary":"secondary",icon:qQ}),i},this}allowDirectories(t=!0){return this.directoriesAllowed=t,this}startAt(t){return this.path=t,this}setFilter(t){return this.filter=t,this}disableNavigation(){return this.disabledNavigation=!0,this}build(){return new QQ(this.title,this.multiSelect,this.mimeTypeFilter,this.directoriesAllowed,this.buttons,this.path,this.filter,this.container,this.disabledNavigation)}}function XQ(e){return new JQ(e)}const eJ=e=>XQ(xe("text","Select file or folder to link to")).startAt(e).allowDirectories(!0).setMultiSelect(!1).setButtonFactory((t,n)=>{const r=[],i=t?.[0]?.attributes?.displayName||t?.[0]?.basename,o=t?.[0]?.root===t?.[0]?.attributes?.filename;let s=xe("text","Choose");return t.length===1&&!o&&(s=xe("text","Choose {file}",{file:i})),r.push({callback:()=>{},type:"primary",label:s,disabled:o}),r}).build(),tJ={name:"ActionInsertLink",components:{NcActions:Os,NcActionButton:Ha,NcActionInput:Nx,Document:Gz,Loading:sb,LinkOff:fV,Web:CV,Shape:AV},extends:df,mixins:[l6,ey],data:()=>({href:"",isInputMode:!1,startPath:null,menuOpen:!1,isUsingDirectEditing:dm("text","directEditingToken",null)!==null}),computed:{activeClass(){return this.state.active?"is-active":""},relativePath(){return this.$file?.relativePath??"/"}},methods:{linkFile(){this.startPath===null&&(this.startPath=this.relativePath.split("/").slice(0,-1).join("/")),eJ(this.startPath).pick().then(e=>{OC.Files.getClient().getFileInfo(e).then((t,n)=>{const r=new URL(io(`/f/${n.id}`),window.origin);this.setLink(r.href,n.name),this.startPath=n.path+(n.type==="dir"?`/${n.name}/`:"")}),this.menuOpen=!1}).catch(()=>{this.$refs.buttonFile?.$el.focus()})},linkWebsite(e){if(e?.type==="submit"){const t=[...e.target.elements].filter(n=>n?.type==="text")[0].value;return this.menuOpen=!1,this.isInputMode=!1,this.href="",this.setLink(t,t)}if(WF(this.editor?.state,"link")){const t=bA(this.editor?.state,"link");this.href=t.href}this.isInputMode=!0},setLink(e,t){e&&![/^[a-zA-Z]+:/,/^\//,/\?fileId=/,/^\.\.?\//,/^[^.]*[/$]/,/^#/].find(i=>e.match(i))&&(e="https://"+e);const n=e.replaceAll(" ","%20"),r=this.editor?.chain();r.insertOrSetLink(t,{href:n}),r.focus().run()},removeLink(){this.editor?.chain().unsetLink().focus().run(),this.menuOpen=!1},linkPicker(){Ck(null,!0).then(e=>{const t=this.editor?.chain();this.editor?.view.state?.selection.empty?t.focus().insertPreview(e).run():t.setLink({href:e}).focus().run()}).catch(e=>{console.error("Smart picker promise rejected",e)})},t:xe}};var nJ=function(){var e=this,t=e._self._c;return t("NcActions",{staticClass:"entry-action entry-action__insert-link",class:e.activeClass,attrs:{title:e.actionEntry.label,"aria-label":e.actionEntry.label,container:e.menuIDSelector,"data-text-action-entry":e.actionEntry.key,name:e.actionEntry.label,open:e.menuOpen},on:{"update:open":n=>{e.menuOpen=e.menuOpen||n}},scopedSlots:e._u([{key:"icon",fn:function(){return[t(e.icon,{tag:"component",attrs:{name:e.actionEntry.label,"aria-label":e.actionEntry.label}})]},proxy:!0}])},[e.state.active?t("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-remove`},on:{click:e.removeLink},scopedSlots:e._u([{key:"icon",fn:function(){return[t("LinkOff")]},proxy:!0}],null,!1,3589828876)},[e._v(" "+e._s(e.t("text","Remove link"))+" ")]):e._e(),e.isUsingDirectEditing?e._e():t("NcActionButton",{ref:"buttonFile",attrs:{"data-text-action-entry":`${e.actionEntry.key}-file`},on:{click:e.linkFile},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Document")]},proxy:!0}],null,!1,1149029676)},[e._v(" "+e._s(e.t("text","Link to file or folder"))+" ")]),e.isInputMode?t("NcActionInput",{attrs:{type:"text",value:e.href,"data-text-action-entry":`${e.actionEntry.key}-input`},on:{"update:value":function(n){e.href=n},submit:e.linkWebsite},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Web")]},proxy:!0}],null,!1,1844845715)},[e._v(" "+e._s(e.t("text","Link to website"))+" ")]):t("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-website`},on:{click:e.linkWebsite},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Web")]},proxy:!0}])},[e._v(" "+e._s(e.state.active?e.t("text","Update link"):e.t("text","Link to website"))+" ")]),t("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-picker`},on:{click:e.linkPicker},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Shape")]},proxy:!0}])},[e._v(" "+e._s(e.t("text","Open the Smart Picker"))+" ")])],1)},rJ=[],iJ=Ee(tJ,nJ,rJ,!1,null,"f1d082ea");const oJ=iJ.exports,Lk=Wb.getBuilder("nextcloud-vue").persist(!0).build();let Uu;function sJ(e,t=10){Uu||(Uu=new Rc.EmojiIndex(rN));const n=Yk();let r;return e?(r=Uu.search(`:${e}`,t),r.length<t&&(r=r.concat(Uu.search(e,t-r.length)))):r=Rc.frequently.get(t).map(i=>Uu.emoji(i))||[],r.map(i=>i.getSkin(n))}function aJ(e){Rc.frequently.add(e)}function Yk(){const e=Number.parseInt(Lk.getItem("NcEmojiPicker::currentSkinTone")??"1");return Math.min(Math.max(e,1),6)}function lJ(e){e=Math.min(Math.max(e,1),6),Lk.setItem("NcEmojiPicker::currentSkinTone",e.toString())}var yb={exports:{}},cJ=yb.exports,d2;function uJ(){return d2||(d2=1,function(e,t){(function(n,r){e.exports=r()})(typeof self<"u"?self:cJ,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var i={};return r.m=n,r.c=i,r.d=function(o,s,a){r.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=60)}([function(n,r){function i(s,a){var l=s[1]||"",c=s[3];if(!c)return l;if(a&&typeof btoa=="function"){var u=o(c);return[l].concat(c.sources.map(function(d){return"/*# sourceURL="+c.sourceRoot+d+" */"})).concat([u]).join(`
`)}return[l].join(`
`)}function o(s){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"}n.exports=function(s){var a=[];return a.toString=function(){return this.map(function(l){var c=i(l,s);return l[2]?"@media "+l[2]+"{"+c+"}":c}).join("")},a.i=function(l,c){typeof l=="string"&&(l=[[null,l,""]]);for(var u={},d=0;d<this.length;d++){var h=this[d][0];typeof h=="number"&&(u[h]=!0)}for(d=0;d<l.length;d++){var p=l[d];typeof p[0]=="number"&&u[p[0]]||(c&&!p[2]?p[2]=c:c&&(p[2]="("+p[2]+") and ("+c+")"),a.push(p))}},a}},function(n,r,i){function o(k){for(var Z=0;Z<k.length;Z++){var W=k[Z],U=h[W.id];if(U){U.refs++;for(var w=0;w<U.parts.length;w++)U.parts[w](W.parts[w]);for(;w<W.parts.length;w++)U.parts.push(a(W.parts[w]));U.parts.length>W.parts.length&&(U.parts.length=W.parts.length)}else{for(var z=[],w=0;w<W.parts.length;w++)z.push(a(W.parts[w]));h[W.id]={id:W.id,refs:1,parts:z}}}}function s(){var k=document.createElement("style");return k.type="text/css",p.appendChild(k),k}function a(k){var Z,W,U=document.querySelector("style["+C+'~="'+k.id+'"]');if(U){if(A)return v;U.parentNode.removeChild(U)}if(S){var w=b++;U=m||(m=s()),Z=l.bind(null,U,w,!1),W=l.bind(null,U,w,!0)}else U=s(),Z=c.bind(null,U),W=function(){U.parentNode.removeChild(U)};return Z(k),function(z){if(z){if(z.css===k.css&&z.media===k.media&&z.sourceMap===k.sourceMap)return;Z(k=z)}else W()}}function l(k,Z,W,U){var w=W?"":U.css;if(k.styleSheet)k.styleSheet.cssText=O(Z,w);else{var z=document.createTextNode(w),V=k.childNodes;V[Z]&&k.removeChild(V[Z]),V.length?k.insertBefore(z,V[Z]):k.appendChild(z)}}function c(k,Z){var W=Z.css,U=Z.media,w=Z.sourceMap;if(U&&k.setAttribute("media",U),D.ssrId&&k.setAttribute(C,Z.id),w&&(W+=`
/*# sourceURL=`+w.sources[0]+" */",W+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(w))))+" */"),k.styleSheet)k.styleSheet.cssText=W;else{for(;k.firstChild;)k.removeChild(k.firstChild);k.appendChild(document.createTextNode(W))}}var u=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=i(64),h={},p=u&&(document.head||document.getElementsByTagName("head")[0]),m=null,b=0,A=!1,v=function(){},D=null,C="data-vue-ssr-id",S=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());n.exports=function(k,Z,W,U){A=W,D=U||{};var w=d(k,Z);return o(w),function(z){for(var V=[],L=0;L<w.length;L++){var se=w[L],J=h[se.id];J.refs--,V.push(J)}z?(w=d(k,z),o(w)):w=[];for(var L=0;L<V.length;L++){var J=V[L];if(J.refs===0){for(var Se=0;Se<J.parts.length;Se++)J.parts[Se]();delete h[J.id]}}}};var O=function(){var k=[];return function(Z,W){return k[Z]=W,k.filter(Boolean).join(`
`)}}()},function(n,r){n.exports=function(i,o,s,a,l,c){var u,d=i=i||{},h=typeof i.default;h!=="object"&&h!=="function"||(u=i,d=i.default);var p=typeof d=="function"?d.options:d;o&&(p.render=o.render,p.staticRenderFns=o.staticRenderFns,p._compiled=!0),s&&(p.functional=!0),l&&(p._scopeId=l);var m;if(c?(m=function(v){v=v||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,v||typeof __VUE_SSR_CONTEXT__>"u"||(v=__VUE_SSR_CONTEXT__),a&&a.call(this,v),v&&v._registeredComponents&&v._registeredComponents.add(c)},p._ssrRegister=m):a&&(m=a),m){var b=p.functional,A=b?p.render:p.beforeCreate;b?(p._injectStyles=m,p.render=function(v,D){return m.call(D),A(v,D)}):p.beforeCreate=A?[].concat(A,m):[m]}return{esModule:u,exports:d,options:p}}},function(n,r,i){function o(l,c){var u,d=l&&l.a;!(u=l&&l.hsl?(0,a.default)(l.hsl):l&&l.hex&&l.hex.length>0?(0,a.default)(l.hex):l&&l.hsv?(0,a.default)(l.hsv):l&&l.rgba?(0,a.default)(l.rgba):l&&l.rgb?(0,a.default)(l.rgb):(0,a.default)(l))||u._a!==void 0&&u._a!==null||u.setAlpha(d||1);var h=u.toHsl(),p=u.toHsv();return h.s===0&&(p.h=h.h=l.h||l.hsl&&l.hsl.h||c||0),{hsl:h,hex:u.toHexString().toUpperCase(),hex8:u.toHex8String().toUpperCase(),rgba:u.toRgb(),hsv:p,oldHue:l.h||c||h.h,source:l.source,a:l.a||u.getAlpha()}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(65),a=function(l){return l&&l.__esModule?l:{default:l}}(s);r.default={props:["value"],data:function(){return{val:o(this.value)}},computed:{colors:{get:function(){return this.val},set:function(l){this.val=l,this.$emit("input",l)}}},watch:{value:function(l){this.val=o(l)}},methods:{colorChange:function(l,c){this.oldHue=this.colors.hsl.h,this.colors=o(l,c||this.oldHue)},isValidHex:function(l){return(0,a.default)(l).isValid()},simpleCheckForValidColor:function(l){for(var c=["r","g","b","a","h","s","l","v"],u=0,d=0,h=0;h<c.length;h++){var p=c[h];l[p]&&(u++,isNaN(l[p])||d++)}if(u===d)return l},paletteUpperCase:function(l){return l.map(function(c){return c.toUpperCase()})},isTransparent:function(l){return(0,a.default)(l).getAlpha()===0}}}},function(n,r){var i=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},function(n,r,i){function o(p){i(66)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(36),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(68),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/common/EditableInput.vue",r.default=h.exports},function(n,r){var i={}.hasOwnProperty;n.exports=function(o,s){return i.call(o,s)}},function(n,r,i){var o=i(8),s=i(18);n.exports=i(9)?function(a,l,c){return o.f(a,l,s(1,c))}:function(a,l,c){return a[l]=c,a}},function(n,r,i){var o=i(16),s=i(42),a=i(25),l=Object.defineProperty;r.f=i(9)?Object.defineProperty:function(c,u,d){if(o(c),u=a(u,!0),o(d),s)try{return l(c,u,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(c[u]=d.value),c}},function(n,r,i){n.exports=!i(17)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,r,i){var o=i(90),s=i(24);n.exports=function(a){return o(s(a))}},function(n,r,i){var o=i(29)("wks"),s=i(19),a=i(4).Symbol,l=typeof a=="function";(n.exports=function(c){return o[c]||(o[c]=l&&a[c]||(l?a:s)("Symbol."+c))}).store=o},function(n,r){n.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},function(n,r,i){function o(p){i(111)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(51),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(113),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/common/Hue.vue",r.default=h.exports},function(n,r){n.exports=!0},function(n,r){var i=n.exports={version:"2.6.11"};typeof __e=="number"&&(__e=i)},function(n,r,i){var o=i(12);n.exports=function(s){if(!o(s))throw TypeError(s+" is not an object!");return s}},function(n,r){n.exports=function(i){try{return!!i()}catch{return!0}}},function(n,r){n.exports=function(i,o){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:o}}},function(n,r){var i=0,o=Math.random();n.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++i+o).toString(36))}},function(n,r,i){function o(p){i(123)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(54),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(127),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/common/Saturation.vue",r.default=h.exports},function(n,r,i){function o(p){i(128)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(55),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(133),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/common/Alpha.vue",r.default=h.exports},function(n,r,i){function o(p){i(130)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(56),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(132),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/common/Checkboard.vue",r.default=h.exports},function(n,r){var i=Math.ceil,o=Math.floor;n.exports=function(s){return isNaN(s=+s)?0:(s>0?o:i)(s)}},function(n,r){n.exports=function(i){if(i==null)throw TypeError("Can't call method on  "+i);return i}},function(n,r,i){var o=i(12);n.exports=function(s,a){if(!o(s))return s;var l,c;if(a&&typeof(l=s.toString)=="function"&&!o(c=l.call(s))||typeof(l=s.valueOf)=="function"&&!o(c=l.call(s))||!a&&typeof(l=s.toString)=="function"&&!o(c=l.call(s)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,r){n.exports={}},function(n,r,i){var o=i(46),s=i(30);n.exports=Object.keys||function(a){return o(a,s)}},function(n,r,i){var o=i(29)("keys"),s=i(19);n.exports=function(a){return o[a]||(o[a]=s(a))}},function(n,r,i){var o=i(15),s=i(4),a=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(n.exports=function(l,c){return a[l]||(a[l]=c!==void 0?c:{})})("versions",[]).push({version:o.version,mode:i(14)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,r,i){var o=i(8).f,s=i(6),a=i(11)("toStringTag");n.exports=function(l,c,u){l&&!s(l=u?l:l.prototype,a)&&o(l,a,{configurable:!0,value:c})}},function(n,r,i){r.f=i(11)},function(n,r,i){var o=i(4),s=i(15),a=i(14),l=i(32),c=i(8).f;n.exports=function(u){var d=s.Symbol||(s.Symbol=a?{}:o.Symbol||{});u.charAt(0)=="_"||u in d||c(d,u,{value:l.f(u)})}},function(n,r){r.f={}.propertyIsEnumerable},function(n,r,i){function o(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(3),a=o(s),l=i(5),c=o(l),u=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];r.default={name:"Compact",mixins:[a.default],props:{palette:{type:Array,default:function(){return u}}},components:{"ed-in":c.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(d){this.colorChange({hex:d,source:"hex"})}}}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(o){if(!(this.max!==void 0&&+o>this.max))return o;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(o){this.handleChange(o.target.value)},handleChange:function(o){var s={};s[this.label]=o,s.hex===void 0&&s["#"]===void 0?this.$emit("change",s):o.length>5&&this.$emit("change",s)},handleKeyDown:function(o){var s=this.val,a=Number(s);if(a){var l=this.arrowOffset||1;o.keyCode===38&&(s=a+l,this.handleChange(s),o.preventDefault()),o.keyCode===40&&(s=a-l,this.handleChange(s),o.preventDefault())}}}}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(3),s=function(l){return l&&l.__esModule?l:{default:l}}(o),a=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];r.default={name:"Grayscale",mixins:[s.default],props:{palette:{type:Array,default:function(){return a}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(l){this.colorChange({hex:l,source:"hex"})}}}},function(n,r,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(5),a=o(s),l=i(3),c=o(l);r.default={name:"Material",mixins:[c.default],components:{"ed-in":a.default},methods:{onChange:function(u){u&&(u.hex?this.isValidHex(u.hex)&&this.colorChange({hex:u.hex,source:"hex"}):(u.r||u.g||u.b)&&this.colorChange({r:u.r||this.colors.rgba.r,g:u.g||this.colors.rgba.g,b:u.b||this.colors.rgba.b,a:u.a||this.colors.rgba.a,source:"rgba"}))}}}},function(n,r,i){function o(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(81),a=o(s),l=i(3),c=o(l),u=i(13),d=o(u);r.default={name:"Slider",mixins:[c.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:d.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(h){return(h===void 0?"undefined":(0,a.default)(h))!=="object"?{s:.5,l:h}:h})}},methods:{isActive:function(h,p){var m=this.colors.hsl;return m.l===1&&h.l===1||m.l===0&&h.l===0||Math.abs(m.l-h.l)<.01&&Math.abs(m.s-h.s)<.01},hueChange:function(h){this.colorChange(h)},handleSwClick:function(h,p){this.colorChange({h:this.colors.hsl.h,s:p.s,l:p.l,source:"hsl"})}}}},function(n,r,i){var o=i(14),s=i(41),a=i(44),l=i(7),c=i(26),u=i(88),d=i(31),h=i(95),p=i(11)("iterator"),m=!([].keys&&"next"in[].keys()),b=function(){return this};n.exports=function(A,v,D,C,S,O,k){u(D,v,C);var Z,W,U,w=function(ce){if(!m&&ce in se)return se[ce];switch(ce){case"keys":case"values":return function(){return new D(this,ce)}}return function(){return new D(this,ce)}},z=v+" Iterator",V=S=="values",L=!1,se=A.prototype,J=se[p]||se["@@iterator"]||S&&se[S],Se=J||w(S),G=S?V?w("entries"):Se:void 0,ie=v=="Array"&&se.entries||J;if(ie&&(U=h(ie.call(new A)))!==Object.prototype&&U.next&&(d(U,z,!0),o||typeof U[p]=="function"||l(U,p,b)),V&&J&&J.name!=="values"&&(L=!0,Se=function(){return J.call(this)}),o&&!k||!m&&!L&&se[p]||l(se,p,Se),c[v]=Se,c[z]=b,S)if(Z={values:V?Se:w("values"),keys:O?Se:w("keys"),entries:G},k)for(W in Z)W in se||a(se,W,Z[W]);else s(s.P+s.F*(m||L),v,Z);return Z}},function(n,r,i){var o=i(4),s=i(15),a=i(86),l=i(7),c=i(6),u=function(d,h,p){var m,b,A,v=d&u.F,D=d&u.G,C=d&u.S,S=d&u.P,O=d&u.B,k=d&u.W,Z=D?s:s[h]||(s[h]={}),W=Z.prototype,U=D?o:C?o[h]:(o[h]||{}).prototype;D&&(p=h);for(m in p)(b=!v&&U&&U[m]!==void 0)&&c(Z,m)||(A=b?U[m]:p[m],Z[m]=D&&typeof U[m]!="function"?p[m]:O&&b?a(A,o):k&&U[m]==A?function(w){var z=function(V,L,se){if(this instanceof w){switch(arguments.length){case 0:return new w;case 1:return new w(V);case 2:return new w(V,L)}return new w(V,L,se)}return w.apply(this,arguments)};return z.prototype=w.prototype,z}(A):S&&typeof A=="function"?a(Function.call,A):A,S&&((Z.virtual||(Z.virtual={}))[m]=A,d&u.R&&W&&!W[m]&&l(W,m,A)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,n.exports=u},function(n,r,i){n.exports=!i(9)&&!i(17)(function(){return Object.defineProperty(i(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(n,r,i){var o=i(12),s=i(4).document,a=o(s)&&o(s.createElement);n.exports=function(l){return a?s.createElement(l):{}}},function(n,r,i){n.exports=i(7)},function(n,r,i){var o=i(16),s=i(89),a=i(30),l=i(28)("IE_PROTO"),c=function(){},u=function(){var d,h=i(43)("iframe"),p=a.length;for(h.style.display="none",i(94).appendChild(h),h.src="javascript:",d=h.contentWindow.document,d.open(),d.write("<script>document.F=Object<\/script>"),d.close(),u=d.F;p--;)delete u.prototype[a[p]];return u()};n.exports=Object.create||function(d,h){var p;return d!==null?(c.prototype=o(d),p=new c,c.prototype=null,p[l]=d):p=u(),h===void 0?p:s(p,h)}},function(n,r,i){var o=i(6),s=i(10),a=i(91)(!1),l=i(28)("IE_PROTO");n.exports=function(c,u){var d,h=s(c),p=0,m=[];for(d in h)d!=l&&o(h,d)&&m.push(d);for(;u.length>p;)o(h,d=u[p++])&&(~a(m,d)||m.push(d));return m}},function(n,r){var i={}.toString;n.exports=function(o){return i.call(o).slice(8,-1)}},function(n,r,i){var o=i(24);n.exports=function(s){return Object(o(s))}},function(n,r){r.f=Object.getOwnPropertySymbols},function(n,r,i){var o=i(46),s=i(30).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(a){return o(a,s)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var o=this.value.hsl.h;return o!==0&&o-this.oldHue>0&&(this.pullDirection="right"),o!==0&&o-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=o,this.value},directionClass:function(){return{"vc-hue--horizontal":this.direction==="horizontal","vc-hue--vertical":this.direction==="vertical"}},pointerTop:function(){return this.direction==="vertical"?this.colors.hsl.h===0&&this.pullDirection==="right"?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return this.direction==="vertical"?0:this.colors.hsl.h===0&&this.pullDirection==="right"?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(o,s){!s&&o.preventDefault();var a=this.$refs.container;if(a){var l,c,u=a.clientWidth,d=a.clientHeight,h=a.getBoundingClientRect().left+window.pageXOffset,p=a.getBoundingClientRect().top+window.pageYOffset,m=o.pageX||(o.touches?o.touches[0].pageX:0),b=o.pageY||(o.touches?o.touches[0].pageY:0),A=m-h,v=b-p;this.direction==="vertical"?(v<0?l=360:v>d?l=0:(c=-100*v/d+100,l=360*c/100),this.colors.hsl.h!==l&&this.$emit("change",{h:l,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(A<0?l=0:A>u?l=360:(c=100*A/u,l=360*c/100),this.colors.hsl.h!==l&&this.$emit("change",{h:l,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown:function(o){this.handleChange(o,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(o){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(n,r,i){function o(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(118),a=o(s),l=i(3),c=o(l),u=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],d=["900","700","500","300","100"],h=function(){var p=[];return u.forEach(function(m){var b=[];m.toLowerCase()==="black"||m.toLowerCase()==="white"?b=b.concat(["#000000","#FFFFFF"]):d.forEach(function(A){var v=a.default[m][A];b.push(v.toUpperCase())}),p.push(b)}),p}();r.default={name:"Swatches",mixins:[c.default],props:{palette:{type:Array,default:function(){return h}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(p){return p.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(p){this.colorChange({hex:p,source:"hex"})}}}},function(n,r,i){function o(A){return A&&A.__esModule?A:{default:A}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(3),a=o(s),l=i(5),c=o(l),u=i(20),d=o(u),h=i(13),p=o(h),m=i(21),b=o(m);r.default={name:"Photoshop",mixins:[a.default],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:d.default,hue:p.default,alpha:b.default,"ed-in":c.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var A=this.colors.hsv;return{h:A.h.toFixed(),s:(100*A.s).toFixed(),v:(100*A.v).toFixed()}},hex:function(){var A=this.colors.hex;return A&&A.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(A){this.colorChange(A)},inputChange:function(A){A&&(A["#"]?this.isValidHex(A["#"])&&this.colorChange({hex:A["#"],source:"hex"}):A.r||A.g||A.b||A.a?this.colorChange({r:A.r||this.colors.rgba.r,g:A.g||this.colors.rgba.g,b:A.b||this.colors.rgba.b,a:A.a||this.colors.rgba.a,source:"rgba"}):(A.h||A.s||A.v)&&this.colorChange({h:A.h||this.colors.hsv.h,s:A.s/100||this.colors.hsv.s,v:A.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor:function(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept:function(){this.$emit("ok")},handleCancel:function(){this.$emit("cancel")},handleReset:function(){this.$emit("reset")}}}},function(n,r,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(125),a=o(s),l=i(126),c=o(l);r.default={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:(0,c.default)(function(u,d){u(d)},20,{leading:!0,trailing:!1}),handleChange:function(u,d){!d&&u.preventDefault();var h=this.$refs.container;if(h){var p=h.clientWidth,m=h.clientHeight,b=h.getBoundingClientRect().left+window.pageXOffset,A=h.getBoundingClientRect().top+window.pageYOffset,v=u.pageX||(u.touches?u.touches[0].pageX:0),D=u.pageY||(u.touches?u.touches[0].pageY:0),C=(0,a.default)(v-b,0,p),S=(0,a.default)(D-A,0,m),O=C/p,k=(0,a.default)(-S/m+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:O,v:k,a:this.colors.hsv.a,source:"hsva"})}},onChange:function(u){this.$emit("change",u)},handleMouseDown:function(u){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(u){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(22),s=function(a){return a&&a.__esModule?a:{default:a}}(o);r.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:s.default},computed:{colors:function(){return this.value},gradientColor:function(){var a=this.colors.rgba,l=[a.r,a.g,a.b].join(",");return"linear-gradient(to right, rgba("+l+", 0) 0%, rgba("+l+", 1) 100%)"}},methods:{handleChange:function(a,l){!l&&a.preventDefault();var c=this.$refs.container;if(c){var u,d=c.clientWidth,h=c.getBoundingClientRect().left+window.pageXOffset,p=a.pageX||(a.touches?a.touches[0].pageX:0),m=p-h;u=m<0?0:m>d?1:Math.round(100*m/d)/100,this.colors.a!==u&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:u,source:"rgba"})}},handleMouseDown:function(a){this.handleChange(a,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(n,r,i){function o(l,c,u){if(typeof document>"u")return null;var d=document.createElement("canvas");d.width=d.height=2*u;var h=d.getContext("2d");return h?(h.fillStyle=l,h.fillRect(0,0,d.width,d.height),h.fillStyle=c,h.fillRect(0,0,u,u),h.translate(u,u),h.fillRect(0,0,u,u),d.toDataURL()):null}function s(l,c,u){var d=l+","+c+","+u;if(a[d])return a[d];var h=o(l,c,u);return a[d]=h,h}Object.defineProperty(r,"__esModule",{value:!0});var a={};r.default={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+s(this.white,this.grey,this.size)+")"}}}}},function(n,r,i){function o(C){return C&&C.__esModule?C:{default:C}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(3),a=o(s),l=i(5),c=o(l),u=i(20),d=o(u),h=i(13),p=o(h),m=i(21),b=o(m),A=i(22),v=o(A),D=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];r.default={name:"Sketch",mixins:[a.default],components:{saturation:d.default,hue:p.default,alpha:b.default,"ed-in":c.default,checkboard:v.default},props:{presetColors:{type:Array,default:function(){return D}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){var C=void 0;return C=this.colors.a<1?this.colors.hex8:this.colors.hex,C.replace("#","")},activeColor:function(){var C=this.colors.rgba;return"rgba("+[C.r,C.g,C.b,C.a].join(",")+")"}},methods:{handlePreset:function(C){this.colorChange({hex:C,source:"hex"})},childChange:function(C){this.colorChange(C)},inputChange:function(C){C&&(C.hex?this.isValidHex(C.hex)&&this.colorChange({hex:C.hex,source:"hex"}):(C.r||C.g||C.b||C.a)&&this.colorChange({r:C.r||this.colors.rgba.r,g:C.g||this.colors.rgba.g,b:C.b||this.colors.rgba.b,a:C.a||this.colors.rgba.a,source:"rgba"}))}}}},function(n,r,i){function o(D){return D&&D.__esModule?D:{default:D}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(3),a=o(s),l=i(5),c=o(l),u=i(20),d=o(u),h=i(13),p=o(h),m=i(21),b=o(m),A=i(22),v=o(A);r.default={name:"Chrome",mixins:[a.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:d.default,hue:p.default,alpha:b.default,"ed-in":c.default,checkboard:v.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var D=this.colors.hsl,C=D.h,S=D.s,O=D.l;return{h:C.toFixed(),s:(100*S).toFixed()+"%",l:(100*O).toFixed()+"%"}},activeColor:function(){var D=this.colors.rgba;return"rgba("+[D.r,D.g,D.b,D.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(D){this.colorChange(D)},inputChange:function(D){if(D){if(D.hex)this.isValidHex(D.hex)&&this.colorChange({hex:D.hex,source:"hex"});else if(D.r||D.g||D.b||D.a)this.colorChange({r:D.r||this.colors.rgba.r,g:D.g||this.colors.rgba.g,b:D.b||this.colors.rgba.b,a:D.a||this.colors.rgba.a,source:"rgba"});else if(D.h||D.s||D.l){var C=D.s?D.s.replace("%","")/100:this.colors.hsl.s,S=D.l?D.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:D.h||this.colors.hsl.h,s:C,l:S,source:"hsl"})}}},toggleViews:function(){if(this.fieldsIndex>=2)return void(this.fieldsIndex=0);this.fieldsIndex++},showHighlight:function(){this.highlight=!0},hideHighlight:function(){this.highlight=!1}}}},function(n,r,i){function o(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(r,"__esModule",{value:!0});var s=i(5),a=o(s),l=i(3),c=o(l),u=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];r.default={name:"Twitter",mixins:[c.default],components:{editableInput:a.default},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default:function(){return u}},triangle:{default:"top-left",validator:function(d){return["hide","top-left","top-right"].includes(d)}}},computed:{hsv:function(){var d=this.colors.hsv;return{h:d.h.toFixed(),s:(100*d.s).toFixed(),v:(100*d.v).toFixed()}},hex:function(){var d=this.colors.hex;return d&&d.replace("#","")}},methods:{equal:function(d){return d.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(d){this.colorChange({hex:d,source:"hex"})},inputChange:function(d){d&&(d["#"]?this.isValidHex(d["#"])&&this.colorChange({hex:d["#"],source:"hex"}):d.r||d.g||d.b||d.a?this.colorChange({r:d.r||this.colors.rgba.r,g:d.g||this.colors.rgba.g,b:d.b||this.colors.rgba.b,a:d.a||this.colors.rgba.a,source:"rgba"}):(d.h||d.s||d.v)&&this.colorChange({h:d.h||this.colors.hsv.h,s:d.s/100||this.colors.hsv.s,v:d.v/100||this.colors.hsv.v,source:"hsv"}))}}}},function(n,r,i){function o(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}var s=i(61),a=o(s),l=i(70),c=o(l),u=i(74),d=o(u),h=i(78),p=o(h),m=i(115),b=o(m),A=i(120),v=o(A),D=i(135),C=o(D),S=i(139),O=o(S),k=i(143),Z=o(k),W=i(21),U=o(W),w=i(22),z=o(w),V=i(5),L=o(V),se=i(13),J=o(se),Se=i(20),G=o(Se),ie=i(3),ce=o(ie),De={version:"2.8.1",Compact:a.default,Grayscale:c.default,Twitter:Z.default,Material:d.default,Slider:p.default,Swatches:b.default,Photoshop:v.default,Sketch:C.default,Chrome:O.default,Alpha:U.default,Checkboard:z.default,EditableInput:L.default,Hue:J.default,Saturation:G.default,ColorMixin:ce.default};n.exports=De},function(n,r,i){function o(p){i(62)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(35),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(69),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Compact.vue",r.default=h.exports},function(n,r,i){var o=i(63);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("6ce8a5a8",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-compact {
  padding-top: 5px;
  padding-left: 5px;
  width: 245px;
  border-radius: 2px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
  background-color: #fff;
}
.vc-compact-colors {
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.vc-compact-color-item {
  list-style: none;
  width: 15px;
  height: 15px;
  float: left;
  margin-right: 5px;
  margin-bottom: 5px;
  position: relative;
  cursor: pointer;
}
.vc-compact-color-item--white {
  box-shadow: inset 0 0 0 1px #ddd;
}
.vc-compact-color-item--white .vc-compact-dot {
  background: #000;
}
.vc-compact-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
  border-radius: 50%;
  opacity: 1;
  background: #fff;
}
`,""])},function(n,r){n.exports=function(i,o){for(var s=[],a={},l=0;l<o.length;l++){var c=o[l],u=c[0],d=c[1],h=c[2],p=c[3],m={id:i+":"+l,css:d,media:h,sourceMap:p};a[u]?a[u].parts.push(m):s.push(a[u]={id:u,parts:[m]})}return s}},function(n,r,i){var o;(function(s){function a(I,j){if(I=I||"",j=j||{},I instanceof a)return I;if(!(this instanceof a))return new a(I,j);var M=l(I);this._originalInput=I,this._r=M.r,this._g=M.g,this._b=M.b,this._a=M.a,this._roundA=_e(100*this._a)/100,this._format=j.format||M.format,this._gradientType=j.gradientType,this._r<1&&(this._r=_e(this._r)),this._g<1&&(this._g=_e(this._g)),this._b<1&&(this._b=_e(this._b)),this._ok=M.ok,this._tc_id=jt++}function l(I){var j={r:0,g:0,b:0},M=1,de=null,Te=null,H=null,fe=!1,Ie=!1;return typeof I=="string"&&(I=et(I)),typeof I=="object"&&(bt(I.r)&&bt(I.g)&&bt(I.b)?(j=c(I.r,I.g,I.b),fe=!0,Ie=String(I.r).substr(-1)==="%"?"prgb":"rgb"):bt(I.h)&&bt(I.s)&&bt(I.v)?(de=Oe(I.s),Te=Oe(I.v),j=p(I.h,de,Te),fe=!0,Ie="hsv"):bt(I.h)&&bt(I.s)&&bt(I.l)&&(de=Oe(I.s),H=Oe(I.l),j=d(I.h,de,H),fe=!0,Ie="hsl"),I.hasOwnProperty("a")&&(M=I.a)),M=se(M),{ok:fe,format:I.format||Ie,r:ht(255,it(j.r,0)),g:ht(255,it(j.g,0)),b:ht(255,it(j.b,0)),a:M}}function c(I,j,M){return{r:255*J(I,255),g:255*J(j,255),b:255*J(M,255)}}function u(I,j,M){I=J(I,255),j=J(j,255),M=J(M,255);var de,Te,H=it(I,j,M),fe=ht(I,j,M),Ie=(H+fe)/2;if(H==fe)de=Te=0;else{var lt=H-fe;switch(Te=Ie>.5?lt/(2-H-fe):lt/(H+fe),H){case I:de=(j-M)/lt+(j<M?6:0);break;case j:de=(M-I)/lt+2;break;case M:de=(I-j)/lt+4}de/=6}return{h:de,s:Te,l:Ie}}function d(I,j,M){function de(St,Q,ne){return ne<0&&(ne+=1),ne>1&&(ne-=1),ne<1/6?St+6*(Q-St)*ne:ne<.5?Q:ne<2/3?St+(Q-St)*(2/3-ne)*6:St}var Te,H,fe;if(I=J(I,360),j=J(j,100),M=J(M,100),j===0)Te=H=fe=M;else{var Ie=M<.5?M*(1+j):M+j-M*j,lt=2*M-Ie;Te=de(lt,Ie,I+1/3),H=de(lt,Ie,I),fe=de(lt,Ie,I-1/3)}return{r:255*Te,g:255*H,b:255*fe}}function h(I,j,M){I=J(I,255),j=J(j,255),M=J(M,255);var de,Te,H=it(I,j,M),fe=ht(I,j,M),Ie=H,lt=H-fe;if(Te=H===0?0:lt/H,H==fe)de=0;else{switch(H){case I:de=(j-M)/lt+(j<M?6:0);break;case j:de=(M-I)/lt+2;break;case M:de=(I-j)/lt+4}de/=6}return{h:de,s:Te,v:Ie}}function p(I,j,M){I=6*J(I,360),j=J(j,100),M=J(M,100);var de=s.floor(I),Te=I-de,H=M*(1-j),fe=M*(1-Te*j),Ie=M*(1-(1-Te)*j),lt=de%6;return{r:255*[M,fe,H,H,Ie,M][lt],g:255*[Ie,M,M,fe,H,H][lt],b:255*[H,H,Ie,M,M,fe][lt]}}function m(I,j,M,de){var Te=[De(_e(I).toString(16)),De(_e(j).toString(16)),De(_e(M).toString(16))];return de&&Te[0].charAt(0)==Te[0].charAt(1)&&Te[1].charAt(0)==Te[1].charAt(1)&&Te[2].charAt(0)==Te[2].charAt(1)?Te[0].charAt(0)+Te[1].charAt(0)+Te[2].charAt(0):Te.join("")}function b(I,j,M,de,Te){var H=[De(_e(I).toString(16)),De(_e(j).toString(16)),De(_e(M).toString(16)),De(Be(de))];return Te&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function A(I,j,M,de){return[De(Be(de)),De(_e(I).toString(16)),De(_e(j).toString(16)),De(_e(M).toString(16))].join("")}function v(I,j){j=j===0?0:j||10;var M=a(I).toHsl();return M.s-=j/100,M.s=Se(M.s),a(M)}function D(I,j){j=j===0?0:j||10;var M=a(I).toHsl();return M.s+=j/100,M.s=Se(M.s),a(M)}function C(I){return a(I).desaturate(100)}function S(I,j){j=j===0?0:j||10;var M=a(I).toHsl();return M.l+=j/100,M.l=Se(M.l),a(M)}function O(I,j){j=j===0?0:j||10;var M=a(I).toRgb();return M.r=it(0,ht(255,M.r-_e(-j/100*255))),M.g=it(0,ht(255,M.g-_e(-j/100*255))),M.b=it(0,ht(255,M.b-_e(-j/100*255))),a(M)}function k(I,j){j=j===0?0:j||10;var M=a(I).toHsl();return M.l-=j/100,M.l=Se(M.l),a(M)}function Z(I,j){var M=a(I).toHsl(),de=(M.h+j)%360;return M.h=de<0?360+de:de,a(M)}function W(I){var j=a(I).toHsl();return j.h=(j.h+180)%360,a(j)}function U(I){var j=a(I).toHsl(),M=j.h;return[a(I),a({h:(M+120)%360,s:j.s,l:j.l}),a({h:(M+240)%360,s:j.s,l:j.l})]}function w(I){var j=a(I).toHsl(),M=j.h;return[a(I),a({h:(M+90)%360,s:j.s,l:j.l}),a({h:(M+180)%360,s:j.s,l:j.l}),a({h:(M+270)%360,s:j.s,l:j.l})]}function z(I){var j=a(I).toHsl(),M=j.h;return[a(I),a({h:(M+72)%360,s:j.s,l:j.l}),a({h:(M+216)%360,s:j.s,l:j.l})]}function V(I,j,M){j=j||6,M=M||30;var de=a(I).toHsl(),Te=360/M,H=[a(I)];for(de.h=(de.h-(Te*j>>1)+720)%360;--j;)de.h=(de.h+Te)%360,H.push(a(de));return H}function L(I,j){j=j||6;for(var M=a(I).toHsv(),de=M.h,Te=M.s,H=M.v,fe=[],Ie=1/j;j--;)fe.push(a({h:de,s:Te,v:H})),H=(H+Ie)%1;return fe}function se(I){return I=parseFloat(I),(isNaN(I)||I<0||I>1)&&(I=1),I}function J(I,j){ie(I)&&(I="100%");var M=ce(I);return I=ht(j,it(0,parseFloat(I))),M&&(I=parseInt(I*j,10)/100),s.abs(I-j)<1e-6?1:I%j/parseFloat(j)}function Se(I){return ht(1,it(0,I))}function G(I){return parseInt(I,16)}function ie(I){return typeof I=="string"&&I.indexOf(".")!=-1&&parseFloat(I)===1}function ce(I){return typeof I=="string"&&I.indexOf("%")!=-1}function De(I){return I.length==1?"0"+I:""+I}function Oe(I){return I<=1&&(I=100*I+"%"),I}function Be(I){return s.round(255*parseFloat(I)).toString(16)}function ft(I){return G(I)/255}function bt(I){return!!Ue.CSS_UNIT.exec(I)}function et(I){I=I.replace(rt,"").replace(Dt,"").toLowerCase();var j=!1;if($t[I])I=$t[I],j=!0;else if(I=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var M;return(M=Ue.rgb.exec(I))?{r:M[1],g:M[2],b:M[3]}:(M=Ue.rgba.exec(I))?{r:M[1],g:M[2],b:M[3],a:M[4]}:(M=Ue.hsl.exec(I))?{h:M[1],s:M[2],l:M[3]}:(M=Ue.hsla.exec(I))?{h:M[1],s:M[2],l:M[3],a:M[4]}:(M=Ue.hsv.exec(I))?{h:M[1],s:M[2],v:M[3]}:(M=Ue.hsva.exec(I))?{h:M[1],s:M[2],v:M[3],a:M[4]}:(M=Ue.hex8.exec(I))?{r:G(M[1]),g:G(M[2]),b:G(M[3]),a:ft(M[4]),format:j?"name":"hex8"}:(M=Ue.hex6.exec(I))?{r:G(M[1]),g:G(M[2]),b:G(M[3]),format:j?"name":"hex"}:(M=Ue.hex4.exec(I))?{r:G(M[1]+""+M[1]),g:G(M[2]+""+M[2]),b:G(M[3]+""+M[3]),a:ft(M[4]+""+M[4]),format:j?"name":"hex8"}:!!(M=Ue.hex3.exec(I))&&{r:G(M[1]+""+M[1]),g:G(M[2]+""+M[2]),b:G(M[3]+""+M[3]),format:j?"name":"hex"}}function nt(I){var j,M;return I=I||{level:"AA",size:"small"},j=(I.level||"AA").toUpperCase(),M=(I.size||"small").toLowerCase(),j!=="AA"&&j!=="AAA"&&(j="AA"),M!=="small"&&M!=="large"&&(M="small"),{level:j,size:M}}var rt=/^\s+/,Dt=/\s+$/,jt=0,_e=s.round,ht=s.min,it=s.max,Bt=s.random;a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var I=this.toRgb();return(299*I.r+587*I.g+114*I.b)/1e3},getLuminance:function(){var I,j,M,de,Te,H,fe=this.toRgb();return I=fe.r/255,j=fe.g/255,M=fe.b/255,de=I<=.03928?I/12.92:s.pow((I+.055)/1.055,2.4),Te=j<=.03928?j/12.92:s.pow((j+.055)/1.055,2.4),H=M<=.03928?M/12.92:s.pow((M+.055)/1.055,2.4),.2126*de+.7152*Te+.0722*H},setAlpha:function(I){return this._a=se(I),this._roundA=_e(100*this._a)/100,this},toHsv:function(){var I=h(this._r,this._g,this._b);return{h:360*I.h,s:I.s,v:I.v,a:this._a}},toHsvString:function(){var I=h(this._r,this._g,this._b),j=_e(360*I.h),M=_e(100*I.s),de=_e(100*I.v);return this._a==1?"hsv("+j+", "+M+"%, "+de+"%)":"hsva("+j+", "+M+"%, "+de+"%, "+this._roundA+")"},toHsl:function(){var I=u(this._r,this._g,this._b);return{h:360*I.h,s:I.s,l:I.l,a:this._a}},toHslString:function(){var I=u(this._r,this._g,this._b),j=_e(360*I.h),M=_e(100*I.s),de=_e(100*I.l);return this._a==1?"hsl("+j+", "+M+"%, "+de+"%)":"hsla("+j+", "+M+"%, "+de+"%, "+this._roundA+")"},toHex:function(I){return m(this._r,this._g,this._b,I)},toHexString:function(I){return"#"+this.toHex(I)},toHex8:function(I){return b(this._r,this._g,this._b,this._a,I)},toHex8String:function(I){return"#"+this.toHex8(I)},toRgb:function(){return{r:_e(this._r),g:_e(this._g),b:_e(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+_e(this._r)+", "+_e(this._g)+", "+_e(this._b)+")":"rgba("+_e(this._r)+", "+_e(this._g)+", "+_e(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:_e(100*J(this._r,255))+"%",g:_e(100*J(this._g,255))+"%",b:_e(100*J(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+_e(100*J(this._r,255))+"%, "+_e(100*J(this._g,255))+"%, "+_e(100*J(this._b,255))+"%)":"rgba("+_e(100*J(this._r,255))+"%, "+_e(100*J(this._g,255))+"%, "+_e(100*J(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(wn[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(I){var j="#"+A(this._r,this._g,this._b,this._a),M=j,de=this._gradientType?"GradientType = 1, ":"";if(I){var Te=a(I);M="#"+A(Te._r,Te._g,Te._b,Te._a)}return"progid:DXImageTransform.Microsoft.gradient("+de+"startColorstr="+j+",endColorstr="+M+")"},toString:function(I){var j=!!I;I=I||this._format;var M=!1,de=this._a<1&&this._a>=0;return j||!de||I!=="hex"&&I!=="hex6"&&I!=="hex3"&&I!=="hex4"&&I!=="hex8"&&I!=="name"?(I==="rgb"&&(M=this.toRgbString()),I==="prgb"&&(M=this.toPercentageRgbString()),I!=="hex"&&I!=="hex6"||(M=this.toHexString()),I==="hex3"&&(M=this.toHexString(!0)),I==="hex4"&&(M=this.toHex8String(!0)),I==="hex8"&&(M=this.toHex8String()),I==="name"&&(M=this.toName()),I==="hsl"&&(M=this.toHslString()),I==="hsv"&&(M=this.toHsvString()),M||this.toHexString()):I==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(I,j){var M=I.apply(null,[this].concat([].slice.call(j)));return this._r=M._r,this._g=M._g,this._b=M._b,this.setAlpha(M._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(D,arguments)},greyscale:function(){return this._applyModification(C,arguments)},spin:function(){return this._applyModification(Z,arguments)},_applyCombination:function(I,j){return I.apply(null,[this].concat([].slice.call(j)))},analogous:function(){return this._applyCombination(V,arguments)},complement:function(){return this._applyCombination(W,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(U,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},a.fromRatio=function(I,j){if(typeof I=="object"){var M={};for(var de in I)I.hasOwnProperty(de)&&(M[de]=de==="a"?I[de]:Oe(I[de]));I=M}return a(I,j)},a.equals=function(I,j){return!(!I||!j)&&a(I).toRgbString()==a(j).toRgbString()},a.random=function(){return a.fromRatio({r:Bt(),g:Bt(),b:Bt()})},a.mix=function(I,j,M){M=M===0?0:M||50;var de=a(I).toRgb(),Te=a(j).toRgb(),H=M/100;return a({r:(Te.r-de.r)*H+de.r,g:(Te.g-de.g)*H+de.g,b:(Te.b-de.b)*H+de.b,a:(Te.a-de.a)*H+de.a})},a.readability=function(I,j){var M=a(I),de=a(j);return(s.max(M.getLuminance(),de.getLuminance())+.05)/(s.min(M.getLuminance(),de.getLuminance())+.05)},a.isReadable=function(I,j,M){var de,Te,H=a.readability(I,j);switch(Te=!1,de=nt(M),de.level+de.size){case"AAsmall":case"AAAlarge":Te=H>=4.5;break;case"AAlarge":Te=H>=3;break;case"AAAsmall":Te=H>=7}return Te},a.mostReadable=function(I,j,M){var de,Te,H,fe,Ie=null,lt=0;M=M||{},Te=M.includeFallbackColors,H=M.level,fe=M.size;for(var St=0;St<j.length;St++)(de=a.readability(I,j[St]))>lt&&(lt=de,Ie=a(j[St]));return a.isReadable(I,Ie,{level:H,size:fe})||!Te?Ie:(M.includeFallbackColors=!1,a.mostReadable(I,["#fff","#000"],M))};var $t=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},wn=a.hexNames=function(I){var j={};for(var M in I)I.hasOwnProperty(M)&&(j[I[M]]=M);return j}($t),Ue=function(){var I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",j="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",M="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?";return{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+j),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+j),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+j),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();n!==void 0&&n.exports?n.exports=a:(o=function(){return a}.call(r,i,r,n))!==void 0&&(n.exports=o)})(Math)},function(n,r,i){var o=i(67);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("0f73e73c",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-editable-input {
  position: relative;
}
.vc-input__input {
  padding: 0;
  border: 0;
  outline: none;
}
.vc-input__label {
  text-transform: capitalize;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-editable-input"},[u("input",{directives:[{name:"model",rawName:"v-model",value:l.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":l.labelId},domProps:{value:l.val},on:{keydown:l.handleKeyDown,input:[function(d){d.target.composing||(l.val=d.target.value)},l.update]}}),l._v(" "),u("span",{staticClass:"vc-input__label",attrs:{for:l.label,id:l.labelId}},[l._v(l._s(l.labelSpanText))]),l._v(" "),u("span",{staticClass:"vc-input__desc"},[l._v(l._s(l.desc))])])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[u("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},l._l(l.paletteUpperCase(l.palette),function(d){return u("li",{key:d,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":d==="#FFFFFF"},style:{background:d},attrs:{role:"option","aria-label":"color:"+d,"aria-selected":d===l.pick},on:{click:function(h){return l.handlerClick(d)}}},[u("div",{directives:[{name:"show",rawName:"v-show",value:d===l.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])}),0)])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(71)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(37),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(73),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Grayscale.vue",r.default=h.exports},function(n,r,i){var o=i(72);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("21ddbb74",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-grayscale {
  width: 125px;
  border-radius: 2px;
  box-shadow: 0 2px 15px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.16);
  background-color: #fff;
}
.vc-grayscale-colors {
  border-radius: 2px;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
.vc-grayscale-color-item {
  list-style: none;
  width: 25px;
  height: 25px;
  float: left;
  position: relative;
  cursor: pointer;
}
.vc-grayscale-color-item--white .vc-grayscale-dot {
  background: #000;
}
.vc-grayscale-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -2px;
  border-radius: 50%;
  opacity: 1;
  background: #fff;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[u("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},l._l(l.paletteUpperCase(l.palette),function(d){return u("li",{key:d,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":d=="#FFFFFF"},style:{background:d},attrs:{role:"option","aria-label":"Color:"+d,"aria-selected":d===l.pick},on:{click:function(h){return l.handlerClick(d)}}},[u("div",{directives:[{name:"show",rawName:"v-show",value:d===l.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])}),0)])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(75)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(38),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(77),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Material.vue",r.default=h.exports},function(n,r,i){var o=i(76);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("1ff3af73",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-material {
  width: 98px;
  height: 98px;
  padding: 16px;
  font-family: "Roboto";
  position: relative;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
  background-color: #fff;
}
.vc-material .vc-input__input {
  width: 100%;
  margin-top: 12px;
  font-size: 15px;
  color: #333;
  height: 30px;
}
.vc-material .vc-input__label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 11px;
  color: #999;
  text-transform: capitalize;
}
.vc-material-hex {
  border-bottom-width: 2px;
  border-bottom-style: solid;
}
.vc-material-split {
  display: flex;
  margin-right: -10px;
  padding-top: 11px;
}
.vc-material-third {
  flex: 1;
  padding-right: 10px;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[u("ed-in",{staticClass:"vc-material-hex",style:{borderColor:l.colors.hex},attrs:{label:"hex"},on:{change:l.onChange},model:{value:l.colors.hex,callback:function(d){l.$set(l.colors,"hex",d)},expression:"colors.hex"}}),l._v(" "),u("div",{staticClass:"vc-material-split"},[u("div",{staticClass:"vc-material-third"},[u("ed-in",{attrs:{label:"r"},on:{change:l.onChange},model:{value:l.colors.rgba.r,callback:function(d){l.$set(l.colors.rgba,"r",d)},expression:"colors.rgba.r"}})],1),l._v(" "),u("div",{staticClass:"vc-material-third"},[u("ed-in",{attrs:{label:"g"},on:{change:l.onChange},model:{value:l.colors.rgba.g,callback:function(d){l.$set(l.colors.rgba,"g",d)},expression:"colors.rgba.g"}})],1),l._v(" "),u("div",{staticClass:"vc-material-third"},[u("ed-in",{attrs:{label:"b"},on:{change:l.onChange},model:{value:l.colors.rgba.b,callback:function(d){l.$set(l.colors.rgba,"b",d)},expression:"colors.rgba.b"}})],1)])],1)},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(79)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(39),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(114),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Slider.vue",r.default=h.exports},function(n,r,i){var o=i(80);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("7982aa43",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-slider {
  position: relative;
  width: 410px;
}
.vc-slider-hue-warp {
  height: 12px;
  position: relative;
}
.vc-slider-hue-warp .vc-hue-picker {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  transform: translate(-7px, -2px);
  background-color: rgb(248, 248, 248);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}
.vc-slider-swatches {
  display: flex;
  margin-top: 20px;
}
.vc-slider-swatch {
  margin-right: 1px;
  flex: 1;
  width: 20%;
}
.vc-slider-swatch:first-child {
  margin-right: 1px;
}
.vc-slider-swatch:first-child .vc-slider-swatch-picker {
  border-radius: 2px 0px 0px 2px;
}
.vc-slider-swatch:last-child {
  margin-right: 0;
}
.vc-slider-swatch:last-child .vc-slider-swatch-picker {
  border-radius: 0px 2px 2px 0px;
}
.vc-slider-swatch-picker {
  cursor: pointer;
  height: 12px;
}
.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active {
  transform: scaleY(1.8);
  border-radius: 3.6px/2px;
}
.vc-slider-swatch-picker--white {
  box-shadow: inset 0 0 0 1px #ddd;
}
.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white {
  box-shadow: inset 0 0 0 0.6px #ddd;
}
`,""])},function(n,r,i){function o(d){return d&&d.__esModule?d:{default:d}}r.__esModule=!0;var s=i(82),a=o(s),l=i(100),c=o(l),u=typeof c.default=="function"&&typeof a.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof c.default=="function"&&d.constructor===c.default&&d!==c.default.prototype?"symbol":typeof d};r.default=typeof c.default=="function"&&u(a.default)==="symbol"?function(d){return d===void 0?"undefined":u(d)}:function(d){return d&&typeof c.default=="function"&&d.constructor===c.default&&d!==c.default.prototype?"symbol":d===void 0?"undefined":u(d)}},function(n,r,i){n.exports={default:i(83),__esModule:!0}},function(n,r,i){i(84),i(96),n.exports=i(32).f("iterator")},function(n,r,i){var o=i(85)(!0);i(40)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,a=this._t,l=this._i;return l>=a.length?{value:void 0,done:!0}:(s=o(a,l),this._i+=s.length,{value:s,done:!1})})},function(n,r,i){var o=i(23),s=i(24);n.exports=function(a){return function(l,c){var u,d,h=String(s(l)),p=o(c),m=h.length;return p<0||p>=m?a?"":void 0:(u=h.charCodeAt(p),u<55296||u>56319||p+1===m||(d=h.charCodeAt(p+1))<56320||d>57343?a?h.charAt(p):u:a?h.slice(p,p+2):d-56320+(u-55296<<10)+65536)}}},function(n,r,i){var o=i(87);n.exports=function(s,a,l){if(o(s),a===void 0)return s;switch(l){case 1:return function(c){return s.call(a,c)};case 2:return function(c,u){return s.call(a,c,u)};case 3:return function(c,u,d){return s.call(a,c,u,d)}}return function(){return s.apply(a,arguments)}}},function(n,r){n.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},function(n,r,i){var o=i(45),s=i(18),a=i(31),l={};i(7)(l,i(11)("iterator"),function(){return this}),n.exports=function(c,u,d){c.prototype=o(l,{next:s(1,d)}),a(c,u+" Iterator")}},function(n,r,i){var o=i(8),s=i(16),a=i(27);n.exports=i(9)?Object.defineProperties:function(l,c){s(l);for(var u,d=a(c),h=d.length,p=0;h>p;)o.f(l,u=d[p++],c[u]);return l}},function(n,r,i){var o=i(47);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return o(s)=="String"?s.split(""):Object(s)}},function(n,r,i){var o=i(10),s=i(92),a=i(93);n.exports=function(l){return function(c,u,d){var h,p=o(c),m=s(p.length),b=a(d,m);if(l&&u!=u){for(;m>b;)if((h=p[b++])!=h)return!0}else for(;m>b;b++)if((l||b in p)&&p[b]===u)return l||b||0;return!l&&-1}}},function(n,r,i){var o=i(23),s=Math.min;n.exports=function(a){return a>0?s(o(a),9007199254740991):0}},function(n,r,i){var o=i(23),s=Math.max,a=Math.min;n.exports=function(l,c){return l=o(l),l<0?s(l+c,0):a(l,c)}},function(n,r,i){var o=i(4).document;n.exports=o&&o.documentElement},function(n,r,i){var o=i(6),s=i(48),a=i(28)("IE_PROTO"),l=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=s(c),o(c,a)?c[a]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?l:null}},function(n,r,i){i(97);for(var o=i(4),s=i(7),a=i(26),l=i(11)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<c.length;u++){var d=c[u],h=o[d],p=h&&h.prototype;p&&!p[l]&&s(p,l,d),a[d]=a.Array}},function(n,r,i){var o=i(98),s=i(99),a=i(26),l=i(10);n.exports=i(40)(Array,"Array",function(c,u){this._t=l(c),this._i=0,this._k=u},function(){var c=this._t,u=this._k,d=this._i++;return!c||d>=c.length?(this._t=void 0,s(1)):u=="keys"?s(0,d):u=="values"?s(0,c[d]):s(0,[d,c[d]])},"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},function(n,r){n.exports=function(){}},function(n,r){n.exports=function(i,o){return{value:o,done:!!i}}},function(n,r,i){n.exports={default:i(101),__esModule:!0}},function(n,r,i){i(102),i(108),i(109),i(110),n.exports=i(15).Symbol},function(n,r,i){var o=i(4),s=i(6),a=i(9),l=i(41),c=i(44),u=i(103).KEY,d=i(17),h=i(29),p=i(31),m=i(19),b=i(11),A=i(32),v=i(33),D=i(104),C=i(105),S=i(16),O=i(12),k=i(48),Z=i(10),W=i(25),U=i(18),w=i(45),z=i(106),V=i(107),L=i(49),se=i(8),J=i(27),Se=V.f,G=se.f,ie=z.f,ce=o.Symbol,De=o.JSON,Oe=De&&De.stringify,Be=b("_hidden"),ft=b("toPrimitive"),bt={}.propertyIsEnumerable,et=h("symbol-registry"),nt=h("symbols"),rt=h("op-symbols"),Dt=Object.prototype,jt=typeof ce=="function"&&!!L.f,_e=o.QObject,ht=!_e||!_e.prototype||!_e.prototype.findChild,it=a&&d(function(){return w(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a!=7})?function(Q,ne,Ne){var ot=Se(Dt,ne);ot&&delete Dt[ne],G(Q,ne,Ne),ot&&Q!==Dt&&G(Dt,ne,ot)}:G,Bt=function(Q){var ne=nt[Q]=w(ce.prototype);return ne._k=Q,ne},$t=jt&&typeof ce.iterator=="symbol"?function(Q){return typeof Q=="symbol"}:function(Q){return Q instanceof ce},wn=function(Q,ne,Ne){return Q===Dt&&wn(rt,ne,Ne),S(Q),ne=W(ne,!0),S(Ne),s(nt,ne)?(Ne.enumerable?(s(Q,Be)&&Q[Be][ne]&&(Q[Be][ne]=!1),Ne=w(Ne,{enumerable:U(0,!1)})):(s(Q,Be)||G(Q,Be,U(1,{})),Q[Be][ne]=!0),it(Q,ne,Ne)):G(Q,ne,Ne)},Ue=function(Q,ne){S(Q);for(var Ne,ot=D(ne=Z(ne)),Ot=0,fn=ot.length;fn>Ot;)wn(Q,Ne=ot[Ot++],ne[Ne]);return Q},I=function(Q,ne){return ne===void 0?w(Q):Ue(w(Q),ne)},j=function(Q){var ne=bt.call(this,Q=W(Q,!0));return!(this===Dt&&s(nt,Q)&&!s(rt,Q))&&(!(ne||!s(this,Q)||!s(nt,Q)||s(this,Be)&&this[Be][Q])||ne)},M=function(Q,ne){if(Q=Z(Q),ne=W(ne,!0),Q!==Dt||!s(nt,ne)||s(rt,ne)){var Ne=Se(Q,ne);return!Ne||!s(nt,ne)||s(Q,Be)&&Q[Be][ne]||(Ne.enumerable=!0),Ne}},de=function(Q){for(var ne,Ne=ie(Z(Q)),ot=[],Ot=0;Ne.length>Ot;)s(nt,ne=Ne[Ot++])||ne==Be||ne==u||ot.push(ne);return ot},Te=function(Q){for(var ne,Ne=Q===Dt,ot=ie(Ne?rt:Z(Q)),Ot=[],fn=0;ot.length>fn;)!s(nt,ne=ot[fn++])||Ne&&!s(Dt,ne)||Ot.push(nt[ne]);return Ot};jt||(ce=function(){if(this instanceof ce)throw TypeError("Symbol is not a constructor!");var Q=m(arguments.length>0?arguments[0]:void 0),ne=function(Ne){this===Dt&&ne.call(rt,Ne),s(this,Be)&&s(this[Be],Q)&&(this[Be][Q]=!1),it(this,Q,U(1,Ne))};return a&&ht&&it(Dt,Q,{configurable:!0,set:ne}),Bt(Q)},c(ce.prototype,"toString",function(){return this._k}),V.f=M,se.f=wn,i(50).f=z.f=de,i(34).f=j,L.f=Te,a&&!i(14)&&c(Dt,"propertyIsEnumerable",j,!0),A.f=function(Q){return Bt(b(Q))}),l(l.G+l.W+l.F*!jt,{Symbol:ce});for(var H="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),fe=0;H.length>fe;)b(H[fe++]);for(var Ie=J(b.store),lt=0;Ie.length>lt;)v(Ie[lt++]);l(l.S+l.F*!jt,"Symbol",{for:function(Q){return s(et,Q+="")?et[Q]:et[Q]=ce(Q)},keyFor:function(Q){if(!$t(Q))throw TypeError(Q+" is not a symbol!");for(var ne in et)if(et[ne]===Q)return ne},useSetter:function(){ht=!0},useSimple:function(){ht=!1}}),l(l.S+l.F*!jt,"Object",{create:I,defineProperty:wn,defineProperties:Ue,getOwnPropertyDescriptor:M,getOwnPropertyNames:de,getOwnPropertySymbols:Te});var St=d(function(){L.f(1)});l(l.S+l.F*St,"Object",{getOwnPropertySymbols:function(Q){return L.f(k(Q))}}),De&&l(l.S+l.F*(!jt||d(function(){var Q=ce();return Oe([Q])!="[null]"||Oe({a:Q})!="{}"||Oe(Object(Q))!="{}"})),"JSON",{stringify:function(Q){for(var ne,Ne,ot=[Q],Ot=1;arguments.length>Ot;)ot.push(arguments[Ot++]);if(Ne=ne=ot[1],(O(ne)||Q!==void 0)&&!$t(Q))return C(ne)||(ne=function(fn,nn){if(typeof Ne=="function"&&(nn=Ne.call(this,fn,nn)),!$t(nn))return nn}),ot[1]=ne,Oe.apply(De,ot)}}),ce.prototype[ft]||i(7)(ce.prototype,ft,ce.prototype.valueOf),p(ce,"Symbol"),p(Math,"Math",!0),p(o.JSON,"JSON",!0)},function(n,r,i){var o=i(19)("meta"),s=i(12),a=i(6),l=i(8).f,c=0,u=Object.isExtensible||function(){return!0},d=!i(17)(function(){return u(Object.preventExtensions({}))}),h=function(v){l(v,o,{value:{i:"O"+ ++c,w:{}}})},p=function(v,D){if(!s(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!a(v,o)){if(!u(v))return"F";if(!D)return"E";h(v)}return v[o].i},m=function(v,D){if(!a(v,o)){if(!u(v))return!0;if(!D)return!1;h(v)}return v[o].w},b=function(v){return d&&A.NEED&&u(v)&&!a(v,o)&&h(v),v},A=n.exports={KEY:o,NEED:!1,fastKey:p,getWeak:m,onFreeze:b}},function(n,r,i){var o=i(27),s=i(49),a=i(34);n.exports=function(l){var c=o(l),u=s.f;if(u)for(var d,h=u(l),p=a.f,m=0;h.length>m;)p.call(l,d=h[m++])&&c.push(d);return c}},function(n,r,i){var o=i(47);n.exports=Array.isArray||function(s){return o(s)=="Array"}},function(n,r,i){var o=i(10),s=i(50).f,a={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(u){try{return s(u)}catch{return l.slice()}};n.exports.f=function(u){return l&&a.call(u)=="[object Window]"?c(u):s(o(u))}},function(n,r,i){var o=i(34),s=i(18),a=i(10),l=i(25),c=i(6),u=i(42),d=Object.getOwnPropertyDescriptor;r.f=i(9)?d:function(h,p){if(h=a(h),p=l(p,!0),u)try{return d(h,p)}catch{}if(c(h,p))return s(!o.f.call(h,p),h[p])}},function(n,r){},function(n,r,i){i(33)("asyncIterator")},function(n,r,i){i(33)("observable")},function(n,r,i){var o=i(112);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("7c5f1a1c",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-hue {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-radius: 2px;
}
.vc-hue--horizontal {
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.vc-hue--vertical {
  background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.vc-hue-container {
  cursor: pointer;
  margin: 0 2px;
  position: relative;
  height: 100%;
}
.vc-hue-pointer {
  z-index: 2;
  position: absolute;
}
.vc-hue-picker {
  cursor: pointer;
  margin-top: 1px;
  width: 4px;
  border-radius: 1px;
  height: 8px;
  box-shadow: 0 0 2px rgba(0, 0, 0, .6);
  background: #fff;
  transform: translateX(-2px) ;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{class:["vc-hue",l.directionClass]},[u("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":l.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:l.handleMouseDown,touchmove:l.handleChange,touchstart:l.handleChange}},[u("div",{staticClass:"vc-hue-pointer",style:{top:l.pointerTop,left:l.pointerLeft},attrs:{role:"presentation"}},[u("div",{staticClass:"vc-hue-picker"})])])])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[u("div",{staticClass:"vc-slider-hue-warp"},[u("hue",{on:{change:l.hueChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1),l._v(" "),u("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},l._l(l.normalizedSwatches,function(d,h){return u("div",{key:h,staticClass:"vc-slider-swatch",attrs:{"data-index":h,"aria-label":"color:"+l.colors.hex,role:"button"},on:{click:function(p){return l.handleSwClick(h,d)}}},[u("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":l.isActive(d,h),"vc-slider-swatch-picker--white":d.l===1},style:{background:"hsl("+l.colors.hsl.h+", "+100*d.s+"%, "+100*d.l+"%)"}})])}),0)])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(116)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(52),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(119),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Swatches.vue",r.default=h.exports},function(n,r,i){var o=i(117);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("10f839a2",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-swatches {
  width: 320px;
  height: 240px;
  overflow-y: scroll;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
}
.vc-swatches-box {
  padding: 16px 0 6px 16px;
  overflow: hidden;
}
.vc-swatches-color-group {
  padding-bottom: 10px;
  width: 40px;
  float: left;
  margin-right: 10px;
}
.vc-swatches-color-it {
  box-sizing: border-box;
  width: 40px;
  height: 24px;
  cursor: pointer;
  background: #880e4f;
  margin-bottom: 1px;
  overflow: hidden;
  -ms-border-radius: 2px 2px 0 0;
  -moz-border-radius: 2px 2px 0 0;
  -o-border-radius: 2px 2px 0 0;
  -webkit-border-radius: 2px 2px 0 0;
  border-radius: 2px 2px 0 0;
}
.vc-swatches-color--white {
  border: 1px solid #DDD;
}
.vc-swatches-pick {
  fill: rgb(255, 255, 255);
  margin-left: 8px;
  display: block;
}
.vc-swatches-color--white .vc-swatches-pick {
  fill: rgb(51, 51, 51);
}
`,""])},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),i.d(r,"red",function(){return o}),i.d(r,"pink",function(){return s}),i.d(r,"purple",function(){return a}),i.d(r,"deepPurple",function(){return l}),i.d(r,"indigo",function(){return c}),i.d(r,"blue",function(){return u}),i.d(r,"lightBlue",function(){return d}),i.d(r,"cyan",function(){return h}),i.d(r,"teal",function(){return p}),i.d(r,"green",function(){return m}),i.d(r,"lightGreen",function(){return b}),i.d(r,"lime",function(){return A}),i.d(r,"yellow",function(){return v}),i.d(r,"amber",function(){return D}),i.d(r,"orange",function(){return C}),i.d(r,"deepOrange",function(){return S}),i.d(r,"brown",function(){return O}),i.d(r,"grey",function(){return k}),i.d(r,"blueGrey",function(){return Z}),i.d(r,"darkText",function(){return W}),i.d(r,"lightText",function(){return U}),i.d(r,"darkIcons",function(){return w}),i.d(r,"lightIcons",function(){return z}),i.d(r,"white",function(){return V}),i.d(r,"black",function(){return L});var o={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},s={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},a={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},l={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},c={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},u={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},d={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},h={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},p={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},m={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},b={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},A={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},v={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},D={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},C={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},S={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},O={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},k={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},Z={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},W={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},U={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},w={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},z={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},V="#ffffff",L="#000000";r.default={red:o,pink:s,purple:a,deepPurple:l,indigo:c,blue:u,lightBlue:d,cyan:h,teal:p,green:m,lightGreen:b,lime:A,yellow:v,amber:D,orange:C,deepOrange:S,brown:O,grey:k,blueGrey:Z,darkText:W,lightText:U,darkIcons:w,lightIcons:z,white:V,black:L}},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":l.pick}},[u("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},l._l(l.palette,function(d,h){return u("div",{key:h,staticClass:"vc-swatches-color-group"},l._l(d,function(p){return u("div",{key:p,class:["vc-swatches-color-it",{"vc-swatches-color--white":p==="#FFFFFF"}],style:{background:p},attrs:{role:"option","aria-label":"Color:"+p,"aria-selected":l.equal(p),"data-color":p},on:{click:function(m){return l.handlerClick(p)}}},[u("div",{directives:[{name:"show",rawName:"v-show",value:l.equal(p),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[u("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[u("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])}),0)}),0)])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(121)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(53),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(134),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Photoshop.vue",r.default=h.exports},function(n,r,i){var o=i(122);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("080365d4",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-photoshop {
  background: #DCDCDC;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15);
  box-sizing: initial;
  width: 513px;
  font-family: Roboto;
}
.vc-photoshop__disable-fields {
  width: 390px;
}
.vc-ps-head {
  background-image: linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%);
  border-bottom: 1px solid #B1B1B1;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02);
  height: 23px;
  line-height: 24px;
  border-radius: 4px 4px 0 0;
  font-size: 13px;
  color: #4D4D4D;
  text-align: center;
}
.vc-ps-body {
  padding: 15px;
  display: flex;
}
.vc-ps-saturation-wrap {
  width: 256px;
  height: 256px;
  position: relative;
  border: 2px solid #B3B3B3;
  border-bottom: 2px solid #F0F0F0;
  overflow: hidden;
}
.vc-ps-saturation-wrap .vc-saturation-circle {
  width: 12px;
  height: 12px;
}
.vc-ps-hue-wrap {
  position: relative;
  height: 256px;
  width: 19px;
  margin-left: 10px;
  border: 2px solid #B3B3B3;
  border-bottom: 2px solid #F0F0F0;
}
.vc-ps-hue-pointer {
  position: relative;
}
.vc-ps-hue-pointer--left,
.vc-ps-hue-pointer--right {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #555;
}
.vc-ps-hue-pointer--left:after,
.vc-ps-hue-pointer--right:after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #fff;
  position: absolute;
  top: 1px;
  left: 1px;
  transform: translate(-8px, -5px);
}
.vc-ps-hue-pointer--left {
  transform: translate(-13px, -4px);
}
.vc-ps-hue-pointer--right {
  transform: translate(20px, -4px) rotate(180deg);
}
.vc-ps-controls {
  width: 180px;
  margin-left: 10px;
  display: flex;
}
.vc-ps-controls__disable-fields {
  width: auto;
}
.vc-ps-actions {
  margin-left: 20px;
  flex: 1;
}
.vc-ps-ac-btn {
  cursor: pointer;
  background-image: linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%);
  border: 1px solid #878787;
  border-radius: 2px;
  height: 20px;
  box-shadow: 0 1px 0 0 #EAEAEA;
  font-size: 14px;
  color: #000;
  line-height: 20px;
  text-align: center;
  margin-bottom: 10px;
}
.vc-ps-previews {
  width: 60px;
}
.vc-ps-previews__swatches {
  border: 1px solid #B3B3B3;
  border-bottom: 1px solid #F0F0F0;
  margin-bottom: 2px;
  margin-top: 1px;
}
.vc-ps-previews__pr-color {
  height: 34px;
  box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;
}
.vc-ps-previews__label {
  font-size: 14px;
  color: #000;
  text-align: center;
}
.vc-ps-fields {
  padding-top: 5px;
  padding-bottom: 9px;
  width: 80px;
  position: relative;
}
.vc-ps-fields .vc-input__input {
  margin-left: 40%;
  width: 40%;
  height: 18px;
  border: 1px solid #888888;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;
  margin-bottom: 5px;
  font-size: 13px;
  padding-left: 3px;
  margin-right: 10px;
}
.vc-ps-fields .vc-input__label, .vc-ps-fields .vc-input__desc {
  top: 0;
  text-transform: uppercase;
  font-size: 13px;
  height: 18px;
  line-height: 22px;
  position: absolute;
}
.vc-ps-fields .vc-input__label {
  left: 0;
  width: 34px;
}
.vc-ps-fields .vc-input__desc {
  right: 0;
  width: 0;
}
.vc-ps-fields__divider {
  height: 5px;
}
.vc-ps-fields__hex .vc-input__input {
  margin-left: 20%;
  width: 80%;
  height: 18px;
  border: 1px solid #888888;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;
  margin-bottom: 6px;
  font-size: 13px;
  padding-left: 3px;
}
.vc-ps-fields__hex .vc-input__label {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  text-transform: uppercase;
  font-size: 13px;
  height: 18px;
  line-height: 22px;
}
`,""])},function(n,r,i){var o=i(124);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("b5380e52",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-saturation,
.vc-saturation--white,
.vc-saturation--black {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.vc-saturation--white {
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.vc-saturation--black {
  background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
.vc-saturation-pointer {
  cursor: pointer;
  position: absolute;
}
.vc-saturation-circle {
  cursor: head;
  width: 4px;
  height: 4px;
  box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);
  border-radius: 50%;
  transform: translate(-2px, -2px);
}
`,""])},function(n,r){function i(o,s,a){return s<a?o<s?s:o>a?a:o:o<a?a:o>s?s:o}n.exports=i},function(n,r){function i(w,z,V){function L(it){var Bt=Be,$t=ft;return Be=ft=void 0,Dt=it,et=w.apply($t,Bt)}function se(it){return Dt=it,nt=setTimeout(G,z),jt?L(it):et}function J(it){var Bt=it-rt,$t=it-Dt,wn=z-Bt;return _e?W(wn,bt-$t):wn}function Se(it){var Bt=it-rt,$t=it-Dt;return rt===void 0||Bt>=z||Bt<0||_e&&$t>=bt}function G(){var it=U();if(Se(it))return ie(it);nt=setTimeout(G,J(it))}function ie(it){return nt=void 0,ht&&Be?L(it):(Be=ft=void 0,et)}function ce(){nt!==void 0&&clearTimeout(nt),Dt=0,Be=rt=ft=nt=void 0}function De(){return nt===void 0?et:ie(U())}function Oe(){var it=U(),Bt=Se(it);if(Be=arguments,ft=this,rt=it,Bt){if(nt===void 0)return se(rt);if(_e)return nt=setTimeout(G,z),L(rt)}return nt===void 0&&(nt=setTimeout(G,z)),et}var Be,ft,bt,et,nt,rt,Dt=0,jt=!1,_e=!1,ht=!0;if(typeof w!="function")throw new TypeError(u);return z=c(z)||0,s(V)&&(jt=!!V.leading,_e="maxWait"in V,bt=_e?Z(c(V.maxWait)||0,z):bt,ht="trailing"in V?!!V.trailing:ht),Oe.cancel=ce,Oe.flush=De,Oe}function o(w,z,V){var L=!0,se=!0;if(typeof w!="function")throw new TypeError(u);return s(V)&&(L="leading"in V?!!V.leading:L,se="trailing"in V?!!V.trailing:se),i(w,z,{leading:L,maxWait:z,trailing:se})}function s(w){var z=typeof w;return!!w&&(z=="object"||z=="function")}function a(w){return!!w&&typeof w=="object"}function l(w){return typeof w=="symbol"||a(w)&&k.call(w)==h}function c(w){if(typeof w=="number")return w;if(l(w))return d;if(s(w)){var z=typeof w.valueOf=="function"?w.valueOf():w;w=s(z)?z+"":z}if(typeof w!="string")return w===0?w:+w;w=w.replace(p,"");var V=b.test(w);return V||A.test(w)?v(w.slice(2),V?2:8):m.test(w)?d:+w}var u="Expected a function",d=NaN,h="[object Symbol]",p=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,A=/^0o[0-7]+$/i,v=parseInt,D=typeof hs=="object"&&hs&&hs.Object===Object&&hs,C=typeof self=="object"&&self&&self.Object===Object&&self,S=D||C||Function("return this")(),O=Object.prototype,k=O.toString,Z=Math.max,W=Math.min,U=function(){return S.Date.now()};n.exports=o},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{ref:"container",staticClass:"vc-saturation",style:{background:l.bgColor},on:{mousedown:l.handleMouseDown,touchmove:l.handleChange,touchstart:l.handleChange}},[u("div",{staticClass:"vc-saturation--white"}),l._v(" "),u("div",{staticClass:"vc-saturation--black"}),l._v(" "),u("div",{staticClass:"vc-saturation-pointer",style:{top:l.pointerTop,left:l.pointerLeft}},[u("div",{staticClass:"vc-saturation-circle"})])])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){var o=i(129);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("4dc1b086",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-alpha {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}
.vc-alpha-checkboard-wrap {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  overflow: hidden;
}
.vc-alpha-gradient {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}
.vc-alpha-container {
  cursor: pointer;
  position: relative;
  z-index: 2;
  height: 100%;
  margin: 0 3px;
}
.vc-alpha-pointer {
  z-index: 2;
  position: absolute;
}
.vc-alpha-picker {
  cursor: pointer;
  width: 4px;
  border-radius: 1px;
  height: 8px;
  box-shadow: 0 0 2px rgba(0, 0, 0, .6);
  background: #fff;
  margin-top: 1px;
  transform: translateX(-2px);
}
`,""])},function(n,r,i){var o=i(131);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("7e15c05b",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-checkerboard {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background-size: contain;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement;return(l._self._c||c)("div",{staticClass:"vc-checkerboard",style:l.bgStyle})},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-alpha"},[u("div",{staticClass:"vc-alpha-checkboard-wrap"},[u("checkboard")],1),l._v(" "),u("div",{staticClass:"vc-alpha-gradient",style:{background:l.gradientColor}}),l._v(" "),u("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:l.handleMouseDown,touchmove:l.handleChange,touchstart:l.handleChange}},[u("div",{staticClass:"vc-alpha-pointer",style:{left:100*l.colors.a+"%"}},[u("div",{staticClass:"vc-alpha-picker"})])])])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{class:["vc-photoshop",l.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[u("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[l._v(l._s(l.head))]),l._v(" "),u("div",{staticClass:"vc-ps-body"},[u("div",{staticClass:"vc-ps-saturation-wrap"},[u("saturation",{on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1),l._v(" "),u("div",{staticClass:"vc-ps-hue-wrap"},[u("hue",{attrs:{direction:"vertical"},on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}},[u("div",{staticClass:"vc-ps-hue-pointer"},[u("i",{staticClass:"vc-ps-hue-pointer--left"}),u("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),l._v(" "),u("div",{class:["vc-ps-controls",l.disableFields?"vc-ps-controls__disable-fields":""]},[u("div",{staticClass:"vc-ps-previews"},[u("div",{staticClass:"vc-ps-previews__label"},[l._v(l._s(l.newLabel))]),l._v(" "),u("div",{staticClass:"vc-ps-previews__swatches"},[u("div",{staticClass:"vc-ps-previews__pr-color",style:{background:l.colors.hex},attrs:{"aria-label":"New color is "+l.colors.hex}}),l._v(" "),u("div",{staticClass:"vc-ps-previews__pr-color",style:{background:l.currentColor},attrs:{"aria-label":"Current color is "+l.currentColor},on:{click:l.clickCurrentColor}})]),l._v(" "),u("div",{staticClass:"vc-ps-previews__label"},[l._v(l._s(l.currentLabel))])]),l._v(" "),l.disableFields?l._e():u("div",{staticClass:"vc-ps-actions"},[u("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":l.acceptLabel},on:{click:l.handleAccept}},[l._v(l._s(l.acceptLabel))]),l._v(" "),u("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":l.cancelLabel},on:{click:l.handleCancel}},[l._v(l._s(l.cancelLabel))]),l._v(" "),u("div",{staticClass:"vc-ps-fields"},[u("ed-in",{attrs:{label:"h",desc:"°",value:l.hsv.h},on:{change:l.inputChange}}),l._v(" "),u("ed-in",{attrs:{label:"s",desc:"%",value:l.hsv.s,max:100},on:{change:l.inputChange}}),l._v(" "),u("ed-in",{attrs:{label:"v",desc:"%",value:l.hsv.v,max:100},on:{change:l.inputChange}}),l._v(" "),u("div",{staticClass:"vc-ps-fields__divider"}),l._v(" "),u("ed-in",{attrs:{label:"r",value:l.colors.rgba.r},on:{change:l.inputChange}}),l._v(" "),u("ed-in",{attrs:{label:"g",value:l.colors.rgba.g},on:{change:l.inputChange}}),l._v(" "),u("ed-in",{attrs:{label:"b",value:l.colors.rgba.b},on:{change:l.inputChange}}),l._v(" "),u("div",{staticClass:"vc-ps-fields__divider"}),l._v(" "),u("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:l.hex},on:{change:l.inputChange}})],1),l._v(" "),l.hasResetButton?u("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:l.handleReset}},[l._v(l._s(l.resetLabel))]):l._e()])])])])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(136)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(57),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(138),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Sketch.vue",r.default=h.exports},function(n,r,i){var o=i(137);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("612c6604",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-sketch {
  position: relative;
  width: 200px;
  padding: 10px 10px 0;
  box-sizing: initial;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .15);
}
.vc-sketch-saturation-wrap {
  width: 100%;
  padding-bottom: 75%;
  position: relative;
  overflow: hidden;
}
.vc-sketch-controls {
  display: flex;
}
.vc-sketch-sliders {
  padding: 4px 0;
  flex: 1;
}
.vc-sketch-sliders .vc-hue,
.vc-sketch-sliders .vc-alpha-gradient {
  border-radius: 2px;
}
.vc-sketch-hue-wrap {
  position: relative;
  height: 10px;
}
.vc-sketch-alpha-wrap {
  position: relative;
  height: 10px;
  margin-top: 4px;
  overflow: hidden;
}
.vc-sketch-color-wrap {
  width: 24px;
  height: 24px;
  position: relative;
  margin-top: 4px;
  margin-left: 4px;
  border-radius: 3px;
}
.vc-sketch-active-color {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);
  z-index: 2;
}
.vc-sketch-color-wrap .vc-checkerboard {
  background-size: auto;
}
.vc-sketch-field {
  display: flex;
  padding-top: 4px;
}
.vc-sketch-field .vc-input__input {
  width: 90%;
  padding: 4px 0 3px 10%;
  border: none;
  box-shadow: inset 0 0 0 1px #ccc;
  font-size: 10px;
}
.vc-sketch-field .vc-input__label {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #222;
  padding-top: 3px;
  padding-bottom: 4px;
  text-transform: capitalize;
}
.vc-sketch-field--single {
  flex: 1;
  padding-left: 6px;
}
.vc-sketch-field--double {
  flex: 2;
}
.vc-sketch-presets {
  margin-right: -10px;
  margin-left: -10px;
  padding-left: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.vc-sketch-presets-color {
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  display: inline-block;
  margin: 0 10px 10px 0;
  vertical-align: top;
  cursor: pointer;
  width: 16px;
  height: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.vc-sketch-presets-color .vc-checkerboard {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
  border-radius: 3px;
}
.vc-sketch__disable-alpha .vc-sketch-color-wrap {
  height: 10px;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{class:["vc-sketch",l.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[u("div",{staticClass:"vc-sketch-saturation-wrap"},[u("saturation",{on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1),l._v(" "),u("div",{staticClass:"vc-sketch-controls"},[u("div",{staticClass:"vc-sketch-sliders"},[u("div",{staticClass:"vc-sketch-hue-wrap"},[u("hue",{on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1),l._v(" "),l.disableAlpha?l._e():u("div",{staticClass:"vc-sketch-alpha-wrap"},[u("alpha",{on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1)]),l._v(" "),u("div",{staticClass:"vc-sketch-color-wrap"},[u("div",{staticClass:"vc-sketch-active-color",style:{background:l.activeColor},attrs:{"aria-label":"Current color is "+l.activeColor}}),l._v(" "),u("checkboard")],1)]),l._v(" "),l.disableFields?l._e():u("div",{staticClass:"vc-sketch-field"},[u("div",{staticClass:"vc-sketch-field--double"},[u("ed-in",{attrs:{label:"hex",value:l.hex},on:{change:l.inputChange}})],1),l._v(" "),u("div",{staticClass:"vc-sketch-field--single"},[u("ed-in",{attrs:{label:"r",value:l.colors.rgba.r},on:{change:l.inputChange}})],1),l._v(" "),u("div",{staticClass:"vc-sketch-field--single"},[u("ed-in",{attrs:{label:"g",value:l.colors.rgba.g},on:{change:l.inputChange}})],1),l._v(" "),u("div",{staticClass:"vc-sketch-field--single"},[u("ed-in",{attrs:{label:"b",value:l.colors.rgba.b},on:{change:l.inputChange}})],1),l._v(" "),l.disableAlpha?l._e():u("div",{staticClass:"vc-sketch-field--single"},[u("ed-in",{attrs:{label:"a",value:l.colors.a,"arrow-offset":.01,max:1},on:{change:l.inputChange}})],1)]),l._v(" "),u("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[l._l(l.presetColors,function(d){return[l.isTransparent(d)?u("div",{key:d,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+d},on:{click:function(h){return l.handlePreset(d)}}},[u("checkboard")],1):u("div",{key:d,staticClass:"vc-sketch-presets-color",style:{background:d},attrs:{"aria-label":"Color:"+d},on:{click:function(h){return l.handlePreset(d)}}})]})],2)])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(140)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(58),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(142),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Chrome.vue",r.default=h.exports},function(n,r,i){var o=i(141);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("1cd16048",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-chrome {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3);
  box-sizing: initial;
  width: 225px;
  font-family: Menlo;
  background-color: #fff;
}
.vc-chrome-controls {
  display: flex;
}
.vc-chrome-color-wrap {
  position: relative;
  width: 36px;
}
.vc-chrome-active-color {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
  z-index: 1;
}
.vc-chrome-color-wrap .vc-checkerboard {
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-size: auto;
}
.vc-chrome-sliders {
  flex: 1;
}
.vc-chrome-fields-wrap {
  display: flex;
  padding-top: 16px;
}
.vc-chrome-fields {
  display: flex;
  margin-left: -6px;
  flex: 1;
}
.vc-chrome-field {
  padding-left: 6px;
  width: 100%;
}
.vc-chrome-toggle-btn {
  width: 32px;
  text-align: right;
  position: relative;
}
.vc-chrome-toggle-icon {
  margin-right: -4px;
  margin-top: 12px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.vc-chrome-toggle-icon-highlight {
  position: absolute;
  width: 24px;
  height: 28px;
  background: #eee;
  border-radius: 4px;
  top: 10px;
  left: 12px;
}
.vc-chrome-hue-wrap {
  position: relative;
  height: 10px;
  margin-bottom: 8px;
}
.vc-chrome-alpha-wrap {
  position: relative;
  height: 10px;
}
.vc-chrome-hue-wrap .vc-hue {
  border-radius: 2px;
}
.vc-chrome-alpha-wrap .vc-alpha-gradient {
  border-radius: 2px;
}
.vc-chrome-hue-wrap .vc-hue-picker, .vc-chrome-alpha-wrap .vc-alpha-picker {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  transform: translate(-6px, -2px);
  background-color: rgb(248, 248, 248);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}
.vc-chrome-body {
  padding: 16px 16px 12px;
  background-color: #fff;
}
.vc-chrome-saturation-wrap {
  width: 100%;
  padding-bottom: 55%;
  position: relative;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
}
.vc-chrome-saturation-wrap .vc-saturation-circle {
  width: 12px;
  height: 12px;
}
.vc-chrome-fields .vc-input__input {
  font-size: 11px;
  color: #333;
  width: 100%;
  border-radius: 2px;
  border: none;
  box-shadow: inset 0 0 0 1px #dadada;
  height: 21px;
  text-align: center;
}
.vc-chrome-fields .vc-input__label {
  text-transform: uppercase;
  font-size: 11px;
  line-height: 11px;
  color: #969696;
  text-align: center;
  display: block;
  margin-top: 12px;
}
.vc-chrome__disable-alpha .vc-chrome-active-color {
  width: 18px;
  height: 18px;
}
.vc-chrome__disable-alpha .vc-chrome-color-wrap {
  width: 30px;
}
.vc-chrome__disable-alpha .vc-chrome-hue-wrap {
  margin-top: 4px;
  margin-bottom: 4px;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{class:["vc-chrome",l.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[u("div",{staticClass:"vc-chrome-saturation-wrap"},[u("saturation",{on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1),l._v(" "),u("div",{staticClass:"vc-chrome-body"},[u("div",{staticClass:"vc-chrome-controls"},[u("div",{staticClass:"vc-chrome-color-wrap"},[u("div",{staticClass:"vc-chrome-active-color",style:{background:l.activeColor},attrs:{"aria-label":"current color is "+l.colors.hex}}),l._v(" "),l.disableAlpha?l._e():u("checkboard")],1),l._v(" "),u("div",{staticClass:"vc-chrome-sliders"},[u("div",{staticClass:"vc-chrome-hue-wrap"},[u("hue",{on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1),l._v(" "),l.disableAlpha?l._e():u("div",{staticClass:"vc-chrome-alpha-wrap"},[u("alpha",{on:{change:l.childChange},model:{value:l.colors,callback:function(d){l.colors=d},expression:"colors"}})],1)])]),l._v(" "),l.disableFields?l._e():u("div",{staticClass:"vc-chrome-fields-wrap"},[u("div",{directives:[{name:"show",rawName:"v-show",value:l.fieldsIndex===0,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[u("div",{staticClass:"vc-chrome-field"},[l.hasAlpha?l._e():u("ed-in",{attrs:{label:"hex",value:l.colors.hex},on:{change:l.inputChange}}),l._v(" "),l.hasAlpha?u("ed-in",{attrs:{label:"hex",value:l.colors.hex8},on:{change:l.inputChange}}):l._e()],1)]),l._v(" "),u("div",{directives:[{name:"show",rawName:"v-show",value:l.fieldsIndex===1,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"r",value:l.colors.rgba.r},on:{change:l.inputChange}})],1),l._v(" "),u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"g",value:l.colors.rgba.g},on:{change:l.inputChange}})],1),l._v(" "),u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"b",value:l.colors.rgba.b},on:{change:l.inputChange}})],1),l._v(" "),l.disableAlpha?l._e():u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"a",value:l.colors.a,"arrow-offset":.01,max:1},on:{change:l.inputChange}})],1)]),l._v(" "),u("div",{directives:[{name:"show",rawName:"v-show",value:l.fieldsIndex===2,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"h",value:l.hsl.h},on:{change:l.inputChange}})],1),l._v(" "),u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"s",value:l.hsl.s},on:{change:l.inputChange}})],1),l._v(" "),u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"l",value:l.hsl.l},on:{change:l.inputChange}})],1),l._v(" "),l.disableAlpha?l._e():u("div",{staticClass:"vc-chrome-field"},[u("ed-in",{attrs:{label:"a",value:l.colors.a,"arrow-offset":.01,max:1},on:{change:l.inputChange}})],1)]),l._v(" "),u("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:l.toggleViews}},[u("div",{staticClass:"vc-chrome-toggle-icon"},[u("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:l.showHighlight,mouseenter:l.showHighlight,mouseout:l.hideHighlight}},[u("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),l._v(" "),u("div",{directives:[{name:"show",rawName:"v-show",value:l.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a},function(n,r,i){function o(p){i(144)}Object.defineProperty(r,"__esModule",{value:!0});var s=i(59),a=i.n(s);for(var l in s)l!=="default"&&function(p){i.d(r,p,function(){return s[p]})}(l);var c=i(146),u=i(2),d=o,h=u(a.a,c.a,!1,d,null,null);h.options.__file="src/components/Twitter.vue",r.default=h.exports},function(n,r,i){var o=i(145);typeof o=="string"&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals),i(1)("669a48a5",o,!1,{})},function(n,r,i){r=n.exports=i(0)(!1),r.push([n.i,`
.vc-twitter {
  background: #fff;
  border: 0 solid rgba(0,0,0,0.25);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  border-radius: 4px;
  position: relative;
}
.vc-twitter-triangle {
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 9px 10px 9px;
  border-color: transparent transparent #fff transparent;
  position: absolute;
}
.vc-twitter-triangle-shadow {
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 9px 10px 9px;
  border-color: transparent transparent rgba(0, 0, 0, .1) transparent;
  position: absolute;
}
.vc-twitter-body {
  padding: 15px 9px 9px 15px;
}
.vc-twitter .vc-editable-input {
  position: relative;
}
.vc-twitter .vc-editable-input input {
  width: 100px;
  font-size: 14px;
  color: #666;
  border: 0px;
  outline: none;
  height: 28px;
  box-shadow: inset 0 0 0 1px #F0F0F0;
  box-sizing: content-box;
  border-radius: 0 4px 4px 0;
  float: left;
  padding: 1px;
  padding-left: 8px;
}
.vc-twitter .vc-editable-input span {
  display: none;
}
.vc-twitter-hash {
  background: #F0F0F0;
  height: 30px;
  width: 30px;
  border-radius: 4px 0 0 4px;
  float: left;
  color: #98A1A4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-twitter-swatch {
  width: 30px;
  height: 30px;
  float: left;
  border-radius: 4px;
  margin: 0 6px 6px 0;
  cursor: pointer;
  position: relative;
  outline: none;
}
.vc-twitter-clear {
  clear: both;
}
.vc-twitter-hide-triangle .vc-twitter-triangle {
  display: none;
}
.vc-twitter-hide-triangle .vc-twitter-triangle-shadow {
  display: none;
}
.vc-twitter-top-left-triangle .vc-twitter-triangle{
  top: -10px;
  left: 12px;
}
.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{
  top: -11px;
  left: 12px;
}
.vc-twitter-top-right-triangle .vc-twitter-triangle{
  top: -10px;
  right: 12px;
}
.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{
  top: -11px;
  right: 12px;
}
`,""])},function(n,r,i){var o=function(){var l=this,c=l.$createElement,u=l._self._c||c;return u("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":l.triangle==="hide","vc-twitter-top-left-triangle ":l.triangle==="top-left","vc-twitter-top-right-triangle ":l.triangle==="top-right"},style:{width:typeof l.width=="number"?l.width+"px":l.width}},[u("div",{staticClass:"vc-twitter-triangle-shadow"}),l._v(" "),u("div",{staticClass:"vc-twitter-triangle"}),l._v(" "),u("div",{staticClass:"vc-twitter-body"},[l._l(l.defaultColors,function(d,h){return u("span",{key:h,staticClass:"vc-twitter-swatch",style:{background:d,boxShadow:"0 0 4px "+(l.equal(d)?d:"transparent")},on:{click:function(p){return l.handlerClick(d)}}})}),l._v(" "),u("div",{staticClass:"vc-twitter-hash"},[l._v("#")]),l._v(" "),u("editable-input",{attrs:{label:"#",value:l.hex},on:{change:l.inputChange}}),l._v(" "),u("div",{staticClass:"vc-twitter-clear"})],2)])},s=[];o._withStripped=!0;var a={render:o,staticRenderFns:s};r.a=a}])})}(yb)),yb.exports}var dJ=uJ();Et(Q4);const h2=/^#([a-f0-9]{3}|[a-f0-9]{6})$/i,hJ={name:"NcColorPicker",components:{Chrome:dJ.Chrome,NcButton:_i,NcIconSvgWrapper:Tu,NcPopover:hm},model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:String,default:void 0},modelValue:{type:String,default:void 0},advancedFields:{type:Boolean,default:!1},container:{type:[String,Object,Element,Boolean],default:"body"},open:{type:Boolean,default:!1},palette:{type:Array,default:()=>[...rW],validator:e=>e.every(t=>typeof t=="string"&&h2.test(t)||typeof t=="object"&&t.color&&h2.test(t.color))},paletteOnly:{type:Boolean,default:!1}},emits:["close","closed","submit","update:open","update:modelValue","update:model-value","input","update:value"],setup(e,{emit:t}){const n=Po("value","update:value",!0),r=sN(e,"open",t);return{mdiArrowLeft:XB,mdiCheck:iN,mdiDotsHorizontal:JB,model:n,modelOpen:r}},data(){return{currentColor:this.model,advanced:!1,ariaBack:me("Back"),ariaMore:me("More options")}},computed:{normalizedPalette(){return this.palette.map(e=>({color:typeof e=="object"?e.color:e,name:typeof e=="object"&&e.name?e.name:me("A color with a HEX value {hex}",{hex:e.color})}))},uid(){return ro()},contrastColor(){return this.calculateLuma(this.currentColor)>.5?"#000000":"#FFFFFF"}},watch:{model(e){this.currentColor=e}},methods:{t:me,handleConfirm(e){this.$emit("submit",this.currentColor),e(),this.advanced=!1},handleClose(){this.$emit("close"),this.$emit("closed"),this.$emit("update:open",!1)},handleBack(){this.advanced=!1},handleMoreSettings(){this.advanced=!0},pickColor(e){typeof e!="string"&&(e=this.currentColor.hex),this.currentColor=e,this.model=e,this.$emit("input",e)},calculateLuma(e){const[t,n,r]=this.hexToRGB(e);return(.2126*t+.7152*n+.0722*r)/255},hexToRGB(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]}}};var pJ=function(){var e=this,t=e._self._c;return t("NcPopover",e._g(e._b({attrs:{shown:e.modelOpen,container:e.container,"popup-role":"dialog"},on:{"update:shown":function(n){e.modelOpen=n},"apply-hide":e.handleClose},scopedSlots:e._u([{key:"trigger",fn:function(n){return[e._t("default",null,null,n)]}},{key:"default",fn:function(n){return[t("div",{staticClass:"color-picker",class:{"color-picker--advanced-fields":e.advanced&&e.advancedFields},attrs:{role:"dialog","aria-modal":"true","aria-label":e.t("Color picker")}},[t("Transition",{attrs:{name:"slide",mode:"out-in"}},[e.advanced?t("Chrome",{staticClass:"color-picker__advanced",attrs:{"disable-alpha":!0,"disable-fields":!e.advancedFields},on:{input:e.pickColor},model:{value:e.currentColor,callback:function(r){e.currentColor=r},expression:"currentColor"}}):t("div",{staticClass:"color-picker__simple"},e._l(e.normalizedPalette,function({color:r,name:i},o){return t("label",{key:o,staticClass:"color-picker__simple-color-circle",class:{"color-picker__simple-color-circle--active":r===e.currentColor},style:{backgroundColor:r,color:e.contrastColor}},[r===e.currentColor?t("NcIconSvgWrapper",{attrs:{path:e.mdiCheck}}):e._e(),t("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":i,name:`color-picker-${e.uid}`},domProps:{checked:r===e.currentColor},on:{click:function(s){return e.pickColor(r)}}})],1)}),0)],1),e.paletteOnly?e._e():t("div",{staticClass:"color-picker__navigation"},[e.advanced?t("NcButton",{attrs:{"aria-label":e.ariaBack,variant:"tertiary"},on:{click:e.handleBack},scopedSlots:e._u([{key:"icon",fn:function(){return[t("NcIconSvgWrapper",{attrs:{directional:"",path:e.mdiArrowLeft}})]},proxy:!0}],null,!0)}):t("NcButton",{attrs:{"aria-label":e.ariaMore,variant:"tertiary"},on:{click:e.handleMoreSettings},scopedSlots:e._u([{key:"icon",fn:function(){return[t("NcIconSvgWrapper",{attrs:{path:e.mdiDotsHorizontal}})]},proxy:!0}],null,!0)}),t("NcButton",{attrs:{variant:"primary"},on:{click:function(r){return e.handleConfirm(n.hide)}}},[e._v(" "+e._s(e.t("Choose"))+" ")])],1)],1)]}}],null,!0)},"NcPopover",e.$attrs,!1),e.$listeners))},fJ=[],mJ=ut(hJ,pJ,fJ,!1,null,"c49ecb71");const gJ=mJ.exports;Et(J4,tN,eN,XC);const TJ={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var bJ=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon circle-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},AJ=[],yJ=ut(TJ,bJ,AJ,!1,null,null);const EJ=yJ.exports;let Fg;const vJ={search:me("Search emoji"),notfound:me("No emoji found"),categories:{search:me("Search results"),recent:me("Frequently used"),smileys:me("Smileys & Emotion"),people:me("People & Body"),nature:me("Animals & Nature"),foods:me("Food & Drink"),activity:me("Activities"),places:me("Travel & Places"),objects:me("Objects"),symbols:me("Symbols"),flags:me("Flags"),custom:me("Custom")}},p2=[new Hn(255,222,52,me("Neutral skin color")),new Hn(228,205,166,me("Light skin tone")),new Hn(250,221,192,me("Medium light skin tone")),new Hn(174,129,87,me("Medium skin tone")),new Hn(158,113,88,me("Medium dark skin tone")),new Hn(96,79,69,me("Dark skin tone"))],DJ={name:"NcEmojiPicker",components:{Emoji:Rc.Emoji,IconCircle:EJ,NcButton:_i,NcColorPicker:gJ,NcPopover:hm,NcTextField:Lm,Picker:Rc.Picker},props:{activeSet:{type:String,default:"native"},showPreview:{type:Boolean,default:!1},allowUnselect:{type:Boolean,default:!1},selectedEmoji:{type:String,default:""},previewFallbackEmoji:{type:String,default:"grinning"},previewFallbackName:{type:String,default:me("Pick an emoji")},closeOnSelect:{type:Boolean,default:!0},container:{type:[String,Object,Element,Boolean],default:"body"}},emits:["select","select-data","unselect"],setup(){return Fg||(Fg=new Rc.EmojiIndex(rN)),{emojiIndex:Fg,skinTonePalette:p2,i18n:vJ}},data(){const e=Yk();return{currentColor:p2[e-1],currentSkinTone:e,search:"",open:!1}},computed:{native(){return this.activeSet==="native"}},created(){t6(()=>this.open)},methods:{t:me,clearSearch(){this.search="",this.$refs.search.focus()},onChangeSkinTone(e){const t=this.skinTonePalette.findIndex(n=>n.color.toLowerCase()===e.toLowerCase());t>-1&&(this.currentSkinTone=t+1,this.currentColor=this.skinTonePalette[t],lJ(this.currentSkinTone))},select(e){this.$emit("select",e.native),this.$emit("select-data",e),this.closeOnSelect&&(this.open=!1)},unselect(){this.$emit("unselect")},afterShow(){this.$refs.search.focus()},afterHide(){(!document.activeElement||this.$refs.picker.$el.contains(document.activeElement)||!e6(document.activeElement))&&this.$refs.popover.$el.querySelector('button, [role="button"]')?.focus()},handleTabNavigationSkippingEmojis(e){const t=e.target,n=Array.from(this.$refs.picker.$el.querySelectorAll("button:not(.emoji-mart-emoji), input"));e.shiftKey?(n.findLast(r=>t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING)||n.at(-1)).focus():(n.find(r=>t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)||n[0]).focus()},async callPickerArrowHandlerWithScrollFix(e,t){this.$refs.picker[e](t),await this.$nextTick(),this.$refs.picker.$el.querySelector(".emoji-mart-emoji-selected")?.scrollIntoView({block:"center",inline:"center"})}}};var SJ=function(){var e=this,t=e._self._c;return t("NcPopover",e._g(e._b({ref:"popover",attrs:{shown:e.open,container:e.container,"popup-role":"dialog","focus-trap":!1},on:{"update:shown":function(n){e.open=n},"after-show":e.afterShow,"after-hide":e.afterHide},scopedSlots:e._u([{key:"trigger",fn:function(n){return[e._t("default",null,null,n)]}}],null,!0)},"NcPopover",e.$attrs,!1),e.$listeners),[t("div",{staticClass:"nc-emoji-picker-container"},[t("Picker",e._b({ref:"picker",attrs:{color:"var(--color-primary-element)",data:e.emojiIndex,emoji:e.previewFallbackEmoji,i18n:e.i18n,native:e.native,"emoji-size":20,"per-line":8,"picker-styles":{width:"320px"},"show-preview":e.showPreview,skin:e.currentSkinTone,"show-skin-tones":!1,title:e.previewFallbackName,role:"dialog","aria-modal":"true","aria-label":e.t("Emoji picker")},on:{select:e.select},nativeOn:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"tab",9,n.key,"Tab")?null:(n.preventDefault(),e.handleTabNavigationSkippingEmojis.apply(null,arguments))}},scopedSlots:e._u([{key:"searchTemplate",fn:function({onSearch:n}){return[t("div",{staticClass:"search__wrapper"},[t("NcTextField",{ref:"search",staticClass:"search",attrs:{value:e.search,label:e.t("Search"),"label-visible":!0,placeholder:e.i18n.search,"trailing-button-icon":"close","trailing-button-label":e.t("Clear search"),"show-trailing-button":e.search!==""},on:{"update:value":[function(r){e.search=r},function(r){return n(e.search)}],keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"left",37,r.key,["Left","ArrowLeft"])||"button"in r&&r.button!==0?null:e.callPickerArrowHandlerWithScrollFix("onArrowLeft",r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"right",39,r.key,["Right","ArrowRight"])||"button"in r&&r.button!==2?null:e.callPickerArrowHandlerWithScrollFix("onArrowRight",r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.callPickerArrowHandlerWithScrollFix("onArrowDown",r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.callPickerArrowHandlerWithScrollFix("onArrowUp",r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.$refs.picker.onEnter.apply(null,arguments)}],"trailing-button-click":function(r){e.clearSearch(),n("")}}}),t("NcColorPicker",{attrs:{"palette-only":"",container:e.container,palette:e.skinTonePalette,value:e.currentColor.color},on:{"update:value":e.onChangeSkinTone}},[t("NcButton",{attrs:{"aria-label":e.t("Skin tone"),variant:"tertiary-no-background"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("IconCircle",{style:{color:e.currentColor.color},attrs:{title:e.currentColor.name,size:20}})]},proxy:!0}],null,!0)})],1)],1)]}},e.allowUnselect&&e.selectedEmoji?{key:"customCategory",fn:function(){return[t("div",{staticClass:"emoji-mart-category-label"},[t("h3",{staticClass:"emoji-mart-category-label"},[e._v(" "+e._s(e.t("Selected"))+" ")])]),t("Emoji",{staticClass:"emoji-selected",attrs:{data:e.emojiIndex,emoji:e.selectedEmoji,native:!0,size:32},on:{click:e.unselect}}),t("Emoji",{staticClass:"emoji-delete",attrs:{data:e.emojiIndex,emoji:":x:",native:!0,size:10},on:{click:e.unselect}})]},proxy:!0}:null],null,!0)},"Picker",e.$attrs,!1))],1)])},wJ=[],_J=ut(DJ,SJ,wJ,!1,null,"0c6d778a");const CJ=_J.exports,NJ={name:"EmojiPickerAction",components:{NcEmojiPicker:CJ,NcButton:_i},extends:df,mixins:[ey],methods:{addEmoji({id:e,native:t}){this.actionEntry.action(this.editor?.chain(),{id:e,native:t}).focus().run()}}};var FJ=function(){var e=this,t=e._self._c;return t("NcEmojiPicker",{staticClass:"entry-action entry-action__emoji",attrs:{"data-text-action-entry":e.actionEntry.key,container:e.menuIDSelector},on:{"select-data":e.addEmoji}},[t("div",[t("NcButton",{staticClass:"entry-action__button",attrs:{role:"menu",title:e.actionEntry.label,"aria-label":e.actionEntry.label},scopedSlots:e._u([{key:"icon",fn:function(){return[t(e.icon,{tag:"component"})]},proxy:!0}])})],1)])},OJ=[],xJ=Ee(NJ,FJ,OJ,!1,null,null);const kJ=xJ.exports,RJ=/Android|iPhone|iPad|iPod/i.test(navigator.userAgent),ybe=[{key:"outline",forceLabel:!0,icon:bp,click:({$outlineActions:e})=>e.toggle(),label:({$outlineState:e})=>e.visible?xe("text","Hide outline"):xe("text","Show outline")}],Ebe=[{key:"edit",label:xe("text","Edit"),forceLabel:!0,icon:gV,click:({$readOnlyActions:e})=>e.toggle()}],vbe=[{key:"done",label:xe("text","Done"),icon:TV,click:({$readOnlyActions:e})=>e.toggle()}],bc=[{key:"undo",label:xe("text","Undo"),keyChar:"z",keyModifiers:[Ct.Mod],icon:SV,action:e=>e.undo(),priority:7},{key:"redo",label:xe("text","Redo"),keyChar:"y",keyModifiers:[Ct.Mod],icon:bV,action:e=>e.redo(),priority:10},{key:"headings",label:xe("text","Headings"),keyChar:"1…6",keyModifiers:[Ct.Mod,Ct.Shift],icon:Qz,isActive:"heading",children:[{key:"headings-h1",label:xe("text","Heading 1"),keyChar:"1",keyModifiers:[Ct.Mod,Ct.Shift],icon:Jz,isActive:{name:"heading",attributes:{level:1}},action:e=>e.toggleHeading({level:1})},{key:"headings-h2",label:xe("text","Heading 2"),keyChar:"2",keyModifiers:[Ct.Mod,Ct.Shift],icon:Xz,isActive:{name:"heading",attributes:{level:2}},action:e=>e.toggleHeading({level:2})},{key:"headings-h3",label:xe("text","Heading 3"),keyChar:"3",keyModifiers:[Ct.Mod,Ct.Shift],icon:eV,isActive:{name:"heading",attributes:{level:3}},action:e=>e.toggleHeading({level:3})},{key:"headings-h4",label:xe("text","Heading 4"),keyChar:"4",keyModifiers:[Ct.Mod,Ct.Shift],isActive:{name:"heading",attributes:{level:4}},icon:tV,action:e=>e.toggleHeading({level:4})},{key:"headings-h5",label:xe("text","Heading 5"),keyChar:"5",keyModifiers:[Ct.Mod,Ct.Shift],isActive:{name:"heading",attributes:{level:5}},icon:nV,action:e=>e.toggleHeading({level:5})},{key:"headings-h6",label:xe("text","Heading 6"),keyChar:"6",keyModifiers:[Ct.Mod,Ct.Shift],isActive:{name:"heading",attributes:{level:6}},icon:rV,action:e=>e.toggleHeading({level:6})},{key:"headings-separator",isSeparator:!0,visible:({$outlineState:e})=>e.enable},{key:"outline",icon:bp,click:({$outlineActions:e})=>e.toggle(),visible:({$outlineState:e})=>e.enable,label:({$outlineState:e})=>e.visible?xe("text","Hide outline"):xe("text","Show outline")}],priority:1},{key:"bold",label:xe("text","Bold"),keyChar:"b",keyModifiers:[Ct.Mod],icon:Kz,isActive:"strong",action:e=>e.toggleBold(),priority:8},{key:"italic",label:xe("text","Italic"),keyChar:"i",keyModifiers:[Ct.Mod],icon:sV,isActive:"em",action:e=>e.toggleItalic(),priority:9},{key:"underline",label:xe("text","Underline"),keyChar:"u",keyModifiers:[Ct.Mod],icon:dV,isActive:"underline",action:e=>e.toggleUnderline(),priority:11},{key:"strikethrough",label:xe("text","Strikethrough"),keyChar:"s",keyModifiers:[Ct.Mod,Ct.Shift],icon:uV,isActive:"strike",action:e=>e.toggleStrike(),priority:12},{key:"lists",label:xe("text","Lists"),keyChar:"7…9",keyModifiers:[Ct.Mod,Ct.Shift],isActive:["bulletList","orderedList","taskList"],icon:bp,children:[{key:"unordered-list",label:xe("text","Unordered list"),keyChar:"8",keyModifiers:[Ct.Mod,Ct.Shift],isActive:"bulletList",icon:bp,action:e=>e.toggleBulletList()},{key:"ordered-list",label:xe("text","Ordered list"),keyChar:"7",keyModifiers:[Ct.Mod,Ct.Shift],isActive:"orderedList",icon:lV,action:e=>e.toggleOrderedList()},{key:"task-list",label:xe("text","To-Do list"),keyChar:"9",keyModifiers:[Ct.Mod,Ct.Shift],isActive:"taskList",icon:aV,action:e=>e.toggleTaskList()},{key:"lists-separator",isSeparator:!0},{key:"list-indent-increase",label:xe("text","Increase indentation"),keyChar:"Tab",icon:oV,action:(e,t=null)=>t&&t.isActive("taskItem")?e.sinkListItem("taskItem"):e.sinkListItem("listItem")},{key:"list-indent-decrease",label:xe("text","Decrease indentation"),keyChar:"Tab",keyModifiers:[Ct.Shift],icon:iV,action:(e,t=null)=>t&&t.isActive("taskItem")?e.liftListItem("taskItem"):e.liftListItem("listItem")}],priority:2},{key:"blocks",label:xe("text","Blocks"),visible:!1,icon:Vz,isActive:["blockquote","codeBlock","callout"],children:[{key:"blockquote",label:xe("text","Blockquote"),keyChar:"b",keyModifiers:[Ct.Mod,Ct.Shift],isActive:"blockquote",icon:cV,action:e=>e.toggleBlockquote()},{key:"code-block",label:xe("text","Code block"),keyChar:"c",keyModifiers:[Ct.Mod,Ct.Alt],isActive:"codeBlock",icon:jz,action:e=>e.toggleCodeBlock()},{key:"blocks-separator",isSeparator:!0},{key:"callout-info",label:xe("text","Info callout"),isActive:{name:"callout",attributes:{type:"info"}},icon:QA,action:e=>e.toggleCallout({type:"info"})},{key:"callout-success",label:xe("text","Success callout"),isActive:{name:"callout",attributes:{type:"success"}},icon:bx,action:e=>e.toggleCallout({type:"success"})},{key:"callout-warn",label:xe("text","Warning callout"),isActive:{name:"callout",attributes:{type:"warn"}},icon:Ex,action:e=>e.toggleCallout({type:"warn"})},{key:"callout-error",label:xe("text","Danger callout"),isActive:{name:"callout",attributes:{type:"error"}},icon:Tx,action:e=>e.toggleCallout({type:"error"})}],priority:3},{key:"table",label:xe("text","Table"),isActive:"table",icon:yV,action:e=>e.insertTable(),priority:13},{key:"details",label:xe("text","Details"),isActive:"details",icon:wV,action:e=>e.toggleDetails(),priority:14},{key:"insert-link",label:xe("text","Insert link"),keyChar:"k",keyModifiers:[Ct.Mod],isActive:"link",icon:pV,component:oJ,priority:4},{key:"insert-attachment",label:xe("text","Insert attachment"),icon:mV,component:sj,priority:5}];RJ||bc.push({key:"emoji-picker",label:xe("text","Insert emoji"),icon:qz,component:kJ,action:(e,t={})=>e.emoji(t),priority:6});const f2={};function MJ(e){let t=f2[e];if(t)return t;t=f2[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function ou(e,t){typeof t!="string"&&(t=ou.defaultChars);const n=MJ(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let o=0,s=r.length;o<s;o+=3){const a=parseInt(r.slice(o+1,o+3),16);if(a<128){i+=n[a];continue}if((a&224)===192&&o+3<s){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const c=a<<6&1984|l&63;c<128?i+="��":i+=String.fromCharCode(c),o+=3;continue}}if((a&240)===224&&o+6<s){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){const u=a<<12&61440|l<<6&4032|c&63;u<2048||u>=55296&&u<=57343?i+="���":i+=String.fromCharCode(u),o+=6;continue}}if((a&248)===240&&o+9<s){const l=parseInt(r.slice(o+4,o+6),16),c=parseInt(r.slice(o+7,o+9),16),u=parseInt(r.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(u&192)===128){let d=a<<18&1835008|l<<12&258048|c<<6&4032|u&63;d<65536||d>1114111?i+="����":(d-=65536,i+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}i+="�"}return i})}ou.defaultChars=";/?:@&=+$,#",ou.componentChars="";const m2={};function BJ(e){let t=m2[e];if(t)return t;t=m2[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Fd(e,t,n){typeof t!="string"&&(n=t,t=Fd.defaultChars),typeof n>"u"&&(n=!0);const r=BJ(t);let i="";for(let o=0,s=e.length;o<s;o++){const a=e.charCodeAt(o);if(n&&a===37&&o+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){i+=e.slice(o,o+3),o+=2;continue}if(a<128){i+=r[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<s){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[o])}return i}Fd.defaultChars=";/?:@&=+$,-_.!~*'()#",Fd.componentChars="-_.!~*'()";function Ay(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function wf(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const IJ=/^([a-z0-9.+-]+:)/i,LJ=/:[0-9]*$/,YJ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,HJ=["<",">",'"',"`"," ","\r",`
`,"	"],ZJ=["{","}","|","\\","^","`"].concat(HJ),PJ=["'"].concat(ZJ),g2=["%","/","?",";","#"].concat(PJ),T2=["/","?","#"],$J=255,b2=/^[+a-z0-9A-Z_-]{0,63}$/,UJ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,A2={javascript:!0,"javascript:":!0},y2={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function yy(e,t){if(e&&e instanceof wf)return e;const n=new wf;return n.parse(e,t),n}wf.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=YJ.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=IJ.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(s&&A2[s])&&(o=o.substr(2),this.slashes=!0)),!A2[s]&&(i||s&&!y2[s])){let c=-1;for(let m=0;m<T2.length;m++)r=o.indexOf(T2[m]),r!==-1&&(c===-1||r<c)&&(c=r);let u,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(u=o.slice(0,d),o=o.slice(d+1),this.auth=u),c=-1;for(let m=0;m<g2.length;m++)r=o.indexOf(g2[m]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=o.length),o[c-1]===":"&&c--;const h=o.slice(0,c);o=o.slice(c),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let b=0,A=m.length;b<A;b++){const v=m[b];if(v&&!v.match(b2)){let D="";for(let C=0,S=v.length;C<S;C++)v.charCodeAt(C)>127?D+="x":D+=v[C];if(!D.match(b2)){const C=m.slice(0,b),S=m.slice(b+1),O=v.match(UJ);O&&(C.push(O[1]),S.unshift(O[2])),S.length&&(o=S.join(".")+o),this.hostname=C.join(".");break}}}}this.hostname.length>$J&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");a!==-1&&(this.hash=o.substr(a),o=o.slice(0,a));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),y2[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},wf.prototype.parseHost=function(e){let t=LJ.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const zJ=Object.freeze(Object.defineProperty({__proto__:null,decode:ou,encode:Fd,format:Ay,parse:yy},Symbol.toStringTag,{value:"Module"})),Hk=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zk=/[\0-\x1F\x7F-\x9F]/,VJ=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Ey=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Pk=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,$k=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,jJ=Object.freeze(Object.defineProperty({__proto__:null,Any:Hk,Cc:Zk,Cf:VJ,P:Ey,S:Pk,Z:$k},Symbol.toStringTag,{value:"Module"})),GJ=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),qJ=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Og;const WJ=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),KJ=(Og=String.fromCodePoint)!==null&&Og!==void 0?Og:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function QJ(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=WJ.get(e))!==null&&t!==void 0?t:e}var pr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(pr||(pr={}));const JJ=32;var ha;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ha||(ha={}));function Eb(e){return e>=pr.ZERO&&e<=pr.NINE}function XJ(e){return e>=pr.UPPER_A&&e<=pr.UPPER_F||e>=pr.LOWER_A&&e<=pr.LOWER_F}function eX(e){return e>=pr.UPPER_A&&e<=pr.UPPER_Z||e>=pr.LOWER_A&&e<=pr.LOWER_Z||Eb(e)}function tX(e){return e===pr.EQUALS||eX(e)}var cr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(cr||(cr={}));var na;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(na||(na={}));class nX{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=cr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=na.Strict}startEntity(t){this.decodeMode=t,this.state=cr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case cr.EntityStart:return t.charCodeAt(n)===pr.NUM?(this.state=cr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=cr.NamedEntity,this.stateNamedEntity(t,n));case cr.NumericStart:return this.stateNumericStart(t,n);case cr.NumericDecimal:return this.stateNumericDecimal(t,n);case cr.NumericHex:return this.stateNumericHex(t,n);case cr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|JJ)===pr.LOWER_X?(this.state=cr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=cr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Eb(i)||XJ(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Eb(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===pr.SEMI)this.consumed+=1;else if(this.decodeMode===na.Strict)return 0;return this.emitCodePoint(QJ(this.result),this.consumed),this.errors&&(t!==pr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],o=(i&ha.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=rX(r,i,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===na.Attribute&&(o===0||tX(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],o=(i&ha.VALUE_LENGTH)>>14,o!==0){if(s===pr.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==na.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&ha.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~ha.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case cr.NamedEntity:return this.result!==0&&(this.decodeMode!==na.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cr.NumericDecimal:return this.emitNumericEntity(0,2);case cr.NumericHex:return this.emitNumericEntity(0,3);case cr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cr.EntityStart:return 0}}}function Uk(e){let t="";const n=new nX(e,r=>t+=KJ(r));return function(r,i){let o=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(o,s),n.startEntity(i);const l=n.write(r,s+1);if(l<0){o=s+n.end();break}o=s+l,s=l===0?o+1:o}const a=t+r.slice(o);return t="",a}}function rX(e,t,n,r){const i=(t&ha.BRANCH_LENGTH)>>7,o=t&ha.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=i?-1:e[n+l]-1}let s=n,a=s+i-1;for(;s<=a;){const l=s+a>>>1,c=e[l];if(c<r)s=l+1;else if(c>r)a=l-1;else return e[l+i]}return-1}const iX=Uk(GJ);Uk(qJ);function zk(e,t=na.Legacy){return iX(e,t)}function oX(e){return Object.prototype.toString.call(e)}function vy(e){return oX(e)==="[object String]"}const sX=Object.prototype.hasOwnProperty;function aX(e,t){return sX.call(e,t)}function Wm(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!="object")throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function Vk(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Dy(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function _f(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const jk=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,lX=/&([a-z#][a-z0-9]{1,31});/gi,cX=new RegExp(jk.source+"|"+lX.source,"gi"),uX=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function dX(e,t){if(t.charCodeAt(0)===35&&uX.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Dy(r)?_f(r):e}const n=zk(e);return n!==e?n:e}function hX(e){return e.indexOf("\\")<0?e:e.replace(jk,"$1")}function su(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(cX,function(t,n,r){return n||dX(t,r)})}const pX=/[&<>"]/,fX=/[&<>"]/g,mX={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function gX(e){return mX[e]}function us(e){return pX.test(e)?e.replace(fX,gX):e}const TX=/[.?*+^$[\]\\(){}|-]/g;function bX(e){return e.replace(TX,"\\$&")}function Dn(e){switch(e){case 9:case 32:return!0}return!1}function Od(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function xd(e){return Ey.test(e)||Pk.test(e)}function kd(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Km(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const AX={mdurl:zJ,ucmicro:jJ},yX=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Vk,assign:Wm,escapeHtml:us,escapeRE:bX,fromCodePoint:_f,has:aX,isMdAsciiPunct:kd,isPunctChar:xd,isSpace:Dn,isString:vy,isValidEntityCode:Dy,isWhiteSpace:Od,lib:AX,normalizeReference:Km,unescapeAll:su,unescapeMd:hX},Symbol.toStringTag,{value:"Module"}));function EX(e,t,n){let r,i,o,s;const a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),o===91){if(s===e.pos-1)r++;else if(n)return e.pos=l,-1}}let c=-1;return i&&(c=e.pos),e.pos=l,c}function vX(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return o;if(r===62)return o.pos=i+1,o.str=su(e.slice(t+1,i)),o.ok=!0,o;if(r===92&&i+1<n){i+=2;continue}i++}return o}let s=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(s++,s>32))return o;if(r===41){if(s===0)break;s--}i++}return t===i||s!==0||(o.str=su(e.slice(t,i)),o.pos=i,o.ok=!0),o}function DX(e,t,n,r){let i,o=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(o>=n)return s;let a=e.charCodeAt(o);if(a!==34&&a!==39&&a!==40)return s;t++,o++,a===40&&(a=41),s.marker=a}for(;o<n;){if(i=e.charCodeAt(o),i===s.marker)return s.pos=o+1,s.str+=su(e.slice(t,o)),s.ok=!0,s;if(i===40&&s.marker===41)return s;i===92&&o+1<n&&o++,o++}return s.can_continue=!0,s.str+=su(e.slice(t,o)),s}const SX=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:vX,parseLinkLabel:EX,parseLinkTitle:DX},Symbol.toStringTag,{value:"Module"})),Eo={};Eo.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+us(o.content)+"</code>"},Eo.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+us(e[t].content)+`</code></pre>
`},Eo.fence=function(e,t,n,r,i){const o=e[t],s=o.info?su(o.info).trim():"";let a="",l="";if(s){const u=s.split(/(\s+)/g);a=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,a,l)||us(o.content):c=us(o.content),c.indexOf("<pre")===0)return c+`
`;if(s){const u=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];u<0?d.push(["class",n.langPrefix+a]):(d[u]=d[u].slice(),d[u][1]+=" "+n.langPrefix+a);const h={attrs:d};return`<pre><code${i.renderAttrs(h)}>${c}</code></pre>
`}return`<pre><code${i.renderAttrs(o)}>${c}</code></pre>
`},Eo.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Eo.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
`:`<br>
`},Eo.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`},Eo.text=function(e,t){return us(e[t].content)},Eo.html_block=function(e,t){return e[t].content},Eo.html_inline=function(e,t){return e[t].content};function Ac(){this.rules=Wm({},Eo)}Ac.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+us(e.attrs[t][0])+'="'+us(e.attrs[t][1])+'"';return r},Ac.prototype.renderToken=function(e,t,n){const r=e[t];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&t&&e[t-1].hidden&&(i+=`
`),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,r.nesting===1&&t+1<e.length)){const s=e[t+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(o=!1)}return i+=o?`>
`:">",i},Ac.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,s=e.length;o<s;o++){const a=e[o].type;typeof i[a]<"u"?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},Ac.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":r+=e[i].content;break;case"softbreak":case"hardbreak":r+=`
`;break}return r},Ac.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,s=e.length;o<s;o++){const a=e[o].type;a==="inline"?r+=this.renderInline(e[o].children,t,n):typeof i[a]<"u"?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function ni(){this.__rules__=[],this.__cache__=null}ni.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},ni.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})},ni.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},ni.prototype.before=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},ni.prototype.after=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},ni.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},ni.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n},ni.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},ni.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n},ni.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function si(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}si.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},si.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},si.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},si.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},si.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};function Gk(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Gk.prototype.Token=si;const wX=/\r\n?|\n/g,_X=/\0/g;function CX(e){let t;t=e.src.replace(wX,`
`),t=t.replace(_X,"�"),e.src=t}function NX(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function FX(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function OX(e){return/^<a[>\s]/i.test(e)}function xX(e){return/^<\/a\s*>/i.test(e)}function kX(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,o=0;for(let s=i.length-1;s>=0;s--){const a=i[s];if(a.type==="link_close"){for(s--;i[s].level!==a.level&&i[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(OX(a.content)&&o>0&&o--,xX(a.content)&&o++),!(o>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const l=a.content;let c=e.md.linkify.match(l);const u=[];let d=a.level,h=0;c.length>0&&c[0].index===0&&s>0&&i[s-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){const m=c[p].url,b=e.md.normalizeLink(m);if(!e.md.validateLink(b))continue;let A=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(A)?A=e.md.normalizeLinkText("mailto:"+A).replace(/^mailto:/,""):A=e.md.normalizeLinkText(A):A=e.md.normalizeLinkText("http://"+A).replace(/^http:\/\//,"");const v=c[p].index;if(v>h){const O=new e.Token("text","",0);O.content=l.slice(h,v),O.level=d,u.push(O)}const D=new e.Token("link_open","a",1);D.attrs=[["href",b]],D.level=d++,D.markup="linkify",D.info="auto",u.push(D);const C=new e.Token("text","",0);C.content=A,C.level=d,u.push(C);const S=new e.Token("link_close","a",-1);S.level=--d,S.markup="linkify",S.info="auto",u.push(S),h=c[p].lastIndex}if(h<l.length){const p=new e.Token("text","",0);p.content=l.slice(h),p.level=d,u.push(p)}t[n].children=i=Vk(i,s,u)}}}}const qk=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,RX=/\((c|tm|r)\)/i,MX=/\((c|tm|r)\)/ig,BX={c:"©",r:"®",tm:"™"};function IX(e,t){return BX[t.toLowerCase()]}function LX(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(MX,IX)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function YX(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&qk.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function HX(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(RX.test(e.tokens[t].content)&&LX(e.tokens[t].children),qk.test(e.tokens[t].content)&&YX(e.tokens[t].children))}const ZX=/['"]/,E2=/['"]/g,v2="’";function Mh(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function PX(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const o=e[i],s=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=s);n--);if(r.length=n+1,o.type!=="text")continue;let a=o.content,l=0,c=a.length;e:for(;l<c;){E2.lastIndex=l;const u=E2.exec(a);if(!u)break;let d=!0,h=!0;l=u.index+1;const p=u[0]==="'";let m=32;if(u.index-1>=0)m=a.charCodeAt(u.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(l<c)b=a.charCodeAt(l);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}const A=kd(m)||xd(String.fromCharCode(m)),v=kd(b)||xd(String.fromCharCode(b)),D=Od(m),C=Od(b);if(C?d=!1:v&&(D||A||(d=!1)),D?h=!1:A&&(C||v||(h=!1)),b===34&&u[0]==='"'&&m>=48&&m<=57&&(h=d=!1),d&&h&&(d=A,h=v),!d&&!h){p&&(o.content=Mh(o.content,u.index,v2));continue}if(h)for(n=r.length-1;n>=0;n--){let S=r[n];if(r[n].level<s)break;if(S.single===p&&r[n].level===s){S=r[n];let O,k;p?(O=t.md.options.quotes[2],k=t.md.options.quotes[3]):(O=t.md.options.quotes[0],k=t.md.options.quotes[1]),o.content=Mh(o.content,u.index,k),e[S.token].content=Mh(e[S.token].content,S.pos,O),l+=k.length-1,S.token===i&&(l+=O.length-1),a=o.content,c=a.length,r.length=n;continue e}}d?r.push({token:i,pos:u.index,single:p,level:s}):h&&p&&(o.content=Mh(o.content,u.index,v2))}}}function $X(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!ZX.test(e.tokens[t].content)||PX(e.tokens[t].children,e)}function UX(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;const s=r[o].children,a=s.length;for(t=0;t<a;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<a;t++)s[t].type==="text"&&t+1<a&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const xg=[["normalize",CX],["block",NX],["inline",FX],["linkify",kX],["replacements",HX],["smartquotes",$X],["text_join",UX]];function vb(){this.ruler=new ni;for(let e=0;e<xg.length;e++)this.ruler.push(xg[e][0],xg[e][1])}vb.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},vb.prototype.State=Gk;function vo(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let o=0,s=0,a=0,l=0,c=i.length,u=!1;s<c;s++){const d=i.charCodeAt(s);if(!u)if(Dn(d)){a++,d===9?l+=4-l%4:l++;continue}else u=!0;(d===10||s===c-1)&&(d!==10&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(a),this.sCount.push(l),this.bsCount.push(0),u=!1,a=0,l=0,o=s+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}vo.prototype.push=function(e,t,n){const r=new si(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},vo.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},vo.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},vo.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const n=this.src.charCodeAt(e);if(!Dn(n))break}return e},vo.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Dn(this.src.charCodeAt(--e)))return e+1;return e},vo.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},vo.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},vo.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,s=e;s<t;s++,o++){let a=0;const l=this.bMarks[s];let c=l,u;for(s+1<t||r?u=this.eMarks[s]+1:u=this.eMarks[s];c<u&&a<n;){const d=this.src.charCodeAt(c);if(Dn(d))d===9?a+=4-(a+this.bsCount[s])%4:a++;else if(c-l<this.tShift[s])a++;else break;c++}a>n?i[o]=new Array(a-n+1).join(" ")+this.src.slice(c,u):i[o]=this.src.slice(c,u)}return i.join("")},vo.prototype.Token=si;const zX=65536;function kg(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function D2(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,s=0,a="";for(;r<n;)i===124&&(o?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function VX(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58||o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58&&!Dn(a)||s===45&&Dn(a))return!1;for(;o<e.eMarks[i];){const S=e.src.charCodeAt(o);if(S!==124&&S!==45&&S!==58&&!Dn(S))return!1;o++}let l=kg(e,t+1),c=l.split("|");const u=[];for(let S=0;S<c.length;S++){const O=c[S].trim();if(!O){if(S===0||S===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(O))return!1;O.charCodeAt(O.length-1)===58?u.push(O.charCodeAt(0)===58?"center":"right"):O.charCodeAt(0)===58?u.push("left"):u.push("")}if(l=kg(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=D2(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),b=[t,0];m.map=b;const A=e.push("thead_open","thead",1);A.map=[t,t+1];const v=e.push("tr_open","tr",1);v.map=[t,t+1];for(let S=0;S<c.length;S++){const O=e.push("th_open","th",1);u[S]&&(O.attrs=[["style","text-align:"+u[S]]]);const k=e.push("inline","",0);k.content=c[S].trim(),k.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let D,C=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let S=!1;for(let k=0,Z=p.length;k<Z;k++)if(p[k](e,i,n,!0)){S=!0;break}if(S||(l=kg(e,i).trim(),!l)||e.sCount[i]-e.blkIndent>=4||(c=D2(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),C+=d-c.length,C>zX))break;if(i===t+2){const k=e.push("tbody_open","tbody",1);k.map=D=[t+2,0]}const O=e.push("tr_open","tr",1);O.map=[i,i+1];for(let k=0;k<d;k++){const Z=e.push("td_open","td",1);u[k]&&(Z.attrs=[["style","text-align:"+u[k]]]);const W=e.push("inline","",0);W.content=c[k]?c[k].trim():"",W.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return D&&(e.push("tbody_close","tbody",-1),D[1]=i),e.push("table_close","table",-1),b[1]=i,e.parentType=h,e.line=i,!0}function jX(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
`,o.map=[t,e.line],!0}function GX(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;const s=e.src.charCodeAt(i);if(s!==126&&s!==96)return!1;let a=i;i=e.skipChars(i,s);let l=i-a;if(l<3)return!1;const c=e.src.slice(a,i),u=e.src.slice(i,o);if(s===96&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,h=!1;for(;d++,!(d>=n||(i=a=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(i=e.skipChars(i,s),!(i-a<l)&&(i=e.skipSpaces(i),!(i<o)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0}function qX(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const a=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const C=e.sCount[m]<e.blkIndent;if(i=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],i>=o)break;if(e.src.charCodeAt(i++)===62&&!C){let O=e.sCount[m]+1,k,Z;e.src.charCodeAt(i)===32?(i++,O++,Z=!1,k=!0):e.src.charCodeAt(i)===9?(k=!0,(e.bsCount[m]+O)%4===3?(i++,O++,Z=!1):Z=!0):k=!1;let W=O;for(a.push(e.bMarks[m]),e.bMarks[m]=i;i<o;){const U=e.src.charCodeAt(i);if(Dn(U))U===9?W+=4-(W+e.bsCount[m]+(Z?1:0))%4:W++;else break;i++}p=i>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(k?1:0),c.push(e.sCount[m]),e.sCount[m]=W-O,u.push(e.tShift[m]),e.tShift[m]=i-e.bMarks[m];continue}if(p)break;let S=!1;for(let O=0,k=d.length;O<k;O++)if(d[O](e,m,n,!0)){S=!0;break}if(S){e.lineMax=m,e.blkIndent!==0&&(a.push(e.bMarks[m]),l.push(e.bsCount[m]),u.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}a.push(e.bMarks[m]),l.push(e.bsCount[m]),u.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const b=e.blkIndent;e.blkIndent=0;const A=e.push("blockquote_open","blockquote",1);A.markup=">";const v=[t,0];A.map=v,e.md.block.tokenize(e,t,m);const D=e.push("blockquote_close","blockquote",-1);D.markup=">",e.lineMax=s,e.parentType=h,v[1]=e.line;for(let C=0;C<u.length;C++)e.bMarks[C+t]=a[C],e.tShift[C+t]=u[C],e.sCount[C+t]=c[C],e.bsCount[C+t]=l[C];return e.blkIndent=b,!0}function WX(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;o<i;){const c=e.src.charCodeAt(o++);if(c!==s&&!Dn(c))return!1;c===s&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(s)),!0}function S2(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!Dn(o))return-1}return r}function w2(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=e.src.charCodeAt(i),!Dn(o))?-1:i}function KX(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function QX(e,t,n,r){let i,o,s,a,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(u=!0);let d,h,p;if((p=w2(e,l))>=0){if(d=!0,s=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(s,p-1)),u&&h!==1)return!1}else if((p=S2(e,l))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),b=e.tokens.length;d?(a=e.push("ordered_list_open","ol",1),h!==1&&(a.attrs=[["start",h]])):a=e.push("bullet_list_open","ul",1);const A=[l,0];a.map=A,a.markup=String.fromCharCode(m);let v=!1;const D=e.md.block.ruler.getRules("list"),C=e.parentType;for(e.parentType="list";l<n;){o=p,i=e.eMarks[l];const S=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let O=S;for(;o<i;){const J=e.src.charCodeAt(o);if(J===9)O+=4-(O+e.bsCount[l])%4;else if(J===32)O++;else break;o++}const k=o;let Z;k>=i?Z=1:Z=O-S,Z>4&&(Z=1);const W=S+Z;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(m);const U=[l,0];a.map=U,d&&(a.info=e.src.slice(s,p-1));const w=e.tight,z=e.tShift[l],V=e.sCount[l],L=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=W,e.tight=!0,e.tShift[l]=k-e.bMarks[l],e.sCount[l]=O,k>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||v)&&(c=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[l]=z,e.sCount[l]=V,e.tight=w,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(m),l=e.line,U[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let se=!1;for(let J=0,Se=D.length;J<Se;J++)if(D[J](e,l,n,!0)){se=!0;break}if(se)break;if(d){if(p=w2(e,l),p<0)break;s=e.bMarks[l]+e.tShift[l]}else if(p=S2(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return d?a=e.push("ordered_list_close","ol",-1):a=e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(m),A[1]=l,e.line=l,e.parentType=C,c&&KX(e,b),!0}function JX(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function a(D){const C=e.lineMax;if(D>=C||e.isEmpty(D))return null;let S=!1;if(e.sCount[D]-e.blkIndent>3&&(S=!0),e.sCount[D]<0&&(S=!0),!S){const Z=e.md.block.ruler.getRules("reference"),W=e.parentType;e.parentType="reference";let U=!1;for(let w=0,z=Z.length;w<z;w++)if(Z[w](e,D,C,!0)){U=!0;break}if(e.parentType=W,U)return null}const O=e.bMarks[D]+e.tShift[D],k=e.eMarks[D];return e.src.slice(O,k+1)}let l=e.src.slice(i,o+1);o=l.length;let c=-1;for(i=1;i<o;i++){const D=l.charCodeAt(i);if(D===91)return!1;if(D===93){c=i;break}else if(D===10){const C=a(s);C!==null&&(l+=C,o=l.length,s++)}else if(D===92&&(i++,i<o&&l.charCodeAt(i)===10)){const C=a(s);C!==null&&(l+=C,o=l.length,s++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(i=c+2;i<o;i++){const D=l.charCodeAt(i);if(D===10){const C=a(s);C!==null&&(l+=C,o=l.length,s++)}else if(!Dn(D))break}const u=e.md.helpers.parseLinkDestination(l,i,o);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;i=u.pos;const h=i,p=s,m=i;for(;i<o;i++){const D=l.charCodeAt(i);if(D===10){const C=a(s);C!==null&&(l+=C,o=l.length,s++)}else if(!Dn(D))break}let b=e.md.helpers.parseLinkTitle(l,i,o);for(;b.can_continue;){const D=a(s);if(D===null)break;l+=D,i=o,o=l.length,s++,b=e.md.helpers.parseLinkTitle(l,i,o,b)}let A;for(i<o&&m!==i&&b.ok?(A=b.str,i=b.pos):(A="",i=h,s=p);i<o;){const D=l.charCodeAt(i);if(!Dn(D))break;i++}if(i<o&&l.charCodeAt(i)!==10&&A)for(A="",i=h,s=p;i<o;){const D=l.charCodeAt(i);if(!Dn(D))break;i++}if(i<o&&l.charCodeAt(i)!==10)return!1;const v=Km(l.slice(1,c));return v?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[v]>"u"&&(e.env.references[v]={title:A,href:d}),e.line=s),!0):!1}const XX=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eee="[a-zA-Z_:][a-zA-Z0-9:._-]*",tee="[^\"'=<>`\\x00-\\x20]+",nee="'[^']*'",ree='"[^"]*"',iee="(?:"+tee+"|"+nee+"|"+ree+")",oee="(?:\\s+"+eee+"(?:\\s*=\\s*"+iee+")?)",Wk="<[A-Za-z][A-Za-z0-9\\-]*"+oee+"*\\s*\\/?>",Kk="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",see="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",aee="<[?][\\s\\S]*?[?]>",lee="<![A-Za-z][^>]*>",cee="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",uee=new RegExp("^(?:"+Wk+"|"+Kk+"|"+see+"|"+aee+"|"+lee+"|"+cee+")"),dee=new RegExp("^(?:"+Wk+"|"+Kk+")"),pc=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+XX.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(dee.source+"\\s*$"),/^$/,!1]];function hee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let s=e.src.slice(i,o),a=0;for(;a<pc.length&&!pc[a][0].test(s);a++);if(a===pc.length)return!1;if(r)return pc[a][2];let l=t+1;if(!pc[a][1].test(s)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],s=e.src.slice(i,o),pc[a][1].test(s)){s.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function pee(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(i);if(s!==35||i>=o)return!1;let a=1;for(s=e.src.charCodeAt(++i);s===35&&i<o&&a<=6;)a++,s=e.src.charCodeAt(++i);if(a>6||i<o&&!Dn(s))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const l=e.skipCharsBack(o,35,i);l>i&&Dn(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const u=e.push("inline","",0);u.content=e.src.slice(i,o).trim(),u.map=[t,e.line],u.children=[];const d=e.push("heading_close","h"+String(a),-1);return d.markup="########".slice(0,a),!0}function fee(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(p<m&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=m))){o=s===61?1:2;break}}if(e.sCount[a]<0)continue;let h=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](e,a,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const u=e.push("inline","",0);u.content=l,u.map=[t,e.line-1],u.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(s),e.parentType=i,!0}function mee(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let u=0,d=r.length;u<d;u++)if(r[u](e,o,n,!0)){c=!0;break}if(c)break}const s=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const l=e.push("inline","",0);return l.content=s,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const Bh=[["table",VX,["paragraph","reference"]],["code",jX],["fence",GX,["paragraph","reference","blockquote","list"]],["blockquote",qX,["paragraph","reference","blockquote","list"]],["hr",WX,["paragraph","reference","blockquote","list"]],["list",QX,["paragraph","reference","blockquote"]],["reference",JX],["html_block",hee,["paragraph","reference","blockquote"]],["heading",pee,["paragraph","reference","blockquote"]],["lheading",fee],["paragraph",mee]];function wp(){this.ruler=new ni;for(let e=0;e<Bh.length;e++)this.ruler.push(Bh[e][0],Bh[e][1],{alt:(Bh[e][2]||[]).slice()})}wp.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let c=!1;for(let u=0;u<i;u++)if(c=r[u](e,s,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},wp.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},wp.prototype.State=vo;function D0(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}D0.prototype.pushPending=function(){const e=new si("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},D0.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new si(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},D0.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const s=o-e,a=o<n?this.src.charCodeAt(o):32,l=kd(i)||xd(String.fromCharCode(i)),c=kd(a)||xd(String.fromCharCode(a)),u=Od(i),d=Od(a),h=!d&&(!c||u||l),p=!u&&(!l||d||c);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||c),length:s}},D0.prototype.Token=si;function gee(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Tee(e,t){let n=e.pos;for(;n<e.posMax&&!gee(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const bee=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Aee(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(bee);if(!i)return!1;const o=i[1],s=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!s)return!1;let a=s.url;if(a.length<=o.length)return!1;a=a.replace(/\*+$/,"");const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(a);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=a.length-o.length,!0}function Qk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&Dn(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Sy=[];for(let e=0;e<256;e++)Sy.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Sy[e.charCodeAt(0)]=1});function Jk(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!Dn(i));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(o+=e.src[n+1],n++)}const s="\\"+o;if(!t){const a=e.push("text_special","",0);i<256&&Sy[i]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function yee(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const o=e.src.slice(r,n),s=o.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=o),e.pos+=s,!0;let a=n,l;for(;(l=e.src.indexOf("`",a))!==-1;){for(a=l+1;a<i&&e.src.charCodeAt(a)===96;)a++;const c=a-l;if(c===s){if(!t){const u=e.push("code_inline","code",0);u.markup=o,u.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[c]=l}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=s,!0}function Eee(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const s=String.fromCharCode(r);if(o<2)return!1;let a;o%2&&(a=e.push("text","",0),a.content=s,o--);for(let l=0;l<o;l+=2)a=e.push("text","",0),a.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function _2(e,t){let n;const r=[],i=t.length;for(let o=0;o<i;o++){const s=t[o];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&r.push(a.token-1)}for(;r.length;){const o=r.pop();let s=o+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,o!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[o],e.tokens[o]=n)}}function vee(e){const t=e.tokens_meta,n=e.tokens_meta.length;_2(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&_2(e,t[r].delimiters)}const Xk={tokenize:Eee,postProcess:vee};function Dee(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const i=e.scanDelims(e.pos,r===42);for(let o=0;o<i.length;o++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function C2(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=t[i.end],s=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,a=String.fromCharCode(i.marker),l=e.tokens[i.token];l.type=s?"strong_open":"em_open",l.tag=s?"strong":"em",l.nesting=1,l.markup=s?a+a:a,l.content="";const c=e.tokens[o.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function See(e){const t=e.tokens_meta,n=e.tokens_meta.length;C2(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&C2(e,t[r].delimiters)}const eR={tokenize:Dee,postProcess:See};function wee(e,t){let n,r,i,o,s="",a="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const u=e.pos,d=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),!(!Dn(n)&&n!==10));m++);if(m>=d)return!1;if(l=m,i=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),i.ok){for(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?m=i.pos:s="",l=m;m<d&&(n=e.src.charCodeAt(m),!(!Dn(n)&&n!==10));m++);if(i=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&l!==m&&i.ok)for(a=i.str,m=i.pos;m<d&&(n=e.src.charCodeAt(m),!(!Dn(n)&&n!==10));m++);}(m>=d||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m<d&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(h,p)),o=e.env.references[Km(r)],!o)return e.pos=u,!1;s=o.href,a=o.title}if(!t){e.pos=h,e.posMax=p;const b=e.push("link_open","a",1),A=[["href",s]];b.attrs=A,a&&A.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}function _ee(e,t){let n,r,i,o,s,a,l,c,u="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(o=m+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!Dn(n)&&n!==10));o++);if(o>=h)return!1;for(c=o,a=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?o=a.pos:u=""),c=o;o<h&&(n=e.src.charCodeAt(o),!(!Dn(n)&&n!==10));o++);if(a=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&c!==o&&a.ok)for(l=a.str,o=a.pos;o<h&&(n=e.src.charCodeAt(o),!(!Dn(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(c,o++):o=m+1):o=m+1,i||(i=e.src.slice(p,m)),s=e.env.references[Km(i)],!s)return e.pos=d,!1;u=s.href,l=s.title}if(!t){r=e.src.slice(p,m);const b=[];e.md.inline.parse(r,e.md,e.env,b);const A=e.push("image","img",0),v=[["src",u],["alt",""]];A.attrs=v,A.children=b,A.content=r,l&&v.push(["title",l])}return e.pos=o,e.posMax=h,!0}const Cee=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Nee=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Fee(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const o=e.src.slice(r+1,n);if(Nee.test(o)){const s=e.md.normalizeLink(o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(Cee.test(o)){const s=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function Oee(e){return/^<a[>\s]/i.test(e)}function xee(e){return/^<\/a\s*>/i.test(e)}function kee(e){const t=e|32;return t>=97&&t<=122}function Ree(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!kee(i))return!1;const o=e.src.slice(r).match(uee);if(!o)return!1;if(!t){const s=e.push("html_inline","",0);s.content=o[0],Oee(s.content)&&e.linkLevel++,xee(s.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const Mee=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Bee=/^&([a-z][a-z0-9]{1,31});/i;function Iee(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(Mee);if(i){if(!t){const o=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),s=e.push("text_special","",0);s.content=Dy(o)?_f(o):_f(65533),s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(Bee);if(i){const o=zk(i[0]);if(o!==i[0]){if(!t){const s=e.push("text_special","",0);s.content=o,s.markup=i[0],s.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function N2(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let s=0;s<n;s++){const a=e[s];if(o.push(0),(e[r].marker!==a.marker||i!==a.token-1)&&(r=s),i=a.token,a.length=a.length||0,!a.close)continue;t.hasOwnProperty(a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[a.marker][(a.open?3:0)+a.length%3];let c=r-o[r]-1,u=c;for(;c>l;c-=o[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let h=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(h=!0),!h){const p=c>0&&!e[c-1].open?o[c-1]+1:0;o[s]=s-c+p,o[c]=p,a.open=!1,d.end=s,d.close=!1,u=-1,i=-2;break}}}u!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=u)}}function Lee(e){const t=e.tokens_meta,n=e.tokens_meta.length;N2(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&N2(t[r].delimiters)}function Yee(e){let t,n,r=0;const i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const Rg=[["text",Tee],["linkify",Aee],["newline",Qk],["escape",Jk],["backticks",yee],["strikethrough",Xk.tokenize],["emphasis",eR.tokenize],["link",wee],["image",_ee],["autolink",Fee],["html_inline",Ree],["entity",Iee]],Mg=[["balance_pairs",Lee],["strikethrough",Xk.postProcess],["emphasis",eR.postProcess],["fragments_join",Yee]];function S0(){this.ruler=new ni;for(let e=0;e<Rg.length;e++)this.ruler.push(Rg[e][0],Rg[e][1]);this.ruler2=new ni;for(let e=0;e<Mg.length;e++)this.ruler2.push(Mg[e][0],Mg[e][1])}S0.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let s=!1;if(e.level<i){for(let a=0;a<r;a++)if(e.level++,s=n[a](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,o[t]=e.pos},S0.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let s=!1;if(e.level<i){for(let a=0;a<n;a++)if(s=t[a](e,!1),s){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},S0.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),s=o.length;for(let a=0;a<s;a++)o[a](i)},S0.prototype.State=D0;function Hee(e){const t={};e=e||{},t.src_Any=Hk.source,t.src_Cc=Zk.source,t.src_Z=$k.source,t.src_P=Ey.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Db(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Qm(e){return Object.prototype.toString.call(e)}function Zee(e){return Qm(e)==="[object String]"}function Pee(e){return Qm(e)==="[object Object]"}function $ee(e){return Qm(e)==="[object RegExp]"}function F2(e){return Qm(e)==="[object Function]"}function Uee(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const tR={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function zee(e){return Object.keys(e||{}).reduce(function(t,n){return t||tR.hasOwnProperty(n)},!1)}const Vee={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},jee="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Gee="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function qee(e){e.__index__=-1,e.__text_cache__=""}function Wee(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function O2(){return function(e,t){t.normalize(e)}}function _p(e){const t=e.re=Hee(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(jee),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){const l=e.__schemas__[a];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[a]=c,Pee(l)){$ee(l.validate)?c.validate=Wee(l.validate):F2(l.validate)?c.validate=l.validate:o(a,l),F2(l.normalize)?c.normalize=l.normalize:l.normalize?o(a,l):c.normalize=O2();return}if(Zee(l)){i.push(a);return}o(a,l)}),i.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:O2()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Uee).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),qee(e)}function Kee(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Bg(e,t){const n=new Kee(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ai(e,t){if(!(this instanceof Ai))return new Ai(e,t);t||zee(e)&&(t=e,e={}),this.__opts__=Db({},tR,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Db({},Vee,e),this.__compiled__={},this.__tlds__=Gee,this.__tlds_replaced__=!1,this.re={},_p(this)}Ai.prototype.add=function(e,t){return this.__schemas__[e]=t,_p(this),this},Ai.prototype.set=function(e){return this.__opts__=Db(this.__opts__,e),this},Ai.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,s,a,l,c;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(e))!==null;)if(i=this.testSchemaAt(e,t[2],a.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(o=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0},Ai.prototype.pretest=function(e){return this.re.pretest.test(e)},Ai.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Ai.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Bg(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Bg(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Ai.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Bg(this,0)):null},Ai.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,r,i){return n!==i[r-1]}).reverse(),_p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,_p(this),this)},Ai.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Ai.prototype.onCompile=function(){};const $c=2147483647,Oo=36,wy=1,Rd=26,Qee=38,Jee=700,nR=72,rR=128,iR="-",Xee=/^xn--/,ete=/[^\0-\x7F]/,tte=/[\x2E\u3002\uFF0E\uFF61]/g,nte={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ig=Oo-wy,xo=Math.floor,Lg=String.fromCharCode;function Js(e){throw new RangeError(nte[e])}function rte(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function oR(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(tte,".");const i=e.split("."),o=rte(i,t).join(".");return r+o}function sR(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}const ite=e=>String.fromCodePoint(...e),ote=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Oo},x2=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},aR=function(e,t,n){let r=0;for(e=n?xo(e/Jee):e>>1,e+=xo(e/t);e>Ig*Rd>>1;r+=Oo)e=xo(e/Ig);return xo(r+(Ig+1)*e/(e+Qee))},lR=function(e){const t=[],n=e.length;let r=0,i=rR,o=nR,s=e.lastIndexOf(iR);s<0&&(s=0);for(let a=0;a<s;++a)e.charCodeAt(a)>=128&&Js("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const l=r;for(let u=1,d=Oo;;d+=Oo){a>=n&&Js("invalid-input");const h=ote(e.charCodeAt(a++));h>=Oo&&Js("invalid-input"),h>xo(($c-r)/u)&&Js("overflow"),r+=h*u;const p=d<=o?wy:d>=o+Rd?Rd:d-o;if(h<p)break;const m=Oo-p;u>xo($c/m)&&Js("overflow"),u*=m}const c=t.length+1;o=aR(r-l,c,l==0),xo(r/c)>$c-i&&Js("overflow"),i+=xo(r/c),r%=c,t.splice(r++,0,i)}return String.fromCodePoint(...t)},cR=function(e){const t=[];e=sR(e);const n=e.length;let r=rR,i=0,o=nR;for(const l of e)l<128&&t.push(Lg(l));const s=t.length;let a=s;for(s&&t.push(iR);a<n;){let l=$c;for(const u of e)u>=r&&u<l&&(l=u);const c=a+1;l-r>xo(($c-i)/c)&&Js("overflow"),i+=(l-r)*c,r=l;for(const u of e)if(u<r&&++i>$c&&Js("overflow"),u===r){let d=i;for(let h=Oo;;h+=Oo){const p=h<=o?wy:h>=o+Rd?Rd:h-o;if(d<p)break;const m=d-p,b=Oo-p;t.push(Lg(x2(p+m%b,0))),d=xo(m/b)}t.push(Lg(x2(d,0))),o=aR(i,c,a===s),i=0,++a}++i,++r}return t.join("")},ste=function(e){return oR(e,function(t){return Xee.test(t)?lR(t.slice(4).toLowerCase()):t})},ate=function(e){return oR(e,function(t){return ete.test(t)?"xn--"+cR(t):t})},uR={version:"2.3.1",ucs2:{decode:sR,encode:ite},decode:lR,encode:cR,toASCII:ate,toUnicode:ste},lte={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cte={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},ute={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},dte={default:lte,zero:cte,commonmark:ute},hte=/^(vbscript|javascript|file|data):/,pte=/^data:image\/(gif|png|jpeg|webp);/;function fte(e){const t=e.trim().toLowerCase();return hte.test(t)?pte.test(t):!0}const dR=["http:","https:","mailto:"];function mte(e){const t=yy(e,!0);if(t.hostname&&(!t.protocol||dR.indexOf(t.protocol)>=0))try{t.hostname=uR.toASCII(t.hostname)}catch{}return Fd(Ay(t))}function gte(e){const t=yy(e,!0);if(t.hostname&&(!t.protocol||dR.indexOf(t.protocol)>=0))try{t.hostname=uR.toUnicode(t.hostname)}catch{}return ou(Ay(t),ou.defaultChars+"%")}function yi(e,t){if(!(this instanceof yi))return new yi(e,t);t||vy(e)||(t=e||{},e="default"),this.inline=new S0,this.block=new wp,this.core=new vb,this.renderer=new Ac,this.linkify=new Ai,this.validateLink=fte,this.normalizeLink=mte,this.normalizeLinkText=gte,this.utils=yX,this.helpers=Wm({},SX),this.options={},this.configure(e),t&&this.set(t)}yi.prototype.set=function(e){return Wm(this.options,e),this},yi.prototype.configure=function(e){const t=this;if(vy(e)){const n=e;if(e=dte[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},yi.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},yi.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},yi.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},yi.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},yi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},yi.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},yi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Tte=new Qb({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM(){return["p",0]}},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM(){return["blockquote",0]}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM(){return["div",["hr"]]}},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM(e){return["h"+e.attrs.level,0]}},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM(e){return["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]}},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")}}}],toDOM(e){return["ol",{start:e.attrs.order==1?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]}},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM(e){return["ul",{"data-tight":e.attrs.tight?"true":null},0]}},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM(){return["li",0]}},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs(e){return{src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")}}}],toDOM(e){return["img",e.attrs]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM(){return["br"]}}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>e.type.name=="em"}],toDOM(){return["em"]}},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name=="strong"},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM(){return["strong"]}},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs(e){return{href:e.getAttribute("href"),title:e.getAttribute("title")}}}],toDOM(e){return["a",e.attrs]}},code:{code:!0,parseDOM:[{tag:"code"}],toDOM(){return["code"]}}}});function bte(e,t){if(e.isText&&t.isText&&Xt.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}class Ate{constructor(t,n){this.schema=t,this.tokenHandlers=n,this.stack=[{type:t.topNodeType,attrs:null,content:[],marks:Xt.none}]}top(){return this.stack[this.stack.length-1]}push(t){this.stack.length&&this.top().content.push(t)}addText(t){if(!t)return;let n=this.top(),r=n.content,i=r[r.length-1],o=this.schema.text(t,n.marks),s;i&&(s=bte(i,o))?r[r.length-1]=s:r.push(o)}openMark(t){let n=this.top();n.marks=t.addToSet(n.marks)}closeMark(t){let n=this.top();n.marks=t.removeFromSet(n.marks)}parseTokens(t){for(let n=0;n<t.length;n++){let r=t[n],i=this.tokenHandlers[r.type];if(!i)throw new Error("Token type `"+r.type+"` not supported by Markdown parser");i(this,r,t,n)}}addNode(t,n,r){let i=this.top(),o=t.createAndFill(n,r,i?i.marks:[]);return o?(this.push(o),o):null}openNode(t,n){this.stack.push({type:t,attrs:n,content:[],marks:Xt.none})}closeNode(){let t=this.stack.pop();return this.addNode(t.type,t.attrs,t.content)}}function zu(e,t,n,r){return e.getAttrs?e.getAttrs(t,n,r):e.attrs instanceof Function?e.attrs(t):e.attrs}function Yg(e,t){return e.noCloseToken||t=="code_inline"||t=="code_block"||t=="fence"}function k2(e){return e[e.length-1]==`
`?e.slice(0,e.length-1):e}function Hg(){}function yte(e,t){let n=Object.create(null);for(let r in t){let i=t[r];if(i.block){let o=e.nodeType(i.block);Yg(i,r)?n[r]=(s,a,l,c)=>{s.openNode(o,zu(i,a,l,c)),s.addText(k2(a.content)),s.closeNode()}:(n[r+"_open"]=(s,a,l,c)=>s.openNode(o,zu(i,a,l,c)),n[r+"_close"]=s=>s.closeNode())}else if(i.node){let o=e.nodeType(i.node);n[r]=(s,a,l,c)=>s.addNode(o,zu(i,a,l,c))}else if(i.mark){let o=e.marks[i.mark];Yg(i,r)?n[r]=(s,a,l,c)=>{s.openMark(o.create(zu(i,a,l,c))),s.addText(k2(a.content)),s.closeMark(o)}:(n[r+"_open"]=(s,a,l,c)=>s.openMark(o.create(zu(i,a,l,c))),n[r+"_close"]=s=>s.closeMark(o))}else if(i.ignore)Yg(i,r)?n[r]=Hg:(n[r+"_open"]=Hg,n[r+"_close"]=Hg);else throw new RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return n.text=(r,i)=>r.addText(i.content),n.inline=(r,i)=>r.parseTokens(i.children),n.softbreak=n.softbreak||(r=>r.addText(" ")),n}class Ete{constructor(t,n,r){this.schema=t,this.tokenizer=n,this.tokens=r,this.tokenHandlers=yte(t,r)}parse(t,n={}){let r=new Ate(this.schema,this.tokenHandlers),i;r.parseTokens(this.tokenizer.parse(t,n));do i=r.closeNode();while(r.stack.length);return i||this.schema.topNodeType.createAndFill()}}function R2(e,t){for(;++t<e.length;)if(e[t].type!="list_item_open")return e[t].hidden;return!1}new Ete(Tte,yi("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,n)=>({tight:R2(t,n)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,n)=>({order:+e.attrGet("start")||1,tight:R2(t,n)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});const vte={open:"",close:"",mixable:!0};class _y{constructor(t,n,r={}){this.nodes=t,this.marks=n,this.options=r}serialize(t,n={}){n=Object.assign({},this.options,n);let r=new Ste(this.nodes,this.marks,n);return r.renderContent(t),r.out}}const ih=new _y({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){const n=t.textContent.match(/`{3,}/gm),r=n?n.sort().slice(-1)[0]+"`":"```";e.write(r+(t.attrs.params||"")+`
`),e.text(t.textContent,!1),e.write(`
`),e.write(r),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t,"  ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let n=t.attrs.order||1,r=String(n+t.childCount-1).length,i=e.repeat(" ",r+2);e.renderList(t,i,o=>{let s=String(n+o);return e.repeat(" ",r-s.length)+s+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("!["+e.esc(t.attrs.alt||"")+"]("+t.attrs.src.replace(/[\(\)]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,n,r){for(let i=r+1;i<n.childCount;i++)if(n.child(i).type!=t.type){e.write(`\\
`);return}},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open(e,t,n,r){return e.inAutolink=Dte(t,n,r),e.inAutolink?"<":"["},close(e,t,n,r){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open(e,t,n,r){return M2(n.child(r),-1)},close(e,t,n,r){return M2(n.child(r-1),1)},escape:!1}});function M2(e,t){let n=/`+/g,r,i=0;if(e.isText)for(;r=n.exec(e.text);)i=Math.max(i,r[0].length);let o=i>0&&t>0?" `":"`";for(let s=0;s<i;s++)o+="`";return i>0&&t<0&&(o+=" "),o}function Dte(e,t,n){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let r=t.child(n);return!r.isText||r.text!=e.attrs.href||r.marks[r.marks.length-1]!=e?!1:n==t.childCount-1||!e.isInSet(t.child(n+1).marks)}class Ste{constructor(t,n,r){this.nodes=t,this.marks=n,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,typeof this.options.tightLists>"u"&&(this.options.tightLists=!1),typeof this.options.hardBreakNodeName>"u"&&(this.options.hardBreakNodeName="hard_break")}flushClose(t=2){if(this.closed){if(this.atBlank()||(this.out+=`
`),t>1){let n=this.delim,r=/\s+$/.exec(n);r&&(n=n.slice(0,n.length-r[0].length));for(let i=1;i<t;i++)this.out+=n+`
`}this.closed=null}}getMark(t){let n=this.marks[t];if(!n){if(this.options.strict!==!1)throw new Error(`Mark type \`${t}\` not supported by Markdown renderer`);n=vte}return n}wrapBlock(t,n,r,i){let o=this.delim;this.write(n??t),this.delim+=t,i(),this.delim=o,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+=`
`)}write(t){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),t&&(this.out+=t)}closeBlock(t){this.closed=t}text(t,n=!0){let r=t.split(`
`);for(let i=0;i<r.length;i++)this.write(),!n&&r[i][0]=="["&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=n?this.esc(r[i],this.atBlockStart):r[i],i!=r.length-1&&(this.out+=`
`)}render(t,n,r){if(this.nodes[t.type.name])this.nodes[t.type.name](this,t,n,r);else{if(this.options.strict!==!1)throw new Error("Token type `"+t.type.name+"` not supported by Markdown renderer");t.type.isLeaf||(t.type.inlineContent?this.renderInline(t):this.renderContent(t),t.isBlock&&this.closeBlock(t))}}renderContent(t){t.forEach((n,r,i)=>this.render(n,t,i))}renderInline(t,n=!0){this.atBlockStart=n;let r=[],i="",o=(s,a,l)=>{let c=s?s.marks:[];s&&s.type.name===this.options.hardBreakNodeName&&(c=c.filter(b=>{if(l+1==t.childCount)return!1;let A=t.child(l+1);return b.isInSet(A.marks)&&(!A.isText||/\S/.test(A.text))}));let u=i;if(i="",s&&s.isText&&c.some(b=>{let A=this.getMark(b.type.name);return A&&A.expelEnclosingWhitespace&&!b.isInSet(r)})){let[b,A,v]=/^(\s*)(.*)$/m.exec(s.text);A&&(u+=A,s=v?s.withText(v):null,s||(c=r))}if(s&&s.isText&&c.some(b=>{let A=this.getMark(b.type.name);return A&&A.expelEnclosingWhitespace&&(l==t.childCount-1||!b.isInSet(t.child(l+1).marks))})){let[b,A,v]=/^(.*?)(\s*)$/m.exec(s.text);v&&(i=v,s=A?s.withText(A):null,s||(c=r))}let d=c.length?c[c.length-1]:null,h=d&&this.getMark(d.type.name).escape===!1,p=c.length-(h?1:0);e:for(let b=0;b<p;b++){let A=c[b];if(!this.getMark(A.type.name).mixable)break;for(let v=0;v<r.length;v++){let D=r[v];if(!this.getMark(D.type.name).mixable)break;if(A.eq(D)){b>v?c=c.slice(0,v).concat(A).concat(c.slice(v,b)).concat(c.slice(b+1,p)):v>b&&(c=c.slice(0,b).concat(c.slice(b+1,v)).concat(A).concat(c.slice(v,p)));continue e}}}let m=0;for(;m<Math.min(r.length,p)&&c[m].eq(r[m]);)++m;for(;m<r.length;)this.text(this.markString(r.pop(),!1,t,l),!1);if(u&&this.text(u),s){for(;r.length<p;){let b=c[r.length];r.push(b),this.text(this.markString(b,!0,t,l),!1),this.atBlockStart=!1}h&&s.isText?this.text(this.markString(d,!0,t,l)+s.text+this.markString(d,!1,t,l+1),!1):this.render(s,t,l),this.atBlockStart=!1}s?.isText&&s.nodeSize>0&&(this.atBlockStart=!1)};t.forEach(o),o(null,0,t.childCount),this.atBlockStart=!1}renderList(t,n,r){this.closed&&this.closed.type==t.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let i=typeof t.attrs.tight<"u"?t.attrs.tight:this.options.tightLists,o=this.inTightList;this.inTightList=i,t.forEach((s,a,l)=>{l&&i&&this.flushClose(1),this.wrapBlock(n,r(l),t,()=>this.render(s,t,l))}),this.inTightList=o}esc(t,n=!1){return t=t.replace(/[`*\\~\[\]_]/g,(r,i)=>r=="_"&&i>0&&i+1<t.length&&t[i-1].match(/\w/)&&t[i+1].match(/\w/)?r:"\\"+r),n&&(t=t.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(t=t.replace(this.options.escapeExtraCharacters,"\\$&")),t}quote(t){let n=t.indexOf('"')==-1?'""':t.indexOf("'")==-1?"''":"()";return n[0]+t+n[1]}repeat(t,n){let r="";for(let i=0;i<n;i++)r+=t;return r}markString(t,n,r,i){let o=this.getMark(t.type.name),s=n?o.open:o.close;return typeof s=="string"?s:s(this,t,r,i)}getEnclosingWhitespace(t){return{leading:(t.match(/^(\s+)/)||[void 0])[0],trailing:(t.match(/(\s+)$/)||[void 0])[0]}}}var Zg={exports:{}},B2,I2;function wte(){return I2||(I2=1,B2=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}),B2}var Ih={},L2;function _te(){if(L2)return Ih;L2=1;var e=Object.prototype.hasOwnProperty,t;function n(s){try{return decodeURIComponent(s.replace(/\+/g," "))}catch{return null}}function r(s){try{return encodeURIComponent(s)}catch{return null}}function i(s){for(var a=/([^=?#&]+)=?([^&]*)/g,l={},c;c=a.exec(s);){var u=n(c[1]),d=n(c[2]);u===null||d===null||u in l||(l[u]=d)}return l}function o(s,a){a=a||"";var l=[],c,u;typeof a!="string"&&(a="?");for(u in s)if(e.call(s,u)){if(c=s[u],!c&&(c===null||c===t||isNaN(c))&&(c=""),u=r(u),c=r(c),u===null||c===null)continue;l.push(u+"="+c)}return l.length?a+l.join("&"):""}return Ih.stringify=o,Ih.parse=i,Ih}var Pg,Y2;function Cte(){if(Y2)return Pg;Y2=1;var e=wte(),t=_te(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,o=/:\d+$/,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,a=/^[a-zA-Z]:/;function l(D){return(D||"").toString().replace(n,"")}var c=[["#","hash"],["?","query"],function(D,C){return h(C.protocol)?D.replace(/\\/g,"/"):D},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],u={hash:1,query:1};function d(D){var C;typeof window<"u"?C=window:typeof hs<"u"?C=hs:typeof self<"u"?C=self:C={};var S=C.location||{};D=D||S;var O={},k=typeof D,Z;if(D.protocol==="blob:")O=new b(unescape(D.pathname),{});else if(k==="string"){O=new b(D,{});for(Z in u)delete O[Z]}else if(k==="object"){for(Z in D)Z in u||(O[Z]=D[Z]);O.slashes===void 0&&(O.slashes=i.test(D.href))}return O}function h(D){return D==="file:"||D==="ftp:"||D==="http:"||D==="https:"||D==="ws:"||D==="wss:"}function p(D,C){D=l(D),D=D.replace(r,""),C=C||{};var S=s.exec(D),O=S[1]?S[1].toLowerCase():"",k=!!S[2],Z=!!S[3],W=0,U;return k?Z?(U=S[2]+S[3]+S[4],W=S[2].length+S[3].length):(U=S[2]+S[4],W=S[2].length):Z?(U=S[3]+S[4],W=S[3].length):U=S[4],O==="file:"?W>=2&&(U=U.slice(2)):h(O)?U=S[4]:O?k&&(U=U.slice(2)):W>=2&&h(C.protocol)&&(U=S[4]),{protocol:O,slashes:k||h(O),slashesCount:W,rest:U}}function m(D,C){if(D==="")return C;for(var S=(C||"/").split("/").slice(0,-1).concat(D.split("/")),O=S.length,k=S[O-1],Z=!1,W=0;O--;)S[O]==="."?S.splice(O,1):S[O]===".."?(S.splice(O,1),W++):W&&(O===0&&(Z=!0),S.splice(O,1),W--);return Z&&S.unshift(""),(k==="."||k==="..")&&S.push(""),S.join("/")}function b(D,C,S){if(D=l(D),D=D.replace(r,""),!(this instanceof b))return new b(D,C,S);var O,k,Z,W,U,w,z=c.slice(),V=typeof C,L=this,se=0;for(V!=="object"&&V!=="string"&&(S=C,C=null),S&&typeof S!="function"&&(S=t.parse),C=d(C),k=p(D||"",C),O=!k.protocol&&!k.slashes,L.slashes=k.slashes||O&&C.slashes,L.protocol=k.protocol||C.protocol||"",D=k.rest,(k.protocol==="file:"&&(k.slashesCount!==2||a.test(D))||!k.slashes&&(k.protocol||k.slashesCount<2||!h(L.protocol)))&&(z[3]=[/(.*)/,"pathname"]);se<z.length;se++){if(W=z[se],typeof W=="function"){D=W(D,L);continue}Z=W[0],w=W[1],Z!==Z?L[w]=D:typeof Z=="string"?(U=Z==="@"?D.lastIndexOf(Z):D.indexOf(Z),~U&&(typeof W[2]=="number"?(L[w]=D.slice(0,U),D=D.slice(U+W[2])):(L[w]=D.slice(U),D=D.slice(0,U)))):(U=Z.exec(D))&&(L[w]=U[1],D=D.slice(0,U.index)),L[w]=L[w]||O&&W[3]&&C[w]||"",W[4]&&(L[w]=L[w].toLowerCase())}S&&(L.query=S(L.query)),O&&C.slashes&&L.pathname.charAt(0)!=="/"&&(L.pathname!==""||C.pathname!=="")&&(L.pathname=m(L.pathname,C.pathname)),L.pathname.charAt(0)!=="/"&&h(L.protocol)&&(L.pathname="/"+L.pathname),e(L.port,L.protocol)||(L.host=L.hostname,L.port=""),L.username=L.password="",L.auth&&(U=L.auth.indexOf(":"),~U?(L.username=L.auth.slice(0,U),L.username=encodeURIComponent(decodeURIComponent(L.username)),L.password=L.auth.slice(U+1),L.password=encodeURIComponent(decodeURIComponent(L.password))):L.username=encodeURIComponent(decodeURIComponent(L.auth)),L.auth=L.password?L.username+":"+L.password:L.username),L.origin=L.protocol!=="file:"&&h(L.protocol)&&L.host?L.protocol+"//"+L.host:"null",L.href=L.toString()}function A(D,C,S){var O=this;switch(D){case"query":typeof C=="string"&&C.length&&(C=(S||t.parse)(C)),O[D]=C;break;case"port":O[D]=C,e(C,O.protocol)?C&&(O.host=O.hostname+":"+C):(O.host=O.hostname,O[D]="");break;case"hostname":O[D]=C,O.port&&(C+=":"+O.port),O.host=C;break;case"host":O[D]=C,o.test(C)?(C=C.split(":"),O.port=C.pop(),O.hostname=C.join(":")):(O.hostname=C,O.port="");break;case"protocol":O.protocol=C.toLowerCase(),O.slashes=!S;break;case"pathname":case"hash":if(C){var k=D==="pathname"?"/":"#";O[D]=C.charAt(0)!==k?k+C:C}else O[D]=C;break;case"username":case"password":O[D]=encodeURIComponent(C);break;case"auth":var Z=C.indexOf(":");~Z?(O.username=C.slice(0,Z),O.username=encodeURIComponent(decodeURIComponent(O.username)),O.password=C.slice(Z+1),O.password=encodeURIComponent(decodeURIComponent(O.password))):O.username=encodeURIComponent(decodeURIComponent(C))}for(var W=0;W<c.length;W++){var U=c[W];U[4]&&(O[U[1]]=O[U[1]].toLowerCase())}return O.auth=O.password?O.username+":"+O.password:O.username,O.origin=O.protocol!=="file:"&&h(O.protocol)&&O.host?O.protocol+"//"+O.host:"null",O.href=O.toString(),O}function v(D){(!D||typeof D!="function")&&(D=t.stringify);var C,S=this,O=S.host,k=S.protocol;k&&k.charAt(k.length-1)!==":"&&(k+=":");var Z=k+(S.protocol&&S.slashes||h(S.protocol)?"//":"");return S.username?(Z+=S.username,S.password&&(Z+=":"+S.password),Z+="@"):S.password?(Z+=":"+S.password,Z+="@"):S.protocol!=="file:"&&h(S.protocol)&&!O&&S.pathname!=="/"&&(Z+="@"),(O[O.length-1]===":"||o.test(S.hostname)&&!S.port)&&(O+=":"),Z+=O+S.pathname,C=typeof S.query=="object"?D(S.query):S.query,C&&(Z+=C.charAt(0)!=="?"?"?"+C:C),S.hash&&(Z+=S.hash),Z}return b.prototype={set:A,toString:v},b.extractProtocol=p,b.location=d,b.trimLeft=l,b.qs=t,Pg=b,Pg}var H2;function Nte(){return H2||(H2=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(l){return l&&typeof l=="object"&&"default"in l?l.default:l}var r=n(Cte()),i=function(){function l(c,u){var d=[],h=!0,p=!1,m=void 0;try{for(var b=c[Symbol.iterator](),A;!(h=(A=b.next()).done)&&(d.push(A.value),!(u&&d.length===u));h=!0);}catch(v){p=!0,m=v}finally{try{!h&&b.return&&b.return()}finally{if(p)throw m}}return d}return function(c,u){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return l(c,u);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function o(l,c){return'<span class="mention" data-type="'+l[c].mention.type+'" data-id="'+l[c].mention.id+'">'+l[c].mention.label+"</span>"}function s(l){var c=r(l);return{type:c.host,id:c.pathname.slice(1)}}function a(l){var c=/@$/;l.tokens.forEach(function(u){if(u.type==="inline"){var d=u.children;d.forEach(function(h,p){if(!(p+3>d.length)){var m=d.slice(p,p+4),b=i(m,4),A=b[0],v=b[1],D=b[2],C=b[3],S=C===void 0?{}:C;if(D.type==="link_close"&&(S=D,D=null),A.type==="text"&&c.test(A.content)&&v.type==="link_open"&&S.type==="link_close"){var O=v.attrs.reduce(function(k,Z){return Z[0]==="href"?Z[1]:k},"");A.content=A.content.slice(0,-1),v.type="mention",v.mention=s(O),v.mention.label=D&&D.content||"",d.splice(p+2,D?2:1)}}}),u.children=d}})}e.exports=function(l,c){l.renderer.rules.mention=o,l.core.ruler.after("inline","mention",a)},t.renderMention=o,t.parseUri=s,t.parseMentions=a}(Zg,Zg.exports)),Zg.exports}var Fte=Nte();const Ote=$l(Fte);var Z2,P2;function xte(){return P2||(P2=1,Z2=function(e,t){var n=3,r="-",i=r.charCodeAt(0),o=r.length;function s(a,l,c,u){var d,h,p,m,b,A,v,D=!1,C=a.bMarks[l]+a.tShift[l],S=a.eMarks[l];if(l!==0||i!==a.src.charCodeAt(0))return!1;for(d=C+1;d<=S;d++)if(r[(d-C)%o]!==a.src[d]){v=d+1;break}if(p=Math.floor((d-C)/o),p<n)return!1;if(d-=(d-C)%o,u)return!0;for(h=l;h++,!(h>=c||a.src.slice(C,S)==="..."||(C=a.bMarks[h]+a.tShift[h],S=a.eMarks[h],C<S&&a.sCount[h]<a.blkIndent));)if(i===a.src.charCodeAt(C)&&!(a.sCount[h]-a.blkIndent>=4)){for(d=C+1;d<=S&&r[(d-C)%o]===a.src[d];d++);if(!(Math.floor((d-C)/o)<p)&&(d-=(d-C)%o,d=a.skipSpaces(d),!(d<S))){D=!0;break}}return b=a.parentType,A=a.lineMax,a.parentType="container",a.lineMax=h,m=a.push("front_matter",null,0),m.hidden=!0,m.markup=a.src.slice(l,d),m.block=!0,m.map=[l,h+(D?1:0)],m.meta=a.src.slice(v,C-1),a.parentType=b,a.lineMax=A,a.line=h+(D?1:0),t(m.meta),!0}e.block.ruler.before("table","front_matter",s,{alt:["paragraph","reference","blockquote","list"]})}),Z2}var kte=xte();const Rte=$l(kte),$2=new Set([!0,!1,"alt","title"]);function hR(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function pR(e,t){e&&e.attrs&&(e.attrs=hR(e.attrs,t))}function Mte(e,t){if(!$2.has(e))throw new TypeError(`figcaption must be one of: ${[...$2]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(pR(t,"title"),n[1]):void 0}function Bte(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let i=1,o=n.tokens.length;i<o-1;++i){const s=n.tokens[i];if(s.type!=="inline"||!s.children||s.children.length!==1&&s.children.length!==3||s.children.length===1&&s.children[0].type!=="image")continue;if(s.children.length===3){const[c,u,d]=s.children;if(c.type!=="link_open"||u.type!=="image"||d.type!=="link_close")continue}if(i!==0&&n.tokens[i-1].type!=="paragraph_open"||i!==o-1&&n.tokens[i+1].type!=="paragraph_close")continue;const a=n.tokens[i-1];let l;if(a.type="figure_open",a.tag="figure",n.tokens[i+1].type="figure_close",n.tokens[i+1].tag="figure",t.dataType&&n.tokens[i-1].attrPush(["data-type","image"]),t.link&&s.children.length===1){[l]=s.children;const c=new n.Token("link_open","a",1);c.attrPush(["href",l.attrGet("src")]),s.children.unshift(c),s.children.push(new n.Token("link_close","a",-1))}if(l=s.children.length===1?s.children[0]:s.children[1],t.figcaption){const c=Mte(t.figcaption,l);if(c){const[u]=e.parseInline(c,n.env);s.children.push(new n.Token("figcaption_open","figcaption",1)),s.children.push(...u.children),s.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=hR(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const c=t.copyAttrs===!0?"":t.copyAttrs;a.attrs=l.attrs.filter(([u])=>u.match(c)).map(u=>Array.from(u))}if(t.tabindex&&(n.tokens[i-1].attrPush(["tabindex",r]),r++),t.lazy&&(l.attrs.some(([c])=>c==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([c])=>c==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let c=!1;for(let u=0,d=l.attrs.length;u<d&&!c;u++){const h=l.attrs[u];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,c=!0)}c||l.attrs.push(["class",t.classes])}if(t.removeSrc){const c=l.attrs.find(([u])=>u==="src");l.attrs.push(["data-src",c[1]]),pR(l,"src")}}})}function Ite(e,t,n){function r(h){return h.trim().split(" ",2)[0]===t}function i(h,p,m,b,A){return h[p].nesting===1&&h[p].attrJoin("class",t),A.renderToken(h,p,m,b,A)}n=n||{};const o=3,s=n.marker||":",a=s.charCodeAt(0),l=s.length,c=n.validate||r,u=n.render||i;function d(h,p,m,b){let A,v=!1,D=h.bMarks[p]+h.tShift[p],C=h.eMarks[p];if(a!==h.src.charCodeAt(D))return!1;for(A=D+1;A<=C&&s[(A-D)%l]===h.src[A];A++);const S=Math.floor((A-D)/l);if(S<o)return!1;A-=(A-D)%l;const O=h.src.slice(D,A),k=h.src.slice(A,C);if(!c(k,O))return!1;if(b)return!0;let Z=p;for(;Z++,!(Z>=m||(D=h.bMarks[Z]+h.tShift[Z],C=h.eMarks[Z],D<C&&h.sCount[Z]<h.blkIndent));)if(a===h.src.charCodeAt(D)&&!(h.sCount[Z]-h.blkIndent>=4)){for(A=D+1;A<=C&&s[(A-D)%l]===h.src[A];A++);if(!(Math.floor((A-D)/l)<S)&&(A-=(A-D)%l,A=h.skipSpaces(A),!(A<C))){v=!0;break}}const W=h.parentType,U=h.lineMax;h.parentType="container",h.lineMax=Z;const w=h.push("container_"+t+"_open","div",1);w.markup=O,w.block=!0,w.info=k,w.map=[p,Z],h.md.block.tokenize(h,p+1,Z);const z=h.push("container_"+t+"_close","div",-1);return z.markup=h.src.slice(D,A),z.block=!0,h.parentType=W,h.lineMax=U,h.line=Z+(v?1:0),!0}e.block.ruler.before("fence","container_"+t,d,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules["container_"+t+"_open"]=u,e.renderer.rules["container_"+t+"_close"]=u}const Sb=["info","warn","error","success"],Lte=e=>(t,n,r,i,o)=>{const s=t[n];return s.nesting===1&&(s.attrSet("data-callout",e),s.attrJoin("class",`callout callout-${e}`)),o.renderToken(t,n,r,i,o)},Yte=e=>(Sb.forEach(t=>{e.use(Ite,t,{render:Lte(t)})}),e),U2=/^<details>\s*$/,Hte=new RegExp("(?<=^<details>\\s*<summary>).*(?=<\\/summary>\\s*$)"),Zte=/^<\/details>\s*$/,Pte=new RegExp("(?<=^<summary>).*(?=<\\/summary>\\s*$)");function $te(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],s=!1,a=null,l=2;const c=e.src.slice(i,o).match(Hte);if(c)a=c[0].trim(),l=1;else if(!e.src.slice(i,o).match(U2))return!1;if(r)return!0;let u=0,d=t;for(;d++,!(d>=n);){i=e.bMarks[d]+e.tShift[d],o=e.eMarks[d];const A=e.src.slice(i,o).match(Pte);if(A&&a===null){a=A[0].trim();continue}if(e.src.slice(i,o).match(U2)&&u++,!!e.src.slice(i,o).match(Zte))if(u>0)u--;else{s=!0;break}}if(!s||a===null)return!1;const h=e.parentType,p=e.lineMax;e.parentType="reference",e.lineMax=d;let m=e.push("details_open","details",1);m.block=!0,m.info=a,m.map=[t,d],m=e.push("details_summary","summary",1),m.block=!1;const b=[];e.md.inline.parse(a,e.md,e.env,b);for(const A of b)m=e.push(A.type,A.tag,A.nesting),m.block=A.block,m.markup=A.markup,m.content=A.content;return m=e.push("details_summary","summary",-1),e.md.block.tokenize(e,t+l,d),m=e.push("details_close","details",-1),m.block=!0,e.parentType=h,e.lineMax=p,e.line=d+1,!0}function Ute(e){e.block.ruler.before("fence","details",$te,{alt:["paragraph","reference","blockquote","list"]})}function zte(e){e.inline.ruler.at("newline",(t,n)=>{const r=Qk(t,n);return r&&t.tokens.length&&t.tokens[t.tokens.length-1].type==="hardbreak"&&t.tokens[t.tokens.length-1].attrSet("syntax","  "),r}),e.inline.ruler.at("escape",(t,n)=>{const r=Jk(t,n);return r&&t.tokens.length&&t.tokens[t.tokens.length-1].type==="hardbreak"&&t.tokens[t.tokens.length-1].attrSet("syntax","\\"),r}),e.inline.ruler.after("html_inline","html_breaks",t=>{const n=t.src.slice(t.pos).match(/^\s*<br\s*\/?>/);return n?(t.push("hardbreak","br",0).attrPush(["syntax","html"]),t.pos+=n[0].length,!0):!1}),e.renderer.rules.hardbreak=(t,n,r)=>`<br data-syntax="${t[n].attrGet("syntax")}" ${r.xhtmlOut?"/":""}>`}function Vte(e){const t=/(\n(?<linestart>[#\-*+>])|(?<special>[`*\\~[\]]+))/;e.core.ruler.before("text_join","tag-markdown-syntax",n=>{const r=new n.Token("keep_md_open","span",1);r.attrSet("class","keep-md");const i=new n.Token("keep_md_close","span",-1);for(let o=0;o<n.tokens.length;o++){const s=n.tokens[o];if(s.type==="inline")for(let a=0;a<s.children.length;a++){const l=s.children[a];if(l.type==="text"){const c=t.exec(l.content);if(c){const u=c.groups.linestart?c.index+1:c.index,d=c.groups.linestart??c.groups.special,h=u+d.length;s.children.splice(a,1,Object.assign({},l,{content:l.content.slice(0,u)}),Object.assign({},r),Object.assign({},l,{content:l.content.slice(u,h)}),Object.assign({},i),Object.assign({},l,{content:l.content.slice(h)})),a+=3}}}}return!1})}function jte(e,t){const[n,r,i]=e.slice(t-1,t+2);return n?.type==="paragraph_open"&&r.type==="inline"&&r.children&&r.children.length===3&&r.children[0].type==="link_open"&&r.children[0].attrGet("title")==="preview"&&r.children[1].type==="text"&&r.children[2].type==="link_close"&&i.type==="paragraph_close"}function Gte(e,t){e.splice(t+1,1),e.splice(t-1,1)}const qte=e=>{function t({tokens:n}){for(let r=1,i=n.length;r<i-1;++r)jte(n,r)&&Gte(n,r)}e.core.ruler.before("linkify","link_previews",t)};function Wte(e){e.core.ruler.after("task-lists","split-mixed-task-lists",t=>{const n=t.tokens;for(let r=0;r<n.length;r++){const i=n[r];if(!$g(i,"contains-task-list"))continue;const o=n[r+1],s=$g(o,"task-list-item");s||(i.attrs.splice(i.attrIndex("class")),i.attrs.length===0&&(i.attrs=null));const a=Qte(n,r,l=>l.nesting===1&&$g(l,"task-list-item")!==s);a>r&&Kte(n,a,t.Token)}return!1})}function $g(e,t){return e.attrGet("class")?.split(" ").includes(t)||!1}function Kte(e,t,n){const r=new n("bullet_list_close","ul",-1);r.block=!0;const i=new n("bullet_list_open","ul",1);i.attrSet("class","contains-task-list"),i.block=!0,i.markup=e[t].markup,e.splice(t,0,r,i)}function Qte(e,t,n){const r=e[t].level+1;for(let i=t+1;i<e.length;i++){const o=e[i];if(o.level<r)return-1;if(o.level===r&&n(e[i]))return i}return-1}const Cy=/^ *\[([\sx])] /i;function Jte(e,t={enabled:!1,label:!1,lineNumber:!1}){e.core.ruler.after("inline","task-lists",n=>Xte(n,t)),e.renderer.rules.taskListItemCheckbox=n=>{const r=n[0],i=r.attrGet("checked")?'checked="" ':"",o=r.attrGet("disabled")?'disabled="" ':"",s=r.attrGet("line"),a=`id="${r.attrGet("id")}" `,l=s&&t.lineNumber?`data-line="${s}" `:"";return`<input class="task-list-item-checkbox" type="checkbox" ${i}${o}${l}${a}/>`},e.renderer.rules.taskListItemLabel_close=()=>"</label>",e.renderer.rules.taskListItemLabel_open=n=>`<label for="${n[0].attrGet("id")}">`}function Xte(e,t){const n=e.tokens;for(let r=2;r<n.length;r++){if(!tne(n,r))continue;nne(n[r],t),n[r-2].attrJoin("class",`task-list-item ${t.enabled?" enabled":""}`);const i=ene(n,r-2);i&&((i.attrGet("class")??"").match(/(^| )contains-task-list/)||i.attrJoin("class","contains-task-list"))}return!1}function ene(e,t){const n=e[t].level-1;for(let r=t-1;r>=0;r--)if(e[r].level===n)return e[r]}function tne(e,t){return ane(e[t])&&lne(e[t-1])&&cne(e[t-2])&&une(e[t])}function nne(e,t){if(e.children==null)return;const n=rne(e);e.children.splice(0,0,ine(e,t.enabled,n)),e.children[1].content=e.children[1].content.replace(Cy,""),t.label&&(e.children.splice(1,0,one(n)),e.children.push(sne()))}function rne(e){return e.map?`task-item-${e.map[0]}`:`task-item-${Math.ceil(Math.random()*(1e4*1e3)-1e3)}`}function ine(e,t,n){const r=new si("taskListItemCheckbox","",0);return t||r.attrSet("disabled","true"),e.map&&r.attrSet("line",e.map[0].toString()),r.attrSet("id",n),Cy.exec(e.content)?.[1].toLowerCase()==="x"&&r.attrSet("checked","true"),r}function one(e){const t=new si("taskListItemLabel_open","",1);return t.attrSet("id",e),t}function sne(){return new si("taskListItemLabel_close","",-1)}function ane(e){return e.type==="inline"}function lne(e){return e.type==="paragraph_open"}function cne(e){return e.type==="list_item_open"}function une(e){return Cy.test(e.content)}function dne(e){e.inline.ruler2.after("emphasis","underline",t=>{const n=t.tokens;for(let r=n.length-1;r>0;r--){const i=n[r];i.markup==="__"&&(i.type==="strong_open"&&(n[r].tag="u",n[r].type="u_open"),i.type==="strong_close"&&(n[r].tag="u",n[r].type="u_close"))}return!1})}const _l=yi("commonmark",{html:!1,breaks:!1}).enable("strikethrough").enable("table").use(Jte,{enable:!0,labelAfter:!0}).use(Rte,e=>{}).use(Wte).use(dne).use(zte).use(Yte).use(Ute).use(qte).use(Vte).use(Ote).use(Bte);_l.renderer.rules.front_matter=(e,t,n)=>`<pre id="frontmatter"><code>${us(e[t].meta)}</code></pre>`,_l.renderer.rules.bullet_list_open=(e,t,n)=>(e[t].attrs=[...e[t].attrs||[],["data-bullet",e[t].markup]],_l.renderer.renderToken(e,t,n));function hne(e){const t=new DOMParser().parseFromString(e,"text/html");return pne(t,n=>{fne(n)&&(n.textContent=n.textContent.replaceAll(`
`," "))}),t.body.innerHTML}function pne(e,t){const n=e.createNodeIterator(e.body,NodeFilter.SHOW_TEXT);let r=n.nextNode();for(;r;)t(r),r=n.nextNode()}function fne(e){const t=["normal","nowrap"];let n=e.parentElement;for(;n;){const r=getComputedStyle(n)?.getPropertyValue("white-space");if(r)return t.includes(r);if(n.tagName==="PRE")return!1;n=n.parentElement}return!0}const fR=pn.create({name:"markdown",extendMarkSchema(e){const t={name:e.name,options:e.options,storage:e.storage};return{toMarkdown:$e(e,"toMarkdown",t)}},extendNodeSchema(e){const t={name:e.name,options:e.options,storage:e.storage};return{toMarkdown:$e(e,"toMarkdown",t)}},addProseMirrorPlugins(){let e=!1;return[new kt({key:new Lt("pasteEventHandler"),props:{handleDOMEvents:{mouseup(t,n){return e=n.shiftKey,!1}},handleKeyDown(t,n){return e=n.shiftKey,!1},clipboardTextParser(t,n,r,i){const o=Mc.fromSchema(i.state.schema),s=document.cloneNode(!1),a=s.createElement("div");if(e)for(const l of t.split(`

`)){const c=s.createElement("p");c.innerText=l,a.append(c)}else a.innerHTML=_l.render(t);return o.parseSlice(a,{preserveWhitespace:!0,context:n})},clipboardTextSerializer:t=>{const n=r=>r.content.childCount>1?mne(this.editor.schema).serialize(r.content):r.isLeaf?r.textContent:n(r.content.firstChild);return n(t)},transformPastedHTML:hne}})]}}),Dbe=({nodes:e,marks:t})=>({serializer:new _y(gR(e),Tne(t)),serialize(n,r){return this.serializer.serialize(n,{...r,tightLists:!0})}}),mne=({nodes:e,marks:t})=>({serializer:new _y(gR(e),gne(t)),serialize(n,r){return this.serializer.serialize(n,{...r,tightLists:!0})}}),gne=e=>{const t={open:"",close:"",mixable:!0,expelEnclosingWhitespace:!0},n=Ny(ih.marks),r=Object.entries({...n,...e}).map(([i,o])=>[i,t]);return Object.fromEntries(r)},mR=e=>{const t=Object.entries(e).map(([n,r])=>[n,r.spec.toMarkdown]).filter(([,n])=>n);return Object.fromEntries(t)},gR=e=>{const t=Ny(ih.nodes),n=mR(e);return{...t,...n}},Tne=e=>{const t=Ny(ih.marks),n=mR(e);return{...t,...n}},Ny=e=>{const t=n=>n.replace(/_(\w)/g,(r,i)=>i.toUpperCase());return Object.fromEntries(Object.entries(e).map(([n,r])=>[t(n),r]))};function TR(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}function bne(e,t){const n=jd(e),r=n.shareToken?"/public":"",i=io(`apps/text${r}/session/${n.documentId}/push`);return fr.post(i,{documentId:n.documentId,sessionId:n.sessionId,sessionToken:n.sessionToken,token:n.shareToken,baseVersionEtag:n.baseVersionEtag,version:t.version,steps:t.steps.filter(o=>o),awareness:t.awareness})}function Ane(e,t){const n=jd(e),r=n.shareToken?"/public":"",i=io(`apps/text${r}/session/${n.documentId}/sync`);return fr.post(i,{documentId:n.documentId,sessionId:n.sessionId,sessionToken:n.sessionToken,token:n.shareToken,filePath:n.filePath,baseVersionEtag:n.baseVersionEtag,version:t.version})}const bR=0,Cf=1,Fy=2,Nf=(e,t)=>{Xe(e,bR);const n=FO(t);jn(e,n)},AR=(e,t,n)=>{Xe(e,Cf),jn(e,YA(t,n))},yne=(e,t,n)=>AR(t,n,_r(e)),yR=(e,t,n)=>{try{U8(t,_r(e),n)}catch(r){console.error("Caught error while handling a Yjs update",r)}},ER=(e,t)=>{Xe(e,Fy),jn(e,t)},Ene=yR,z2=(e,t,n,r)=>{const i=Tt(e);switch(i){case bR:yne(e,t,n);break;case Cf:yR(e,n,r);break;case Fy:Ene(e,n,r);break;default:throw new Error("Unknown message type")}return i};function Oy(e){const t=new Uint8Array(e);return xA(t)}function vne(e){return hO(e)}const vR=new Map;class Dne{constructor(t){this.room=t,this.onmessage=null,this._onChange=n=>n.key===t&&this.onmessage!==null&&this.onmessage({data:hO(n.newValue||"")}),e8(this._onChange)}postMessage(t){oO.setItem(this.room,xA(f8(t)))}close(){t8(this._onChange)}}const Sne=typeof BroadcastChannel>"u"?Dne:BroadcastChannel,xy=e=>ji(vR,e,()=>{const t=_s(),n=new Sne(e);return n.onmessage=r=>t.forEach(i=>i(r.data,"broadcastchannel")),{bc:n,subs:t}}),wne=(e,t)=>(xy(e).subs.add(t),t),_ne=(e,t)=>{const n=xy(e),r=n.subs.delete(t);return r&&n.subs.size===0&&(n.bc.close(),vR.delete(e)),r},yc=(e,t,n=null)=>{const r=xy(e);r.bc.postMessage(t),r.subs.forEach(i=>i(t,n))},Cne=e=>i8(e,(t,n)=>`${encodeURIComponent(n)}=${encodeURIComponent(t)}`).join("&"),Nne=0,Fne=(e,t,n)=>{switch(Tt(e)){case Nne:n(t,Aa(e))}},gs=0,DR=3,Uc=1,One=2,w0=[];w0[gs]=(e,t,n,r,i)=>{Xe(e,gs);const o=Y7(t),s=n.doc.store.pendingStructs,a=z2(t,e,n.doc,n);!s&&n.doc.store.pendingStructs&&!e.hasContent&&(console.error("Failed to integrate yjs message. Trying to resync."),Xe(e,gs),Nf(e,n.doc)),r&&((a===Cf||a===Fy)&&z2(o,er(),n.remote,n),a===Cf&&!n.synced&&(n.synced=!0))},w0[DR]=(e,t,n,r,i)=>{Xe(e,Uc),jn(e,Y0(n.awareness,[n.doc.clientID]))},w0[Uc]=(e,t,n,r,i)=>{nH(n.awareness,_r(t),n)},w0[One]=(e,t,n,r,i)=>{Fne(t,n.doc,(o,s)=>xne(n,s))};const V2=3e4,xne=(e,t)=>console.warn(`Permission denied to access ${e.url}.
${t}`),SR=(e,t,n)=>{const r=xs(t),i=er(),o=Tt(r),s=e.messageHandlers[o];return s?s(i,r,e,n,o):console.error("Unable to compute message"),i},wR=e=>{if(e.shouldConnect&&e.ws===null){const t=new e._WS(e.url,e.protocols);t.binaryType="arraybuffer",e.ws=t,e.wsconnecting=!0,e.wsconnected=!1,e.synced=!1,t.onmessage=n=>{e.wsLastMessageReceived=Ca();const r=SR(e,new Uint8Array(n.data),!0);vA(r)>1&&t.send(Cn(r))},t.onerror=n=>{e.emit("connection-error",[n,e])},t.onclose=n=>{e.emit("connection-close",[n,e]),e.ws=null,e.wsconnecting=!1,e.wsconnected?(e.wsconnected=!1,e.synced=!1,qA(e.awareness,Array.from(e.awareness.getStates().keys()).filter(r=>r!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(wR,ko(m7(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime),e)},t.onopen=()=>{e.wsLastMessageReceived=Ca(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]);const n=er();if(Xe(n,gs),Nf(n,e.doc),t.send(Cn(n)),e.awareness.getLocalState()!==null){const r=er();Xe(r,Uc),jn(r,Y0(e.awareness,[e.doc.clientID])),t.send(Cn(r))}},e.emit("status",[{status:"connecting"}])}},Ug=(e,t)=>{const n=e.ws;e.wsconnected&&n&&n.readyState===n.OPEN&&n.send(t),e.bcconnected&&yc(e.bcChannel,t,e)};class Sbe extends JF{constructor(t,n,r,{connect:i=!0,awareness:o=new tH(r),params:s={},protocols:a=[],WebSocketPolyfill:l=WebSocket,resyncInterval:c=3e4,maxBackoffTime:u=2500,disableBc:d=!1}={}){for(super();t[t.length-1]==="/";)t=t.slice(0,t.length-1);this.serverUrl=t,this.bcChannel=t+"/"+n,this.maxBackoffTime=u,this.params=s,this.protocols=a,this.roomname=n,this.doc=r,this._WS=l,this.awareness=o,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=d,this.wsUnsuccessfulReconnects=0,this.messageHandlers=w0.slice(),this.remote=new Ya,this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=i,this._resyncInterval=0,c>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN&&r.store.pendingStructs){const h=er();Xe(h,gs),Nf(h,r),this.ws.send(Cn(h))}},c)),this._bcSubscriber=(h,p)=>{if(p!==this){const m=SR(this,new Uint8Array(h),!1);vA(m)>1&&yc(this.bcChannel,Cn(m),this)}},this._updateHandler=(h,p,m)=>{if(p!==this){const b=FO(this.remote),A=YA(m,b),v=er();Xe(v,gs),ER(v,A),Ug(this,Cn(v))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:h,updated:p,removed:m},b)=>{const A=er();Xe(A,Uc),jn(A,Y0(o,[this.doc.clientID])),Ug(this,Cn(A))},this._exitHandler=()=>{qA(this.awareness,[r.clientID],"app closed")},Na&&typeof Ei<"u"&&Ei.on("exit",this._exitHandler),o.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&V2<Ca()-this.wsLastMessageReceived&&this.ws.close()},V2/10),i&&this.connect()}get url(){const t=Cne(this.params);return this.serverUrl+"/"+this.roomname+(t.length===0?"":"?"+t)}get synced(){return this._synced}set synced(t){this._synced!==t&&(this._synced=t,this.emit("synced",[t]),this.emit("sync",[t]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),Na&&typeof Ei<"u"&&Ei.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(wne(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const t=er();Xe(t,gs),Nf(t,this.doc),yc(this.bcChannel,Cn(t),this);const n=er();Xe(n,gs),AR(n,this.doc),yc(this.bcChannel,Cn(n),this);const r=er();Xe(r,DR),yc(this.bcChannel,Cn(r),this);const i=er();Xe(i,Uc),jn(i,Y0(this.awareness,[this.doc.clientID])),yc(this.bcChannel,Cn(i),this)}disconnectBc(){const t=er();Xe(t,Uc),jn(t,Y0(this.awareness,[this.doc.clientID],new Map)),Ug(this,Cn(t)),this.bcconnected&&(_ne(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.ws!==null&&this.ws.close()}connect(){this.shouldConnect=!0,!this.wsconnected&&this.ws===null&&(wR(this),this.connectBc())}}function wbe(e){const t=YA(e);return Oy(t)}function kne(e){const t=Rne(e);return{step:Oy(t)}}function Rne(e){const t=vne(e),n=er();return Xe(n,gs),ER(n,t),Cn(n)}class Mne{#e="";#t="";#i="";storeStep(t){const n=Oy(t);if(n<"AAA"||n>"Ag"){Nr.warn("Unexpected step type:",{step:t,encoded:n});return}if(n<"AAE"){this.#i=n;return}if(n<"AQ"){this.#t=n;return}this.#e=n}getDataToSend(){return{steps:[this.#t,this.#i].filter(t=>t),awareness:this.#e}}get hasUpdate(){return!!this.#t}clearSentData({steps:t,awareness:n}){t.includes(this.#t)&&(this.#t=""),t.includes(this.#i)&&(this.#i=""),this.#e===n&&(this.#e="")}}var Xo={},j2={},G2={},q2;function Bne(){return q2||(q2=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,i){const o=document.querySelector(`#initial-state-${n}-${r}`);if(o===null){if(i!==void 0)return i;throw new Error(`Could not find initial state ${r} of ${n}`)}try{return JSON.parse(atob(o.value))}catch{throw new Error(`Could not parse initial state ${r} of ${n}`)}}e.loadState=t}(G2)),G2}var W2;function Ine(){return W2||(W2=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bne();function n(){try{return t.loadState("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}e.getCapabilities=n}(j2)),j2}var K2={},zg,Q2;function Lne(){if(Q2)return zg;Q2=1;function e(_,F){return function(){return _.apply(F,arguments)}}const{toString:t}=Object.prototype,{getPrototypeOf:n}=Object,r=(_=>F=>{const R=t.call(F);return _[R]||(_[R]=R.slice(8,-1).toLowerCase())})(Object.create(null)),i=_=>(_=_.toLowerCase(),F=>r(F)===_),o=_=>F=>typeof F===_,{isArray:s}=Array,a=o("undefined");function l(_){return _!==null&&!a(_)&&_.constructor!==null&&!a(_.constructor)&&h(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const c=i("ArrayBuffer");function u(_){let F;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?F=ArrayBuffer.isView(_):F=_&&_.buffer&&c(_.buffer),F}const d=o("string"),h=o("function"),p=o("number"),m=_=>_!==null&&typeof _=="object",b=_=>_===!0||_===!1,A=_=>{if(r(_)!=="object")return!1;const F=n(_);return(F===null||F===Object.prototype||Object.getPrototypeOf(F)===null)&&!(Symbol.toStringTag in _)&&!(Symbol.iterator in _)},v=i("Date"),D=i("File"),C=i("Blob"),S=i("FileList"),O=_=>m(_)&&h(_.pipe),k=_=>{let F;return _&&(typeof FormData=="function"&&_ instanceof FormData||h(_.append)&&((F=r(_))==="formdata"||F==="object"&&h(_.toString)&&_.toString()==="[object FormData]"))},Z=i("URLSearchParams"),[W,U,w,z]=["ReadableStream","Request","Response","Headers"].map(i),V=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(_,F,{allOwnKeys:R=!1}={}){if(_===null||typeof _>"u")return;let B,q;if(typeof _!="object"&&(_=[_]),s(_))for(B=0,q=_.length;B<q;B++)F.call(null,_[B],B,_);else{const K=R?Object.getOwnPropertyNames(_):Object.keys(_),X=K.length;let ve;for(B=0;B<X;B++)ve=K[B],F.call(null,_[ve],ve,_)}}function se(_,F){F=F.toLowerCase();const R=Object.keys(_);let B=R.length,q;for(;B-- >0;)if(q=R[B],F===q.toLowerCase())return q;return null}const J=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:hs,Se=_=>!a(_)&&_!==J;function G(){const{caseless:_}=Se(this)&&this||{},F={},R=(B,q)=>{const K=_&&se(F,q)||q;A(F[K])&&A(B)?F[K]=G(F[K],B):A(B)?F[K]=G({},B):s(B)?F[K]=B.slice():F[K]=B};for(let B=0,q=arguments.length;B<q;B++)arguments[B]&&L(arguments[B],R);return F}const ie=(_,F,R,{allOwnKeys:B}={})=>(L(F,(q,K)=>{R&&h(q)?_[K]=e(q,R):_[K]=q},{allOwnKeys:B}),_),ce=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),De=(_,F,R,B)=>{_.prototype=Object.create(F.prototype,B),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:F.prototype}),R&&Object.assign(_.prototype,R)},Oe=(_,F,R,B)=>{let q,K,X;const ve={};if(F=F||{},_==null)return F;do{for(q=Object.getOwnPropertyNames(_),K=q.length;K-- >0;)X=q[K],(!B||B(X,_,F))&&!ve[X]&&(F[X]=_[X],ve[X]=!0);_=R!==!1&&n(_)}while(_&&(!R||R(_,F))&&_!==Object.prototype);return F},Be=(_,F,R)=>{_=String(_),(R===void 0||R>_.length)&&(R=_.length),R-=F.length;const B=_.indexOf(F,R);return B!==-1&&B===R},ft=_=>{if(!_)return null;if(s(_))return _;let F=_.length;if(!p(F))return null;const R=new Array(F);for(;F-- >0;)R[F]=_[F];return R},bt=(_=>F=>_&&F instanceof _)(typeof Uint8Array<"u"&&n(Uint8Array)),et=(_,F)=>{const R=(_&&_[Symbol.iterator]).call(_);let B;for(;(B=R.next())&&!B.done;){const q=B.value;F.call(_,q[0],q[1])}},nt=(_,F)=>{let R;const B=[];for(;(R=_.exec(F))!==null;)B.push(R);return B},rt=i("HTMLFormElement"),Dt=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(F,R,B){return R.toUpperCase()+B}),jt=(({hasOwnProperty:_})=>(F,R)=>_.call(F,R))(Object.prototype),_e=i("RegExp"),ht=(_,F)=>{const R=Object.getOwnPropertyDescriptors(_),B={};L(R,(q,K)=>{let X;(X=F(q,K,_))!==!1&&(B[K]=X||q)}),Object.defineProperties(_,B)},it=_=>{ht(_,(F,R)=>{if(h(_)&&["arguments","caller","callee"].indexOf(R)!==-1)return!1;const B=_[R];if(h(B)){if(F.enumerable=!1,"writable"in F){F.writable=!1;return}F.set||(F.set=()=>{throw Error("Can not rewrite read-only method '"+R+"'")})}})},Bt=(_,F)=>{const R={},B=q=>{q.forEach(K=>{R[K]=!0})};return s(_)?B(_):B(String(_).split(F)),R},$t=()=>{},wn=(_,F)=>_!=null&&Number.isFinite(_=+_)?_:F;function Ue(_){return!!(_&&h(_.append)&&_[Symbol.toStringTag]==="FormData"&&_[Symbol.iterator])}const I=_=>{const F=new Array(10),R=(B,q)=>{if(m(B)){if(F.indexOf(B)>=0)return;if(!("toJSON"in B)){F[q]=B;const K=s(B)?[]:{};return L(B,(X,ve)=>{const je=R(X,q+1);!a(je)&&(K[ve]=je)}),F[q]=void 0,K}}return B};return R(_,0)},j=i("AsyncFunction"),M=_=>_&&(m(_)||h(_))&&h(_.then)&&h(_.catch),de=((_,F)=>_?setImmediate:F?((R,B)=>(J.addEventListener("message",({source:q,data:K})=>{q===J&&K===R&&B.length&&B.shift()()},!1),q=>{B.push(q),J.postMessage(R,"*")}))(`axios@${Math.random()}`,[]):R=>setTimeout(R))(typeof setImmediate=="function",h(J.postMessage)),Te=typeof queueMicrotask<"u"?queueMicrotask.bind(J):typeof Ei<"u"&&Ei.nextTick||de;var H={isArray:s,isArrayBuffer:c,isBuffer:l,isFormData:k,isArrayBufferView:u,isString:d,isNumber:p,isBoolean:b,isObject:m,isPlainObject:A,isReadableStream:W,isRequest:U,isResponse:w,isHeaders:z,isUndefined:a,isDate:v,isFile:D,isBlob:C,isRegExp:_e,isFunction:h,isStream:O,isURLSearchParams:Z,isTypedArray:bt,isFileList:S,forEach:L,merge:G,extend:ie,trim:V,stripBOM:ce,inherits:De,toFlatObject:Oe,kindOf:r,kindOfTest:i,endsWith:Be,toArray:ft,forEachEntry:et,matchAll:nt,isHTMLForm:rt,hasOwnProperty:jt,hasOwnProp:jt,reduceDescriptors:ht,freezeMethods:it,toObjectSet:Bt,toCamelCase:Dt,noop:$t,toFiniteNumber:wn,findKey:se,global:J,isContextDefined:Se,isSpecCompliantForm:Ue,toJSONObject:I,isAsyncFn:j,isThenable:M,setImmediate:de,asap:Te};function fe(_,F,R,B,q){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",F&&(this.code=F),R&&(this.config=R),B&&(this.request=B),q&&(this.response=q,this.status=q.status?q.status:null)}H.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Ie=fe.prototype,lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(_=>{lt[_]={value:_}}),Object.defineProperties(fe,lt),Object.defineProperty(Ie,"isAxiosError",{value:!0}),fe.from=(_,F,R,B,q,K)=>{const X=Object.create(Ie);return H.toFlatObject(_,X,function(ve){return ve!==Error.prototype},ve=>ve!=="isAxiosError"),fe.call(X,_.message,F,R,B,q),X.cause=_,X.name=_.name,K&&Object.assign(X,K),X};var St=null;function Q(_){return H.isPlainObject(_)||H.isArray(_)}function ne(_){return H.endsWith(_,"[]")?_.slice(0,-2):_}function Ne(_,F,R){return _?_.concat(F).map(function(B,q){return B=ne(B),!R&&q?"["+B+"]":B}).join(R?".":""):F}function ot(_){return H.isArray(_)&&!_.some(Q)}const Ot=H.toFlatObject(H,{},null,function(_){return/^is[A-Z]/.test(_)});function fn(_,F,R){if(!H.isObject(_))throw new TypeError("target must be an object");F=F||new FormData,R=H.toFlatObject(R,{metaTokens:!0,dots:!1,indexes:!1},!1,function(yt,at){return!H.isUndefined(at[yt])});const B=R.metaTokens,q=R.visitor||Ce,K=R.dots,X=R.indexes,ve=(R.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(F);if(!H.isFunction(q))throw new TypeError("visitor must be a function");function je(yt){if(yt===null)return"";if(H.isDate(yt))return yt.toISOString();if(!ve&&H.isBlob(yt))throw new fe("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(yt)||H.isTypedArray(yt)?ve&&typeof Blob=="function"?new Blob([yt]):um.from(yt):yt}function Ce(yt,at,He){let Un=yt;if(yt&&!He&&typeof yt=="object"){if(H.endsWith(at,"{}"))at=B?at:at.slice(0,-2),yt=JSON.stringify(yt);else if(H.isArray(yt)&&ot(yt)||(H.isFileList(yt)||H.endsWith(at,"[]"))&&(Un=H.toArray(yt)))return at=ne(at),Un.forEach(function(Fn,Bn){!(H.isUndefined(Fn)||Fn===null)&&F.append(X===!0?Ne([at],Bn,K):X===null?at:at+"[]",je(Fn))}),!1}return Q(yt)?!0:(F.append(Ne(He,at,K),je(yt)),!1)}const Le=[],dt=Object.assign(Ot,{defaultVisitor:Ce,convertValue:je,isVisitable:Q});function en(yt,at){if(!H.isUndefined(yt)){if(Le.indexOf(yt)!==-1)throw Error("Circular reference detected in "+at.join("."));Le.push(yt),H.forEach(yt,function(He,Un){(!(H.isUndefined(He)||He===null)&&q.call(F,He,H.isString(Un)?Un.trim():Un,at,dt))===!0&&en(He,at?at.concat(Un):[Un])}),Le.pop()}}if(!H.isObject(_))throw new TypeError("data must be an object");return en(_),F}function nn(_){const F={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(R){return F[R]})}function oe(_,F){this._pairs=[],_&&fn(_,this,F)}const Re=oe.prototype;Re.append=function(_,F){this._pairs.push([_,F])},Re.toString=function(_){const F=_?function(R){return _.call(this,R,nn)}:nn;return this._pairs.map(function(R){return F(R[0])+"="+F(R[1])},"").join("&")};function Qe(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xt(_,F,R){if(!F)return _;const B=R&&R.encode||Qe;H.isFunction(R)&&(R={serialize:R});const q=R&&R.serialize;let K;if(q?K=q(F,R):K=H.isURLSearchParams(F)?F.toString():new oe(F,R).toString(B),K){const X=_.indexOf("#");X!==-1&&(_=_.slice(0,X)),_+=(_.indexOf("?")===-1?"?":"&")+K}return _}class At{constructor(){this.handlers=[]}use(F,R,B){return this.handlers.push({fulfilled:F,rejected:R,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(F){this.handlers[F]&&(this.handlers[F]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(F){H.forEach(this.handlers,function(R){R!==null&&F(R)})}}var Nn=At,qn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lr=typeof URLSearchParams<"u"?URLSearchParams:oe,Ln=typeof FormData<"u"?FormData:null,P=typeof Blob<"u"?Blob:null,ae={isBrowser:!0,classes:{URLSearchParams:Lr,FormData:Ln,Blob:P},protocols:["http","https","file","blob","url","data"]};const be=typeof window<"u"&&typeof document<"u",Je=typeof navigator=="object"&&navigator||void 0,Ut=be&&(!Je||["ReactNative","NativeScript","NS"].indexOf(Je.product)<0),zt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ze=be&&window.location.href||"http://localhost";var Me=Object.freeze({__proto__:null,hasBrowserEnv:be,hasStandardBrowserWebWorkerEnv:zt,hasStandardBrowserEnv:Ut,navigator:Je,origin:ze}),Ze={...Me,...ae};function rn(_,F){return fn(_,new Ze.classes.URLSearchParams,Object.assign({visitor:function(R,B,q,K){return Ze.isNode&&H.isBuffer(R)?(this.append(B,R.toString("base64")),!1):K.defaultVisitor.apply(this,arguments)}},F))}function mn(_){return H.matchAll(/\w+|\[(\w*)]/g,_).map(F=>F[0]==="[]"?"":F[1]||F[0])}function Yr(_){const F={},R=Object.keys(_);let B;const q=R.length;let K;for(B=0;B<q;B++)K=R[B],F[K]=_[K];return F}function Ci(_){function F(R,B,q,K){let X=R[K++];if(X==="__proto__")return!0;const ve=Number.isFinite(+X),je=K>=R.length;return X=!X&&H.isArray(q)?q.length:X,je?(H.hasOwnProp(q,X)?q[X]=[q[X],B]:q[X]=B,!ve):((!q[X]||!H.isObject(q[X]))&&(q[X]=[]),F(R,B,q[X],K)&&H.isArray(q[X])&&(q[X]=Yr(q[X])),!ve)}if(H.isFormData(_)&&H.isFunction(_.entries)){const R={};return H.forEachEntry(_,(B,q)=>{F(mn(B),q,R,0)}),R}return null}function kn(_,F,R){if(H.isString(_))try{return(F||JSON.parse)(_),H.trim(_)}catch(B){if(B.name!=="SyntaxError")throw B}return(R||JSON.stringify)(_)}const Rs={transitional:qn,adapter:["xhr","http","fetch"],transformRequest:[function(_,F){const R=F.getContentType()||"",B=R.indexOf("application/json")>-1,q=H.isObject(_);if(q&&H.isHTMLForm(_)&&(_=new FormData(_)),H.isFormData(_))return B?JSON.stringify(Ci(_)):_;if(H.isArrayBuffer(_)||H.isBuffer(_)||H.isStream(_)||H.isFile(_)||H.isBlob(_)||H.isReadableStream(_))return _;if(H.isArrayBufferView(_))return _.buffer;if(H.isURLSearchParams(_))return F.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),_.toString();let K;if(q){if(R.indexOf("application/x-www-form-urlencoded")>-1)return rn(_,this.formSerializer).toString();if((K=H.isFileList(_))||R.indexOf("multipart/form-data")>-1){const X=this.env&&this.env.FormData;return fn(K?{"files[]":_}:_,X&&new X,this.formSerializer)}}return q||B?(F.setContentType("application/json",!1),kn(_)):_}],transformResponse:[function(_){const F=this.transitional||Rs.transitional,R=F&&F.forcedJSONParsing,B=this.responseType==="json";if(H.isResponse(_)||H.isReadableStream(_))return _;if(_&&H.isString(_)&&(R&&!this.responseType||B)){const q=!(F&&F.silentJSONParsing)&&B;try{return JSON.parse(_)}catch(K){if(q)throw K.name==="SyntaxError"?fe.from(K,fe.ERR_BAD_RESPONSE,this,null,this.response):K}}return _}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(_){return _>=200&&_<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],_=>{Rs.headers[_]={}});var Ni=Rs;const ql=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Cu=_=>{const F={};let R,B,q;return _&&_.split(`
`).forEach(function(K){q=K.indexOf(":"),R=K.substring(0,q).trim().toLowerCase(),B=K.substring(q+1).trim(),!(!R||F[R]&&ql[R])&&(R==="set-cookie"?F[R]?F[R].push(B):F[R]=[B]:F[R]=F[R]?F[R]+", "+B:B)}),F};const Wl=Symbol("internals");function Wi(_){return _&&String(_).trim().toLowerCase()}function Fi(_){return _===!1||_==null?_:H.isArray(_)?_.map(Fi):String(_)}function Nu(_){const F=Object.create(null),R=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=R.exec(_);)F[B[1]]=B[2];return F}const Ms=_=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_.trim());function Bs(_,F,R,B,q){if(H.isFunction(B))return B.call(this,F,R);if(q&&(F=R),!!H.isString(F)){if(H.isString(B))return F.indexOf(B)!==-1;if(H.isRegExp(B))return B.test(F)}}function mi(_){return _.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(F,R,B)=>R.toUpperCase()+B)}function Kl(_,F){const R=H.toCamelCase(" "+F);["get","set","has"].forEach(B=>{Object.defineProperty(_,B+R,{value:function(q,K,X){return this[B].call(this,F,q,K,X)},configurable:!0})})}class fo{constructor(F){F&&this.set(F)}set(F,R,B){const q=this;function K(ve,je,Ce){const Le=Wi(je);if(!Le)throw new Error("header name must be a non-empty string");const dt=H.findKey(q,Le);(!dt||q[dt]===void 0||Ce===!0||Ce===void 0&&q[dt]!==!1)&&(q[dt||je]=Fi(ve))}const X=(ve,je)=>H.forEach(ve,(Ce,Le)=>K(Ce,Le,je));if(H.isPlainObject(F)||F instanceof this.constructor)X(F,R);else if(H.isString(F)&&(F=F.trim())&&!Ms(F))X(Cu(F),R);else if(H.isHeaders(F))for(const[ve,je]of F.entries())K(je,ve,B);else F!=null&&K(R,F,B);return this}get(F,R){if(F=Wi(F),F){const B=H.findKey(this,F);if(B){const q=this[B];if(!R)return q;if(R===!0)return Nu(q);if(H.isFunction(R))return R.call(this,q,B);if(H.isRegExp(R))return R.exec(q);throw new TypeError("parser must be boolean|regexp|function")}}}has(F,R){if(F=Wi(F),F){const B=H.findKey(this,F);return!!(B&&this[B]!==void 0&&(!R||Bs(this,this[B],B,R)))}return!1}delete(F,R){const B=this;let q=!1;function K(X){if(X=Wi(X),X){const ve=H.findKey(B,X);ve&&(!R||Bs(B,B[ve],ve,R))&&(delete B[ve],q=!0)}}return H.isArray(F)?F.forEach(K):K(F),q}clear(F){const R=Object.keys(this);let B=R.length,q=!1;for(;B--;){const K=R[B];(!F||Bs(this,this[K],K,F,!0))&&(delete this[K],q=!0)}return q}normalize(F){const R=this,B={};return H.forEach(this,(q,K)=>{const X=H.findKey(B,K);if(X){R[X]=Fi(q),delete R[K];return}const ve=F?mi(K):String(K).trim();ve!==K&&delete R[K],R[ve]=Fi(q),B[ve]=!0}),this}concat(...F){return this.constructor.concat(this,...F)}toJSON(F){const R=Object.create(null);return H.forEach(this,(B,q)=>{B!=null&&B!==!1&&(R[q]=F&&H.isArray(B)?B.join(", "):B)}),R}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([F,R])=>F+": "+R).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(F){return F instanceof this?F:new this(F)}static concat(F,...R){const B=new this(F);return R.forEach(q=>B.set(q)),B}static accessor(F){const R=(this[Wl]=this[Wl]={accessors:{}}).accessors,B=this.prototype;function q(K){const X=Wi(K);R[X]||(Kl(B,K),R[X]=!0)}return H.isArray(F)?F.forEach(q):q(F),this}}fo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(fo.prototype,({value:_},F)=>{let R=F[0].toUpperCase()+F.slice(1);return{get:()=>_,set(B){this[R]=B}}}),H.freezeMethods(fo);var vr=fo;function mo(_,F){const R=this||Ni,B=F||R,q=vr.from(B.headers);let K=B.data;return H.forEach(_,function(X){K=X.call(R,K,q.normalize(),F?F.status:void 0)}),q.normalize(),K}function $n(_){return!!(_&&_.__CANCEL__)}function Hr(_,F,R){fe.call(this,_??"canceled",fe.ERR_CANCELED,F,R),this.name="CanceledError"}H.inherits(Hr,fe,{__CANCEL__:!0});function $a(_,F,R){const B=R.config.validateStatus;!R.status||!B||B(R.status)?_(R):F(new fe("Request failed with status code "+R.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(R.status/100)-4],R.config,R.request,R))}function ye(_){const F=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_);return F&&F[1]||""}function qe(_,F){_=_||10;const R=new Array(_),B=new Array(_);let q=0,K=0,X;return F=F!==void 0?F:1e3,function(ve){const je=Date.now(),Ce=B[K];X||(X=je),R[q]=ve,B[q]=je;let Le=K,dt=0;for(;Le!==q;)dt+=R[Le++],Le=Le%_;if(q=(q+1)%_,q===K&&(K=(K+1)%_),je-X<F)return;const en=Ce&&je-Ce;return en?Math.round(dt*1e3/en):void 0}}function wt(_,F){let R=0,B=1e3/F,q,K;const X=(ve,je=Date.now())=>{R=je,q=null,K&&(clearTimeout(K),K=null),_.apply(null,ve)};return[(...ve)=>{const je=Date.now(),Ce=je-R;Ce>=B?X(ve,je):(q=ve,K||(K=setTimeout(()=>{K=null,X(q)},B-Ce)))},()=>q&&X(q)]}const It=(_,F,R=3)=>{let B=0;const q=qe(50,250);return wt(K=>{const X=K.loaded,ve=K.lengthComputable?K.total:void 0,je=X-B,Ce=q(je),Le=X<=ve;B=X;const dt={loaded:X,total:ve,progress:ve?X/ve:void 0,bytes:je,rate:Ce||void 0,estimated:Ce&&ve&&Le?(ve-X)/Ce:void 0,event:K,lengthComputable:ve!=null,[F?"download":"upload"]:!0};_(dt)},R)},Gt=(_,F)=>{const R=_!=null;return[B=>F[0]({lengthComputable:R,total:_,loaded:B}),F[1]]},Dr=_=>(...F)=>H.asap(()=>_(...F));var Wr=Ze.hasStandardBrowserEnv?((_,F)=>R=>(R=new URL(R,Ze.origin),_.protocol===R.protocol&&_.host===R.host&&(F||_.port===R.port)))(new URL(Ze.origin),Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent)):()=>!0,Oi=Ze.hasStandardBrowserEnv?{write(_,F,R,B,q,K){const X=[_+"="+encodeURIComponent(F)];H.isNumber(R)&&X.push("expires="+new Date(R).toGMTString()),H.isString(B)&&X.push("path="+B),H.isString(q)&&X.push("domain="+q),K===!0&&X.push("secure"),document.cookie=X.join("; ")},read(_){const F=document.cookie.match(new RegExp("(^|;\\s*)("+_+")=([^;]*)"));return F?decodeURIComponent(F[3]):null},remove(_){this.write(_,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rr(_){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_)}function Kr(_,F){return F?_.replace(/\/?\/$/,"")+"/"+F.replace(/^\/+/,""):_}function Ua(_,F,R){let B=!rr(F);return _&&B||R==!1?Kr(_,F):F}const za=_=>_ instanceof vr?{..._}:_;function gi(_,F){F=F||{};const R={};function B(Ce,Le,dt,en){return H.isPlainObject(Ce)&&H.isPlainObject(Le)?H.merge.call({caseless:en},Ce,Le):H.isPlainObject(Le)?H.merge({},Le):H.isArray(Le)?Le.slice():Le}function q(Ce,Le,dt,en){if(H.isUndefined(Le)){if(!H.isUndefined(Ce))return B(void 0,Ce,dt,en)}else return B(Ce,Le,dt,en)}function K(Ce,Le){if(!H.isUndefined(Le))return B(void 0,Le)}function X(Ce,Le){if(H.isUndefined(Le)){if(!H.isUndefined(Ce))return B(void 0,Ce)}else return B(void 0,Le)}function ve(Ce,Le,dt){if(dt in F)return B(Ce,Le);if(dt in _)return B(void 0,Ce)}const je={url:K,method:K,data:K,baseURL:X,transformRequest:X,transformResponse:X,paramsSerializer:X,timeout:X,timeoutMessage:X,withCredentials:X,withXSRFToken:X,adapter:X,responseType:X,xsrfCookieName:X,xsrfHeaderName:X,onUploadProgress:X,onDownloadProgress:X,decompress:X,maxContentLength:X,maxBodyLength:X,beforeRedirect:X,transport:X,httpAgent:X,httpsAgent:X,cancelToken:X,socketPath:X,responseEncoding:X,validateStatus:ve,headers:(Ce,Le,dt)=>q(za(Ce),za(Le),dt,!0)};return H.forEach(Object.keys(Object.assign({},_,F)),function(Ce){const Le=je[Ce]||q,dt=Le(_[Ce],F[Ce],Ce);H.isUndefined(dt)&&Le!==ve||(R[Ce]=dt)}),R}var Ql=_=>{const F=gi({},_);let{data:R,withXSRFToken:B,xsrfHeaderName:q,xsrfCookieName:K,headers:X,auth:ve}=F;F.headers=X=vr.from(X),F.url=xt(Ua(F.baseURL,F.url),_.params,_.paramsSerializer),ve&&X.set("Authorization","Basic "+btoa((ve.username||"")+":"+(ve.password?unescape(encodeURIComponent(ve.password)):"")));let je;if(H.isFormData(R)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)X.setContentType(void 0);else if((je=X.getContentType())!==!1){const[Ce,...Le]=je?je.split(";").map(dt=>dt.trim()).filter(Boolean):[];X.setContentType([Ce||"multipart/form-data",...Le].join("; "))}}if(Ze.hasStandardBrowserEnv&&(B&&H.isFunction(B)&&(B=B(F)),B||B!==!1&&Wr(F.url))){const Ce=q&&K&&Oi.read(K);Ce&&X.set(q,Ce)}return F},Fu=typeof XMLHttpRequest<"u"&&function(_){return new Promise(function(F,R){const B=Ql(_);let q=B.data;const K=vr.from(B.headers).normalize();let{responseType:X,onUploadProgress:ve,onDownloadProgress:je}=B,Ce,Le,dt,en,yt;function at(){en&&en(),yt&&yt(),B.cancelToken&&B.cancelToken.unsubscribe(Ce),B.signal&&B.signal.removeEventListener("abort",Ce)}let He=new XMLHttpRequest;He.open(B.method.toUpperCase(),B.url,!0),He.timeout=B.timeout;function Un(){if(!He)return;const Bn=vr.from("getAllResponseHeaders"in He&&He.getAllResponseHeaders()),Xr={data:!X||X==="text"||X==="json"?He.responseText:He.response,status:He.status,statusText:He.statusText,headers:Bn,config:_,request:He};$a(function(el){F(el),at()},function(el){R(el),at()},Xr),He=null}"onloadend"in He?He.onloadend=Un:He.onreadystatechange=function(){!He||He.readyState!==4||He.status===0&&!(He.responseURL&&He.responseURL.indexOf("file:")===0)||setTimeout(Un)},He.onabort=function(){He&&(R(new fe("Request aborted",fe.ECONNABORTED,_,He)),He=null)},He.onerror=function(){R(new fe("Network Error",fe.ERR_NETWORK,_,He)),He=null},He.ontimeout=function(){let Bn=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const Xr=B.transitional||qn;B.timeoutErrorMessage&&(Bn=B.timeoutErrorMessage),R(new fe(Bn,Xr.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,_,He)),He=null},q===void 0&&K.setContentType(null),"setRequestHeader"in He&&H.forEach(K.toJSON(),function(Bn,Xr){He.setRequestHeader(Xr,Bn)}),H.isUndefined(B.withCredentials)||(He.withCredentials=!!B.withCredentials),X&&X!=="json"&&(He.responseType=B.responseType),je&&([dt,yt]=It(je,!0),He.addEventListener("progress",dt)),ve&&He.upload&&([Le,en]=It(ve),He.upload.addEventListener("progress",Le),He.upload.addEventListener("loadend",en)),(B.cancelToken||B.signal)&&(Ce=Bn=>{He&&(R(!Bn||Bn.type?new Hr(null,_,He):Bn),He.abort(),He=null)},B.cancelToken&&B.cancelToken.subscribe(Ce),B.signal&&(B.signal.aborted?Ce():B.signal.addEventListener("abort",Ce)));const Fn=ye(B.url);if(Fn&&Ze.protocols.indexOf(Fn)===-1){R(new fe("Unsupported protocol "+Fn+":",fe.ERR_BAD_REQUEST,_));return}He.send(q||null)})},Ou=(_,F)=>{const{length:R}=_=_?_.filter(Boolean):[];if(F||R){let B=new AbortController,q;const K=function(Ce){if(!q){q=!0,ve();const Le=Ce instanceof Error?Ce:this.reason;B.abort(Le instanceof fe?Le:new Hr(Le instanceof Error?Le.message:Le))}};let X=F&&setTimeout(()=>{X=null,K(new fe(`timeout ${F} of ms exceeded`,fe.ETIMEDOUT))},F);const ve=()=>{_&&(X&&clearTimeout(X),X=null,_.forEach(Ce=>{Ce.unsubscribe?Ce.unsubscribe(K):Ce.removeEventListener("abort",K)}),_=null)};_.forEach(Ce=>Ce.addEventListener("abort",K));const{signal:je}=B;return je.unsubscribe=()=>H.asap(ve),je}};const xu=function*(_,F){let R=_.byteLength;if(R<F){yield _;return}let B=0,q;for(;B<R;)q=B+F,yield _.slice(B,q),B=q},jo=async function*(_,F){for await(const R of Va(_))yield*xu(R,F)},Va=async function*(_){if(_[Symbol.asyncIterator]){yield*_;return}const F=_.getReader();try{for(;;){const{done:R,value:B}=await F.read();if(R)break;yield B}}finally{await F.cancel()}},Zr=(_,F,R,B)=>{const q=jo(_,F);let K=0,X,ve=je=>{X||(X=!0,B&&B(je))};return new ReadableStream({async pull(je){try{const{done:Ce,value:Le}=await q.next();if(Ce){ve(),je.close();return}let dt=Le.byteLength;if(R){let en=K+=dt;R(en)}je.enqueue(new Uint8Array(Le))}catch(Ce){throw ve(Ce),Ce}},cancel(je){return ve(je),q.return()}},{highWaterMark:2})},Go=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Is=Go&&typeof ReadableStream=="function",pt=Go&&(typeof TextEncoder=="function"?(_=>F=>_.encode(F))(new TextEncoder):async _=>new Uint8Array(await new Response(_).arrayBuffer())),Ls=(_,...F)=>{try{return!!_(...F)}catch{return!1}},Rn=Is&&Ls(()=>{let _=!1;const F=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return _=!0,"half"}}).headers.has("Content-Type");return _&&!F}),qt=64*1024,Qr=Is&&Ls(()=>H.isReadableStream(new Response("").body)),ir={stream:Qr&&(_=>_.body)};Go&&(_=>{["text","arrayBuffer","blob","formData","stream"].forEach(F=>{!ir[F]&&(ir[F]=H.isFunction(_[F])?R=>R[F]():(R,B)=>{throw new fe(`Response type '${F}' is not supported`,fe.ERR_NOT_SUPPORT,B)})})})(new Response);const ja=async _=>{if(_==null)return 0;if(H.isBlob(_))return _.size;if(H.isSpecCompliantForm(_))return(await new Request(Ze.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(H.isArrayBufferView(_)||H.isArrayBuffer(_))return _.byteLength;if(H.isURLSearchParams(_)&&(_=_+""),H.isString(_))return(await pt(_)).byteLength},Ga=async(_,F)=>H.toFiniteNumber(_.getContentLength())??ja(F);var Fe=Go&&(async _=>{let{url:F,method:R,data:B,signal:q,cancelToken:K,timeout:X,onDownloadProgress:ve,onUploadProgress:je,responseType:Ce,headers:Le,withCredentials:dt="same-origin",fetchOptions:en}=Ql(_);Ce=Ce?(Ce+"").toLowerCase():"text";let yt=Ou([q,K&&K.toAbortSignal()],X),at;const He=yt&&yt.unsubscribe&&(()=>{yt.unsubscribe()});let Un;try{if(je&&Rn&&R!=="get"&&R!=="head"&&(Un=await Ga(Le,B))!==0){let go=new Request(F,{method:"POST",body:B,duplex:"half"}),Hs;if(H.isFormData(B)&&(Hs=go.headers.get("content-type"))&&Le.setContentType(Hs),go.body){const[tc,xi]=Gt(Un,It(Dr(je)));B=Zr(go.body,qt,tc,xi)}}H.isString(dt)||(dt=dt?"include":"omit");const Fn="credentials"in Request.prototype;at=new Request(F,{...en,signal:yt,method:R.toUpperCase(),headers:Le.normalize().toJSON(),body:B,duplex:"half",credentials:Fn?dt:void 0});let Bn=await fetch(at);const Xr=Qr&&(Ce==="stream"||Ce==="response");if(Qr&&(ve||Xr&&He)){const go={};["status","statusText","headers"].forEach(Iu=>{go[Iu]=Bn[Iu]});const Hs=H.toFiniteNumber(Bn.headers.get("content-length")),[tc,xi]=ve&&Gt(Hs,It(Dr(ve),!0))||[];Bn=new Response(Zr(Bn.body,qt,tc,()=>{xi&&xi(),He&&He()}),go)}Ce=Ce||"text";let el=await ir[H.findKey(ir,Ce)||"text"](Bn,_);return!Xr&&He&&He(),await new Promise((go,Hs)=>{$a(go,Hs,{data:el,headers:vr.from(Bn.headers),status:Bn.status,statusText:Bn.statusText,config:_,request:at})})}catch(Fn){throw He&&He(),Fn&&Fn.name==="TypeError"&&/fetch/i.test(Fn.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,_,at),{cause:Fn.cause||Fn}):fe.from(Fn,Fn&&Fn.code,_,at)}});const Pe={http:St,xhr:Fu,fetch:Fe};H.forEach(Pe,(_,F)=>{if(_){try{Object.defineProperty(_,"name",{value:F})}catch{}Object.defineProperty(_,"adapterName",{value:F})}});const gt=_=>`- ${_}`,Yt=_=>H.isFunction(_)||_===null||_===!1;var Mn={getAdapter:_=>{_=H.isArray(_)?_:[_];const{length:F}=_;let R,B;const q={};for(let K=0;K<F;K++){R=_[K];let X;if(B=R,!Yt(R)&&(B=Pe[(X=String(R)).toLowerCase()],B===void 0))throw new fe(`Unknown adapter '${X}'`);if(B)break;q[X||"#"+K]=B}if(!B){const K=Object.entries(q).map(([ve,je])=>`adapter ${ve} `+(je===!1?"is not supported by the environment":"is not available in the build"));let X=F?K.length>1?`since :
`+K.map(gt).join(`
`):" "+gt(K[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+X,"ERR_NOT_SUPPORT")}return B},adapters:Pe};function or(_){if(_.cancelToken&&_.cancelToken.throwIfRequested(),_.signal&&_.signal.aborted)throw new Hr(null,_)}function Ys(_){return or(_),_.headers=vr.from(_.headers),_.data=mo.call(_,_.transformRequest),["post","put","patch"].indexOf(_.method)!==-1&&_.headers.setContentType("application/x-www-form-urlencoded",!1),Mn.getAdapter(_.adapter||Ni.adapter)(_).then(function(F){return or(_),F.data=mo.call(_,_.transformResponse,F),F.headers=vr.from(F.headers),F},function(F){return $n(F)||(or(_),F&&F.response&&(F.response.data=mo.call(_,_.transformResponse,F.response),F.response.headers=vr.from(F.response.headers))),Promise.reject(F)})}const qa="1.8.2",Jl={};["object","boolean","number","function","string","symbol"].forEach((_,F)=>{Jl[_]=function(R){return typeof R===_||"a"+(F<1?"n ":" ")+_}});const ku={};Jl.transitional=function(_,F,R){function B(q,K){return"[Axios v"+qa+"] Transitional option '"+q+"'"+K+(R?". "+R:"")}return(q,K,X)=>{if(_===!1)throw new fe(B(K," has been removed"+(F?" in "+F:"")),fe.ERR_DEPRECATED);return F&&!ku[K]&&(ku[K]=!0,console.warn(B(K," has been deprecated since v"+F+" and will be removed in the near future"))),_?_(q,K,X):!0}},Jl.spelling=function(_){return(F,R)=>(console.warn(`${R} is likely a misspelling of ${_}`),!0)};function Wa(_,F,R){if(typeof _!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const B=Object.keys(_);let q=B.length;for(;q-- >0;){const K=B[q],X=F[K];if(X){const ve=_[K],je=ve===void 0||X(ve,K,_);if(je!==!0)throw new fe("option "+K+" must be "+je,fe.ERR_BAD_OPTION_VALUE);continue}if(R!==!0)throw new fe("Unknown option "+K,fe.ERR_BAD_OPTION)}}var Ka={assertOptions:Wa,validators:Jl};const sr=Ka.validators;class Jr{constructor(F){this.defaults=F,this.interceptors={request:new Nn,response:new Nn}}async request(F,R){try{return await this._request(F,R)}catch(B){if(B instanceof Error){let q={};Error.captureStackTrace?Error.captureStackTrace(q):q=new Error;const K=q.stack?q.stack.replace(/^.+\n/,""):"";try{B.stack?K&&!String(B.stack).endsWith(K.replace(/^.+\n.+\n/,""))&&(B.stack+=`
`+K):B.stack=K}catch{}}throw B}}_request(F,R){typeof F=="string"?(R=R||{},R.url=F):R=F||{},R=gi(this.defaults,R);const{transitional:B,paramsSerializer:q,headers:K}=R;B!==void 0&&Ka.assertOptions(B,{silentJSONParsing:sr.transitional(sr.boolean),forcedJSONParsing:sr.transitional(sr.boolean),clarifyTimeoutError:sr.transitional(sr.boolean)},!1),q!=null&&(H.isFunction(q)?R.paramsSerializer={serialize:q}:Ka.assertOptions(q,{encode:sr.function,serialize:sr.function},!0)),R.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?R.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:R.allowAbsoluteUrls=!0),Ka.assertOptions(R,{baseUrl:sr.spelling("baseURL"),withXsrfToken:sr.spelling("withXSRFToken")},!0),R.method=(R.method||this.defaults.method||"get").toLowerCase();let X=K&&H.merge(K.common,K[R.method]);K&&H.forEach(["delete","get","head","post","put","patch","common"],at=>{delete K[at]}),R.headers=vr.concat(X,K);const ve=[];let je=!0;this.interceptors.request.forEach(function(at){typeof at.runWhen=="function"&&at.runWhen(R)===!1||(je=je&&at.synchronous,ve.unshift(at.fulfilled,at.rejected))});const Ce=[];this.interceptors.response.forEach(function(at){Ce.push(at.fulfilled,at.rejected)});let Le,dt=0,en;if(!je){const at=[Ys.bind(this),void 0];for(at.unshift.apply(at,ve),at.push.apply(at,Ce),en=at.length,Le=Promise.resolve(R);dt<en;)Le=Le.then(at[dt++],at[dt++]);return Le}en=ve.length;let yt=R;for(dt=0;dt<en;){const at=ve[dt++],He=ve[dt++];try{yt=at(yt)}catch(Un){He.call(this,Un);break}}try{Le=Ys.call(this,yt)}catch(at){return Promise.reject(at)}for(dt=0,en=Ce.length;dt<en;)Le=Le.then(Ce[dt++],Ce[dt++]);return Le}getUri(F){F=gi(this.defaults,F);const R=Ua(F.baseURL,F.url,F.allowAbsoluteUrls);return xt(R,F.params,F.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(_){Jr.prototype[_]=function(F,R){return this.request(gi(R||{},{method:_,url:F,data:(R||{}).data}))}}),H.forEach(["post","put","patch"],function(_){function F(R){return function(B,q,K){return this.request(gi(K||{},{method:_,headers:R?{"Content-Type":"multipart/form-data"}:{},url:B,data:q}))}}Jr.prototype[_]=F(),Jr.prototype[_+"Form"]=F(!0)});var Qa=Jr;class Ru{constructor(F){if(typeof F!="function")throw new TypeError("executor must be a function.");let R;this.promise=new Promise(function(q){R=q});const B=this;this.promise.then(q=>{if(!B._listeners)return;let K=B._listeners.length;for(;K-- >0;)B._listeners[K](q);B._listeners=null}),this.promise.then=q=>{let K;const X=new Promise(ve=>{B.subscribe(ve),K=ve}).then(q);return X.cancel=function(){B.unsubscribe(K)},X},F(function(q,K,X){B.reason||(B.reason=new Hr(q,K,X),R(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(F){if(this.reason){F(this.reason);return}this._listeners?this._listeners.push(F):this._listeners=[F]}unsubscribe(F){if(!this._listeners)return;const R=this._listeners.indexOf(F);R!==-1&&this._listeners.splice(R,1)}toAbortSignal(){const F=new AbortController,R=B=>{F.abort(B)};return this.subscribe(R),F.signal.unsubscribe=()=>this.unsubscribe(R),F.signal}static source(){let F;return{token:new Ru(function(R){F=R}),cancel:F}}}var Mu=Ru;function Bu(_){return function(F){return _.apply(null,F)}}function Xl(_){return H.isObject(_)&&_.isAxiosError===!0}const Ja={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ja).forEach(([_,F])=>{Ja[F]=_});var ec=Ja;function Xa(_){const F=new Qa(_),R=e(Qa.prototype.request,F);return H.extend(R,Qa.prototype,F,{allOwnKeys:!0}),H.extend(R,F,null,{allOwnKeys:!0}),R.create=function(B){return Xa(gi(_,B))},R}const Ht=Xa(Ni);return Ht.Axios=Qa,Ht.CanceledError=Hr,Ht.CancelToken=Mu,Ht.isCancel=$n,Ht.VERSION=qa,Ht.toFormData=fn,Ht.AxiosError=fe,Ht.Cancel=Ht.CanceledError,Ht.all=function(_){return Promise.all(_)},Ht.spread=Bu,Ht.isAxiosError=Xl,Ht.mergeConfig=gi,Ht.AxiosHeaders=vr,Ht.formToJSON=_=>Ci(H.isHTMLForm(_)?new FormData(_):_),Ht.getAdapter=Mn.getAdapter,Ht.HttpStatusCode=ec,Ht.default=Ht,zg=Ht,zg}var J2={},X2={},ew;function _R(){return ew||(ew=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LB(),n=YB(),r=p=>p&&p.__esModule?p:{default:p},i=r(t),o=r(n);class s{bus;constructor(m){typeof m.getVersion!="function"||!i.default(m.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):o.default(m.getVersion())!==o.default(this.getVersion())&&console.warn("Proxying an event bus of version "+m.getVersion()+" with "+this.getVersion()),this.bus=m}getVersion(){return"3.3.2"}subscribe(m,b){this.bus.subscribe(m,b)}unsubscribe(m,b){this.bus.unsubscribe(m,b)}emit(m,...b){this.bus.emit(m,...b)}}class a{handlers=new Map;getVersion(){return"3.3.2"}subscribe(m,b){this.handlers.set(m,(this.handlers.get(m)||[]).concat(b))}unsubscribe(m,b){this.handlers.set(m,(this.handlers.get(m)||[]).filter(A=>A!==b))}emit(m,...b){(this.handlers.get(m)||[]).forEach(A=>{try{A(b[0])}catch(v){console.error("could not invoke event listener",v)}})}}let l=null;function c(){return l!==null?l:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?l=new s(window._nc_event_bus):l=window._nc_event_bus=new a,l)}function u(p,m){c().subscribe(p,m)}function d(p,m){c().unsubscribe(p,m)}function h(p,...m){c().emit(p,...m)}e.ProxyBus=s,e.SimpleBus=a,e.emit=h,e.subscribe=u,e.unsubscribe=d}(X2)),X2}var tw;function Yne(){return tw||(tw=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_R(),n=HB();let r;const i=[];function o(){return r===void 0&&(r=document.head.dataset.requesttoken??null),r}function s(D){i.push(D)}t.subscribe("csrf-token-update",D=>{r=D.token,i.forEach(C=>{try{C(r)}catch(S){console.error("Error updating CSRF token observer",S)}})});function a(){const D=document?.querySelector('meta[name="csp-nonce"]');if(!D){const C=o();return C?btoa(C):void 0}return D.nonce}const l=n.getBuilder("public").persist().build();class c{_displayName;uid;isAdmin;constructor(){l.getItem("guestUid")||l.setItem("guestUid",m()),this._displayName=l.getItem("guestNickname")||"",this.uid=l.getItem("guestUid")||m(),this.isAdmin=!1,t.subscribe("user:info:changed",C=>{this._displayName=C.displayName,l.setItem("guestNickname",C.displayName||"")})}get displayName(){return this._displayName}set displayName(C){this._displayName=C,l.setItem("guestNickname",C),t.emit("user:info:changed",this)}}let u;function d(){return u||(u=new c),u}function h(){return d()?.displayName||null}function p(D){if(!D||D.trim().length===0)throw new Error("Nickname cannot be empty");d().displayName=D}function m(){return globalThis.crypto?.randomUUID?globalThis.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,D=>{const C=Math.random()*16|0;return(D==="x"?C:C&3|8).toString(16)})}let b;function A(D,C){return D?D.getAttribute(C):null}function v(){if(b!==void 0)return b;const D=document?.getElementsByTagName("head")[0];if(!D)return null;const C=A(D,"data-user");return C===null?(b=null,b):(b={uid:C,displayName:A(D,"data-user-displayname"),isAdmin:!!window._oc_isadmin},b)}e.getCSPNonce=a,e.getCurrentUser=v,e.getGuestNickname=h,e.getGuestUser=d,e.getRequestToken=o,e.onRequestTokenUpdate=s,e.setGuestNickname=p}(J2)),J2}var nw={},rw;function Hne(){return rw||(rw=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=(h,p)=>l(h,"",p),n=h=>"/remote.php/"+h,r=(h,p)=>{var m;return((m=p?.baseURL)!=null?m:c())+n(h)},i=(h,p,m)=>{var b;const A=Object.assign({ocsVersion:2},m||{}).ocsVersion===1?1:2;return((b=m?.baseURL)!=null?b:c())+"/ocs/v"+A+".php"+o(h,p,m)},o=(h,p,m)=>{const b=Object.assign({escape:!0},m||{}),A=function(v,D){return D=D||{},v.replace(/{([^{}]*)}/g,function(C,S){const O=D[S];return b.escape?encodeURIComponent(typeof O=="string"||typeof O=="number"?O.toString():C):typeof O=="string"||typeof O=="number"?O.toString():C})};return h.charAt(0)!=="/"&&(h="/"+h),A(h,p||{})},s=(h,p,m)=>{var b,A,v;const D=Object.assign({noRewrite:!1},m||{}),C=(b=m?.baseURL)!=null?b:u();return((v=(A=window?.OC)==null?void 0:A.config)==null?void 0:v.modRewriteWorking)===!0&&!D.noRewrite?C+o(h,p,m):C+"/index.php"+o(h,p,m)},a=(h,p)=>p.includes(".")?l(h,"img",p):l(h,"img","".concat(p,".svg")),l=(h,p,m)=>{var b,A,v;const D=(v=(A=(b=window?.OC)==null?void 0:b.coreApps)==null?void 0:A.includes(h))!=null?v:!1,C=m.slice(-3)==="php";let S=u();return C&&!D?(S+="/index.php/apps/".concat(h),p&&(S+="/".concat(encodeURI(p))),m!=="index.php"&&(S+="/".concat(m))):!C&&!D?(S=d(h),p&&(S+="/".concat(p,"/")),S.at(-1)!=="/"&&(S+="/"),S+=m):((h==="settings"||h==="core"||h==="search")&&p==="ajax"&&(S+="/index.php"),h&&(S+="/".concat(h)),p&&(S+="/".concat(p)),S+="/".concat(m)),S},c=()=>window.location.protocol+"//"+window.location.host+u();function u(){let h=window._oc_webroot;if(typeof h>"u"){h=location.pathname;const p=h.indexOf("/index.php/");if(p!==-1)h=h.slice(0,p);else{const m=h.indexOf("/",1);h=h.slice(0,m>0?m:void 0)}}return h}function d(h){var p,m;return(m=((p=window._oc_appswebroots)!=null?p:{})[h])!=null?m:""}e.generateFilePath=l,e.generateOcsUrl=i,e.generateRemoteUrl=r,e.generateUrl=s,e.getAppRootUrl=d,e.getBaseUrl=c,e.getRootUrl=u,e.imagePath=a,e.linkTo=t}(nw)),nw}var iw;function Zne(){return iw||(iw=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=Lne(),n=Yne(),r=Hne(),i=(p=>p&&p.__esModule?p:{default:p})(t),o=Symbol("csrf-retry"),s=p=>async m=>{var b;const{config:A,response:v,request:D}=m,C=D?.responseURL;if(v?.status===412&&((b=v?.data)==null?void 0:b.message)==="CSRF check failed"&&A[o]===void 0){console.warn("Request to ".concat(C," failed because of a CSRF mismatch. Fetching a new token"));const{data:{token:S}}=await p.get(r.generateUrl("/csrftoken"));return console.debug("New request token ".concat(S," fetched")),p.defaults.headers.requesttoken=S,p({...A,headers:{...A.headers,requesttoken:S},[o]:!0})}return Promise.reject(m)},a=Symbol("retryDelay"),l=p=>async m=>{var b;const{config:A,response:v,request:D}=m,C=D?.responseURL,S=v?.status,O=v?.headers;if(S===503&&O["x-nextcloud-maintenance-mode"]==="1"&&A.retryIfMaintenanceMode&&(!A[a]||A[a]<=32)){const k=((b=A[a])!=null?b:1)*2;return console.warn("Request to ".concat(C," failed because of maintenance mode. Retrying in ").concat(k,"s")),await new Promise(Z=>{setTimeout(Z,k*1e3)}),p({...A,[a]:k})}return Promise.reject(m)},c=async p=>{var m;const{config:b,response:A,request:v}=p,D=v?.responseURL;return A?.status===401&&((m=A?.data)==null?void 0:m.message)==="Current user is not logged in"&&b.reloadExpiredSession&&window?.location&&(console.error("Request to ".concat(D," failed because the user session expired. Reloading the page …")),window.location.reload()),Promise.reject(p)};var u;const d=i.default.create({headers:{requesttoken:(u=n.getRequestToken())!=null?u:"","X-Requested-With":"XMLHttpRequest"}}),h=Object.assign(d,{CancelToken:i.default.CancelToken,isCancel:i.default.isCancel});h.interceptors.response.use(p=>p,s(h)),h.interceptors.response.use(p=>p,l(h)),h.interceptors.response.use(p=>p,c),n.onRequestTokenUpdate(p=>{d.defaults.headers.requesttoken=p}),Object.defineProperty(e,"isAxiosError",{enumerable:!0,get:()=>t.isAxiosError}),Object.defineProperty(e,"isCancel",{enumerable:!0,get:()=>t.isCancel}),e.default=h}(K2)),K2}var ow;function Pne(){if(ow)return Xo;ow=1;var e=Xo&&Xo.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.listen=Xo.getSupportedTypes=void 0;const t=Ine(),n=e(Zne()),r=_R();function i(){const l=(0,t.getCapabilities)();return l.notify_push?l.notify_push.type:[]}Xo.getSupportedTypes=i;function o(l,c,u={}){return s(u),window._notify_push_listeners[l]||(window._notify_push_listeners[l]=[]),window._notify_push_listeners[l].push(c),window._notify_push_ws!==null&&typeof window._notify_push_ws=="object"?window._notify_push_ws.send("listen "+l):a(u),window._notify_push_available}Xo.listen=o;function s(l={}){typeof window._notify_push_listeners>"u"&&(window._notify_push_listeners={},window._notify_push_ws=null,window._notify_push_online=!0,window._notify_push_available=!1,window._notify_push_error_count=0,(0,r.subscribe)("networkOffline",()=>{window._notify_push_online=!1,window._notify_push_ws=null}),(0,r.subscribe)("networkOnline",()=>{window._notify_push_error_count=0,window._notify_push_online=!0,a(l)}))}async function a(l={}){if(window._notify_push_ws)return!0;window._notify_push_ws=!0;const c=(0,t.getCapabilities)();if(!c.notify_push)return window._notify_push_available=!1,window._notify_push_ws=null,!1;window._notify_push_available=!0;let u;return l.credentials||(u=(await n.default.post(c.notify_push.endpoints.pre_auth)).data),window._notify_push_ws=new WebSocket(c.notify_push.endpoints.websocket),window._notify_push_ws.onopen=()=>{if(typeof window._notify_push_ws=="object"&&window._notify_push_ws){u?(window._notify_push_ws.send(""),window._notify_push_ws.send(u)):l.credentials&&(window._notify_push_ws.send(l.credentials.username),window._notify_push_ws.send(l.credentials.password));for(let d in window._notify_push_listeners)window._notify_push_ws.send("listen "+d)}},window._notify_push_ws.onmessage=d=>{if(d.data==="authenticated")window._notify_push_error_count=0;else{const h=d.data.indexOf(" ");let[p,m]=h>0?[d.data.slice(0,h),d.data.slice(h+1)]:[d.data,null];if(m&&(m=JSON.parse(m)),window._notify_push_listeners[p])for(let b of window._notify_push_listeners[p])b(p,m)}},window._notify_push_ws.onerror=window._notify_push_ws.onclose=()=>{window._notify_push_ws=null,window._notify_push_error_count+=1,setTimeout(()=>{window._notify_push_online&&a(l)},1e3*window._notify_push_error_count)},!0}return Xo}var $ne=Pne();if(!window._nc_text_notify){const e=dm("text","notify_push",!1)?$ne.listen("text_steps",(t,n)=>{window._nc_text_notify?.emit("notify_push",{messageType:t,messageBody:n})}):void 0;window._nc_text_notify=e?TR():void 0}const Une=()=>window._nc_text_notify,sw=300,zne=5e3,Vne=5e3,jne=3e4,CR=3e4,Vg=3e4,Gne=5,qne=CR*1.5;class Wne{#e;#t;#i;#a;#n;#c;fetcher;#o=!1;#s=!1;#r;visibilitychange=()=>{document.visibilityState==="hidden"?this.#n=CR:this.resetRefetchTimer()};constructor(t,n,{readOnly:r}){this.#e=t,this.#t=n,this.#n=sw,this.#c=0,this.#a=0,this.#i=r}connect(){if(this.fetcher){console.error("Trying to connect, but already connected");return}this.#s=!1,this.fetcher=setInterval(this._fetchSteps.bind(this),50),document.addEventListener("visibilitychange",this.visibilitychange),this.#r=Une()}async _fetchSteps(){if(this.#o)return;const t=Date.now();if(!(this.#a>t-this.#n)){if(!this.fetcher){console.error("No inverval but triggered");return}this.#o=!0,Nr.debug("[PollingBackend] Fetching steps",{version:this.#e.version}),await Ane(this.#t,{version:this.#e.version}).then(this._handleResponse.bind(this),this._handleError.bind(this)),this.#a=Date.now(),this.#o=!1}}_handleResponse({data:t}){const{document:n,sessions:r}=t;if(this.#c=0,this.#e.emit("change",{document:n,sessions:r}),this.#e.receiveSteps(t),t.steps.length===0){if(this.#s||(this.#s=!0),this.#e.checkIdle())return;const i=Date.now()-qne,o=r.filter(s=>s.lastContact*1e3>i);this.#i?this.maximumReadOnlyTimer():o.length<2?this.maximumRefetchTimer():this.increaseRefetchTimer(),this.#e.emit("stateChange",{initialLoading:!0});return}this.#s&&this.resetRefetchTimer()}_handleError(t){!t.response||t.code==="ECONNABORTED"?this.#c++>=Gne?(Nr.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),this.#e.emit("error",{type:Li.CONNECTION_FAILED,data:{}})):Nr.error(`[PollingBackend:fetchSteps] Network error when fetching steps, retry ${this.#c}`):t.response.status===409?(this._handleResponse(t.response),Nr.error("Conflict during file save, please resolve"),this.#e.emit("error",{type:Li.SAVE_COLLISSION,data:{outsideChange:t.response.data.outsideChange}})):t.response.status===412?(this.#e.emit("error",{type:Li.LOAD_ERROR,data:t.response}),this.disconnect()):[403,404].includes(t.response.status)?(this.#e.emit("error",{type:Li.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):[502,503].includes(t.response.status)?(this.increaseRefetchTimer(),this.#e.emit("error",{type:Li.CONNECTION_FAILED,data:{}}),Nr.error("Failed to fetch steps due to unavailable service",{error:t})):(this.disconnect(),this.#e.emit("error",{type:Li.CONNECTION_FAILED,data:{}}),Nr.error("Failed to fetch steps due to other reason",{error:t}))}disconnect(){clearInterval(this.fetcher),this.fetcher=void 0,document.removeEventListener("visibilitychange",this.visibilitychange)}resetRefetchTimer(){if(this.#r&&this.#s){this.#n=Vg;return}this.#n=sw}increaseRefetchTimer(){if(this.#r&&this.#s){this.#n=Vg;return}this.#n=Math.min(this.#n*2,zne)}maximumRefetchTimer(){if(this.#r&&this.#s){this.#n=Vg;return}this.#n=Vne}maximumReadOnlyTimer(){this.#n=jne}}const aw=1440,_be=60,Kne=90,Li={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4,PUSH_FORBIDDEN:5};function Cbe(e){return"guestName"in e&&typeof e.guestName=="string"}function Qne(e){return"userId"in e&&typeof e.userId=="string"}class Nbe{connection;version=-1;pushError=0;backend;#e;#t=new Mne;bus=TR();#i;#a=Date.now();#n=!1;constructor({connection:t,openConnection:n}){this.connection=t,this.#i=n}hasActiveConnection(){return!!this.connection.value}async open(){if(this.hasActiveConnection())return;const t=await this.#i().catch(n=>this._emitError(n));if(t){if(!this.connection.value){console.error("Opened the connection but now it is undefined");return}this.version=t.document.lastSavedVersion,this.backend=new Wne(this,this.connection.value,t),this.emit("opened",t)}}startSync(){this.backend?.connect()}syncUp(){this.backend?.resetRefetchTimer()}_emitError(t){!t.response||t.code==="ECONNABORTED"?this.emit("error",{type:Li.CONNECTION_FAILED,data:{}}):this.emit("error",{type:Li.LOAD_ERROR,data:t.response})}sendStep(t){this.#t.storeStep(t),this.sendSteps()}sendSteps(){this.#e||(this.#e=setInterval(()=>{this.connection.value&&!this.#n&&this.sendStepsNow().catch(t=>Nr.error(t))},200))}async sendStepsNow(){this.#n=!0,clearInterval(this.#e),this.#e=void 0;const t=this.#t.getDataToSend();if(t.steps.length>0&&this.emit("stateChange",{dirty:!0}),!!this.hasActiveConnection())return bne(this.connection,{version:this.version,...t}).then(n=>{this.#t.clearSentData(t);const{steps:r,documentState:i}=n.data;if(i){const o=kne(i);this.emit("sync",{version:this.version,steps:[o]})}this.pushError=0,this.#n=!1,r?.length>0&&this.receiveSteps({steps:r})}).catch(n=>{const{response:r,code:i}=n;throw this.#n=!1,this.pushError++,Nr.error("Failed to push the steps to the server",n),(!r||i==="ECONNABORTED")&&this.emit("error",{type:Li.CONNECTION_FAILED,data:{}}),r?.status===412?this.emit("error",{type:Li.LOAD_ERROR,data:r}):r?.status===403?(Nr.error("failed to write to document - not allowed"),this.emit("error",{type:Li.PUSH_FORBIDDEN,data:{}})):this.emit("error",{type:Li.PUSH_FAILURE,data:{}}),new Error("Failed to apply steps. Retry!",{cause:n})})}receiveSteps({steps:t,document:n,sessions:r=[]}){const i=[...r.filter(o=>o.lastContact>Math.floor(Date.now()/1e3)-Kne).filter(o=>o.lastAwarenessMessage).map(o=>({step:o.lastAwarenessMessage}))];for(let o=0;o<t.length;o++){const s=t[o].data;if(this.version<t[o].version&&(this.version=t[o].version),!Array.isArray(s)){Nr.error("Invalid step data, skipping step",{step:t[o]});continue}s.forEach(a=>{i.push({step:a})})}this.#a=Date.now(),this.emit("sync",{steps:i,document:n,version:this.version})}checkIdle(){return(Date.now()-this.#a)/1e3/60>aw?(Nr.debug(`[SyncService] Document is idle for ${aw} minutes, suspending connection`),this.emit("idle"),!0):!1}async sendRemainingSteps(){if(this.#t.hasUpdate)return Nr.debug("sending final steps"),this.sendStepsNow().catch(t=>Nr.error(t))}async close(){this.backend?.disconnect(),this.hasActiveConnection()&&HV(this.connection.value).catch(t=>{Nr.info("Failed to close connection.",{e:t})}),this.connection.value=void 0,this.emit("close")}on(t,n){return this.bus.on(t,n),this}off(t,n){return this.bus.off(t,n),this}emit(t,n){this.bus.emit(t,n)}}const Fbe=e=>({setContent:(t,{addToHistory:n=!0}={})=>{const r=e.extensionManager.extensions.includes(fR)?_l.render(t)+"<p/>":`<pre>${X4(t)}</pre>`;e.chain().setContent(r,n).command(({tr:i})=>(i.setMeta("addToHistory",n),!0)).run()},setEditable:t=>{e&&e.isEditable!==t&&e.setEditable(t)},updateUser:t=>{const n={name:Qne(t)?t.displayName:t?.guestName||"",color:t?.color};e.commands.updateUser(n)}});var jg,lw;function Jne(){if(lw)return jg;lw=1;function e(P){return P instanceof Map?P.clear=P.delete=P.set=function(){throw new Error("map is read-only")}:P instanceof Set&&(P.add=P.clear=P.delete=function(){throw new Error("set is read-only")}),Object.freeze(P),Object.getOwnPropertyNames(P).forEach(ae=>{const be=P[ae],Je=typeof be;(Je==="object"||Je==="function")&&!Object.isFrozen(be)&&e(be)}),P}class t{constructor(ae){ae.data===void 0&&(ae.data={}),this.data=ae.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(P){return P.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(P,...ae){const be=Object.create(null);for(const Je in P)be[Je]=P[Je];return ae.forEach(function(Je){for(const Ut in Je)be[Ut]=Je[Ut]}),be}const i="</span>",o=P=>!!P.scope,s=(P,{prefix:ae})=>{if(P.startsWith("language:"))return P.replace("language:","language-");if(P.includes(".")){const be=P.split(".");return[`${ae}${be.shift()}`,...be.map((Je,Ut)=>`${Je}${"_".repeat(Ut+1)}`)].join(" ")}return`${ae}${P}`};class a{constructor(ae,be){this.buffer="",this.classPrefix=be.classPrefix,ae.walk(this)}addText(ae){this.buffer+=n(ae)}openNode(ae){if(!o(ae))return;const be=s(ae.scope,{prefix:this.classPrefix});this.span(be)}closeNode(ae){o(ae)&&(this.buffer+=i)}value(){return this.buffer}span(ae){this.buffer+=`<span class="${ae}">`}}const l=(P={})=>{const ae={children:[]};return Object.assign(ae,P),ae};class c{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ae){this.top.children.push(ae)}openNode(ae){const be=l({scope:ae});this.add(be),this.stack.push(be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ae){return this.constructor._walk(ae,this.rootNode)}static _walk(ae,be){return typeof be=="string"?ae.addText(be):be.children&&(ae.openNode(be),be.children.forEach(Je=>this._walk(ae,Je)),ae.closeNode(be)),ae}static _collapse(ae){typeof ae!="string"&&ae.children&&(ae.children.every(be=>typeof be=="string")?ae.children=[ae.children.join("")]:ae.children.forEach(be=>{c._collapse(be)}))}}class u extends c{constructor(ae){super(),this.options=ae}addText(ae){ae!==""&&this.add(ae)}startScope(ae){this.openNode(ae)}endScope(){this.closeNode()}__addSublanguage(ae,be){const Je=ae.root;be&&(Je.scope=`language:${be}`),this.add(Je)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(P){return P?typeof P=="string"?P:P.source:null}function h(P){return b("(?=",P,")")}function p(P){return b("(?:",P,")*")}function m(P){return b("(?:",P,")?")}function b(...P){return P.map(ae=>d(ae)).join("")}function A(P){const ae=P[P.length-1];return typeof ae=="object"&&ae.constructor===Object?(P.splice(P.length-1,1),ae):{}}function v(...P){return"("+(A(P).capture?"":"?:")+P.map(ae=>d(ae)).join("|")+")"}function D(P){return new RegExp(P.toString()+"|").exec("").length-1}function C(P,ae){const be=P&&P.exec(ae);return be&&be.index===0}const S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function O(P,{joinWith:ae}){let be=0;return P.map(Je=>{be+=1;const Ut=be;let zt=d(Je),ze="";for(;zt.length>0;){const Me=S.exec(zt);if(!Me){ze+=zt;break}ze+=zt.substring(0,Me.index),zt=zt.substring(Me.index+Me[0].length),Me[0][0]==="\\"&&Me[1]?ze+="\\"+String(Number(Me[1])+Ut):(ze+=Me[0],Me[0]==="("&&be++)}return ze}).map(Je=>`(${Je})`).join(ae)}const k=/\b\B/,Z="[a-zA-Z]\\w*",W="[a-zA-Z_]\\w*",U="\\b\\d+(\\.\\d+)?",w="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",z="\\b(0b[01]+)",V="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",L=(P={})=>{const ae=/^#![ ]*\//;return P.binary&&(P.begin=b(ae,/.*\b/,P.binary,/\b.*/)),r({scope:"meta",begin:ae,end:/$/,relevance:0,"on:begin":(be,Je)=>{be.index!==0&&Je.ignoreMatch()}},P)},se={begin:"\\\\[\\s\\S]",relevance:0},J={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[se]},Se={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[se]},G={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ie=function(P,ae,be={}){const Je=r({scope:"comment",begin:P,end:ae,contains:[]},be);Je.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ut=v("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Je.contains.push({begin:b(/[ ]+/,"(",Ut,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Je},ce=ie("//","$"),De=ie("/\\*","\\*/"),Oe=ie("#","$"),Be={scope:"number",begin:U,relevance:0},ft={scope:"number",begin:w,relevance:0},bt={scope:"number",begin:z,relevance:0},et={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[se,{begin:/\[/,end:/\]/,relevance:0,contains:[se]}]},nt={scope:"title",begin:Z,relevance:0},rt={scope:"title",begin:W,relevance:0},Dt={begin:"\\.\\s*"+W,relevance:0};var jt=Object.freeze({__proto__:null,APOS_STRING_MODE:J,BACKSLASH_ESCAPE:se,BINARY_NUMBER_MODE:bt,BINARY_NUMBER_RE:z,COMMENT:ie,C_BLOCK_COMMENT_MODE:De,C_LINE_COMMENT_MODE:ce,C_NUMBER_MODE:ft,C_NUMBER_RE:w,END_SAME_AS_BEGIN:function(P){return Object.assign(P,{"on:begin":(ae,be)=>{be.data._beginMatch=ae[1]},"on:end":(ae,be)=>{be.data._beginMatch!==ae[1]&&be.ignoreMatch()}})},HASH_COMMENT_MODE:Oe,IDENT_RE:Z,MATCH_NOTHING_RE:k,METHOD_GUARD:Dt,NUMBER_MODE:Be,NUMBER_RE:U,PHRASAL_WORDS_MODE:G,QUOTE_STRING_MODE:Se,REGEXP_MODE:et,RE_STARTERS_RE:V,SHEBANG:L,TITLE_MODE:nt,UNDERSCORE_IDENT_RE:W,UNDERSCORE_TITLE_MODE:rt});function _e(P,ae){P.input[P.index-1]==="."&&ae.ignoreMatch()}function ht(P,ae){P.className!==void 0&&(P.scope=P.className,delete P.className)}function it(P,ae){ae&&P.beginKeywords&&(P.begin="\\b("+P.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",P.__beforeBegin=_e,P.keywords=P.keywords||P.beginKeywords,delete P.beginKeywords,P.relevance===void 0&&(P.relevance=0))}function Bt(P,ae){Array.isArray(P.illegal)&&(P.illegal=v(...P.illegal))}function $t(P,ae){if(P.match){if(P.begin||P.end)throw new Error("begin & end are not supported with match");P.begin=P.match,delete P.match}}function wn(P,ae){P.relevance===void 0&&(P.relevance=1)}const Ue=(P,ae)=>{if(!P.beforeMatch)return;if(P.starts)throw new Error("beforeMatch cannot be used with starts");const be=Object.assign({},P);Object.keys(P).forEach(Je=>{delete P[Je]}),P.keywords=be.keywords,P.begin=b(be.beforeMatch,h(be.begin)),P.starts={relevance:0,contains:[Object.assign(be,{endsParent:!0})]},P.relevance=0,delete be.beforeMatch},I=["of","and","for","in","not","or","if","then","parent","list","value"],j="keyword";function M(P,ae,be=j){const Je=Object.create(null);return typeof P=="string"?Ut(be,P.split(" ")):Array.isArray(P)?Ut(be,P):Object.keys(P).forEach(function(zt){Object.assign(Je,M(P[zt],ae,zt))}),Je;function Ut(zt,ze){ae&&(ze=ze.map(Me=>Me.toLowerCase())),ze.forEach(function(Me){const Ze=Me.split("|");Je[Ze[0]]=[zt,de(Ze[0],Ze[1])]})}}function de(P,ae){return ae?Number(ae):Te(P)?0:1}function Te(P){return I.includes(P.toLowerCase())}const H={},fe=P=>{console.error(P)},Ie=(P,...ae)=>{console.log(`WARN: ${P}`,...ae)},lt=(P,ae)=>{H[`${P}/${ae}`]||(console.log(`Deprecated as of ${P}. ${ae}`),H[`${P}/${ae}`]=!0)},St=new Error;function Q(P,ae,{key:be}){let Je=0;const Ut=P[be],zt={},ze={};for(let Me=1;Me<=ae.length;Me++)ze[Me+Je]=Ut[Me],zt[Me+Je]=!0,Je+=D(ae[Me-1]);P[be]=ze,P[be]._emit=zt,P[be]._multi=!0}function ne(P){if(Array.isArray(P.begin)){if(P.skip||P.excludeBegin||P.returnBegin)throw fe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),St;if(typeof P.beginScope!="object"||P.beginScope===null)throw fe("beginScope must be object"),St;Q(P,P.begin,{key:"beginScope"}),P.begin=O(P.begin,{joinWith:""})}}function Ne(P){if(Array.isArray(P.end)){if(P.skip||P.excludeEnd||P.returnEnd)throw fe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),St;if(typeof P.endScope!="object"||P.endScope===null)throw fe("endScope must be object"),St;Q(P,P.end,{key:"endScope"}),P.end=O(P.end,{joinWith:""})}}function ot(P){P.scope&&typeof P.scope=="object"&&P.scope!==null&&(P.beginScope=P.scope,delete P.scope)}function Ot(P){ot(P),typeof P.beginScope=="string"&&(P.beginScope={_wrap:P.beginScope}),typeof P.endScope=="string"&&(P.endScope={_wrap:P.endScope}),ne(P),Ne(P)}function fn(P){function ae(ze,Me){return new RegExp(d(ze),"m"+(P.case_insensitive?"i":"")+(P.unicodeRegex?"u":"")+(Me?"g":""))}class be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Me,Ze){Ze.position=this.position++,this.matchIndexes[this.matchAt]=Ze,this.regexes.push([Ze,Me]),this.matchAt+=D(Me)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Me=this.regexes.map(Ze=>Ze[1]);this.matcherRe=ae(O(Me,{joinWith:"|"}),!0),this.lastIndex=0}exec(Me){this.matcherRe.lastIndex=this.lastIndex;const Ze=this.matcherRe.exec(Me);if(!Ze)return null;const rn=Ze.findIndex((Yr,Ci)=>Ci>0&&Yr!==void 0),mn=this.matchIndexes[rn];return Ze.splice(0,rn),Object.assign(Ze,mn)}}class Je{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Me){if(this.multiRegexes[Me])return this.multiRegexes[Me];const Ze=new be;return this.rules.slice(Me).forEach(([rn,mn])=>Ze.addRule(rn,mn)),Ze.compile(),this.multiRegexes[Me]=Ze,Ze}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Me,Ze){this.rules.push([Me,Ze]),Ze.type==="begin"&&this.count++}exec(Me){const Ze=this.getMatcher(this.regexIndex);Ze.lastIndex=this.lastIndex;let rn=Ze.exec(Me);if(this.resumingScanAtSamePosition()&&!(rn&&rn.index===this.lastIndex)){const mn=this.getMatcher(0);mn.lastIndex=this.lastIndex+1,rn=mn.exec(Me)}return rn&&(this.regexIndex+=rn.position+1,this.regexIndex===this.count&&this.considerAll()),rn}}function Ut(ze){const Me=new Je;return ze.contains.forEach(Ze=>Me.addRule(Ze.begin,{rule:Ze,type:"begin"})),ze.terminatorEnd&&Me.addRule(ze.terminatorEnd,{type:"end"}),ze.illegal&&Me.addRule(ze.illegal,{type:"illegal"}),Me}function zt(ze,Me){const Ze=ze;if(ze.isCompiled)return Ze;[ht,$t,Ot,Ue].forEach(mn=>mn(ze,Me)),P.compilerExtensions.forEach(mn=>mn(ze,Me)),ze.__beforeBegin=null,[it,Bt,wn].forEach(mn=>mn(ze,Me)),ze.isCompiled=!0;let rn=null;return typeof ze.keywords=="object"&&ze.keywords.$pattern&&(ze.keywords=Object.assign({},ze.keywords),rn=ze.keywords.$pattern,delete ze.keywords.$pattern),rn=rn||/\w+/,ze.keywords&&(ze.keywords=M(ze.keywords,P.case_insensitive)),Ze.keywordPatternRe=ae(rn,!0),Me&&(ze.begin||(ze.begin=/\B|\b/),Ze.beginRe=ae(Ze.begin),!ze.end&&!ze.endsWithParent&&(ze.end=/\B|\b/),ze.end&&(Ze.endRe=ae(Ze.end)),Ze.terminatorEnd=d(Ze.end)||"",ze.endsWithParent&&Me.terminatorEnd&&(Ze.terminatorEnd+=(ze.end?"|":"")+Me.terminatorEnd)),ze.illegal&&(Ze.illegalRe=ae(ze.illegal)),ze.contains||(ze.contains=[]),ze.contains=[].concat(...ze.contains.map(function(mn){return oe(mn==="self"?ze:mn)})),ze.contains.forEach(function(mn){zt(mn,Ze)}),ze.starts&&zt(ze.starts,Me),Ze.matcher=Ut(Ze),Ze}if(P.compilerExtensions||(P.compilerExtensions=[]),P.contains&&P.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return P.classNameAliases=r(P.classNameAliases||{}),zt(P)}function nn(P){return P?P.endsWithParent||nn(P.starts):!1}function oe(P){return P.variants&&!P.cachedVariants&&(P.cachedVariants=P.variants.map(function(ae){return r(P,{variants:null},ae)})),P.cachedVariants?P.cachedVariants:nn(P)?r(P,{starts:P.starts?r(P.starts):null}):Object.isFrozen(P)?r(P):P}var Re="11.11.1";class Qe extends Error{constructor(ae,be){super(ae),this.name="HTMLInjectionError",this.html=be}}const xt=n,At=r,Nn=Symbol("nomatch"),qn=7,Lr=function(P){const ae=Object.create(null),be=Object.create(null),Je=[];let Ut=!0;const zt="Could not find the language '{}', did you forget to load/include a language module?",ze={disableAutodetect:!0,name:"Plain text",contains:[]};let Me={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:u};function Ze(ye){return Me.noHighlightRe.test(ye)}function rn(ye){let qe=ye.className+" ";qe+=ye.parentNode?ye.parentNode.className:"";const wt=Me.languageDetectRe.exec(qe);if(wt){const It=mi(wt[1]);return It||(Ie(zt.replace("{}",wt[1])),Ie("Falling back to no-highlight mode for this block.",ye)),It?wt[1]:"no-highlight"}return qe.split(/\s+/).find(It=>Ze(It)||mi(It))}function mn(ye,qe,wt){let It="",Gt="";typeof qe=="object"?(It=ye,wt=qe.ignoreIllegals,Gt=qe.language):(lt("10.7.0","highlight(lang, code, ...args) has been deprecated."),lt("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),Gt=ye,It=qe),wt===void 0&&(wt=!0);const Dr={code:It,language:Gt};Hr("before:highlight",Dr);const Wr=Dr.result?Dr.result:Yr(Dr.language,Dr.code,wt);return Wr.code=Dr.code,Hr("after:highlight",Wr),Wr}function Yr(ye,qe,wt,It){const Gt=Object.create(null);function Dr(Fe,Pe){return Fe.keywords[Pe]}function Wr(){if(!pt.keywords){Rn.addText(qt);return}let Fe=0;pt.keywordPatternRe.lastIndex=0;let Pe=pt.keywordPatternRe.exec(qt),gt="";for(;Pe;){gt+=qt.substring(Fe,Pe.index);const Yt=Zr.case_insensitive?Pe[0].toLowerCase():Pe[0],Mn=Dr(pt,Yt);if(Mn){const[or,Ys]=Mn;if(Rn.addText(gt),gt="",Gt[Yt]=(Gt[Yt]||0)+1,Gt[Yt]<=qn&&(Qr+=Ys),or.startsWith("_"))gt+=Pe[0];else{const qa=Zr.classNameAliases[or]||or;Kr(Pe[0],qa)}}else gt+=Pe[0];Fe=pt.keywordPatternRe.lastIndex,Pe=pt.keywordPatternRe.exec(qt)}gt+=qt.substring(Fe),Rn.addText(gt)}function Oi(){if(qt==="")return;let Fe=null;if(typeof pt.subLanguage=="string"){if(!ae[pt.subLanguage]){Rn.addText(qt);return}Fe=Yr(pt.subLanguage,qt,!0,Ls[pt.subLanguage]),Ls[pt.subLanguage]=Fe._top}else Fe=kn(qt,pt.subLanguage.length?pt.subLanguage:null);pt.relevance>0&&(Qr+=Fe.relevance),Rn.__addSublanguage(Fe._emitter,Fe.language)}function rr(){pt.subLanguage!=null?Oi():Wr(),qt=""}function Kr(Fe,Pe){Fe!==""&&(Rn.startScope(Pe),Rn.addText(Fe),Rn.endScope())}function Ua(Fe,Pe){let gt=1;const Yt=Pe.length-1;for(;gt<=Yt;){if(!Fe._emit[gt]){gt++;continue}const Mn=Zr.classNameAliases[Fe[gt]]||Fe[gt],or=Pe[gt];Mn?Kr(or,Mn):(qt=or,Wr(),qt=""),gt++}}function za(Fe,Pe){return Fe.scope&&typeof Fe.scope=="string"&&Rn.openNode(Zr.classNameAliases[Fe.scope]||Fe.scope),Fe.beginScope&&(Fe.beginScope._wrap?(Kr(qt,Zr.classNameAliases[Fe.beginScope._wrap]||Fe.beginScope._wrap),qt=""):Fe.beginScope._multi&&(Ua(Fe.beginScope,Pe),qt="")),pt=Object.create(Fe,{parent:{value:pt}}),pt}function gi(Fe,Pe,gt){let Yt=C(Fe.endRe,gt);if(Yt){if(Fe["on:end"]){const Mn=new t(Fe);Fe["on:end"](Pe,Mn),Mn.isMatchIgnored&&(Yt=!1)}if(Yt){for(;Fe.endsParent&&Fe.parent;)Fe=Fe.parent;return Fe}}if(Fe.endsWithParent)return gi(Fe.parent,Pe,gt)}function Ql(Fe){return pt.matcher.regexIndex===0?(qt+=Fe[0],1):(Ga=!0,0)}function Fu(Fe){const Pe=Fe[0],gt=Fe.rule,Yt=new t(gt),Mn=[gt.__beforeBegin,gt["on:begin"]];for(const or of Mn)if(or&&(or(Fe,Yt),Yt.isMatchIgnored))return Ql(Pe);return gt.skip?qt+=Pe:(gt.excludeBegin&&(qt+=Pe),rr(),!gt.returnBegin&&!gt.excludeBegin&&(qt=Pe)),za(gt,Fe),gt.returnBegin?0:Pe.length}function Ou(Fe){const Pe=Fe[0],gt=qe.substring(Fe.index),Yt=gi(pt,Fe,gt);if(!Yt)return Nn;const Mn=pt;pt.endScope&&pt.endScope._wrap?(rr(),Kr(Pe,pt.endScope._wrap)):pt.endScope&&pt.endScope._multi?(rr(),Ua(pt.endScope,Fe)):Mn.skip?qt+=Pe:(Mn.returnEnd||Mn.excludeEnd||(qt+=Pe),rr(),Mn.excludeEnd&&(qt=Pe));do pt.scope&&Rn.closeNode(),!pt.skip&&!pt.subLanguage&&(Qr+=pt.relevance),pt=pt.parent;while(pt!==Yt.parent);return Yt.starts&&za(Yt.starts,Fe),Mn.returnEnd?0:Pe.length}function xu(){const Fe=[];for(let Pe=pt;Pe!==Zr;Pe=Pe.parent)Pe.scope&&Fe.unshift(Pe.scope);Fe.forEach(Pe=>Rn.openNode(Pe))}let jo={};function Va(Fe,Pe){const gt=Pe&&Pe[0];if(qt+=Fe,gt==null)return rr(),0;if(jo.type==="begin"&&Pe.type==="end"&&jo.index===Pe.index&&gt===""){if(qt+=qe.slice(Pe.index,Pe.index+1),!Ut){const Yt=new Error(`0 width match regex (${ye})`);throw Yt.languageName=ye,Yt.badRule=jo.rule,Yt}return 1}if(jo=Pe,Pe.type==="begin")return Fu(Pe);if(Pe.type==="illegal"&&!wt){const Yt=new Error('Illegal lexeme "'+gt+'" for mode "'+(pt.scope||"<unnamed>")+'"');throw Yt.mode=pt,Yt}else if(Pe.type==="end"){const Yt=Ou(Pe);if(Yt!==Nn)return Yt}if(Pe.type==="illegal"&&gt==="")return qt+=`
`,1;if(ja>1e5&&ja>Pe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return qt+=gt,gt.length}const Zr=mi(ye);if(!Zr)throw fe(zt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const Go=fn(Zr);let Is="",pt=It||Go;const Ls={},Rn=new Me.__emitter(Me);xu();let qt="",Qr=0,ir=0,ja=0,Ga=!1;try{if(Zr.__emitTokens)Zr.__emitTokens(qe,Rn);else{for(pt.matcher.considerAll();;){ja++,Ga?Ga=!1:pt.matcher.considerAll(),pt.matcher.lastIndex=ir;const Fe=pt.matcher.exec(qe);if(!Fe)break;const Pe=qe.substring(ir,Fe.index),gt=Va(Pe,Fe);ir=Fe.index+gt}Va(qe.substring(ir))}return Rn.finalize(),Is=Rn.toHTML(),{language:ye,value:Is,relevance:Qr,illegal:!1,_emitter:Rn,_top:pt}}catch(Fe){if(Fe.message&&Fe.message.includes("Illegal"))return{language:ye,value:xt(qe),illegal:!0,relevance:0,_illegalBy:{message:Fe.message,index:ir,context:qe.slice(ir-100,ir+100),mode:Fe.mode,resultSoFar:Is},_emitter:Rn};if(Ut)return{language:ye,value:xt(qe),illegal:!1,relevance:0,errorRaised:Fe,_emitter:Rn,_top:pt};throw Fe}}function Ci(ye){const qe={value:xt(ye),illegal:!1,relevance:0,_top:ze,_emitter:new Me.__emitter(Me)};return qe._emitter.addText(ye),qe}function kn(ye,qe){qe=qe||Me.languages||Object.keys(ae);const wt=Ci(ye),It=qe.filter(mi).filter(fo).map(rr=>Yr(rr,ye,!1));It.unshift(wt);const Gt=It.sort((rr,Kr)=>{if(rr.relevance!==Kr.relevance)return Kr.relevance-rr.relevance;if(rr.language&&Kr.language){if(mi(rr.language).supersetOf===Kr.language)return 1;if(mi(Kr.language).supersetOf===rr.language)return-1}return 0}),[Dr,Wr]=Gt,Oi=Dr;return Oi.secondBest=Wr,Oi}function Rs(ye,qe,wt){const It=qe&&be[qe]||wt;ye.classList.add("hljs"),ye.classList.add(`language-${It}`)}function Ni(ye){let qe=null;const wt=rn(ye);if(Ze(wt))return;if(Hr("before:highlightElement",{el:ye,language:wt}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(Me.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),Me.throwUnescapedHTML))throw new Qe("One of your code blocks includes unescaped HTML.",ye.innerHTML);qe=ye;const It=qe.textContent,Gt=wt?mn(It,{language:wt,ignoreIllegals:!0}):kn(It);ye.innerHTML=Gt.value,ye.dataset.highlighted="yes",Rs(ye,wt,Gt.language),ye.result={language:Gt.language,re:Gt.relevance,relevance:Gt.relevance},Gt.secondBest&&(ye.secondBest={language:Gt.secondBest.language,relevance:Gt.secondBest.relevance}),Hr("after:highlightElement",{el:ye,result:Gt,text:It})}function ql(ye){Me=At(Me,ye)}const Cu=()=>{Fi(),lt("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function Wl(){Fi(),lt("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let Wi=!1;function Fi(){function ye(){Fi()}if(document.readyState==="loading"){Wi||window.addEventListener("DOMContentLoaded",ye,!1),Wi=!0;return}document.querySelectorAll(Me.cssSelector).forEach(Ni)}function Nu(ye,qe){let wt=null;try{wt=qe(P)}catch(It){if(fe("Language definition for '{}' could not be registered.".replace("{}",ye)),Ut)fe(It);else throw It;wt=ze}wt.name||(wt.name=ye),ae[ye]=wt,wt.rawDefinition=qe.bind(null,P),wt.aliases&&Kl(wt.aliases,{languageName:ye})}function Ms(ye){delete ae[ye];for(const qe of Object.keys(be))be[qe]===ye&&delete be[qe]}function Bs(){return Object.keys(ae)}function mi(ye){return ye=(ye||"").toLowerCase(),ae[ye]||ae[be[ye]]}function Kl(ye,{languageName:qe}){typeof ye=="string"&&(ye=[ye]),ye.forEach(wt=>{be[wt.toLowerCase()]=qe})}function fo(ye){const qe=mi(ye);return qe&&!qe.disableAutodetect}function vr(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=qe=>{ye["before:highlightBlock"](Object.assign({block:qe.el},qe))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=qe=>{ye["after:highlightBlock"](Object.assign({block:qe.el},qe))})}function mo(ye){vr(ye),Je.push(ye)}function $n(ye){const qe=Je.indexOf(ye);qe!==-1&&Je.splice(qe,1)}function Hr(ye,qe){const wt=ye;Je.forEach(function(It){It[wt]&&It[wt](qe)})}function $a(ye){return lt("10.7.0","highlightBlock will be removed entirely in v12.0"),lt("10.7.0","Please use highlightElement now."),Ni(ye)}Object.assign(P,{highlight:mn,highlightAuto:kn,highlightAll:Fi,highlightElement:Ni,highlightBlock:$a,configure:ql,initHighlighting:Cu,initHighlightingOnLoad:Wl,registerLanguage:Nu,unregisterLanguage:Ms,listLanguages:Bs,getLanguage:mi,registerAliases:Kl,autoDetection:fo,inherit:At,addPlugin:mo,removePlugin:$n}),P.debugMode=function(){Ut=!1},P.safeMode=function(){Ut=!0},P.versionString=Re,P.regex={concat:b,lookahead:h,either:v,optional:m,anyNumberOfTimes:p};for(const ye in jt)typeof jt[ye]=="object"&&e(jt[ye]);return Object.assign(P,jt),P},Ln=Lr({});return Ln.newInstance=()=>Lr({}),jg=Ln,Ln.HighlightJS=Ln,Ln.default=Ln,jg}var Xne=Jne();const ere=$l(Xne);function tre(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],p=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],A={type:p,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:m},v={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},D=[v,c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:D.concat([{begin:/\(/,end:/\)/,keywords:A,contains:D.concat(["self"]),relevance:0}]),relevance:0},S={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:A,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[a,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:A,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(C,S,v,D,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:A,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:A},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function nre(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=tre(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function rre(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(a);const l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),m={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],v={match:/(\/[a-z._-]+)+/},D=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],C=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],S=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],O=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:A,built_in:[...D,...C,"set","shopt",...S,...O]},contains:[p,e.SHEBANG(),m,d,o,s,v,a,l,c,u,n]}}function ire(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",h={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},p=[c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:h,contains:p.concat([{begin:/\(/,end:/\)/,keywords:h,contains:p.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:h,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:h,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(u,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:h,disableAutodetect:!0,illegal:"</",contains:[].concat(m,b,p,[c,{begin:e.IDENT_RE+"::",keywords:h},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:a,keywords:h}}}function ore(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],p=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],A={type:p,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:m},v={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},D=[v,c,s,n,e.C_BLOCK_COMMENT_MODE,l,a],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:D.concat([{begin:/\(/,end:/\)/,keywords:A,contains:D.concat(["self"]),relevance:0}]),relevance:0},S={className:"function",begin:"("+o+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:A,relevance:0},{begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[a,l]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,l,s,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,l,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:A,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(C,S,v,D,[c,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:A,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:A},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function sre(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(o),built_in:t,literal:r},a=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(u,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:s},p=e.inherit(h,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},A=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});h.contains=[b,m,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],p.contains=[A,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const v={variants:[c,b,m,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},D={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},C=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",S={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},v,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,D,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,D,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+C+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,D],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[v,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},S]}}const are=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),lre=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],cre=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],ure=[...lre,...cre],dre=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),hre=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),pre=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),fre=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function mre(e){const t=e.regex,n=are(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+hre.join("|")+")"},{begin:":(:)?("+pre.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+fre.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:dre.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ure.join("|")+")\\b"}]}}function gre(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Tre(e){const t={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}}function bre(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function Are(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},a={begin:/\[/,end:/\]/,contains:[r,o,i,s,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),h=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,a,o,i,s,n]}}]}}var Ec="[0-9](_*[0-9])*",Lh=`\\.(${Ec})`,Yh="[0-9a-fA-F](_*[0-9a-fA-F])*",cw={className:"number",variants:[{begin:`(\\b(${Ec})((${Lh})|\\.)?|(${Lh}))[eE][+-]?(${Ec})[fFdD]?\\b`},{begin:`\\b(${Ec})((${Lh})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Lh})[fFdD]?\\b`},{begin:`\\b(${Ec})[fFdD]\\b`},{begin:`\\b0[xX]((${Yh})\\.?|(${Yh})?\\.(${Yh}))[pP][+-]?(${Ec})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Yh})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function NR(e,t,n){return n===-1?"":e.replace(t,r=>NR(e,t,n-1))}function yre(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+NR("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),i={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},o={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},s={className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:i,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,cw,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},cw,o]}}const uw="[A-Za-z$_][0-9A-Za-z$_]*",Ere=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],vre=["true","false","null","undefined","NaN","Infinity"],FR=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],OR=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xR=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Dre=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Sre=[].concat(xR,FR,OR);function wre(e){const t=e.regex,n=(G,{after:ie})=>{const ce="</"+G[0].slice(1);return G.input.indexOf(ce,ie)!==-1},r=uw,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,ie)=>{const ce=G[0].length+G.index,De=G.input[ce];if(De==="<"||De===","){ie.ignoreMatch();return}De===">"&&(n(G,{after:ce})||ie.ignoreMatch());let Oe;const Be=G.input.substring(ce);if(Oe=Be.match(/^\s*=/)){ie.ignoreMatch();return}if((Oe=Be.match(/^\s+extends\s+/))&&Oe.index===0){ie.ignoreMatch();return}}},a={$pattern:uw,keyword:Ere,literal:vre,built_in:Sre,"variable.language":Dre},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,A,{match:/\$\d+/},d];h.contains=D.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(D)});const C=[].concat(v,h.contains),S=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(C)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:S},k={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},Z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...FR,...OR]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},w={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(G){return t.concat("(?!",G.join("|"),")")}const V={match:t.concat(/\b/,z([...xR,"super","import"].map(G=>`${G}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},L={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Se={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:Z},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,A,v,{match:/\$\d+/},d,Z,{scope:"attr",match:r+t.lookahead(":"),relevance:0},Se,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:S}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},V,w,k,se,{match:/\$[(.]/}]}}function _re(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var vc="[0-9](_*[0-9])*",Hh=`\\.(${vc})`,Zh="[0-9a-fA-F](_*[0-9a-fA-F])*",Cre={className:"number",variants:[{begin:`(\\b(${vc})((${Hh})|\\.)?|(${Hh}))[eE][+-]?(${vc})[fFdD]?\\b`},{begin:`\\b(${vc})((${Hh})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Hh})[fFdD]?\\b`},{begin:`\\b(${vc})[fFdD]\\b`},{begin:`\\b0[xX]((${Zh})\\.?|(${Zh})?\\.(${Zh}))[pP][+-]?(${vc})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Zh})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Nre(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);const a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},c=Cre,u=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},h=d;return h.variants[1].contains=[d],d.variants[1].contains=[h],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,u,n,r,a,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,e.C_LINE_COMMENT_MODE,u],relevance:0},e.C_LINE_COMMENT_MODE,u,a,l,s,e.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,l]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},c]}}const Fre=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ore=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],xre=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],kre=[...Ore,...xre],Rre=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),kR=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),RR=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Mre=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Bre=kR.concat(RR).sort().reverse();function Ire(e){const t=Fre(e),n=Bre,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",s=[],a=[],l=function(C){return{className:"string",begin:"~?"+C+".*?"+C}},c=function(C,S,O){return{className:C,begin:S,relevance:O}},u={$pattern:/[a-z-]+/,keyword:r,attribute:Rre.join(" ")},d={begin:"\\(",end:"\\)",contains:a,keywords:u,relevance:0};a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,d,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const h=a.concat({begin:/\{/,end:/\}/,contains:s}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},m={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Mre.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},b={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:a,relevance:0}},A={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:h}},v={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+kre.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",o,0),c("selector-id","#"+o),c("selector-class","\\."+o,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+kR.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+RR.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:h},{begin:"!important"},t.FUNCTION_DISPATCH]},D={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[v]};return s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,A,D,m,v,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}function Lre(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function Yre(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,s]}}function Hre(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ 	]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),h=e.inherit(u,{contains:[]});c.contains.push(h),u.contains.push(d);let p=[n,l];return[c,u,d,h].forEach(m=>{m.contains=m.contains.concat(p)}),p=p.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,o,c,u,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,s,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function Zre(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},i={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:r,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+i.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:i,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Pre(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},s={begin:/->\{/,end:/\}/},a={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[a]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(b,A,v="\\1")=>{const D=v==="\\1"?v:t.concat(v,A);return t.concat(t.concat("(?:",b,")"),A,/(?:\\.|[^\\\/])*?/,D,/(?:\\.|[^\\\/])*?/,v,r)},p=(b,A,v)=>t.concat(t.concat("(?:",b,")"),A,/(?:\\.|[^\\\/])*?/,v,r),m=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",t.either(...d,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,a]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,a,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=m,s.contains=m,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:m}}function $re(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),s={scope:"variable",match:"\\$+"+r},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(L,se)=>{se.data._beginMatch=L[1]||L[2]},"on:end":(L,se)=>{se.data._beginMatch!==L[1]&&se.ignoreMatch()}},h=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[ 	
]`,m={scope:"string",variants:[u,c,d,h]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},A=["false","null","true"],v=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],D=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:v,literal:(L=>{const se=[];return L.forEach(J=>{se.push(J),J.toLowerCase()===J?se.push(J.toUpperCase()):se.push(J.toLowerCase())}),se})(A),built_in:D},S=L=>L.map(se=>se.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",S(D).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},k=t.concat(r,"\\b(?!\\()"),Z={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),k],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),k],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},W={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},U={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[W,s,Z,e.C_BLOCK_COMMENT_MODE,m,b,O]},w={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",S(v).join("\\b|"),"|",S(D).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[U]};U.contains.push(w);const z=[W,Z,e.C_BLOCK_COMMENT_MODE,m,b,O],V={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:A,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:A,keyword:["new","array"]},contains:["self",...z]},...z,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:C,contains:[V,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},s,w,Z,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",V,s,Z,e.C_BLOCK_COMMENT_MODE,m,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},m,b]}}function Ure(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function zre(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Vre(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},s={className:"subst",begin:/\{/,end:/\}/,keywords:i,illegal:/#/},a={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,a,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,a,s]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,a,s]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,s]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,d=`\\b|${r.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${c})[jJ](?=${d})`}]},p={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},m={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",o,h,l,e.HASH_COMMENT_MODE]}]};return s.contains=[l,h,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[o,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,p,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[h,m,l]}]}}function jre(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Gre(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function qre(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},b=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,l),relevance:0}].concat(a,l);c.contains=b,m.contains=b;const A=[{begin:/^\s*=>/,starts:{end:"$",contains:b}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:o,contains:b}}];return l.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(A).concat(l).concat(b)}}function Wre(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",a=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:a,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:u}},{className:"punctuation",begin:"->"},o]}}const Kre=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Qre=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Jre=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Xre=[...Qre,...Jre],eie=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),tie=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),nie=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),rie=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function iie(e){const t=Kre(e),n=nie,r=tie,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Xre.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+rie.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:eie.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function oie(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function sie(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=u,m=[...c,...l].filter(O=>!u.includes(O)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function D(O){return t.concat(/\b/,t.either(...O.map(k=>k.replace(/\s+/,"\\s+"))),/\b/)}const C={scope:"keyword",match:D(h),relevance:0};function S(O,{exceptions:k,when:Z}={}){const W=Z;return k=k||[],O.map(U=>U.match(/\|\d+$/)||k.includes(U)?U:W(U)?`${U}|0`:U)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:S(m,{when:O=>O.length<3}),literal:o,type:a,built_in:d},contains:[{scope:"type",match:D(s)},C,v,b,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,A]}}function MR(e){return e?typeof e=="string"?e:e.source:null}function Vu(e){return cn("(?=",e,")")}function cn(...e){return e.map(t=>MR(t)).join("")}function aie(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function $r(...e){return"("+(aie(e).capture?"":"?:")+e.map(t=>MR(t)).join("|")+")"}const ky=e=>cn(/\b/,e,/\w$/.test(e)?/\b/:/\B/),lie=["Protocol","Type"].map(ky),dw=["init","self"].map(ky),cie=["Any","Self"],Gg=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],hw=["false","nil","true"],uie=["assignment","associativity","higherThan","left","lowerThan","none","right"],die=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],pw=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],BR=$r(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),IR=$r(BR,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),qg=cn(BR,IR,"*"),LR=$r(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Ff=$r(LR,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Do=cn(LR,Ff,"*"),Ph=cn(/[A-Z]/,Ff,"*"),hie=["attached","autoclosure",cn(/convention\(/,$r("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",cn(/objc\(/,Do,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],pie=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function fie(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,$r(...lie,...dw)],className:{2:"keyword"}},o={match:cn(/\./,$r(...Gg)),relevance:0},s=Gg.filter(Ue=>typeof Ue=="string").concat(["_|0"]),a=Gg.filter(Ue=>typeof Ue!="string").concat(cie).map(ky),l={variants:[{className:"keyword",match:$r(...a,...dw)}]},c={$pattern:$r(/\b\w+/,/#\w+/),keyword:s.concat(die),literal:hw},u=[i,o,l],d={match:cn(/\./,$r(...pw)),relevance:0},h={className:"built_in",match:cn(/\b/,$r(...pw),/(?=\()/)},p=[d,h],m={match:/->/,relevance:0},b={className:"operator",relevance:0,variants:[{match:qg},{match:`\\.(\\.|${IR})+`}]},A=[m,b],v="([0-9]_*)+",D="([0-9a-fA-F]_*)+",C={className:"number",relevance:0,variants:[{match:`\\b(${v})(\\.(${v}))?([eE][+-]?(${v}))?\\b`},{match:`\\b0x(${D})(\\.(${D}))?([pP][+-]?(${v}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},S=(Ue="")=>({className:"subst",variants:[{match:cn(/\\/,Ue,/[0\\tnr"']/)},{match:cn(/\\/,Ue,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(Ue="")=>({className:"subst",match:cn(/\\/,Ue,/[\t ]*(?:[\r\n]|\r\n)/)}),k=(Ue="")=>({className:"subst",label:"interpol",begin:cn(/\\/,Ue,/\(/),end:/\)/}),Z=(Ue="")=>({begin:cn(Ue,/"""/),end:cn(/"""/,Ue),contains:[S(Ue),O(Ue),k(Ue)]}),W=(Ue="")=>({begin:cn(Ue,/"/),end:cn(/"/,Ue),contains:[S(Ue),k(Ue)]}),U={className:"string",variants:[Z(),Z("#"),Z("##"),Z("###"),W(),W("#"),W("##"),W("###")]},w=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],z={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:w},V=Ue=>{const I=cn(Ue,/\//),j=cn(/\//,Ue);return{begin:I,end:j,contains:[...w,{scope:"comment",begin:`#(?!.*${j})`,end:/$/}]}},L={scope:"regexp",variants:[V("###"),V("##"),V("#"),z]},se={match:cn(/`/,Do,/`/)},J={className:"variable",match:/\$\d+/},Se={className:"variable",match:`\\$${Ff}+`},G=[se,J,Se],ie={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:pie,contains:[...A,C,U]}]}},ce={scope:"keyword",match:cn(/@/,$r(...hie),Vu($r(/\(/,/\s+/)))},De={scope:"meta",match:cn(/@/,Do)},Oe=[ie,ce,De],Be={match:Vu(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:cn(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Ff,"+")},{className:"type",match:Ph,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:cn(/\s+&\s+/,Vu(Ph)),relevance:0}]},ft={begin:/</,end:/>/,keywords:c,contains:[...r,...u,...Oe,m,Be]};Be.contains.push(ft);const bt={match:cn(Do,/\s*:/),keywords:"_|0",relevance:0},et={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",bt,...r,L,...u,...p,...A,C,U,...G,...Oe,Be]},nt={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,Be]},rt={begin:$r(Vu(cn(Do,/\s*:/)),Vu(cn(Do,/\s+/,Do,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Do}]},Dt={begin:/\(/,end:/\)/,keywords:c,contains:[rt,...r,...u,...A,C,U,...Oe,Be,et],endsParent:!0,illegal:/["']/},jt={match:[/(func|macro)/,/\s+/,$r(se.match,Do,qg)],className:{1:"keyword",3:"title.function"},contains:[nt,Dt,t],illegal:[/\[/,/%/]},_e={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[nt,Dt,t],illegal:/\[|%/},ht={match:[/operator/,/\s+/,qg],className:{1:"keyword",3:"title"}},it={begin:[/precedencegroup/,/\s+/,Ph],className:{1:"keyword",3:"title"},contains:[Be],keywords:[...uie,...hw],end:/}/},Bt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},$t={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},wn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Do,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[nt,...u,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:Ph},...u],relevance:0}]};for(const Ue of U.variants){const I=Ue.contains.find(M=>M.label==="interpol");I.keywords=c;const j=[...u,...p,...A,C,U,...G];I.contains=[...j,{begin:/\(/,end:/\)/,contains:["self",...j]}]}return{name:"Swift",keywords:c,contains:[...r,jt,_e,Bt,$t,wn,ht,it,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},L,...u,...p,...A,C,U,...G,...Oe,Be,et]}}const Of="[A-Za-z$_][0-9A-Za-z$_]*",YR=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],HR=["true","false","null","undefined","NaN","Infinity"],ZR=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],PR=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$R=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],UR=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],zR=[].concat($R,ZR,PR);function mie(e){const t=e.regex,n=(G,{after:ie})=>{const ce="</"+G[0].slice(1);return G.input.indexOf(ce,ie)!==-1},r=Of,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,ie)=>{const ce=G[0].length+G.index,De=G.input[ce];if(De==="<"||De===","){ie.ignoreMatch();return}De===">"&&(n(G,{after:ce})||ie.ignoreMatch());let Oe;const Be=G.input.substring(ce);if(Oe=Be.match(/^\s*=/)){ie.ignoreMatch();return}if((Oe=Be.match(/^\s+extends\s+/))&&Oe.index===0){ie.ignoreMatch();return}}},a={$pattern:Of,keyword:YR,literal:HR,built_in:zR,"variable.language":UR},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,h]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},D=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,A,{match:/\$\d+/},d];h.contains=D.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(D)});const C=[].concat(v,h.contains),S=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:a,contains:["self"].concat(C)}]),O={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:S},k={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},Z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ZR,...PR]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},w={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function z(G){return t.concat("(?!",G.join("|"),")")}const V={match:t.concat(/\b/,z([...$R,"super","import"].map(G=>`${G}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},L={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Se={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:Z},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,b,A,v,{match:/\$\d+/},d,Z,{scope:"attr",match:r+t.lookahead(":"),relevance:0},Se,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:S}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},L,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},V,w,k,se,{match:/\$[(.]/}]}}function gie(e){const t=e.regex,n=mie(e),r=Of,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},a={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:Of,keyword:YR.concat(l),literal:HR,built_in:zR.concat(i),"variable.language":UR},u={className:"meta",begin:"@"+r},d=(b,A,v)=>{const D=b.contains.findIndex(C=>C.label===A);if(D===-1)throw new Error("can not find mode to replace");b.contains.splice(D,1,v)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(u);const h=n.contains.find(b=>b.scope==="attr"),p=Object.assign({},h,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,h,p]),n.contains=n.contains.concat([u,o,s,p]),d(n,"shebang",e.SHEBANG()),d(n,"use_strict",a);const m=n.contains.find(b=>b.label==="func.def");return m.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function Tie(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(s,a),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,h,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[h]}]}}function bie(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},s={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},a={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},o,s,i,e.QUOTE_STRING_MODE,l,c,a]}}function Aie(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(o,{begin:/\(/,end:/\)/}),a=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function yie(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},a=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},c={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[c],illegal:"\\n",relevance:0},d={begin:"\\[",end:"\\]",contains:[c],illegal:"\\n",relevance:0},h=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},l,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},u,d,o,s],p=[...h];return p.pop(),p.push(a),c.contains=p,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:h}}const Eie={arduino:nre,bash:rre,c:ire,cpp:ore,csharp:sre,css:mre,diff:gre,go:Tre,graphql:bre,ini:Are,java:yre,javascript:wre,json:_re,kotlin:Nre,less:Ire,lua:Lre,makefile:Yre,markdown:Hre,objectivec:Zre,perl:Pre,php:$re,"php-template":Ure,plaintext:zre,python:Vre,"python-repl":jre,r:Gre,ruby:qre,rust:Wre,scss:iie,shell:oie,sql:sie,swift:fie,typescript:gie,vbnet:Tie,wasm:bie,xml:Aie,yaml:yie},fw={},vie="hljs-";function Die(e){const t=ere.newInstance();return e&&o(e),{highlight:n,highlightAuto:r,listLanguages:i,register:o,registerAlias:s,registered:a};function n(l,c,u){const d=u||fw,h=typeof d.prefix=="string"?d.prefix:vie;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:Sie,classPrefix:h});const p=t.highlight(c,{ignoreIllegals:!0,language:l});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const m=p._emitter.root,b=m.data;return b.language=p.language,b.relevance=p.relevance,m}function r(l,c){const u=(c||fw).subset||i();let d=-1,h=0,p;for(;++d<u.length;){const m=u[d];if(!t.getLanguage(m))continue;const b=n(m,l,c);b.data&&b.data.relevance!==void 0&&b.data.relevance>h&&(h=b.data.relevance,p=b)}return p||{type:"root",children:[],data:{language:void 0,relevance:h}}}function i(){return t.listLanguages()}function o(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let u;for(u in l)Object.hasOwn(l,u)&&t.registerLanguage(u,l[u])}}function s(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let u;for(u in l)if(Object.hasOwn(l,u)){const d=l[u];t.registerAliases(typeof d=="string"?d:[...d],{languageName:u})}}}function a(l){return!!t.getLanguage(l)}}class Sie{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(s,a){return a?s+"_".repeat(a):n.options.classPrefix+s}),i=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const mw=e=>Array.from(e.entries()).map(([t,n])=>({clientId:t,...n.user})),gw=()=>null,wie=pn.create({name:"collaborationCursor",priority:999,addOptions(){return{provider:null,user:{name:null,color:null},render:e=>{const t=document.createElement("span");t.classList.add("collaboration-cursor__caret"),t.setAttribute("style",`border-color: ${e.color}`);const n=document.createElement("div");return n.classList.add("collaboration-cursor__label"),n.setAttribute("style",`background-color: ${e.color}`),n.insertBefore(document.createTextNode(e.name),null),t.insertBefore(n,null),t},selectionRender:ox,onUpdate:gw}},onCreate(){if(this.options.onUpdate!==gw&&console.warn('[tiptap warn]: DEPRECATED: The "onUpdate" option is deprecated. Please use `editor.storage.collaborationCursor.users` instead. Read more: https://tiptap.dev/api/extensions/collaboration-cursor'),!this.options.provider)throw new Error('The "provider" option is required for the CollaborationCursor extension')},addStorage(){return{users:[]}},addCommands(){return{updateUser:e=>()=>(this.options.user=e,this.options.provider.awareness.setLocalStateField("user",this.options.user),!0),user:e=>({editor:t})=>(console.warn('[tiptap warn]: DEPRECATED: The "user" command is deprecated. Please use "updateUser" instead. Read more: https://tiptap.dev/api/extensions/collaboration-cursor'),t.commands.updateUser(e))}},addProseMirrorPlugins(){return[IH((this.options.provider.awareness.setLocalStateField("user",this.options.user),this.storage.users=mw(this.options.provider.awareness.states),this.options.provider.awareness.on("update",()=>{this.storage.users=mw(this.options.provider.awareness.states)}),this.options.provider.awareness),{cursorBuilder:this.options.render,selectionBuilder:this.options.selectionRender})]}});function _ie(e){setTimeout(()=>{const t=document.getElementById(`collaboration-cursor__label__${e}`);t&&(t.classList.add("collaboration-cursor__label__active"),setTimeout(()=>{t?.classList.remove("collaboration-cursor__label__active")},50))},50)}function Cie(){return Math.floor(Date.now()/1e3)}function Nie(e,t){const n=document.createElement("span");n.classList.add("collaboration-cursor__caret"),n.setAttribute("style",`border-color: ${e.color}`);const r=document.createElement("div");r.classList.add("collaboration-cursor__label"),r.id=`collaboration-cursor__label__${t}`,r.setAttribute("style",`background-color: ${e.color}`);const i=document.createTextNode(e.name||xe("text","Guest"));return r.insertBefore(i,null),n.insertBefore(r,null),n}const Obe=wie.extend({addOptions(){return{...this.parent?.(),render:Nie}},onCreate(){this.options.provider.awareness.on("change",({added:e,updated:t},n)=>{if(n!=="local")for(const r of[...e,...t])r!==this.options.user.clientId&&_ie(r)})},onTransaction({transaction:e,editor:t}){const n=e.getMeta("addToHistory")??!0,r=e.getMeta("pointer");e.docChanged&&n&&!r&&t.commands.updateUser({...this.options.user,lastUpdate:Cie()})}});function Fie(e){var t;const{char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:s,$position:a}=e,l=r&&!i,c=u7(n),u=new RegExp(`\\s${c}$`),d=s?"^":"",h=i?"":c,p=l?new RegExp(`${d}${c}.*?(?=\\s${h}|$)`,"gm"):new RegExp(`${d}(?:^)?${c}[^\\s${h}]*`,"gm"),m=((t=a.nodeBefore)===null||t===void 0?void 0:t.isText)&&a.nodeBefore.text;if(!m)return null;const b=a.pos-m.length,A=Array.from(m.matchAll(p)).pop();if(!A||A.input===void 0||A.index===void 0)return null;const v=A.input.slice(Math.max(0,A.index-1),A.index),D=new RegExp(`^[${o?.join("")}\0]?$`).test(v);if(o!==null&&!D)return null;const C=b+A.index;let S=C+A[0].length;return l&&u.test(m.slice(S-1,S+1))&&(A[0]+=" ",S+=1),C<a.pos&&S>=a.pos?{range:{from:C,to:S},query:A[0].slice(n.length),text:A[0]}:null}const Oie=new Lt("suggestion");function Ry({pluginKey:e=Oie,editor:t,char:n="@",allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:o=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:u="is-empty",command:d=()=>null,items:h=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:b=Fie}){let A;const v=p?.(),D=new kt({key:e,view(){return{update:async(C,S)=>{var O,k,Z,W,U,w,z;const V=(O=this.key)===null||O===void 0?void 0:O.getState(S),L=(k=this.key)===null||k===void 0?void 0:k.getState(C.state),se=V.active&&L.active&&V.range.from!==L.range.from,J=!V.active&&L.active,Se=V.active&&!L.active,G=!J&&!Se&&V.query!==L.query,ie=J||se&&G,ce=G||se,De=Se||se&&G;if(!ie&&!ce&&!De)return;const Oe=De&&!ie?V:L,Be=C.dom.querySelector(`[data-decoration-id="${Oe.decorationId}"]`);A={editor:t,range:Oe.range,query:Oe.query,text:Oe.text,items:[],command:ft=>d({editor:t,range:Oe.range,props:ft}),decorationNode:Be,clientRect:Be?()=>{var ft;const{decorationId:bt}=(ft=this.key)===null||ft===void 0?void 0:ft.getState(t.state);return C.dom.querySelector(`[data-decoration-id="${bt}"]`)?.getBoundingClientRect()||null}:null},ie&&((Z=v?.onBeforeStart)===null||Z===void 0||Z.call(v,A)),ce&&((W=v?.onBeforeUpdate)===null||W===void 0||W.call(v,A)),(ce||ie)&&(A.items=await h({editor:t,query:Oe.query})),De&&((U=v?.onExit)===null||U===void 0||U.call(v,A)),ce&&((w=v?.onUpdate)===null||w===void 0||w.call(v,A)),ie&&((z=v?.onStart)===null||z===void 0||z.call(v,A))},destroy:()=>{var C;A&&((C=v?.onExit)===null||C===void 0||C.call(v,A))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(C,S,O,k){const{isEditable:Z}=t,{composing:W}=t.view,{selection:U}=C,{empty:w,from:z}=U,V={...S};if(V.composing=W,Z&&(w||t.view.composing)){(z<S.range.from||z>S.range.to)&&!W&&!S.composing&&(V.active=!1);const L=b({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:o,startOfLine:s,$position:U.$from}),se=`id_${Math.floor(Math.random()*4294967295)}`;L&&m({editor:t,state:k,range:L.range,isActive:S.active})?(V.active=!0,V.decorationId=S.decorationId?S.decorationId:se,V.range=L.range,V.query=L.query,V.text=L.text):V.active=!1}else V.active=!1;return V.active||(V.decorationId=null,V.range={from:0,to:0},V.query=null,V.text=null),V}},props:{handleKeyDown(C,S){var O;const{active:k,range:Z}=D.getState(C.state);return k&&((O=v?.onKeyDown)===null||O===void 0?void 0:O.call(v,{view:C,event:S,range:Z}))||!1},decorations(C){const{active:S,range:O,decorationId:k,query:Z}=D.getState(C);if(!S)return null;const W=!Z?.length,U=[l];return W&&U.push(u),Rt.create(C.doc,[xn.inline(O.from,O.to,{nodeName:a,class:U.join(" "),"data-decoration-id":k,"data-decoration-content":c})])}}});return D}const xie=new Lt("emoji"),kie=bn.create({name:"emoji",addOptions(){return{HTMLAttributes:{},suggestion:{char:":",allowedPrefixes:[" "],pluginKey:xie}}},content:"text*",addCommands(){return{emoji:e=>({commands:t})=>t.insertContent(e.native+" ")}},addProseMirrorPlugins(){return[Ry({editor:this.editor,...this.options.suggestion})]}});let Wg=!1;const zc=(e,t)=>e.extensionManager.extensions.some(n=>n.name===t),Rie=e=>zc(e,"bulletList")||zc(e,"orderedList")||zc(e,"taskList"),$h=({editor:e})=>{const t=window._nc_focus_trap??[],n=t[t.length-1];Rie(e)&&e.can().sinkListItem("listItem")||zc(e,"table")&&e.can().goToNextCell()||zc(e,"table")&&e.can().goToPreviousCell()||zc(e,"codeBlock")&&e.isActive("codeBlock")?(n?.pause(),Wg=!0):Wg&&(Wg=!1,n?.unpause())},Mie=({editor:e})=>{const t=window._nc_focus_trap??[];t[t.length-1]?.unpause()},xbe=pn.create({name:"focustrap",onFocus:$h,onBlur:Mie,onSelectionUpdate:$h,onTransaction:$h,onUpdate:$h}),Bie=so.create({name:"keep-syntax",parseHTML(){return[{tag:"span.keep-md"}]},renderHTML(){return["span",{class:"keep-md"},0]},toMarkdown:{open:"",close:"",mixable:!0,escape:!1,expelEnclosingWhitespace:!0},onUpdate(){const e=this.editor.state.tr;this.editor.state.doc.descendants((t,n,r,i)=>{t.marks.findIndex(o=>o.type.name===this.name)!==-1&&(t.type.name!=="text"||t.text.length!==1)&&e.removeMark(n,n+t.nodeSize,this.type)}),e.docChanged&&(e.setMeta("addToHistory",!1),e.setMeta("preventUpdate",!0),this.editor.view.dispatch(e))}});function Iie({editor:e,overrideSuggestionOptions:t,extensionName:n,char:r="@"}){const i=new Lt;return{editor:e,char:r,pluginKey:i,command:({editor:o,range:s,props:a})=>{var l,c,u;!((l=o.view.state.selection.$to.nodeAfter?.text)===null||l===void 0)&&l.startsWith(" ")&&(s.to+=1),o.chain().focus().insertContentAt(s,[{type:n,attrs:{...a,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),(u=(c=o.view.dom.ownerDocument.defaultView)===null||c===void 0?void 0:c.getSelection())===null||u===void 0||u.collapseToEnd()},allow:({state:o,range:s})=>{const a=o.doc.resolve(s.from),l=o.schema.nodes[n];return!!a.parent.type.contentMatch.matchType(l)},...t}}function VR(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(t=>Iie({editor:e.editor,overrideSuggestionOptions:t,extensionName:e.name,char:t.char}))}function Tw(e,t){const n=VR(e);return n.find(i=>i.char===t)||(n.length?n[0]:null)}const Lie=bn.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:e,suggestion:t}){var n,r;return`${(n=t?.char)!==null&&n!==void 0?n:"@"}${(r=e.attrs.label)!==null&&r!==void 0?r:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t,suggestion:n}){var r,i;return["span",Ft(this.HTMLAttributes,e.HTMLAttributes),`${(r=n?.char)!==null&&r!==void 0?r:"@"}${(i=t.attrs.label)!==null&&i!==void 0?i:t.attrs.id}`]},suggestions:[],suggestion:{}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:e=>e.getAttribute("data-mention-suggestion-char"),renderHTML:e=>({"data-mention-suggestion-char":e.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){const n=Tw(this,e.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",Ft({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e,suggestion:n})];const r={...this.options};r.HTMLAttributes=Ft({"data-type":this.name},this.options.HTMLAttributes,t);const i=this.options.renderHTML({options:r,node:e,suggestion:n});return typeof i=="string"?["span",Ft({"data-type":this.name},this.options.HTMLAttributes,t),i]:i},renderText({node:e}){const t={options:this.options,node:e,suggestion:Tw(this,e.attrs.mentionSuggestionChar)};return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(t)):this.options.renderText(t)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1;const{selection:r}=t,{empty:i,anchor:o}=r;if(!i)return!1;t.doc.nodesBetween(o-1,o,(l,c)=>{if(l.type.name===this.name)return n=!0,e.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",c,c+l.nodeSize),!1});let s=new As,a=0;return t.doc.nodesBetween(o-1,o,(l,c)=>{if(l.type.name===this.name)return n=!0,s=l,a=c,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?"":s.attrs.mentionSuggestionChar,a,a+s.nodeSize),n})}},addProseMirrorPlugins(){return VR(this).map(Ry)}});var ui="top",Ui="bottom",zi="right",di="left",My="auto",oh=[ui,Ui,zi,di],au="start",Md="end",Yie="clippingParents",jR="viewport",ju="popper",Hie="reference",bw=oh.reduce(function(e,t){return e.concat([t+"-"+au,t+"-"+Md])},[]),GR=[].concat(oh,[My]).reduce(function(e,t){return e.concat([t,t+"-"+au,t+"-"+Md])},[]),Zie="beforeRead",Pie="read",$ie="afterRead",Uie="beforeMain",zie="main",Vie="afterMain",jie="beforeWrite",Gie="write",qie="afterWrite",Wie=[Zie,Pie,$ie,Uie,zie,Vie,jie,Gie,qie];function Zo(e){return e?(e.nodeName||"").toLowerCase():null}function po(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lu(e){var t=po(e).Element;return e instanceof t||e instanceof Element}function $i(e){var t=po(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function By(e){if(typeof ShadowRoot>"u")return!1;var t=po(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Kie(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!$i(o)||!Zo(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Qie(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!$i(i)||!Zo(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const qR={name:"applyStyles",enabled:!0,phase:"write",fn:Kie,effect:Qie,requires:["computeStyles"]};function Bo(e){return e.split("-")[0]}var Cl=Math.max,xf=Math.min,cu=Math.round;function uu(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if($i(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(r=cu(n.width)/s||1),o>0&&(i=cu(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Iy(e){var t=uu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function WR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&By(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ns(e){return po(e).getComputedStyle(e)}function Jie(e){return["table","td","th"].indexOf(Zo(e))>=0}function Za(e){return((lu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Jm(e){return Zo(e)==="html"?e:e.assignedSlot||e.parentNode||(By(e)?e.host:null)||Za(e)}function Aw(e){return!$i(e)||Ns(e).position==="fixed"?null:e.offsetParent}function Xie(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&$i(e)){var r=Ns(e);if(r.position==="fixed")return null}var i=Jm(e);for(By(i)&&(i=i.host);$i(i)&&["html","body"].indexOf(Zo(i))<0;){var o=Ns(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function sh(e){for(var t=po(e),n=Aw(e);n&&Jie(n)&&Ns(n).position==="static";)n=Aw(n);return n&&(Zo(n)==="html"||Zo(n)==="body"&&Ns(n).position==="static")?t:n||Xie(e)||t}function Ly(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function U0(e,t,n){return Cl(e,xf(t,n))}function eoe(e,t,n){var r=U0(e,t,n);return r>n?n:r}function KR(){return{top:0,right:0,bottom:0,left:0}}function QR(e){return Object.assign({},KR(),e)}function JR(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var toe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,QR(typeof e!="number"?e:JR(e,oh))};function noe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Bo(n.placement),l=Ly(a),c=[di,zi].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=toe(i.padding,n),h=Iy(o),p=l==="y"?ui:di,m=l==="y"?Ui:zi,b=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],A=s[l]-n.rects.reference[l],v=sh(o),D=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,C=b/2-A/2,S=d[p],O=D-h[u]-d[m],k=D/2-h[u]/2+C,Z=U0(S,k,O),W=l;n.modifiersData[r]=(t={},t[W]=Z,t.centerOffset=Z-k,t)}}function roe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||WR(t.elements.popper,i)&&(t.elements.arrow=i))}const ioe={name:"arrow",enabled:!0,phase:"main",fn:noe,effect:roe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function du(e){return e.split("-")[1]}var ooe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function soe(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:cu(t*i)/i||0,y:cu(n*i)/i||0}}function yw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,b=m===void 0?0:m,A=typeof u=="function"?u({x:p,y:b}):{x:p,y:b};p=A.x,b=A.y;var v=s.hasOwnProperty("x"),D=s.hasOwnProperty("y"),C=di,S=ui,O=window;if(c){var k=sh(n),Z="clientHeight",W="clientWidth";if(k===po(n)&&(k=Za(n),Ns(k).position!=="static"&&a==="absolute"&&(Z="scrollHeight",W="scrollWidth")),k=k,i===ui||(i===di||i===zi)&&o===Md){S=Ui;var U=d&&k===O&&O.visualViewport?O.visualViewport.height:k[Z];b-=U-r.height,b*=l?1:-1}if(i===di||(i===ui||i===Ui)&&o===Md){C=zi;var w=d&&k===O&&O.visualViewport?O.visualViewport.width:k[W];p-=w-r.width,p*=l?1:-1}}var z=Object.assign({position:a},c&&ooe),V=u===!0?soe({x:p,y:b}):{x:p,y:b};if(p=V.x,b=V.y,l){var L;return Object.assign({},z,(L={},L[S]=D?"0":"",L[C]=v?"0":"",L.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",L))}return Object.assign({},z,(t={},t[S]=D?b+"px":"",t[C]=v?p+"px":"",t.transform="",t))}function aoe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Bo(t.placement),variation:du(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const loe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aoe,data:{}};var Uh={passive:!0};function coe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=po(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Uh)}),a&&l.addEventListener("resize",n.update,Uh),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Uh)}),a&&l.removeEventListener("resize",n.update,Uh)}}const uoe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:coe,data:{}};var doe={left:"right",right:"left",bottom:"top",top:"bottom"};function Cp(e){return e.replace(/left|right|bottom|top/g,function(t){return doe[t]})}var hoe={start:"end",end:"start"};function Ew(e){return e.replace(/start|end/g,function(t){return hoe[t]})}function Yy(e){var t=po(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Hy(e){return uu(Za(e)).left+Yy(e).scrollLeft}function poe(e){var t=po(e),n=Za(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,a=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,a=r.offsetTop)),{width:i,height:o,x:s+Hy(e),y:a}}function foe(e){var t,n=Za(e),r=Yy(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Cl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Cl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Hy(e),l=-r.scrollTop;return Ns(i||n).direction==="rtl"&&(a+=Cl(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function Zy(e){var t=Ns(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function XR(e){return["html","body","#document"].indexOf(Zo(e))>=0?e.ownerDocument.body:$i(e)&&Zy(e)?e:XR(Jm(e))}function z0(e,t){var n;t===void 0&&(t=[]);var r=XR(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=po(r),s=i?[o].concat(o.visualViewport||[],Zy(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(z0(Jm(s)))}function wb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function moe(e){var t=uu(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function vw(e,t){return t===jR?wb(poe(e)):lu(t)?moe(t):wb(foe(Za(e)))}function goe(e){var t=z0(Jm(e)),n=["absolute","fixed"].indexOf(Ns(e).position)>=0,r=n&&$i(e)?sh(e):e;return lu(r)?t.filter(function(i){return lu(i)&&WR(i,r)&&Zo(i)!=="body"}):[]}function Toe(e,t,n){var r=t==="clippingParents"?goe(e):[].concat(t),i=[].concat(r,[n]),o=i[0],s=i.reduce(function(a,l){var c=vw(e,l);return a.top=Cl(c.top,a.top),a.right=xf(c.right,a.right),a.bottom=xf(c.bottom,a.bottom),a.left=Cl(c.left,a.left),a},vw(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function e3(e){var t=e.reference,n=e.element,r=e.placement,i=r?Bo(r):null,o=r?du(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case ui:l={x:s,y:t.y-n.height};break;case Ui:l={x:s,y:t.y+t.height};break;case zi:l={x:t.x+t.width,y:a};break;case di:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?Ly(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case au:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Md:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Bd(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,s=o===void 0?Yie:o,a=n.rootBoundary,l=a===void 0?jR:a,c=n.elementContext,u=c===void 0?ju:c,d=n.altBoundary,h=d===void 0?!1:d,p=n.padding,m=p===void 0?0:p,b=QR(typeof m!="number"?m:JR(m,oh)),A=u===ju?Hie:ju,v=e.rects.popper,D=e.elements[h?A:u],C=Toe(lu(D)?D:D.contextElement||Za(e.elements.popper),s,l),S=uu(e.elements.reference),O=e3({reference:S,element:v,placement:i}),k=wb(Object.assign({},v,O)),Z=u===ju?k:S,W={top:C.top-Z.top+b.top,bottom:Z.bottom-C.bottom+b.bottom,left:C.left-Z.left+b.left,right:Z.right-C.right+b.right},U=e.modifiersData.offset;if(u===ju&&U){var w=U[i];Object.keys(W).forEach(function(z){var V=[zi,Ui].indexOf(z)>=0?1:-1,L=[ui,Ui].indexOf(z)>=0?"y":"x";W[z]+=w[L]*V})}return W}function boe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?GR:l,u=du(r),d=u?a?bw:bw.filter(function(m){return du(m)===u}):oh,h=d.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=d);var p=h.reduce(function(m,b){return m[b]=Bd(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[Bo(b)],m},{});return Object.keys(p).sort(function(m,b){return p[m]-p[b]})}function Aoe(e){if(Bo(e)===My)return[];var t=Cp(e);return[Ew(e),t,Ew(t)]}function yoe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,b=n.allowedAutoPlacements,A=t.options.placement,v=Bo(A),D=v===A,C=l||(D||!m?[Cp(A)]:Aoe(A)),S=[A].concat(C).reduce(function(bt,et){return bt.concat(Bo(et)===My?boe(t,{placement:et,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:b}):et)},[]),O=t.rects.reference,k=t.rects.popper,Z=new Map,W=!0,U=S[0],w=0;w<S.length;w++){var z=S[w],V=Bo(z),L=du(z)===au,se=[ui,Ui].indexOf(V)>=0,J=se?"width":"height",Se=Bd(t,{placement:z,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),G=se?L?zi:di:L?Ui:ui;O[J]>k[J]&&(G=Cp(G));var ie=Cp(G),ce=[];if(o&&ce.push(Se[V]<=0),a&&ce.push(Se[G]<=0,Se[ie]<=0),ce.every(function(bt){return bt})){U=z,W=!1;break}Z.set(z,ce)}if(W)for(var De=m?3:1,Oe=function(bt){var et=S.find(function(nt){var rt=Z.get(nt);if(rt)return rt.slice(0,bt).every(function(Dt){return Dt})});if(et)return U=et,"break"},Be=De;Be>0;Be--){var ft=Oe(Be);if(ft==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const Eoe={name:"flip",enabled:!0,phase:"main",fn:yoe,requiresIfExists:["offset"],data:{_skip:!1}};function Dw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Sw(e){return[ui,zi,Ui,di].some(function(t){return e[t]>=0})}function voe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Bd(t,{elementContext:"reference"}),a=Bd(t,{altBoundary:!0}),l=Dw(s,r),c=Dw(a,i,o),u=Sw(l),d=Sw(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const Doe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:voe};function Soe(e,t,n){var r=Bo(e),i=[di,ui].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[di,zi].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function woe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=GR.reduce(function(u,d){return u[d]=Soe(d,t.rects,o),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const _oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:woe};function Coe(e){var t=e.state,n=e.name;t.modifiersData[n]=e3({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Noe={name:"popperOffsets",enabled:!0,phase:"read",fn:Coe,data:{}};function Foe(e){return e==="x"?"y":"x"}function Ooe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,b=m===void 0?0:m,A=Bd(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Bo(t.placement),D=du(t.placement),C=!D,S=Ly(v),O=Foe(S),k=t.modifiersData.popperOffsets,Z=t.rects.reference,W=t.rects.popper,U=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,w=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(k){if(o){var L,se=S==="y"?ui:di,J=S==="y"?Ui:zi,Se=S==="y"?"height":"width",G=k[S],ie=G+A[se],ce=G-A[J],De=p?-W[Se]/2:0,Oe=D===au?Z[Se]:W[Se],Be=D===au?-W[Se]:-Z[Se],ft=t.elements.arrow,bt=p&&ft?Iy(ft):{width:0,height:0},et=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:KR(),nt=et[se],rt=et[J],Dt=U0(0,Z[Se],bt[Se]),jt=C?Z[Se]/2-De-Dt-nt-w.mainAxis:Oe-Dt-nt-w.mainAxis,_e=C?-Z[Se]/2+De+Dt+rt+w.mainAxis:Be+Dt+rt+w.mainAxis,ht=t.elements.arrow&&sh(t.elements.arrow),it=ht?S==="y"?ht.clientTop||0:ht.clientLeft||0:0,Bt=(L=z?.[S])!=null?L:0,$t=G+jt-Bt-it,wn=G+_e-Bt,Ue=U0(p?xf(ie,$t):ie,G,p?Cl(ce,wn):ce);k[S]=Ue,V[S]=Ue-G}if(a){var I,j=S==="x"?ui:di,M=S==="x"?Ui:zi,de=k[O],Te=O==="y"?"height":"width",H=de+A[j],fe=de-A[M],Ie=[ui,di].indexOf(v)!==-1,lt=(I=z?.[O])!=null?I:0,St=Ie?H:de-Z[Te]-W[Te]-lt+w.altAxis,Q=Ie?de+Z[Te]+W[Te]-lt-w.altAxis:fe,ne=p&&Ie?eoe(St,de,Q):U0(p?St:H,de,p?Q:fe);k[O]=ne,V[O]=ne-de}t.modifiersData[r]=V}}const xoe={name:"preventOverflow",enabled:!0,phase:"main",fn:Ooe,requiresIfExists:["offset"]};function koe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Roe(e){return e===po(e)||!$i(e)?Yy(e):koe(e)}function Moe(e){var t=e.getBoundingClientRect(),n=cu(t.width)/e.offsetWidth||1,r=cu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Boe(e,t,n){n===void 0&&(n=!1);var r=$i(t),i=$i(t)&&Moe(t),o=Za(t),s=uu(e,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Zo(t)!=="body"||Zy(o))&&(a=Roe(t)),$i(t)?(l=uu(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Hy(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ioe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Loe(e){var t=Ioe(e);return Wie.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Yoe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hoe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ww={placement:"bottom",modifiers:[],strategy:"absolute"};function _w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Zoe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?ww:i;return function(s,a,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ww,o),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},u=[],d=!1,h={state:c,setOptions:function(b){var A=typeof b=="function"?b(c.options):b;m(),c.options=Object.assign({},o,c.options,A),c.scrollParents={reference:lu(s)?z0(s):s.contextElement?z0(s.contextElement):[],popper:z0(a)};var v=Loe(Hoe([].concat(r,c.options.modifiers)));return c.orderedModifiers=v.filter(function(D){return D.enabled}),p(),h.update()},forceUpdate:function(){if(!d){var b=c.elements,A=b.reference,v=b.popper;if(_w(A,v)){c.rects={reference:Boe(A,sh(v),c.options.strategy==="fixed"),popper:Iy(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(W){return c.modifiersData[W.name]=Object.assign({},W.data)});for(var D=0;D<c.orderedModifiers.length;D++){if(c.reset===!0){c.reset=!1,D=-1;continue}var C=c.orderedModifiers[D],S=C.fn,O=C.options,k=O===void 0?{}:O,Z=C.name;typeof S=="function"&&(c=S({state:c,options:k,name:Z,instance:h})||c)}}}},update:Yoe(function(){return new Promise(function(b){h.forceUpdate(),b(c)})}),destroy:function(){m(),d=!0}};if(!_w(s,a))return h;h.setOptions(l).then(function(b){!d&&l.onFirstUpdate&&l.onFirstUpdate(b)});function p(){c.orderedModifiers.forEach(function(b){var A=b.name,v=b.options,D=v===void 0?{}:v,C=b.effect;if(typeof C=="function"){var S=C({state:c,name:A,instance:h,options:D}),O=function(){};u.push(S||O)}})}function m(){u.forEach(function(b){return b()}),u=[]}return h}}var Poe=[uoe,Noe,loe,qR,_oe,Eoe,xoe,ioe,Doe],$oe=Zoe({defaultModifiers:Poe}),Uoe="tippy-box",t3="tippy-content",zoe="tippy-backdrop",n3="tippy-arrow",r3="tippy-svg-arrow",al={passive:!0,capture:!0},i3=function(){return document.body};function Kg(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Py(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function o3(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Cw(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Voe(e){return e.split(/\s+/).filter(Boolean)}function Dc(e){return[].concat(e)}function Nw(e,t){e.indexOf(t)===-1&&e.push(t)}function joe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Goe(e){return e.split("-")[0]}function kf(e){return[].slice.call(e)}function Fw(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function V0(){return document.createElement("div")}function Xm(e){return["Element","Fragment"].some(function(t){return Py(e,t)})}function qoe(e){return Py(e,"NodeList")}function Woe(e){return Py(e,"MouseEvent")}function Koe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Qoe(e){return Xm(e)?[e]:qoe(e)?kf(e):Array.isArray(e)?e:kf(document.querySelectorAll(e))}function Qg(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Ow(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Joe(e){var t,n=Dc(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Xoe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,s=i.popperState,a=i.props,l=a.interactiveBorder,c=Goe(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,b=o.top-r+d>l,A=r-o.bottom-h>l,v=o.left-n+p>l,D=n-o.right-m>l;return b||A||v||D})}function Jg(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function xw(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var _o={isTouch:!1},kw=0;function ese(){_o.isTouch||(_o.isTouch=!0,window.performance&&document.addEventListener("mousemove",s3))}function s3(){var e=performance.now();e-kw<20&&(_o.isTouch=!1,document.removeEventListener("mousemove",s3)),kw=e}function tse(){var e=document.activeElement;if(Koe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function nse(){document.addEventListener("touchstart",ese,al),window.addEventListener("blur",tse)}var rse=typeof window<"u"&&typeof document<"u",ise=rse?!!window.msCrypto:!1,ose={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},sse={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},eo=Object.assign({appendTo:i3,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ose,sse),ase=Object.keys(eo),lse=function(e){var t=Object.keys(e);t.forEach(function(n){eo[n]=e[n]})};function a3(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,s=i.defaultValue;if(o){var a;r[o]=e[o]!==void 0?e[o]:(a=eo[o])!=null?a:s}return r},{});return Object.assign({},e,n)}function cse(e,t){var n=t?Object.keys(a3(Object.assign({},eo,{plugins:t}))):ase,r=n.reduce(function(i,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return r}function Rw(e,t){var n=Object.assign({},t,{content:o3(t.content,[e])},t.ignoreAttributes?{}:cse(e,t.plugins));return n.aria=Object.assign({},eo.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var use=function(){return"innerHTML"};function _b(e,t){e[use()]=t}function Mw(e){var t=V0();return e===!0?t.className=n3:(t.className=r3,Xm(e)?t.appendChild(e):_b(t,e)),t}function Bw(e,t){Xm(t.content)?(_b(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?_b(e,t.content):e.textContent=t.content)}function Cb(e){var t=e.firstElementChild,n=kf(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(t3)}),arrow:n.find(function(r){return r.classList.contains(n3)||r.classList.contains(r3)}),backdrop:n.find(function(r){return r.classList.contains(zoe)})}}function l3(e){var t=V0(),n=V0();n.className=Uoe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=V0();r.className=t3,r.setAttribute("data-state","hidden"),Bw(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,s){var a=Cb(t),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&Bw(c,e.props),s.arrow?u?o.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(Mw(s.arrow))):l.appendChild(Mw(s.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}l3.$$tippy=!0;var dse=1,zh=[],Xg=[];function hse(e,t){var n=Rw(e,Object.assign({},eo,a3(Fw(t)))),r,i,o,s=!1,a=!1,l=!1,c=!1,u,d,h,p=[],m=Cw($t,n.interactiveDebounce),b,A=dse++,v=null,D=joe(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:A,reference:e,popper:V0(),popperInstance:v,props:n,state:C,plugins:D,clearDelayTimeouts:St,setProps:Q,setContent:ne,show:Ne,hide:ot,hideWithInteractivity:Ot,enable:Ie,disable:lt,unmount:fn,destroy:nn};if(!n.render)return S;var O=n.render(S),k=O.popper,Z=O.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+S.id,S.popper=k,e._tippy=S,k._tippy=S;var W=D.map(function(oe){return oe.fn(S)}),U=e.hasAttribute("aria-expanded");return ht(),De(),G(),ie("onCreate",[S]),n.showOnCreate&&H(),k.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&se().addEventListener("mousemove",m)}),S;function w(){var oe=S.props.touch;return Array.isArray(oe)?oe:[oe,0]}function z(){return w()[0]==="hold"}function V(){var oe;return!!((oe=S.props.render)!=null&&oe.$$tippy)}function L(){return b||e}function se(){var oe=L().parentNode;return oe?Joe(oe):document}function J(){return Cb(k)}function Se(oe){return S.state.isMounted&&!S.state.isVisible||_o.isTouch||u&&u.type==="focus"?0:Kg(S.props.delay,oe?0:1,eo.delay)}function G(oe){oe===void 0&&(oe=!1),k.style.pointerEvents=S.props.interactive&&!oe?"":"none",k.style.zIndex=""+S.props.zIndex}function ie(oe,Re,Qe){if(Qe===void 0&&(Qe=!0),W.forEach(function(At){At[oe]&&At[oe].apply(At,Re)}),Qe){var xt;(xt=S.props)[oe].apply(xt,Re)}}function ce(){var oe=S.props.aria;if(oe.content){var Re="aria-"+oe.content,Qe=k.id,xt=Dc(S.props.triggerTarget||e);xt.forEach(function(At){var Nn=At.getAttribute(Re);if(S.state.isVisible)At.setAttribute(Re,Nn?Nn+" "+Qe:Qe);else{var qn=Nn&&Nn.replace(Qe,"").trim();qn?At.setAttribute(Re,qn):At.removeAttribute(Re)}})}}function De(){if(!(U||!S.props.aria.expanded)){var oe=Dc(S.props.triggerTarget||e);oe.forEach(function(Re){S.props.interactive?Re.setAttribute("aria-expanded",S.state.isVisible&&Re===L()?"true":"false"):Re.removeAttribute("aria-expanded")})}}function Oe(){se().removeEventListener("mousemove",m),zh=zh.filter(function(oe){return oe!==m})}function Be(oe){if(!(_o.isTouch&&(l||oe.type==="mousedown"))){var Re=oe.composedPath&&oe.composedPath()[0]||oe.target;if(!(S.props.interactive&&xw(k,Re))){if(Dc(S.props.triggerTarget||e).some(function(Qe){return xw(Qe,Re)})){if(_o.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else ie("onClickOutside",[S,oe]);S.props.hideOnClick===!0&&(S.clearDelayTimeouts(),S.hide(),a=!0,setTimeout(function(){a=!1}),S.state.isMounted||nt())}}}function ft(){l=!0}function bt(){l=!1}function et(){var oe=se();oe.addEventListener("mousedown",Be,!0),oe.addEventListener("touchend",Be,al),oe.addEventListener("touchstart",bt,al),oe.addEventListener("touchmove",ft,al)}function nt(){var oe=se();oe.removeEventListener("mousedown",Be,!0),oe.removeEventListener("touchend",Be,al),oe.removeEventListener("touchstart",bt,al),oe.removeEventListener("touchmove",ft,al)}function rt(oe,Re){jt(oe,function(){!S.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&Re()})}function Dt(oe,Re){jt(oe,Re)}function jt(oe,Re){var Qe=J().box;function xt(At){At.target===Qe&&(Jg(Qe,"remove",xt),Re())}if(oe===0)return Re();Jg(Qe,"remove",d),Jg(Qe,"add",xt),d=xt}function _e(oe,Re,Qe){Qe===void 0&&(Qe=!1);var xt=Dc(S.props.triggerTarget||e);xt.forEach(function(At){At.addEventListener(oe,Re,Qe),p.push({node:At,eventType:oe,handler:Re,options:Qe})})}function ht(){z()&&(_e("touchstart",Bt,{passive:!0}),_e("touchend",wn,{passive:!0})),Voe(S.props.trigger).forEach(function(oe){if(oe!=="manual")switch(_e(oe,Bt),oe){case"mouseenter":_e("mouseleave",wn);break;case"focus":_e(ise?"focusout":"blur",Ue);break;case"focusin":_e("focusout",Ue);break}})}function it(){p.forEach(function(oe){var Re=oe.node,Qe=oe.eventType,xt=oe.handler,At=oe.options;Re.removeEventListener(Qe,xt,At)}),p=[]}function Bt(oe){var Re,Qe=!1;if(!(!S.state.isEnabled||I(oe)||a)){var xt=((Re=u)==null?void 0:Re.type)==="focus";u=oe,b=oe.currentTarget,De(),!S.state.isVisible&&Woe(oe)&&zh.forEach(function(At){return At(oe)}),oe.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||s)&&S.props.hideOnClick!==!1&&S.state.isVisible?Qe=!0:H(oe),oe.type==="click"&&(s=!Qe),Qe&&!xt&&fe(oe)}}function $t(oe){var Re=oe.target,Qe=L().contains(Re)||k.contains(Re);if(!(oe.type==="mousemove"&&Qe)){var xt=Te().concat(k).map(function(At){var Nn,qn=At._tippy,Lr=(Nn=qn.popperInstance)==null?void 0:Nn.state;return Lr?{popperRect:At.getBoundingClientRect(),popperState:Lr,props:n}:null}).filter(Boolean);Xoe(xt,oe)&&(Oe(),fe(oe))}}function wn(oe){var Re=I(oe)||S.props.trigger.indexOf("click")>=0&&s;if(!Re){if(S.props.interactive){S.hideWithInteractivity(oe);return}fe(oe)}}function Ue(oe){S.props.trigger.indexOf("focusin")<0&&oe.target!==L()||S.props.interactive&&oe.relatedTarget&&k.contains(oe.relatedTarget)||fe(oe)}function I(oe){return _o.isTouch?z()!==oe.type.indexOf("touch")>=0:!1}function j(){M();var oe=S.props,Re=oe.popperOptions,Qe=oe.placement,xt=oe.offset,At=oe.getReferenceClientRect,Nn=oe.moveTransition,qn=V()?Cb(k).arrow:null,Lr=At?{getBoundingClientRect:At,contextElement:At.contextElement||L()}:e,Ln={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ae){var be=ae.state;if(V()){var Je=J(),Ut=Je.box;["placement","reference-hidden","escaped"].forEach(function(zt){zt==="placement"?Ut.setAttribute("data-placement",be.placement):be.attributes.popper["data-popper-"+zt]?Ut.setAttribute("data-"+zt,""):Ut.removeAttribute("data-"+zt)}),be.attributes.popper={}}}},P=[{name:"offset",options:{offset:xt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Nn}},Ln];V()&&qn&&P.push({name:"arrow",options:{element:qn,padding:3}}),P.push.apply(P,Re?.modifiers||[]),S.popperInstance=$oe(Lr,k,Object.assign({},Re,{placement:Qe,onFirstUpdate:h,modifiers:P}))}function M(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function de(){var oe=S.props.appendTo,Re,Qe=L();S.props.interactive&&oe===i3||oe==="parent"?Re=Qe.parentNode:Re=o3(oe,[Qe]),Re.contains(k)||Re.appendChild(k),S.state.isMounted=!0,j()}function Te(){return kf(k.querySelectorAll("[data-tippy-root]"))}function H(oe){S.clearDelayTimeouts(),oe&&ie("onTrigger",[S,oe]),et();var Re=Se(!0),Qe=w(),xt=Qe[0],At=Qe[1];_o.isTouch&&xt==="hold"&&At&&(Re=At),Re?r=setTimeout(function(){S.show()},Re):S.show()}function fe(oe){if(S.clearDelayTimeouts(),ie("onUntrigger",[S,oe]),!S.state.isVisible){nt();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(oe.type)>=0&&s)){var Re=Se(!1);Re?i=setTimeout(function(){S.state.isVisible&&S.hide()},Re):o=requestAnimationFrame(function(){S.hide()})}}function Ie(){S.state.isEnabled=!0}function lt(){S.hide(),S.state.isEnabled=!1}function St(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Q(oe){if(!S.state.isDestroyed){ie("onBeforeUpdate",[S,oe]),it();var Re=S.props,Qe=Rw(e,Object.assign({},Re,Fw(oe),{ignoreAttributes:!0}));S.props=Qe,ht(),Re.interactiveDebounce!==Qe.interactiveDebounce&&(Oe(),m=Cw($t,Qe.interactiveDebounce)),Re.triggerTarget&&!Qe.triggerTarget?Dc(Re.triggerTarget).forEach(function(xt){xt.removeAttribute("aria-expanded")}):Qe.triggerTarget&&e.removeAttribute("aria-expanded"),De(),G(),Z&&Z(Re,Qe),S.popperInstance&&(j(),Te().forEach(function(xt){requestAnimationFrame(xt._tippy.popperInstance.forceUpdate)})),ie("onAfterUpdate",[S,oe])}}function ne(oe){S.setProps({content:oe})}function Ne(){var oe=S.state.isVisible,Re=S.state.isDestroyed,Qe=!S.state.isEnabled,xt=_o.isTouch&&!S.props.touch,At=Kg(S.props.duration,0,eo.duration);if(!(oe||Re||Qe||xt)&&!L().hasAttribute("disabled")&&(ie("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,V()&&(k.style.visibility="visible"),G(),et(),S.state.isMounted||(k.style.transition="none"),V()){var Nn=J(),qn=Nn.box,Lr=Nn.content;Qg([qn,Lr],0)}h=function(){var Ln;if(!(!S.state.isVisible||c)){if(c=!0,k.offsetHeight,k.style.transition=S.props.moveTransition,V()&&S.props.animation){var P=J(),ae=P.box,be=P.content;Qg([ae,be],At),Ow([ae,be],"visible")}ce(),De(),Nw(Xg,S),(Ln=S.popperInstance)==null||Ln.forceUpdate(),ie("onMount",[S]),S.props.animation&&V()&&Dt(At,function(){S.state.isShown=!0,ie("onShown",[S])})}},de()}}function ot(){var oe=!S.state.isVisible,Re=S.state.isDestroyed,Qe=!S.state.isEnabled,xt=Kg(S.props.duration,1,eo.duration);if(!(oe||Re||Qe)&&(ie("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,c=!1,s=!1,V()&&(k.style.visibility="hidden"),Oe(),nt(),G(!0),V()){var At=J(),Nn=At.box,qn=At.content;S.props.animation&&(Qg([Nn,qn],xt),Ow([Nn,qn],"hidden"))}ce(),De(),S.props.animation?V()&&rt(xt,S.unmount):S.unmount()}}function Ot(oe){se().addEventListener("mousemove",m),Nw(zh,m),m(oe)}function fn(){S.state.isVisible&&S.hide(),S.state.isMounted&&(M(),Te().forEach(function(oe){oe._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k),Xg=Xg.filter(function(oe){return oe!==S}),S.state.isMounted=!1,ie("onHidden",[S]))}function nn(){S.state.isDestroyed||(S.clearDelayTimeouts(),S.unmount(),it(),delete e._tippy,S.state.isDestroyed=!0,ie("onDestroy",[S]))}}function gl(e,t){t===void 0&&(t={});var n=eo.plugins.concat(t.plugins||[]);nse();var r=Object.assign({},t,{plugins:n}),i=Qoe(e),o=i.reduce(function(s,a){var l=a&&hse(a,r);return l&&s.push(l),s},[]);return Xm(e)?o[0]:o}gl.defaultProps=eo,gl.setDefaultProps=lse,gl.currentInput=_o,Object.assign({},qR,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),gl.setDefaultProps({render:l3});class pse{getTextContent(t){return jF(t,{textSerializers:TA(this.editor.schema)})}constructor({editor:t,element:n,view:r,tippyOptions:i={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:l}=a,{$anchor:c,empty:u}=l,d=c.depth===1,h=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent&&c.parent.childCount===0&&!this.getTextContent(c.parent);return!(!s.hasFocus()||!u||!d||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;if(this.preventHide){this.preventHide=!1;return}s?.relatedTarget&&!((a=this.element.parentNode)===null||a===void 0)&&a.contains(s.relatedTarget)||s?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=t,this.element=n,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=gl(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){var r,i,o;const{state:s}=t,{doc:a,selection:l}=s,{from:c,to:u}=l;if(!(n&&n.doc.eq(a)&&n.selection.eq(l))){if(this.createTooltip(),!(!((r=this.shouldShow)===null||r===void 0)&&r.call(this,{editor:this.editor,view:t,state:s,oldState:n}))){this.hide();return}(i=this.tippy)===null||i===void 0||i.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>xL(t,c,u))}),this.show()}}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const c3=e=>new kt({key:typeof e.pluginKey=="string"?new Lt(e.pluginKey):e.pluginKey,view:t=>new pse({view:t,...e})});pn.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[c3({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});var Iw={},Gu={},qu={},Vh={},Lw={exports:{}},eT={exports:{}},Yw;function fse(){if(Yw)return eT.exports;Yw=1;var e={};const t=Object.freeze({}),n=Array.isArray;function r(f){return f==null}function i(f){return f!=null}function o(f){return f===!0}function s(f){return typeof f=="string"||typeof f=="number"||typeof f=="symbol"||typeof f=="boolean"}function a(f){return typeof f=="function"}function l(f){return f!==null&&typeof f=="object"}const c=Object.prototype.toString;function u(f){return c.call(f)==="[object Object]"}function d(f){const g=parseFloat(String(f));return g>=0&&Math.floor(g)===g&&isFinite(f)}function h(f){return i(f)&&typeof f.then=="function"&&typeof f.catch=="function"}function p(f){return f==null?"":Array.isArray(f)||u(f)&&f.toString===c?JSON.stringify(f,m,2):String(f)}function m(f,g){return g&&g.__v_isRef?g.value:g}function b(f){const g=parseFloat(f);return isNaN(g)?f:g}function A(f,g){const T=Object.create(null),y=f.split(",");for(let E=0;E<y.length;E++)T[y[E]]=!0;return g?E=>T[E.toLowerCase()]:E=>T[E]}const v=A("key,ref,slot,slot-scope,is");function D(f,g){const T=f.length;if(T){if(g===f[T-1])return void(f.length=T-1);const y=f.indexOf(g);if(y>-1)return f.splice(y,1)}}const C=Object.prototype.hasOwnProperty;function S(f,g){return C.call(f,g)}function O(f){const g=Object.create(null);return function(T){return g[T]||(g[T]=f(T))}}const k=/-(\w)/g,Z=O(f=>f.replace(k,(g,T)=>T?T.toUpperCase():"")),W=O(f=>f.charAt(0).toUpperCase()+f.slice(1)),U=/\B([A-Z])/g,w=O(f=>f.replace(U,"-$1").toLowerCase()),z=Function.prototype.bind?function(f,g){return f.bind(g)}:function(f,g){function T(y){const E=arguments.length;return E?E>1?f.apply(g,arguments):f.call(g,y):f.call(g)}return T._length=f.length,T};function V(f,g){g=g||0;let T=f.length-g;const y=new Array(T);for(;T--;)y[T]=f[T+g];return y}function L(f,g){for(const T in g)f[T]=g[T];return f}function se(f){const g={};for(let T=0;T<f.length;T++)f[T]&&L(g,f[T]);return g}function J(f,g,T){}const Se=(f,g,T)=>!1,G=f=>f;function ie(f,g){if(f===g)return!0;const T=l(f),y=l(g);if(!T||!y)return!T&&!y&&String(f)===String(g);try{const E=Array.isArray(f),N=Array.isArray(g);if(E&&N)return f.length===g.length&&f.every((x,Y)=>ie(x,g[Y]));if(f instanceof Date&&g instanceof Date)return f.getTime()===g.getTime();if(E||N)return!1;{const x=Object.keys(f),Y=Object.keys(g);return x.length===Y.length&&x.every($=>ie(f[$],g[$]))}}catch{return!1}}function ce(f,g){for(let T=0;T<f.length;T++)if(ie(f[T],g))return T;return-1}function De(f){let g=!1;return function(){g||(g=!0,f.apply(this,arguments))}}function Oe(f,g){return f===g?f===0&&1/f!=1/g:f==f||g==g}const Be="data-server-rendered",ft=["component","directive","filter"],bt=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var et={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Se,isReservedAttr:Se,isUnknownElement:Se,getTagNamespace:J,parsePlatformTagName:G,mustUseProp:Se,async:!0,_lifecycleHooks:bt};function nt(f){const g=(f+"").charCodeAt(0);return g===36||g===95}function rt(f,g,T,y){Object.defineProperty(f,g,{value:T,enumerable:!1,writable:!0,configurable:!0})}const Dt=new RegExp(`[^${/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source}.$_\\d]`),jt="__proto__"in{},_e=typeof window<"u",ht=_e&&window.navigator.userAgent.toLowerCase(),it=ht&&/msie|trident/.test(ht),Bt=ht&&ht.indexOf("msie 9.0")>0,$t=ht&&ht.indexOf("edge/")>0;ht&&ht.indexOf("android");const wn=ht&&/iphone|ipad|ipod|ios/.test(ht),Ue=ht&&ht.match(/firefox\/(\d+)/),I={}.watch;let j,M=!1;if(_e)try{const f={};Object.defineProperty(f,"passive",{get(){M=!0}}),window.addEventListener("test-passive",null,f)}catch{}const de=()=>(j===void 0&&(j=!_e&&typeof hs<"u"&&hs.process&&e.VUE_ENV==="server"),j);function Te(f){return typeof f=="function"&&/native code/.test(f.toString())}const H=typeof Symbol<"u"&&Te(Symbol)&&typeof Reflect<"u"&&Te(Reflect.ownKeys);let fe;fe=typeof Set<"u"&&Te(Set)?Set:class{constructor(){this.set=Object.create(null)}has(f){return this.set[f]===!0}add(f){this.set[f]=!0}clear(){this.set=Object.create(null)}};let Ie=null;function lt(f=null){f||Ie&&Ie._scope.off(),Ie=f,f&&f._scope.on()}class St{constructor(g,T,y,E,N,x,Y,$){this.tag=g,this.data=T,this.children=y,this.text=E,this.elm=N,this.ns=void 0,this.context=x,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=T&&T.key,this.componentOptions=Y,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=$,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const Q=(f="")=>{const g=new St;return g.text=f,g.isComment=!0,g};function ne(f){return new St(void 0,void 0,void 0,String(f))}function Ne(f){const g=new St(f.tag,f.data,f.children&&f.children.slice(),f.text,f.elm,f.context,f.componentOptions,f.asyncFactory);return g.ns=f.ns,g.isStatic=f.isStatic,g.key=f.key,g.isComment=f.isComment,g.fnContext=f.fnContext,g.fnOptions=f.fnOptions,g.fnScopeId=f.fnScopeId,g.asyncMeta=f.asyncMeta,g.isCloned=!0,g}let ot=0;const Ot=[],fn=()=>{for(let f=0;f<Ot.length;f++){const g=Ot[f];g.subs=g.subs.filter(T=>T),g._pending=!1}Ot.length=0};class nn{constructor(){this._pending=!1,this.id=ot++,this.subs=[]}addSub(g){this.subs.push(g)}removeSub(g){this.subs[this.subs.indexOf(g)]=null,this._pending||(this._pending=!0,Ot.push(this))}depend(g){nn.target&&nn.target.addDep(this)}notify(g){const T=this.subs.filter(y=>y);for(let y=0,E=T.length;y<E;y++)T[y].update()}}nn.target=null;const oe=[];function Re(f){oe.push(f),nn.target=f}function Qe(){oe.pop(),nn.target=oe[oe.length-1]}const xt=Array.prototype,At=Object.create(xt);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(f){const g=xt[f];rt(At,f,function(...T){const y=g.apply(this,T),E=this.__ob__;let N;switch(f){case"push":case"unshift":N=T;break;case"splice":N=T.slice(2)}return N&&E.observeArray(N),E.dep.notify(),y})});const Nn=Object.getOwnPropertyNames(At),qn={};let Lr=!0;function Ln(f){Lr=f}const P={notify:J,depend:J,addSub:J,removeSub:J};class ae{constructor(g,T=!1,y=!1){if(this.value=g,this.shallow=T,this.mock=y,this.dep=y?P:new nn,this.vmCount=0,rt(g,"__ob__",this),n(g)){if(!y)if(jt)g.__proto__=At;else for(let E=0,N=Nn.length;E<N;E++){const x=Nn[E];rt(g,x,At[x])}T||this.observeArray(g)}else{const E=Object.keys(g);for(let N=0;N<E.length;N++)Je(g,E[N],qn,void 0,T,y)}}observeArray(g){for(let T=0,y=g.length;T<y;T++)be(g[T],!1,this.mock)}}function be(f,g,T){return f&&S(f,"__ob__")&&f.__ob__ instanceof ae?f.__ob__:!Lr||!T&&de()||!n(f)&&!u(f)||!Object.isExtensible(f)||f.__v_skip||kn(f)||f instanceof St?void 0:new ae(f,g,T)}function Je(f,g,T,y,E,N,x=!1){const Y=new nn,$=Object.getOwnPropertyDescriptor(f,g);if($&&$.configurable===!1)return;const ee=$&&$.get,te=$&&$.set;ee&&!te||T!==qn&&arguments.length!==2||(T=f[g]);let ge=E?T&&T.__ob__:be(T,!1,N);return Object.defineProperty(f,g,{enumerable:!0,configurable:!0,get:function(){const pe=ee?ee.call(f):T;return nn.target&&(Y.depend(),ge&&(ge.dep.depend(),n(pe)&&ze(pe))),kn(pe)&&!E?pe.value:pe},set:function(pe){const ke=ee?ee.call(f):T;if(Oe(ke,pe)){if(te)te.call(f,pe);else{if(ee)return;if(!E&&kn(ke)&&!kn(pe))return void(ke.value=pe);T=pe}ge=E?pe&&pe.__ob__:be(pe,!1,N),Y.notify()}}}),Y}function Ut(f,g,T){if(Yr(f))return;const y=f.__ob__;return n(f)&&d(g)?(f.length=Math.max(f.length,g),f.splice(g,1,T),y&&!y.shallow&&y.mock&&be(T,!1,!0),T):g in f&&!(g in Object.prototype)?(f[g]=T,T):f._isVue||y&&y.vmCount?T:y?(Je(y.value,g,T,void 0,y.shallow,y.mock),y.dep.notify(),T):(f[g]=T,T)}function zt(f,g){if(n(f)&&d(g))return void f.splice(g,1);const T=f.__ob__;f._isVue||T&&T.vmCount||Yr(f)||S(f,g)&&(delete f[g],T&&T.dep.notify())}function ze(f){for(let g,T=0,y=f.length;T<y;T++)g=f[T],g&&g.__ob__&&g.__ob__.dep.depend(),n(g)&&ze(g)}function Me(f){return Ze(f,!0),rt(f,"__v_isShallow",!0),f}function Ze(f,g){Yr(f)||be(f,g,de())}function rn(f){return Yr(f)?rn(f.__v_raw):!(!f||!f.__ob__)}function mn(f){return!(!f||!f.__v_isShallow)}function Yr(f){return!(!f||!f.__v_isReadonly)}const Ci="__v_isRef";function kn(f){return!(!f||f.__v_isRef!==!0)}function Rs(f,g){if(kn(f))return f;const T={};return rt(T,Ci,!0),rt(T,"__v_isShallow",g),rt(T,"dep",Je(T,"value",f,null,g,de())),T}function Ni(f,g,T){Object.defineProperty(f,T,{enumerable:!0,configurable:!0,get:()=>{const y=g[T];if(kn(y))return y.value;{const E=y&&y.__ob__;return E&&E.dep.depend(),y}},set:y=>{const E=g[T];kn(E)&&!kn(y)?E.value=y:g[T]=y}})}function ql(f,g,T){const y=f[g];if(kn(y))return y;const E={get value(){const N=f[g];return N===void 0?T:N},set value(N){f[g]=N}};return rt(E,Ci,!0),E}const Cu="__v_rawToReadonly",Wl="__v_rawToShallowReadonly";function Wi(f){return Fi(f,!1)}function Fi(f,g){if(!u(f)||Yr(f))return f;const T=g?Wl:Cu,y=f[T];if(y)return y;const E=Object.create(Object.getPrototypeOf(f));rt(f,T,E),rt(E,"__v_isReadonly",!0),rt(E,"__v_raw",f),kn(f)&&rt(E,Ci,!0),(g||mn(f))&&rt(E,"__v_isShallow",!0);const N=Object.keys(f);for(let x=0;x<N.length;x++)Nu(E,f,N[x],g);return E}function Nu(f,g,T,y){Object.defineProperty(f,T,{enumerable:!0,configurable:!0,get(){const E=g[T];return y||!u(E)?E:Wi(E)},set(){}})}const Ms="watcher",Bs=`${Ms} callback`,mi=`${Ms} getter`,Kl=`${Ms} cleanup`;function fo(f,g){return mo(f,null,{flush:"post"})}const vr={};function mo(f,g,{immediate:T,deep:y,flush:E="pre",onTrack:N,onTrigger:x}=t){const Y=Ie,$=(Ge,Mt,Kt=null)=>{const on=Jr(Ge,null,Kt,Y,Mt);return y&&on&&on.__ob__&&on.__ob__.dep.depend(),on};let ee,te,ge=!1,pe=!1;if(kn(f)?(ee=()=>f.value,ge=mn(f)):rn(f)?(ee=()=>(f.__ob__.dep.depend(),f),y=!0):n(f)?(pe=!0,ge=f.some(Ge=>rn(Ge)||mn(Ge)),ee=()=>f.map(Ge=>kn(Ge)?Ge.value:rn(Ge)?(Ge.__ob__.dep.depend(),He(Ge)):a(Ge)?$(Ge,mi):void 0)):ee=a(f)?g?()=>$(f,mi):()=>{if(!Y||!Y._isDestroyed)return te&&te(),$(f,Ms,[ke])}:J,g&&y){const Ge=ee;ee=()=>He(Ge())}let ke=Ge=>{te=Ye.onStop=()=>{$(Ge,Kl)}};if(de())return ke=J,g?T&&$(g,Bs,[ee(),pe?[]:void 0,ke]):ee(),J;const Ye=new Xr(Ie,ee,J,{lazy:!0});Ye.noRecurse=!g;let tt=pe?[]:vr;return Ye.run=()=>{if(Ye.active)if(g){const Ge=Ye.get();(y||ge||(pe?Ge.some((Mt,Kt)=>Oe(Mt,tt[Kt])):Oe(Ge,tt)))&&(te&&te(),$(g,Bs,[Ge,tt===vr?void 0:tt,ke]),tt=Ge)}else Ye.get()},E==="sync"?Ye.update=Ye.run:E==="post"?(Ye.post=!0,Ye.update=()=>f1(Ye)):Ye.update=()=>{if(Y&&Y===Ie&&!Y._isMounted){const Ge=Y._preWatchers||(Y._preWatchers=[]);Ge.indexOf(Ye)<0&&Ge.push(Ye)}else f1(Ye)},g?T?Ye.run():tt=Ye.get():E==="post"&&Y?Y.$once("hook:mounted",()=>Ye.get()):Ye.get(),()=>{Ye.teardown()}}let $n;class Hr{constructor(g=!1){this.detached=g,this.active=!0,this.effects=[],this.cleanups=[],this.parent=$n,!g&&$n&&(this.index=($n.scopes||($n.scopes=[])).push(this)-1)}run(g){if(this.active){const T=$n;try{return $n=this,g()}finally{$n=T}}}on(){$n=this}off(){$n=this.parent}stop(g){if(this.active){let T,y;for(T=0,y=this.effects.length;T<y;T++)this.effects[T].teardown();for(T=0,y=this.cleanups.length;T<y;T++)this.cleanups[T]();if(this.scopes)for(T=0,y=this.scopes.length;T<y;T++)this.scopes[T].stop(!0);if(!this.detached&&this.parent&&!g){const E=this.parent.scopes.pop();E&&E!==this&&(this.parent.scopes[this.index]=E,E.index=this.index)}this.parent=void 0,this.active=!1}}}function $a(){return $n}function ye(f){const g=f._provided,T=f.$parent&&f.$parent._provided;return T===g?f._provided=Object.create(T):g}const qe=O(f=>{const g=f.charAt(0)==="&",T=(f=g?f.slice(1):f).charAt(0)==="~",y=(f=T?f.slice(1):f).charAt(0)==="!";return{name:f=y?f.slice(1):f,once:T,capture:y,passive:g}});function wt(f,g){function T(){const y=T.fns;if(!n(y))return Jr(y,null,arguments,g,"v-on handler");{const E=y.slice();for(let N=0;N<E.length;N++)Jr(E[N],null,arguments,g,"v-on handler")}}return T.fns=f,T}function It(f,g,T,y,E,N){let x,Y,$,ee;for(x in f)Y=f[x],$=g[x],ee=qe(x),r(Y)||(r($)?(r(Y.fns)&&(Y=f[x]=wt(Y,N)),o(ee.once)&&(Y=f[x]=E(ee.name,Y,ee.capture)),T(ee.name,Y,ee.capture,ee.passive,ee.params)):Y!==$&&($.fns=Y,f[x]=$));for(x in g)r(f[x])&&(ee=qe(x),y(ee.name,g[x],ee.capture))}function Gt(f,g,T){let y;f instanceof St&&(f=f.data.hook||(f.data.hook={}));const E=f[g];function N(){T.apply(this,arguments),D(y.fns,N)}r(E)?y=wt([N]):i(E.fns)&&o(E.merged)?(y=E,y.fns.push(N)):y=wt([E,N]),y.merged=!0,f[g]=y}function Dr(f,g,T,y,E){if(i(g)){if(S(g,T))return f[T]=g[T],E||delete g[T],!0;if(S(g,y))return f[T]=g[y],E||delete g[y],!0}return!1}function Wr(f){return s(f)?[ne(f)]:n(f)?rr(f):void 0}function Oi(f){return i(f)&&i(f.text)&&f.isComment===!1}function rr(f,g){const T=[];let y,E,N,x;for(y=0;y<f.length;y++)E=f[y],r(E)||typeof E=="boolean"||(N=T.length-1,x=T[N],n(E)?E.length>0&&(E=rr(E,`${g||""}_${y}`),Oi(E[0])&&Oi(x)&&(T[N]=ne(x.text+E[0].text),E.shift()),T.push.apply(T,E)):s(E)?Oi(x)?T[N]=ne(x.text+E):E!==""&&T.push(ne(E)):Oi(E)&&Oi(x)?T[N]=ne(x.text+E.text):(o(f._isVList)&&i(E.tag)&&r(E.key)&&i(g)&&(E.key=`__vlist${g}_${y}__`),T.push(E)));return T}function Kr(f,g){let T,y,E,N,x=null;if(n(f)||typeof f=="string")for(x=new Array(f.length),T=0,y=f.length;T<y;T++)x[T]=g(f[T],T);else if(typeof f=="number")for(x=new Array(f),T=0;T<f;T++)x[T]=g(T+1,T);else if(l(f))if(H&&f[Symbol.iterator]){x=[];const Y=f[Symbol.iterator]();let $=Y.next();for(;!$.done;)x.push(g($.value,x.length)),$=Y.next()}else for(E=Object.keys(f),x=new Array(E.length),T=0,y=E.length;T<y;T++)N=E[T],x[T]=g(f[N],N,T);return i(x)||(x=[]),x._isVList=!0,x}function Ua(f,g,T,y){const E=this.$scopedSlots[f];let N;E?(T=T||{},y&&(T=L(L({},y),T)),N=E(T)||(a(g)?g():g)):N=this.$slots[f]||(a(g)?g():g);const x=T&&T.slot;return x?this.$createElement("template",{slot:x},N):N}function za(f){return uh(this.$options,"filters",f)||G}function gi(f,g){return n(f)?f.indexOf(g)===-1:f!==g}function Ql(f,g,T,y,E){const N=et.keyCodes[g]||T;return E&&y&&!et.keyCodes[g]?gi(E,y):N?gi(N,f):y?w(y)!==g:f===void 0}function Fu(f,g,T,y,E){if(T&&l(T)){let N;n(T)&&(T=se(T));for(const x in T){if(x==="class"||x==="style"||v(x))N=f;else{const ee=f.attrs&&f.attrs.type;N=y||et.mustUseProp(g,ee,x)?f.domProps||(f.domProps={}):f.attrs||(f.attrs={})}const Y=Z(x),$=w(x);!(Y in N)&&!($ in N)&&(N[x]=T[x],E)&&((f.on||(f.on={}))[`update:${x}`]=function(ee){T[x]=ee})}}return f}function Ou(f,g){const T=this._staticTrees||(this._staticTrees=[]);let y=T[f];return y&&!g||(y=T[f]=this.$options.staticRenderFns[f].call(this._renderProxy,this._c,this),jo(y,`__static__${f}`,!1)),y}function xu(f,g,T){return jo(f,`__once__${g}${T?`_${T}`:""}`,!0),f}function jo(f,g,T){if(n(f))for(let y=0;y<f.length;y++)f[y]&&typeof f[y]!="string"&&Va(f[y],`${g}_${y}`,T);else Va(f,g,T)}function Va(f,g,T){f.isStatic=!0,f.key=g,f.isOnce=T}function Zr(f,g){if(g&&u(g)){const T=f.on=f.on?L({},f.on):{};for(const y in g){const E=T[y],N=g[y];T[y]=E?[].concat(E,N):N}}return f}function Go(f,g,T,y){g=g||{$stable:!T};for(let E=0;E<f.length;E++){const N=f[E];n(N)?Go(N,g,T):N&&(N.proxy&&(N.fn.proxy=!0),g[N.key]=N.fn)}return y&&(g.$key=y),g}function Is(f,g){for(let T=0;T<g.length;T+=2){const y=g[T];typeof y=="string"&&y&&(f[g[T]]=g[T+1])}return f}function pt(f,g){return typeof f=="string"?g+f:f}function Ls(f){f._o=xu,f._n=b,f._s=p,f._l=Kr,f._t=Ua,f._q=ie,f._i=ce,f._m=Ou,f._f=za,f._k=Ql,f._b=Fu,f._v=ne,f._e=Q,f._u=Go,f._g=Zr,f._d=Is,f._p=pt}function Rn(f,g){if(!f||!f.length)return{};const T={};for(let y=0,E=f.length;y<E;y++){const N=f[y],x=N.data;if(x&&x.attrs&&x.attrs.slot&&delete x.attrs.slot,N.context!==g&&N.fnContext!==g||!x||x.slot==null)(T.default||(T.default=[])).push(N);else{const Y=x.slot,$=T[Y]||(T[Y]=[]);N.tag==="template"?$.push.apply($,N.children||[]):$.push(N)}}for(const y in T)T[y].every(qt)&&delete T[y];return T}function qt(f){return f.isComment&&!f.asyncFactory||f.text===" "}function Qr(f){return f.isComment&&f.asyncFactory}function ir(f,g,T,y){let E;const N=Object.keys(T).length>0,x=g?!!g.$stable:!N,Y=g&&g.$key;if(g){if(g._normalized)return g._normalized;if(x&&y&&y!==t&&Y===y.$key&&!N&&!y.$hasNormal)return y;E={};for(const $ in g)g[$]&&$[0]!=="$"&&(E[$]=ja(f,T,$,g[$]))}else E={};for(const $ in T)$ in E||(E[$]=Ga(T,$));return g&&Object.isExtensible(g)&&(g._normalized=E),rt(E,"$stable",x),rt(E,"$key",Y),rt(E,"$hasNormal",N),E}function ja(f,g,T,y){const E=function(){const N=Ie;lt(f);let x=arguments.length?y.apply(null,arguments):y({});x=x&&typeof x=="object"&&!n(x)?[x]:Wr(x);const Y=x&&x[0];return lt(N),x&&(!Y||x.length===1&&Y.isComment&&!Qr(Y))?void 0:x};return y.proxy&&Object.defineProperty(g,T,{get:E,enumerable:!0,configurable:!0}),E}function Ga(f,g){return()=>f[g]}function Fe(f){return{get attrs(){if(!f._attrsProxy){const g=f._attrsProxy={};rt(g,"_v_attr_proxy",!0),Pe(g,f.$attrs,t,f,"$attrs")}return f._attrsProxy},get listeners(){return f._listenersProxy||Pe(f._listenersProxy={},f.$listeners,t,f,"$listeners"),f._listenersProxy},get slots(){return function(g){return g._slotsProxy||Yt(g._slotsProxy={},g.$scopedSlots),g._slotsProxy}(f)},emit:z(f.$emit,f),expose(g){g&&Object.keys(g).forEach(T=>Ni(f,g,T))}}}function Pe(f,g,T,y,E){let N=!1;for(const x in g)x in f?g[x]!==T[x]&&(N=!0):(N=!0,gt(f,x,y,E));for(const x in f)x in g||(N=!0,delete f[x]);return N}function gt(f,g,T,y){Object.defineProperty(f,g,{enumerable:!0,configurable:!0,get:()=>T[y][g]})}function Yt(f,g){for(const T in g)f[T]=g[T];for(const T in f)T in g||delete f[T]}function Mn(){const f=Ie;return f._setupContext||(f._setupContext=Fe(f))}let or=null;function Ys(f,g){return(f.__esModule||H&&f[Symbol.toStringTag]==="Module")&&(f=f.default),l(f)?g.extend(f):f}function qa(f){if(n(f))for(let g=0;g<f.length;g++){const T=f[g];if(i(T)&&(i(T.componentOptions)||Qr(T)))return T}}const Jl=1,ku=2;function Wa(f,g,T,y,E,N){return(n(T)||s(T))&&(E=y,y=T,T=void 0),o(N)&&(E=ku),function(x,Y,$,ee,te){if(i($)&&i($.__ob__)||(i($)&&i($.is)&&(Y=$.is),!Y))return Q();n(ee)&&a(ee[0])&&(($=$||{}).scopedSlots={default:ee[0]},ee.length=0),te===ku?ee=Wr(ee):te===Jl&&(ee=function(ke){for(let Ye=0;Ye<ke.length;Ye++)if(n(ke[Ye]))return Array.prototype.concat.apply([],ke);return ke}(ee));let ge,pe;if(typeof Y=="string"){let ke;pe=x.$vnode&&x.$vnode.ns||et.getTagNamespace(Y),ge=$&&$.pre||!i(ke=uh(x.$options,"components",Y))?new St(Y,$,ee,void 0,void 0,x):AE(ke,$,x,ee,Y)}else ge=AE(Y,$,x,ee);return n(ge)?ge:i(ge)?(i(pe)&&Ka(ge,pe),i($)&&function(ke){l(ke.style)&&He(ke.style),l(ke.class)&&He(ke.class)}($),ge):Q()}(f,g,T,y,E)}function Ka(f,g,T){if(f.ns=g,f.tag==="foreignObject"&&(g=void 0,T=!0),i(f.children))for(let y=0,E=f.children.length;y<E;y++){const N=f.children[y];i(N.tag)&&(r(N.ns)||o(T)&&N.tag!=="svg")&&Ka(N,g,T)}}function sr(f,g,T){Re();try{if(g){let y=g;for(;y=y.$parent;){const E=y.$options.errorCaptured;if(E)for(let N=0;N<E.length;N++)try{if(E[N].call(y,f,g,T)===!1)return}catch(x){Qa(x,y,"errorCaptured hook")}}}Qa(f,g,T)}finally{Qe()}}function Jr(f,g,T,y,E){let N;try{N=T?f.apply(g,T):f.call(g),N&&!N._isVue&&h(N)&&!N._handled&&(N.catch(x=>sr(x,y,E+" (Promise/async)")),N._handled=!0)}catch(x){sr(x,y,E)}return N}function Qa(f,g,T){Ru(f)}function Ru(f,g,T){if(!_e||typeof console>"u")throw f;console.error(f)}let Mu=!1;const Bu=[];let Xl,Ja=!1;function ec(){Ja=!1;const f=Bu.slice(0);Bu.length=0;for(let g=0;g<f.length;g++)f[g]()}if(typeof Promise<"u"&&Te(Promise)){const f=Promise.resolve();Xl=()=>{f.then(ec),wn&&setTimeout(J)},Mu=!0}else if(it||typeof MutationObserver>"u"||!Te(MutationObserver)&&MutationObserver.toString()!=="[object MutationObserverConstructor]")Xl=typeof setImmediate<"u"&&Te(setImmediate)?()=>{setImmediate(ec)}:()=>{setTimeout(ec,0)};else{let f=1;const g=new MutationObserver(ec),T=document.createTextNode(String(f));g.observe(T,{characterData:!0}),Xl=()=>{f=(f+1)%2,T.data=String(f)},Mu=!0}function Xa(f,g){let T;if(Bu.push(()=>{if(f)try{f.call(g)}catch(y){sr(y,g,"nextTick")}else T&&T(g)}),Ja||(Ja=!0,Xl()),!f&&typeof Promise<"u")return new Promise(y=>{T=y})}function Ht(f){return(g,T=Ie)=>{if(T)return function(y,E,N){const x=y.$options;x[E]=EE(x[E],N)}(T,f,g)}}const _=Ht("beforeMount"),F=Ht("mounted"),R=Ht("beforeUpdate"),B=Ht("updated"),q=Ht("beforeDestroy"),K=Ht("destroyed"),X=Ht("activated"),ve=Ht("deactivated"),je=Ht("serverPrefetch"),Ce=Ht("renderTracked"),Le=Ht("renderTriggered"),dt=Ht("errorCaptured"),en="2.7.16";var yt=Object.freeze({__proto__:null,version:en,defineComponent:function(f){return f},ref:function(f){return Rs(f,!1)},shallowRef:function(f){return Rs(f,!0)},isRef:kn,toRef:ql,toRefs:function(f){const g=n(f)?new Array(f.length):{};for(const T in f)g[T]=ql(f,T);return g},unref:function(f){return kn(f)?f.value:f},proxyRefs:function(f){if(rn(f))return f;const g={},T=Object.keys(f);for(let y=0;y<T.length;y++)Ni(g,f,T[y]);return g},customRef:function(f){const g=new nn,{get:T,set:y}=f(()=>{g.depend()},()=>{g.notify()}),E={get value(){return T()},set value(N){y(N)}};return rt(E,Ci,!0),E},triggerRef:function(f){f.dep&&f.dep.notify()},reactive:function(f){return Ze(f,!1),f},isReactive:rn,isReadonly:Yr,isShallow:mn,isProxy:function(f){return rn(f)||Yr(f)},shallowReactive:Me,markRaw:function(f){return Object.isExtensible(f)&&rt(f,"__v_skip",!0),f},toRaw:function f(g){const T=g&&g.__v_raw;return T?f(T):g},readonly:Wi,shallowReadonly:function(f){return Fi(f,!0)},computed:function(f,g){let T,y;const E=a(f);E?(T=f,y=J):(T=f.get,y=f.set);const N=de()?null:new Xr(Ie,T,J,{lazy:!0}),x={effect:N,get value(){return N?(N.dirty&&N.evaluate(),nn.target&&N.depend(),N.value):T()},set value(Y){y(Y)}};return rt(x,Ci,!0),rt(x,"__v_isReadonly",E),x},watch:function(f,g,T){return mo(f,g,T)},watchEffect:function(f,g){return mo(f,null,g)},watchPostEffect:fo,watchSyncEffect:function(f,g){return mo(f,null,{flush:"sync"})},EffectScope:Hr,effectScope:function(f){return new Hr(f)},onScopeDispose:function(f){$n&&$n.cleanups.push(f)},getCurrentScope:$a,provide:function(f,g){Ie&&(ye(Ie)[f]=g)},inject:function(f,g,T=!1){const y=Ie;if(y){const E=y.$parent&&y.$parent._provided;if(E&&f in E)return E[f];if(arguments.length>1)return T&&a(g)?g.call(y):g}},h:function(f,g,T){return Wa(Ie,f,g,T,2,!0)},getCurrentInstance:function(){return Ie&&{proxy:Ie}},useSlots:function(){return Mn().slots},useAttrs:function(){return Mn().attrs},useListeners:function(){return Mn().listeners},mergeDefaults:function(f,g){const T=n(f)?f.reduce((y,E)=>(y[E]={},y),{}):f;for(const y in g){const E=T[y];E?n(E)||a(E)?T[y]={type:E,default:g[y]}:E.default=g[y]:E===null&&(T[y]={default:g[y]})}return T},nextTick:Xa,set:Ut,del:zt,useCssModule:function(f="$style"){return Ie&&Ie[f]||t},useCssVars:function(f){if(!_e)return;const g=Ie;g&&fo(()=>{const T=g.$el,y=f(g,g._setupProxy);if(T&&T.nodeType===1){const E=T.style;for(const N in y)E.setProperty(`--${N}`,y[N])}})},defineAsyncComponent:function(f){a(f)&&(f={loader:f});const{loader:g,loadingComponent:T,errorComponent:y,delay:E=200,timeout:N,suspensible:x=!1,onError:Y}=f;let $=null,ee=0;const te=()=>{let ge;return $||(ge=$=g().catch(pe=>{if(pe=pe instanceof Error?pe:new Error(String(pe)),Y)return new Promise((ke,Ye)=>{Y(pe,()=>ke((ee++,$=null,te())),()=>Ye(pe),ee+1)});throw pe}).then(pe=>ge!==$&&$?$:(pe&&(pe.__esModule||pe[Symbol.toStringTag]==="Module")&&(pe=pe.default),pe)))};return()=>({component:te(),delay:E,timeout:N,error:y,loading:T})},onBeforeMount:_,onMounted:F,onBeforeUpdate:R,onUpdated:B,onBeforeUnmount:q,onUnmounted:K,onActivated:X,onDeactivated:ve,onServerPrefetch:je,onRenderTracked:Ce,onRenderTriggered:Le,onErrorCaptured:function(f,g=Ie){dt(f,g)}});const at=new fe;function He(f){return Un(f,at),at.clear(),f}function Un(f,g){let T,y;const E=n(f);if(!(!E&&!l(f)||f.__v_skip||Object.isFrozen(f)||f instanceof St)){if(f.__ob__){const N=f.__ob__.dep.id;if(g.has(N))return;g.add(N)}if(E)for(T=f.length;T--;)Un(f[T],g);else if(kn(f))Un(f.value,g);else for(y=Object.keys(f),T=y.length;T--;)Un(f[y[T]],g)}}let Fn,Bn=0;class Xr{constructor(g,T,y,E,N){(function(x,Y=$n){Y&&Y.active&&Y.effects.push(x)})(this,$n&&!$n._vm?$n:g?g._scope:void 0),(this.vm=g)&&N&&(g._watcher=this),E?(this.deep=!!E.deep,this.user=!!E.user,this.lazy=!!E.lazy,this.sync=!!E.sync,this.before=E.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=y,this.id=++Bn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="",a(T)?this.getter=T:(this.getter=function(x){if(Dt.test(x))return;const Y=x.split(".");return function($){for(let ee=0;ee<Y.length;ee++){if(!$)return;$=$[Y[ee]]}return $}}(T),this.getter||(this.getter=J)),this.value=this.lazy?void 0:this.get()}get(){let g;Re(this);const T=this.vm;try{g=this.getter.call(T,T)}catch(y){if(!this.user)throw y;sr(y,T,`getter for watcher "${this.expression}"`)}finally{this.deep&&He(g),Qe(),this.cleanupDeps()}return g}addDep(g){const T=g.id;this.newDepIds.has(T)||(this.newDepIds.add(T),this.newDeps.push(g),this.depIds.has(T)||g.addSub(this))}cleanupDeps(){let g=this.deps.length;for(;g--;){const y=this.deps[g];this.newDepIds.has(y.id)||y.removeSub(this)}let T=this.depIds;this.depIds=this.newDepIds,this.newDepIds=T,this.newDepIds.clear(),T=this.deps,this.deps=this.newDeps,this.newDeps=T,this.newDeps.length=0}update(){this.lazy?this.dirty=!0:this.sync?this.run():f1(this)}run(){if(this.active){const g=this.get();if(g!==this.value||l(g)||this.deep){const T=this.value;if(this.value=g,this.user){const y=`callback for watcher "${this.expression}"`;Jr(this.cb,this.vm,[g,T],this.vm,y)}else this.cb.call(this.vm,g,T)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let g=this.deps.length;for(;g--;)this.deps[g].depend()}teardown(){if(this.vm&&!this.vm._isBeingDestroyed&&D(this.vm._scope.effects,this),this.active){let g=this.deps.length;for(;g--;)this.deps[g].removeSub(this);this.active=!1,this.onStop&&this.onStop()}}}function el(f,g){Fn.$on(f,g)}function go(f,g){Fn.$off(f,g)}function Hs(f,g){const T=Fn;return function y(){g.apply(null,arguments)!==null&&T.$off(f,y)}}function tc(f,g,T){Fn=f,It(g,T||{},el,go,Hs,f),Fn=void 0}let xi=null;function Iu(f){const g=xi;return xi=f,()=>{xi=g}}function hE(f){for(;f&&(f=f.$parent);)if(f._inactive)return!0;return!1}function c1(f,g){if(g){if(f._directInactive=!1,hE(f))return}else if(f._directInactive)return;if(f._inactive||f._inactive===null){f._inactive=!1;for(let T=0;T<f.$children.length;T++)c1(f.$children[T]);Ki(f,"activated")}}function pE(f,g){if(!(g&&(f._directInactive=!0,hE(f))||f._inactive)){f._inactive=!0;for(let T=0;T<f.$children.length;T++)pE(f.$children[T]);Ki(f,"deactivated")}}function Ki(f,g,T,y=!0){Re();const E=Ie,N=$a();y&&lt(f);const x=f.$options[g],Y=`${g} hook`;if(x)for(let $=0,ee=x.length;$<ee;$++)Jr(x[$],f,null,f,Y);f._hasHookEvent&&f.$emit("hook:"+g),y&&(lt(E),N&&N.on()),Qe()}const qo=[],u1=[];let lh={},d1=!1,h1=!1,nc=0,fE=0,p1=Date.now;if(_e&&!it){const f=window.performance;f&&typeof f.now=="function"&&p1()>document.createEvent("Event").timeStamp&&(p1=()=>f.now())}const YM=(f,g)=>{if(f.post){if(!g.post)return 1}else if(g.post)return-1;return f.id-g.id};function HM(){let f,g;for(fE=p1(),h1=!0,qo.sort(YM),nc=0;nc<qo.length;nc++)f=qo[nc],f.before&&f.before(),g=f.id,lh[g]=null,f.run();const T=u1.slice(),y=qo.slice();nc=qo.length=u1.length=0,lh={},d1=h1=!1,function(E){for(let N=0;N<E.length;N++)E[N]._inactive=!0,c1(E[N],!0)}(T),function(E){let N=E.length;for(;N--;){const x=E[N],Y=x.vm;Y&&Y._watcher===x&&Y._isMounted&&!Y._isDestroyed&&Ki(Y,"updated")}}(y),fn()}function f1(f){const g=f.id;if(lh[g]==null&&(f!==nn.target||!f.noRecurse)){if(lh[g]=!0,h1){let T=qo.length-1;for(;T>nc&&qo[T].id>f.id;)T--;qo.splice(T+1,0,f)}else qo.push(f);d1||(d1=!0,Xa(HM))}}function mE(f,g){if(f){const T=Object.create(null),y=H?Reflect.ownKeys(f):Object.keys(f);for(let E=0;E<y.length;E++){const N=y[E];if(N==="__ob__")continue;const x=f[N].from;if(x in g._provided)T[N]=g._provided[x];else if("default"in f[N]){const Y=f[N].default;T[N]=a(Y)?Y.call(g):Y}}return T}}function m1(f,g,T,y,E){const N=E.options;let x;S(y,"_uid")?(x=Object.create(y),x._original=y):(x=y,y=y._original);const Y=o(N._compiled),$=!Y;this.data=f,this.props=g,this.children=T,this.parent=y,this.listeners=f.on||t,this.injections=mE(N.inject,y),this.slots=()=>(this.$slots||ir(y,f.scopedSlots,this.$slots=Rn(T,y)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return ir(y,f.scopedSlots,this.slots())}}),Y&&(this.$options=N,this.$slots=this.slots(),this.$scopedSlots=ir(y,f.scopedSlots,this.$slots)),N._scopeId?this._c=(ee,te,ge,pe)=>{const ke=Wa(x,ee,te,ge,pe,$);return ke&&!n(ke)&&(ke.fnScopeId=N._scopeId,ke.fnContext=y),ke}:this._c=(ee,te,ge,pe)=>Wa(x,ee,te,ge,pe,$)}function gE(f,g,T,y,E){const N=Ne(f);return N.fnContext=T,N.fnOptions=y,g.slot&&((N.data||(N.data={})).slot=g.slot),N}function TE(f,g){for(const T in g)f[Z(T)]=g[T]}function ch(f){return f.name||f.__name||f._componentTag}Ls(m1.prototype);const g1={init(f,g){if(f.componentInstance&&!f.componentInstance._isDestroyed&&f.data.keepAlive){const T=f;g1.prepatch(T,T)}else(f.componentInstance=function(T,y){const E={_isComponent:!0,_parentVnode:T,parent:y},N=T.data.inlineTemplate;return i(N)&&(E.render=N.render,E.staticRenderFns=N.staticRenderFns),new T.componentOptions.Ctor(E)}(f,xi)).$mount(g?f.elm:void 0,g)},prepatch(f,g){const T=g.componentOptions;(function(y,E,N,x,Y){const $=x.data.scopedSlots,ee=y.$scopedSlots,te=!!($&&!$.$stable||ee!==t&&!ee.$stable||$&&y.$scopedSlots.$key!==$.$key||!$&&y.$scopedSlots.$key);let ge=!!(Y||y.$options._renderChildren||te);const pe=y.$vnode;y.$options._parentVnode=x,y.$vnode=x,y._vnode&&(y._vnode.parent=x),y.$options._renderChildren=Y;const ke=x.data.attrs||t;y._attrsProxy&&Pe(y._attrsProxy,ke,pe.data&&pe.data.attrs||t,y,"$attrs")&&(ge=!0),y.$attrs=ke,N=N||t;const Ye=y.$options._parentListeners;if(y._listenersProxy&&Pe(y._listenersProxy,N,Ye||t,y,"$listeners"),y.$listeners=y.$options._parentListeners=N,tc(y,N,Ye),E&&y.$options.props){Ln(!1);const tt=y._props,Ge=y.$options._propKeys||[];for(let Mt=0;Mt<Ge.length;Mt++){const Kt=Ge[Mt],on=y.$options.props;tt[Kt]=T1(Kt,on,E,y)}Ln(!0),y.$options.propsData=E}ge&&(y.$slots=Rn(Y,x.context),y.$forceUpdate())})(g.componentInstance=f.componentInstance,T.propsData,T.listeners,g,T.children)},insert(f){const{context:g,componentInstance:T}=f;var y;T._isMounted||(T._isMounted=!0,Ki(T,"mounted")),f.data.keepAlive&&(g._isMounted?((y=T)._inactive=!1,u1.push(y)):c1(T,!0))},destroy(f){const{componentInstance:g}=f;g._isDestroyed||(f.data.keepAlive?pE(g,!0):g.$destroy())}},bE=Object.keys(g1);function AE(f,g,T,y,E){if(r(f))return;const N=T.$options._base;if(l(f)&&(f=N.extend(f)),typeof f!="function")return;let x;if(r(f.cid)&&(x=f,f=function(te,ge){if(o(te.error)&&i(te.errorComp))return te.errorComp;if(i(te.resolved))return te.resolved;const pe=or;if(pe&&i(te.owners)&&te.owners.indexOf(pe)===-1&&te.owners.push(pe),o(te.loading)&&i(te.loadingComp))return te.loadingComp;if(pe&&!i(te.owners)){const ke=te.owners=[pe];let Ye=!0,tt=null,Ge=null;pe.$on("hook:destroyed",()=>D(ke,pe));const Mt=ki=>{for(let ar=0,re=ke.length;ar<re;ar++)ke[ar].$forceUpdate();ki&&(ke.length=0,tt!==null&&(clearTimeout(tt),tt=null),Ge!==null&&(clearTimeout(Ge),Ge=null))},Kt=De(ki=>{te.resolved=Ys(ki,ge),Ye?ke.length=0:Mt(!0)}),on=De(ki=>{i(te.errorComp)&&(te.error=!0,Mt(!0))}),gn=te(Kt,on);return l(gn)&&(h(gn)?r(te.resolved)&&gn.then(Kt,on):h(gn.component)&&(gn.component.then(Kt,on),i(gn.error)&&(te.errorComp=Ys(gn.error,ge)),i(gn.loading)&&(te.loadingComp=Ys(gn.loading,ge),gn.delay===0?te.loading=!0:tt=setTimeout(()=>{tt=null,r(te.resolved)&&r(te.error)&&(te.loading=!0,Mt(!1))},gn.delay||200)),i(gn.timeout)&&(Ge=setTimeout(()=>{Ge=null,r(te.resolved)&&on(null)},gn.timeout)))),Ye=!1,te.loading?te.loadingComp:te.resolved}}(x,N),f===void 0))return function(te,ge,pe,ke,Ye){const tt=Q();return tt.asyncFactory=te,tt.asyncMeta={data:ge,context:pe,children:ke,tag:Ye},tt}(x,g,T,y,E);g=g||{},E1(f),i(g.model)&&function(te,ge){const pe=te.model&&te.model.prop||"value",ke=te.model&&te.model.event||"input";(ge.attrs||(ge.attrs={}))[pe]=ge.model.value;const Ye=ge.on||(ge.on={}),tt=Ye[ke],Ge=ge.model.callback;i(tt)?(n(tt)?tt.indexOf(Ge)===-1:tt!==Ge)&&(Ye[ke]=[Ge].concat(tt)):Ye[ke]=Ge}(f.options,g);const Y=function(te,ge,pe){const ke=ge.options.props;if(r(ke))return;const Ye={},{attrs:tt,props:Ge}=te;if(i(tt)||i(Ge))for(const Mt in ke){const Kt=w(Mt);Dr(Ye,Ge,Mt,Kt,!0)||Dr(Ye,tt,Mt,Kt,!1)}return Ye}(g,f);if(o(f.options.functional))return function(te,ge,pe,ke,Ye){const tt=te.options,Ge={},Mt=tt.props;if(i(Mt))for(const gn in Mt)Ge[gn]=T1(gn,Mt,ge||t);else i(pe.attrs)&&TE(Ge,pe.attrs),i(pe.props)&&TE(Ge,pe.props);const Kt=new m1(pe,Ge,Ye,ke,te),on=tt.render.call(null,Kt._c,Kt);if(on instanceof St)return gE(on,pe,Kt.parent,tt);if(n(on)){const gn=Wr(on)||[],ki=new Array(gn.length);for(let ar=0;ar<gn.length;ar++)ki[ar]=gE(gn[ar],pe,Kt.parent,tt);return ki}}(f,Y,g,T,y);const $=g.on;if(g.on=g.nativeOn,o(f.options.abstract)){const te=g.slot;g={},te&&(g.slot=te)}(function(te){const ge=te.hook||(te.hook={});for(let pe=0;pe<bE.length;pe++){const ke=bE[pe],Ye=ge[ke],tt=g1[ke];Ye===tt||Ye&&Ye._merged||(ge[ke]=Ye?ZM(tt,Ye):tt)}})(g);const ee=ch(f.options)||E;return new St(`vue-component-${f.cid}${ee?`-${ee}`:""}`,g,void 0,void 0,void 0,T,{Ctor:f,propsData:Y,listeners:$,tag:E,children:y},x)}function ZM(f,g){const T=(y,E)=>{f(y,E),g(y,E)};return T._merged=!0,T}let PM=J;const To=et.optionMergeStrategies;function Lu(f,g,T=!0){if(!g)return f;let y,E,N;const x=H?Reflect.ownKeys(g):Object.keys(g);for(let Y=0;Y<x.length;Y++)y=x[Y],y!=="__ob__"&&(E=f[y],N=g[y],T&&S(f,y)?E!==N&&u(E)&&u(N)&&Lu(E,N):Ut(f,y,N));return f}function yE(f,g,T){return T?function(){const y=a(g)?g.call(T,T):g,E=a(f)?f.call(T,T):f;return y?Lu(y,E):E}:g?f?function(){return Lu(a(g)?g.call(this,this):g,a(f)?f.call(this,this):f)}:g:f}function EE(f,g){const T=g?f?f.concat(g):n(g)?g:[g]:f;return T&&function(y){const E=[];for(let N=0;N<y.length;N++)E.indexOf(y[N])===-1&&E.push(y[N]);return E}(T)}function $M(f,g,T,y){const E=Object.create(f||null);return g?L(E,g):E}To.data=function(f,g,T){return T?yE(f,g,T):g&&typeof g!="function"?f:yE(f,g)},bt.forEach(f=>{To[f]=EE}),ft.forEach(function(f){To[f+"s"]=$M}),To.watch=function(f,g,T,y){if(f===I&&(f=void 0),g===I&&(g=void 0),!g)return Object.create(f||null);if(!f)return g;const E={};L(E,f);for(const N in g){let x=E[N];const Y=g[N];x&&!n(x)&&(x=[x]),E[N]=x?x.concat(Y):n(Y)?Y:[Y]}return E},To.props=To.methods=To.inject=To.computed=function(f,g,T,y){if(!f)return g;const E=Object.create(null);return L(E,f),g&&L(E,g),E},To.provide=function(f,g){return f?function(){const T=Object.create(null);return Lu(T,a(f)?f.call(this):f),g&&Lu(T,a(g)?g.call(this):g,!1),T}:g};const UM=function(f,g){return g===void 0?f:g};function tl(f,g,T){if(a(g)&&(g=g.options),function(x,Y){const $=x.props;if(!$)return;const ee={};let te,ge,pe;if(n($))for(te=$.length;te--;)ge=$[te],typeof ge=="string"&&(pe=Z(ge),ee[pe]={type:null});else if(u($))for(const ke in $)ge=$[ke],pe=Z(ke),ee[pe]=u(ge)?ge:{type:ge};x.props=ee}(g),function(x,Y){const $=x.inject;if(!$)return;const ee=x.inject={};if(n($))for(let te=0;te<$.length;te++)ee[$[te]]={from:$[te]};else if(u($))for(const te in $){const ge=$[te];ee[te]=u(ge)?L({from:te},ge):{from:ge}}}(g),function(x){const Y=x.directives;if(Y)for(const $ in Y){const ee=Y[$];a(ee)&&(Y[$]={bind:ee,update:ee})}}(g),!g._base&&(g.extends&&(f=tl(f,g.extends,T)),g.mixins))for(let x=0,Y=g.mixins.length;x<Y;x++)f=tl(f,g.mixins[x],T);const y={};let E;for(E in f)N(E);for(E in g)S(f,E)||N(E);function N(x){const Y=To[x]||UM;y[x]=Y(f[x],g[x],T,x)}return y}function uh(f,g,T,y){if(typeof T!="string")return;const E=f[g];if(S(E,T))return E[T];const N=Z(T);if(S(E,N))return E[N];const x=W(N);return S(E,x)?E[x]:E[T]||E[N]||E[x]}function T1(f,g,T,y){const E=g[f],N=!S(T,f);let x=T[f];const Y=DE(Boolean,E.type);if(Y>-1){if(N&&!S(E,"default"))x=!1;else if(x===""||x===w(f)){const $=DE(String,E.type);($<0||Y<$)&&(x=!0)}}if(x===void 0){x=function(ee,te,ge){if(!S(te,"default"))return;const pe=te.default;return ee&&ee.$options.propsData&&ee.$options.propsData[ge]===void 0&&ee._props[ge]!==void 0?ee._props[ge]:a(pe)&&b1(te.type)!=="Function"?pe.call(ee):pe}(y,E,f);const $=Lr;Ln(!0),be(x),Ln($)}return x}const zM=/^\s*function (\w+)/;function b1(f){const g=f&&f.toString().match(zM);return g?g[1]:""}function vE(f,g){return b1(f)===b1(g)}function DE(f,g){if(!n(g))return vE(g,f)?0:-1;for(let T=0,y=g.length;T<y;T++)if(vE(g[T],f))return T;return-1}const Zs={enumerable:!0,configurable:!0,get:J,set:J};function A1(f,g,T){Zs.get=function(){return this[g][T]},Zs.set=function(y){this[g][T]=y},Object.defineProperty(f,T,Zs)}function VM(f){const g=f.$options;if(g.props&&function(T,y){const E=T.$options.propsData||{},N=T._props=Me({}),x=T.$options._propKeys=[];!T.$parent||Ln(!1);for(const Y in y)x.push(Y),Je(N,Y,T1(Y,y,E,T),void 0,!0),Y in T||A1(T,"_props",Y);Ln(!0)}(f,g.props),function(T){const y=T.$options,E=y.setup;if(E){const N=T._setupContext=Fe(T);lt(T),Re();const x=Jr(E,null,[T._props||Me({}),N],T,"setup");if(Qe(),lt(),a(x))y.render=x;else if(l(x))if(T._setupState=x,x.__sfc){const Y=T._setupProxy={};for(const $ in x)$!=="__sfc"&&Ni(Y,x,$)}else for(const Y in x)nt(Y)||Ni(T,x,Y)}}(f),g.methods&&function(T,y){T.$options.props;for(const E in y)T[E]=typeof y[E]!="function"?J:z(y[E],T)}(f,g.methods),g.data)(function(T){let y=T.$options.data;y=T._data=a(y)?function($,ee){Re();try{return $.call(ee,ee)}catch(te){return sr(te,ee,"data()"),{}}finally{Qe()}}(y,T):y||{},u(y)||(y={});const E=Object.keys(y),N=T.$options.props;T.$options.methods;let x=E.length;for(;x--;){const $=E[x];N&&S(N,$)||nt($)||A1(T,"_data",$)}const Y=be(y);Y&&Y.vmCount++})(f);else{const T=be(f._data={});T&&T.vmCount++}g.computed&&function(T,y){const E=T._computedWatchers=Object.create(null),N=de();for(const x in y){const Y=y[x],$=a(Y)?Y:Y.get;N||(E[x]=new Xr(T,$||J,J,jM)),x in T||SE(T,x,Y)}}(f,g.computed),g.watch&&g.watch!==I&&function(T,y){for(const E in y){const N=y[E];if(n(N))for(let x=0;x<N.length;x++)y1(T,E,N[x]);else y1(T,E,N)}}(f,g.watch)}const jM={lazy:!0};function SE(f,g,T){const y=!de();a(T)?(Zs.get=y?wE(g):_E(T),Zs.set=J):(Zs.get=T.get?y&&T.cache!==!1?wE(g):_E(T.get):J,Zs.set=T.set||J),Object.defineProperty(f,g,Zs)}function wE(f){return function(){const g=this._computedWatchers&&this._computedWatchers[f];if(g)return g.dirty&&g.evaluate(),nn.target&&g.depend(),g.value}}function _E(f){return function(){return f.call(this,this)}}function y1(f,g,T,y){return u(T)&&(y=T,T=T.handler),typeof T=="string"&&(T=f[T]),f.$watch(g,T,y)}let GM=0;function E1(f){let g=f.options;if(f.super){const T=E1(f.super);if(T!==f.superOptions){f.superOptions=T;const y=function(E){let N;const x=E.options,Y=E.sealedOptions;for(const $ in x)x[$]!==Y[$]&&(N||(N={}),N[$]=x[$]);return N}(f);y&&L(f.extendOptions,y),g=f.options=tl(T,f.extendOptions),g.name&&(g.components[g.name]=f)}}return g}function zn(f){this._init(f)}function qM(f){f.cid=0;let g=1;f.extend=function(T){T=T||{};const y=this,E=y.cid,N=T._Ctor||(T._Ctor={});if(N[E])return N[E];const x=ch(T)||ch(y.options),Y=function($){this._init($)};return(Y.prototype=Object.create(y.prototype)).constructor=Y,Y.cid=g++,Y.options=tl(y.options,T),Y.super=y,Y.options.props&&function($){const ee=$.options.props;for(const te in ee)A1($.prototype,"_props",te)}(Y),Y.options.computed&&function($){const ee=$.options.computed;for(const te in ee)SE($.prototype,te,ee[te])}(Y),Y.extend=y.extend,Y.mixin=y.mixin,Y.use=y.use,ft.forEach(function($){Y[$]=y[$]}),x&&(Y.options.components[x]=Y),Y.superOptions=y.options,Y.extendOptions=T,Y.sealedOptions=L({},Y.options),N[E]=Y,Y}}function CE(f){return f&&(ch(f.Ctor.options)||f.tag)}function dh(f,g){return n(f)?f.indexOf(g)>-1:typeof f=="string"?f.split(",").indexOf(g)>-1:(T=f,c.call(T)==="[object RegExp]"&&f.test(g));var T}function NE(f,g){const{cache:T,keys:y,_vnode:E,$vnode:N}=f;for(const x in T){const Y=T[x];if(Y){const $=Y.name;$&&!g($)&&v1(T,x,y,E)}}N.componentOptions.children=void 0}function v1(f,g,T,y){const E=f[g];!E||y&&E.tag===y.tag||E.componentInstance.$destroy(),f[g]=null,D(T,g)}(function(f){f.prototype._init=function(g){const T=this;T._uid=GM++,T._isVue=!0,T.__v_skip=!0,T._scope=new Hr(!0),T._scope.parent=void 0,T._scope._vm=!0,g&&g._isComponent?function(y,E){const N=y.$options=Object.create(y.constructor.options),x=E._parentVnode;N.parent=E.parent,N._parentVnode=x;const Y=x.componentOptions;N.propsData=Y.propsData,N._parentListeners=Y.listeners,N._renderChildren=Y.children,N._componentTag=Y.tag,E.render&&(N.render=E.render,N.staticRenderFns=E.staticRenderFns)}(T,g):T.$options=tl(E1(T.constructor),g||{},T),T._renderProxy=T,T._self=T,function(y){const E=y.$options;let N=E.parent;if(N&&!E.abstract){for(;N.$options.abstract&&N.$parent;)N=N.$parent;N.$children.push(y)}y.$parent=N,y.$root=N?N.$root:y,y.$children=[],y.$refs={},y._provided=N?N._provided:Object.create(null),y._watcher=null,y._inactive=null,y._directInactive=!1,y._isMounted=!1,y._isDestroyed=!1,y._isBeingDestroyed=!1}(T),function(y){y._events=Object.create(null),y._hasHookEvent=!1;const E=y.$options._parentListeners;E&&tc(y,E)}(T),function(y){y._vnode=null,y._staticTrees=null;const E=y.$options,N=y.$vnode=E._parentVnode,x=N&&N.context;y.$slots=Rn(E._renderChildren,x),y.$scopedSlots=N?ir(y.$parent,N.data.scopedSlots,y.$slots):t,y._c=($,ee,te,ge)=>Wa(y,$,ee,te,ge,!1),y.$createElement=($,ee,te,ge)=>Wa(y,$,ee,te,ge,!0);const Y=N&&N.data;Je(y,"$attrs",Y&&Y.attrs||t,null,!0),Je(y,"$listeners",E._parentListeners||t,null,!0)}(T),Ki(T,"beforeCreate",void 0,!1),function(y){const E=mE(y.$options.inject,y);E&&(Ln(!1),Object.keys(E).forEach(N=>{Je(y,N,E[N])}),Ln(!0))}(T),VM(T),function(y){const E=y.$options.provide;if(E){const N=a(E)?E.call(y):E;if(!l(N))return;const x=ye(y),Y=H?Reflect.ownKeys(N):Object.keys(N);for(let $=0;$<Y.length;$++){const ee=Y[$];Object.defineProperty(x,ee,Object.getOwnPropertyDescriptor(N,ee))}}}(T),Ki(T,"created"),T.$options.el&&T.$mount(T.$options.el)}})(zn),function(f){const g={get:function(){return this._data}},T={get:function(){return this._props}};Object.defineProperty(f.prototype,"$data",g),Object.defineProperty(f.prototype,"$props",T),f.prototype.$set=Ut,f.prototype.$delete=zt,f.prototype.$watch=function(y,E,N){const x=this;if(u(E))return y1(x,y,E,N);(N=N||{}).user=!0;const Y=new Xr(x,y,E,N);if(N.immediate){const $=`callback for immediate watcher "${Y.expression}"`;Re(),Jr(E,x,[Y.value],x,$),Qe()}return function(){Y.teardown()}}}(zn),function(f){const g=/^hook:/;f.prototype.$on=function(T,y){const E=this;if(n(T))for(let N=0,x=T.length;N<x;N++)E.$on(T[N],y);else(E._events[T]||(E._events[T]=[])).push(y),g.test(T)&&(E._hasHookEvent=!0);return E},f.prototype.$once=function(T,y){const E=this;function N(){E.$off(T,N),y.apply(E,arguments)}return N.fn=y,E.$on(T,N),E},f.prototype.$off=function(T,y){const E=this;if(!arguments.length)return E._events=Object.create(null),E;if(n(T)){for(let $=0,ee=T.length;$<ee;$++)E.$off(T[$],y);return E}const N=E._events[T];if(!N)return E;if(!y)return E._events[T]=null,E;let x,Y=N.length;for(;Y--;)if(x=N[Y],x===y||x.fn===y){N.splice(Y,1);break}return E},f.prototype.$emit=function(T){const y=this;let E=y._events[T];if(E){E=E.length>1?V(E):E;const N=V(arguments,1),x=`event handler for "${T}"`;for(let Y=0,$=E.length;Y<$;Y++)Jr(E[Y],y,N,y,x)}return y}}(zn),function(f){f.prototype._update=function(g,T){const y=this,E=y.$el,N=y._vnode,x=Iu(y);y._vnode=g,y.$el=N?y.__patch__(N,g):y.__patch__(y.$el,g,T,!1),x(),E&&(E.__vue__=null),y.$el&&(y.$el.__vue__=y);let Y=y;for(;Y&&Y.$vnode&&Y.$parent&&Y.$vnode===Y.$parent._vnode;)Y.$parent.$el=Y.$el,Y=Y.$parent},f.prototype.$forceUpdate=function(){const g=this;g._watcher&&g._watcher.update()},f.prototype.$destroy=function(){const g=this;if(g._isBeingDestroyed)return;Ki(g,"beforeDestroy"),g._isBeingDestroyed=!0;const T=g.$parent;!T||T._isBeingDestroyed||g.$options.abstract||D(T.$children,g),g._scope.stop(),g._data.__ob__&&g._data.__ob__.vmCount--,g._isDestroyed=!0,g.__patch__(g._vnode,null),Ki(g,"destroyed"),g.$off(),g.$el&&(g.$el.__vue__=null),g.$vnode&&(g.$vnode.parent=null)}}(zn),function(f){Ls(f.prototype),f.prototype.$nextTick=function(g){return Xa(g,this)},f.prototype._render=function(){const g=this,{render:T,_parentVnode:y}=g.$options;y&&g._isMounted&&(g.$scopedSlots=ir(g.$parent,y.data.scopedSlots,g.$slots,g.$scopedSlots),g._slotsProxy&&Yt(g._slotsProxy,g.$scopedSlots)),g.$vnode=y;const E=Ie,N=or;let x;try{lt(g),or=g,x=T.call(g._renderProxy,g.$createElement)}catch(Y){sr(Y,g,"render"),x=g._vnode}finally{or=N,lt(E)}return n(x)&&x.length===1&&(x=x[0]),x instanceof St||(x=Q()),x.parent=y,x}}(zn);const FE=[String,RegExp,Array];var WM={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:FE,exclude:FE,max:[String,Number]},methods:{cacheVNode(){const{cache:f,keys:g,vnodeToCache:T,keyToCache:y}=this;if(T){const{tag:E,componentInstance:N,componentOptions:x}=T;f[y]={name:CE(x),tag:E,componentInstance:N},g.push(y),this.max&&g.length>parseInt(this.max)&&v1(f,g[0],g,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const f in this.cache)v1(this.cache,f,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",f=>{NE(this,g=>dh(f,g))}),this.$watch("exclude",f=>{NE(this,g=>!dh(f,g))})},updated(){this.cacheVNode()},render(){const f=this.$slots.default,g=qa(f),T=g&&g.componentOptions;if(T){const y=CE(T),{include:E,exclude:N}=this;if(E&&(!y||!dh(E,y))||N&&y&&dh(N,y))return g;const{cache:x,keys:Y}=this,$=g.key==null?T.Ctor.cid+(T.tag?`::${T.tag}`:""):g.key;x[$]?(g.componentInstance=x[$].componentInstance,D(Y,$),Y.push($)):(this.vnodeToCache=g,this.keyToCache=$),g.data.keepAlive=!0}return g||f&&f[0]}}};(function(f){Object.defineProperty(f,"config",{get:()=>et}),f.util={warn:PM,extend:L,mergeOptions:tl,defineReactive:Je},f.set=Ut,f.delete=zt,f.nextTick=Xa,f.observable=g=>(be(g),g),f.options=Object.create(null),ft.forEach(g=>{f.options[g+"s"]=Object.create(null)}),f.options._base=f,L(f.options.components,WM),function(g){g.use=function(T){const y=this._installedPlugins||(this._installedPlugins=[]);if(y.indexOf(T)>-1)return this;const E=V(arguments,1);return E.unshift(this),a(T.install)?T.install.apply(T,E):a(T)&&T.apply(null,E),y.push(T),this}}(f),function(g){g.mixin=function(T){return this.options=tl(this.options,T),this}}(f),qM(f),function(g){ft.forEach(T=>{g[T]=function(y,E){return E?(T==="component"&&u(E)&&(E.name=E.name||y,E=this.options._base.extend(E)),T==="directive"&&a(E)&&(E={bind:E,update:E}),this.options[T+"s"][y]=E,E):this.options[T+"s"][y]}})}(f)})(zn),Object.defineProperty(zn.prototype,"$isServer",{get:de}),Object.defineProperty(zn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(zn,"FunctionalRenderContext",{value:m1}),zn.version=en;const KM=A("style,class"),QM=A("input,textarea,option,select,progress"),OE=A("contenteditable,draggable,spellcheck"),JM=A("events,caret,typing,plaintext-only"),XM=(f,g)=>hh(g)||g==="false"?"false":f==="contenteditable"&&JM(g)?g:"true",e4=A("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),D1="http://www.w3.org/1999/xlink",S1=f=>f.charAt(5)===":"&&f.slice(0,5)==="xlink",xE=f=>S1(f)?f.slice(6,f.length):"",hh=f=>f==null||f===!1;function t4(f){let g=f.data,T=f,y=f;for(;i(y.componentInstance);)y=y.componentInstance._vnode,y&&y.data&&(g=kE(y.data,g));for(;i(T=T.parent);)T&&T.data&&(g=kE(g,T.data));return function(E,N){return i(E)||i(N)?w1(E,_1(N)):""}(g.staticClass,g.class)}function kE(f,g){return{staticClass:w1(f.staticClass,g.staticClass),class:i(f.class)?[f.class,g.class]:g.class}}function w1(f,g){return f?g?f+" "+g:f:g||""}function _1(f){return Array.isArray(f)?function(g){let T,y="";for(let E=0,N=g.length;E<N;E++)i(T=_1(g[E]))&&T!==""&&(y&&(y+=" "),y+=T);return y}(f):l(f)?function(g){let T="";for(const y in g)g[y]&&(T&&(T+=" "),T+=y);return T}(f):typeof f=="string"?f:""}const n4={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},r4=A("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),C1=A("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),RE=f=>r4(f)||C1(f),ph=Object.create(null),N1=A("text,number,password,search,email,tel,url");var i4=Object.freeze({__proto__:null,createElement:function(f,g){const T=document.createElement(f);return f!=="select"||g.data&&g.data.attrs&&g.data.attrs.multiple!==void 0&&T.setAttribute("multiple","multiple"),T},createElementNS:function(f,g){return document.createElementNS(n4[f],g)},createTextNode:function(f){return document.createTextNode(f)},createComment:function(f){return document.createComment(f)},insertBefore:function(f,g,T){f.insertBefore(g,T)},removeChild:function(f,g){f.removeChild(g)},appendChild:function(f,g){f.appendChild(g)},parentNode:function(f){return f.parentNode},nextSibling:function(f){return f.nextSibling},tagName:function(f){return f.tagName},setTextContent:function(f,g){f.textContent=g},setStyleScope:function(f,g){f.setAttribute(g,"")}}),o4={create(f,g){rc(g)},update(f,g){f.data.ref!==g.data.ref&&(rc(f,!0),rc(g))},destroy(f){rc(f,!0)}};function rc(f,g){const T=f.data.ref;if(!i(T))return;const y=f.context,E=f.componentInstance||f.elm,N=g?null:E,x=g?void 0:E;if(a(T))return void Jr(T,y,[N],y,"template ref function");const Y=f.data.refInFor,$=typeof T=="string"||typeof T=="number",ee=kn(T),te=y.$refs;if($||ee){if(Y){const ge=$?te[T]:T.value;g?n(ge)&&D(ge,E):n(ge)?ge.includes(E)||ge.push(E):$?(te[T]=[E],ME(y,T,te[T])):T.value=[E]}else if($){if(g&&te[T]!==E)return;te[T]=x,ME(y,T,N)}else if(ee){if(g&&T.value!==E)return;T.value=N}}}function ME({_setupState:f},g,T){f&&S(f,g)&&(kn(f[g])?f[g].value=T:f[g]=T)}const Ps=new St("",{},[]),Yu=["create","activate","update","remove","destroy"];function nl(f,g){return f.key===g.key&&f.asyncFactory===g.asyncFactory&&(f.tag===g.tag&&f.isComment===g.isComment&&i(f.data)===i(g.data)&&function(T,y){if(T.tag!=="input")return!0;let E;const N=i(E=T.data)&&i(E=E.attrs)&&E.type,x=i(E=y.data)&&i(E=E.attrs)&&E.type;return N===x||N1(N)&&N1(x)}(f,g)||o(f.isAsyncPlaceholder)&&r(g.asyncFactory.error))}function s4(f,g,T){let y,E;const N={};for(y=g;y<=T;++y)E=f[y].key,i(E)&&(N[E]=y);return N}var a4={create:F1,update:F1,destroy:function(f){F1(f,Ps)}};function F1(f,g){(f.data.directives||g.data.directives)&&function(T,y){const E=T===Ps,N=y===Ps,x=BE(T.data.directives,T.context),Y=BE(y.data.directives,y.context),$=[],ee=[];let te,ge,pe;for(te in Y)ge=x[te],pe=Y[te],ge?(pe.oldValue=ge.value,pe.oldArg=ge.arg,Hu(pe,"update",y,T),pe.def&&pe.def.componentUpdated&&ee.push(pe)):(Hu(pe,"bind",y,T),pe.def&&pe.def.inserted&&$.push(pe));if($.length){const ke=()=>{for(let Ye=0;Ye<$.length;Ye++)Hu($[Ye],"inserted",y,T)};E?Gt(y,"insert",ke):ke()}if(ee.length&&Gt(y,"postpatch",()=>{for(let ke=0;ke<ee.length;ke++)Hu(ee[ke],"componentUpdated",y,T)}),!E)for(te in x)Y[te]||Hu(x[te],"unbind",T,T,N)}(f,g)}const l4=Object.create(null);function BE(f,g){const T=Object.create(null);if(!f)return T;let y,E;for(y=0;y<f.length;y++){if(E=f[y],E.modifiers||(E.modifiers=l4),T[c4(E)]=E,g._setupState&&g._setupState.__sfc){const N=E.def||uh(g,"_setupState","v-"+E.name);E.def=typeof N=="function"?{bind:N,update:N}:N}E.def=E.def||uh(g.$options,"directives",E.name)}return T}function c4(f){return f.rawName||`${f.name}.${Object.keys(f.modifiers||{}).join(".")}`}function Hu(f,g,T,y,E){const N=f.def&&f.def[g];if(N)try{N(T.elm,f,T,y,E)}catch(x){sr(x,T.context,`directive ${f.name} ${g} hook`)}}var u4=[o4,a4];function IE(f,g){const T=g.componentOptions;if(i(T)&&T.Ctor.options.inheritAttrs===!1||r(f.data.attrs)&&r(g.data.attrs))return;let y,E,N;const x=g.elm,Y=f.data.attrs||{};let $=g.data.attrs||{};for(y in(i($.__ob__)||o($._v_attr_proxy))&&($=g.data.attrs=L({},$)),$)E=$[y],N=Y[y],N!==E&&LE(x,y,E,g.data.pre);for(y in(it||$t)&&$.value!==Y.value&&LE(x,"value",$.value),Y)r($[y])&&(S1(y)?x.removeAttributeNS(D1,xE(y)):OE(y)||x.removeAttribute(y))}function LE(f,g,T,y){y||f.tagName.indexOf("-")>-1?YE(f,g,T):e4(g)?hh(T)?f.removeAttribute(g):(T=g==="allowfullscreen"&&f.tagName==="EMBED"?"true":g,f.setAttribute(g,T)):OE(g)?f.setAttribute(g,XM(g,T)):S1(g)?hh(T)?f.removeAttributeNS(D1,xE(g)):f.setAttributeNS(D1,g,T):YE(f,g,T)}function YE(f,g,T){if(hh(T))f.removeAttribute(g);else{if(it&&!Bt&&f.tagName==="TEXTAREA"&&g==="placeholder"&&T!==""&&!f.__ieph){const y=E=>{E.stopImmediatePropagation(),f.removeEventListener("input",y)};f.addEventListener("input",y),f.__ieph=!0}f.setAttribute(g,T)}}var d4={create:IE,update:IE};function HE(f,g){const T=g.elm,y=g.data,E=f.data;if(r(y.staticClass)&&r(y.class)&&(r(E)||r(E.staticClass)&&r(E.class)))return;let N=t4(g);const x=T._transitionClasses;i(x)&&(N=w1(N,_1(x))),N!==T._prevClass&&(T.setAttribute("class",N),T._prevClass=N)}var h4={create:HE,update:HE};const O1="__r",x1="__c";let Zu;function p4(f,g,T){const y=Zu;return function E(){g.apply(null,arguments)!==null&&ZE(f,E,T,y)}}const f4=Mu&&!(Ue&&Number(Ue[1])<=53);function m4(f,g,T,y){if(f4){const E=fE,N=g;g=N._wrapper=function(x){if(x.target===x.currentTarget||x.timeStamp>=E||x.timeStamp<=0||x.target.ownerDocument!==document)return N.apply(this,arguments)}}Zu.addEventListener(f,g,M?{capture:T,passive:y}:T)}function ZE(f,g,T,y){(y||Zu).removeEventListener(f,g._wrapper||g,T)}function k1(f,g){if(r(f.data.on)&&r(g.data.on))return;const T=g.data.on||{},y=f.data.on||{};Zu=g.elm||f.elm,function(E){if(i(E[O1])){const N=it?"change":"input";E[N]=[].concat(E[O1],E[N]||[]),delete E[O1]}i(E[x1])&&(E.change=[].concat(E[x1],E.change||[]),delete E[x1])}(T),It(T,y,m4,ZE,p4,g.context),Zu=void 0}var g4={create:k1,update:k1,destroy:f=>k1(f,Ps)};let fh;function PE(f,g){if(r(f.data.domProps)&&r(g.data.domProps))return;let T,y;const E=g.elm,N=f.data.domProps||{};let x=g.data.domProps||{};for(T in(i(x.__ob__)||o(x._v_attr_proxy))&&(x=g.data.domProps=L({},x)),N)T in x||(E[T]="");for(T in x){if(y=x[T],T==="textContent"||T==="innerHTML"){if(g.children&&(g.children.length=0),y===N[T])continue;E.childNodes.length===1&&E.removeChild(E.childNodes[0])}if(T==="value"&&E.tagName!=="PROGRESS"){E._value=y;const Y=r(y)?"":String(y);T4(E,Y)&&(E.value=Y)}else if(T==="innerHTML"&&C1(E.tagName)&&r(E.innerHTML)){fh=fh||document.createElement("div"),fh.innerHTML=`<svg>${y}</svg>`;const Y=fh.firstChild;for(;E.firstChild;)E.removeChild(E.firstChild);for(;Y.firstChild;)E.appendChild(Y.firstChild)}else if(y!==N[T])try{E[T]=y}catch{}}}function T4(f,g){return!f.composing&&(f.tagName==="OPTION"||function(T,y){let E=!0;try{E=document.activeElement!==T}catch{}return E&&T.value!==y}(f,g)||function(T,y){const E=T.value,N=T._vModifiers;if(i(N)){if(N.number)return b(E)!==b(y);if(N.trim)return E.trim()!==y.trim()}return E!==y}(f,g))}var b4={create:PE,update:PE};const A4=O(function(f){const g={},T=/:(.+)/;return f.split(/;(?![^(]*\))/g).forEach(function(y){if(y){const E=y.split(T);E.length>1&&(g[E[0].trim()]=E[1].trim())}}),g});function R1(f){const g=$E(f.style);return f.staticStyle?L(f.staticStyle,g):g}function $E(f){return Array.isArray(f)?se(f):typeof f=="string"?A4(f):f}const y4=/^--/,UE=/\s*!important$/,zE=(f,g,T)=>{if(y4.test(g))f.style.setProperty(g,T);else if(UE.test(T))f.style.setProperty(w(g),T.replace(UE,""),"important");else{const y=E4(g);if(Array.isArray(T))for(let E=0,N=T.length;E<N;E++)f.style[y]=T[E];else f.style[y]=T}},VE=["Webkit","Moz","ms"];let mh;const E4=O(function(f){if(mh=mh||document.createElement("div").style,(f=Z(f))!=="filter"&&f in mh)return f;const g=f.charAt(0).toUpperCase()+f.slice(1);for(let T=0;T<VE.length;T++){const y=VE[T]+g;if(y in mh)return y}});function jE(f,g){const T=g.data,y=f.data;if(r(T.staticStyle)&&r(T.style)&&r(y.staticStyle)&&r(y.style))return;let E,N;const x=g.elm,Y=y.staticStyle,$=y.normalizedStyle||y.style||{},ee=Y||$,te=$E(g.data.style)||{};g.data.normalizedStyle=i(te.__ob__)?L({},te):te;const ge=function(pe,ke){const Ye={};let tt;{let Mt=pe;for(;Mt.componentInstance;)Mt=Mt.componentInstance._vnode,Mt&&Mt.data&&(tt=R1(Mt.data))&&L(Ye,tt)}(tt=R1(pe.data))&&L(Ye,tt);let Ge=pe;for(;Ge=Ge.parent;)Ge.data&&(tt=R1(Ge.data))&&L(Ye,tt);return Ye}(g);for(N in ee)r(ge[N])&&zE(x,N,"");for(N in ge)E=ge[N],zE(x,N,E??"")}var v4={create:jE,update:jE};const GE=/\s+/;function qE(f,g){if(g&&(g=g.trim()))if(f.classList)g.indexOf(" ")>-1?g.split(GE).forEach(T=>f.classList.add(T)):f.classList.add(g);else{const T=` ${f.getAttribute("class")||""} `;T.indexOf(" "+g+" ")<0&&f.setAttribute("class",(T+g).trim())}}function WE(f,g){if(g&&(g=g.trim()))if(f.classList)g.indexOf(" ")>-1?g.split(GE).forEach(T=>f.classList.remove(T)):f.classList.remove(g),f.classList.length||f.removeAttribute("class");else{let T=` ${f.getAttribute("class")||""} `;const y=" "+g+" ";for(;T.indexOf(y)>=0;)T=T.replace(y," ");T=T.trim(),T?f.setAttribute("class",T):f.removeAttribute("class")}}function KE(f){if(f){if(typeof f=="object"){const g={};return f.css!==!1&&L(g,QE(f.name||"v")),L(g,f),g}return typeof f=="string"?QE(f):void 0}}const QE=O(f=>({enterClass:`${f}-enter`,enterToClass:`${f}-enter-to`,enterActiveClass:`${f}-enter-active`,leaveClass:`${f}-leave`,leaveToClass:`${f}-leave-to`,leaveActiveClass:`${f}-leave-active`})),JE=_e&&!Bt,ic="transition",M1="animation";let gh="transition",Th="transitionend",B1="animation",XE="animationend";JE&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(gh="WebkitTransition",Th="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(B1="WebkitAnimation",XE="webkitAnimationEnd"));const ev=_e?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:f=>f();function tv(f){ev(()=>{ev(f)})}function rl(f,g){const T=f._transitionClasses||(f._transitionClasses=[]);T.indexOf(g)<0&&(T.push(g),qE(f,g))}function Wo(f,g){f._transitionClasses&&D(f._transitionClasses,g),WE(f,g)}function nv(f,g,T){const{type:y,timeout:E,propCount:N}=rv(f,g);if(!y)return T();const x=y===ic?Th:XE;let Y=0;const $=()=>{f.removeEventListener(x,ee),T()},ee=te=>{te.target===f&&++Y>=N&&$()};setTimeout(()=>{Y<N&&$()},E+1),f.addEventListener(x,ee)}const D4=/\b(transform|all)(,|$)/;function rv(f,g){const T=window.getComputedStyle(f),y=(T[gh+"Delay"]||"").split(", "),E=(T[gh+"Duration"]||"").split(", "),N=iv(y,E),x=(T[B1+"Delay"]||"").split(", "),Y=(T[B1+"Duration"]||"").split(", "),$=iv(x,Y);let ee,te=0,ge=0;return g===ic?N>0&&(ee=ic,te=N,ge=E.length):g===M1?$>0&&(ee=M1,te=$,ge=Y.length):(te=Math.max(N,$),ee=te>0?N>$?ic:M1:null,ge=ee?ee===ic?E.length:Y.length:0),{type:ee,timeout:te,propCount:ge,hasTransform:ee===ic&&D4.test(T[gh+"Property"])}}function iv(f,g){for(;f.length<g.length;)f=f.concat(f);return Math.max.apply(null,g.map((T,y)=>ov(T)+ov(f[y])))}function ov(f){return 1e3*Number(f.slice(0,-1).replace(",","."))}function I1(f,g){const T=f.elm;i(T._leaveCb)&&(T._leaveCb.cancelled=!0,T._leaveCb());const y=KE(f.data.transition);if(r(y)||i(T._enterCb)||T.nodeType!==1)return;const{css:E,type:N,enterClass:x,enterToClass:Y,enterActiveClass:$,appearClass:ee,appearToClass:te,appearActiveClass:ge,beforeEnter:pe,enter:ke,afterEnter:Ye,enterCancelled:tt,beforeAppear:Ge,appear:Mt,afterAppear:Kt,appearCancelled:on,duration:gn}=y;let ki=xi,ar=xi.$vnode;for(;ar&&ar.parent;)ki=ar.context,ar=ar.parent;const re=!ki._isMounted||!f.isRootInsert;if(re&&!Mt&&Mt!=="")return;const le=re&&ee?ee:x,Ve=re&&ge?ge:$,mt=re&&te?te:Y,Qt=re&&Ge||pe,An=re&&a(Mt)?Mt:ke,sn=re&&Kt||Ye,tn=re&&on||tt,Vn=b(l(gn)?gn.enter:gn),yn=E!==!1&&!Bt,Jt=L1(An),Jn=T._enterCb=De(()=>{yn&&(Wo(T,mt),Wo(T,Ve)),Jn.cancelled?(yn&&Wo(T,le),tn&&tn(T)):sn&&sn(T),T._enterCb=null});f.data.show||Gt(f,"insert",()=>{const an=T.parentNode,Zt=an&&an._pending&&an._pending[f.key];Zt&&Zt.tag===f.tag&&Zt.elm._leaveCb&&Zt.elm._leaveCb(),An&&An(T,Jn)}),Qt&&Qt(T),yn&&(rl(T,le),rl(T,Ve),tv(()=>{Wo(T,le),Jn.cancelled||(rl(T,mt),Jt||(av(Vn)?setTimeout(Jn,Vn):nv(T,N,Jn)))})),f.data.show&&(g&&g(),An&&An(T,Jn)),yn||Jt||Jn()}function sv(f,g){const T=f.elm;i(T._enterCb)&&(T._enterCb.cancelled=!0,T._enterCb());const y=KE(f.data.transition);if(r(y)||T.nodeType!==1)return g();if(i(T._leaveCb))return;const{css:E,type:N,leaveClass:x,leaveToClass:Y,leaveActiveClass:$,beforeLeave:ee,leave:te,afterLeave:ge,leaveCancelled:pe,delayLeave:ke,duration:Ye}=y,tt=E!==!1&&!Bt,Ge=L1(te),Mt=b(l(Ye)?Ye.leave:Ye),Kt=T._leaveCb=De(()=>{T.parentNode&&T.parentNode._pending&&(T.parentNode._pending[f.key]=null),tt&&(Wo(T,Y),Wo(T,$)),Kt.cancelled?(tt&&Wo(T,x),pe&&pe(T)):(g(),ge&&ge(T)),T._leaveCb=null});function on(){Kt.cancelled||(!f.data.show&&T.parentNode&&((T.parentNode._pending||(T.parentNode._pending={}))[f.key]=f),ee&&ee(T),tt&&(rl(T,x),rl(T,$),tv(()=>{Wo(T,x),Kt.cancelled||(rl(T,Y),Ge||(av(Mt)?setTimeout(Kt,Mt):nv(T,N,Kt)))})),te&&te(T,Kt),tt||Ge||Kt())}ke?ke(on):on()}function av(f){return typeof f=="number"&&!isNaN(f)}function L1(f){if(r(f))return!1;const g=f.fns;return i(g)?L1(Array.isArray(g)?g[0]:g):(f._length||f.length)>1}function lv(f,g){g.data.show!==!0&&I1(g)}const S4=function(f){let g,T;const y={},{modules:E,nodeOps:N}=f;for(g=0;g<Yu.length;++g)for(y[Yu[g]]=[],T=0;T<E.length;++T)i(E[T][Yu[g]])&&y[Yu[g]].push(E[T][Yu[g]]);function x(re){const le=N.parentNode(re);i(le)&&N.removeChild(le,re)}function Y(re,le,Ve,mt,Qt,An,sn){if(i(re.elm)&&i(An)&&(re=An[sn]=Ne(re)),re.isRootInsert=!Qt,function(Jt,Jn,an,Zt){let Wn=Jt.data;if(i(Wn)){const P1=i(Jt.componentInstance)&&Wn.keepAlive;if(i(Wn=Wn.hook)&&i(Wn=Wn.init)&&Wn(Jt,!1),i(Jt.componentInstance))return $(Jt,Jn),ee(an,Jt.elm,Zt),o(P1)&&function(oc,sc,ac,Ah){let Sr,lr=oc;for(;lr.componentInstance;)if(lr=lr.componentInstance._vnode,i(Sr=lr.data)&&i(Sr=Sr.transition)){for(Sr=0;Sr<y.activate.length;++Sr)y.activate[Sr](Ps,lr);sc.push(lr);break}ee(ac,oc.elm,Ah)}(Jt,Jn,an,Zt),!0}}(re,le,Ve,mt))return;const tn=re.data,Vn=re.children,yn=re.tag;i(yn)?(re.elm=re.ns?N.createElementNS(re.ns,yn):N.createElement(yn,re),ke(re),te(re,Vn,le),i(tn)&&pe(re,le),ee(Ve,re.elm,mt)):o(re.isComment)?(re.elm=N.createComment(re.text),ee(Ve,re.elm,mt)):(re.elm=N.createTextNode(re.text),ee(Ve,re.elm,mt))}function $(re,le){i(re.data.pendingInsert)&&(le.push.apply(le,re.data.pendingInsert),re.data.pendingInsert=null),re.elm=re.componentInstance.$el,ge(re)?(pe(re,le),ke(re)):(rc(re),le.push(re))}function ee(re,le,Ve){i(re)&&(i(Ve)?N.parentNode(Ve)===re&&N.insertBefore(re,le,Ve):N.appendChild(re,le))}function te(re,le,Ve){if(n(le))for(let mt=0;mt<le.length;++mt)Y(le[mt],Ve,re.elm,null,!0,le,mt);else s(re.text)&&N.appendChild(re.elm,N.createTextNode(String(re.text)))}function ge(re){for(;re.componentInstance;)re=re.componentInstance._vnode;return i(re.tag)}function pe(re,le){for(let Ve=0;Ve<y.create.length;++Ve)y.create[Ve](Ps,re);g=re.data.hook,i(g)&&(i(g.create)&&g.create(Ps,re),i(g.insert)&&le.push(re))}function ke(re){let le;if(i(le=re.fnScopeId))N.setStyleScope(re.elm,le);else{let Ve=re;for(;Ve;)i(le=Ve.context)&&i(le=le.$options._scopeId)&&N.setStyleScope(re.elm,le),Ve=Ve.parent}i(le=xi)&&le!==re.context&&le!==re.fnContext&&i(le=le.$options._scopeId)&&N.setStyleScope(re.elm,le)}function Ye(re,le,Ve,mt,Qt,An){for(;mt<=Qt;++mt)Y(Ve[mt],An,re,le,!1,Ve,mt)}function tt(re){let le,Ve;const mt=re.data;if(i(mt))for(i(le=mt.hook)&&i(le=le.destroy)&&le(re),le=0;le<y.destroy.length;++le)y.destroy[le](re);if(i(le=re.children))for(Ve=0;Ve<re.children.length;++Ve)tt(re.children[Ve])}function Ge(re,le,Ve){for(;le<=Ve;++le){const mt=re[le];i(mt)&&(i(mt.tag)?(Mt(mt),tt(mt)):x(mt.elm))}}function Mt(re,le){if(i(le)||i(re.data)){let Ve;const mt=y.remove.length+1;for(i(le)?le.listeners+=mt:le=function(Qt,An){function sn(){--sn.listeners==0&&x(Qt)}return sn.listeners=An,sn}(re.elm,mt),i(Ve=re.componentInstance)&&i(Ve=Ve._vnode)&&i(Ve.data)&&Mt(Ve,le),Ve=0;Ve<y.remove.length;++Ve)y.remove[Ve](re,le);i(Ve=re.data.hook)&&i(Ve=Ve.remove)?Ve(re,le):le()}else x(re.elm)}function Kt(re,le,Ve,mt){for(let Qt=Ve;Qt<mt;Qt++){const An=le[Qt];if(i(An)&&nl(re,An))return Qt}}function on(re,le,Ve,mt,Qt,An){if(re===le)return;i(le.elm)&&i(mt)&&(le=mt[Qt]=Ne(le));const sn=le.elm=re.elm;if(o(re.isAsyncPlaceholder))return void(i(le.asyncFactory.resolved)?ar(re.elm,le,Ve):le.isAsyncPlaceholder=!0);if(o(le.isStatic)&&o(re.isStatic)&&le.key===re.key&&(o(le.isCloned)||o(le.isOnce)))return void(le.componentInstance=re.componentInstance);let tn;const Vn=le.data;i(Vn)&&i(tn=Vn.hook)&&i(tn=tn.prepatch)&&tn(re,le);const yn=re.children,Jt=le.children;if(i(Vn)&&ge(le)){for(tn=0;tn<y.update.length;++tn)y.update[tn](re,le);i(tn=Vn.hook)&&i(tn=tn.update)&&tn(re,le)}r(le.text)?i(yn)&&i(Jt)?yn!==Jt&&function(Jn,an,Zt,Wn,P1){let oc,sc,ac,Ah,Sr=0,lr=0,Ko=an.length-1,Ti=an[0],bo=an[Ko],Ao=Zt.length-1,ei=Zt[0],lc=Zt[Ao];const $1=!P1;for(;Sr<=Ko&&lr<=Ao;)r(Ti)?Ti=an[++Sr]:r(bo)?bo=an[--Ko]:nl(Ti,ei)?(on(Ti,ei,Wn,Zt,lr),Ti=an[++Sr],ei=Zt[++lr]):nl(bo,lc)?(on(bo,lc,Wn,Zt,Ao),bo=an[--Ko],lc=Zt[--Ao]):nl(Ti,lc)?(on(Ti,lc,Wn,Zt,Ao),$1&&N.insertBefore(Jn,Ti.elm,N.nextSibling(bo.elm)),Ti=an[++Sr],lc=Zt[--Ao]):nl(bo,ei)?(on(bo,ei,Wn,Zt,lr),$1&&N.insertBefore(Jn,bo.elm,Ti.elm),bo=an[--Ko],ei=Zt[++lr]):(r(oc)&&(oc=s4(an,Sr,Ko)),sc=i(ei.key)?oc[ei.key]:Kt(ei,an,Sr,Ko),r(sc)?Y(ei,Wn,Jn,Ti.elm,!1,Zt,lr):(ac=an[sc],nl(ac,ei)?(on(ac,ei,Wn,Zt,lr),an[sc]=void 0,$1&&N.insertBefore(Jn,ac.elm,Ti.elm)):Y(ei,Wn,Jn,Ti.elm,!1,Zt,lr)),ei=Zt[++lr]);Sr>Ko?(Ah=r(Zt[Ao+1])?null:Zt[Ao+1].elm,Ye(Jn,Ah,Zt,lr,Ao,Wn)):lr>Ao&&Ge(an,Sr,Ko)}(sn,yn,Jt,Ve,An):i(Jt)?(i(re.text)&&N.setTextContent(sn,""),Ye(sn,null,Jt,0,Jt.length-1,Ve)):i(yn)?Ge(yn,0,yn.length-1):i(re.text)&&N.setTextContent(sn,""):re.text!==le.text&&N.setTextContent(sn,le.text),i(Vn)&&i(tn=Vn.hook)&&i(tn=tn.postpatch)&&tn(re,le)}function gn(re,le,Ve){if(o(Ve)&&i(re.parent))re.parent.data.pendingInsert=le;else for(let mt=0;mt<le.length;++mt)le[mt].data.hook.insert(le[mt])}const ki=A("attrs,class,staticClass,staticStyle,key");function ar(re,le,Ve,mt){let Qt;const{tag:An,data:sn,children:tn}=le;if(mt=mt||sn&&sn.pre,le.elm=re,o(le.isComment)&&i(le.asyncFactory))return le.isAsyncPlaceholder=!0,!0;if(i(sn)&&(i(Qt=sn.hook)&&i(Qt=Qt.init)&&Qt(le,!0),i(Qt=le.componentInstance)))return $(le,Ve),!0;if(i(An)){if(i(tn))if(re.hasChildNodes())if(i(Qt=sn)&&i(Qt=Qt.domProps)&&i(Qt=Qt.innerHTML)){if(Qt!==re.innerHTML)return!1}else{let Vn=!0,yn=re.firstChild;for(let Jt=0;Jt<tn.length;Jt++){if(!yn||!ar(yn,tn[Jt],Ve,mt)){Vn=!1;break}yn=yn.nextSibling}if(!Vn||yn)return!1}else te(le,tn,Ve);if(i(sn)){let Vn=!1;for(const yn in sn)if(!ki(yn)){Vn=!0,pe(le,Ve);break}!Vn&&sn.class&&He(sn.class)}}else re.data!==le.text&&(re.data=le.text);return!0}return function(re,le,Ve,mt){if(r(le))return void(i(re)&&tt(re));let Qt=!1;const An=[];if(r(re))Qt=!0,Y(le,An);else{const tn=i(re.nodeType);if(!tn&&nl(re,le))on(re,le,An,null,null,mt);else{if(tn){if(re.nodeType===1&&re.hasAttribute(Be)&&(re.removeAttribute(Be),Ve=!0),o(Ve)&&ar(re,le,An))return gn(le,An,!0),re;sn=re,re=new St(N.tagName(sn).toLowerCase(),{},[],void 0,sn)}const Vn=re.elm,yn=N.parentNode(Vn);if(Y(le,An,Vn._leaveCb?null:yn,N.nextSibling(Vn)),i(le.parent)){let Jt=le.parent;const Jn=ge(le);for(;Jt;){for(let an=0;an<y.destroy.length;++an)y.destroy[an](Jt);if(Jt.elm=le.elm,Jn){for(let Zt=0;Zt<y.create.length;++Zt)y.create[Zt](Ps,Jt);const an=Jt.data.hook.insert;if(an.merged){const Zt=an.fns.slice(1);for(let Wn=0;Wn<Zt.length;Wn++)Zt[Wn]()}}else rc(Jt);Jt=Jt.parent}}i(yn)?Ge([re],0,0):i(re.tag)&&tt(re)}}var sn;return gn(le,An,Qt),le.elm}}({nodeOps:i4,modules:[d4,h4,g4,b4,v4,_e?{create:lv,activate:lv,remove(f,g){f.data.show!==!0?sv(f,g):g()}}:{}].concat(u4)});Bt&&document.addEventListener("selectionchange",()=>{const f=document.activeElement;f&&f.vmodel&&Y1(f,"input")});const cv={inserted(f,g,T,y){T.tag==="select"?(y.elm&&!y.elm._vOptions?Gt(T,"postpatch",()=>{cv.componentUpdated(f,g,T)}):uv(f,g,T.context),f._vOptions=[].map.call(f.options,bh)):(T.tag==="textarea"||N1(f.type))&&(f._vModifiers=g.modifiers,g.modifiers.lazy||(f.addEventListener("compositionstart",w4),f.addEventListener("compositionend",pv),f.addEventListener("change",pv),Bt&&(f.vmodel=!0)))},componentUpdated(f,g,T){if(T.tag==="select"){uv(f,g,T.context);const y=f._vOptions,E=f._vOptions=[].map.call(f.options,bh);E.some((N,x)=>!ie(N,y[x]))&&(f.multiple?g.value.some(N=>hv(N,E)):g.value!==g.oldValue&&hv(g.value,E))&&Y1(f,"change")}}};function uv(f,g,T){dv(f,g),(it||$t)&&setTimeout(()=>{dv(f,g)},0)}function dv(f,g,T){const y=g.value,E=f.multiple;if(E&&!Array.isArray(y))return;let N,x;for(let Y=0,$=f.options.length;Y<$;Y++)if(x=f.options[Y],E)N=ce(y,bh(x))>-1,x.selected!==N&&(x.selected=N);else if(ie(bh(x),y))return void(f.selectedIndex!==Y&&(f.selectedIndex=Y));E||(f.selectedIndex=-1)}function hv(f,g){return g.every(T=>!ie(T,f))}function bh(f){return"_value"in f?f._value:f.value}function w4(f){f.target.composing=!0}function pv(f){f.target.composing&&(f.target.composing=!1,Y1(f.target,"input"))}function Y1(f,g){const T=document.createEvent("HTMLEvents");T.initEvent(g,!0,!0),f.dispatchEvent(T)}function H1(f){return!f.componentInstance||f.data&&f.data.transition?f:H1(f.componentInstance._vnode)}var _4={bind(f,{value:g},T){const y=(T=H1(T)).data&&T.data.transition,E=f.__vOriginalDisplay=f.style.display==="none"?"":f.style.display;g&&y?(T.data.show=!0,I1(T,()=>{f.style.display=E})):f.style.display=g?E:"none"},update(f,{value:g,oldValue:T},y){!g!=!T&&((y=H1(y)).data&&y.data.transition?(y.data.show=!0,g?I1(y,()=>{f.style.display=f.__vOriginalDisplay}):sv(y,()=>{f.style.display="none"})):f.style.display=g?f.__vOriginalDisplay:"none")},unbind(f,g,T,y,E){E||(f.style.display=f.__vOriginalDisplay)}},C4={model:cv,show:_4};const fv={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Z1(f){const g=f&&f.componentOptions;return g&&g.Ctor.options.abstract?Z1(qa(g.children)):f}function mv(f){const g={},T=f.$options;for(const E in T.propsData)g[E]=f[E];const y=T._parentListeners;for(const E in y)g[Z(E)]=y[E];return g}function gv(f,g){if(/\d-keep-alive$/.test(g.tag))return f("keep-alive",{props:g.componentOptions.propsData})}const N4=f=>f.tag||Qr(f),F4=f=>f.name==="show";var O4={name:"transition",props:fv,abstract:!0,render(f){let g=this.$slots.default;if(!g||(g=g.filter(N4),!g.length))return;const T=this.mode,y=g[0];if(function(ee){for(;ee=ee.parent;)if(ee.data.transition)return!0}(this.$vnode))return y;const E=Z1(y);if(!E)return y;if(this._leaving)return gv(f,y);const N=`__transition-${this._uid}-`;E.key=E.key==null?E.isComment?N+"comment":N+E.tag:s(E.key)?String(E.key).indexOf(N)===0?E.key:N+E.key:E.key;const x=(E.data||(E.data={})).transition=mv(this),Y=this._vnode,$=Z1(Y);if(E.data.directives&&E.data.directives.some(F4)&&(E.data.show=!0),$&&$.data&&!function(ee,te){return te.key===ee.key&&te.tag===ee.tag}(E,$)&&!Qr($)&&(!$.componentInstance||!$.componentInstance._vnode.isComment)){const ee=$.data.transition=L({},x);if(T==="out-in")return this._leaving=!0,Gt(ee,"afterLeave",()=>{this._leaving=!1,this.$forceUpdate()}),gv(f,y);if(T==="in-out"){if(Qr(E))return Y;let te;const ge=()=>{te()};Gt(x,"afterEnter",ge),Gt(x,"enterCancelled",ge),Gt(ee,"delayLeave",pe=>{te=pe})}}return y}};const Tv=L({tag:String,moveClass:String},fv);delete Tv.mode;var x4={props:Tv,beforeMount(){const f=this._update;this._update=(g,T)=>{const y=Iu(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,y(),f.call(this,g,T)}},render(f){const g=this.tag||this.$vnode.data.tag||"span",T=Object.create(null),y=this.prevChildren=this.children,E=this.$slots.default||[],N=this.children=[],x=mv(this);for(let Y=0;Y<E.length;Y++){const $=E[Y];$.tag&&$.key!=null&&String($.key).indexOf("__vlist")!==0&&(N.push($),T[$.key]=$,($.data||($.data={})).transition=x)}if(y){const Y=[],$=[];for(let ee=0;ee<y.length;ee++){const te=y[ee];te.data.transition=x,te.data.pos=te.elm.getBoundingClientRect(),T[te.key]?Y.push(te):$.push(te)}this.kept=f(g,null,Y),this.removed=$}return f(g,null,N)},updated(){const f=this.prevChildren,g=this.moveClass||(this.name||"v")+"-move";f.length&&this.hasMove(f[0].elm,g)&&(f.forEach(k4),f.forEach(R4),f.forEach(M4),this._reflow=document.body.offsetHeight,f.forEach(T=>{if(T.data.moved){const y=T.elm,E=y.style;rl(y,g),E.transform=E.WebkitTransform=E.transitionDuration="",y.addEventListener(Th,y._moveCb=function N(x){x&&x.target!==y||x&&!/transform$/.test(x.propertyName)||(y.removeEventListener(Th,N),y._moveCb=null,Wo(y,g))})}}))},methods:{hasMove(f,g){if(!JE)return!1;if(this._hasMove)return this._hasMove;const T=f.cloneNode();f._transitionClasses&&f._transitionClasses.forEach(E=>{WE(T,E)}),qE(T,g),T.style.display="none",this.$el.appendChild(T);const y=rv(T);return this.$el.removeChild(T),this._hasMove=y.hasTransform}}};function k4(f){f.elm._moveCb&&f.elm._moveCb(),f.elm._enterCb&&f.elm._enterCb()}function R4(f){f.data.newPos=f.elm.getBoundingClientRect()}function M4(f){const g=f.data.pos,T=f.data.newPos,y=g.left-T.left,E=g.top-T.top;if(y||E){f.data.moved=!0;const N=f.elm.style;N.transform=N.WebkitTransform=`translate(${y}px,${E}px)`,N.transitionDuration="0s"}}var B4={Transition:O4,TransitionGroup:x4};return zn.config.mustUseProp=(f,g,T)=>T==="value"&&QM(f)&&g!=="button"||T==="selected"&&f==="option"||T==="checked"&&f==="input"||T==="muted"&&f==="video",zn.config.isReservedTag=RE,zn.config.isReservedAttr=KM,zn.config.getTagNamespace=function(f){return C1(f)?"svg":f==="math"?"math":void 0},zn.config.isUnknownElement=function(f){if(!_e)return!0;if(RE(f))return!1;if(f=f.toLowerCase(),ph[f]!=null)return ph[f];const g=document.createElement(f);return f.indexOf("-")>-1?ph[f]=g.constructor===window.HTMLUnknownElement||g.constructor===window.HTMLElement:ph[f]=/HTMLUnknownElement/.test(g.toString())},L(zn.options.directives,C4),L(zn.options.components,B4),zn.prototype.__patch__=_e?S4:J,zn.prototype.$mount=function(f,g){return function(T,y,E){let N;T.$el=y,T.$options.render||(T.$options.render=Q),Ki(T,"beforeMount"),N=()=>{T._update(T._render(),E)},new Xr(T,N,J,{before(){T._isMounted&&!T._isDestroyed&&Ki(T,"beforeUpdate")}},!0),E=!1;const x=T._preWatchers;if(x)for(let Y=0;Y<x.length;Y++)x[Y].run();return T.$vnode==null&&(T._isMounted=!0,Ki(T,"mounted")),T}(this,f=f&&_e?function(T){return typeof T=="string"?document.querySelector(T)||document.createElement("div"):T}(f):void 0,g)},_e&&setTimeout(()=>{},0),L(zn,yt),eT.exports=zn,eT.exports}var Hw;function mse(){return Hw||(Hw=1,Lw.exports=fse()),Lw.exports}var Wu={},Zw;function gse(){if(Zw)return Wu;Zw=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.isInstanceOf=void 0;const e=t=>n=>{if(!(n instanceof t))return`value should be an instance of ${t.name}`};return Wu.isInstanceOf=e,Wu}var Ku={},Pw;function Tse(){if(Pw)return Ku;Pw=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.isInteger=void 0;const e=t=>{if(typeof t!="number"||!Number.isInteger(t))return"value should be an integer"};return Ku.isInteger=e,Ku}var Qu={},$w;function bse(){if($w)return Qu;$w=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.isOneOf=void 0;const e=t=>n=>{if(!t.includes(n))return`value should be one of "${t.join('", "')}"`};return Qu.isOneOf=e,Qu}var Ju={},Uw;function Ase(){if(Uw)return Ju;Uw=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.isSymbol=void 0;const e=t=>{if(typeof t!="symbol")return"value should be a symbol"};return Ju.isSymbol=e,Ju}var zw;function wu(){return zw||(zw=1,function(e){var t=Vh&&Vh.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.isSymbol=e.isOneOf=e.isInteger=e.isInstanceOf=e.vuePropValidator=void 0;const n=t(mse());function r(l,...c){const u=l?[...c,l]:c;if(u.length!==0)return d=>{for(const h of u){const p=h(d);if(p)return typeof n.default=="object"&&"util"in n.default?n.default.util.warn(`${p} (received: '${String(d)}')`):console.warn(`${p} (received: '${String(d)}')`),!1}return!0}}e.vuePropValidator=r;var i=gse();Object.defineProperty(e,"isInstanceOf",{enumerable:!0,get:function(){return i.isInstanceOf}});var o=Tse();Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return o.isInteger}});var s=bse();Object.defineProperty(e,"isOneOf",{enumerable:!0,get:function(){return s.isOneOf}});var a=Ase();Object.defineProperty(e,"isSymbol",{enumerable:!0,get:function(){return a.isSymbol}})}(Vh)),Vh}var Vw;function Gi(){if(Vw)return qu;Vw=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.propOptionsGenerator=void 0;const e=wu(),t=(n,r,...i)=>({optional:{type:n,required:!1,default:void 0,validator:(0,e.vuePropValidator)(r,...i)},nullable:{type:n,required:!1,default:null,validator:(0,e.vuePropValidator)(r,...i)},withDefault:o=>({type:n,required:!1,default:o,validator:(0,e.vuePropValidator)(r,...i)}),required:{type:n,required:!0,validator:(0,e.vuePropValidator)(r,...i)}});return qu.propOptionsGenerator=t,qu}var jw;function yse(){if(jw)return Gu;jw=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.stringProp=void 0;const e=Gi(),t=n=>(0,e.propOptionsGenerator)(String,n);return Gu.stringProp=t,Gu}var Xu={},Gw;function Ese(){if(Gw)return Xu;Gw=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.booleanProp=void 0;const e=Gi(),t=n=>(0,e.propOptionsGenerator)(Boolean,n);return Xu.booleanProp=t,Xu}var e0={},qw;function vse(){if(qw)return e0;qw=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.numberProp=void 0;const e=Gi(),t=n=>(0,e.propOptionsGenerator)(Number,n);return e0.numberProp=t,e0}var t0={},Ww;function Dse(){if(Ww)return t0;Ww=1,Object.defineProperty(t0,"__esModule",{value:!0}),t0.integerProp=void 0;const e=Gi(),t=wu(),n=r=>(0,e.propOptionsGenerator)(Number,r,t.isInteger);return t0.integerProp=n,t0}var n0={},Kw;function Sse(){if(Kw)return n0;Kw=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.symbolProp=void 0;const e=Gi(),t=wu(),n=r=>(0,e.propOptionsGenerator)(void 0,r,t.isSymbol);return n0.symbolProp=n,n0}var r0={},Qw;function wse(){if(Qw)return r0;Qw=1,Object.defineProperty(r0,"__esModule",{value:!0}),r0.vueComponentProp=void 0;const e=Gi(),t=n=>(0,e.propOptionsGenerator)([Object,String],n);return r0.vueComponentProp=t,r0}var i0={},Jw;function _se(){if(Jw)return i0;Jw=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.anyProp=void 0;const e=Gi(),t=n=>(0,e.propOptionsGenerator)(void 0,n);return i0.anyProp=t,i0}var o0={},Xw;function Cse(){if(Xw)return o0;Xw=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.arrayProp=void 0;const e=Gi(),t=n=>(0,e.propOptionsGenerator)(Array,n);return o0.arrayProp=t,o0}var s0={},e_;function Nse(){if(e_)return s0;e_=1,Object.defineProperty(s0,"__esModule",{value:!0}),s0.objectProp=void 0;const e=Gi(),t=n=>(0,e.propOptionsGenerator)(Object,n);return s0.objectProp=t,s0}var a0={},t_;function Fse(){if(t_)return a0;t_=1,Object.defineProperty(a0,"__esModule",{value:!0}),a0.functionProp=void 0;const e=wu(),t=n=>({optional:{type:Function,required:!1,default:void 0,validator:(0,e.vuePropValidator)(n)},nullable:{type:Function,required:!1,default:null,validator:(0,e.vuePropValidator)(n)},required:{type:Function,required:!0,validator:(0,e.vuePropValidator)(n)}});return a0.functionProp=t,a0}var l0={},n_;function u3(){if(n_)return l0;n_=1,Object.defineProperty(l0,"__esModule",{value:!0}),l0.oneOfProp=void 0;const e=Gi(),t=wu(),n=i=>{const o=[...new Set(i.flatMap(s=>{var a;return s==null?[]:(a=s.constructor)!==null&&a!==void 0?a:[]}))];if(o.length!==0)return o.length===1?o[0]:o},r=(i,o)=>(0,e.propOptionsGenerator)(n(i),o,(0,t.isOneOf)(i));return l0.oneOfProp=r,l0}var c0={},r_;function Ose(){if(r_)return c0;r_=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.oneOfObjectKeysProp=void 0;const e=u3(),t=(n,r)=>(0,e.oneOfProp)(Object.keys(n),r);return c0.oneOfObjectKeysProp=t,c0}var u0={},i_;function xse(){if(i_)return u0;i_=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.oneOfTypesProp=void 0;const e=Gi(),t=(n,r)=>(0,e.propOptionsGenerator)(n,r);return u0.oneOfTypesProp=t,u0}var d0={},o_;function kse(){if(o_)return d0;o_=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.instanceOfProp=void 0;const e=Gi(),t=wu(),n=(r,i)=>(0,e.propOptionsGenerator)(r,i,(0,t.isInstanceOf)(r));return d0.instanceOfProp=n,d0}var h0={},s_;function Rse(){if(s_)return h0;s_=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.isNegative=void 0;const e=t=>{if(typeof t!="number"||t>=0||Number.isNaN(t))return"value should be a negative number"};return h0.isNegative=e,h0}var p0={},a_;function Mse(){if(a_)return p0;a_=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.isPositive=void 0;const e=t=>{if(typeof t!="number"||t<=0||Number.isNaN(t))return"value should be a positive number"};return p0.isPositive=e,p0}var f0={},l_;function Bse(){if(l_)return f0;l_=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.isNonNegative=void 0;const e=t=>{if(typeof t!="number"||t<0||Number.isNaN(t))return"value should be a non-negative number"};return f0.isNonNegative=e,f0}var m0={},c_;function Ise(){if(c_)return m0;c_=1,Object.defineProperty(m0,"__esModule",{value:!0}),m0.isNonPositive=void 0;const e=t=>{if(typeof t!="number"||t>0||Number.isNaN(t))return"value should be a non-positive number"};return m0.isNonPositive=e,m0}var u_;function Lse(){return u_||(u_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isNonPositive=e.isNonNegative=e.isPositive=e.isNegative=e.instanceOfProp=e.oneOfTypesProp=e.oneOfObjectKeysProp=e.oneOfProp=e.functionProp=e.objectProp=e.arrayProp=e.anyProp=e.vueComponentProp=e.symbolProp=e.integerProp=e.numberProp=e.booleanProp=e.stringProp=void 0;var t=yse();Object.defineProperty(e,"stringProp",{enumerable:!0,get:function(){return t.stringProp}});var n=Ese();Object.defineProperty(e,"booleanProp",{enumerable:!0,get:function(){return n.booleanProp}});var r=vse();Object.defineProperty(e,"numberProp",{enumerable:!0,get:function(){return r.numberProp}});var i=Dse();Object.defineProperty(e,"integerProp",{enumerable:!0,get:function(){return i.integerProp}});var o=Sse();Object.defineProperty(e,"symbolProp",{enumerable:!0,get:function(){return o.symbolProp}});var s=wse();Object.defineProperty(e,"vueComponentProp",{enumerable:!0,get:function(){return s.vueComponentProp}});var a=_se();Object.defineProperty(e,"anyProp",{enumerable:!0,get:function(){return a.anyProp}});var l=Cse();Object.defineProperty(e,"arrayProp",{enumerable:!0,get:function(){return l.arrayProp}});var c=Nse();Object.defineProperty(e,"objectProp",{enumerable:!0,get:function(){return c.objectProp}});var u=Fse();Object.defineProperty(e,"functionProp",{enumerable:!0,get:function(){return u.functionProp}});var d=u3();Object.defineProperty(e,"oneOfProp",{enumerable:!0,get:function(){return d.oneOfProp}});var h=Ose();Object.defineProperty(e,"oneOfObjectKeysProp",{enumerable:!0,get:function(){return h.oneOfObjectKeysProp}});var p=xse();Object.defineProperty(e,"oneOfTypesProp",{enumerable:!0,get:function(){return p.oneOfTypesProp}});var m=kse();Object.defineProperty(e,"instanceOfProp",{enumerable:!0,get:function(){return m.instanceOfProp}});var b=Rse();Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return b.isNegative}});var A=Mse();Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return A.isPositive}});var v=Bse();Object.defineProperty(e,"isNonNegative",{enumerable:!0,get:function(){return v.isNonNegative}});var D=Ise();Object.defineProperty(e,"isNonPositive",{enumerable:!0,get:function(){return D.isNonPositive}})}(Iw)),Iw}var $s=Lse();const kbe={name:"EditorContent",props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(e){e&&e.options.element&&this.$nextTick(()=>{const t=this.$el;!t||!e.options.element.firstChild||(t.append(...e.options.element.childNodes),e.contentComponent=this,e.setOptions({element:t}),e.createNodeViews())})}}},render(e){return e("div")},beforeDestroy(){const{editor:e}=this;if(!e||(e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null,!e.options.element.firstChild))return;const t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}},Rbe={name:"FloatingMenu",props:{pluginKey:{type:[String,Object],default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},watch:{editor:{immediate:!0,handler(e){e&&this.$nextTick(()=>{e.registerPlugin(c3({pluginKey:this.pluginKey,editor:e,element:this.$el,tippyOptions:this.tippyOptions,shouldShow:this.shouldShow}))})}}},render(e){return e("div",{style:{visibility:"hidden"}},this.$slots.default)},beforeDestroy(){this.editor.unregisterPlugin(this.pluginKey)}},Pa={props:{as:{type:String,default:"div"}},render(e){return e(this.as,{style:{whiteSpace:"pre-wrap"},attrs:{"data-node-view-content":""}})}},zo={props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(e){return e(this.as,{class:this.decorationClasses.value,style:{whiteSpace:"normal"},attrs:{"data-node-view-wrapper":""},on:{dragstart:this.onDragStart}},this.$slots.default)}};class $y{constructor(t,n){const r=typeof t=="function"?t:Mr.extend(t);this.ref=new r(n).$mount()}get element(){return this.ref.$el}updateProps(t={}){var n,r,i;if(!this.ref.$props)return;const o=(i=(r=(n=this.ref.$props.editor)===null||n===void 0?void 0:n.contentComponent)===null||r===void 0?void 0:r.$options._base)!==null&&i!==void 0?i:Mr,s=o.config.silent;o.config.silent=!0,Object.entries(t).forEach(([a,l])=>{this.ref.$props[a]=l}),o.config.silent=s}destroy(){this.ref.$destroy()}}const Yse={editor:$s.objectProp().required,node:$s.objectProp().required,decorations:$s.objectProp().required,selected:$s.booleanProp().required,extension:$s.objectProp().required,getPos:$s.functionProp().required,updateAttributes:$s.functionProp().required,deleteNode:$s.functionProp().required};class Hse extends l7{mount(){var t,n;const r={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(s={})=>this.updateAttributes(s),deleteNode:()=>this.deleteNode()},i=this.onDragStart.bind(this);this.decorationClasses=Mr.observable({value:this.getDecorationClasses()});const o=((n=(t=this.editor.contentComponent)===null||t===void 0?void 0:t.$options._base)!==null&&n!==void 0?n:Mr).extend(this.component).extend({props:Object.keys(r),provide:()=>({onDragStart:i,decorationClasses:this.decorationClasses})});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new $y(o,{parent:this.editor.contentComponent,propsData:r})}get dom(){if(!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")||this.dom}handleSelectionUpdate(){const{from:t,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(t<=r&&n>=r+this.node.nodeSize){if(this.renderer.ref.$props.selected)return;this.selectNode()}else{if(!this.renderer.ref.$props.selected)return;this.deselectNode()}}update(t,n,r){const i=o=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(o)};if(typeof this.options.update=="function"){const o=this.node,s=this.decorations,a=this.innerDecorations;return this.node=t,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:o,oldDecorations:s,newNode:t,newDecorations:n,oldInnerDecorations:a,innerDecorations:r,updateProps:()=>i({node:t,decorations:n,innerDecorations:r})})}return t.type!==this.node.type?!1:(t===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=t,this.decorations=n,this.innerDecorations=r,i({node:t,decorations:n,innerDecorations:r})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(t=>t.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}}function Vo(e,t){return n=>n.editor.contentComponent?new Hse(e,n,t):{}}const Zse={name:"NcUserBubbleDiv"};var Pse=function(){var e=this,t=e._self._c;return t("div",[e._t("trigger")],2)},$se=[],Use=ut(Zse,Pse,$se,!1,null,null);const zse=Use.exports,Vse={name:"NcUserBubble",components:{NcAvatar:nk,NcPopover:hm,NcUserBubbleDiv:zse},props:{avatarImage:{type:String,default:void 0},user:{type:String,default:void 0},displayName:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!1},url:{type:String,default:void 0,validator:e=>{try{return e=new URL(e,e?.startsWith?.("/")?window.location.href:void 0),!0}catch{return!1}}},to:{type:[String,Object],default:void 0},open:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},size:{type:Number,default:20},margin:{type:Number,default:2}},emits:["click","update:open"],computed:{isPopoverComponent(){return this.popoverEmpty?"NcUserBubbleDiv":"NcPopover"},isAvatarUrl(){if(!this.avatarImage)return!1;try{return!!new URL(this.avatarImage)}catch{return!1}},isCustomAvatar(){return!!this.avatarImage},hasUrl(){return this.url&&this.url.trim()!==""},isLinkComponent(){return this.hasUrl?"a":this.to?py:"div"},popoverEmpty(){return!("default"in this.$slots)},styles(){return{content:{height:this.size+"px",lineHeight:this.size+"px",borderRadius:this.size/2+"px"},avatar:{marginInlineStart:this.margin+"px"}}}},mounted(){!this.displayName&&!this.user&&Mr.util.warn("[NcUserBubble] At least `displayName` or `user` property should be set.")},methods:{onOpenChange(e){this.$emit("update:open",e)},onClick(e){this.$emit("click",e)}}};var jse=function(){var e=this,t=e._self._c;return t(e.isPopoverComponent,{tag:"component",staticClass:"user-bubble__wrapper",attrs:{trigger:"hover focus",shown:e.open},on:{"update:open":e.onOpenChange},scopedSlots:e._u([{key:"trigger",fn:function({attrs:n}){return[t(e.isLinkComponent,e._b({tag:"component",staticClass:"user-bubble__content",class:{"user-bubble__content--primary":e.primary},style:e.styles.content,attrs:{to:e.to,href:e.hasUrl?e.url:null},on:{click:e.onClick}},"component",n,!1),[t("NcAvatar",{staticClass:"user-bubble__avatar",style:e.styles.avatar,attrs:{url:e.isCustomAvatar&&e.isAvatarUrl?e.avatarImage:void 0,"icon-class":e.isCustomAvatar&&!e.isAvatarUrl?e.avatarImage:void 0,user:e.user,"display-name":e.displayName,size:e.size-e.margin*2,"disable-tooltip":!0,"disable-menu":!0,"show-user-status":e.showUserStatus}}),t("span",{staticClass:"user-bubble__name"},[e._v(" "+e._s(e.displayName||e.user)+" ")]),e.$slots.name?t("span",{staticClass:"user-bubble__secondary"},[e._t("name")],2):e._e()],1)]}}],null,!0)},[e._t("default")],2)},Gse=[],qse=ut(Vse,jse,Gse,!1,null,"a62a9496");const Wse=qse.exports,Kse={name:"Mention",components:{NcUserBubble:Wse,NodeViewWrapper:zo},props:{updateAttributes:{type:Function,required:!0},node:{type:Object,required:!0}},data(){return{username:this.node.attrs.label}},computed:{isCurrentUser(){return this.node.attrs.id===sd()?.uid}}};var Qse=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{staticClass:"mention",attrs:{as:"span",contenteditable:"false"}},[t("NcUserBubble",{staticClass:"mention-user-bubble",attrs:{user:e.node.attrs.id,"display-name":e.username,primary:e.isCurrentUser}},[e._v(" @"+e._s(e.username)+" ")])],1)},Jse=[],Xse=Ee(Kse,Qse,Jse,!1,null,"094c3bbc");const eae=Xse.exports,tae=Lie.extend({parseHTML(){return[{tag:'span[data-type="user"]',getAttrs:e=>({id:decodeURIComponent(e.getAttribute("data-id")),label:e.innerText||e.textContent||e.getAttribute("data-label")}),priority:100}]},renderHTML({node:e,HTMLAttributes:t}){return["span",Ft({"data-type":"user",class:"mention"},this.options.HTMLAttributes,t),this.options.renderHTML({options:this.options,node:e})]},addNodeView(){return Vo(eae)},toMarkdown(e,t){e.write(`@[${t.attrs.label}](mention://user/${encodeURIComponent(t.attrs.id)})`)}}),nae=/^```([a-z]+)?[\s\n]$/,rae=/^~~~([a-z]+)?[\s\n]$/,Uy=bn.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;return[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(i=>i.startsWith(n)).map(i=>i.replace(n,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",Ft(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`

`);return!o||!s?!1:e.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;const s=i.after();return s===void 0?!1:r.nodeAt(s)?e.commands.command(({tr:a})=>(a.setSelection(ct.near(r.resolve(s))),!0)):e.commands.exitCode()}}},addInputRules(){return[VT({find:nae,type:this.type,getAttributes:e=>({language:e[1]})}),VT({find:rae,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new kt({key:new Lt("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i?.mode;if(!n||!o)return!1;const{tr:s,schema:a}=e.state,l=a.text(n.replace(/\r\n?/g,`
`));return s.replaceSelectionWith(this.type.create({language:o},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(Ke.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),d3={Tab:({editor:e})=>{if(e.isActive("codeBlock"))return e.commands.insertContent("	"),e.commands.focus(),!0},"Mod-a":({editor:e})=>{if(!e.isActive("codeBlock"))return;const t=e.state.selection.$from.node().nodeSize;e.commands.selectParentNode();const n=e.state.selection.$from.pos,r=n+t;return e.commands.setTextSelection({from:n,to:r}),!0}},iae=Uy.extend({addKeyboardShortcuts(){return d3}}),oae=bn.create({name:"doc",content:"block"}),h3=pn.create({name:"CustomKeymap",addKeyboardShortcuts(){return{"Mod-Alt-h":()=>(ad("text:keyboard:outline"),!0),Backspace:()=>this.editor.commands.undoInputRule()}},addProseMirrorPlugins(){return[new kt({props:{handleKeyDown(e,t){if((t.ctrlKey||t.metaKey)&&!t.altKey&&!t.shiftKey&&t.key==="s")return t.preventDefault(),t.stopPropagation(),ad("text:keyboard:save"),!0;if(!t.ctrlKey&&!t.metaKey&&!t.altKey&&!t.shiftKey&&t.key==="Escape")return t.preventDefault(),t.stopPropagation(),!0;(t.ctrlKey||t.metaKey)&&!t.altKey&&!t.shiftKey&&t.key==="Delete"&&t.stopPropagation()}}})]}}),p3=bn.create({name:"text",group:"inline"}),Mbe=pn.create({name:"PlainText",addOptions(){return{...this.parent?.(),lowlight:void 0,defaultLanguage:void 0}},addExtensions(){return[iae.configure({lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage,exitOnTripleEnter:!1}),h3,oae,p3]}}),sae=/^\s*>\s$/,aae=bn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[wa({find:sae,type:this.type})]}}),lae=pn.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new kt({key:new Lt("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const i=this.options.limit;if(i==null||i===0){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>i){const s=o-i,a=0,l=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);const c=r.tr.deleteRange(a,l);return e=!0,c}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const i=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||i>r&&o>r&&o<=i)return!0;if(i>r&&o>r&&o>i||!t.getMeta("paste"))return!1;const s=t.selection.$head.pos,a=o-r,l=s-a,c=s;return t.deleteRange(l,c),!(this.storage.characters({node:t.doc})>r)}})]}}),cae=/(^|[^`])`([^`]+)`(?!`)/,uae=/(^|[^`])`([^`]+)`(?!`)/g,dae=so.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Ss({find:cae,type:this.type})]},addPasteRules(){return[ws({find:uae,type:this.type})]}}),hae=bn.create({name:"doc",topNode:!0,content:"block+"});function pae(e={}){return new kt({view(t){return new fae(t,e)}})}class fae{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=s=>{this[i](s)};return t.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r;if(n){let a=t.nodeBefore,l=t.nodeAfter;if(a||l){let c=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=a?u.bottom:u.top;a&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let a=this.editorView.coordsAtPos(this.cursorPos);r={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let o,s;if(!i||i==document.body&&getComputedStyle(i).position=="static")o=-pageXOffset,s=-pageYOffset;else{let a=i.getBoundingClientRect();o=a.left-i.scrollLeft,s=a.top-i.scrollTop}this.element.style.left=r.left-o+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,n,t):i;if(n&&!o){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=YN(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const mae=pn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[pae(this.options)]}});class Zn extends ct{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Zn.valid(r)?new Zn(r):ct.near(r)}content(){return we.empty}eq(t){return t instanceof Zn&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Zn(t.resolve(n.pos))}getBookmark(){return new zy(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!gae(t)||!Tae(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(t.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Zn.valid(t))return t;let i=t.pos,o=null;for(let s=t.depth;;s--){let a=t.node(s);if(n>0?t.indexAfter(s)<a.childCount:t.index(s)>0){o=a.child(n>0?t.indexAfter(s):t.index(s)-1);break}else if(s==0)return null;i+=n;let l=t.doc.resolve(i);if(Zn.valid(l))return l}for(;;){let s=n>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!We.isSelectable(o)){t=t.doc.resolve(i+o.nodeSize*n),r=!1;continue e}break}o=s,i+=n;let a=t.doc.resolve(i);if(Zn.valid(a))return a}return null}}}Zn.prototype.visible=!1,Zn.findFrom=Zn.findGapCursorFrom,ct.jsonID("gapcursor",Zn);class zy{constructor(t){this.pos=t}map(t){return new zy(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Zn.valid(n)?new Zn(n):ct.near(n)}}function gae(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Tae(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function bae(){return new kt({props:{decorations:vae,createSelectionBetween(e,t,n){return t.pos==n.pos&&Zn.valid(n)?new Zn(n):null},handleClick:yae,handleKeyDown:Aae,handleDOMEvents:{beforeinput:Eae}}})}const Aae=dA({ArrowLeft:jh("horiz",-1),ArrowRight:jh("horiz",1),ArrowUp:jh("vert",-1),ArrowDown:jh("vert",1)});function jh(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,i,o){let s=r.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof Ke){if(!o.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(t>0?a.after():a.before())}let c=Zn.findGapCursorFrom(a,t,l);return c?(i&&i(r.tr.setSelection(new Zn(c))),!0):!1}}function yae(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Zn.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&We.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Zn(r))),!0)}function Eae(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Zn))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=ue.empty;for(let s=r.length-1;s>=0;s--)i=ue.from(r[s].createAndFill(null,i));let o=e.state.tr.replace(n.pos,n.pos,new we(i,0,0));return o.setSelection(Ke.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function vae(e){if(!(e.selection instanceof Zn))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Rt.create(e.doc,[xn.widget(e.selection.head,t,{key:"gapcursor"})])}const Dae=pn.create({name:"gapCursor",addProseMirrorPlugins(){return[bae()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=Nt($e(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),Sae=bn.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Ft(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!c7(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$from:r,$to:i}=n,o=e();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):OL(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:s,dispatch:a})=>{var l;if(a){const{$to:c}=s.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?s.setSelection(Ke.create(s.doc,c.pos+1)):c.nodeAfter.isBlock?s.setSelection(We.create(s.doc,c.pos)):s.setSelection(Ke.create(s.doc,c.pos));else{const d=(l=c.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();d&&(s.insert(u,d),s.setSelection(Ke.create(s.doc,u+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[KF({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),wae=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Ft(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});function _ae(e,t,{connection:n}){const r=jd(n);if(!r){const o=new Error("Disconnected. Could not notify user about mention.");return console.warn(o.message,{err:o,mention:e}),Promise.resolve()}const i=io(`apps/text/session/${r.documentId}/mention`);return fr.put(i,{documentId:r.documentId,sessionId:r.sessionId,sessionToken:r.sessionToken,mention:e,scope:t})}const Cae=io("apps/text/api/v1/users");async function Nae(e,{connection:t}){const n=jd(t);if(!n){const i=new Error("Disconnected. Could not lookup users to mention.");return console.warn(i.message,{err:i}),Promise.resolve({})}const r=await fr.post(Cae,{...n,filter:e});return JSON.parse(JSON.stringify(r.data))}const Vy=({listComponent:e,items:t=()=>{},command:n=({editor:r,range:i,props:o})=>{}})=>({items:t,command:n,render:()=>{let r,i;return{onStart:o=>{r=new $y(e,{parent:void 0,propsData:o}),o.clientRect&&(i=gl("body",{getReferenceClientRect:o.clientRect,appendTo:()=>document.body,content:r.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}),r.ref.$on("select",()=>{i.length>0&&i[0].hide()}))},onUpdate(o){r.updateProps(o),!(!o.clientRect||!i)&&i[0].setProps({getReferenceClientRect:o.clientRect})},onKeyDown(o){if(i)return o.event.key==="Escape"?(i[0].hide(),i[0].destroy(),r.destroy(),i=null,!0):r.ref?.onKeyDown?.(o)},onExit(){i&&(i[0].destroy(),r.destroy())}}}});Et();const Fae=kB({name:"NcActionButtonGroup",inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{name:{required:!1,default:void 0,type:String}},setup(){return{labelId:`nc-action-button-group-${ro()}`}},methods:{t:me}});var Oae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{staticClass:"nc-button-group-base",attrs:{role:e.isInSemanticMenu&&"presentation"}},[e.name?t("div",{attrs:{id:e.labelId}},[e._v(" "+e._s(e.name)+" ")]):e._e(),t("ul",{staticClass:"nc-button-group-content",attrs:{role:"group","aria-labelledby":e.name?e.labelId:void 0}},[e._t("default")],2)])},xae=[],kae=ut(Fae,Oae,xae,!1,null,"bc844f45");const Rae=kae.exports,Mae={name:"NcActionCaption",inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{name:{type:String,required:!0}}};var Bae=function(){var e=this,t=e._self._c;return t("li",{staticClass:"app-navigation-caption",attrs:{role:e.isInSemanticMenu&&"presentation"}},[e._v(" "+e._s(e.name)+" ")])},Iae=[],Lae=ut(Mae,Bae,Iae,!1,null,"7bf21eca");const Yae=Lae.exports,Hae={name:"NcActionRadio",mixins:[JA],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},model:{prop:"modelValue",event:"update:modelValue"},props:{id:{type:String,default:()=>"action-"+ro(),validator:e=>e.trim()!==""},checked:{type:Boolean,default:void 0},modelValue:{type:[Boolean,String,Number],default:!1},name:{type:String,required:!0},value:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["update:checked","update:modelValue","update:model-value","change"],setup(e){return typeof e.modelValue=="boolean"&&Mr.util.warn("[NcActionRadio] Boolean type of `modelValue` is deprecated and will be removed in next versions"),{model:Po("checked","update:checked")}},computed:{isFocusable(){return!this.disabled},ariaChecked(){if(this.isInSemanticMenu)return this.model?"true":"false"}},methods:{toggleInput(e){this.$refs.label.click()},onChange(e){this.$emit("change",e)}}};var Zae=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled},attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("span",{staticClass:"action-radio",attrs:{role:"menuitemradio","aria-checked":e.ariaChecked}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"radio action-radio__radio",class:{focusable:e.isFocusable},attrs:{id:e.id,disabled:e.disabled,name:e.name,type:"radio"},domProps:{value:e.value,checked:e._q(e.model,e.value)},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")||n.ctrlKey||n.shiftKey||n.altKey||n.metaKey?null:(n.preventDefault(),e.toggleInput.apply(null,arguments))},change:[function(n){e.model=e.value},e.onChange]}}),t("label",{ref:"label",staticClass:"action-radio__label",attrs:{for:e.id}},[e._v(e._s(e.text))]),e._e()],2)])},Pae=[],$ae=ut(Hae,Zae,Pae,!1,null,"8ddd08c0");const Uae=$ae.exports;Et(eB),Wb.getBuilder("nextcloud").persist().build(),fm().theming?.name;const d_=Yl("core","active-app",I4),tT=Yl("core","apps",{});Array.isArray(tT)?tT.find(e=>e.id===d_)?.name:tT[d_]?.name,window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),Et(tB),window.OCP?.Accessibility?.disableKeyboardShortcuts?.();const zae={name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(e){return this.vnodes||this.$slots?.default||this.$scopedSlots?.default?.()}},Vae=null,jae=null;var Gae=ut(zae,Vae,jae,!1,null,null);const qae=Gae.exports;Et(nB),Et(rB),Et(iB,WC),Et(tN,oB);me("Search …"),Et(sB),me("Settings"),Et(aB),th(function(){this.selectedSection="",document.activeElement.className.includes("navigation-list__link")&&document.activeElement.blur()},300);let Wae="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Kae=(e=21)=>{let t="",n=e|0;for(;n--;)t+=Wae[Math.random()*64|0];return t};function Np(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Np=function(t){return typeof t}:Np=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}var f3={selector:"vue-portal-target-".concat(Kae())},Qae=function(e){return f3.selector=e},nT=typeof window<"u"&&(typeof document>"u"?"undefined":Np(document))!==void 0,Jae=Mr.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var t=this.updatedNodes&&this.updatedNodes();return t?t.length===1&&!t[0].text?t:e(this.tag||"DIV",t):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),Xae=Mr.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(f3.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var t=this.$scopedSlots&&this.$scopedSlots.default();return t?t.length<2&&!t[0].text?t:e(this.tag,t):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(nT)return document.querySelector(this.selector)},insertTargetEl:function(){if(nT){var e=document.querySelector("body"),t=document.createElement(this.tag);t.id=this.selector.substring(1),e.appendChild(t)}},mount:function(){if(nT){var e=this.getTargetEl(),t=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t),this.container=new Jae({el:t,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function ele(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.component(t.name||"portal",Xae),t.defaultSelector&&Qae(t.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===Mr&&Mr.use(ele);const tle="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",nle="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Nb="numeric",Fb="ascii",Ob="alpha",j0="asciinumeric",_0="alphanumeric",xb="domain",m3="emoji",rle="scheme",ile="slashscheme",rT="whitespace";function ole(e,t){return e in t||(t[e]=[]),t[e]}function Tl(e,t,n){t[Nb]&&(t[j0]=!0,t[_0]=!0),t[Fb]&&(t[j0]=!0,t[Ob]=!0),t[j0]&&(t[_0]=!0),t[Ob]&&(t[_0]=!0),t[_0]&&(t[xb]=!0),t[m3]&&(t[xb]=!0);for(const r in t){const i=ole(r,n);i.indexOf(e)<0&&i.push(e)}}function sle(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function ri(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}ri.groups={},ri.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const i=t.jr[r][0],o=t.jr[r][1];if(o&&i.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r=r||ri.groups;let i;return t&&t.j?i=t:(i=new ri(t),n&&r&&Tl(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this;const o=e.length;if(!o)return i;for(let s=0;s<o-1;s++)i=i.tt(e[s]);return i.tt(e[o-1],t,n,r)},tt(e,t,n,r){r=r||ri.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const o=t;let s,a=i.go(e);if(a?(s=new ri,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new ri,o){if(r)if(s.t&&typeof s.t=="string"){const l=Object.assign(sle(s.t,r),n);Tl(o,l,r)}else n&&Tl(o,n,r);s.t=o}return i.j[e]=s,s}};const _t=(e,t,n,r,i)=>e.ta(t,n,r,i),Yn=(e,t,n,r,i)=>e.tr(t,n,r,i),h_=(e,t,n,r,i)=>e.ts(t,n,r,i),Ae=(e,t,n,r,i)=>e.tt(t,n,r,i),as="WORD",kb="UWORD",g3="ASCIINUMERICAL",T3="ALPHANUMERICAL",Id="LOCALHOST",Rb="TLD",Mb="UTLD",Fp="SCHEME",Sc="SLASH_SCHEME",jy="NUM",Bb="WS",Gy="NL",G0="OPENBRACE",q0="CLOSEBRACE",Rf="OPENBRACKET",Mf="CLOSEBRACKET",Bf="OPENPAREN",If="CLOSEPAREN",Lf="OPENANGLEBRACKET",Yf="CLOSEANGLEBRACKET",Hf="FULLWIDTHLEFTPAREN",Zf="FULLWIDTHRIGHTPAREN",Pf="LEFTCORNERBRACKET",$f="RIGHTCORNERBRACKET",Uf="LEFTWHITECORNERBRACKET",zf="RIGHTWHITECORNERBRACKET",Vf="FULLWIDTHLESSTHAN",jf="FULLWIDTHGREATERTHAN",Gf="AMPERSAND",qf="APOSTROPHE",Wf="ASTERISK",Xs="AT",Kf="BACKSLASH",Qf="BACKTICK",Jf="CARET",ra="COLON",qy="COMMA",Xf="DOLLAR",So="DOT",em="EQUALS",Wy="EXCLAMATION",Mi="HYPHEN",W0="PERCENT",tm="PIPE",nm="PLUS",rm="POUND",K0="QUERY",Ky="QUOTE",b3="FULLWIDTHMIDDLEDOT",Qy="SEMI",wo="SLASH",Q0="TILDE",im="UNDERSCORE",A3="EMOJI",om="SYM";var y3=Object.freeze({__proto__:null,ALPHANUMERICAL:T3,AMPERSAND:Gf,APOSTROPHE:qf,ASCIINUMERICAL:g3,ASTERISK:Wf,AT:Xs,BACKSLASH:Kf,BACKTICK:Qf,CARET:Jf,CLOSEANGLEBRACKET:Yf,CLOSEBRACE:q0,CLOSEBRACKET:Mf,CLOSEPAREN:If,COLON:ra,COMMA:qy,DOLLAR:Xf,DOT:So,EMOJI:A3,EQUALS:em,EXCLAMATION:Wy,FULLWIDTHGREATERTHAN:jf,FULLWIDTHLEFTPAREN:Hf,FULLWIDTHLESSTHAN:Vf,FULLWIDTHMIDDLEDOT:b3,FULLWIDTHRIGHTPAREN:Zf,HYPHEN:Mi,LEFTCORNERBRACKET:Pf,LEFTWHITECORNERBRACKET:Uf,LOCALHOST:Id,NL:Gy,NUM:jy,OPENANGLEBRACKET:Lf,OPENBRACE:G0,OPENBRACKET:Rf,OPENPAREN:Bf,PERCENT:W0,PIPE:tm,PLUS:nm,POUND:rm,QUERY:K0,QUOTE:Ky,RIGHTCORNERBRACKET:$f,RIGHTWHITECORNERBRACKET:zf,SCHEME:Fp,SEMI:Qy,SLASH:wo,SLASH_SCHEME:Sc,SYM:om,TILDE:Q0,TLD:Rb,UNDERSCORE:im,UTLD:Mb,UWORD:kb,WORD:as,WS:Bb});const es=/[a-z]/,g0=new RegExp("\\p{L}","u"),iT=new RegExp("\\p{Emoji}","u"),ts=/\d/,oT=/\s/,p_="\r",sT=`
`,ale="️",lle="‍",aT="";let Gh=null,qh=null;function cle(e=[]){const t={};ri.groups=t;const n=new ri;Gh==null&&(Gh=f_(tle)),qh==null&&(qh=f_(nle)),Ae(n,"'",qf),Ae(n,"{",G0),Ae(n,"}",q0),Ae(n,"[",Rf),Ae(n,"]",Mf),Ae(n,"(",Bf),Ae(n,")",If),Ae(n,"<",Lf),Ae(n,">",Yf),Ae(n,"(",Hf),Ae(n,")",Zf),Ae(n,"「",Pf),Ae(n,"」",$f),Ae(n,"『",Uf),Ae(n,"』",zf),Ae(n,"<",Vf),Ae(n,">",jf),Ae(n,"&",Gf),Ae(n,"*",Wf),Ae(n,"@",Xs),Ae(n,"`",Qf),Ae(n,"^",Jf),Ae(n,":",ra),Ae(n,",",qy),Ae(n,"$",Xf),Ae(n,".",So),Ae(n,"=",em),Ae(n,"!",Wy),Ae(n,"-",Mi),Ae(n,"%",W0),Ae(n,"|",tm),Ae(n,"+",nm),Ae(n,"#",rm),Ae(n,"?",K0),Ae(n,'"',Ky),Ae(n,"/",wo),Ae(n,";",Qy),Ae(n,"~",Q0),Ae(n,"_",im),Ae(n,"\\",Kf),Ae(n,"・",b3);const r=Yn(n,ts,jy,{[Nb]:!0});Yn(r,ts,r);const i=Yn(r,es,g3,{[j0]:!0}),o=Yn(r,g0,T3,{[_0]:!0}),s=Yn(n,es,as,{[Fb]:!0});Yn(s,ts,i),Yn(s,es,s),Yn(i,ts,i),Yn(i,es,i);const a=Yn(n,g0,kb,{[Ob]:!0});Yn(a,es),Yn(a,ts,o),Yn(a,g0,a),Yn(o,ts,o),Yn(o,es),Yn(o,g0,o);const l=Ae(n,sT,Gy,{[rT]:!0}),c=Ae(n,p_,Bb,{[rT]:!0}),u=Yn(n,oT,Bb,{[rT]:!0});Ae(n,aT,u),Ae(c,sT,l),Ae(c,aT,u),Yn(c,oT,u),Ae(u,p_),Ae(u,sT),Yn(u,oT,u),Ae(u,aT,u);const d=Yn(n,iT,A3,{[m3]:!0});Ae(d,"#"),Yn(d,iT,d),Ae(d,ale,d);const h=Ae(d,lle);Ae(h,"#"),Yn(h,iT,d);const p=[[es,s],[ts,i]],m=[[es,null],[g0,a],[ts,o]];for(let b=0;b<Gh.length;b++)Us(n,Gh[b],Rb,as,p);for(let b=0;b<qh.length;b++)Us(n,qh[b],Mb,kb,m);Tl(Rb,{tld:!0,ascii:!0},t),Tl(Mb,{utld:!0,alpha:!0},t),Us(n,"file",Fp,as,p),Us(n,"mailto",Fp,as,p),Us(n,"http",Sc,as,p),Us(n,"https",Sc,as,p),Us(n,"ftp",Sc,as,p),Us(n,"ftps",Sc,as,p),Tl(Fp,{scheme:!0,ascii:!0},t),Tl(Sc,{slashscheme:!0,ascii:!0},t),e=e.sort((b,A)=>b[0]>A[0]?1:-1);for(let b=0;b<e.length;b++){const A=e[b][0],v=e[b][1]?{[rle]:!0}:{[ile]:!0};A.indexOf("-")>=0?v[xb]=!0:es.test(A)?ts.test(A)?v[j0]=!0:v[Fb]=!0:v[Nb]=!0,h_(n,A,A,v)}return h_(n,"localhost",Id,{ascii:!0}),n.jd=new ri(om),{start:n,tokens:Object.assign({groups:t},y3)}}function E3(e,t){const n=ule(t.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,i=[];let o=0,s=0;for(;s<r;){let a=e,l=null,c=0,u=null,d=-1,h=-1;for(;s<r&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,h=0,u=a):d>=0&&(d+=n[s].length,h++),c+=n[s].length,o+=n[s].length,s++;o-=d,s-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function ule(e){const t=[],n=e.length;let r=0;for(;r<n;){let i=e.charCodeAt(r),o,s=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(s),r+=s.length}return t}function Us(e,t,n,r,i){let o;const s=t.length;for(let a=0;a<s-1;a++){const l=t[a];e.j[l]?o=e.j[l]:(o=new ri(r),o.jr=i.slice(),e.j[l]=o),e=o}return o=new ri(n),o.jr=i.slice(),e.j[t[s-1]]=o,o}function f_(e){const t=[],n=[];let r=0,i="0123456789";for(;r<e.length;){let o=0;for(;i.indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let s=parseInt(e.substring(r,r+o),10);s>0;s--)n.pop();r+=o}else n.push(e[r]),r++}return t}const Ld={defaultProtocol:"http",events:null,format:m_,formatHref:m_,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function e1(e,t=null){let n=Object.assign({},Ld);e&&(n=Object.assign(n,e instanceof e1?e.o:e));const r=n.ignoreTags,i=[];for(let o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}e1.prototype={o:Ld,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:Ld[e],typeof i=="function"&&r&&(i=i(t,n))):typeof i=="function"&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r=="function"&&t!=null&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function m_(e){return e}function v3(e,t){this.t="token",this.v=e,this.tk=t}v3.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=Ld.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),s={},a=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return s.href=r,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:i,attributes:s,content:o,eventListeners:d}}};function t1(e,t){class n extends v3{constructor(i,o){super(i,o),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}const g_=t1("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),T_=t1("text"),dle=t1("nl"),Wh=t1("url",{isLink:!0,toHref(e=Ld.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Id&&e[1].t===ra}}),Ri=e=>new ri(e);function hle({groups:e}){const t=e.domain.concat([Gf,Wf,Xs,Kf,Qf,Jf,Xf,em,Mi,jy,W0,tm,nm,rm,wo,om,Q0,im]),n=[qf,ra,qy,So,Wy,W0,K0,Ky,Qy,Lf,Yf,G0,q0,Mf,Rf,Bf,If,Hf,Zf,Pf,$f,Uf,zf,Vf,jf],r=[Gf,qf,Wf,Kf,Qf,Jf,Xf,em,Mi,G0,q0,W0,tm,nm,rm,K0,wo,om,Q0,im],i=Ri(),o=Ae(i,Q0);_t(o,r,o),_t(o,e.domain,o);const s=Ri(),a=Ri(),l=Ri();_t(i,e.domain,s),_t(i,e.scheme,a),_t(i,e.slashscheme,l),_t(s,r,o),_t(s,e.domain,s);const c=Ae(s,Xs);Ae(o,Xs,c),Ae(a,Xs,c),Ae(l,Xs,c);const u=Ae(o,So);_t(u,r,o),_t(u,e.domain,o);const d=Ri();_t(c,e.domain,d),_t(d,e.domain,d);const h=Ae(d,So);_t(h,e.domain,d);const p=Ri(g_);_t(h,e.tld,p),_t(h,e.utld,p),Ae(c,Id,p);const m=Ae(d,Mi);Ae(m,Mi,m),_t(m,e.domain,d),_t(p,e.domain,d),Ae(p,So,h),Ae(p,Mi,m);const b=Ae(p,ra);_t(b,e.numeric,g_);const A=Ae(s,Mi),v=Ae(s,So);Ae(A,Mi,A),_t(A,e.domain,s),_t(v,r,o),_t(v,e.domain,s);const D=Ri(Wh);_t(v,e.tld,D),_t(v,e.utld,D),_t(D,e.domain,s),_t(D,r,o),Ae(D,So,v),Ae(D,Mi,A),Ae(D,Xs,c);const C=Ae(D,ra),S=Ri(Wh);_t(C,e.numeric,S);const O=Ri(Wh),k=Ri();_t(O,t,O),_t(O,n,k),_t(k,t,O),_t(k,n,k),Ae(D,wo,O),Ae(S,wo,O);const Z=Ae(a,ra),W=Ae(l,ra),U=Ae(W,wo),w=Ae(U,wo);_t(a,e.domain,s),Ae(a,So,v),Ae(a,Mi,A),_t(l,e.domain,s),Ae(l,So,v),Ae(l,Mi,A),_t(Z,e.domain,O),Ae(Z,wo,O),Ae(Z,K0,O),_t(w,e.domain,O),_t(w,t,O),Ae(w,wo,O);const z=[[G0,q0],[Rf,Mf],[Bf,If],[Lf,Yf],[Hf,Zf],[Pf,$f],[Uf,zf],[Vf,jf]];for(let V=0;V<z.length;V++){const[L,se]=z[V],J=Ae(O,L);Ae(k,L,J),Ae(J,se,O);const Se=Ri(Wh);_t(J,t,Se);const G=Ri();_t(J,n),_t(Se,t,Se),_t(Se,n,G),_t(G,t,Se),_t(G,n,G),Ae(Se,se,O),Ae(G,se,O)}return Ae(i,Id,D),Ae(i,Gy,dle),{start:i,tokens:y3}}function ple(e,t,n){let r=n.length,i=0,o=[],s=[];for(;i<r;){let a=e,l=null,c=null,u=0,d=null,h=-1;for(;i<r&&!(l=a.go(n[i].t));)s.push(n[i++]);for(;i<r&&(c=l||a.go(n[i].t));)l=null,a=c,a.accepts()?(h=0,d=a):h>=0&&h++,i++,u++;if(h<0)i-=u,i<r&&(s.push(n[i]),i++);else{s.length>0&&(o.push(lT(T_,t,s)),s=[]),i-=h,u-=h;const p=d.t,m=n.slice(i-u,i);o.push(lT(p,t,m))}}return s.length>0&&o.push(lT(T_,t,s)),o}function lT(e,t,n){const r=n[0].s,i=n[n.length-1].e,o=t.slice(r,i);return new e(o,n)}const fle=typeof console<"u"&&console&&console.warn||(()=>{}),mle="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",_n={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function gle(){return ri.groups={},_n.scanner=null,_n.parser=null,_n.tokenQueue=[],_n.pluginQueue=[],_n.customSchemes=[],_n.initialized=!1,_n}function b_(e,t=!1){if(_n.initialized&&fle(`linkifyjs: already initialized - will not register custom scheme "${e}" ${mle}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
3. "-" cannot repeat`);_n.customSchemes.push([e,t])}function Tle(){_n.scanner=cle(_n.customSchemes);for(let e=0;e<_n.tokenQueue.length;e++)_n.tokenQueue[e][1]({scanner:_n.scanner});_n.parser=hle(_n.scanner.tokens);for(let e=0;e<_n.pluginQueue.length;e++)_n.pluginQueue[e][1]({scanner:_n.scanner,parser:_n.parser});return _n.initialized=!0,_n}function n1(e){return _n.initialized||Tle(),ple(_n.parser.start,e,E3(_n.scanner.start,e))}n1.scan=E3;function D3(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const r=new e1(n),i=n1(e),o=[];for(let s=0;s<i.length;s++){const a=i[s];a.isLink&&(!t||a.t===t)&&r.check(a)&&o.push(a.toFormattedObject(r))}return o}function S3(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ble(e){return e.replace(/"/g,"&quot;")}function Ale(e){const t=[];for(const n in e){let r=e[n]+"";t.push(`${n}="${ble(r)}"`)}return t.join(" ")}function yle(e){let{tagName:t,attributes:n,content:r}=e;return`<${t} ${Ale(n)}>${S3(r)}</${t}>`}function Ele(e,t){t===void 0&&(t={}),t=new e1(t,yle);const n=n1(e),r=[];for(let i=0;i<n.length;i++){const o=n[i];o.t==="nl"&&t.get("nl2br")?r.push(`<br>
`):!o.isLink||!t.check(o)?r.push(S3(o.toString())):r.push(t.render(o))}return r.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return Ele(this,e)}}),Et(lB);var vle=["0","1","2","3","4","5","6","7","8","9","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","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],C0=e=>{let t=0;for(let n=0;n<e.length;n++){let r=e[n],i=vle.indexOf(r);t=t*83+i}return t},cT=e=>{let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},uT=e=>{let t=Math.max(0,Math.min(1,e));return t<=.0031308?Math.trunc(t*12.92*255+.5):Math.trunc((1.055*Math.pow(t,.4166666666666667)-.055)*255+.5)},Dle=e=>e<0?-1:1,dT=(e,t)=>Dle(e)*Math.pow(Math.abs(e),t),A_=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},Sle=e=>{if(!e||e.length<6)throw new A_("The blurhash string must be at least 6 characters");let t=C0(e[0]),n=Math.floor(t/9)+1,r=t%9+1;if(e.length!==4+2*r*n)throw new A_(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*r*n}`)},wle=e=>{let t=e>>16,n=e>>8&255,r=e&255;return[cT(t),cT(n),cT(r)]},_le=(e,t)=>{let n=Math.floor(e/361),r=Math.floor(e/19)%19,i=e%19;return[dT((n-9)/9,2)*t,dT((r-9)/9,2)*t,dT((i-9)/9,2)*t]},Cle=(e,t,n,r)=>{Sle(e),r=r|1;let i=C0(e[0]),o=Math.floor(i/9)+1,s=i%9+1,a=(C0(e[1])+1)/166,l=new Array(s*o);for(let d=0;d<l.length;d++)if(d===0){let h=C0(e.substring(2,6));l[d]=wle(h)}else{let h=C0(e.substring(4+d*2,6+d*2));l[d]=_le(h,a*r)}let c=t*4,u=new Uint8ClampedArray(c*n);for(let d=0;d<n;d++)for(let h=0;h<t;h++){let p=0,m=0,b=0;for(let C=0;C<o;C++)for(let S=0;S<s;S++){let O=Math.cos(Math.PI*h*S/t)*Math.cos(Math.PI*d*C/n),k=l[S+C*s];p+=k[0]*O,m+=k[1]*O,b+=k[2]*O}let A=uT(p),v=uT(m),D=uT(b);u[4*h+0+d*c]=A,u[4*h+1+d*c]=v,u[4*h+2+d*c]=D,u[4*h+3+d*c]=255}return u},Nle=Cle,y_={exports:{}},E_;function Fle(){return E_||(E_=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new i(u,d||l,h),m=n?n+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],c,u;if(this._eventsCount===0)return l;for(u in c=this._events)t.call(c,u)&&l.push(n?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},a.prototype.listeners=function(l){var c=n?n+l:l,u=this._events[c];if(!u)return[];if(u.fn)return[u.fn];for(var d=0,h=u.length,p=new Array(h);d<h;d++)p[d]=u[d].fn;return p},a.prototype.listenerCount=function(l){var c=n?n+l:l,u=this._events[c];return u?u.fn?1:u.length:0},a.prototype.emit=function(l,c,u,d,h,p){var m=n?n+l:l;if(!this._events[m])return!1;var b=this._events[m],A=arguments.length,v,D;if(b.fn){switch(b.once&&this.removeListener(l,b.fn,void 0,!0),A){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,c),!0;case 3:return b.fn.call(b.context,c,u),!0;case 4:return b.fn.call(b.context,c,u,d),!0;case 5:return b.fn.call(b.context,c,u,d,h),!0;case 6:return b.fn.call(b.context,c,u,d,h,p),!0}for(D=1,v=new Array(A-1);D<A;D++)v[D-1]=arguments[D];b.fn.apply(b.context,v)}else{var C=b.length,S;for(D=0;D<C;D++)switch(b[D].once&&this.removeListener(l,b[D].fn,void 0,!0),A){case 1:b[D].fn.call(b[D].context);break;case 2:b[D].fn.call(b[D].context,c);break;case 3:b[D].fn.call(b[D].context,c,u);break;case 4:b[D].fn.call(b[D].context,c,u,d);break;default:if(!v)for(S=1,v=new Array(A-1);S<A;S++)v[S-1]=arguments[S];b[D].fn.apply(b[D].context,v)}}return!0},a.prototype.on=function(l,c,u){return o(this,l,c,u,!1)},a.prototype.once=function(l,c,u){return o(this,l,c,u,!0)},a.prototype.removeListener=function(l,c,u,d){var h=n?n+l:l;if(!this._events[h])return this;if(!c)return s(this,h),this;var p=this._events[h];if(p.fn)p.fn===c&&(!d||p.once)&&(!u||p.context===u)&&s(this,h);else{for(var m=0,b=[],A=p.length;m<A;m++)(p[m].fn!==c||d&&!p[m].once||u&&p[m].context!==u)&&b.push(p[m]);b.length?this._events[h]=b.length===1?b[0]:b:s(this,h)}return this},a.prototype.removeAllListeners=function(l){var c;return l?(c=n?n+l:l,this._events[c]&&s(this,c)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(y_)),y_.exports}var Ole=Fle();const xle=$l(Ole);class w3 extends Error{constructor(t){super(t),this.name="TimeoutError"}}class kle extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const v_=e=>globalThis.DOMException===void 0?new kle(e):new DOMException(e),D_=e=>{const t=e.reason===void 0?v_("This operation was aborted."):e.reason;return t instanceof Error?t:v_(t)};function Rle(e,t){const{milliseconds:n,fallback:r,message:i,customTimers:o={setTimeout,clearTimeout}}=t;let s,a;const l=new Promise((c,u)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:h}=t;h.aborted&&u(D_(h)),a=()=>{u(D_(h))},h.addEventListener("abort",a,{once:!0})}if(n===Number.POSITIVE_INFINITY){e.then(c,u);return}const d=new w3;s=o.setTimeout.call(void 0,()=>{if(r){try{c(r())}catch(h){u(h)}return}typeof e.cancel=="function"&&e.cancel(),i===!1?c():i instanceof Error?u(i):(d.message=i??`Promise timed out after ${n} milliseconds`,u(d))},n),(async()=>{try{c(await e)}catch(h){u(h)}})()}).finally(()=>{l.clear(),a&&t.signal&&t.signal.removeEventListener("abort",a)});return l.clear=()=>{o.clearTimeout.call(void 0,s),s=void 0},l}function Mle(e,t,n){let r=0,i=e.length;for(;i>0;){const o=Math.trunc(i/2);let s=r+o;n(e[s],t)<=0?(r=++s,i-=o+1):i=o}return r}class Ble{#e=[];enqueue(t,n){n={priority:0,...n};const r={priority:n.priority,id:n.id,run:t};if(this.size===0||this.#e[this.size-1].priority>=n.priority){this.#e.push(r);return}const i=Mle(this.#e,r,(o,s)=>s.priority-o.priority);this.#e.splice(i,0,r)}setPriority(t,n){const r=this.#e.findIndex(o=>o.id===t);if(r===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[i]=this.#e.splice(r,1);this.enqueue(i.run,{priority:n,id:t})}dequeue(){return this.#e.shift()?.run}filter(t){return this.#e.filter(n=>n.priority===t.priority).map(n=>n.run)}get size(){return this.#e.length}}class Ile extends xle{#e;#t;#i=0;#a;#n;#c=0;#o;#s;#r;#m;#l=0;#d;#u;#g;#A=1n;timeout;constructor(t){if(super(),t={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Ble,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${t.intervalCap?.toString()??""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${t.interval?.toString()??""}\` (${typeof t.interval})`);this.#e=t.carryoverConcurrencyCount,this.#t=t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,this.#a=t.intervalCap,this.#n=t.interval,this.#r=new t.queueClass,this.#m=t.queueClass,this.concurrency=t.concurrency,this.timeout=t.timeout,this.#g=t.throwOnTimeout===!0,this.#u=t.autoStart===!1}get#y(){return this.#t||this.#i<this.#a}get#E(){return this.#l<this.#d}#v(){this.#l--,this.#h(),this.emit("next")}#D(){this.#b(),this.#T(),this.#s=void 0}get#S(){const t=Date.now();if(this.#o===void 0){const n=this.#c-t;if(n<0)this.#i=this.#e?this.#l:0;else return this.#s===void 0&&(this.#s=setTimeout(()=>{this.#D()},n)),!0}return!1}#h(){if(this.#r.size===0)return this.#o&&clearInterval(this.#o),this.#o=void 0,this.emit("empty"),this.#l===0&&this.emit("idle"),!1;if(!this.#u){const t=!this.#S;if(this.#y&&this.#E){const n=this.#r.dequeue();return n?(this.emit("active"),n(),t&&this.#T(),!0):!1}}return!1}#T(){this.#t||this.#o!==void 0||(this.#o=setInterval(()=>{this.#b()},this.#n),this.#c=Date.now()+this.#n)}#b(){this.#i===0&&this.#l===0&&this.#o&&(clearInterval(this.#o),this.#o=void 0),this.#i=this.#e?this.#l:0,this.#p()}#p(){for(;this.#h(););}get concurrency(){return this.#d}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this.#d=t,this.#p()}async#w(t){return new Promise((n,r)=>{t.addEventListener("abort",()=>{r(t.reason)},{once:!0})})}setPriority(t,n){this.#r.setPriority(t,n)}async add(t,n={}){return n.id??=(this.#A++).toString(),n={timeout:this.timeout,throwOnTimeout:this.#g,...n},new Promise((r,i)=>{this.#r.enqueue(async()=>{this.#l++,this.#i++;try{n.signal?.throwIfAborted();let o=t({signal:n.signal});n.timeout&&(o=Rle(Promise.resolve(o),{milliseconds:n.timeout})),n.signal&&(o=Promise.race([o,this.#w(n.signal)]));const s=await o;r(s),this.emit("completed",s)}catch(o){if(o instanceof w3&&!n.throwOnTimeout){r();return}i(o),this.emit("error",o)}finally{this.#v()}},n),this.emit("add"),this.#h()})}async addAll(t,n){return Promise.all(t.map(async r=>this.add(r,n)))}start(){return this.#u?(this.#u=!1,this.#p(),this):this}pause(){this.#u=!0}clear(){this.#r=new this.#m}async onEmpty(){this.#r.size!==0&&await this.#f("empty")}async onSizeLessThan(t){this.#r.size<t||await this.#f("next",()=>this.#r.size<t)}async onIdle(){this.#l===0&&this.#r.size===0||await this.#f("idle")}async#f(t,n){return new Promise(r=>{const i=()=>{n&&!n()||(this.off(t,i),r())};this.on(t,i)})}get size(){return this.#r.size}sizeBy(t){return this.#r.filter(t).length}get pending(){return this.#l}get isPaused(){return this.#u}}const Lle=new Ile({concurrency:5});function Yle(e){const{resolve:t,promise:n}=Promise.withResolvers();return Lle.add(()=>{const r=new Image;return r.onerror=()=>t(!1),r.onload=()=>t(!0),r.src=e,n}),n}const Hle="_fadeTransition_13rtj_2",Zle="_fadeTransitionActive_13rtj_6",Ple={fadeTransition:Hle,fadeTransitionActive:Zle},$le={__name:"NcBlurHash",props:{hash:{required:!0,type:String},alt:{type:String,default:""},src:{type:String,default:""}},emits:["load"],setup(e,{emit:t}){const n=e,r=pi(),i=pi(!1);ma(()=>n.hash,o),ma(i,()=>{i.value===!1&&nN(()=>o())},{immediate:!0}),ma(()=>n.src,()=>{i.value=!1,n.src&&Yle(n.src).then(s=>{i.value=s,t("load",s)})},{immediate:!0});function o(){if(i.value)return;if(!n.hash){Z0.error("Invalid BlurHash value");return}if(r.value===void 0){Z0.error("BlurHash canvas not available");return}const{height:s,width:a}=r.value,l=Nle(n.hash,a,s),c=r.value.getContext("2d");if(c===null){Z0.error("Cannot create context for BlurHash canvas");return}const u=c.createImageData(a,s);u.data.set(l),c.putImageData(u,0,0)}return{__sfc:!0,props:n,emit:t,canvas:r,imageLoaded:i,drawBlurHash:o}}};var Ule=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("Transition",{attrs:{css:e.src?void 0:!1,"enter-active-class":e.$style.fadeTransition,"leave-active-class":e.$style.fadeTransition,"enter-class":e.$style.fadeTransitionActive,"leave-to-class":e.$style.fadeTransitionActive}},[n.imageLoaded?t("img",{attrs:{alt:e.alt,src:e.src}}):t("canvas",{ref:"canvas",attrs:{"aria-hidden":e.alt?null:"true","aria-label":e.alt}})])},zle=[];const S_={$style:Ple};function Vle(e){for(var t in S_)this[t]=S_[t]}var jle=ut($le,Ule,zle,!1,Vle,null);const Gle=jle.exports;Et(cB),Et(uB),Et(dB);const qle={name:"NcCounterBubble",props:{type:{type:String,default:"",validator(e){return["highlighted","outlined",""].includes(e)}},active:{type:Boolean,default:!1},count:{type:Number,required:!1,default:void 0},raw:{type:Boolean,required:!1,default:!1}},computed:{counterClassObject(){return{"counter-bubble__counter--highlighted":this.type==="highlighted","counter-bubble__counter--outlined":this.type==="outlined",active:this.active}},humanizedCount(){return this.humanizeCount(this.count)}},methods:{humanizeCount(e){return this.raw?e.toString():new Intl.NumberFormat(Ma(),{notation:"compact",compactDisplay:"short"}).format(e)},getHumanizedCount(){if(this.count!==void 0)return{humanized:this.humanizedCount,original:this.count.toString()};if(!this.raw&&this.$slots.default?.length===1){const e=this.$slots.default[0].text?.trim();if(e&&/^\d+$/.test(e)){const t=parseInt(e,10);return{humanized:this.humanizeCount(t),original:e}}}}},render(e){const t=this.getHumanizedCount();return e("div",{staticClass:"counter-bubble__counter",class:this.counterClassObject,attrs:{title:t&&t.original!==t.humanized?t.original:void 0}},[t?.humanized??this.$slots.default])}},Wle=null,Kle=null;var Qle=ut(qle,Wle,Kle,!1,null,"f1abaa29");const Jle=Qle.exports;Et(hB),me("More items …"),Et(pB);const Xle={long:me("a few seconds ago"),short:me("seconds ago"),narrow:me("sec. ago")};function Bbe(e=Date.now(),t={}){let n;const r=bs(()=>new Date(pl(e))),i=bs(()=>{const{language:a,relativeTime:l,ignoreSeconds:c}=pl(t);return{...a&&{language:a},...l&&{relativeTime:l},ignoreSeconds:c?Xle[l||"long"]:!1}}),o=pi("");RB(()=>s());function s(){if(o.value=b6(r.value,i.value),pl(t).update!==!1){const a=Math.abs(Date.now()-new Date(pl(e)).getTime()),l=a>12e4||i.value.ignoreSeconds?Math.min(a/60,18e5):1e3;n=window.setTimeout(s,l)}}return MB(()=>n&&window.clearTimeout(n)),gu(o)}function Ibe(e,t){const n=bs(()=>({locale:Ma(),format:{dateStyle:"short",timeStyle:"medium"},...pl(t)})),r=bs(()=>new Intl.DateTimeFormat(n.value.locale,n.value.format));return bs(()=>r.value.format(pl(e)))}class r1{static fromString(t){return new r1(t)}constructor(t){this.value=t}icaltype="binary";decodeValue(){return this._b64_decode(this.value)}setEncodedValue(t){this.value=this._b64_encode(t)}_b64_encode(t){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,i,o,s,a,l,c,u,d=0,h=0,p="",m=[];if(!t)return t;do r=t.charCodeAt(d++),i=t.charCodeAt(d++),o=t.charCodeAt(d++),u=r<<16|i<<8|o,s=u>>18&63,a=u>>12&63,l=u>>6&63,c=u&63,m[h++]=n.charAt(s)+n.charAt(a)+n.charAt(l)+n.charAt(c);while(d<t.length);p=m.join("");let b=t.length%3;return(b?p.slice(0,b-3):p)+"===".slice(b||3)}_b64_decode(t){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,i,o,s,a,l,c,u,d=0,h=0,p="",m=[];if(!t)return t;t+="";do s=n.indexOf(t.charAt(d++)),a=n.indexOf(t.charAt(d++)),l=n.indexOf(t.charAt(d++)),c=n.indexOf(t.charAt(d++)),u=s<<18|a<<12|l<<6|c,r=u>>16&255,i=u>>8&255,o=u&255,l==64?m[h++]=String.fromCharCode(r):c==64?m[h++]=String.fromCharCode(r,i):m[h++]=String.fromCharCode(r,i,o);while(d<t.length);return p=m.join(""),p}toString(){return this.value}}const ece=/([PDWHMTS]{1,1})/,tce=["weeks","days","hours","minutes","seconds","isNegative"];class xr{static fromSeconds(t){return new xr().fromSeconds(t)}static isValueString(t){return t[0]==="P"||t[1]==="P"}static fromString(t){let n=0,r=Object.create(null),i=0;for(;(n=t.search(ece))!==-1;){let o=t[n],s=t.slice(0,Math.max(0,n));t=t.slice(n+1),i+=nce(o,s,r)}if(i<2)throw new Error('invalid duration value: Not enough duration components in "'+t+'"');return new xr(r)}static fromData(t){return new xr(t)}constructor(t){this.wrappedJSObject=this,this.fromData(t)}weeks=0;days=0;hours=0;minutes=0;seconds=0;isNegative=!1;icalclass="icalduration";icaltype="duration";clone(){return xr.fromData(this)}toSeconds(){let t=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-t:t}fromSeconds(t){let n=Math.abs(t);return this.isNegative=t<0,this.days=dr(n/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,n-=(this.days+7*this.weeks)*86400,this.hours=dr(n/3600),n-=this.hours*3600,this.minutes=dr(n/60),n-=this.minutes*60,this.seconds=n,this}fromData(t){for(let n of tce)t&&n in t?this[n]=t[n]:this[n]=0}reset(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0}compare(t){let n=this.toSeconds(),r=t.toSeconds();return(n>r)-(n<r)}normalize(){this.fromSeconds(this.toSeconds())}toString(){if(this.toSeconds()==0)return"PT0S";{let t="";return this.isNegative&&(t+="-"),t+="P",this.weeks&&(t+=this.weeks+"W"),this.days&&(t+=this.days+"D"),(this.hours||this.minutes||this.seconds)&&(t+="T",this.hours&&(t+=this.hours+"H"),this.minutes&&(t+=this.minutes+"M"),this.seconds&&(t+=this.seconds+"S")),t}}toICALString(){return this.toString()}}function nce(e,t,n){let r;switch(e){case"P":t&&t==="-"?n.isNegative=!0:n.isNegative=!1;break;case"D":r="days";break;case"W":r="weeks";break;case"H":r="hours";break;case"M":r="minutes";break;case"S":r="seconds";break;default:return 0}if(r){if(!t&&t!==0)throw new Error('invalid duration value: Missing number before "'+e+'"');let i=parseInt(t,10);if(Yd(i))throw new Error('invalid duration value: Invalid number "'+t+'" before "'+e+'"');n[r]=i}return 1}class he{static _dowCache={};static _wnCache={};static daysInMonth(t,n){let r=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=30;return t<1||t>12||(i=r[t],t==2&&(i+=he.isLeapYear(n))),i}static isLeapYear(t){return t<=1752?t%4==0:t%4==0&&t%100!=0||t%400==0}static fromDayOfYear(t,n){let r=n,i=t,o=new he;o.auto_normalize=!1;let s=he.isLeapYear(r)?1:0;if(i<1)return r--,s=he.isLeapYear(r)?1:0,i+=he.daysInYearPassedMonth[s][12],he.fromDayOfYear(i,r);if(i>he.daysInYearPassedMonth[s][12])return s=he.isLeapYear(r)?1:0,i-=he.daysInYearPassedMonth[s][12],r++,he.fromDayOfYear(i,r);o.year=r,o.isDate=!0;for(let a=11;a>=0;a--)if(i>he.daysInYearPassedMonth[s][a]){o.month=a+1,o.day=i-he.daysInYearPassedMonth[s][a];break}return o.auto_normalize=!0,o}static fromStringv2(t){return new he({year:parseInt(t.slice(0,4),10),month:parseInt(t.slice(5,7),10),day:parseInt(t.slice(8,10),10),isDate:!0})}static fromDateString(t){return new he({year:Cr(t.slice(0,4)),month:Cr(t.slice(5,7)),day:Cr(t.slice(8,10)),isDate:!0})}static fromDateTimeString(t,n){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');let r,i;t[19]&&t[19]==="Z"?r=dn.utcTimezone:n&&(i=n.getParameter("tzid"),n.parent&&(n.parent.name==="standard"||n.parent.name==="daylight"?r=dn.localTimezone:i&&(r=n.parent.getTimeZoneByID(i))));const o={year:Cr(t.slice(0,4)),month:Cr(t.slice(5,7)),day:Cr(t.slice(8,10)),hour:Cr(t.slice(11,13)),minute:Cr(t.slice(14,16)),second:Cr(t.slice(17,19))};return i&&!r&&(o.timezone=i),new he(o,r)}static fromString(t,n){return t.length>10?he.fromDateTimeString(t,n):he.fromDateString(t)}static fromJSDate(t,n){return new he().fromJSDate(t,n)}static fromData=function(t,n){return new he().fromData(t,n)};static now(){return he.fromJSDate(new Date,!1)}static weekOneStarts(t,n){let r=he.fromData({year:t,month:1,day:1,isDate:!0}),i=r.dayOfWeek(),o=n||he.DEFAULT_WEEK_START;return i>he.THURSDAY&&(r.day+=7),o>he.THURSDAY&&(r.day-=7),r.day-=i-o,r}static getDominicalLetter(t){let n="GFEDCBA",r=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return he.isLeapYear(t)?n[(r+6)%7]+n[r]:n[r]}static#e=null;static get epochTime(){return this.#e||(this.#e=he.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"})),this.#e}static _cmp_attr(t,n,r){return t[r]>n[r]?1:t[r]<n[r]?-1:0}static daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]];static SUNDAY=1;static MONDAY=2;static TUESDAY=3;static WEDNESDAY=4;static THURSDAY=5;static FRIDAY=6;static SATURDAY=7;static DEFAULT_WEEK_START=2;constructor(t,n){this.wrappedJSObject=this;let r=this._time=Object.create(null);r.year=0,r.month=1,r.day=1,r.hour=0,r.minute=0,r.second=0,r.isDate=!1,this.fromData(t,n)}icalclass="icaltime";_cachedUnixTime=null;get icaltype(){return this.isDate?"date":"date-time"}zone=null;_pendingNormalization=!1;clone(){return new he(this._time,this.zone)}reset(){this.fromData(he.epochTime),this.zone=dn.utcTimezone}resetTo(t,n,r,i,o,s,a){this.fromData({year:t,month:n,day:r,hour:i,minute:o,second:s,zone:a})}fromJSDate(t,n){return t?n?(this.zone=dn.utcTimezone,this.year=t.getUTCFullYear(),this.month=t.getUTCMonth()+1,this.day=t.getUTCDate(),this.hour=t.getUTCHours(),this.minute=t.getUTCMinutes(),this.second=t.getUTCSeconds()):(this.zone=dn.localTimezone,this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate(),this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds()):this.reset(),this._cachedUnixTime=null,this}fromData(t,n){if(t)for(let[r,i]of Object.entries(t))r!=="icaltype"&&(this[r]=i);if(n&&(this.zone=n),t&&!("isDate"in t)?this.isDate=!("hour"in t):t&&"isDate"in t&&(this.isDate=t.isDate),t&&"timezone"in t){let r=sm.get(t.timezone);this.zone=r||dn.localTimezone}return t&&"zone"in t&&(this.zone=t.zone),this.zone||(this.zone=dn.localTimezone),this._cachedUnixTime=null,this}dayOfWeek(t){let n=t||he.SUNDAY,r=(this.year<<12)+(this.month<<8)+(this.day<<3)+n;if(r in he._dowCache)return he._dowCache[r];let i=this.day,o=this.month+(this.month<3?12:0),s=this.year-(this.month<3?1:0),a=i+s+dr((o+1)*26/10)+dr(s/4);return a+=dr(s/100)*6+dr(s/400),a=(a+7-n)%7+1,he._dowCache[r]=a,a}dayOfYear(){let t=he.isLeapYear(this.year)?1:0;return he.daysInYearPassedMonth[t][this.month-1]+this.day}startOfWeek(t){let n=t||he.SUNDAY,r=this.clone();return r.day-=(this.dayOfWeek()+7-n)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}endOfWeek(t){let n=t||he.SUNDAY,r=this.clone();return r.day+=(7-this.dayOfWeek()+n-he.SUNDAY)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}startOfMonth(){let t=this.clone();return t.day=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}endOfMonth(){let t=this.clone();return t.day=he.daysInMonth(t.month,t.year),t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}startOfYear(){let t=this.clone();return t.day=1,t.month=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}endOfYear(){let t=this.clone();return t.day=31,t.month=12,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t}startDoyWeek(t){let n=t||he.SUNDAY,r=this.dayOfWeek()-n;return r<0&&(r+=7),this.dayOfYear()-r}getDominicalLetter(){return he.getDominicalLetter(this.year)}nthWeekDay(t,n){let r=he.daysInMonth(this.month,this.year),i,o=n,s=0,a=this.clone();if(o>=0){a.day=1,o!=0&&o--,s=a.day;let l=a.dayOfWeek(),c=t-l;c<0&&(c+=7),s+=c,s-=t,i=t}else{a.day=r;let l=a.dayOfWeek();o++,i=l-t,i<0&&(i+=7),i=r-i}return i+=o*7,s+i}isNthWeekDay(t,n){let r=this.dayOfWeek();return n===0&&r===t||this.nthWeekDay(t,n)===this.day}weekNumber(t){let n=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(n in he._wnCache)return he._wnCache[n];let r,i=this.clone();i.isDate=!0;let o=this.year;i.month==12&&i.day>25?(r=he.weekOneStarts(o+1,t),i.compare(r)<0?r=he.weekOneStarts(o,t):o++):(r=he.weekOneStarts(o,t),i.compare(r)<0&&(r=he.weekOneStarts(--o,t)));let s=i.subtractDate(r).toSeconds()/86400,a=dr(s/7)+1;return he._wnCache[n]=a,a}addDuration(t){let n=t.isNegative?-1:1,r=this.second,i=this.minute,o=this.hour,s=this.day;r+=n*t.seconds,i+=n*t.minutes,o+=n*t.hours,s+=n*t.days,s+=n*7*t.weeks,this.second=r,this.minute=i,this.hour=o,this.day=s,this._cachedUnixTime=null}subtractDate(t){let n=this.toUnixTime()+this.utcOffset(),r=t.toUnixTime()+t.utcOffset();return xr.fromSeconds(n-r)}subtractDateTz(t){let n=this.toUnixTime(),r=t.toUnixTime();return xr.fromSeconds(n-r)}compare(t){let n=this.toUnixTime(),r=t.toUnixTime();return n>r?1:r>n?-1:0}compareDateOnlyTz(t,n){let r=this.convertToZone(n),i=t.convertToZone(n),o=0;return(o=he._cmp_attr(r,i,"year"))!=0||(o=he._cmp_attr(r,i,"month"))!=0||(o=he._cmp_attr(r,i,"day"))!=0,o}convertToZone(t){let n=this.clone(),r=this.zone.tzid==t.tzid;return!this.isDate&&!r&&dn.convert_time(n,this.zone,t),n.zone=t,n}utcOffset(){return this.zone==dn.localTimezone||this.zone==dn.utcTimezone?0:this.zone.utcOffset(this)}toICALString(){let t=this.toString();return t.length>10?mr.icalendar.value["date-time"].toICAL(t):mr.icalendar.value.date.toICAL(t)}toString(){let t=this.year+"-"+ii(this.month)+"-"+ii(this.day);return this.isDate||(t+="T"+ii(this.hour)+":"+ii(this.minute)+":"+ii(this.second),this.zone===dn.utcTimezone&&(t+="Z")),t}toJSDate(){return this.zone==dn.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(this.toUnixTime()*1e3)}_normalize(){return this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this}adjust(t,n,r,i,o){let s,a,l=0,c=0,u,d,h,p,m,b=o||this._time;if(b.isDate||(u=b.second+i,b.second=u%60,s=dr(u/60),b.second<0&&(b.second+=60,s--),d=b.minute+r+s,b.minute=d%60,a=dr(d/60),b.minute<0&&(b.minute+=60,a--),h=b.hour+n+a,b.hour=h%24,l=dr(h/24),b.hour<0&&(b.hour+=24,l--)),b.month>12?c=dr((b.month-1)/12):b.month<1&&(c=dr(b.month/12)-1),b.year+=c,b.month-=12*c,p=b.day+t+l,p>0)for(;m=he.daysInMonth(b.month,b.year),!(p<=m);)b.month++,b.month>12&&(b.year++,b.month=1),p-=m;else for(;p<=0;)b.month==1?(b.year--,b.month=12):b.month--,p+=he.daysInMonth(b.month,b.year);return b.day=p,this._cachedUnixTime=null,this}fromUnixTime(t){this.zone=dn.utcTimezone;let n=new Date(t*1e3);this.year=n.getUTCFullYear(),this.month=n.getUTCMonth()+1,this.day=n.getUTCDate(),this._time.isDate?(this.hour=0,this.minute=0,this.second=0):(this.hour=n.getUTCHours(),this.minute=n.getUTCMinutes(),this.second=n.getUTCSeconds()),this._cachedUnixTime=null}toUnixTime(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;let t=this.utcOffset(),n=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-t);return this._cachedUnixTime=n/1e3,this._cachedUnixTime}toJSON(){let t=["year","month","day","hour","minute","second","isDate"],n=Object.create(null),r=0,i=t.length,o;for(;r<i;r++)o=t[r],n[o]=this[o];return this.zone&&(n.timezone=this.zone.tzid),n}}(function(){function e(t){Object.defineProperty(he.prototype,t,{get:function(){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[t]},set:function(n){t==="isDate"&&n&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[t]=n}})}e("year"),e("month"),e("day"),e("hour"),e("minute"),e("second"),e("isDate")})();const rce=/[^ \t]/,Kh=":",hT=";",ice="=",oce="unknown",sce="text",ace={"^'":'"',"^n":`
`,"^^":"^"};function Wt(e){let t={},n=t.component=[];if(t.stack=[n],Wt._eachLine(e,function(r,i){Wt._handleContentLine(i,t)}),t.stack.length>1)throw new ll("invalid ical body. component began but did not end");return t=null,n.length==1?n[0]:n}Wt.property=function(e,t){let n={component:[[],[]],designSet:t||mr.defaultSet};return Wt._handleContentLine(e,n),n.component[1][0]},Wt.component=function(e){return Wt(e)};class ll extends Error{name=this.constructor.name}Wt.ParserError=ll,Wt._handleContentLine=function(e,t){let n=e.indexOf(Kh),r=e.indexOf(hT),i,o,s,a,l={};r!==-1&&n!==-1&&r>n&&(r=-1);let c;if(r!==-1){if(s=e.slice(0,Math.max(0,r)).toLowerCase(),c=Wt._parseParameters(e.slice(Math.max(0,r)),0,t.designSet),c[2]==-1)throw new ll("Invalid parameters in '"+e+"'");if(l=c[0],i=c[1].length+c[2]+r,(o=e.slice(Math.max(0,i)).indexOf(Kh))!==-1)a=e.slice(Math.max(0,i+o+1));else throw new ll("Missing parameter value in '"+e+"'")}else if(n!==-1){if(s=e.slice(0,Math.max(0,n)).toLowerCase(),a=e.slice(Math.max(0,n+1)),s==="begin"){let v=[a.toLowerCase(),[],[]];t.stack.length===1?t.component.push(v):t.component[2].push(v),t.stack.push(t.component),t.component=v,t.designSet||(t.designSet=mr.getDesignSet(t.component[0]));return}else if(s==="end"){t.component=t.stack.pop();return}}else throw new ll('invalid line (no token ";" or ":") "'+e+'"');let u,d=!1,h=!1,p,m,b;t.designSet.propertyGroups&&s.indexOf(".")!==-1?(m=s.split("."),l.group=m[0],b=m[1]):b=s,b in t.designSet.property&&(p=t.designSet.property[b],"multiValue"in p&&(d=p.multiValue),"structuredValue"in p&&(h=p.structuredValue),a&&"detectType"in p&&(u=p.detectType(a))),u||("value"in l?u=l.value.toLowerCase():p?u=p.defaultType:u=oce),delete l.value;let A;d&&h?(a=Wt._parseMultiValue(a,h,u,[],d,t.designSet,h),A=[b,l,u,a]):d?(A=[b,l,u],Wt._parseMultiValue(a,d,u,A,null,t.designSet,!1)):h?(a=Wt._parseMultiValue(a,h,u,[],null,t.designSet,h),A=[b,l,u,a]):(a=Wt._parseValue(a,u,t.designSet,!1),A=[b,l,u,a]),t.component[0]==="vcard"&&t.component[1].length===0&&!(s==="version"&&a==="4.0")&&(t.designSet=mr.getDesignSet("vcard3")),t.component[1].push(A)},Wt._parseValue=function(e,t,n,r){return t in n.value&&"fromICAL"in n.value[t]?n.value[t].fromICAL(e,r):e},Wt._parseParameters=function(e,t,n){let r=t,i=0,o=ice,s={},a,l,c,u=-1,d,h,p;for(;i!==!1&&(i=e.indexOf(o,i+1))!==-1;){if(a=e.slice(r+1,i),a.length==0)throw new ll("Empty parameter name in '"+e+"'");if(l=a.toLowerCase(),p=!1,h=!1,l in n.param&&n.param[l].valueType?d=n.param[l].valueType:d=sce,l in n.param&&(h=n.param[l].multiValue,n.param[l].multiValueSeparateDQuote&&(p=Wt._rfc6868Escape('"'+h+'"'))),e[i+1]==='"'){if(u=i+2,i=e.indexOf('"',u),h&&i!=-1){let A=!0;for(;A;)e[i+1]==h&&e[i+2]=='"'?i=e.indexOf('"',i+3):A=!1}if(i===-1)throw new ll('invalid line (no matching double quote) "'+e+'"');c=e.slice(u,i),r=e.indexOf(hT,i);let b=e.indexOf(Kh,i);(r===-1||b!==-1&&r>b)&&(i=!1)}else{u=i+1;let b=e.indexOf(hT,u),A=e.indexOf(Kh,u);A!==-1&&b>A?(b=A,i=!1):b===-1?(A===-1?b=e.length:b=A,i=!1):(r=b,i=b),c=e.slice(u,b)}const m=c.length;if(c=Wt._rfc6868Escape(c),u+=m-c.length,h){let b=p||h;c=Wt._parseMultiValue(c,b,d,[],null,n)}else c=Wt._parseValue(c,d,n);h&&l in s?Array.isArray(s[l])?s[l].push(c):s[l]=[s[l],c]:s[l]=c}return[s,c,u]},Wt._rfc6868Escape=function(e){return e.replace(/\^['n^]/g,function(t){return ace[t]})},Wt._parseMultiValue=function(e,t,n,r,i,o,s){let a=0,l=0,c;if(t.length===0)return e;for(;(a=_3(e,t,l))!==-1;)c=e.slice(l,a),i?c=Wt._parseMultiValue(c,i,n,[],null,o,s):c=Wt._parseValue(c,n,o,s),r.push(c),l=a+t.length;return c=e.slice(l),i?c=Wt._parseMultiValue(c,i,n,[],null,o,s):c=Wt._parseValue(c,n,o,s),r.push(c),r.length==1?r[0]:r},Wt._eachLine=function(e,t){let n=e.length,r=e.search(rce),i=r,o,s,a;do i=e.indexOf(`
`,r)+1,i>1&&e[i-2]==="\r"?a=2:a=1,i===0&&(i=n,a=0),s=e[r],s===" "||s==="	"?o+=e.slice(r+1,i-a):(o&&t(null,o),o=e.slice(r,i-a)),r=i;while(i!==n);o=o.trim(),o.length&&t(null,o)};const lce=["tzid","location","tznames","latitude","longitude"];let dn=class ln{static _compare_change_fn(t,n){return t.year<n.year?-1:t.year>n.year?1:t.month<n.month?-1:t.month>n.month?1:t.day<n.day?-1:t.day>n.day?1:t.hour<n.hour?-1:t.hour>n.hour?1:t.minute<n.minute?-1:t.minute>n.minute?1:t.second<n.second?-1:t.second>n.second?1:0}static convert_time(t,n,r){if(t.isDate||n.tzid==r.tzid||n==ln.localTimezone||r==ln.localTimezone)return t.zone=r,t;let i=n.utcOffset(t);return t.adjust(0,0,0,-i),i=r.utcOffset(t),t.adjust(0,0,0,i),null}static fromData(t){return new ln().fromData(t)}static#e=null;static get utcTimezone(){return this.#e||(this.#e=ln.fromData({tzid:"UTC"})),this.#e}static#t=null;static get localTimezone(){return this.#t||(this.#t=ln.fromData({tzid:"floating"})),this.#t}static adjust_change(t,n,r,i,o){return he.prototype.adjust.call(t,n,r,i,o,t)}static _minimumExpansionYear=-1;static EXTRA_COVERAGE=5;constructor(t){this.wrappedJSObject=this,this.fromData(t)}tzid="";location="";tznames="";latitude=0;longitude=0;component=null;expandedUntilYear=0;icalclass="icaltimezone";fromData(t){if(this.expandedUntilYear=0,this.changes=[],t instanceof Si)this.component=t;else{if(t&&"component"in t)if(typeof t.component=="string"){let n=Wt(t.component);this.component=new Si(n)}else t.component instanceof Si?this.component=t.component:this.component=null;for(let n of lce)t&&n in t&&(this[n]=t[n])}return this.component instanceof Si&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this}utcOffset(t){if(this==ln.utcTimezone||this==ln.localTimezone||(this._ensureCoverage(t.year),!this.changes.length))return 0;let n={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},r=this._findNearbyChange(n),i=-1,o=1;for(;;){let a=Zl(this.changes[r],!0);if(a.utcOffset<a.prevUtcOffset?ln.adjust_change(a,0,0,0,a.utcOffset):ln.adjust_change(a,0,0,0,a.prevUtcOffset),ln._compare_change_fn(n,a)>=0?i=r:o=-1,o==-1&&i!=-1)break;if(r+=o,r<0)return 0;if(r>=this.changes.length)break}let s=this.changes[i];if(s.utcOffset-s.prevUtcOffset<0&&i>0){let a=Zl(s,!0);if(ln.adjust_change(a,0,0,0,a.prevUtcOffset),ln._compare_change_fn(n,a)<0){let l=this.changes[i-1],c=!1;s.is_daylight!=c&&l.is_daylight==c&&(s=l)}}return s.utcOffset}_findNearbyChange(t){let n=Nl(this.changes,t,ln._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n}_ensureCoverage(t){if(ln._minimumExpansionYear==-1){let r=he.now();ln._minimumExpansionYear=r.year}let n=t;if(n<ln._minimumExpansionYear&&(n=ln._minimumExpansionYear),n+=ln.EXTRA_COVERAGE,!this.changes.length||this.expandedUntilYear<t){let r=this.component.getAllSubcomponents(),i=r.length,o=0;for(;o<i;o++)this._expandComponent(r[o],n,this.changes);this.changes.sort(ln._compare_change_fn),this.expandedUntilYear=n}}_expandComponent(t,n,r){if(!t.hasProperty("dtstart")||!t.hasProperty("tzoffsetto")||!t.hasProperty("tzoffsetfrom"))return null;let i=t.getFirstProperty("dtstart").getFirstValue(),o;function s(l){return l.factor*(l.hours*3600+l.minutes*60)}function a(){let l={};return l.is_daylight=t.name=="daylight",l.utcOffset=s(t.getFirstProperty("tzoffsetto").getFirstValue()),l.prevUtcOffset=s(t.getFirstProperty("tzoffsetfrom").getFirstValue()),l}if(!t.hasProperty("rrule")&&!t.hasProperty("rdate"))o=a(),o.year=i.year,o.month=i.month,o.day=i.day,o.hour=i.hour,o.minute=i.minute,o.second=i.second,ln.adjust_change(o,0,0,0,-o.prevUtcOffset),r.push(o);else{let l=t.getAllProperties("rdate");for(let u of l){let d=u.getFirstValue();o=a(),o.year=d.year,o.month=d.month,o.day=d.day,d.isDate?(o.hour=i.hour,o.minute=i.minute,o.second=i.second,i.zone!=ln.utcTimezone&&ln.adjust_change(o,0,0,0,-o.prevUtcOffset)):(o.hour=d.hour,o.minute=d.minute,o.second=d.second,d.zone!=ln.utcTimezone&&ln.adjust_change(o,0,0,0,-o.prevUtcOffset)),r.push(o)}let c=t.getFirstProperty("rrule");if(c){c=c.getFirstValue(),o=a(),c.until&&c.until.zone==ln.utcTimezone&&(c.until.adjust(0,0,0,o.prevUtcOffset),c.until.zone=ln.localTimezone);let u=c.iterator(i),d;for(;(d=u.next())&&(o=a(),!(d.year>n||!d));)o.year=d.year,o.month=d.month,o.day=d.day,o.hour=d.hour,o.minute=d.minute,o.second=d.second,o.isDate=d.isDate,ln.adjust_change(o,0,0,0,-o.prevUtcOffset),r.push(o)}}return r}toString(){return this.tznames?this.tznames:this.tzid}},Pr=null;const sm={get count(){return Pr===null?0:Object.keys(Pr).length},reset:function(){Pr=Object.create(null);let e=dn.utcTimezone;Pr.Z=e,Pr.UTC=e,Pr.GMT=e},_hard_reset:function(){Pr=null},has:function(e){return Pr===null?!1:!!Pr[e]},get:function(e){return Pr===null&&this.reset(),Pr[e]},register:function(e,t){if(Pr===null&&this.reset(),typeof e=="string"&&t instanceof dn&&([e,t]=[t,e]),t||(e instanceof dn?t=e.tzid:e.name==="vtimezone"&&(e=new dn(e),t=e.tzid)),!t)throw new TypeError("Neither a timezone nor a name was passed");if(e instanceof dn)Pr[t]=e;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(e){return Pr===null?null:delete Pr[e]}};function cce(e){let t,n,r,i,o;if(!e||e.name!=="vcalendar")return e;for(t=e.getAllSubcomponents(),n=[],r={},o=0;o<t.length;o++)if(t[o].name==="vtimezone"){let s=t[o].getFirstProperty("tzid").getFirstValue();r[s]=t[o]}else n=n.concat(t[o].getAllProperties());for(i={},o=0;o<n.length;o++){let s=n[o].getParameter("tzid");s&&(i[s]=!0)}for(let[s,a]of Object.entries(r))i[s]||e.removeSubcomponent(a);for(let s of Object.keys(i))!r[s]&&sm.has(s)&&e.addSubcomponent(sm.get(s).component);return e}function Yd(e){return typeof e=="number"&&isNaN(e)}function Cr(e){let t=parseInt(e,10);if(Yd(t))throw new Error('Could not extract integer from "'+e+'"');return t}function ds(e,t){if(!(typeof e>"u"))return e instanceof t?e:new t(e)}function _3(e,t,n){for(;(n=e.indexOf(t,n))!==-1;)if(n>0&&e[n-1]==="\\")n+=1;else return n;return-1}function Nl(e,t,n){if(!e.length)return 0;let r=0,i=e.length-1,o,s;for(;r<=i;)if(o=r+Math.floor((i-r)/2),s=n(t,e[o]),s<0)i=o-1;else if(s>0)r=o+1;else break;return s<0?o:s>0?o+1:o}function Zl(e,t){if(!e||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if("clone"in e)return e.clone();if(Array.isArray(e)){let n=[];for(let r=0;r<e.length;r++)n.push(t?Zl(e[r],!0):e[r]);return n}else{let n={};for(let[r,i]of Object.entries(e))t?n[r]=Zl(i,!0):n[r]=i;return n}}function C3(e){let t="",n=e||"",r=0,i=0;for(;n.length;){let o=n.codePointAt(r);o<128?++i:o<2048?i+=2:o<65536?i+=3:i+=4,i<Xn.foldLength+1?r+=o>65535?2:1:(t+=Xn.newLineChar+" "+n.slice(0,Math.max(0,r)),n=n.slice(Math.max(0,r)),r=i=0)}return t.slice(Xn.newLineChar.length+1)}function ii(e){switch(typeof e!="string"&&(typeof e=="number"&&(e=parseInt(e)),e=String(e)),e.length){case 0:return"00";case 1:return"0"+e;default:return e}}function dr(e){return e<0?Math.ceil(e):Math.floor(e)}function jl(e,t){for(let n in e){let r=Object.getOwnPropertyDescriptor(e,n);r&&!Object.getOwnPropertyDescriptor(t,n)&&Object.defineProperty(t,n,r)}return t}var uce=Object.freeze({__proto__:null,updateTimezones:cce,isStrictlyNaN:Yd,strictParseInt:Cr,formatClassType:ds,unescapedIndexOf:_3,binsearchInsert:Nl,clone:Zl,foldline:C3,pad2:ii,trunc:dr,extend:jl});class to{static fromString(t){let n={};return n.factor=t[0]==="+"?1:-1,n.hours=Cr(t.slice(1,3)),n.minutes=Cr(t.slice(4,6)),new to(n)}static fromSeconds(t){let n=new to;return n.fromSeconds(t),n}constructor(t){this.fromData(t)}hours=0;minutes=0;factor=1;icaltype="utc-offset";clone(){return to.fromSeconds(this.toSeconds())}fromData(t){if(t)for(let[n,r]of Object.entries(t))this[n]=r;this._normalize()}fromSeconds(t){let n=Math.abs(t);return this.factor=t<0?-1:1,this.hours=dr(n/3600),n-=this.hours*3600,this.minutes=dr(n/60),this}toSeconds(){return this.factor*(60*this.minutes+3600*this.hours)}compare(t){let n=this.toSeconds(),r=t.toSeconds();return(n>r)-(r>n)}_normalize(){let t=this.toSeconds(),n=this.factor;for(;t<-43200;)t+=97200;for(;t>50400;)t-=97200;this.fromSeconds(t),t==0&&(this.factor=n)}toICALString(){return mr.icalendar.value["utc-offset"].toICAL(this.toString())}toString(){return(this.factor==1?"+":"-")+ii(this.hours)+":"+ii(this.minutes)}}class pa extends he{static fromDateAndOrTimeString(t,n){function r(b,A,v){return b?Cr(b.slice(A,A+v)):null}let i=t.split("T"),o=i[0],s=i[1],a=s?mr.vcard.value.time._splitZone(s):[],l=a[0],c=a[1],u=o?o.length:0,d=c?c.length:0,h=o&&o[0]=="-"&&o[1]=="-",p=c&&c[0]=="-",m={year:h?null:r(o,0,4),month:h&&(u==4||u==7)?r(o,2,2):u==7||u==10?r(o,5,2):null,day:u==5?r(o,3,2):u==7&&h?r(o,5,2):u==10?r(o,8,2):null,hour:p?null:r(c,0,2),minute:p&&d==3?r(c,1,2):d>4?p?r(c,1,2):r(c,3,2):null,second:d==4?r(c,2,2):d==6?r(c,4,2):d==8?r(c,6,2):null};return l=="Z"?l=dn.utcTimezone:l&&l[3]==":"?l=to.fromString(l):l=null,new pa(m,l,n)}constructor(t,n,r){super(t,n),this.icaltype=r||"date-and-or-time"}icalclass="vcardtime";icaltype="date-and-or-time";clone(){return new pa(this._time,this.zone,this.icaltype)}_normalize(){return this}utcOffset(){return this.zone instanceof to?this.zone.toSeconds():he.prototype.utcOffset.apply(this,arguments)}toICALString(){return mr.vcard.value[this.icaltype].toICAL(this.toString())}toString(){let t=this.year,n=this.month,r=this.day,i=this.hour,o=this.minute,s=this.second,a=t!==null,l=n!==null,c=r!==null,u=i!==null,d=o!==null,h=s!==null,p=(a?ii(t)+(l||c?"-":""):l||c?"--":"")+(l?ii(n):"")+(c?"-"+ii(r):""),m=(u?ii(i):"-")+(u&&d?":":"")+(d?ii(o):"")+(!u&&!d?"-":"")+(d&&h?":":"")+(h?ii(s):""),b;switch(this.zone===dn.utcTimezone?b="Z":this.zone instanceof to?b=this.zone.toString():this.zone===dn.localTimezone?b="":this.zone instanceof dn?b=to.fromSeconds(this.zone.utcOffset(this)).toString():b="",this.icaltype){case"time":return m+b;case"date-and-or-time":case"date-time":return p+(m=="--"?"":"T"+m+b);case"date":return p}return null}}class Co{static _indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8};static _expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]};static UNKNOWN=0;static CONTRACT=1;static EXPAND=2;static ILLEGAL=3;constructor(t){this.fromData(t)}completed=!1;rule=null;dtstart=null;last=null;occurrence_number=0;by_indices=null;initialized=!1;by_data=null;days=null;days_index=0;fromData(t){if(this.rule=ds(t.rule,Or),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=ds(t.dtstart,he),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");if(t.by_data?this.by_data=t.by_data:this.by_data=Zl(this.rule.parts,!0),t.occurrence_number&&(this.occurrence_number=t.occurrence_number),this.days=t.days||[],t.last&&(this.last=ds(t.last,he)),this.by_indices=t.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=t.initialized||!1,!this.initialized)try{this.init()}catch(n){if(n instanceof w_)this.completed=!0;else throw n}}init(){this.initialized=!0,this.last=this.dtstart.clone();let t=this.by_data;if("BYDAY"in t&&this.sort_byday_rules(t.BYDAY),"BYYEARDAY"in t&&("BYMONTH"in t||"BYWEEKNO"in t||"BYMONTHDAY"in t||"BYDAY"in t))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in t&&"BYMONTHDAY"in t)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if(this.rule.freq=="MONTHLY"&&("BYYEARDAY"in t||"BYWEEKNO"in t))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if(this.rule.freq=="WEEKLY"&&("BYYEARDAY"in t||"BYMONTHDAY"in t))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if(this.rule.freq!="YEARLY"&&"BYYEARDAY"in t)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),this.rule.freq=="WEEKLY")if("BYDAY"in t){let[,n]=this.ruleDayOfWeek(t.BYDAY[0],this.rule.wkst),r=n-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<n&&r>=0||r<0)&&(this.last.day+=r)}else{let n=Or.numericDayToIcalDay(this.dtstart.dayOfWeek());t.BYDAY=[n]}if(this.rule.freq=="YEARLY"){const n=this.rule.until?this.rule.until.year:2e4;for(;this.last.year<=n&&(this.expand_year_days(this.last.year),!(this.days.length>0));)this.increment_year(this.rule.interval);if(this.days.length==0)throw new w_;this._nextByYearDay()}if(this.rule.freq=="MONTHLY"){if(this.has_by_data("BYDAY")){let n=null,r=this.last.clone(),i=he.daysInMonth(this.last.month,this.last.year);for(let o of this.by_data.BYDAY){this.last=r.clone();let[s,a]=this.ruleDayOfWeek(o),l=this.last.nthWeekDay(a,s);if(s>=6||s<=-6)throw new Error("Malformed values in BYDAY part");if(l>i||l<=0){if(n&&n.month==r.month)continue;for(;l>i||l<=0;)this.increment_month(),i=he.daysInMonth(this.last.month,this.last.year),l=this.last.nthWeekDay(a,s)}this.last.day=l,(!n||this.last.compare(n)<0)&&(n=this.last.clone())}if(this.last=n.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>i||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")){this.last.day=1;let n=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY).filter(r=>r>=this.last.day);if(n.length)this.last.day=n[0],this.by_data.BYMONTHDAY=n;else if(!this.next_month()&&!this.next_month()&&!this.next_month())throw new Error("No possible occurrences")}}}next(t=!1){let n=this.last?this.last.clone():null;if((this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)&&(this.completed=!0),this.completed)return null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;let r;do switch(r=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":r=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!r);if(this.last.compare(n)==0){if(t)throw new Error("Same occurrence found twice, protecting you from death by recursion");this.next(!0)}return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)}next_second(){return this.next_generic("BYSECOND","SECONDLY","second","minute")}increment_second(t){return this.increment_generic(t,"second",60,"minute")}next_minute(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")}increment_minute(t){return this.increment_generic(t,"minute",60,"hour")}next_hour(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")}increment_hour(t){this.increment_generic(t,"hour",24,"monthday")}next_day(){let t=this.rule.freq=="DAILY";return this.next_hour()==0||(t?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0}next_week(){let t=0;if(this.next_weekday_by_week()==0)return t;if(this.has_by_data("BYWEEKNO")){this.by_indices.BYWEEKNO++,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,t=1),this.last.month=1,this.last.day=1;let n=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*n,t&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return t}normalizeByMonthDayRules(t,n,r){let i=he.daysInMonth(n,t),o=[],s=0,a=r.length,l;for(;s<a;s++){if(l=parseInt(r[s],10),isNaN(l))throw new Error("Invalid BYMONTHDAY value");if(!(Math.abs(l)>i)){if(l<0)l=i+(l+1);else if(l===0)continue;o.indexOf(l)===-1&&o.push(l)}}return o.sort(function(c,u){return c-u})}_byDayAndMonthDay(t){let n,r=this.by_data.BYDAY,i,o=0,s,a=r.length,l=0,c,u=this,d=this.last.day;function h(){for(c=he.daysInMonth(u.last.month,u.last.year),n=u.normalizeByMonthDayRules(u.last.year,u.last.month,u.by_data.BYMONTHDAY),s=n.length;n[o]<=d&&!(t&&n[o]==d)&&o<s-1;)o++}function p(){d=0,u.increment_month(),o=0,h()}h(),t&&(d-=1);let m=48;for(;!l&&m;){if(m--,i=d+1,i>c){p();continue}let b=n[o++];if(b>=i)d=b;else{p();continue}for(let A=0;A<a;A++){let v=this.ruleDayOfWeek(r[A]),D=v[0],C=v[1];if(this.last.day=d,this.last.isNthWeekDay(C,D)){l=1;break}}if(!l&&o===s){p();continue}}if(m<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return l}next_month(){let t=1;if(this.next_hour()==0)return t;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))t=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){let n=he.daysInMonth(this.last.month,this.last.year),r=0,i=0;if(this.has_by_data("BYSETPOS")){let s=this.last.day;for(let a=1;a<=n;a++)this.last.day=a,this.is_day_in_byday(this.last)&&(i++,a<=s&&r++);this.last.day=s}t=0;let o;for(o=this.last.day+1;o<=n;o++)if(this.last.day=o,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++r)||this.check_set_position(r-i-1))){t=1;break}o>n&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(t=1):t=0)}else if(this.has_by_data("BYMONTHDAY")){if(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month(),this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length))return 0;let n=he.daysInMonth(this.last.month,this.last.year),r=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];r<0&&(r=n+r+1),r>n?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=r}else{this.increment_month();let n=he.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>n?t=0:this.last.day=this.by_data.BYMONTHDAY[0]}return t}next_weekday_by_week(){let t=0;if(this.next_hour()==0)return t;if(!this.has_by_data("BYDAY"))return 1;for(;;){let n=new he;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,t=1);let r=this.by_data.BYDAY[this.by_indices.BYDAY],i=this.ruleDayOfWeek(r)[1];i-=this.rule.wkst,i<0&&(i+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;let o=n.startDoyWeek(this.rule.wkst);if(i+o<1&&!t)continue;let s=he.fromDayOfYear(o+i,this.last.year);return this.last.year=s.year,this.last.month=s.month,this.last.day=s.day,t}}next_year(){if(this.next_hour()==0)return 0;if(++this.days_index==this.days.length){this.days_index=0;do this.increment_year(this.rule.interval),this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY)),this.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1}_nextByYearDay(){let t=this.days[this.days_index],n=this.last.year;t<1&&(t+=1,n+=1);let r=he.fromDayOfYear(t,n);this.last.day=r.day,this.last.month=r.month}ruleDayOfWeek(t,n){let r=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(r){let i=parseInt(r[1]||0,10);return t=Or.icalDayToNumericDay(r[2],n),[i,t]}else return[0,0]}next_generic(t,n,r,i,o){let s=t in this.by_data,a=this.rule.freq==n,l=0;if(o&&this[o]()==0)return l;if(s){this.by_indices[t]++;let c=this.by_data[t];this.by_indices[t]==c.length&&(this.by_indices[t]=0,l=1),this.last[r]=c[this.by_indices[t]]}else a&&this["increment_"+r](this.rule.interval);return s&&l&&a&&this["increment_"+i](1),l}increment_monthday(t){for(let n=0;n<t;n++){let r=he.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>r&&(this.last.day-=r,this.increment_month())}}increment_month(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{this.rule.freq=="MONTHLY"?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;let t=dr(this.last.month/12);this.last.month%=12,this.last.month++,t!=0&&this.increment_year(t)}this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY))}increment_year(t){this.last.day=1,this.last.year+=t}increment_generic(t,n,r,i){this.last[n]+=t;let o=dr(this.last[n]/r);this.last[n]%=r,o!=0&&this["increment_"+i](o)}has_by_data(t){return t in this.rule.parts}expand_year_days(t){let n=new he;this.days=[];let r={},i=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(let a of i)a in this.rule.parts&&(r[a]=this.rule.parts[a]);if("BYMONTH"in r&&"BYWEEKNO"in r){let a=1,l={};n.year=t,n.isDate=!0;for(let c=0;c<this.by_data.BYMONTH.length;c++){let u=this.by_data.BYMONTH[c];n.month=u,n.day=1;let d=n.weekNumber(this.rule.wkst);n.day=he.daysInMonth(u,t);let h=n.weekNumber(this.rule.wkst);for(c=d;c<h;c++)l[c]=1}for(let c=0;c<this.by_data.BYWEEKNO.length&&a;c++)this.by_data.BYWEEKNO[c]<52?a&=l[c]:a=0;a?delete r.BYMONTH:delete r.BYWEEKNO}let o=Object.keys(r).length;if(o==0){let a=this.dtstart.clone();a.year=this.last.year,this.days.push(a.dayOfYear())}else if(o==1&&"BYMONTH"in r)for(let a of this.by_data.BYMONTH){let l=this.dtstart.clone();l.year=t,l.month=a,l.isDate=!0,this.days.push(l.dayOfYear())}else if(o==1&&"BYMONTHDAY"in r)for(let a of this.by_data.BYMONTHDAY){let l=this.dtstart.clone();if(a<0){let c=he.daysInMonth(l.month,t);a=a+c+1}l.day=a,l.year=t,l.isDate=!0,this.days.push(l.dayOfYear())}else if(o==2&&"BYMONTHDAY"in r&&"BYMONTH"in r)for(let a of this.by_data.BYMONTH){let l=he.daysInMonth(a,t);for(let c of this.by_data.BYMONTHDAY)c<0&&(c=c+l+1),n.day=c,n.month=a,n.year=t,n.isDate=!0,this.days.push(n.dayOfYear())}else if(!(o==1&&"BYWEEKNO"in r)&&!(o==2&&"BYWEEKNO"in r&&"BYMONTHDAY"in r))if(o==1&&"BYDAY"in r)this.days=this.days.concat(this.expand_by_day(t));else if(o==2&&"BYDAY"in r&&"BYMONTH"in r){for(let a of this.by_data.BYMONTH){let l=he.daysInMonth(a,t);n.year=t,n.month=a,n.day=1,n.isDate=!0;let c=n.dayOfWeek(),u=n.dayOfYear()-1;n.day=l;let d=n.dayOfWeek();if(this.has_by_data("BYSETPOS")){let h=[];for(let p=1;p<=l;p++)n.day=p,this.is_day_in_byday(n)&&h.push(p);for(let p=0;p<h.length;p++)(this.check_set_position(p+1)||this.check_set_position(p-h.length))&&this.days.push(u+h[p])}else for(let h of this.by_data.BYDAY){let p=this.ruleDayOfWeek(h),m=p[0],b=p[1],A,v=(b+7-c)%7+1,D=l-(d+7-b)%7;if(m==0)for(let C=v;C<=l;C+=7)this.days.push(u+C);else m>0?(A=v+(m-1)*7,A<=l&&this.days.push(u+A)):(A=D+(m+1)*7,A>0&&this.days.push(u+A))}}this.days.sort(function(a,l){return a-l})}else if(o==2&&"BYDAY"in r&&"BYMONTHDAY"in r){let a=this.expand_by_day(t);for(let l of a){let c=he.fromDayOfYear(l,t);this.by_data.BYMONTHDAY.indexOf(c.day)>=0&&this.days.push(l)}}else if(o==3&&"BYDAY"in r&&"BYMONTHDAY"in r&&"BYMONTH"in r){let a=this.expand_by_day(t);for(let l of a){let c=he.fromDayOfYear(l,t);this.by_data.BYMONTH.indexOf(c.month)>=0&&this.by_data.BYMONTHDAY.indexOf(c.day)>=0&&this.days.push(l)}}else if(o==2&&"BYDAY"in r&&"BYWEEKNO"in r){let a=this.expand_by_day(t);for(let l of a){let c=he.fromDayOfYear(l,t).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(c)&&this.days.push(l)}}else o==3&&"BYDAY"in r&&"BYWEEKNO"in r&&"BYMONTHDAY"in r||(o==1&&"BYYEARDAY"in r?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[]);let s=he.isLeapYear(t)?366:365;return this.days.sort((a,l)=>(a<0&&(a+=s+1),l<0&&(l+=s+1),a-l)),0}expand_by_day(t){let n=[],r=this.last.clone();r.year=t,r.month=1,r.day=1,r.isDate=!0;let i=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;let o=r.dayOfWeek(),s=r.dayOfYear();for(let a of this.by_data.BYDAY){let l=this.ruleDayOfWeek(a),c=l[0],u=l[1];if(c==0){let d=(u+7-i)%7+1;for(let h=d;h<=s;h+=7)n.push(h)}else if(c>0){let d;u>=i?d=u-i+1:d=u-i+8,n.push(d+(c-1)*7)}else{let d;c=-c,u<=o?d=s-o+u:d=s-o+u-7,n.push(d-(c-1)*7)}}return n}is_day_in_byday(t){if(this.by_data.BYDAY)for(let n of this.by_data.BYDAY){let r=this.ruleDayOfWeek(n),i=r[0],o=r[1],s=t.dayOfWeek();if(i==0&&o==s||t.nthWeekDay(o,i)==t.day)return 1}return 0}check_set_position(t){return this.has_by_data("BYSETPOS")?this.by_data.BYSETPOS.indexOf(t)!==-1:!1}sort_byday_rules(t){for(let n=0;n<t.length;n++)for(let r=0;r<n;r++){let i=this.ruleDayOfWeek(t[r],this.rule.wkst)[1],o=this.ruleDayOfWeek(t[n],this.rule.wkst)[1];if(i>o){let s=t[n];t[n]=t[r],t[r]=s}}}check_contract_restriction(t,n){let r=Co._indexMap[t],i=Co._expandMap[this.rule.freq][r],o=!1;if(t in this.by_data&&i==Co.CONTRACT){let s=this.by_data[t];for(let a of s)if(a==n){o=!0;break}}else o=!0;return o}check_contracting_rules(){let t=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),r=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",Or.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",n)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",r)}setup_defaults(t,n,r){let i=Co._indexMap[t];return Co._expandMap[this.rule.freq][i]!=Co.CONTRACT&&(t in this.by_data||(this.by_data[t]=[r]),this.rule.freq!=n)?this.by_data[t][0]:r}toJSON(){let t=Object.create(null);return t.initialized=this.initialized,t.rule=this.rule.toJSON(),t.dtstart=this.dtstart.toJSON(),t.by_data=this.by_data,t.days=this.days,t.last=this.last.toJSON(),t.by_indices=this.by_indices,t.occurrence_number=this.occurrence_number,t}}class w_ extends Error{constructor(){super("Recurrence rule has no valid occurrences")}}const dce=/^(SU|MO|TU|WE|TH|FR|SA)$/,hce=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,N3={SU:he.SUNDAY,MO:he.MONDAY,TU:he.TUESDAY,WE:he.WEDNESDAY,TH:he.THURSDAY,FR:he.FRIDAY,SA:he.SATURDAY},pce=Object.fromEntries(Object.entries(N3).map(e=>e.reverse())),__=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class Or{static fromString(t){let n=this._stringToData(t,!1);return new Or(n)}static fromData(t){return new Or(t)}static _stringToData(t,n){let r=Object.create(null),i=t.split(";"),o=i.length;for(let s=0;s<o;s++){let a=i[s].split("="),l=a[0].toUpperCase(),c=a[0].toLowerCase(),u=n?c:l,d=a[1];if(l in fT){let h=d.split(","),p=new Set;for(let m of h)p.add(fT[l](m));h=[...p],r[u]=h.length==1?h[0]:h}else l in pT?pT[l](d,r,n):r[c]=d}return r}static icalDayToNumericDay(t,n){let r=n||he.SUNDAY;return(N3[t]-r+7)%7+1}static numericDayToIcalDay(t,n){let r=n||he.SUNDAY,i=t+r-he.SUNDAY;return i>7&&(i-=7),pce[i]}constructor(t){this.wrappedJSObject=this,this.parts={},t&&typeof t=="object"&&this.fromData(t)}parts=null;interval=1;wkst=he.MONDAY;until=null;count=null;freq=null;icalclass="icalrecur";icaltype="recur";iterator(t){return new Co({rule:this,dtstart:t})}clone(){return new Or(this.toJSON())}isFinite(){return!!(this.count||this.until)}isByCount(){return!!(this.count&&!this.until)}addComponent(t,n){let r=t.toUpperCase();r in this.parts?this.parts[r].push(n):this.parts[r]=[n]}setComponent(t,n){this.parts[t.toUpperCase()]=n.slice()}getComponent(t){let n=t.toUpperCase();return n in this.parts?this.parts[n].slice():[]}getNextOccurrence(t,n){let r=this.iterator(t),i;do i=r.next();while(i&&i.compare(n)<=0);return i&&n.zone&&(i.zone=n.zone),i}fromData(t){for(let n in t){let r=n.toUpperCase();r in fT?Array.isArray(t[n])?this.parts[r]=t[n]:this.parts[r]=[t[n]]:this[n]=t[n]}this.interval&&typeof this.interval!="number"&&pT.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=Or.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof he)&&(this.until=he.fromString(this.until))}toJSON(){let t=Object.create(null);t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval);for(let[n,r]of Object.entries(this.parts))Array.isArray(r)&&r.length==1?t[n.toLowerCase()]=r[0]:t[n.toLowerCase()]=Zl(r);return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==he.DEFAULT_WEEK_START&&(t.wkst=Or.numericDayToIcalDay(this.wkst)),t}toString(){let t="FREQ="+this.freq;this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval);for(let[n,r]of Object.entries(this.parts))t+=";"+n+"="+r;return this.until&&(t+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==he.DEFAULT_WEEK_START&&(t+=";WKST="+Or.numericDayToIcalDay(this.wkst)),t}}function zs(e,t,n,r){let i=r;if(r[0]==="+"&&(i=r.slice(1)),i=Cr(i),t!==void 0&&r<t)throw new Error(e+': invalid value "'+r+'" must be > '+t);if(n!==void 0&&r>n)throw new Error(e+': invalid value "'+r+'" must be < '+t);return i}const pT={FREQ:function(e,t,n){if(__.indexOf(e)!==-1)t.freq=e;else throw new Error('invalid frequency "'+e+'" expected: "'+__.join(", ")+'"')},COUNT:function(e,t,n){t.count=Cr(e)},INTERVAL:function(e,t,n){t.interval=Cr(e),t.interval<1&&(t.interval=1)},UNTIL:function(e,t,n){e.length>10?t.until=mr.icalendar.value["date-time"].fromICAL(e):t.until=mr.icalendar.value.date.fromICAL(e),n||(t.until=he.fromString(t.until))},WKST:function(e,t,n){if(dce.test(e))t.wkst=Or.icalDayToNumericDay(e);else throw new Error('invalid WKST value "'+e+'"')}},fT={BYSECOND:zs.bind(void 0,"BYSECOND",0,60),BYMINUTE:zs.bind(void 0,"BYMINUTE",0,59),BYHOUR:zs.bind(void 0,"BYHOUR",0,23),BYDAY:function(e){if(hce.test(e))return e;throw new Error('invalid BYDAY value "'+e+'"')},BYMONTHDAY:zs.bind(void 0,"BYMONTHDAY",-31,31),BYYEARDAY:zs.bind(void 0,"BYYEARDAY",-366,366),BYWEEKNO:zs.bind(void 0,"BYWEEKNO",-53,53),BYMONTH:zs.bind(void 0,"BYMONTH",1,12),BYSETPOS:zs.bind(void 0,"BYSETPOS",-366,366)};class ia{static fromString(t,n){let r=t.split("/");if(r.length!==2)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');let i={start:he.fromDateTimeString(r[0],n)},o=r[1];return xr.isValueString(o)?i.duration=xr.fromString(o):i.end=he.fromDateTimeString(o,n),new ia(i)}static fromData(t){return new ia(t)}static fromJSON(t,n,r){function i(o,s){return r?he.fromString(o,s):he.fromDateTimeString(o,s)}return xr.isValueString(t[1])?ia.fromData({start:i(t[0],n),duration:xr.fromString(t[1])}):ia.fromData({start:i(t[0],n),end:i(t[1],n)})}constructor(t){if(this.wrappedJSObject=this,t&&"start"in t){if(t.start&&!(t.start instanceof he))throw new TypeError(".start must be an instance of ICAL.Time");this.start=t.start}if(t&&t.end&&t.duration)throw new Error("cannot accept both end and duration");if(t&&"end"in t){if(t.end&&!(t.end instanceof he))throw new TypeError(".end must be an instance of ICAL.Time");this.end=t.end}if(t&&"duration"in t){if(t.duration&&!(t.duration instanceof xr))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=t.duration}}start=null;end=null;duration=null;icalclass="icalperiod";icaltype="period";clone(){return ia.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})}getDuration(){return this.duration?this.duration:this.end.subtractDate(this.start)}getEnd(){if(this.end)return this.end;{let t=this.start.clone();return t.addDuration(this.duration),t}}toString(){return this.start+"/"+(this.end||this.duration)}toJSON(){return[this.start.toString(),(this.end||this.duration).toString()]}toICALString(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}}const fce=/\\\\|\\;|\\,|\\[Nn]/g,mce=/\\|;|,|\n/g,C_=/\\\\|\\,|\\[Nn]/g,N_=/\\|,|\n/g;function Ib(e,t){return{matches:/.*/,fromICAL:function(n,r){return Tce(n,e,r)},toICAL:function(n,r){let i=t;return r&&(i=new RegExp(i.source+"|"+r,i.flags)),n.replace(i,function(o){switch(o){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case`
`:return"\\n";default:return o}})}}}const Pt={defaultType:"text"},Hd={defaultType:"text",multiValue:","},am={defaultType:"text",structuredValue:";"},Qh={defaultType:"integer"},Jh={defaultType:"date-time",allowedTypes:["date-time","date"]},Xh={defaultType:"date-time"},ti={defaultType:"uri"},F_={defaultType:"utc-offset"},O_={defaultType:"recur"},x_={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function gce(e){switch(e){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return`
`;default:return e}}function Tce(e,t,n){return e.indexOf("\\")===-1?e:(n&&(t=new RegExp(t.source+"|\\\\"+n,t.flags)),e.replace(t,gce))}let Jy={categories:Hd,url:ti,version:Pt,uid:Pt},Xy={boolean:{values:["TRUE","FALSE"],fromICAL:function(e){switch(e){case"TRUE":return!0;case"FALSE":return!1;default:return!1}},toICAL:function(e){return e?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(e){let t=parseFloat(e);return Yd(t)?0:t},toICAL:function(e){return String(e)}},integer:{fromICAL:function(e){let t=parseInt(e);return Yd(t)?0:t},toICAL:function(e){return String(e)}},"utc-offset":{toICAL:function(e){return e.length<7?e.slice(0,3)+e.slice(4,6):e.slice(0,3)+e.slice(4,6)+e.slice(7,9)},fromICAL:function(e){return e.length<6?e.slice(0,3)+":"+e.slice(3,5):e.slice(0,3)+":"+e.slice(3,5)+":"+e.slice(5,7)},decorate:function(e){return to.fromString(e)},undecorate:function(e){return e.toString()}}},bce={cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}};const Fr=jl(Xy,{text:Ib(fce,mce),uri:{},binary:{decorate:function(e){return r1.fromString(e)},undecorate:function(e){return e.toString()}},"cal-address":{},date:{decorate:function(e,t){return he.fromDateString(e,t)},undecorate:function(e){return e.toString()},fromICAL:function(e){return e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)},toICAL:function(e){let t=e.length;return t==10?e.slice(0,4)+e.slice(5,7)+e.slice(8,10):t>=19?Fr["date-time"].toICAL(e):e}},"date-time":{fromICAL:function(e){{let t=e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)+"T"+e.slice(9,11)+":"+e.slice(11,13)+":"+e.slice(13,15);return e[15]&&e[15]==="Z"&&(t+="Z"),t}},toICAL:function(e){if(e.length>=19){let t=e.slice(0,4)+e.slice(5,7)+e.slice(8,13)+e.slice(14,16)+e.slice(17,19);return e[19]&&e[19]==="Z"&&(t+="Z"),t}else return e},decorate:function(e,t){return he.fromDateTimeString(e,t)},undecorate:function(e){return e.toString()}},duration:{decorate:function(e){return xr.fromString(e)},undecorate:function(e){return e.toString()}},period:{fromICAL:function(e){let t=e.split("/");return t[0]=Fr["date-time"].fromICAL(t[0]),xr.isValueString(t[1])||(t[1]=Fr["date-time"].fromICAL(t[1])),t},toICAL:function(e){return e=e.slice(),e[0]=Fr["date-time"].toICAL(e[0]),xr.isValueString(e[1])||(e[1]=Fr["date-time"].toICAL(e[1])),e.join("/")},decorate:function(e,t){return ia.fromJSON(e,t,!1)},undecorate:function(e){return e.toJSON()}},recur:{fromICAL:function(e){return Or._stringToData(e,!0)},toICAL:function(e){let t="";for(let[n,r]of Object.entries(e))n=="until"?r.length>10?r=Fr["date-time"].toICAL(r):r=Fr.date.toICAL(r):n=="wkst"?typeof r=="number"&&(r=Or.numericDayToIcalDay(r)):Array.isArray(r)&&(r=r.join(",")),t+=n.toUpperCase()+"="+r+";";return t.slice(0,Math.max(0,t.length-1))},decorate:function(e){return Or.fromData(e)},undecorate:function(e){return e.toJSON()}},time:{fromICAL:function(e){if(e.length<6)return e;let t=e.slice(0,2)+":"+e.slice(2,4)+":"+e.slice(4,6);return e[6]==="Z"&&(t+="Z"),t},toICAL:function(e){if(e.length<8)return e;let t=e.slice(0,2)+e.slice(3,5)+e.slice(6,8);return e[8]==="Z"&&(t+="Z"),t}}});let Ace=jl(Jy,{action:Pt,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:Pt,class:Pt,comment:Pt,completed:Xh,contact:Pt,created:Xh,description:Pt,dtend:Jh,dtstamp:Xh,dtstart:Jh,due:Jh,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:O_,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":Xh,location:Pt,method:Pt,organizer:{defaultType:"cal-address"},"percent-complete":Qh,priority:Qh,prodid:Pt,"related-to":Pt,repeat:Qh,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(e){return e.indexOf("/")!==-1?"period":e.indexOf("T")===-1?"date":"date-time"}},"recurrence-id":Jh,resources:Hd,"request-status":am,rrule:O_,sequence:Qh,status:Pt,summary:Pt,transp:Pt,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:F_,tzoffsetto:F_,tzurl:ti,tzid:Pt,tzname:Pt});const Bi=jl(Xy,{text:Ib(C_,N_),uri:Ib(C_,N_),date:{decorate:function(e){return pa.fromDateAndOrTimeString(e,"date")},undecorate:function(e){return e.toString()},fromICAL:function(e){return e.length==8?Fr.date.fromICAL(e):e[0]=="-"&&e.length==6?e.slice(0,4)+"-"+e.slice(4):e},toICAL:function(e){return e.length==10?Fr.date.toICAL(e):e[0]=="-"&&e.length==7?e.slice(0,4)+e.slice(5):e}},time:{decorate:function(e){return pa.fromDateAndOrTimeString("T"+e,"time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let t=Bi.time._splitZone(e,!0),n=t[0],r=t[1];return r.length==6?r=r.slice(0,2)+":"+r.slice(2,4)+":"+r.slice(4,6):r.length==4&&r[0]!="-"?r=r.slice(0,2)+":"+r.slice(2,4):r.length==5&&(r=r.slice(0,3)+":"+r.slice(3,5)),n.length==5&&(n[0]=="-"||n[0]=="+")&&(n=n.slice(0,3)+":"+n.slice(3)),r+n},toICAL:function(e){let t=Bi.time._splitZone(e),n=t[0],r=t[1];return r.length==8?r=r.slice(0,2)+r.slice(3,5)+r.slice(6,8):r.length==5&&r[0]!="-"?r=r.slice(0,2)+r.slice(3,5):r.length==6&&(r=r.slice(0,3)+r.slice(4,6)),n.length==6&&(n[0]=="-"||n[0]=="+")&&(n=n.slice(0,3)+n.slice(4)),r+n},_splitZone:function(e,t){let n=e.length-1,r=e.length-(t?5:6),i=e[r],o,s;return e[n]=="Z"?(o=e[n],s=e.slice(0,Math.max(0,n))):e.length>6&&(i=="-"||i=="+")?(o=e.slice(r),s=e.slice(0,Math.max(0,r))):(o="",s=e),[o,s]}},"date-time":{decorate:function(e){return pa.fromDateAndOrTimeString(e,"date-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){return Bi["date-and-or-time"].fromICAL(e)},toICAL:function(e){return Bi["date-and-or-time"].toICAL(e)}},"date-and-or-time":{decorate:function(e){return pa.fromDateAndOrTimeString(e,"date-and-or-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let t=e.split("T");return(t[0]?Bi.date.fromICAL(t[0]):"")+(t[1]?"T"+Bi.time.fromICAL(t[1]):"")},toICAL:function(e){let t=e.split("T");return Bi.date.toICAL(t[0])+(t[1]?"T"+Bi.time.toICAL(t[1]):"")}},timestamp:Fr["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/},"phone-number":{fromICAL:function(e){return Array.from(e).filter(function(t){return t==="\\"?void 0:t}).join("")},toICAL:function(e){return Array.from(e).map(function(t){return t===","||t===";"?"\\"+t:t}).join("")}}});let yce={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},Ece=jl(Jy,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:x_,bday:x_,caladruri:ti,caluri:ti,clientpidmap:am,email:Pt,fburl:ti,fn:Pt,gender:am,geo:ti,impp:ti,key:ti,kind:Pt,lang:{defaultType:"language-tag"},logo:ti,member:ti,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Hd,note:Pt,org:{defaultType:"text",structuredValue:";"},photo:ti,related:ti,rev:{defaultType:"timestamp"},role:Pt,sound:ti,source:ti,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:Pt,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:Pt}),vce=jl(Xy,{binary:Fr.binary,date:Bi.date,"date-time":Bi["date-time"],"phone-number":Bi["phone-number"],uri:Fr.uri,text:Fr.text,time:Fr.time,vcard:Fr.text,"utc-offset":{toICAL:function(e){return e.slice(0,7)},fromICAL:function(e){return e.slice(0,7)},decorate:function(e){return to.fromString(e)},undecorate:function(e){return e.toString()}}}),Dce={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},Sce=jl(Jy,{fn:Pt,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Hd,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return e.indexOf("T")===-1?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:Pt,tel:{defaultType:"phone-number"},email:Pt,mailer:Pt,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:Pt,role:Pt,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:am,note:Hd,prodid:Pt,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return e.indexOf("T")===-1?"date":"date-time"}},"sort-string":Pt,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:Pt,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),ns={value:Fr,param:bce,property:Ace,propertyGroups:!1},k_={value:Bi,param:yce,property:Ece,propertyGroups:!0},R_={value:vce,param:Dce,property:Sce,propertyGroups:!0};const Op={strict:!0,defaultSet:ns,defaultType:"unknown",components:{vcard:k_,vcard3:R_,vevent:ns,vtodo:ns,vjournal:ns,valarm:ns,vtimezone:ns,daylight:ns,standard:ns},icalendar:ns,vcard:k_,vcard3:R_,getDesignSet:function(e){return e&&e in Op.components?Op.components[e]:Op.defaultSet}};var mr=Op;const xp=`\r
`,M_="unknown",wce={'"':"^'","\n":"^n","^":"^^"};function In(e){typeof e[0]=="string"&&(e=[e]);let t=0,n=e.length,r="";for(;t<n;t++)r+=In.component(e[t])+xp;return r}In.component=function(e,t){let n=e[0].toUpperCase(),r="BEGIN:"+n+xp,i=e[1],o=0,s=i.length,a=e[0];for(a==="vcard"&&e[1].length>0&&!(e[1][0][0]==="version"&&e[1][0][3]==="4.0")&&(a="vcard3"),t=t||mr.getDesignSet(a);o<s;o++)r+=In.property(i[o],t)+xp;let l=e[2]||[],c=0,u=l.length;for(;c<u;c++)r+=In.component(l[c],t)+xp;return r+="END:"+n,r},In.property=function(e,t,n){let r=e[0].toUpperCase(),i=e[0],o=e[1];t||(t=mr.defaultSet);let s=o.group,a;t.propertyGroups&&s?a=s.toUpperCase()+"."+r:a=r;for(let[p,m]of Object.entries(o)){if(t.propertyGroups&&p=="group")continue;let b=t.param[p],A=b&&b.multiValue;A&&Array.isArray(m)?(m=m.map(function(v){return v=In._rfc6868Unescape(v),v=In.paramPropertyValue(v,b.multiValueSeparateDQuote),v}),m=In.multiValue(m,A,"unknown",null,t)):(m=In._rfc6868Unescape(m),m=In.paramPropertyValue(m)),a+=";"+p.toUpperCase()+"="+m}if(e.length===3)return a+":";let l=e[2],c,u=!1,d=!1,h=!1;return i in t.property?(c=t.property[i],"multiValue"in c&&(u=c.multiValue),"structuredValue"in c&&Array.isArray(e[3])&&(d=c.structuredValue),"defaultType"in c?l===c.defaultType&&(h=!0):l===M_&&(h=!0)):l===M_&&(h=!0),h||(a+=";VALUE="+l.toUpperCase()),a+=":",u&&d?a+=In.multiValue(e[3],d,l,u,t,d):u?a+=In.multiValue(e.slice(3),u,l,null,t,!1):d?a+=In.multiValue(e[3],d,l,null,t,d):a+=In.value(e[3],l,t,!1),n?a:C3(a)},In.paramPropertyValue=function(e,t){return!t&&e.indexOf(",")===-1&&e.indexOf(":")===-1&&e.indexOf(";")===-1?e:'"'+e+'"'},In.multiValue=function(e,t,n,r,i,o){let s="",a=e.length,l=0;for(;l<a;l++)r&&Array.isArray(e[l])?s+=In.multiValue(e[l],r,n,null,i,o):s+=In.value(e[l],n,i,o),l!==a-1&&(s+=t);return s},In.value=function(e,t,n,r){return t in n.value&&"toICAL"in n.value[t]?n.value[t].toICAL(e,r):e},In._rfc6868Unescape=function(e){return e.replace(/[\n^"]/g,function(t){return wce[t]})};const B_=0,ep=1,tp=2,Vs=3;class Fl{static fromString(t,n){return new Fl(Wt.property(t,n))}constructor(t,n){this._parent=n||null,typeof t=="string"?(this.jCal=[t,{},mr.defaultType],this.jCal[tp]=this.getDefaultType()):this.jCal=t,this._updateType()}get type(){return this.jCal[tp]}get name(){return this.jCal[B_]}get parent(){return this._parent}set parent(t){let n=!this._parent||t&&t._designSet!=this._parent._designSet;this._parent=t,this.type==mr.defaultType&&n&&(this.jCal[tp]=this.getDefaultType(),this._updateType())}get _designSet(){return this.parent?this.parent._designSet:mr.defaultSet}_updateType(){let t=this._designSet;this.type in t.value&&("decorate"in t.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in t.property&&(this.isMultiValue="multiValue"in t.property[this.name],this.isStructuredValue="structuredValue"in t.property[this.name]))}_hydrateValue(t){return this._values&&this._values[t]?this._values[t]:this.jCal.length<=Vs+t?null:this.isDecorated?(this._values||(this._values=[]),this._values[t]=this._decorate(this.jCal[Vs+t])):this.jCal[Vs+t]}_decorate(t){return this._designSet.value[this.type].decorate(t,this)}_undecorate(t){return this._designSet.value[this.type].undecorate(t,this)}_setDecoratedValue(t,n){this._values||(this._values=[]),typeof t=="object"&&"icaltype"in t?(this.jCal[Vs+n]=this._undecorate(t),this._values[n]=t):(this.jCal[Vs+n]=t,this._values[n]=this._decorate(t))}getParameter(t){if(t in this.jCal[ep])return this.jCal[ep][t]}getFirstParameter(t){let n=this.getParameter(t);return Array.isArray(n)?n[0]:n}setParameter(t,n){let r=t.toLowerCase();typeof n=="string"&&r in this._designSet.param&&"multiValue"in this._designSet.param[r]&&(n=[n]),this.jCal[ep][t]=n}removeParameter(t){delete this.jCal[ep][t]}getDefaultType(){let t=this.jCal[B_],n=this._designSet;if(t in n.property){let r=n.property[t];if("defaultType"in r)return r.defaultType}return mr.defaultType}resetType(t){this.removeAllValues(),this.jCal[tp]=t,this._updateType()}getFirstValue(){return this._hydrateValue(0)}getValues(){let t=this.jCal.length-Vs;if(t<1)return[];let n=0,r=[];for(;n<t;n++)r[n]=this._hydrateValue(n);return r}removeAllValues(){this._values&&(this._values.length=0),this.jCal.length=3}setValues(t){if(!this.isMultiValue)throw new Error(this.name+`: does not not support mulitValue.
override isMultiValue`);let n=t.length,r=0;if(this.removeAllValues(),n>0&&typeof t[0]=="object"&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;r<n;r++)this._setDecoratedValue(t[r],r);else for(;r<n;r++)this.jCal[Vs+r]=t[r]}setValue(t){this.removeAllValues(),typeof t=="object"&&"icaltype"in t&&this.resetType(t.icaltype),this.isDecorated?this._setDecoratedValue(t,0):this.jCal[Vs]=t}toJSON(){return this.jCal}toICALString(){return In.property(this.jCal,this._designSet,!0)}}const js=0,rs=1,Gs=2;class Si{static fromString(t){return new Si(Wt.component(t))}constructor(t,n){typeof t=="string"&&(t=[t,[],[]]),this.jCal=t,this.parent=n||null,!this.parent&&this.name==="vcalendar"&&(this._timezoneCache=new Map)}_hydratedPropertyCount=0;_hydratedComponentCount=0;_timezoneCache=null;_components=null;_properties=null;get name(){return this.jCal[js]}get _designSet(){return this.parent&&this.parent._designSet||mr.getDesignSet(this.name)}_hydrateComponent(t){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[t])return this._components[t];let n=new Si(this.jCal[Gs][t],this);return this._hydratedComponentCount++,this._components[t]=n}_hydrateProperty(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];let n=new Fl(this.jCal[rs][t],this);return this._hydratedPropertyCount++,this._properties[t]=n}getFirstSubcomponent(t){if(t){let n=0,r=this.jCal[Gs],i=r.length;for(;n<i;n++)if(r[n][js]===t)return this._hydrateComponent(n)}else if(this.jCal[Gs].length)return this._hydrateComponent(0);return null}getAllSubcomponents(t){let n=this.jCal[Gs].length,r=0;if(t){let i=this.jCal[Gs],o=[];for(;r<n;r++)t===i[r][js]&&o.push(this._hydrateComponent(r));return o}else{if(!this._components||this._hydratedComponentCount!==n)for(;r<n;r++)this._hydrateComponent(r);return this._components||[]}}hasProperty(t){let n=this.jCal[rs],r=n.length,i=0;for(;i<r;i++)if(n[i][js]===t)return!0;return!1}getFirstProperty(t){if(t){let n=0,r=this.jCal[rs],i=r.length;for(;n<i;n++)if(r[n][js]===t)return this._hydrateProperty(n)}else if(this.jCal[rs].length)return this._hydrateProperty(0);return null}getFirstPropertyValue(t){let n=this.getFirstProperty(t);return n?n.getFirstValue():null}getAllProperties(t){let n=this.jCal[rs].length,r=0;if(t){let i=this.jCal[rs],o=[];for(;r<n;r++)t===i[r][js]&&o.push(this._hydrateProperty(r));return o}else{if(!this._properties||this._hydratedPropertyCount!==n)for(;r<n;r++)this._hydrateProperty(r);return this._properties||[]}}_removeObjectByIndex(t,n,r){if(n=n||[],n[r]){let i=n[r];"parent"in i&&(i.parent=null)}n.splice(r,1),this.jCal[t].splice(r,1)}_removeObject(t,n,r){let i=0,o=this.jCal[t],s=o.length,a=this[n];if(typeof r=="string"){for(;i<s;i++)if(o[i][js]===r)return this._removeObjectByIndex(t,a,i),!0}else if(a){for(;i<s;i++)if(a[i]&&a[i]===r)return this._removeObjectByIndex(t,a,i),!0}return!1}_removeAllObjects(t,n,r){let i=this[n],o=this.jCal[t],s=o.length-1;for(;s>=0;s--)(!r||o[s][js]===r)&&this._removeObjectByIndex(t,i,s)}addSubcomponent(t){this._components||(this._components=[],this._hydratedComponentCount=0),t.parent&&t.parent.removeSubcomponent(t);let n=this.jCal[Gs].push(t.jCal);return this._components[n-1]=t,this._hydratedComponentCount++,t.parent=this,t}removeSubcomponent(t){let n=this._removeObject(Gs,"_components",t);return n&&this._hydratedComponentCount--,n}removeAllSubcomponents(t){let n=this._removeAllObjects(Gs,"_components",t);return this._hydratedComponentCount=0,n}addProperty(t){if(!(t instanceof Fl))throw new TypeError("must be instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),t.parent&&t.parent.removeProperty(t);let n=this.jCal[rs].push(t.jCal);return this._properties[n-1]=t,this._hydratedPropertyCount++,t.parent=this,t}addPropertyWithValue(t,n){let r=new Fl(t);return r.setValue(n),this.addProperty(r),r}updatePropertyWithValue(t,n){let r=this.getFirstProperty(t);return r?r.setValue(n):r=this.addPropertyWithValue(t,n),r}removeProperty(t){let n=this._removeObject(rs,"_properties",t);return n&&this._hydratedPropertyCount--,n}removeAllProperties(t){let n=this._removeAllObjects(rs,"_properties",t);return this._hydratedPropertyCount=0,n}toJSON(){return this.jCal}toString(){return In.component(this.jCal,this._designSet)}getTimeZoneByID(t){if(this.parent)return this.parent.getTimeZoneByID(t);if(!this._timezoneCache)return null;if(this._timezoneCache.has(t))return this._timezoneCache.get(t);const n=this.getAllSubcomponents("vtimezone");for(const r of n)if(r.getFirstProperty("tzid").getFirstValue()===t){const i=new dn({component:r,tzid:t});return this._timezoneCache.set(t,i),i}return null}}class F3{constructor(t){this.ruleDates=[],this.exDates=[],this.fromData(t)}complete=!1;ruleIterators=null;ruleDates=null;exDates=null;ruleDateInc=0;exDateInc=0;exDate=null;ruleDate=null;dtstart=null;last=null;fromData(t){let n=ds(t.dtstart,he);if(n)this.dtstart=n;else throw new Error(".dtstart (ICAL.Time) must be given");if(t.component)this._init(t.component);else{if(this.last=ds(t.last,he)||n.clone(),!t.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=t.ruleIterators.map(function(r){return ds(r,Co)}),this.ruleDateInc=t.ruleDateInc,this.exDateInc=t.exDateInc,t.ruleDates&&(this.ruleDates=t.ruleDates.map(r=>ds(r,he)),this.ruleDate=this.ruleDates[this.ruleDateInc]),t.exDates&&(this.exDates=t.exDates.map(r=>ds(r,he)),this.exDate=this.exDates[this.exDateInc]),typeof t.complete<"u"&&(this.complete=t.complete)}}next(){let t,n,r,i=500,o=0;for(;;){if(o++>i)throw new Error("max tries have occurred, rule may be impossible to fulfill.");if(n=this.ruleDate,t=this._nextRecurrenceIter(this.last),!n&&!t){this.complete=!0;break}if((!n||t&&n.compare(t.last)>0)&&(n=t.last.clone(),t.next()),this.ruleDate===n&&this._nextRuleDay(),this.last=n,this.exDate&&(r=this.exDate.compare(this.last),r<0&&this._nextExDay(),r===0)){this._nextExDay();continue}return this.last}}toJSON(){function t(r){return r.toJSON()}let n=Object.create(null);return n.ruleIterators=this.ruleIterators.map(t),this.ruleDates&&(n.ruleDates=this.ruleDates.map(t)),this.exDates&&(n.exDates=this.exDates.map(t)),n.ruleDateInc=this.ruleDateInc,n.exDateInc=this.exDateInc,n.last=this.last.toJSON(),n.dtstart=this.dtstart.toJSON(),n.complete=this.complete,n}_extractDates(t,n){let r=[],i=t.getAllProperties(n);for(let o=0,s=i.length;o<s;o++)for(let a of i[o].getValues()){let l=Nl(r,a,(c,u)=>c.compare(u));r.splice(l,0,a)}return r}_init(t){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!t.hasProperty("rdate")&&!t.hasProperty("rrule")&&!t.hasProperty("recurrence-id")){this.ruleDate=this.last.clone(),this.complete=!0;return}if(t.hasProperty("rdate")&&(this.ruleDates=this._extractDates(t,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=Nl(this.ruleDates,this.last,(n,r)=>n.compare(r)),this.ruleDate=this.ruleDates[this.ruleDateInc]),t.hasProperty("rrule")){let n=t.getAllProperties("rrule"),r=0,i=n.length,o,s;for(;r<i;r++)o=n[r].getFirstValue(),s=o.iterator(this.dtstart),this.ruleIterators.push(s),s.next()}t.hasProperty("exdate")&&(this.exDates=this._extractDates(t,"exdate"),this.exDateInc=Nl(this.exDates,this.last,(n,r)=>n.compare(r)),this.exDate=this.exDates[this.exDateInc])}_nextExDay(){this.exDate=this.exDates[++this.exDateInc]}_nextRuleDay(){this.ruleDate=this.ruleDates[++this.ruleDateInc]}_nextRecurrenceIter(){let t=this.ruleIterators;if(t.length===0)return null;let n=t.length,r,i,o=0,s;for(;o<n;o++){if(r=t[o],i=r.last,r.completed){n--,o!==0&&o--,t.splice(o,1);continue}(!s||s.last.compare(i)>0)&&(s=r)}return s}}class Zd{constructor(t,n){t instanceof Si||(n=t,t=null),t?this.component=t:this.component=new Si("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],n&&n.strictExceptions&&(this.strictExceptions=n.strictExceptions),n&&n.exceptions?n.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(r){r.hasProperty("recurrence-id")&&this.relateException(r)},this)}static THISANDFUTURE="THISANDFUTURE";exceptions=null;strictExceptions=!1;relateException(t){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(t instanceof Si&&(t=new Zd(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");let n=t.recurrenceId.toString();if(this.exceptions[n]=t,t.modifiesFuture()){let r=[t.recurrenceId.toUnixTime(),n],i=Nl(this.rangeExceptions,r,I_);this.rangeExceptions.splice(i,0,r)}}modifiesFuture(){return this.component.hasProperty("recurrence-id")?this.component.getFirstProperty("recurrence-id").getParameter("range")===Zd.THISANDFUTURE:!1}findRangeException(t){if(!this.rangeExceptions.length)return null;let n=t.toUnixTime(),r=Nl(this.rangeExceptions,[n],I_);if(r-=1,r<0)return null;let i=this.rangeExceptions[r];return n<i[0]?null:i[1]}getOccurrenceDetails(t){let n=t.toString(),r=t.convertToZone(dn.utcTimezone).toString(),i,o={recurrenceId:t};if(n in this.exceptions)i=o.item=this.exceptions[n],o.startDate=i.startDate,o.endDate=i.endDate,o.item=i;else if(r in this.exceptions)i=this.exceptions[r],o.startDate=i.startDate,o.endDate=i.endDate,o.item=i;else{let s=this.findRangeException(t),a;if(s){let l=this.exceptions[s];o.item=l;let c=this._rangeExceptionCache[s];if(!c){let d=l.recurrenceId.clone(),h=l.startDate.clone();d.zone=h.zone,c=h.subtractDate(d),this._rangeExceptionCache[s]=c}let u=t.clone();u.zone=l.startDate.zone,u.addDuration(c),a=u.clone(),a.addDuration(l.duration),o.startDate=u,o.endDate=a}else a=t.clone(),a.addDuration(this.duration),o.endDate=a,o.startDate=t,o.item=this}return o}iterator(t){return new F3({component:this.component,dtstart:t||this.startDate})}isRecurring(){let t=this.component;return t.hasProperty("rrule")||t.hasProperty("rdate")}isRecurrenceException(){return this.component.hasProperty("recurrence-id")}getRecurrenceTypes(){let t=this.component.getAllProperties("rrule"),n=0,r=t.length,i=Object.create(null);for(;n<r;n++){let o=t[n].getFirstValue();i[o.freq]=!0}return i}get uid(){return this._firstProp("uid")}set uid(t){this._setProp("uid",t)}get startDate(){return this._firstProp("dtstart")}set startDate(t){this._setTime("dtstart",t)}get endDate(){let t=this._firstProp("dtend");if(!t){let n=this._firstProp("duration");t=this.startDate.clone(),n?t.addDuration(n):t.isDate&&(t.day+=1)}return t}set endDate(t){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",t)}get duration(){return this._firstProp("duration")||this.endDate.subtractDateTz(this.startDate)}set duration(t){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",t)}get location(){return this._firstProp("location")}set location(t){this._setProp("location",t)}get attendees(){return this.component.getAllProperties("attendee")}get summary(){return this._firstProp("summary")}set summary(t){this._setProp("summary",t)}get description(){return this._firstProp("description")}set description(t){this._setProp("description",t)}get color(){return this._firstProp("color")}set color(t){this._setProp("color",t)}get organizer(){return this._firstProp("organizer")}set organizer(t){this._setProp("organizer",t)}get sequence(){return this._firstProp("sequence")}set sequence(t){this._setProp("sequence",t)}get recurrenceId(){return this._firstProp("recurrence-id")}set recurrenceId(t){this._setTime("recurrence-id",t)}_setTime(t,n){let r=this.component.getFirstProperty(t);r||(r=new Fl(t),this.component.addProperty(r)),n.zone===dn.localTimezone||n.zone===dn.utcTimezone?r.removeParameter("tzid"):r.setParameter("tzid",n.zone.tzid),r.setValue(n)}_setProp(t,n){this.component.updatePropertyWithValue(t,n)}_firstProp(t){return this.component.getFirstPropertyValue(t)}toString(){return this.component.toString()}}function I_(e,t){return e[0]>t[0]?1:t[0]>e[0]?-1:0}class _ce{constructor(t){typeof t>"u"&&(t={});for(let[n,r]of Object.entries(t))this[n]=r}parseEvent=!0;parseTimezone=!0;oncomplete=function(){};onerror=function(t){};ontimezone=function(t){};onevent=function(t){};process(t){typeof t=="string"&&(t=Wt(t)),t instanceof Si||(t=new Si(t));let n=t.getAllSubcomponents(),r=0,i=n.length,o;for(;r<i;r++)switch(o=n[r],o.name){case"vtimezone":if(this.parseTimezone){let s=o.getFirstPropertyValue("tzid");s&&this.ontimezone(new dn({tzid:s,component:o}))}break;case"vevent":this.parseEvent&&this.onevent(new Zd(o));break;default:continue}this.oncomplete()}}var Xn={foldLength:75,debug:!1,newLineChar:`\r
`,Binary:r1,Component:Si,ComponentParser:_ce,Duration:xr,Event:Zd,Period:ia,Property:Fl,Recur:Or,RecurExpansion:F3,RecurIterator:Co,Time:he,Timezone:dn,TimezoneService:sm,UtcOffset:to,VCardTime:pa,parse:Wt,stringify:In,design:mr,helpers:uce};class oa{_timezoneId;_ics;_timezone;_initialized;constructor(t,n){t instanceof Xn.Timezone?(this._timezone=t,this._initialized=!0):t instanceof Xn.Component?(this._timezone=new Xn.Timezone(t),this._initialized=!0):(this._timezoneId=t,this._ics=n,this._initialized=!1)}get timezoneId(){return this._initialized?this._timezone.tzid:this._timezoneId}offsetForArray(t,n,r,i,o,s){const a=new Xn.Time({year:t,month:n,day:r,hour:i,minute:o,second:s,isDate:!1});return this.timezone.utcOffset(a)}timestampToArray(t){const n=Xn.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0});n.fromUnixTime(Math.floor(t/1e3));const r=n.convertToZone(this.timezone);return[r.year,r.month,r.day,r.hour,r.minute,r.second]}toICALTimezone(){return this.timezone}toICALJs(){return this.timezone.component}get timezone(){if(!this._initialized){const t=Xn.parse(this._ics),n=new Xn.Component(t);this._timezone=new Xn.Timezone(n),this._initialized=!0}return this._timezone}static get utc(){return new oa(Xn.Timezone.utcTimezone)}static get floating(){return new oa(Xn.Timezone.localTimezone)}}const Cce="2.2024a",Nce={"AUS Central Standard Time":{aliasTo:"Australia/Darwin"},"AUS Eastern Standard Time":{aliasTo:"Australia/Sydney"},"Afghanistan Standard Time":{aliasTo:"Asia/Kabul"},"Africa/Asmera":{aliasTo:"Africa/Asmara"},"Africa/Timbuktu":{aliasTo:"Africa/Bamako"},"Alaskan Standard Time":{aliasTo:"America/Anchorage"},"America/Argentina/ComodRivadavia":{aliasTo:"America/Argentina/Catamarca"},"America/Buenos_Aires":{aliasTo:"America/Argentina/Buenos_Aires"},"America/Louisville":{aliasTo:"America/Kentucky/Louisville"},"America/Montreal":{aliasTo:"America/Toronto"},"America/Santa_Isabel":{aliasTo:"America/Tijuana"},"Arab Standard Time":{aliasTo:"Asia/Riyadh"},"Arabian Standard Time":{aliasTo:"Asia/Dubai"},"Arabic Standard Time":{aliasTo:"Asia/Baghdad"},"Argentina Standard Time":{aliasTo:"America/Argentina/Buenos_Aires"},"Asia/Calcutta":{aliasTo:"Asia/Kolkata"},"Asia/Katmandu":{aliasTo:"Asia/Kathmandu"},"Asia/Rangoon":{aliasTo:"Asia/Yangon"},"Asia/Saigon":{aliasTo:"Asia/Ho_Chi_Minh"},"Atlantic Standard Time":{aliasTo:"America/Halifax"},"Atlantic/Faeroe":{aliasTo:"Atlantic/Faroe"},"Atlantic/Jan_Mayen":{aliasTo:"Europe/Oslo"},"Azerbaijan Standard Time":{aliasTo:"Asia/Baku"},"Azores Standard Time":{aliasTo:"Atlantic/Azores"},"Bahia Standard Time":{aliasTo:"America/Bahia"},"Bangladesh Standard Time":{aliasTo:"Asia/Dhaka"},"Belarus Standard Time":{aliasTo:"Europe/Minsk"},"Canada Central Standard Time":{aliasTo:"America/Regina"},"Cape Verde Standard Time":{aliasTo:"Atlantic/Cape_Verde"},"Caucasus Standard Time":{aliasTo:"Asia/Yerevan"},"Cen. Australia Standard Time":{aliasTo:"Australia/Adelaide"},"Central America Standard Time":{aliasTo:"America/Guatemala"},"Central Asia Standard Time":{aliasTo:"Asia/Almaty"},"Central Brazilian Standard Time":{aliasTo:"America/Cuiaba"},"Central Europe Standard Time":{aliasTo:"Europe/Budapest"},"Central European Standard Time":{aliasTo:"Europe/Warsaw"},"Central Pacific Standard Time":{aliasTo:"Pacific/Guadalcanal"},"Central Standard Time":{aliasTo:"America/Chicago"},"Central Standard Time (Mexico)":{aliasTo:"America/Mexico_City"},"China Standard Time":{aliasTo:"Asia/Shanghai"},"E. Africa Standard Time":{aliasTo:"Africa/Nairobi"},"E. Australia Standard Time":{aliasTo:"Australia/Brisbane"},"E. South America Standard Time":{aliasTo:"America/Sao_Paulo"},"Eastern Standard Time":{aliasTo:"America/New_York"},"Egypt Standard Time":{aliasTo:"Africa/Cairo"},"Ekaterinburg Standard Time":{aliasTo:"Asia/Yekaterinburg"},"Etc/GMT":{aliasTo:"UTC"},"Etc/GMT+0":{aliasTo:"UTC"},"Etc/UCT":{aliasTo:"UTC"},"Etc/UTC":{aliasTo:"UTC"},"Etc/Unversal":{aliasTo:"UTC"},"Etc/Zulu":{aliasTo:"UTC"},"Europe/Belfast":{aliasTo:"Europe/London"},"FLE Standard Time":{aliasTo:"Europe/Kiev"},"Fiji Standard Time":{aliasTo:"Pacific/Fiji"},GMT:{aliasTo:"UTC"},"GMT Standard Time":{aliasTo:"Europe/London"},"GMT+0":{aliasTo:"UTC"},GMT0:{aliasTo:"UTC"},"GTB Standard Time":{aliasTo:"Europe/Bucharest"},"Georgian Standard Time":{aliasTo:"Asia/Tbilisi"},"Greenland Standard Time":{aliasTo:"America/Godthab"},Greenwich:{aliasTo:"UTC"},"Greenwich Standard Time":{aliasTo:"Atlantic/Reykjavik"},"Hawaiian Standard Time":{aliasTo:"Pacific/Honolulu"},"India Standard Time":{aliasTo:"Asia/Calcutta"},"Iran Standard Time":{aliasTo:"Asia/Tehran"},"Israel Standard Time":{aliasTo:"Asia/Jerusalem"},"Jordan Standard Time":{aliasTo:"Asia/Amman"},"Kaliningrad Standard Time":{aliasTo:"Europe/Kaliningrad"},"Korea Standard Time":{aliasTo:"Asia/Seoul"},"Libya Standard Time":{aliasTo:"Africa/Tripoli"},"Line Islands Standard Time":{aliasTo:"Pacific/Kiritimati"},"Magadan Standard Time":{aliasTo:"Asia/Magadan"},"Mauritius Standard Time":{aliasTo:"Indian/Mauritius"},"Middle East Standard Time":{aliasTo:"Asia/Beirut"},"Montevideo Standard Time":{aliasTo:"America/Montevideo"},"Morocco Standard Time":{aliasTo:"Africa/Casablanca"},"Mountain Standard Time":{aliasTo:"America/Denver"},"Mountain Standard Time (Mexico)":{aliasTo:"America/Chihuahua"},"Myanmar Standard Time":{aliasTo:"Asia/Rangoon"},"N. Central Asia Standard Time":{aliasTo:"Asia/Novosibirsk"},"Namibia Standard Time":{aliasTo:"Africa/Windhoek"},"Nepal Standard Time":{aliasTo:"Asia/Katmandu"},"New Zealand Standard Time":{aliasTo:"Pacific/Auckland"},"Newfoundland Standard Time":{aliasTo:"America/St_Johns"},"North Asia East Standard Time":{aliasTo:"Asia/Irkutsk"},"North Asia Standard Time":{aliasTo:"Asia/Krasnoyarsk"},"Pacific SA Standard Time":{aliasTo:"America/Santiago"},"Pacific Standard Time":{aliasTo:"America/Los_Angeles"},"Pacific Standard Time (Mexico)":{aliasTo:"America/Santa_Isabel"},"Pacific/Johnston":{aliasTo:"Pacific/Honolulu"},"Pakistan Standard Time":{aliasTo:"Asia/Karachi"},"Paraguay Standard Time":{aliasTo:"America/Asuncion"},"Romance Standard Time":{aliasTo:"Europe/Paris"},"Russia Time Zone 10":{aliasTo:"Asia/Srednekolymsk"},"Russia Time Zone 11":{aliasTo:"Asia/Kamchatka"},"Russia Time Zone 3":{aliasTo:"Europe/Samara"},"Russian Standard Time":{aliasTo:"Europe/Moscow"},"SA Eastern Standard Time":{aliasTo:"America/Cayenne"},"SA Pacific Standard Time":{aliasTo:"America/Bogota"},"SA Western Standard Time":{aliasTo:"America/La_Paz"},"SE Asia Standard Time":{aliasTo:"Asia/Bangkok"},"Samoa Standard Time":{aliasTo:"Pacific/Apia"},"Singapore Standard Time":{aliasTo:"Asia/Singapore"},"South Africa Standard Time":{aliasTo:"Africa/Johannesburg"},"Sri Lanka Standard Time":{aliasTo:"Asia/Colombo"},"Syria Standard Time":{aliasTo:"Asia/Damascus"},"Taipei Standard Time":{aliasTo:"Asia/Taipei"},"Tasmania Standard Time":{aliasTo:"Australia/Hobart"},"Tokyo Standard Time":{aliasTo:"Asia/Tokyo"},"Tonga Standard Time":{aliasTo:"Pacific/Tongatapu"},"Turkey Standard Time":{aliasTo:"Europe/Istanbul"},UCT:{aliasTo:"UTC"},"US Eastern Standard Time":{aliasTo:"America/Indiana/Indianapolis"},"US Mountain Standard Time":{aliasTo:"America/Phoenix"},"US/Central":{aliasTo:"America/Chicago"},"US/Eastern":{aliasTo:"America/New_York"},"US/Mountain":{aliasTo:"America/Denver"},"US/Pacific":{aliasTo:"America/Los_Angeles"},"US/Pacific-New":{aliasTo:"America/Los_Angeles"},"Ulaanbaatar Standard Time":{aliasTo:"Asia/Ulaanbaatar"},Universal:{aliasTo:"UTC"},"Venezuela Standard Time":{aliasTo:"America/Caracas"},"Vladivostok Standard Time":{aliasTo:"Asia/Vladivostok"},"W. Australia Standard Time":{aliasTo:"Australia/Perth"},"W. Central Africa Standard Time":{aliasTo:"Africa/Lagos"},"W. Europe Standard Time":{aliasTo:"Europe/Berlin"},"West Asia Standard Time":{aliasTo:"Asia/Tashkent"},"West Pacific Standard Time":{aliasTo:"Pacific/Port_Moresby"},"Yakutsk Standard Time":{aliasTo:"Asia/Yakutsk"},Z:{aliasTo:"UTC"},Zulu:{aliasTo:"UTC"},utc:{aliasTo:"UTC"}},Fce={"Africa/Abidjan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0051900",longitude:"-0040200"},"Africa/Accra":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Addis_Ababa":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Algiers":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0364700",longitude:"+0030300"},"Africa/Asmara":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Asmera":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Bamako":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Bangui":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Banjul":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Bissau":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0115100",longitude:"-0153500"},"Africa/Blantyre":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Brazzaville":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Bujumbura":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Cairo":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700424T000000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=-1FR\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701030T000000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1FR\r
END:STANDARD`],latitude:"+0300300",longitude:"+0311500"},"Africa/Casablanca":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:+01\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0333900",longitude:"-0073500"},"Africa/Ceuta":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0355300",longitude:"-0051900"},"Africa/Conakry":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Dakar":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Dar_es_Salaam":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Djibouti":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Douala":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/El_Aaiun":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:+01\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0270900",longitude:"-0131200"},"Africa/Freetown":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Gaborone":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Harare":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Johannesburg":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:SAST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0261500",longitude:"+0280000"},"Africa/Juba":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0045100",longitude:"+0313700"},"Africa/Kampala":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Khartoum":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0153600",longitude:"+0323200"},"Africa/Kigali":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Kinshasa":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Lagos":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0062700",longitude:"+0032400"},"Africa/Libreville":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Lome":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Luanda":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Lubumbashi":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Lusaka":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Malabo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Maputo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0255800",longitude:"+0323500"},"Africa/Maseru":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:SAST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Mbabane":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:SAST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Mogadishu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Monrovia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0061800",longitude:"-0104700"},"Africa/Nairobi":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0011700",longitude:"+0364900"},"Africa/Ndjamena":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0120700",longitude:"+0150300"},"Africa/Niamey":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Nouakchott":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Ouagadougou":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Porto-Novo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:WAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Sao_Tome":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0002000",longitude:"+0064400"},"Africa/Timbuktu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Africa/Tripoli":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0325400",longitude:"+0131100"},"Africa/Tunis":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0364800",longitude:"+0101100"},"Africa/Windhoek":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:CAT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0223400",longitude:"+0170600"},"America/Adak":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-0900\r
TZNAME:HDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-1000\r
TZNAME:HST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0515248",longitude:"-1763929"},"America/Anchorage":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0800\r
TZNAME:AKDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0900\r
TZNAME:AKST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0611305",longitude:"-1495401"},"America/Anguilla":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Antigua":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Araguaina":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0071200",longitude:"-0481200"},"America/Argentina/Buenos_Aires":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0343600",longitude:"-0582700"},"America/Argentina/Catamarca":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0282800",longitude:"-0654700"},"America/Argentina/ComodRivadavia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Argentina/Cordoba":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0312400",longitude:"-0641100"},"America/Argentina/Jujuy":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0241100",longitude:"-0651800"},"America/Argentina/La_Rioja":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0292600",longitude:"-0665100"},"America/Argentina/Mendoza":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0325300",longitude:"-0684900"},"America/Argentina/Rio_Gallegos":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0513800",longitude:"-0691300"},"America/Argentina/Salta":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0244700",longitude:"-0652500"},"America/Argentina/San_Juan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0313200",longitude:"-0683100"},"America/Argentina/San_Luis":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0331900",longitude:"-0662100"},"America/Argentina/Tucuman":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0264900",longitude:"-0651300"},"America/Argentina/Ushuaia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0544800",longitude:"-0681800"},"America/Aruba":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Asuncion":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19701004T000000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700322T000000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=4SU\r
END:STANDARD`],latitude:"-0251600",longitude:"-0574000"},"America/Atikokan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Atka":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-0900\r
TZNAME:HDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-1000\r
TZNAME:HST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Bahia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0125900",longitude:"-0383100"},"America/Bahia_Banderas":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0204800",longitude:"-1051500"},"America/Barbados":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0130600",longitude:"-0593700"},"America/Belem":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0012700",longitude:"-0482900"},"America/Belize":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0173000",longitude:"-0881200"},"America/Blanc-Sablon":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Boa_Vista":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0024900",longitude:"-0604000"},"America/Bogota":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0043600",longitude:"-0740500"},"America/Boise":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0433649",longitude:"-1161209"},"America/Buenos_Aires":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Cambridge_Bay":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0690650",longitude:"-1050310"},"America/Campo_Grande":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0202700",longitude:"-0543700"},"America/Cancun":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0210500",longitude:"-0864600"},"America/Caracas":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0103000",longitude:"-0665600"},"America/Catamarca":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Cayenne":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0045600",longitude:"-0522000"},"America/Cayman":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Chicago":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0415100",longitude:"-0873900"},"America/Chihuahua":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0283800",longitude:"-1060500"},"America/Ciudad_Juarez":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0314400",longitude:"-1062900"},"America/Coral_Harbour":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Cordoba":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Costa_Rica":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0095600",longitude:"-0840500"},"America/Creston":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Cuiaba":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0153500",longitude:"-0560500"},"America/Curacao":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Danmarkshavn":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0764600",longitude:"-0184000"},"America/Dawson":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0640400",longitude:"-1392500"},"America/Dawson_Creek":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0554600",longitude:"-1201400"},"America/Denver":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0394421",longitude:"-1045903"},"America/Detroit":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0421953",longitude:"-0830245"},"America/Dominica":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Edmonton":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0533300",longitude:"-1132800"},"America/Eirunepe":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0064000",longitude:"-0695200"},"America/El_Salvador":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0134200",longitude:"-0891200"},"America/Ensenada":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Fort_Nelson":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0584800",longitude:"-1224200"},"America/Fort_Wayne":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Fortaleza":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0034300",longitude:"-0383000"},"America/Glace_Bay":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:ADT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0461200",longitude:"-0595700"},"America/Godthab":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0200\r
TZOFFSETTO:-0100\r
TZNAME:-01\r
DTSTART:19700328T230000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0100\r
TZOFFSETTO:-0200\r
TZNAME:-02\r
DTSTART:19701025T000000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"America/Goose_Bay":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:ADT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`],latitude:"+0532000",longitude:"-0602500"},"America/Grand_Turk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`],latitude:"+0212800",longitude:"-0710800"},"America/Grenada":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Guadeloupe":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Guatemala":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0143800",longitude:"-0903100"},"America/Guayaquil":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0021000",longitude:"-0795000"},"America/Guyana":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0064800",longitude:"-0581000"},"America/Halifax":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:ADT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0443900",longitude:"-0633600"},"America/Havana":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:CST\r
DTSTART:19701101T010000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:CDT\r
DTSTART:19700308T000000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`],latitude:"+0230800",longitude:"-0822200"},"America/Hermosillo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0290400",longitude:"-1105800"},"America/Indiana/Indianapolis":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0394606",longitude:"-0860929"},"America/Indiana/Knox":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0411745",longitude:"-0863730"},"America/Indiana/Marengo":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0382232",longitude:"-0862041"},"America/Indiana/Petersburg":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0382931",longitude:"-0871643"},"America/Indiana/Tell_City":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0375711",longitude:"-0864541"},"America/Indiana/Vevay":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0384452",longitude:"-0850402"},"America/Indiana/Vincennes":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0384038",longitude:"-0873143"},"America/Indiana/Winamac":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`],latitude:"+0410305",longitude:"-0863611"},"America/Indianapolis":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Inuvik":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0682059",longitude:"-1334300"},"America/Iqaluit":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0634400",longitude:"-0682800"},"America/Jamaica":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0175805",longitude:"-0764736"},"America/Jujuy":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Juneau":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0800\r
TZNAME:AKDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0900\r
TZNAME:AKST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0581807",longitude:"-1342511"},"America/Kentucky/Louisville":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0381515",longitude:"-0854534"},"America/Kentucky/Monticello":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0364947",longitude:"-0845057"},"America/Knox_IN":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Kralendijk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/La_Paz":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0163000",longitude:"-0680900"},"America/Lima":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0120300",longitude:"-0770300"},"America/Los_Angeles":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0340308",longitude:"-1181434"},"America/Louisville":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Lower_Princes":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Maceio":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0094000",longitude:"-0354300"},"America/Managua":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0120900",longitude:"-0861700"},"America/Manaus":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0030800",longitude:"-0600100"},"America/Marigot":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Martinique":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0143600",longitude:"-0610500"},"America/Matamoros":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0255000",longitude:"-0973000"},"America/Mazatlan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0231300",longitude:"-1062500"},"America/Mendoza":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Menominee":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0450628",longitude:"-0873651"},"America/Merida":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0205800",longitude:"-0893700"},"America/Metlakatla":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0800\r
TZNAME:AKDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0900\r
TZNAME:AKST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0550737",longitude:"-1313435"},"America/Mexico_City":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0192400",longitude:"-0990900"},"America/Miquelon":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0200\r
TZNAME:-02\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0200\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0470300",longitude:"-0562000"},"America/Moncton":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:ADT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0460600",longitude:"-0644700"},"America/Monterrey":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0254000",longitude:"-1001900"},"America/Montevideo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0345433",longitude:"-0561245"},"America/Montreal":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Montserrat":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Nassau":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/New_York":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0404251",longitude:"-0740023"},"America/Nipigon":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Nome":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0800\r
TZNAME:AKDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0900\r
TZNAME:AKST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0643004",longitude:"-1652423"},"America/Noronha":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0200\r
TZOFFSETTO:-0200\r
TZNAME:-02\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0035100",longitude:"-0322500"},"America/North_Dakota/Beulah":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0471551",longitude:"-1014640"},"America/North_Dakota/Center":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0470659",longitude:"-1011757"},"America/North_Dakota/New_Salem":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0465042",longitude:"-1012439"},"America/Nuuk":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0200\r
TZOFFSETTO:-0100\r
TZNAME:-01\r
DTSTART:19700328T230000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0100\r
TZOFFSETTO:-0200\r
TZNAME:-02\r
DTSTART:19701025T000000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0641100",longitude:"-0514400"},"America/Ojinaga":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0293400",longitude:"-1042500"},"America/Panama":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0085800",longitude:"-0793200"},"America/Pangnirtung":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Paramaribo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0055000",longitude:"-0551000"},"America/Phoenix":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0332654",longitude:"-1120424"},"America/Port-au-Prince":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0183200",longitude:"-0722000"},"America/Port_of_Spain":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Porto_Acre":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Porto_Velho":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0084600",longitude:"-0635400"},"America/Puerto_Rico":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0182806",longitude:"-0660622"},"America/Punta_Arenas":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0530900",longitude:"-0705500"},"America/Rainy_River":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Rankin_Inlet":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0624900",longitude:"-0920459"},"America/Recife":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0080300",longitude:"-0345400"},"America/Regina":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0502400",longitude:"-1043900"},"America/Resolute":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`],latitude:"+0744144",longitude:"-0944945"},"America/Rio_Branco":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0095800",longitude:"-0674800"},"America/Rosario":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Santa_Isabel":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Santarem":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0022600",longitude:"-0545200"},"America/Santiago":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700405T000000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700906T000000\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=1SU\r
END:DAYLIGHT`],latitude:"-0332700",longitude:"-0704000"},"America/Santo_Domingo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0182800",longitude:"-0695400"},"America/Sao_Paulo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0233200",longitude:"-0463700"},"America/Scoresbysund":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0100\r
TZOFFSETTO:-0200\r
TZNAME:-02\r
DTSTART:19701025T000000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0200\r
TZOFFSETTO:-0100\r
TZNAME:-01\r
DTSTART:19700328T230000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA\r
END:DAYLIGHT`],latitude:"+0702900",longitude:"-0215800"},"America/Shiprock":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Sitka":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0800\r
TZNAME:AKDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0900\r
TZNAME:AKST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0571035",longitude:"-1351807"},"America/St_Barthelemy":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/St_Johns":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0230\r
TZOFFSETTO:-0330\r
TZNAME:NST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0330\r
TZOFFSETTO:-0230\r
TZNAME:NDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`],latitude:"+0473400",longitude:"-0524300"},"America/St_Kitts":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/St_Lucia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/St_Thomas":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/St_Vincent":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Swift_Current":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0501700",longitude:"-1075000"},"America/Tegucigalpa":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0140600",longitude:"-0871300"},"America/Thule":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:ADT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0763400",longitude:"-0684700"},"America/Thunder_Bay":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"America/Tijuana":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0323200",longitude:"-1170100"},"America/Toronto":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0433900",longitude:"-0792300"},"America/Tortola":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Vancouver":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0491600",longitude:"-1230700"},"America/Virgin":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"America/Whitehorse":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0604300",longitude:"-1350300"},"America/Winnipeg":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0495300",longitude:"-0970900"},"America/Yakutat":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0800\r
TZNAME:AKDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0900\r
TZNAME:AKST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0593249",longitude:"-1394338"},"America/Yellowknife":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"Antarctica/Casey":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0661700",longitude:"+1103100"},"Antarctica/Davis":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0683500",longitude:"+0775800"},"Antarctica/DumontDUrville":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:+10\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Antarctica/Macquarie":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`],latitude:"-0543000",longitude:"+1585700"},"Antarctica/Mawson":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0673600",longitude:"+0625300"},"Antarctica/McMurdo":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1300\r
TZNAME:NZDT\r
DTSTART:19700927T020000\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1200\r
TZNAME:NZST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`]},"Antarctica/Palmer":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0644800",longitude:"-0640600"},"Antarctica/Rothera":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0673400",longitude:"-0680800"},"Antarctica/South_Pole":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1300\r
TZNAME:NZDT\r
DTSTART:19700927T020000\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1200\r
TZNAME:NZST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`]},"Antarctica/Syowa":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Antarctica/Troll":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0200\r
TZNAME:+02\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0000\r
TZNAME:+00\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"-0720041",longitude:"+0023206"},"Antarctica/Vostok":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0782400",longitude:"+1065400"},"Arctic/Longyearbyen":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Asia/Aden":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Almaty":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0431500",longitude:"+0765700"},"Asia/Amman":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0315700",longitude:"+0355600"},"Asia/Anadyr":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0644500",longitude:"+1772900"},"Asia/Aqtau":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0443100",longitude:"+0501600"},"Asia/Aqtobe":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0501700",longitude:"+0571000"},"Asia/Ashgabat":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0375700",longitude:"+0582300"},"Asia/Ashkhabad":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Atyrau":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0470700",longitude:"+0515600"},"Asia/Baghdad":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0332100",longitude:"+0442500"},"Asia/Bahrain":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Baku":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0402300",longitude:"+0495100"},"Asia/Bangkok":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0134500",longitude:"+1003100"},"Asia/Barnaul":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0532200",longitude:"+0834500"},"Asia/Beirut":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T000000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T000000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0335300",longitude:"+0353000"},"Asia/Bishkek":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0425400",longitude:"+0743600"},"Asia/Brunei":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Calcutta":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0530\r
TZOFFSETTO:+0530\r
TZNAME:IST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Chita":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:+09\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0520300",longitude:"+1132800"},"Asia/Choibalsan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0480400",longitude:"+1143000"},"Asia/Chongqing":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Chungking":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Colombo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0530\r
TZOFFSETTO:+0530\r
TZNAME:+0530\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0065600",longitude:"+0795100"},"Asia/Dacca":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Damascus":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0333000",longitude:"+0361800"},"Asia/Dhaka":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0234300",longitude:"+0902500"},"Asia/Dili":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:+09\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0083300",longitude:"+1253500"},"Asia/Dubai":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0251800",longitude:"+0551800"},"Asia/Dushanbe":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0383500",longitude:"+0684800"},"Asia/Famagusta":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0350700",longitude:"+0335700"},"Asia/Gaza":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700328T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701031T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA\r
END:STANDARD`],latitude:"+0313000",longitude:"+0342800"},"Asia/Harbin":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Hebron":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700328T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SA\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701031T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA\r
END:STANDARD`],latitude:"+0313200",longitude:"+0350542"},"Asia/Ho_Chi_Minh":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0104500",longitude:"+1064000"},"Asia/Hong_Kong":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:HKT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0221700",longitude:"+1140900"},"Asia/Hovd":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0480100",longitude:"+0913900"},"Asia/Irkutsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0521600",longitude:"+1042000"},"Asia/Istanbul":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Jakarta":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:WIB\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0061000",longitude:"+1064800"},"Asia/Jayapura":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:WIT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0023200",longitude:"+1404200"},"Asia/Jerusalem":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:IDT\r
DTSTART:19700327T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1FR\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:IST\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0314650",longitude:"+0351326"},"Asia/Kabul":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0430\r
TZOFFSETTO:+0430\r
TZNAME:+0430\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0343100",longitude:"+0691200"},"Asia/Kamchatka":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0530100",longitude:"+1583900"},"Asia/Karachi":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:PKT\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0245200",longitude:"+0670300"},"Asia/Kashgar":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Kathmandu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0545\r
TZOFFSETTO:+0545\r
TZNAME:+0545\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0274300",longitude:"+0851900"},"Asia/Katmandu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0545\r
TZOFFSETTO:+0545\r
TZNAME:+0545\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Khandyga":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:+09\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0623923",longitude:"+1353314"},"Asia/Kolkata":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0530\r
TZOFFSETTO:+0530\r
TZNAME:IST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0223200",longitude:"+0882200"},"Asia/Krasnoyarsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0560100",longitude:"+0925000"},"Asia/Kuala_Lumpur":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Kuching":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0013300",longitude:"+1102000"},"Asia/Kuwait":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Macao":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Macau":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0221150",longitude:"+1133230"},"Asia/Magadan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0593400",longitude:"+1504800"},"Asia/Makassar":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:WITA\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0050700",longitude:"+1192400"},"Asia/Manila":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:PST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0143500",longitude:"+1210000"},"Asia/Muscat":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Nicosia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`],latitude:"+0351000",longitude:"+0332200"},"Asia/Novokuznetsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0534500",longitude:"+0870700"},"Asia/Novosibirsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0550200",longitude:"+0825500"},"Asia/Omsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0550000",longitude:"+0732400"},"Asia/Oral":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0511300",longitude:"+0512100"},"Asia/Phnom_Penh":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Pontianak":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:WIB\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0000200",longitude:"+1092000"},"Asia/Pyongyang":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:KST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0390100",longitude:"+1254500"},"Asia/Qatar":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0251700",longitude:"+0513200"},"Asia/Qostanay":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0531200",longitude:"+0633700"},"Asia/Qyzylorda":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0444800",longitude:"+0652800"},"Asia/Rangoon":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0630\r
TZOFFSETTO:+0630\r
TZNAME:+0630\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Riyadh":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0243800",longitude:"+0464300"},"Asia/Saigon":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Sakhalin":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0465800",longitude:"+1424200"},"Asia/Samarkand":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0394000",longitude:"+0664800"},"Asia/Seoul":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:KST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0373300",longitude:"+1265800"},"Asia/Shanghai":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0311400",longitude:"+1212800"},"Asia/Singapore":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0011700",longitude:"+1035100"},"Asia/Srednekolymsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0672800",longitude:"+1534300"},"Asia/Taipei":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0250300",longitude:"+1213000"},"Asia/Tashkent":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0412000",longitude:"+0691800"},"Asia/Tbilisi":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0414300",longitude:"+0444900"},"Asia/Tehran":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0330\r
TZOFFSETTO:+0330\r
TZNAME:+0330\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0354000",longitude:"+0512600"},"Asia/Tel_Aviv":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:IDT\r
DTSTART:19700327T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1FR\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:IST\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Asia/Thimbu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Thimphu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0272800",longitude:"+0893900"},"Asia/Tokyo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:JST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0353916",longitude:"+1394441"},"Asia/Tomsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0563000",longitude:"+0845800"},"Asia/Ujung_Pandang":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:WITA\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Ulaanbaatar":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0475500",longitude:"+1065300"},"Asia/Ulan_Bator":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:+08\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Urumqi":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0434800",longitude:"+0873500"},"Asia/Ust-Nera":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:+10\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0643337",longitude:"+1431336"},"Asia/Vientiane":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Asia/Vladivostok":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:+10\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0431000",longitude:"+1315600"},"Asia/Yakutsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:+09\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0620000",longitude:"+1294000"},"Asia/Yangon":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0630\r
TZOFFSETTO:+0630\r
TZNAME:+0630\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0164700",longitude:"+0961000"},"Asia/Yekaterinburg":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0565100",longitude:"+0603600"},"Asia/Yerevan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0401100",longitude:"+0443000"},"Atlantic/Azores":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0100\r
TZOFFSETTO:+0000\r
TZNAME:+00\r
DTSTART:19700329T000000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:-0100\r
TZNAME:-01\r
DTSTART:19701025T010000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0374400",longitude:"-0254000"},"Atlantic/Bermuda":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:ADT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`],latitude:"+0321700",longitude:"-0644600"},"Atlantic/Canary":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:WEST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:WET\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0280600",longitude:"-0152400"},"Atlantic/Cape_Verde":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0100\r
TZOFFSETTO:-0100\r
TZNAME:-01\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0145500",longitude:"-0233100"},"Atlantic/Faeroe":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:WEST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:WET\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Atlantic/Faroe":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:WEST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:WET\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0620100",longitude:"-0064600"},"Atlantic/Jan_Mayen":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Atlantic/Madeira":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:WEST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:WET\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0323800",longitude:"-0165400"},"Atlantic/Reykjavik":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Atlantic/South_Georgia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0200\r
TZOFFSETTO:-0200\r
TZNAME:-02\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0541600",longitude:"-0363200"},"Atlantic/St_Helena":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Atlantic/Stanley":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0514200",longitude:"-0575100"},"Australia/ACT":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`]},"Australia/Adelaide":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1030\r
TZOFFSETTO:+0930\r
TZNAME:ACST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0930\r
TZOFFSETTO:+1030\r
TZNAME:ACDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`],latitude:"-0345500",longitude:"+1383500"},"Australia/Brisbane":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0272800",longitude:"+1530200"},"Australia/Broken_Hill":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1030\r
TZOFFSETTO:+0930\r
TZNAME:ACST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0930\r
TZOFFSETTO:+1030\r
TZNAME:ACDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`],latitude:"-0315700",longitude:"+1412700"},"Australia/Canberra":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`]},"Australia/Currie":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`]},"Australia/Darwin":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0930\r
TZOFFSETTO:+0930\r
TZNAME:ACST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0122800",longitude:"+1305000"},"Australia/Eucla":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0845\r
TZOFFSETTO:+0845\r
TZNAME:+0845\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0314300",longitude:"+1285200"},"Australia/Hobart":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`],latitude:"-0425300",longitude:"+1471900"},"Australia/LHI":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1030\r
TZNAME:+1030\r
DTSTART:19700405T020000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1030\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`]},"Australia/Lindeman":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0201600",longitude:"+1490000"},"Australia/Lord_Howe":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1030\r
TZNAME:+1030\r
DTSTART:19700405T020000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1030\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`],latitude:"-0313300",longitude:"+1590500"},"Australia/Melbourne":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`],latitude:"-0374900",longitude:"+1445800"},"Australia/NSW":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`]},"Australia/North":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0930\r
TZOFFSETTO:+0930\r
TZNAME:ACST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Australia/Perth":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:AWST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0315700",longitude:"+1155100"},"Australia/Queensland":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Australia/South":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1030\r
TZOFFSETTO:+0930\r
TZNAME:ACST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0930\r
TZOFFSETTO:+1030\r
TZNAME:ACDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`]},"Australia/Sydney":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`],latitude:"-0335200",longitude:"+1511300"},"Australia/Tasmania":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`]},"Australia/Victoria":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1000\r
TZNAME:AEST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1100\r
TZNAME:AEDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`]},"Australia/West":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0800\r
TZOFFSETTO:+0800\r
TZNAME:AWST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Australia/Yancowinna":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1030\r
TZOFFSETTO:+0930\r
TZNAME:ACST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0930\r
TZOFFSETTO:+1030\r
TZNAME:ACDT\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`]},"Brazil/Acre":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Brazil/DeNoronha":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0200\r
TZOFFSETTO:-0200\r
TZNAME:-02\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Brazil/East":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Brazil/West":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Canada/Atlantic":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:ADT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:AST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"Canada/Central":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"Canada/Eastern":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"Canada/Mountain":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"Canada/Newfoundland":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0230\r
TZOFFSETTO:-0330\r
TZNAME:NST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0330\r
TZOFFSETTO:-0230\r
TZNAME:NDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`]},"Canada/Pacific":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"Canada/Saskatchewan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Canada/Yukon":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Chile/Continental":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0300\r
TZOFFSETTO:-0400\r
TZNAME:-04\r
DTSTART:19700405T000000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0300\r
TZNAME:-03\r
DTSTART:19700906T000000\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=1SU\r
END:DAYLIGHT`]},"Chile/EasterIsland":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:-06\r
DTSTART:19700404T220000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SA\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700905T220000\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=1SA\r
END:DAYLIGHT`]},"Europe/Amsterdam":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Andorra":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0423000",longitude:"+0013100"},"Europe/Astrakhan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0462100",longitude:"+0480300"},"Europe/Athens":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0375800",longitude:"+0234300"},"Europe/Belfast":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:BST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Belgrade":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0445000",longitude:"+0203000"},"Europe/Berlin":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0523000",longitude:"+0132200"},"Europe/Bratislava":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Brussels":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0505000",longitude:"+0042000"},"Europe/Bucharest":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0442600",longitude:"+0260600"},"Europe/Budapest":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0473000",longitude:"+0190500"},"Europe/Busingen":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Chisinau":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0470000",longitude:"+0285000"},"Europe/Copenhagen":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Dublin":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:IST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:DAYLIGHT`],latitude:"+0532000",longitude:"-0061500"},"Europe/Gibraltar":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0360800",longitude:"-0052100"},"Europe/Guernsey":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:BST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Helsinki":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0601000",longitude:"+0245800"},"Europe/Isle_of_Man":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:BST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Istanbul":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0410100",longitude:"+0285800"},"Europe/Jersey":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:BST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Kaliningrad":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0544300",longitude:"+0203000"},"Europe/Kiev":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`]},"Europe/Kirov":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:MSK\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0583600",longitude:"+0493900"},"Europe/Kyiv":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`],latitude:"+0502600",longitude:"+0303100"},"Europe/Lisbon":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:WET\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:WEST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`],latitude:"+0384300",longitude:"-0090800"},"Europe/Ljubljana":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/London":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0100\r
TZNAME:BST\r
DTSTART:19700329T010000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
DTSTART:19701025T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0513030",longitude:"+0000731"},"Europe/Luxembourg":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Madrid":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0402400",longitude:"-0034100"},"Europe/Malta":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0355400",longitude:"+0143100"},"Europe/Mariehamn":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Minsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:+03\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0535400",longitude:"+0273400"},"Europe/Monaco":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Moscow":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:MSK\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0554521",longitude:"+0373704"},"Europe/Nicosia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`]},"Europe/Oslo":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Paris":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0485200",longitude:"+0022000"},"Europe/Podgorica":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Prague":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0500500",longitude:"+0142600"},"Europe/Riga":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0565700",longitude:"+0240600"},"Europe/Rome":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0415400",longitude:"+0122900"},"Europe/Samara":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0531200",longitude:"+0500900"},"Europe/San_Marino":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Sarajevo":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Saratov":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0513400",longitude:"+0460200"},"Europe/Simferopol":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:MSK\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0445700",longitude:"+0340600"},"Europe/Skopje":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Sofia":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0424100",longitude:"+0231900"},"Europe/Stockholm":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Tallinn":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0592500",longitude:"+0244500"},"Europe/Tirane":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0412000",longitude:"+0195000"},"Europe/Tiraspol":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Ulyanovsk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0542000",longitude:"+0482400"},"Europe/Uzhgorod":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`]},"Europe/Vaduz":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Vatican":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Vienna":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0481300",longitude:"+0162000"},"Europe/Vilnius":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0544100",longitude:"+0251900"},"Europe/Volgograd":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:MSK\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0484400",longitude:"+0442500"},"Europe/Warsaw":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0521500",longitude:"+0210000"},"Europe/Zagreb":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`]},"Europe/Zaporozhye":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0200\r
TZNAME:EET\r
DTSTART:19701025T040000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0300\r
TZNAME:EEST\r
DTSTART:19700329T030000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`]},"Europe/Zurich":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+0100\r
TZOFFSETTO:+0200\r
TZNAME:CEST\r
DTSTART:19700329T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+0200\r
TZOFFSETTO:+0100\r
TZNAME:CET\r
DTSTART:19701025T030000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r
END:STANDARD`],latitude:"+0472300",longitude:"+0083200"},"Indian/Antananarivo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Indian/Chagos":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0600\r
TZOFFSETTO:+0600\r
TZNAME:+06\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0072000",longitude:"+0722500"},"Indian/Christmas":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0700\r
TZOFFSETTO:+0700\r
TZNAME:+07\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Indian/Cocos":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0630\r
TZOFFSETTO:+0630\r
TZNAME:+0630\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Indian/Comoro":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Indian/Kerguelen":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Indian/Mahe":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Indian/Maldives":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0500\r
TZOFFSETTO:+0500\r
TZNAME:+05\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0041000",longitude:"+0733000"},"Indian/Mauritius":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0201000",longitude:"+0573000"},"Indian/Mayotte":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0300\r
TZOFFSETTO:+0300\r
TZNAME:EAT\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Indian/Reunion":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0400\r
TZOFFSETTO:+0400\r
TZNAME:+04\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Mexico/BajaNorte":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"Mexico/BajaSur":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Mexico/General":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Apia":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1300\r
TZNAME:+13\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0135000",longitude:"-1714400"},"Pacific/Auckland":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1300\r
TZNAME:NZDT\r
DTSTART:19700927T020000\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1200\r
TZNAME:NZST\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`],latitude:"-0365200",longitude:"+1744600"},"Pacific/Bougainville":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0061300",longitude:"+1553400"},"Pacific/Chatham":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1245\r
TZOFFSETTO:+1345\r
TZNAME:+1345\r
DTSTART:19700927T024500\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1345\r
TZOFFSETTO:+1245\r
TZNAME:+1245\r
DTSTART:19700405T034500\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`],latitude:"-0435700",longitude:"-1763300"},"Pacific/Chuuk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:+10\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Easter":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:-06\r
DTSTART:19700404T220000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SA\r
END:STANDARD`,`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:-05\r
DTSTART:19700905T220000\r
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=1SA\r
END:DAYLIGHT`],latitude:"-0270900",longitude:"-1092600"},"Pacific/Efate":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0174000",longitude:"+1682500"},"Pacific/Enderbury":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1300\r
TZNAME:+13\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Fakaofo":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1300\r
TZNAME:+13\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0092200",longitude:"-1711400"},"Pacific/Fiji":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0180800",longitude:"+1782500"},"Pacific/Funafuti":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Galapagos":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0600\r
TZNAME:-06\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0005400",longitude:"-0893600"},"Pacific/Gambier":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0900\r
TZNAME:-09\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0230800",longitude:"-1345700"},"Pacific/Guadalcanal":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0093200",longitude:"+1601200"},"Pacific/Guam":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:ChST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0132800",longitude:"+1444500"},"Pacific/Honolulu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-1000\r
TZNAME:HST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0211825",longitude:"-1575130"},"Pacific/Johnston":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-1000\r
TZNAME:HST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Kanton":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1300\r
TZNAME:+13\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0024700",longitude:"-1714300"},"Pacific/Kiritimati":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1400\r
TZOFFSETTO:+1400\r
TZNAME:+14\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0015200",longitude:"-1572000"},"Pacific/Kosrae":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0051900",longitude:"+1625900"},"Pacific/Kwajalein":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0090500",longitude:"+1672000"},"Pacific/Majuro":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Marquesas":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0930\r
TZOFFSETTO:-0930\r
TZNAME:-0930\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0090000",longitude:"-1393000"},"Pacific/Midway":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1100\r
TZOFFSETTO:-1100\r
TZNAME:SST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Nauru":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0003100",longitude:"+1665500"},"Pacific/Niue":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1100\r
TZOFFSETTO:-1100\r
TZNAME:-11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0190100",longitude:"-1695500"},"Pacific/Norfolk":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19701004T020000\r
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700405T030000\r
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\r
END:STANDARD`],latitude:"-0290300",longitude:"+1675800"},"Pacific/Noumea":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0221600",longitude:"+1662700"},"Pacific/Pago_Pago":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1100\r
TZOFFSETTO:-1100\r
TZNAME:SST\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0141600",longitude:"-1704200"},"Pacific/Palau":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0900\r
TZOFFSETTO:+0900\r
TZNAME:+09\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0072000",longitude:"+1342900"},"Pacific/Pitcairn":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0800\r
TZNAME:-08\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0250400",longitude:"-1300500"},"Pacific/Pohnpei":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Ponape":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1100\r
TZOFFSETTO:+1100\r
TZNAME:+11\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Port_Moresby":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:+10\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0093000",longitude:"+1471000"},"Pacific/Rarotonga":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-1000\r
TZNAME:-10\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0211400",longitude:"-1594600"},"Pacific/Saipan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:ChST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Samoa":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1100\r
TZOFFSETTO:-1100\r
TZNAME:SST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Tahiti":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-1000\r
TZNAME:-10\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0173200",longitude:"-1493400"},"Pacific/Tarawa":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"+0012500",longitude:"+1730000"},"Pacific/Tongatapu":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1300\r
TZOFFSETTO:+1300\r
TZNAME:+13\r
DTSTART:19700101T000000\r
END:STANDARD`],latitude:"-0210800",longitude:"-1751200"},"Pacific/Truk":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:+10\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Wake":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Wallis":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1200\r
TZOFFSETTO:+1200\r
TZNAME:+12\r
DTSTART:19700101T000000\r
END:STANDARD`]},"Pacific/Yap":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+1000\r
TZOFFSETTO:+1000\r
TZNAME:+10\r
DTSTART:19700101T000000\r
END:STANDARD`]},"US/Alaska":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-0800\r
TZNAME:AKDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0900\r
TZNAME:AKST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Aleutian":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-0900\r
TZNAME:HDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0900\r
TZOFFSETTO:-1000\r
TZNAME:HST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Arizona":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"US/Central":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/East-Indiana":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Eastern":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Hawaii":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1000\r
TZOFFSETTO:-1000\r
TZNAME:HST\r
DTSTART:19700101T000000\r
END:STANDARD`]},"US/Indiana-Starke":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0500\r
TZNAME:CDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0600\r
TZNAME:CST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Michigan":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0500\r
TZOFFSETTO:-0400\r
TZNAME:EDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0400\r
TZOFFSETTO:-0500\r
TZNAME:EST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Mountain":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0600\r
TZNAME:MDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0600\r
TZOFFSETTO:-0700\r
TZNAME:MST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Pacific":{ics:[`BEGIN:DAYLIGHT\r
TZOFFSETFROM:-0800\r
TZOFFSETTO:-0700\r
TZNAME:PDT\r
DTSTART:19700308T020000\r
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r
END:DAYLIGHT`,`BEGIN:STANDARD\r
TZOFFSETFROM:-0700\r
TZOFFSETTO:-0800\r
TZNAME:PST\r
DTSTART:19701101T020000\r
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r
END:STANDARD`]},"US/Samoa":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:-1100\r
TZOFFSETTO:-1100\r
TZNAME:SST\r
DTSTART:19700101T000000\r
END:STANDARD`]}},T0={version:Cce,aliases:Nce,zones:Fce};class Oce{_aliases=new Map;_timezones=new Map;_pendingAliases=[];getTimezoneForId(t){let n=0;for(;n++<20;){if(this._timezones.has(t))return this._timezones.get(t);if(this._aliases.has(t))t=this._aliases.get(t);else return null}return console.error("TimezoneManager.getTimezoneForIdRec() exceeds recursion limits"),null}hasTimezoneForId(t){return this._timezones.has(t)||this._aliases.has(t)}isAlias(t){return!this._timezones.has(t)&&this._aliases.has(t)}listAllTimezones(t=!1){const n=Array.from(this._timezones.keys());return t?n.concat(Array.from(this._aliases.keys())):n}registerTimezone(t){this._timezones.set(t.timezoneId,t),Xn.TimezoneService.register(t.toICALTimezone(),t.timezoneId),this._pendingAliases=this._pendingAliases.filter(([n,r])=>r!==t.timezoneId?!0:(Xn.TimezoneService.register(t.toICALTimezone(),n),!1))}registerDefaultTimezones(){console.debug(`@nextcloud/calendar-js app is using version ${T0.version} of the timezone database`);for(const t in T0.zones){const n=["BEGIN:VTIMEZONE","TZID:"+t,...T0.zones[t].ics,"END:VTIMEZONE"].join(`\r
`);this.registerTimezoneFromICS(t,n)}for(const t in T0.aliases)this.registerAlias(t,T0.aliases[t].aliasTo)}registerTimezoneFromICS(t,n){const r=new oa(t,n);this.registerTimezone(r)}registerAlias(t,n){this._aliases.set(t,n);const r=this.getTimezoneForId(n);if(!r){this._pendingAliases.push([t,n]);return}Xn.TimezoneService.register(r.toICALTimezone(),t)}unregisterTimezones(t){this._timezones.delete(t),Xn.TimezoneService.remove(t)}unregisterAlias(t){this._aliases.delete(t),this._pendingAliases=this._pendingAliases.filter(([n])=>n!==t),Xn.TimezoneService.remove(t)}clearAllTimezones(){this._aliases=new Map,this._pendingAliases=[],this._timezones=new Map,Xn.TimezoneService.reset(),xc.registerTimezone(oa.utc),xc.registerTimezone(oa.floating),xc.registerAlias("GMT",oa.utc.timezoneId),xc.registerAlias("Z",oa.utc.timezoneId)}}const xc=new Oce;xc.clearAllTimezones();function xce(){return xc}Et(fB);function kce(e=[],t=[]){const n={},r=[];for(const i of e){const o=i.split("/");let[s,a]=[o.shift(),o.join("/")];a||(a=s,s=me("Global")),n[s]=n[s]||{continent:s,regions:[]},n[s].regions.push({label:O3(a),cities:[],timezoneId:i})}for(const i of t){const{continent:o,label:s,timezoneId:a}=i;n[o]=n[o]||{continent:o,regions:[]},n[o].regions.push({label:s,cities:[],timezoneId:a})}for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(n[i].regions.sort((o,s)=>o.label<s.label?-1:1),r.push(n[i]));return r.sort((i,o)=>i.continent<o.continent?-1:1),r}function O3(e){return e.split("_").join(" ").replace("St ","St. ").split("/").join(" - ")}const L_=xce();let Y_=!1;function Rce(){return Y_||(L_.registerDefaultTimezones(),Y_=!0),L_}Et(mB);const Mce={name:"NcTimezonePicker",components:{NcSelect:zm},model:{prop:"modelValue",event:"update:modelValue"},props:{additionalTimezones:{type:Array,default:()=>[]},value:{type:String,default:void 0},modelValue:{type:String,default:"floating"},uid:{type:[String,Number],default:()=>`tz-${ro(5)}`}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:Po("value","input")}},computed:{placeholder(){return me("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.model)return e;return{label:O3(this.model),timezoneId:this.model}},options(){const e=Rce(),t=kce(e.listAllTimezones(),this.additionalTimezones);let n=[];return Object.values(t).forEach(r=>{n=n.concat(r.regions)}),n}},methods:{t:me,change(e){e&&(this.model=e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,t,n){const r=n.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(i=>this.matchTimezoneId(i.timezoneId,r)):this.matchTimezoneId(e.timezoneId,r)},matchTimezoneId(e,t){return t.every(n=>e.toLowerCase().includes(n.toLowerCase()))}}};var Bce=function(){var e=this,t=e._self._c;return t("NcSelect",{attrs:{"aria-label-combobox":e.t("Search for time zone"),clearable:!1,"filter-by":e.filterBy,multiple:!1,options:e.options,placeholder:e.placeholder,selectable:e.isSelectable,uid:e.uid,value:e.selectedTimezone,label:"label"},on:{"option:selected":e.change}})},Ice=[],Lce=ut(Mce,Bce,Ice,!1,null,null);const Yce=Lce.exports;function x3(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function i1(e){return x3(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function Hce(e){return x3(e)&&!isNaN(e.getTime())}function k3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var n=i1(e),r=n.getDay(),i=(r+7-t)%7;return n.setDate(n.getDate()-i),n.setHours(0,0,0,0),n}function R3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.firstDayOfWeek,r=n===void 0?0:n,i=t.firstWeekContainsDate,o=i===void 0?1:i;if(!(o>=1&&o<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var s=i1(e),a=s.getFullYear(),l=new Date(0),c=a+1;c>=a-1&&(l.setFullYear(c,0,o),l.setHours(0,0,0,0),l=k3(l,r),!(s.getTime()>=l.getTime()));c--);return l}function eE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.firstDayOfWeek,r=n===void 0?0:n,i=t.firstWeekContainsDate,o=i===void 0?1:i,s=i1(e),a=k3(s,r),l=R3(s,{firstDayOfWeek:r,firstWeekContainsDate:o}),c=a.getTime()-l.getTime();return Math.round(c/(7*24*3600*1e3))+1}var M3={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},Zce=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function bi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n="".concat(Math.abs(e)),r=e<0?"-":"";n.length<t;)n="0".concat(n);return r+n}function H_(e){return Math.round(e.getTimezoneOffset()/15)*15}function Z_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return n+bi(i,2)+t+bi(o,2)}var P_=function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLocaleLowerCase():r},J0={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return bi(e.getFullYear(),4).substr(2)},YYYY:function(e){return bi(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return bi(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return bi(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return bi(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=J0.h.apply(J0,arguments);return bi(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return bi(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return bi(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return bi(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return bi(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var n=t.meridiem||P_;return n(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var n=t.meridiem||P_;return n(e.getHours(),e.getMinutes(),!0)},Z:function(e){return Z_(H_(e),":")},ZZ:function(e){return Z_(H_(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return eE(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return bi(J0.w(e,t),2)}};function o1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",i=i1(e);if(!Hce(i))return"Invalid Date";var o=n.locale||M3;return r.replace(Zce,function(s,a){return a||(typeof J0[s]=="function"?"".concat(J0[s](i,o)):s)})}function $_(e){return Uce(e)||$ce(e)||Pce()}function Pce(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function $ce(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Uce(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function U_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U_(n,!0).forEach(function(r){sa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U_(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vce(e,t){return qce(e)||Gce(e,t)||jce()}function jce(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Gce(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function qce(e){if(Array.isArray(e))return e}function sa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wce=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,B3=/\d/,Ws=/\d\d/,Kce=/\d{3}/,Qce=/\d{4}/,wc=/\d\d?/,Jce=/[+-]\d\d:?\d\d/,I3=/[+-]?\d+/,Xce=/[+-]?\d+(\.\d{1,3})?/,mT="year",np="month",z_="day",V_="hour",j_="minute",G_="second",gT="millisecond",L3={},un=function(e,t,n){var r=Array.isArray(e)?e:[e],i;typeof n=="string"?i=function(o){var s=parseInt(o,10);return sa({},n,s)}:i=n,r.forEach(function(o){L3[o]=[t,i]})},eue=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},X0=function(e){return function(t){var n=t[e];if(!Array.isArray(n))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(n.map(eue).join("|"))}},ed=function(e,t){return function(n,r){var i=r[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));var o=i.indexOf(n);if(o<0)throw new Error("Invalid Word");return sa({},t,o)}};un("Y",I3,mT),un("YY",Ws,function(e){var t=new Date().getFullYear(),n=Math.floor(t/100),r=parseInt(e,10);return r=(r>68?n-1:n)*100+r,sa({},mT,r)}),un("YYYY",Qce,mT),un("M",wc,function(e){return sa({},np,parseInt(e,10)-1)}),un("MM",Ws,function(e){return sa({},np,parseInt(e,10)-1)}),un("MMM",X0("monthsShort"),ed("monthsShort",np)),un("MMMM",X0("months"),ed("months",np)),un("D",wc,z_),un("DD",Ws,z_),un(["H","h"],wc,V_),un(["HH","hh"],Ws,V_),un("m",wc,j_),un("mm",Ws,j_),un("s",wc,G_),un("ss",Ws,G_),un("S",B3,function(e){return sa({},gT,parseInt(e,10)*100)}),un("SS",Ws,function(e){return sa({},gT,parseInt(e,10)*10)}),un("SSS",Kce,gT);function tue(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function nue(e){return"".concat(e).toLowerCase().charAt(0)==="p"}un(["A","a"],tue,function(e,t){var n=typeof t.isPM=="function"?t.isPM(e):nue(e);return{isPM:n}});function rue(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],n=Vce(t,3),r=n[0],i=n[1],o=n[2],s=parseInt(i,10)*60+parseInt(o,10);return s===0?0:r==="+"?-s:+s}un(["Z","ZZ"],Jce,function(e){return{offset:rue(e)}}),un("x",I3,function(e){return{date:new Date(parseInt(e,10))}}),un("X",Xce,function(e){return{date:new Date(parseFloat(e)*1e3)}}),un("d",B3,"weekday"),un("dd",X0("weekdaysMin"),ed("weekdaysMin","weekday")),un("ddd",X0("weekdaysShort"),ed("weekdaysShort","weekday")),un("dddd",X0("weekdays"),ed("weekdays","weekday")),un("w",wc,"week"),un("ww",Ws,"week");function iue(e,t){if(e!==void 0&&t!==void 0){if(t){if(e<12)return e+12}else if(e===12)return 0}return e}function oue(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,n=[0,0,1,0,0,0,0],r=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],i=!0,o=0;o<7;o++)e[o]===void 0?n[o]=i?r[o]:n[o]:(n[o]=e[o],i=!1);return n}function sue(e,t,n,r,i,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function aue(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];return i<100&&i>=0?(n[0]+=400,e=new Date(Date.UTC.apply(Date,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(i)):e=new Date(Date.UTC.apply(Date,n)),e}function lue(e,t,n){var r=t.match(Wce);if(!r)throw new Error;for(var i=r.length,o={},s=0;s<i;s+=1){var a=r[s],l=L3[a];if(l){var c=typeof l[0]=="function"?l[0](n):l[0],u=l[1],d=(c.exec(e)||[])[0],h=u(d,n);o=zce({},o,{},h),e=e.replace(d,"")}else{var p=a.replace(/^\[|\]$/g,"");if(e.indexOf(p)===0)e=e.substr(p.length);else throw new Error("not match")}}return o}function cue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var r=n.locale,i=r===void 0?M3:r,o=n.backupDate,s=o===void 0?new Date:o,a=lue(e,t,i),l=a.year,c=a.month,u=a.day,d=a.hour,h=a.minute,p=a.second,m=a.millisecond,b=a.isPM,A=a.date,v=a.offset,D=a.weekday,C=a.week;if(A)return A;var S=[l,c,u,d,h,p,m];if(S[3]=iue(S[3],b),C!==void 0&&c===void 0&&u===void 0){var O=R3(l===void 0?s:new Date(l,3),{firstDayOfWeek:i.firstDayOfWeek,firstWeekContainsDate:i.firstWeekContainsDate});return new Date(O.getTime()+(C-1)*7*24*3600*1e3)}var k,Z=oue(S,s);return v!==void 0?(Z[6]+=v*60*1e3,k=aue.apply(void 0,$_(Z))):k=sue.apply(void 0,$_(Z)),D!==void 0&&k.getDay()!==D?new Date(NaN):k}catch{return new Date(NaN)}}function kp(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kp=function(t){return typeof t}:kp=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kp(e)}function bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lb(){return Lb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lb.apply(this,arguments)}function q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q_(Object(n),!0).forEach(function(r){bl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function due(e,t){if(e==null)return{};var n=uue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function td(e,t){return hue(e)||pue(e,t)||fue(e,t)||mue()}function hue(e){if(Array.isArray(e))return e}function pue(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function fue(e,t){if(e){if(typeof e=="string")return W_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W_(e,t)}}function W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yb(){return Yb=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Yb.apply(this,arguments)}var gue=["attrs","props","domProps"],Tue=["class","style","directives"],bue=["on","nativeOn"],Aue=function(e){return e.reduce(function(t,n){for(var r in n)if(!t[r])t[r]=n[r];else if(gue.indexOf(r)!==-1)t[r]=Yb({},t[r],n[r]);else if(Tue.indexOf(r)!==-1){var i=t[r]instanceof Array?t[r]:[t[r]],o=n[r]instanceof Array?n[r]:[n[r]];t[r]=i.concat(o)}else if(bue.indexOf(r)!==-1)for(var s in n[r])if(t[r][s]){var a=t[r][s]instanceof Array?t[r][s]:[t[r][s]],l=n[r][s]instanceof Array?n[r][s]:[n[r][s]];t[r][s]=a.concat(l)}else t[r][s]=n[r][s];else if(r=="hook")for(var c in n[r])t[r][c]=t[r][c]?yue(t[r][c],n[r][c]):n[r][c];else t[r]=n[r];return t},{})},yue=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},Pd=Aue;function Ts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,a=new Date(e,t,n,r,i,o,s);return e<100&&e>=0&&a.setFullYear(e),a}function Fs(e){return e instanceof Date&&!isNaN(e)}function s1(e){return Array.isArray(e)&&e.length===2&&e.every(Fs)&&e[0]<=e[1]}function Eue(e){return Array.isArray(e)&&e.every(Fs)}function hu(e){var t=new Date(e);if(Fs(t))return t;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.length?hu.apply(void 0,r):new Date}function vue(e){var t=new Date(e);return t.setMonth(0,1),t.setHours(0,0,0,0),t}function Hb(e){var t=new Date(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Due(e){var t=new Date(e);return t.setHours(0,0,0,0),t}function Sue(e){for(var t=e.firstDayOfWeek,n=e.year,r=e.month,i=[],o=Ts(n,r,0),s=o.getDate(),a=s-(o.getDay()+7-t)%7,l=a;l<=s;l++)i.push(Ts(n,r,l-s));o.setMonth(r+1,0);for(var c=o.getDate(),u=1;u<=c;u++)i.push(Ts(n,r,u));for(var d=s-a+1,h=6*7-d-c,p=1;p<=h;p++)i.push(Ts(n,r,c+p));return i}function Zb(e,t){var n=new Date(e),r=typeof t=="function"?t(n.getMonth()):Number(t),i=n.getFullYear(),o=Ts(i,r+1,0).getDate(),s=n.getDate();return n.setMonth(r,Math.min(s,o)),n}function pu(e,t){var n=new Date(e),r=typeof t=="function"?t(n.getFullYear()):t;return n.setFullYear(r),n}function lm(e,t){var n=new Date(e),r=new Date(t);return n.setHours(r.getHours(),r.getMinutes(),r.getSeconds()),n}function tE(e,t){if(!Array.isArray(e))return[];var n=[],r=e.length,i=0;for(t=t||r;i<r;)n.push(e.slice(i,i+=t));return n}function No(e){return Object.prototype.toString.call(e)==="[object Object]"}function fu(e,t){if(!No(e))return{};Array.isArray(t)||(t=[t]);var n={};return t.forEach(function(r){r in e&&(n[r]=e[r])}),n}function Y3(e,t){if(!No(e))return{};var n=e;return No(t)&&Object.keys(t).forEach(function(r){var i=t[r];No(i)&&No(e[r])&&(i=Y3(e[r],i)),n=vn({},n,bl({},r,i))}),n}function wue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _ue(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Cue=_ue(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},r=n;t.default=r,e.exports=t.default}),Nue=wue(Cue),Fue={formatLocale:Nue,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0},N0="en",_c={};_c[N0]=Fue;function H3(e,t,n){if(typeof e!="string")return _c[N0];var r=N0;return _c[e]&&(r=e),t&&(_c[e]=t,r=e),n||(N0=r),_c[e]||_c[N0]}function mu(e){return H3(e,null,!0)}function Oue(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t||(t=!0,requestAnimationFrame(function(){t=!1,e.apply(n,i)}))}}function xue(e){var t=e.style.display,n=e.style.visibility;e.style.display="block",e.style.visibility="hidden";var r=window.getComputedStyle(e),i=e.offsetWidth+parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),o=e.offsetHeight+parseInt(r.marginTop,10)+parseInt(r.marginBottom,10);return e.style.display=t,e.style.visibility=n,{width:i,height:o}}function kue(e,t,n,r){var i=0,o=0,s=0,a=0,l=e.getBoundingClientRect(),c=document.documentElement.clientWidth,u=document.documentElement.clientHeight;return r&&(s=window.pageXOffset+l.left,a=window.pageYOffset+l.top),c-l.left<t&&l.right<t?i=s-l.left+1:l.left+l.width/2<=c/2?i=s:i=s+l.width-t,l.top<=n&&u-l.bottom<=n?o=a+u-l.top-n:l.top+l.height/2<=u/2?o=a+l.height:o=a-n,{left:"".concat(i,"px"),top:"".concat(o,"px")}}function a1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===t)return null;var n=function(o,s){return getComputedStyle(o,null).getPropertyValue(s)},r=/(auto|scroll)/,i=r.test(n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x"));return i?e:a1(e.parentNode,t)}var Rue={name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(e){var t=this;this.$nextTick(function(){e&&t.displayPopup()})}}},mounted:function(){var e=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var t=this.$parent.$el;this._displayPopup=Oue(function(){return e.displayPopup()}),this._scrollParent=a1(t)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(e){if(this.visible){var t=e.target,n=this.$el;n&&!n.contains(t)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,t=this.$parent.$el,n=this.appendToBody;this._popupRect||(this._popupRect=xue(e));var r=this._popupRect,i=r.width,o=r.height,s=kue(t,i,o,n),a=s.left,l=s.top;this.left=a,this.top=l}}}};function qi(e,t,n,r,i,o,s,a,l,c){var u=typeof n=="function"?n.options:n;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n}var Mue=Rue,Bue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?n("div",{class:e.prefixClass+"-datepicker-main "+e.prefixClass+"-datepicker-popup",style:{top:e.top,left:e.left,position:"absolute"}},[e._t("default")],2):e._e()])},Iue=[],Lue=void 0,Yue=qi({render:Bue,staticRenderFns:Iue},Lue,Mue),Hue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},Zue=[],Pue=void 0,$ue=qi({render:Hue,staticRenderFns:Zue},Pue,{}),Uue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}),e._v(" "),n("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},zue=[],Vue=void 0,jue=qi({render:Uue,staticRenderFns:zue},Vue,{}),Gue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[n("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},que=[],Wue=void 0,Kue=qi({render:Gue,staticRenderFns:que},Wue,{}),Que={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},Jue=Que,Xue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",e._g({class:[e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-icon-"+e.type,{disabled:e.disabled}],attrs:{type:"button",disabled:e.disabled}},e.$listeners),[n("i",{class:e.prefixClass+"-icon-"+e.type})])},e0e=[],t0e=void 0,nE=qi({render:Xue,staticRenderFns:e0e},t0e,Jue),n0e={name:"TableDate",components:{IconButton:nE},inject:{getLocale:{default:function(){return mu}},getWeek:{default:function(){return eE}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var e=this.getLocale(),t=e.yearFormat,n=e.monthBeforeYear,r=e.monthFormat,i=r===void 0?"MMM":r,o={panel:"year",label:this.formatDate(this.calendar,t)},s={panel:"month",label:this.formatDate(this.calendar,i)};return n?[s,o]:[o,s]},days:function(){var e=this.getLocale(),t=e.days||e.formatLocale.weekdaysMin;return t.concat(t).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),t=this.calendar.getMonth(),n=Sue({firstDayOfWeek:this.firstDayOfWeek,year:e,month:t});return tE(n,7)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,t.getMonth()+1,0),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1);break;case"last-month":t.setMonth(t.getMonth(),0),t.setHours(23,59,59,999);break;case"next-month":t.setMonth(t.getMonth()+1);break}return this.disabledCalendarChanger(t,e)},handleIconLeftClick:function(){this.$emit("changecalendar",Zb(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",Zb(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",pu(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",pu(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(e){this.$emit("changepanel",e)},handleMouseEnter:function(e){typeof this.onDateMouseEnter=="function"&&this.onDateMouseEnter(e)},handleMouseLeave:function(e){typeof this.onDateMouseLeave=="function"&&this.onDateMouseLeave(e)},handleCellClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var n=t.getAttribute("data-row-col");if(n){var r=n.split(",").map(function(l){return parseInt(l,10)}),i=td(r,2),o=i[0],s=i[1],a=this.dates[o][s];this.$emit("select",new Date(a))}},formatDate:function(e,t){return o1(e,t,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var t=this.titleFormat;return this.formatDate(e,t)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},r0e=n0e,i0e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[n("div",{class:e.prefixClass+"-calendar-header"},[n("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),n("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),n("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(r){return n("button",{key:r.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+r.panel,attrs:{type:"button"},on:{click:function(i){return e.handlePanelChange(r.panel)}}},[e._v(`
        `+e._s(r.label)+`
      `)])}),0)],1),e._v(" "),n("div",{class:e.prefixClass+"-calendar-content"},[n("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-date"},[n("thead",[n("tr",[e.showWeekNumber?n("th",{class:e.prefixClass+"-week-number-header"}):e._e(),e._v(" "),e._l(e.days,function(r){return n("th",{key:r},[e._v(e._s(r))])})],2)]),e._v(" "),n("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,function(r,i){return n("tr",{key:i,class:[e.prefixClass+"-date-row",e.getRowClasses(r)]},[e.showWeekNumber?n("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":i+",0"}},[e._v(`
            `+e._s(e.getWeekNumber(r[0]))+`
          `)]):e._e(),e._v(" "),e._l(r,function(o,s){return n("td",{key:s,staticClass:"cell",class:e.getCellClasses(o),attrs:{"data-row-col":i+","+s,title:e.getCellTitle(o)},on:{mouseenter:function(a){return e.handleMouseEnter(o)},mouseleave:function(a){return e.handleMouseLeave(o)}}},[n("div",[e._v(e._s(o.getDate()))])])})],2)}),0)])])])},o0e=[],s0e=void 0,a0e=qi({render:i0e,staticRenderFns:o0e},s0e,r0e),l0e={name:"TableMonth",components:{IconButton:nE},inject:{getLocale:{default:function(){return mu}},prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var e=this.getLocale(),t=e.months||e.formatLocale.monthsShort,n=t.map(function(r,i){return{text:r,month:i}});return tE(n,3)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,11,31),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(t,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",pu(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",pu(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var n=t.getAttribute("data-month");n&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(n,10))}}},c0e=l0e,u0e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[n("div",{class:e.prefixClass+"-calendar-header"},[n("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),n("span",{class:e.prefixClass+"-calendar-header-label"},[n("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v(`
        `+e._s(e.calendarYear)+`
      `)])])],1),e._v(" "),n("div",{class:e.prefixClass+"-calendar-content"},[n("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-month",on:{click:e.handleClick}},e._l(e.months,function(r,i){return n("tr",{key:i},e._l(r,function(o,s){return n("td",{key:s,staticClass:"cell",class:e.getCellClasses(o.month),attrs:{"data-month":o.month}},[n("div",[e._v(e._s(o.text))])])}),0)}),0)])])},d0e=[],h0e=void 0,p0e=qi({render:u0e,staticRenderFns:d0e},h0e,c0e),f0e={name:"TableYear",components:{IconButton:nE},inject:{prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}},getYearPanel:{type:Function}},computed:{years:function(){var e=new Date(this.calendar);return typeof this.getYearPanel=="function"?this.getYearPanel(e):this.getYears(e)},firstYear:function(){return this.years[0][0]},lastYear:function(){var e=function(t){return t[t.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-decade":t.setFullYear(this.firstYear-1,11,31),t.setHours(23,59,59,999);break;case"next-decade":t.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(t,e)},getYears:function(e){for(var t=Math.floor(e.getFullYear()/10)*10,n=[],r=0;r<10;r++)n.push(t+r);return tE(n,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",pu(this.calendar,function(e){return e-10}),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",pu(this.calendar,function(e){return e+10}),"next-decade")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var n=t.getAttribute("data-year");n&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(n,10))}}},m0e=f0e,g0e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-year"},[n("div",{class:e.prefixClass+"-calendar-header"},[n("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-decade")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),n("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-decade")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),n("span",{class:e.prefixClass+"-calendar-header-label"},[n("span",[e._v(e._s(e.firstYear))]),e._v(" "),n("span",{class:e.prefixClass+"-calendar-decade-separator"}),e._v(" "),n("span",[e._v(e._s(e.lastYear))])])],1),e._v(" "),n("div",{class:e.prefixClass+"-calendar-content"},[n("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-year",on:{click:e.handleClick}},e._l(e.years,function(r,i){return n("tr",{key:i},e._l(r,function(o,s){return n("td",{key:s,staticClass:"cell",class:e.getCellClasses(o),attrs:{"data-year":o}},[n("div",[e._v(e._s(o))])])}),0)}),0)])])},T0e=[],b0e=void 0,A0e=qi({render:g0e,staticRenderFns:T0e},b0e,m0e),Ol={name:"CalendarPanel",inject:{prefixClass:{default:"mx"},dispatchDatePicker:{default:function(){return function(){}}}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},defaultPanel:{type:String},disabledCalendarChanger:{type:Function,default:function(){return!1}},disabledDate:{type:Function,default:function(){return!1}},type:{type:String,default:"date"},getClasses:{type:Function,default:function(){return[]}},showWeekNumber:{type:Boolean,default:void 0},getYearPanel:{type:Function},titleFormat:{type:String,default:"YYYY-MM-DD"},calendar:Date,partialUpdate:{type:Boolean,default:!1}},data:function(){var e=["date","month","year"],t=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),n=t!==-1?e[t]:"date";return{panel:n,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],t={year:vue,month:Hb,date:Due},n=t[this.type]||t.date;return e.filter(Fs).map(function(r){return n(r)})},calendarYear:function(){return this.innerCalendar.getFullYear()},calendarMonth:function(){return this.innerCalendar.getMonth()}},watch:{value:{immediate:!0,handler:"initCalendar"},calendar:{handler:"initCalendar"},defaultValue:{handler:"initCalendar"}},methods:{initCalendar:function(){var e=this.calendar;if(!Fs(e)){var t=this.innerValue.length;e=hu(t>0?this.innerValue[t-1]:this.defaultValue)}this.innerCalendar=Hb(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,t){this.isDisabled(e)||(this.$emit("select",e,t,this.innerValue),this.dispatchDatePicker("pick",e,t))},handleCalendarChange:function(e,t){var n=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,n,t)},handelPanelChange:function(e){var t=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,t)},handleSelectYear:function(e){if(this.type==="year"){var t=this.getYearCellDate(e);this.emitDate(t,"year")}else if(this.handleCalendarChange(Ts(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var n=new Date(this.innerValue[0]);n.setFullYear(e),this.emitDate(n,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var t=this.getMonthCellDate(e);this.emitDate(t,"month")}else if(this.handleCalendarChange(Ts(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var n=new Date(this.innerValue[0]);n.setFullYear(this.calendarYear),this.emitDate(Zb(n,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return Ts(this.calendarYear,e)},getYearCellDate:function(e){return Ts(e,0)},getDateClasses:function(e){var t=e.getMonth()!==this.calendarMonth,n=[];e.getTime()===new Date().setHours(0,0,0,0)&&n.push("today"),t&&n.push("not-current-month");var r=this.getStateClass(e);return r==="active"&&t||n.push(r),n.concat(this.getClasses(e,this.innerValue,n.join(" ")))},getMonthClasses:function(e){var t=[];if(this.type!=="month"){this.calendarMonth===e&&t.push("active");var n=this.getMonthCellDate(e);return this.disabledCalendarChanger(n,"month")&&t.push("disabled"),t}var r=this.getMonthCellDate(e);return t.push(this.getStateClass(r)),t.concat(this.getClasses(r,this.innerValue,t.join(" ")))},getYearClasses:function(e){var t=[];if(this.type!=="year"){this.calendarYear===e&&t.push("active");var n=this.getYearCellDate(e);return this.disabledCalendarChanger(n,"year")&&t.push("disabled"),t}var r=this.getYearCellDate(e);return t.push(this.getStateClass(r)),t.concat(this.getClasses(r,this.innerValue,t.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(t){return t.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var t=e[0].getTime(),n=e[6].getTime(),r=this.innerValue.some(function(i){var o=i.getTime();return o>=t&&o<=n});return r?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],t=this.panel,n=this.innerCalendar;return t==="year"?e(A0e,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):t==="month"?e(p0e,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(a0e,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:bl({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},nd={name:"CalendarRange",components:{CalendarPanel:Ol},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:vn({},Ol.props),data:function(){return{innerValue:[],calendars:[],hoveredValue:null}},computed:{calendarMinDiff:function(){var e={date:1,month:12,year:120};return e[this.type]||e.date},calendarMaxDiff:function(){return 1/0},defaultValues:function(){return Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue]}},watch:{value:{immediate:!0,handler:function(){var e=this;this.innerValue=s1(this.value)?this.value:[new Date(NaN),new Date(NaN)];var t=this.innerValue.map(function(n,r){return Hb(hu(n,e.defaultValues[r]))});this.updateCalendars(t)}}},methods:{handleSelect:function(e,t){var n=td(this.innerValue,2),r=n[0],i=n[1];Fs(r)&&!Fs(i)?(r.getTime()>e.getTime()?this.innerValue=[e,r]:this.innerValue=[r,e],this.emitDate(this.innerValue,t)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,t){this.$emit("select",e,t)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=this.getCalendarGap(e);if(n){var r=new Date(e[t]);r.setMonth(r.getMonth()+(t===0?-n:n)),e[t]=r}this.calendars=e},getCalendarGap:function(e){var t=td(e,2),n=t[0],r=t[1],i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth(),s=i*12+o,a=this.calendarMinDiff,l=this.calendarMaxDiff;return s<a?a-s:s>l?l-s:0},getRangeClasses:function(e,t,n){var r=[].concat(this.getClasses(e,t,n));if(/disabled|active/.test(n))return r;var i=function(o,s){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(m){return m.getTime()},l=a(o),c=s.map(a),u=td(c,2),d=u[0],h=u[1];if(d>h){var p=[h,d];d=p[0],h=p[1]}return l>d&&l<h};return t.length===2&&i(e,t)?r.concat("in-range"):t.length===1&&this.hoveredValue&&i(e,[t[0],this.hoveredValue])?r.concat("hover-in-range"):r}},render:function(){var e=this,t=arguments[0],n=this.calendars.map(function(i,o){var s=vn({},e.$props,{calendar:i,value:e.innerValue,defaultValue:e.defaultValues[o],getClasses:e.getRangeClasses,partialUpdate:!1}),a={select:e.handleSelect,"update:calendar":o===0?e.updateStartCalendar:e.updateEndCalendar};return t("calendar-panel",{props:vn({},s),on:vn({},a)})}),r=this.prefixClass;return t("div",{class:"".concat(r,"-range-wrapper")},[n])}},rp;function y0e(){if(typeof window>"u")return 0;if(rp!==void 0)return rp;var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=document.createElement("div");return t.style.width="100%",e.appendChild(t),rp=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),rp}var E0e={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=y0e(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var e=this.$refs.wrap;if(e){var t=e.clientHeight*100/e.scrollHeight;this.thumbHeight=t<100?"".concat(t,"%"):""}},handleScroll:function(e){var t=e.currentTarget,n=t.scrollHeight,r=t.scrollTop;this.thumbTop="".concat(r*100/n,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var t=this.$refs.thumb.offsetTop;this._prevY=e.clientY-t,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var t=e.clientY,n=this.$refs.wrap,r=n.scrollHeight,i=n.clientHeight,o=t-this._prevY,s=o*r/i;n.scrollTop=s}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},v0e=E0e,D0e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[n("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),n("div",{class:e.prefixClass+"-scrollbar-track"},[n("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},S0e=[],w0e=void 0,Z3=qi({render:D0e,staticRenderFns:S0e},w0e,v0e),TT=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},bT=function(e,t,n){if(Array.isArray(n))return n.filter(function(o){return o>=0&&o<e});t<=0&&(t=1);for(var r=[],i=0;i<e;i+=t)r.push(i);return r},_0e=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(r<=0){requestAnimationFrame(function(){t.scrollTop=n});return}var i=n-t.scrollTop,o=i/r*10;requestAnimationFrame(function(){var s=t.scrollTop+o;if(s>=n){t.scrollTop=n;return}t.scrollTop=s,e(t,n,r-10)})},C0e={name:"ListColumns",components:{ScrollbarVertical:Z3},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var e=[];return this.showHour&&e.push({type:"hour",list:this.getHoursList()}),this.showMinute&&e.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&e.push({type:"second",list:this.getSecondsList()}),this.use12h&&e.push({type:"ampm",list:this.getAMPMList()}),e.filter(function(t){return t.list.length>0})}},watch:{date:{handler:function(){var e=this;this.$nextTick(function(){e.scrollToSelected(e.scrollDuration)})}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var e=this;return bT(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(t){var n=new Date(e.date),r=TT(t);e.use12h&&(t===0&&(r="12"),n.getHours()>=12&&(t+=12));var i=n.setHours(t);return{value:i,text:r}})},getMinutesList:function(){var e=this;return bT(60,this.minuteStep,this.minuteOptions).map(function(t){var n=new Date(e.date).setMinutes(t);return{value:n,text:TT(t)}})},getSecondsList:function(){var e=this;return bT(60,this.secondStep,this.secondOptions).map(function(t){var n=new Date(e.date).setSeconds(t);return{value:n,text:TT(t)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(t,n){var r=new Date(e.date),i=r.setHours(r.getHours()%12+n*12);return{text:t,value:i}})},scrollToSelected:function(e){for(var t=this.$el.querySelectorAll(".active"),n=0;n<t.length;n++){var r=t[n],i=a1(r,this.$el);if(i){var o=r.offsetTop;_0e(i,o,e)}}},handleSelect:function(e){var t=e.target,n=e.currentTarget;if(t.tagName.toUpperCase()==="LI"){var r=n.getAttribute("data-type"),i=parseInt(n.getAttribute("data-index"),10),o=parseInt(t.getAttribute("data-index"),10),s=this.columns[i].list[o].value;this.$emit("select",s,r)}}}},N0e=C0e,F0e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-time-columns"},e._l(e.columns,function(r,i){return n("scrollbar-vertical",{key:i,class:e.prefixClass+"-time-column"},[n("ul",{class:e.prefixClass+"-time-list",attrs:{"data-type":r.type,"data-index":i},on:{click:e.handleSelect}},e._l(r.list,function(o,s){return n("li",{key:o.value,class:[e.prefixClass+"-time-item",e.getClasses(o.value,r.type)],attrs:{"data-index":s}},[e._v(`
        `+e._s(o.text)+`
      `)])}),0)])}),1)},O0e=[],x0e=void 0,k0e=qi({render:F0e,staticRenderFns:O0e},x0e,N0e);function AT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e.split(":");if(t.length>=2){var n=parseInt(t[0],10),r=parseInt(t[1],10);return{hours:n,minutes:r}}return null}var R0e=function(e,t){e&&(e.scrollTop=t)},M0e={name:"ListOptions",components:{ScrollbarVertical:Z3},inject:{getLocale:{default:function(){return mu}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var e=[],t=this.options;if(typeof t=="function")return t()||[];var n=AT(t.start),r=AT(t.end),i=AT(t.step),o=t.format||this.format;if(n&&r&&i)for(var s=n.minutes+n.hours*60,a=r.minutes+r.hours*60,l=i.minutes+i.hours*60,c=Math.floor((a-s)/l),u=0;u<=c;u++){var d=s+u*l,h=Math.floor(d/60),p=d%60,m=new Date(this.date).setHours(h,p,0);e.push({value:m,text:this.formatDate(m,o)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,t){return o1(e,t,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var t=a1(e,this.$el);if(t){var n=e.offsetTop;R0e(t,n)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},B0e=M0e,I0e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scrollbar-vertical",e._l(e.list,function(r){return n("div",{key:r.value,class:[e.prefixClass+"-time-option",e.getClasses(r.value)],on:{click:function(i){return e.handleSelect(r.value)}}},[e._v(`
    `+e._s(r.text)+`
  `)])}),0)},L0e=[],Y0e=void 0,H0e=qi({render:I0e,staticRenderFns:L0e},Y0e,B0e),Z0e={name:"TimePanel",components:{ListColumns:k0e,ListOptions:H0e},inject:{getLocale:{default:function(){return mu}},prefixClass:{default:"mx"}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},format:{default:"HH:mm:ss"},timeTitleFormat:{type:String,default:"YYYY-MM-DD"},showTimeHeader:{type:Boolean,default:!1},disabledTime:{type:Function,default:function(){return!1}},timePickerOptions:{type:[Object,Function],default:function(){return null}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12h:{type:Boolean,default:void 0},scrollDuration:{type:Number,default:100}},data:function(){return{innerValue:hu(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,t=new Date(this.innerValue);return this.formatDate(t,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,t=this.innerForamt,n={showHour:/[HhKk]/.test(t),showMinute:/m/.test(t),showSecond:/s/.test(t),use12h:/a/i.test(t)},r={};return Object.keys(n).forEach(function(i){r[i]=typeof e[i]=="boolean"?e[i]:n[i]}),r}},watch:{value:{immediate:!0,handler:function(){this.innerValue=hu(this.value,this.defaultValue)}}},methods:{formatDate:function(e,t){return o1(e,t,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setMinutes(0,0,0))&&this.isDisabledTime(t.setMinutes(59,59,999))},isDisabledMinute:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setSeconds(0,0))&&this.isDisabledTime(t.setSeconds(59,999))},isDisabledAMPM:function(e){var t=new Date(e),n=t.getHours()<12?0:12,r=n+11;return this.isDisabledTime(t)&&this.isDisabledTime(t.setHours(n,0,0,0))&&this.isDisabledTime(t.setHours(r,59,59,999))},isDisabled:function(e,t){return t==="hour"?this.isDisabledHour(e):t==="minute"?this.isDisabledMinute(e):t==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,t){var n=new Date(e);this.isDisabled(e,t)||(this.innerValue=n,this.isDisabledTime(n)||this.$emit("select",n,t))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,t){var n=new Date(e);return this.isDisabled(e,t)?"disabled":n.getTime()===this.innerValue.getTime()?"active":""}}},P0e=Z0e,$0e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?n("div",{class:e.prefixClass+"-time-header"},[n("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:e.handleClickTitle}},[e._v(`
      `+e._s(e.title)+`
    `)])]):e._e(),e._v(" "),n("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?n("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):n("list-columns",e._b({attrs:{date:e.innerValue,"get-classes":e.getClasses,"hour-options":e.hourOptions,"minute-options":e.minuteOptions,"second-options":e.secondOptions,"hour-step":e.hourStep,"minute-step":e.minuteStep,"second-step":e.secondStep,"scroll-duration":e.scrollDuration},on:{select:e.handleSelect}},"list-columns",e.ShowHourMinuteSecondAMPM,!1))],1)])},U0e=[],z0e=void 0,Da=qi({render:$0e,staticRenderFns:U0e},z0e,P0e),rd={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:vn({},Da.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(s1(this.value)){var e=td(this.value,2),t=e[0],n=e[1];this.startValue=t,this.endValue=n}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,t){var n=[this.startValue,this.endValue];this.$emit("select",n,e==="time"?"time-range":e,t)},handleSelectStart:function(e,t){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(t,0)},handleSelectEnd:function(e,t){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(t,1)},disabledStartTime:function(e){return this.disabledTime(e,0)},disabledEndTime:function(e){return e.getTime()<this.startValue.getTime()||this.disabledTime(e,1)}},render:function(){var e=arguments[0],t=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],n=this.prefixClass;return e("div",{class:"".concat(n,"-range-wrapper")},[e(Da,{props:vn({},vn({},this.$props,{value:this.startValue,defaultValue:t[0],disabledTime:this.disabledStartTime})),on:vn({},vn({},this.$listeners,{select:this.handleSelectStart}))}),e(Da,{props:vn({},vn({},this.$props,{value:this.endValue,defaultValue:t[1],disabledTime:this.disabledEndTime})),on:vn({},vn({},this.$listeners,{select:this.handleSelectEnd}))})])}},rE={name:"DatetimePanel",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:vn({},Ol.props,{},Da.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return typeof this.showTimePanel=="boolean"?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(e){this.currentValue=e}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1,this.$emit("update:show-time-panel",!1)},openTimePanel:function(){this.defaultTimeVisible=!0,this.$emit("update:show-time-panel",!0)},emitDate:function(e,t){this.$emit("select",e,t)},handleSelect:function(e,t){t==="date"&&this.openTimePanel();var n=lm(e,hu(this.value,this.defaultValue));if(this.disabledTime(new Date(n))&&(n=lm(e,this.defaultValue),this.disabledTime(new Date(n)))){this.currentValue=n;return}this.emitDate(n,t)}},render:function(){var e=arguments[0],t={props:vn({},fu(this.$props,Object.keys(Ol.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},n={props:vn({},fu(this.$props,Object.keys(Da.props)),{showTimeHeader:!0,value:this.currentValue}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},r=this.prefixClass;return e("div",[e(Ol,Pd([{},t])),this.timeVisible&&e(Da,Pd([{class:"".concat(r,"-calendar-time")},n]))])}},P3={name:"DatetimeRange",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:vn({},nd.props,{},rd.props,{showTimePanel:{type:Boolean,default:void 0}}),data:function(){return{defaultTimeVisible:!1,currentValue:this.value}},computed:{timeVisible:function(){return typeof this.showTimePanel=="boolean"?this.showTimePanel:this.defaultTimeVisible}},watch:{value:function(e){this.currentValue=e}},methods:{closeTimePanel:function(){this.defaultTimeVisible=!1,this.$emit("update:show-time-panel",!1)},openTimePanel:function(){this.defaultTimeVisible=!0,this.$emit("update:show-time-panel",!0)},emitDate:function(e,t){this.$emit("select",e,t)},handleSelect:function(e,t){var n=this;t==="date"&&this.openTimePanel();var r=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],i=e.map(function(o,s){var a=s1(n.value)?n.value[s]:r[s];return lm(o,a)});if(i[1].getTime()<i[0].getTime()&&(i=[i[0],i[0]]),i.some(this.disabledTime)&&(i=e.map(function(o,s){return lm(o,r[s])}),i.some(this.disabledTime))){this.currentValue=i;return}this.emitDate(i,t)}},render:function(){var e=arguments[0],t={props:vn({},fu(this.$props,Object.keys(nd.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},n={props:vn({},fu(this.$props,Object.keys(rd.props)),{value:this.currentValue,showTimeHeader:!0}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},r=this.prefixClass;return e("div",[e(nd,Pd([{},t])),this.timeVisible&&e(rd,Pd([{class:"".concat(r,"-calendar-time")},n]))])}},V0e={default:Ol,time:Da,datetime:rE},j0e={default:nd,time:rd,datetime:P3},cl={name:"DatePicker",provide:function(){var e=this;return{getLocale:function(){return e.locale},getWeek:this.getWeek,prefixClass:this.prefixClass,dispatchDatePicker:this.$emit.bind(this)}},props:vn({},rE.props,{value:{},valueType:{type:String,default:"date"},type:{type:String,default:"date"},format:{type:String},formatter:{type:Object},range:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},rangeSeparator:{type:String},lang:{type:[String,Object]},placeholder:{type:String,default:""},editable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},prefixClass:{type:String,default:"mx"},inputClass:{},inputAttr:{type:Object,default:function(){return{}}},appendToBody:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},popupClass:{},popupStyle:{type:Object,default:function(){return{}}},inline:{type:Boolean,default:!1},confirm:{type:Boolean,default:!1},confirmText:{type:String,default:"OK"},renderInputText:{type:Function},shortcuts:{type:Array,validator:function(e){return Array.isArray(e)&&e.every(function(t){return No(t)&&typeof t.text=="string"&&typeof t.onClick=="function"})},default:function(){return[]}}}),data:function(){return{currentValue:null,userInput:null,defaultOpen:!1,mouseInInput:!1}},computed:{popupVisible:function(){return!this.disabled&&(typeof this.open=="boolean"?this.open:this.defaultOpen)},innerRangeSeparator:function(){return this.rangeSeparator||(this.multiple?",":" ~ ")},innerFormat:function(){var e={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};return this.format||e[this.type]||e.date},innerValue:function(){var e=this.value;return this.validMultipleType?(e=Array.isArray(e)?e:[],e.map(this.value2date)):this.range?(e=Array.isArray(e)?e.slice(0,2):[null,null],e.map(this.value2date)):this.value2date(e)},text:function(){var e=this;return this.userInput!==null?this.userInput:typeof this.renderInputText=="function"?this.renderInputText(this.innerValue):this.isValidValue(this.innerValue)?Array.isArray(this.innerValue)?this.innerValue.map(function(t){return e.formatDate(t)}).join(this.innerRangeSeparator):this.formatDate(this.innerValue):""},showClearIcon:function(){return!this.disabled&&this.clearable&&this.text&&this.mouseInInput},locale:function(){return No(this.lang)?Y3(mu(),this.lang):mu(this.lang)},validMultipleType:function(){var e=["date","month","year"];return this.multiple&&!this.range&&e.indexOf(this.type)!==-1}},watch:{innerValue:{immediate:!0,handler:function(e){this.currentValue=e}},popupVisible:{handler:function(e){e&&(this.currentValue=this.innerValue)}}},created:function(){kp(this.format)==="object"&&console.warn("[vue2-datepicker]: The prop `format` don't support Object any more. You can use the new prop `formatter` to replace it")},methods:{handleMouseEnter:function(){this.mouseInInput=!0},handleMouseLeave:function(){this.mouseInInput=!1},handleClickOutSide:function(e){var t=e.target;this.$el.contains(t)||this.closePopup()},getFormatter:function(e){return No(this.formatter)&&this.formatter[e]||No(this.format)&&this.format[e]},getWeek:function(e,t){return typeof this.getFormatter("getWeek")=="function"?this.getFormatter("getWeek")(e,t):eE(e,t)},parseDate:function(e,t){if(t=t||this.innerFormat,typeof this.getFormatter("parse")=="function")return this.getFormatter("parse")(e,t);var n=new Date;return cue(e,t,{locale:this.locale.formatLocale,backupDate:n})},formatDate:function(e,t){return t=t||this.innerFormat,typeof this.getFormatter("stringify")=="function"?this.getFormatter("stringify")(e,t):o1(e,t,{locale:this.locale.formatLocale})},value2date:function(e){switch(this.valueType){case"date":return e instanceof Date?new Date(e.getTime()):new Date(NaN);case"timestamp":return typeof e=="number"?new Date(e):new Date(NaN);case"format":return typeof e=="string"?this.parseDate(e):new Date(NaN);default:return typeof e=="string"?this.parseDate(e,this.valueType):new Date(NaN)}},date2value:function(e){if(!Fs(e))return null;switch(this.valueType){case"date":return e;case"timestamp":return e.getTime();case"format":return this.formatDate(e);default:return this.formatDate(e,this.valueType)}},emitValue:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this.userInput=null;var r=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",r),this.$emit("change",r,t),n&&this.closePopup(),r},isValidValue:function(e){return this.validMultipleType?Eue(e):this.range?s1(e):Fs(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var t=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},n=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(r){return!t(r)&&!n(r)})},handleMultipleDates:function(e,t){if(this.validMultipleType&&t){var n=t.filter(function(r){return r.getTime()!==e.getTime()});return n.length===t.length&&n.push(e),n}return e},handleSelectDate:function(e,t,n){e=this.handleMultipleDates(e,n),this.confirm?this.currentValue=e:this.emitValue(e,t,!this.validMultipleType&&(t===this.type||t==="time"))},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(e){e.stopPropagation(),this.clear()},handleConfirmDate:function(){var e=this.emitValue(this.currentValue);this.$emit("confirm",e)},handleSelectShortcut:function(e){var t=e.currentTarget.getAttribute("data-index"),n=this.shortcuts[parseInt(t,10)];if(No(n)&&typeof n.onClick=="function"){var r=n.onClick(this);r&&this.emitValue(r)}},openPopup:function(e){this.popupVisible||this.disabled||(this.defaultOpen=!0,this.$emit("open",e),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var e=this;if(!(!this.editable||this.userInput===null)){var t=this.userInput.trim();if(this.userInput=null,t===""){this.clear();return}var n;if(this.validMultipleType)n=t.split(this.innerRangeSeparator).map(function(i){return e.parseDate(i.trim())});else if(this.range){var r=t.split(this.innerRangeSeparator);r.length!==2&&(r=t.split(this.innerRangeSeparator.trim())),n=r.map(function(i){return e.parseDate(i.trim())})}else n=this.parseDate(t);this.isValidValueAndNotDisabled(n)?(this.emitValue(n),this.blur()):this.$emit("input-error",t)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var t=e.keyCode;t===9?this.closePopup():t===13&&this.handleInputChange()},handleInputBlur:function(e){this.$emit("blur",e)},handleInputFocus:function(e){this.openPopup(e),this.$emit("focus",e)},hasSlot:function(e){return!!(this.$slots[e]||this.$scopedSlots[e])},renderSlot:function(e,t,n){var r=this.$scopedSlots[e];return r?r(n)||t:this.$slots[e]||t},renderInput:function(){var e=this.$createElement,t=this.prefixClass,n=vn({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),r=n.value,i=n.class,o=due(n,["value","class"]),s={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},a=this.renderSlot("input",e("input",{domProps:{value:r},class:i,attrs:vn({},o),on:vn({},s),ref:"input"}),{props:n,events:s}),l=this.type==="time"?e(jue):e($ue);return e("div",{class:"".concat(t,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[a,this.showClearIcon?e("i",{class:"".concat(t,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(Kue))]):e("i",{class:"".concat(t,"-icon-calendar")},[this.renderSlot("icon-calendar",l)])])},renderContent:function(){var e=this.$createElement,t=this.range?j0e:V0e,n=t[this.type]||t.default,r=vn({},fu(this.$props,Object.keys(n.props)),{value:this.currentValue}),i=vn({},fu(this.$listeners,n.emits||[]),{select:this.handleSelectDate}),o=e(n,Pd([{},{props:r,on:i,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",o,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,t=this.$createElement,n=this.prefixClass;return t("div",{class:"".concat(n,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(r,i){return t("button",{key:i,attrs:{"data-index":i,type:"button"},class:"".concat(n,"-btn ").concat(n,"-btn-text ").concat(n,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[r.text])})])},renderHeader:function(){var e=this.$createElement;return e("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var e=this.$createElement,t=this.prefixClass;return e("div",{class:"".concat(t,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(t,"-btn ").concat(t,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,t=arguments[0],n=this.prefixClass,r=this.inline,i=this.disabled,o=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,s=t("div",{class:"".concat(n,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return t("div",{class:(e={},bl(e,"".concat(n,"-datepicker"),!0),bl(e,"".concat(n,"-datepicker-range"),this.range),bl(e,"".concat(n,"-datepicker-inline"),r),bl(e,"disabled",i),e)},[r?null:this.renderInput(),r?t("div",{class:"".concat(n,"-datepicker-main")},[o,s]):t(Yue,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[o,s])])}};cl.locale=H3,cl.install=function(e){e.component(cl.name,cl)},typeof window<"u"&&window.Vue&&cl.install(window.Vue),Lb(cl,{CalendarPanel:Ol,CalendarRange:nd,TimePanel:Da,TimeRange:rd,DatetimePanel:rE,DatetimeRange:P3}),Et(gB);const G0e={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var q0e=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},W0e=[],K0e=ut(G0e,q0e,W0e,!1,null,null);const Q0e=K0e.exports,J0e={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var X0e=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ede=[],tde=ut(J0e,X0e,ede,!1,null,null);const nde=tde.exports,K_={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},rde={name:"NcDateTimePicker",components:{CalendarBlank:Q0e,DatePicker:cl,NcPopover:hm,NcTimezonePicker:Yce,Web:nde},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date",validator:e=>["date","time","datetime","week","month","year","date-range","time-range","datetime-range"].includes(e)},format:{type:[String,Function],default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{default:void 0},modelValue:{default:()=>new Date},timezoneId:{type:String,default:"UTC"},showTimezoneSelect:{type:Boolean,default:!1},highlightTimezone:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},showWeekNumber:{type:Boolean,default:!1},placeholder:{type:String,default:null},range:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","update:model-value","update:timezone-id"],setup(){return{model:Po("value","update:value"),timezoneDialogHeaderId:`timezone-dialog-header-${ro()}`}},data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{realType(){return this.type.split("-")[0]},defaultLang(){return{formatLocale:{months:g6(),monthsShort:T6(),weekdays:p6(),weekdaysShort:f6(),weekdaysMin:m6(),firstDayOfWeek:h6()},monthFormat:"MMMM"}},defaultPlaceholder(){return this.realType==="time"?me("Pick a time"):this.realType==="month"?me("Pick a month"):this.realType==="year"?me("Pick a year"):this.realType==="week"?me("Pick a week"):this.realType==="date"?me("Pick a date"):me("Pick a date and a time")},internalRange(){return this.range||this.type.endsWith("-range")},internalFormat(){return this.format&&typeof this.format=="string"?this.format:K_[this.realType]||K_.date},internalFormatter(){return{getWeek:e=>{const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));const n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t-n)/864e5+1)/7)},...typeof this.format=="function"?{stringify:this.format}:{},...this.formatter??{}}}},methods:{t:me,handleSelectYear(e){const t=this.$refs.datepicker.currentValue;if(t)try{const n=new Date(new Date(t).setFullYear(e));this.$refs.datepicker.selectDate(n)}catch{console.error("Invalid value",t,e)}},handleSelectMonth(e){const t=this.$refs.datepicker.currentValue;if(t)try{const n=new Date(new Date(t).setMonth(e));this.$refs.datepicker.selectDate(n)}catch{console.error("Invalid value",t,e)}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var ide=function(){var e=this,t=e._self._c;return t("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.internalFormat,formatter:e.internalFormatter,lang:e.lang?e.lang:e.defaultLang,"minute-step":e.minuteStep,placeholder:e.placeholder?e.placeholder:e.defaultPlaceholder,"popup-class":{"show-week-number":e.showWeekNumber},range:e.internalRange,"show-week-number":e.showWeekNumber,type:e.realType,value:e.model},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,input:function(n){e.model=n}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?t("NcPopover",{attrs:{"popup-role":"dialog",shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(n){e.showTimezonePopover=n}},scopedSlots:e._u([{key:"trigger",fn:function({attrs:n}){return[t("button",e._b({staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(r){return r.stopPropagation(),r.preventDefault(),(()=>{}).apply(null,arguments)}}},"button",n,!1),[t("Web",{attrs:{size:20}})],1)]}}],null,!1,270852355)},[t("div",{attrs:{role:"dialog","aria-labelledby":e.timezoneDialogHeaderId}},[t("div",{staticClass:"timezone-popover-wrapper__label"},[t("strong",{attrs:{id:e.timezoneDialogHeaderId}},[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),t("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(n){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(n){e.tzVal=n},expression:"tzVal"}})],1)]):t("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(n,r){return{key:r,fn:function(i){return[e._t(r,null,null,i)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},ode=[],sde=ut(rde,ide,ode,!1,null,"abcdc981");const $3=sde.exports;oN($3);const ade=Object.freeze(Object.defineProperty({__proto__:null,default:$3},Symbol.toStringTag,{value:"Module"})),[Q_]=Yl("core","config",{version:"30.0"}).version.split(".",2)??[],lde=Q_&&Number.parseInt(Q_)<30,cde={name:"NcListItem",components:{NcActions:Os,NcCounterBubble:Jle,NcVNodes:qae},props:{details:{type:String,default:""},name:{type:String,default:void 0},exact:{type:Boolean,default:!1},to:{type:[String,Object],default:null},href:{type:String,default:"#"},target:{type:String,default:""},anchorId:{type:String,default:""},bold:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},active:{type:Boolean,default:void 0},linkAriaLabel:{type:String,default:""},actionsAriaLabel:{type:String,default:void 0},counterNumber:{type:[Number,String],default:0},counterType:{type:String,default:"",validator(e){return["highlighted","outlined",""].indexOf(e)!==-1}},forceDisplayActions:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},oneLine:{type:Boolean,default:!1}},emits:["click","update:menuOpen"],setup(){return{isLegacy:lde}},data(){return{hovered:!1,hasActions:!1,hasSubname:!1,displayActionsOnHoverFocus:!1,menuOpen:!1,hasIndicator:!1,hasDetails:!1}},computed:{showAdditionalElements(){return!this.displayActionsOnHoverFocus||this.forceDisplayActions},showDetails(){return(this.details!==""||this.hasDetails)&&(!this.displayActionsOnHoverFocus||this.forceDisplayActions)}},watch:{menuOpen(e){!e&&!this.hovered&&(this.displayActionsOnHoverFocus=!1)}},mounted(){this.checkSlots()},updated(){this.checkSlots()},methods:{onClick(e,t,n){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&n&&(t?.(e),e.preventDefault())},showActions(){this.hasActions&&(this.displayActionsOnHoverFocus=!0),this.hovered=!1},hideActions(){this.displayActionsOnHoverFocus=!1},handleBlur(e){this.menuOpen||this.$refs["list-item"].contains(e.relatedTarget)||this.hideActions()},handleMouseleave(){this.menuOpen||(this.displayActionsOnHoverFocus=!1),this.hovered=!1},handleMouseover(){this.showActions(),this.hovered=!0},handleActionsUpdateOpen(e){this.menuOpen=e,this.$emit("update:menuOpen",e)},checkSlots(){this.hasActions!==!!this.$slots.actions&&(this.hasActions=!!this.$slots.actions),this.hasSubname!==!!this.$slots.subname&&(this.hasSubname=!!this.$slots.subname),this.hasIndicator!==!!this.$slots.indicator&&(this.hasIndicator=!!this.$slots.indicator),this.hasDetails!==!!this.$slots.details&&(this.hasDetails=!!this.$slots.details)}}};var ude=function(){var e=this,t=e._self._c;return t(e.to?"router-link":"NcVNodes",{tag:"component",attrs:{custom:e.to?!0:null,to:e.to,exact:e.to?e.exact:null},scopedSlots:e._u([{key:"default",fn:function({href:n,navigate:r,isActive:i}){return[t("li",{staticClass:"list-item__wrapper",class:{"list-item__wrapper--active":e.active??i}},[t("div",{ref:"list-item",staticClass:"list-item",class:{"list-item--compact":e.compact,"list-item--legacy":e.isLegacy,"list-item--one-line":e.oneLine},on:{mouseover:e.handleMouseover,mouseleave:e.handleMouseleave}},[t("a",{staticClass:"list-item__anchor",attrs:{id:e.anchorId||void 0,"aria-label":e.linkAriaLabel,href:n||e.href,target:e.target||(e.href==="#"?void 0:"_blank"),rel:e.href==="#"?void 0:"noopener noreferrer"},on:{focus:e.showActions,focusout:e.handleBlur,click:function(o){return e.onClick(o,r,n)},keydown:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"esc",27,o.key,["Esc","Escape"])?null:e.hideActions.apply(null,arguments)}}},[e._t("icon"),t("div",{staticClass:"list-item-content"},[t("div",{staticClass:"list-item-content__main"},[t("div",{staticClass:"list-item-content__name"},[e._t("name",function(){return[e._v(e._s(e.name))]})],2),e.hasSubname?t("div",{staticClass:"list-item-content__subname",class:{"list-item-content__subname--bold":e.bold}},[e._t("subname")],2):e._e()]),t("div",{staticClass:"list-item-content__details"},[e.showDetails?t("div",{staticClass:"list-item-details__details"},[e._t("details",function(){return[e._v(e._s(e.details))]})],2):e._e(),e.counterNumber||e.hasIndicator?t("div",{directives:[{name:"show",rawName:"v-show",value:e.showAdditionalElements,expression:"showAdditionalElements"}],staticClass:"list-item-details__extra"},[e.counterNumber?t("NcCounterBubble",{staticClass:"list-item-details__counter",attrs:{active:e.active??i,type:e.counterType}},[e._v(" "+e._s(e.counterNumber)+" ")]):e._e(),e.hasIndicator?t("span",{staticClass:"list-item-details__indicator"},[e._t("indicator")],2):e._e()],1):e._e()])])],2),e.$slots["extra-actions"]?t("div",{staticClass:"list-item-content__extra-actions"},[e._t("extra-actions")],2):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.forceDisplayActions||e.displayActionsOnHoverFocus,expression:"forceDisplayActions || displayActionsOnHoverFocus"}],staticClass:"list-item-content__actions",on:{focusout:e.handleBlur}},[t("NcActions",{ref:"actions",attrs:{primary:e.active??i,"force-menu":e.forceMenu,"aria-label":e.actionsAriaLabel},on:{"update:open":e.handleActionsUpdateOpen},scopedSlots:e._u([e.$slots["actions-icon"]?{key:"icon",fn:function(){return[e._t("actions-icon")]},proxy:!0}:null],null,!0)},[e._t("actions")],2)],1),e.$slots.extra?t("div",{staticClass:"list-item__extra"},[e._t("extra")],2):e._e()])])]}}],null,!0)})},dde=[],hde=ut(cde,ude,dde,!1,null,"a991c44d");const Lbe=hde.exports,U3={},J_=()=>{BB((e,t)=>({efbac356:e.color}))},X_=U3.setup;if(U3.setup=X_?(e,t)=>(J_(),X_(e,t)):J_,Et(TB),fm()?.circles?.teamResourceProviders,Et(bB),Et(AB),me("Related resources"),me("Anything shared with the same group of people will show up here"),Array.prototype.find||(Array.prototype.find=function(e){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof e!="function")throw new TypeError("predicate must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i,o=0;o<n;o++)if(i=t[o],e.call(r,i,o,t))return i}),window&&typeof window.CustomEvent!="function"){let e=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};typeof window.Event<"u"&&(e.prototype=window.Event.prototype),window.CustomEvent=e}const pde={name:"NcAutoCompleteResult",components:{NcUserStatusIcon:qx},props:{title:{type:String,required:!1,default:null},label:{type:String,required:!1,default:null},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},iconUrl:{type:String,default:null},source:{type:String,required:!0},status:{type:[Object,Array],default:()=>({})}},setup(){return{isDarkTheme:sy()}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&this.source==="users"?Xx(this.id,{isDarkTheme:this.isDarkTheme}):null},labelWithFallback(){return this.label||this.title}}};var fde=function(){var e=this,t=e._self._c;return t("div",{staticClass:"autocomplete-result"},[t("div",{staticClass:"autocomplete-result__icon",class:[e.icon,`autocomplete-result__icon--${e.avatarUrl?"with-avatar":""}`],style:e.avatarUrl?{backgroundImage:`url(${e.avatarUrl})`}:null},[e.status.icon?t("span",{staticClass:"autocomplete-result__status autocomplete-result__status--icon"},[e._v(" "+e._s(e.status&&e.status.icon||"")+" ")]):e.status.status&&e.status.status!=="offline"?t("NcUserStatusIcon",{staticClass:"autocomplete-result__status",attrs:{status:e.status.status}}):e._e()],1),t("span",{staticClass:"autocomplete-result__content"},[t("span",{staticClass:"autocomplete-result__title",attrs:{title:e.labelWithFallback}},[e._v(" "+e._s(e.labelWithFallback)+" ")]),e.subline?t("span",{staticClass:"autocomplete-result__subline"},[e._v(" "+e._s(e.subline)+" ")]):e._e()])])},mde=[],gde=ut(pde,fde,mde,!1,null,"bd26e297");const Tde=gde.exports;Et(yB,eN),me("Write a message …"),Et(EB),{...zm.props,placeholder:me("Select a tag")},Et(QC,vB);me("Clear selected"),me("Options"),me("Select account"),Et(KC),Et(DB);const[Ybe]=Yl("core","config",{version:"30.0"}).version.split(".",2)??[];Et(SB),th(function(e){this.loadGroup(e)},200),yh.themes.tooltip.html=!1,yh.themes.tooltip.delay={show:500,hide:200},yh.themes.tooltip.distance=10,yh.themes.tooltip["arrow-padding"]=3;const bde={name:"SuggestionListWrapper",props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data(){return{selectedIndex:0}},computed:{hasGroups(){return Object.keys(this.itemGroups).includes(void 0)},hasResults(){return this.items.length>0},itemHeight(){return this.$el.scrollHeight/this.items.length},itemInsideScrollView(){return this.selectedIndex*this.itemHeight>=this.$el.scrollTop&&(this.selectedIndex+1)*this.itemHeight<=this.$el.scrollTop+this.$el.clientHeight},itemGroups(){const e={};return this.items.forEach(t=>{e[t.suggestGroup]||(e[t.suggestGroup]=[]),e[t.suggestGroup].push(t)}),e},combineIndex(){return(e,t)=>Object.values(this.itemGroups).slice(0,e).reduce((n,r)=>n+r.length,0)+t}},watch:{items(){this.selectedIndex=0,this.$el.scrollTop=0}},methods:{t:xe,onKeyDown({event:e}){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?!1:e.key==="ArrowUp"?(this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=this.selectedIndex*this.itemHeight),!0):e.key==="ArrowDown"?(this.selectedIndex=(this.selectedIndex+1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=(this.selectedIndex+1)*this.itemHeight-this.$el.clientHeight),!0):e.key==="Enter"||e.key==="Tab"?(this.selectItem(this.selectedIndex),!0):!1},selectItem(e){const t=this.items[e];t&&(this.$emit("select",t),this.command(t))}}};var Ade=function(){var e=this,t=e._self._c;return t("div",{staticClass:"suggestion-list"},[e.hasResults?e._l(e.itemGroups,function(n,r,i){return t("div",{key:r},[e.hasGroups?t("div",{staticClass:"suggestion-list__group"},[e._v(" "+e._s(r)+" ")]):e._e(),e._l(n,function(o,s){return t("div",{key:e.combineIndex(i,s),staticClass:"suggestion-list__item",class:{"is-selected":e.combineIndex(i,s)===e.selectedIndex},on:{click:function(a){e.selectItem(e.combineIndex(i,s))}}},[e._t("default",null,{item:o,active:e.combineIndex(i,s)===e.selectedIndex})],2)})],2)}):t("div",{staticClass:"suggestion-list__item is-empty"},[e._v(" "+e._s(e.t("text","No suggestion found"))+" ")])],2)},yde=[],Ede=Ee(bde,Ade,yde,!1,null,"e058c838");const z3=Ede.exports,vde={components:{NcAutoCompleteResult:Tde,SuggestionListWrapper:z3},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{t:xe,onKeyDown({event:e}){return this.$refs.suggestionList?.onKeyDown({event:e})}}};var Dde=function(){var e=this,t=e._self._c;return t("SuggestionListWrapper",{ref:"suggestionList",attrs:{command:e.command,items:e.items},scopedSlots:e._u([{key:"default",fn:function({item:n,active:r}){return[t("NcAutoCompleteResult",{class:r?"highlight":null,attrs:{id:n.id,label:n.label,icon:"icon-user",source:"users"}})]}},{key:"empty",fn:function(){return[e._v(" "+e._s(e.t("text","No user found"))+" ")]},proxy:!0}])})},Sde=[],wde=Ee(vde,Dde,Sde,!1,null,null);const _de=wde.exports,Cde=({connection:e,options:t})=>Vy({listComponent:_de,items:async({query:n})=>{const r=await Nae(n,{connection:e});return Object.entries(r).map(([i,o])=>({id:i,label:o}))},command:({editor:n,range:r,props:i})=>{t?.emitMention?t.emitMention({props:i}):_ae(i.id,window.location,{connection:e}),n.view.state.selection.$to.nodeAfter?.text?.startsWith(" ")&&(r.to+=1),n.chain().focus().insertContentAt(r,[{type:"mention",attrs:i},{type:"text",text:" "}]).run(),window.getSelection()?.collapseToEnd()},...t}),Nde=bn.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>VT({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}});let Rp;typeof window<"u"?window.btoa?Rp=function(e){return btoa(unescape(encodeURIComponent(e)))}:Rp=function(e){const t=unescape(encodeURIComponent(e+""));let n="";for(let r,i,o=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.charAt(o|0)||(s="=",o%1);n+=s.charAt(63&r>>8-o%1*8)){if(i=t.charCodeAt(o+=3/4),i>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|i}return n}:Rp=function(e){return um.from(e).toString("base64")};function En(e,t){let n=eC(e,t);return(t&&t.fallback!==void 0?t.fallback:En.defaults.fallback)===!0&&n===""&&(n=eC(Rp(e),t)),n}const V3={bg:{Й:"Y",й:"y",X:"H",x:"h",Ц:"Ts",ц:"ts",Щ:"Sht",щ:"sht",Ъ:"A",ъ:"a",Ь:"Y",ь:"y"},de:{Ä:"AE",ä:"ae",Ö:"OE",ö:"oe",Ü:"UE",ü:"ue"},sr:{đ:"dj",Đ:"DJ"},uk:{И:"Y",и:"y",Й:"Y",й:"y",Ц:"Ts",ц:"ts",Х:"Kh",х:"kh",Щ:"Shch",щ:"shch",Г:"H",г:"h"}};let Pb={};function eC(e,t){if(typeof e!="string")throw new Error("slug() requires a string argument, received "+typeof e);if(!e.isWellFormed())throw new Error("slug() received a malformed string with lone surrogates");typeof t=="string"&&(t={replacement:t}),t=t?Object.assign({},t):{},t.mode=t.mode||En.defaults.mode;const n=En.defaults.modes[t.mode],r=["replacement","multicharmap","charmap","remove","lower","trim"];for(let l,c=0,u=r.length;c<u;c++)l=r[c],t[l]=l in t?t[l]:n[l];const i=V3[t.locale]||Pb;let o=[];for(const l in t.multicharmap){if(!Object.prototype.hasOwnProperty.call(t.multicharmap,l))continue;const c=l.length;o.indexOf(c)===-1&&o.push(c)}o=o.sort(function(l,c){return c-l});const s=t.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/;let a="";for(let l,c=0,u=e.length;c<u;c++){l=e[c];let d=!1;for(let h=0;h<o.length;h++){const p=o[h],m=e.substr(c,p);if(t.multicharmap[m]){c+=p-1,l=t.multicharmap[m],d=!0;break}}d||(i[l]?l=i[l]:t.charmap[l]?l=t.charmap[l].replace(t.replacement," "):l.includes(t.replacement)?l=l.replace(t.replacement," "):l=l.replace(s,"")),a+=l}return t.remove&&(a=a.replace(t.remove,"")),t.trim&&(a=a.trim()),a=a.replace(/\s+/g,t.replacement),t.lower&&(a=a.toLowerCase()),a}const tC={फ़:"Fi",ग़:"Ghi",ख़:"Khi",क़:"Qi",ड़:"ugDha",ढ़:"ugDhha",य़:"Yi",ज़:"Za",בִי:"i",בֵ:"e",בֵי:"e",בֶ:"e",בַ:"a",בָ:"a",בֹ:"o",וֹ:"o",בֻ:"u",וּ:"u",בּ:"b",כּ:"k",ךּ:"k",פּ:"p",שׁ:"sh",שׂ:"s",בְ:"e",חֱ:"e",חֲ:"a",חֳ:"o",בִ:"i"},nC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ő:"O",Ø:"O",Ō:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ő:"o",ø:"o",ō:"o",Œ:"OE",œ:"oe",ù:"u",ú:"u",û:"u",ü:"u",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",α:"a",β:"b",γ:"g",δ:"d",ε:"e",ζ:"z",η:"h",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"3",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"w",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"h",ώ:"w",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"H",Θ:"Th",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"3",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"W",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"H",Ώ:"W",Ϊ:"I",Ϋ:"Y",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"j",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"u",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"J",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"H",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"U",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"K",Ļ:"L",Ņ:"N",Ū:"U",أ:"a",إ:"i",ب:"b",ت:"t",ث:"th",ج:"g",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"d",ط:"t",ظ:"th",ع:"aa",غ:"gh",ف:"f",ق:"k",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"o",ي:"y",ء:"aa",ة:"a",آ:"a",ا:"a",پ:"p",ژ:"zh",گ:"g",چ:"ch",ک:"k",ی:"i",ė:"e",į:"i",ų:"u",Ė:"E",Į:"I",Ų:"U",ț:"t",Ț:"T",ţ:"t",Ţ:"T",ș:"s",Ș:"S",ă:"a",Ă:"A",Ạ:"A",Ả:"A",Ầ:"A",Ấ:"A",Ậ:"A",Ẩ:"A",Ẫ:"A",Ằ:"A",Ắ:"A",Ặ:"A",Ẳ:"A",Ẵ:"A",Ẹ:"E",Ẻ:"E",Ẽ:"E",Ề:"E",Ế:"E",Ệ:"E",Ể:"E",Ễ:"E",Ị:"I",Ỉ:"I",Ĩ:"I",Ọ:"O",Ỏ:"O",Ồ:"O",Ố:"O",Ộ:"O",Ổ:"O",Ỗ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ợ:"O",Ở:"O",Ỡ:"O",Ụ:"U",Ủ:"U",Ũ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ự:"U",Ử:"U",Ữ:"U",Ỳ:"Y",Ỵ:"Y",Ỷ:"Y",Ỹ:"Y",Đ:"D",ạ:"a",ả:"a",ầ:"a",ấ:"a",ậ:"a",ẩ:"a",ẫ:"a",ằ:"a",ắ:"a",ặ:"a",ẳ:"a",ẵ:"a",ẹ:"e",ẻ:"e",ẽ:"e",ề:"e",ế:"e",ệ:"e",ể:"e",ễ:"e",ị:"i",ỉ:"i",ĩ:"i",ọ:"o",ỏ:"o",ồ:"o",ố:"o",ộ:"o",ổ:"o",ỗ:"o",ơ:"o",ờ:"o",ớ:"o",ợ:"o",ở:"o",ỡ:"o",ụ:"u",ủ:"u",ũ:"u",ư:"u",ừ:"u",ứ:"u",ự:"u",ử:"u",ữ:"u",ỳ:"y",ỵ:"y",ỷ:"y",ỹ:"y",đ:"d",Ә:"AE",ә:"ae",Ғ:"GH",ғ:"gh",Қ:"KH",қ:"kh",Ң:"NG",ң:"ng",Ү:"UE",ү:"ue",Ұ:"U",ұ:"u",Һ:"H",һ:"h",Ө:"OE",ө:"oe",ђ:"dj",ј:"j",љ:"lj",њ:"nj",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Љ:"Lj",Њ:"Nj",Ћ:"C",Џ:"Dz",nj:"nj",lj:"lj",Nj:"NJ",Lj:"LJ",अ:"a",आ:"aa",ए:"e",ई:"ii",ऍ:"ei",ऎ:"ae",ऐ:"ai",इ:"i",ओ:"o",ऑ:"oi",ऒ:"oii",ऊ:"uu",औ:"ou",उ:"u",ब:"B",भ:"Bha",च:"Ca",छ:"Chha",ड:"Da",ढ:"Dha",फ:"Fa",ग:"Ga",घ:"Gha",ग़:"Ghi",ह:"Ha",ज:"Ja",झ:"Jha",क:"Ka",ख:"Kha",ख़:"Khi",ल:"L",ळ:"Li",ऌ:"Li",ऴ:"Lii",ॡ:"Lii",म:"Ma",न:"Na",ङ:"Na",ञ:"Nia",ण:"Nae",ऩ:"Ni",ॐ:"oms",प:"Pa",क़:"Qi",र:"Ra",ऋ:"Ri",ॠ:"Ri",ऱ:"Ri",स:"Sa",श:"Sha",ष:"Shha",ट:"Ta",त:"Ta",ठ:"Tha",द:"Tha",थ:"Tha",ध:"Thha",ड़:"ugDha",ढ़:"ugDhha",व:"Va",य:"Ya",य़:"Yi",ज़:"Za",ə:"e",Ə:"E",ა:"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",ב:"v",גּ:"g",ג:"g",ד:"d",דּ:"d",ה:"h",ו:"v",ז:"z",ח:"h",ט:"t",י:"y",כ:"kh",ך:"kh",ל:"l",מ:"m",ם:"m",נ:"n",ן:"n",ס:"s",פ:"f",ף:"f",ץ:"ts",צ:"ts",ק:"k",ר:"r",תּ:"t",ת:"t"};En.charmap=Object.assign({},nC),En.multicharmap=Object.assign({},tC),En.defaults={charmap:En.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:En.charmap,multicharmap:En.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:En.charmap,multicharmap:En.multicharmap,trim:!0}},multicharmap:En.multicharmap,fallback:!0},En.reset=function(){En.defaults.modes.rfc3986.charmap=En.defaults.modes.pretty.charmap=En.charmap=En.defaults.charmap=Object.assign({},nC),En.defaults.modes.rfc3986.multicharmap=En.defaults.modes.pretty.multicharmap=En.multicharmap=En.defaults.multicharmap=Object.assign({},tC),Pb=""},En.extend=function(e){const t=Object.keys(e),n={},r={};for(let i=0;i<t.length;i++)t[i].length>1?n[t[i]]=e[t[i]]:r[t[i]]=e[t[i]];Object.assign(En.charmap,r),Object.assign(En.multicharmap,n)},En.setLocale=function(e){Pb=V3[e]||{}};function rC(e,t=[]){const n=new Map,r=[],i=o=>{const s=En(o);if(n.has(s)){const a=n.get(s);return n.set(s,a+1),`h-${s}--${a}`}return n.set(s,1),"h-"+s};return e.descendants((o,s,a,l)=>{if(o.type.name!=="heading")return;const c=o.textContent;if(!c)return;const u=i(c),d=t.at(l),h=d?.id===u?{previous:d.level}:{},p=Object.freeze({level:o.attrs.level,text:c,id:u,offset:s,...h});r.push(p)}),r}const j3=new Lt("headingAnchor");function Fde(){return new kt({key:j3,state:{init(e,{doc:t}){const n=rC(t);return{headings:n,decorations:iC(t,n)}},apply(e,t,n,r){if(!e.docChanged)return t;const i=rC(r.doc),o=Ode(t,e,i)||iC(r.doc,i);return{headings:i,decorations:o}}},props:{decorations(e){return this.getState(e).decorations}}})}function Ode(e,t,n){if(xde(n,e.headings))return!1;let r=!1;const i=e.decorations.map(t.mapping,t.doc,{onRemove:()=>{r=!0}});return r?!1:i}function xde(e,t){return e.length!==t.length||e.some(kde(t))}const kde=e=>(t,n)=>t.id!==e[n].id||t.level!==e[n].level;function iC(e,t){const n=t.map(Rde);return Rt.create(e,n)}function Rde(e){return xn.widget(e.offset+1,Mde(e),{side:-1})}function Mde(e){const t=document.createElement("a"),n=document.createTextNode("#");return t.appendChild(n),t.setAttribute("id",e.id),t.setAttribute("aria-hidden","true"),t.className="heading-anchor",t.setAttribute("href",`#${e.id}`),t.setAttribute("title",xe("text","Link to this section")),t.setAttribute("contenteditable","false"),t.addEventListener("click",Bde),t}function Bde(e){e.stopPropagation(),e.preventDefault(),e.target.scrollIntoView({block:"start",behavior:"smooth"}),window.history.replaceState({},"",e.target.getAttribute("href"))}const Ide=Nde.extend({addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Shift-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addProseMirrorPlugins(){return[Fde()]}}),Lde={name:"EmojiList",props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},data(){return{selectedIndex:0}},computed:{hasResults(){return this.items.length>0},itemHeight(){return this.$el.scrollHeight/this.items.length},itemInsideScrollView(){return this.selectedIndex*this.itemHeight>=this.$el.scrollTop&&(this.selectedIndex+1)*this.itemHeight<=this.$el.scrollTop+this.$el.clientHeight}},watch:{items(){this.selectedIndex=0,this.$el.scrollTop=0}},methods:{t:xe,onKeyDown({event:e}){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?!1:e.key==="ArrowUp"?(this.selectedIndex=(this.selectedIndex+this.items.length-1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=this.selectedIndex*this.itemHeight),!0):e.key==="ArrowDown"?(this.selectedIndex=(this.selectedIndex+1)%this.items.length,this.itemInsideScrollView||(this.$el.scrollTop=(this.selectedIndex+1)*this.itemHeight-this.$el.clientHeight),!0):e.key==="Enter"||e.key==="Tab"?(this.selectItem(this.selectedIndex),!0):!1},selectItem(e){const t=this.items[e];t&&(this.command(t),aJ(t))}}};var Yde=function(){var e=this,t=e._self._c;return t("div",{staticClass:"emoji-list"},[e.hasResults?e._l(e.items,function(n,r){return t("div",{key:r,staticClass:"emoji-list__item",class:{"is-selected":r===e.selectedIndex},on:{click:function(i){return e.selectItem(r)}}},[t("span",{staticClass:"emoji-list__item__emoji"},[e._v(" "+e._s(n.native)+" ")]),e._v(" :"+e._s(n.short_name)+" ")])}):t("div",{staticClass:"emoji-list__item is-empty"},[e._v(" "+e._s(e.t("text","No emoji found"))+" ")])],2)},Hde=[],Zde=Ee(Lde,Yde,Hde,!1,null,"42b3661e");const Pde=Zde.exports,$de=()=>Vy({listComponent:Pde,items:({query:e})=>sJ(e),command:({editor:e,range:t,props:n})=>{e.chain().focus().insertContentAt(t,n.native+" ").run()}}),Ude={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zde=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon content-copy-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Vde=[],jde=Ee(Ude,zde,Vde,!1,null,null);const G3=jde.exports,Gde={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qde=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon open-in-new-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Wde=[],Kde=Ee(Gde,qde,Wde,!1,null,null);const q3=Kde.exports,W3={data(){return{copied:!1,copyLoading:!1,copySuccess:!1}},methods:{async copyToClipboard(e){this.copyLoading=!0;try{await navigator.clipboard.writeText(e),this.copySuccess=!0,this.copied=!0,n6(xe("text","Copied to the clipboard"))}catch{this.copySuccess=!1,this.copied=!0,uN(`<div>${xe("text","Could not copy to the clipboard")}</div>`,{isHTML:!0})}finally{this.copyLoading=!1,setTimeout(()=>{this.copySuccess=!1,this.copied=!1},4e3)}}}},Qde=["http:","https:"],Jde={name:"LinkBubbleView",components:{CheckIcon:cx,CloseIcon:ux,ContentCopyIcon:G3,NcButton:_i,NcLoadingIcon:Vd,NcReferenceList:Nk,NcTextField:Lm,LinkOffIcon:hx,OpenInNewIcon:q3,PencilOutlineIcon:px},mixins:[W3,c6],props:{editor:{type:Object,required:!0},href:{type:String,default:null}},data(){return{isEditable:!1,edit:!0,newHref:null,referenceTitle:null}},computed:{key(){return this.href||"no-href"},copyLinkTooltip(){return this.copied?this.copySuccess?"":xe("text","Cannot copy, please copy the link manually"):xe("text","Copy link to clipboard")},sanitizedHref(){return new URL(this.href,window.location).href},title(){return this.referenceTitle?this.referenceTitle:this.sanitizedHref},showPreview(){const e=new URL(this.href,window.location);return this.href&&Qde.includes(e.protocol)}},watch:{key(){this.resetBubble(),this.startEditIfEmpty()}},beforeMount(){this.isEditable=this.editor.isEditable,this.editor.on("update",({editor:e})=>{this.isEditable=e.isEditable})},methods:{resetBubble(){this.edit=!1,this.newHref=null,this.referenceTitle=null},openLink(e){this.$openLinkHandler.openLink(e)},async copyLink(){await this.copyToClipboard(this.href)},onReferenceListLoaded(){this.referenceTitle=this.$refs.referencelist.firstReference?.openGraphObject?.name??null},startEdit(){this.edit=!0,this.newHref=this.href,this.$nextTick(()=>{this.$refs.hrefField.focus()})},startEditIfEmpty(){this.isEditable&&!this.href&&this.startEdit()},stopEdit(){this.edit=!1,this.newHref=null},updateLink(){this.href!==this.newHref&&this.setLinkUrl(this.newHref),this.stopEdit()},setLinkUrl(e){const t={...this.editor.view.state.selection},{ranges:n}=t,r=Math.min(...n.map(o=>o.$from.pos)),i=Math.max(...n.map(o=>o.$to.pos));console.debug("selection",t),this.editor.chain().extendMarkRange("link").setLink({href:e}).setTextSelection({from:r,to:i}).focus().run()},removeLink(){this.editor.chain().hideLinkBubble().unsetLink().focus().run(),this.stopEdit()},t:xe}};var Xde=function(){var e=this,t=e._self._c;return t("div",{key:e.key,staticClass:"link-view-bubble"},[t("div",{staticClass:"link-view-bubble__header"},[t("div",{staticClass:"link-view-bubble__title"},[e._v(" "+e._s(e.title)+" ")]),t("NcButton",{attrs:{title:e.t("text","Open link"),"aria-label":e.t("text","Open link"),type:"tertiary"},on:{click:function(n){return e.openLink(e.href)}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("OpenInNewIcon",{attrs:{size:20}})]},proxy:!0}])}),t("NcButton",{attrs:{title:e.copyLinkTooltip,"aria-label":e.copyLinkTooltip,type:"tertiary"},on:{click:e.copyLink},scopedSlots:e._u([{key:"icon",fn:function(){return[e.copySuccess?t("CheckIcon",{attrs:{size:20}}):e.copyLoading?t("NcLoadingIcon",{attrs:{size:20}}):t("ContentCopyIcon",{attrs:{size:20}})]},proxy:!0}])}),e.isEditable?t("div",{staticClass:"edit-buttons"},[e.edit?t("NcButton",{attrs:{title:e.t("text","Save changes"),"aria-label":e.t("text","Save changes"),type:"tertiary"},on:{click:e.updateLink},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CheckIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2630571749)}):t("NcButton",{attrs:{title:e.t("text","Edit link"),"aria-label":e.t("text","Edit link"),type:"tertiary"},on:{click:e.startEdit},scopedSlots:e._u([{key:"icon",fn:function(){return[t("PencilOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,3691650334)}),e.edit?t("NcButton",{attrs:{title:e.t("text","Cancel"),"aria-label":e.t("text","Cancel"),type:"tertiary"},on:{click:e.stopEdit},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CloseIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2428343285)}):t("NcButton",{attrs:{title:e.t("text","Remove link"),"aria-label":e.t("text","Remove link"),type:"tertiary"},on:{click:e.removeLink},scopedSlots:e._u([{key:"icon",fn:function(){return[t("LinkOffIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2250374828)})],1):e._e()],1),e.isEditable&&e.edit?t("div",{staticClass:"link-view-bubble__edit"},[t("NcTextField",{ref:"hrefField",attrs:{name:"newHref",label:e.t("text","URL"),value:e.newHref},on:{"update:value":function(n){e.newHref=n},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),e.updateLink.apply(null,arguments))}}})],1):e.showPreview?t("NcReferenceList",{ref:"referencelist",staticClass:"link-view-bubble__reference-list",attrs:{text:e.sanitizedHref,limit:1,interactive:!1,"display-fallback":!0},on:{loaded:e.onReferenceListLoaded}}):e._e()],1)},ehe=[],the=Ee(Jde,Xde,ehe,!1,null,"5f1a268d");const nhe=the.exports;class rhe{#e=null;#t=null;constructor({view:t,options:n,plugin:r}){this.options=n,this.view=t,this.plugin=r,this.#t=this.options.editor}addEventListeners(){this.view.dom.addEventListener("dragstart",this.closeOnExternalEvents),document.addEventListener("mousedown",this.closeOnExternalEvents),document.addEventListener("scroll",this.closeOnExternalEvents,{capture:!0})}removeEventListeners(){this.view.dom.removeEventListener("dragstart",this.closeOnExternalEvents),document.removeEventListener("mousedown",this.closeOnExternalEvents),document.removeEventListener("scroll",this.closeOnExternalEvents,{capture:!0})}closeOnExternalEvents=t=>{this.tippy?.popper?.contains(t.target)||window.Cypress&&t.type==="scroll"||this.#t.commands.hideLinkBubble()};createTooltip(){const t=this.options.editor.options.element,n=!!t.parentElement;this.tippy||!n||(this.#e||=new $y(nhe,{parent:this.options.editor.contentComponent,propsData:{editor:this.options.editor,href:null}}),this.tippy=gl(t,{duration:100,getReferenceClientRect:null,content:this.#e.element,interactive:!0,trigger:"manual",placement:"bottom",hideOnClick:"toggle",popperOptions:{strategy:"fixed"}}))}update(t,n){const{active:r}=this.plugin.getState(t.state);t.composing||(this.createTooltip(),r?.mark?setTimeout(()=>{this.updateTooltip(t,r)},100):(this.removeEventListeners(),setTimeout(()=>{this.tippy?.hide()},100)))}updateTooltip(t,{mark:n,nodeStart:r}){let i;try{i=t.nodeDOM(r)}catch{return}Object.prototype.toString.call(i)==="[object Text]"&&(i=i.parentElement),this.#e?.updateProps({href:Kb(n)});const o=i?.getBoundingClientRect();o&&this.tippy?.setProps({getReferenceClientRect:()=>o}),this.tippy?.show(),this.addEventListeners()}destroy(){this.tippy?.destroy()}}function ihe({selection:e,doc:t}){const{ranges:n}=e,r=Math.min(...n.map(d=>d.$from.pos)),i=Math.max(...n.map(d=>d.$to.pos)),o=t.resolve(r);if(o.parent.type.name==="preview")return!1;const s=o.parent.maybeChild(o.index()),a=o.pos-o.textOffset,l=a+s?.nodeSize;if(i>l)return null;const c=oC(s,a);if(c)return c;const u=o.nodeBefore;return u?oC(u,a-u.nodeSize):null}function oC(e,t){const n=ohe(e);return n?{mark:n,nodeStart:t}:null}function ohe(e){const t=e?.marks.find(n=>n.type.name==="link");if(t&&!pm(t.attrs.href))return t}const she=e=>(t,n)=>{const r=e.marks().find(s=>s.type.name==="link");if(!r)return!1;const i=e.pos-e.textOffset,o={mark:r,nodeStart:i};return n&&n(t.tr.setMeta(Vc,{active:o})),!0},K3=(e,t)=>Vc.getState(e)?.active?(t&&t(e.tr.setMeta(Vc,{active:null})),!0):!1,Vc=new Lt("linkBubble");function ahe(e){const t=new kt({key:Vc,state:{init:()=>({active:null}),apply:(n,r)=>{const i=n.getMeta(Vc);return i?{...r,active:i.active}:r}},view:n=>new rhe({view:n,options:e,plugin:t}),appendTransaction:(n,r,i)=>{if(r?.doc.content.size===2)return;const o=r?.selection.eq(i.selection),s=r?.doc.eq(i.doc),a=n.every(c=>c.meta.addToHistory===!1);if(o&&(a||s))return;const l=ihe(i);return i.tr.setMeta(Vc,{active:l})},props:{handleClickOn:(n,r,i,o,s,a)=>{if(!a||s.button!==0||s.ctrlKey||s.metaKey)return!1;const{state:l,dispatch:c}=n,u=l.doc.resolve(r);return she(u)(l,c)},handleDOMEvents:{keydown:(n,r)=>{const{state:i,dispatch:o}=n;if(r.key==="Escape")return K3(i,o)}}}});return t}const lhe=new Lt("textHandleClickLink");function che(){return new kt({key:lhe,props:{handleDOMEvents:{auxclick:(e,t)=>{if(t.target.closest("a")&&t.button===1&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey){t.preventDefault(),t.stopImmediatePropagation();const n=t.target.closest("a");window.open(n.href,"_blank")}},paste:(e,t)=>{t.target.closest("a")&&(t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation())},click:(e,t)=>{const n=t.target.closest("a");if(!n||!n.matches('a[data-text-el="text-only-link"]'))return!1;t.button===0&&(t.preventDefault(),pm(n.attributes.href?.value)?location.href=n.attributes.href.value:(t.ctrlKey||t.metaKey)&&window.open(n.href,"_blank"))}}}})}const uhe=pn.create({name:"linkViewBubble",addCommands(){return{hideLinkBubble:()=>({state:e,dispatch:t})=>K3(e,t)}},addProseMirrorPlugins(){return[ahe({editor:this.editor})]}});function dhe(e){return[/\*\*.*?\*\*/,/\*.*?\*/,/\[.*?\(.*?\)/,/^#{1,6}\s.*$/,/^\s*[-+*]\s.*/m,/^\s\d\..*/m,/^>+\s.*/,/`.*?`/].some(t=>t.test(e))}function hhe(e){try{return _l.parse(e),!0}catch{return!1}}function phe(e){return dhe(e)&&hhe(e)}const fhe={components:{SuggestionListWrapper:z3},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{t:xe,onKeyDown({event:e}){return this.$refs.suggestionList?.onKeyDown({event:e})}}};var mhe=function(){var e=this,t=e._self._c;return t("SuggestionListWrapper",{ref:"suggestionList",attrs:{command:e.command,items:e.items},on:{select:n=>e.$emit("select",n)},scopedSlots:e._u([{key:"default",fn:function({item:n}){return[t("div",{staticClass:"link-picker__item",attrs:{"data-key":n.key}},[typeof n.icon!="string"?t(n.icon,{tag:"compoent"}):t("img",{attrs:{src:n.icon}}),t("div",[e._v(e._s(n.label))])],1)]}},{key:"empty",fn:function(){return[e._v(" "+e._s(e.t("text","No command found"))+" ")]},proxy:!0}])})},ghe=[],The=Ee(fhe,mhe,ghe,!1,null,"5ab73b22");const bhe=The.exports,Ahe=xe("text","Formatting"),yhe=xe("text","Smart picker"),Ehe=e=>["undo","redo","outline","emoji-picker"].indexOf(e.key)>-1,sC=["task-list","table"],vhe=e=>{try{return!!new URL(e)}catch{return!1}},Dhe=e=>[...e.filter(t=>sC.indexOf(t.key)>-1),...e.filter(t=>sC.indexOf(t.key)===-1)],She=e=>Dhe([...bc.find(t=>t.key==="headings").children,...bc.find(t=>t.key==="lists").children,...bc.filter(t=>t.action&&!Ehe(t)),...bc.find(t=>t.key==="blocks").children,{...bc.find(t=>t.key==="emoji-picker"),action:t=>t.insertContent(":")}].filter(t=>t?.label?.toLowerCase?.()?.includes(e.toLowerCase())).map(t=>({...t,suggestGroup:Ahe}))),whe=()=>Vy({listComponent:bhe,command:({editor:e,range:t,props:n})=>{if(n.action){const r=e.chain().deleteRange(t);n.action(r),r.run();return}Ck(n.providerId,!0).then(r=>{if(!vhe(r)){const i=phe(r)?_l.render(r):r;e.chain().focus().insertContentAt(t,i+" ").run();return}e.chain().focus().deleteRange(t).insertPreview(r).run()}).catch(r=>{console.error("Smart picker promise rejected",r)})},items:({editor:e,query:t})=>[...wk(t).map(n=>({suggestGroup:yhe,label:n.title,icon:n.icon_url,providerId:n.id})).filter(n=>n?.label?.toLowerCase?.()?.includes(t.toLowerCase())),...She(t).filter(({action:n,isActive:r})=>{const i=n(e?.can()),o=r&&_x({isActive:r},e);return i&&!o})]}),_he=new Lt("linkPicker"),Che=pn.create({name:"linkPicker",addOptions(){return{suggestion:{char:"/",allowedPrefixes:[" "],pluginKey:_he,allow:({state:e,range:t})=>e.doc.resolve(t.from).parent.type.name!=="codeBlock",...whe()}}},addProseMirrorPlugins(){return[Ry({editor:this.editor,...this.options.suggestion})]}}),$b=new Lt("searchQuery");function Nhe(){return new kt({key:$b,state:{init:()=>({query:"",matchAll:!0,index:0}),apply:(e,t)=>{const n=e.getMeta("searchQuery");if(n?.query!==void 0||n?.match){const r={query:n.query??t.query,matchAll:n.matchAll??t.matchAll,index:t.index};return n?.match&&(r.matchAll=!1,r.index=t.index+n.match),r}else return t}}})}const Fhe=(e,t)=>({tr:n})=>n.setMeta("searchQuery",{query:e,matchAll:t}),Ohe=()=>({tr:e})=>e.setMeta("searchQuery",{match:1}),xhe=()=>({tr:e})=>e.setMeta("searchQuery",{match:-1});function khe(){return new kt({key:new Lt("searchDecorations"),state:{init(e,{doc:t}){const n=aC(t,"");return lC(t,n.results)},apply(e,t,n,r){const i=$b.getState(n),o=$b.getState(r),s=o.query!==i.query,a=o.index!==i.index,l=o.matchAll!==i.matchAll;if(e.docChanged||s||a||l){const{results:c,total:u,index:d}=aC(e.doc,o.query,{matchAll:o.matchAll,index:o.index});return ad("text:editor:search-results",{totalMatches:o.query===""?null:u,matchIndex:d}),lC(e.doc,c)}else return t}},props:{decorations(e){return this.getState(e)}}})}function aC(e,t,n){n={matchAll:n?.matchAll??!0,index:n?.index??0};const r=[];if(!t||t==="")return{results:r,total:r.length,index:n.index};if(e.descendants((i,o,s)=>{if(!i.isText)return;const a=i.text.matchAll(new RegExp(t,"gi"));for(const l of a)r.push({from:l.index+o,to:l.index+o+t.length})}),n.matchAll)return{results:r,total:r.length,index:n.index};{const i=Rhe(n.index,r.length);return{results:[r[i]??r],total:r.length,index:i}}}function lC(e,t){const n=[];return t.length<1?Rt.empty:(t.forEach(r=>{n.push(xn.inline(r.from,r.to,{"data-text-el":"search-decoration",style:"background-color: #ead637; color: black; border-radius: 2px;"}))}),Rt.create(e,n))}function Rhe(e,t){return t<1?0:e<0?(e%t+t)%t:e%t}const Mhe=pn.create({name:"Search",addCommands(){return{setSearchQuery:Fhe,nextMatch:Ohe,previousMatch:xhe}},addProseMirrorPlugins(){return[Nhe(),khe()]}}),Q3="֑-߿יִ-﷽ﹰ-ﻼ",J3="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",Bhe=new RegExp("^[^"+J3+"]*["+Q3+"]"),Ihe=new RegExp("^[^"+Q3+"]*["+J3+"]");function Lhe(e){return e.length===0?null:Bhe.test(e)?"rtl":Ihe.test(e)?"ltr":null}const Yhe=["ltr","rtl","auto"];function Hhe({types:e}){return new kt({key:new Lt("textDirection"),appendTransaction:(t,n,r)=>{const i=t.some(d=>d.getMeta("y-sync$")),o=r.plugins.find(d=>d.spec.isInputRules),s=o&&t.some(d=>d.getMeta(o));if(i||s||!t.some(d=>d.docChanged))return;let a=!1;const{tr:l}=r,c=UF(n.doc,t),u=qF(c);return l.setMeta("addToHistory",!1),u.forEach(({newRange:d})=>{zF(r.doc,d,h=>e.includes(h.type.name)).forEach(({node:h,pos:p})=>{if(h.attrs.dir!==null&&h.textContent.length>0)return;const m=Lhe(h.textContent);if(h.attrs.dir===m)return;const b=l.storedMarks||[];l.setNodeAttribute(p,"dir",m);for(const A of b)l.addStoredMark(A);a=!0})}),a?l:null}})}const Zhe=pn.create({name:"textDirection",addOptions(){return{types:[],defaultDirection:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{dir:{default:null,parseHTML:e=>e.dir||this.options.defaultDirection,renderHTML:e=>e.dir===this.options.defaultDirection?{}:{dir:e.dir}}}}]},addCommands(){return{setTextDirection:e=>({commands:t})=>Yhe.includes(e)?this.options.types.every(n=>t.updateAttributes(n,{dir:e})):!1,unsetTextDirection:()=>({commands:e})=>this.options.types.every(t=>e.resetAttributes(t,"dir"))}},addKeyboardShortcuts(){return{"Mod-Alt-l":()=>this.editor.commands.setTextDirection("ltr"),"Mod-Alt-r":()=>this.editor.commands.setTextDirection("rtl")}},addProseMirrorPlugins(){return[Hhe({types:this.options.types})]}}),Phe=e=>Vt({find:/--$/,replace:e??"—"}),$he=e=>Vt({find:/\.\.\.$/,replace:e??"…"}),Uhe=e=>Vt({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:e??"“"}),zhe=e=>Vt({find:/"$/,replace:e??"”"}),Vhe=e=>Vt({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:e??"‘"}),jhe=e=>Vt({find:/'$/,replace:e??"’"}),Ghe=e=>Vt({find:/<-$/,replace:e??"←"}),qhe=e=>Vt({find:/->$/,replace:e??"→"}),Whe=e=>Vt({find:/\(c\)$/,replace:e??"©"}),Khe=e=>Vt({find:/\(tm\)$/,replace:e??"™"}),Qhe=e=>Vt({find:/\(sm\)$/,replace:e??"℠"}),Jhe=e=>Vt({find:/\(r\)$/,replace:e??"®"}),Xhe=e=>Vt({find:/(?:^|\s)(1\/2)\s$/,replace:e??"½"}),epe=e=>Vt({find:/\+\/-$/,replace:e??"±"}),tpe=e=>Vt({find:/!=$/,replace:e??"≠"}),npe=e=>Vt({find:/<<$/,replace:e??"«"}),rpe=e=>Vt({find:/>>$/,replace:e??"»"}),ipe=e=>Vt({find:/\d+\s?([*x])\s?\d+$/,replace:e??"×"}),ope=e=>Vt({find:/\^2$/,replace:e??"²"}),spe=e=>Vt({find:/\^3$/,replace:e??"³"}),ape=e=>Vt({find:/(?:^|\s)(1\/4)\s$/,replace:e??"¼"}),lpe=e=>Vt({find:/(?:^|\s)(3\/4)\s$/,replace:e??"¾"}),cpe=pn.create({name:"typography",addOptions(){return{closeDoubleQuote:"”",closeSingleQuote:"’",copyright:"©",ellipsis:"…",emDash:"—",laquo:"«",leftArrow:"←",multiplication:"×",notEqual:"≠",oneHalf:"½",oneQuarter:"¼",openDoubleQuote:"“",openSingleQuote:"‘",plusMinus:"±",raquo:"»",registeredTrademark:"®",rightArrow:"→",servicemark:"℠",superscriptThree:"³",superscriptTwo:"²",threeQuarters:"¾",trademark:"™"}},addInputRules(){const e=[];return this.options.emDash!==!1&&e.push(Phe(this.options.emDash)),this.options.ellipsis!==!1&&e.push($he(this.options.ellipsis)),this.options.openDoubleQuote!==!1&&e.push(Uhe(this.options.openDoubleQuote)),this.options.closeDoubleQuote!==!1&&e.push(zhe(this.options.closeDoubleQuote)),this.options.openSingleQuote!==!1&&e.push(Vhe(this.options.openSingleQuote)),this.options.closeSingleQuote!==!1&&e.push(jhe(this.options.closeSingleQuote)),this.options.leftArrow!==!1&&e.push(Ghe(this.options.leftArrow)),this.options.rightArrow!==!1&&e.push(qhe(this.options.rightArrow)),this.options.copyright!==!1&&e.push(Whe(this.options.copyright)),this.options.trademark!==!1&&e.push(Khe(this.options.trademark)),this.options.servicemark!==!1&&e.push(Qhe(this.options.servicemark)),this.options.registeredTrademark!==!1&&e.push(Jhe(this.options.registeredTrademark)),this.options.oneHalf!==!1&&e.push(Xhe(this.options.oneHalf)),this.options.plusMinus!==!1&&e.push(epe(this.options.plusMinus)),this.options.notEqual!==!1&&e.push(tpe(this.options.notEqual)),this.options.laquo!==!1&&e.push(npe(this.options.laquo)),this.options.raquo!==!1&&e.push(rpe(this.options.raquo)),this.options.multiplication!==!1&&e.push(ipe(this.options.multiplication)),this.options.superscriptTwo!==!1&&e.push(ope(this.options.superscriptTwo)),this.options.superscriptThree!==!1&&e.push(spe(this.options.superscriptThree)),this.options.oneQuarter!==!1&&e.push(ape(this.options.oneQuarter)),this.options.threeQuarters!==!1&&e.push(lpe(this.options.threeQuarters)),e}}),upe=()=>Vt({find:new RegExp("(?<![<])-- $"),replace:"— "}),dpe=()=>Vt({find:/<->$/,replace:"↔"}),hpe=()=>Vt({find:/<- $/,replace:"← "}),ppe=()=>Vt({find:new RegExp("(?<![<-])->$"),replace:"→"}),fpe=()=>Vt({find:/<=>$/,replace:"⇔"}),mpe=()=>Vt({find:/<= $/,replace:"⇐ "}),gpe=()=>Vt({find:new RegExp("(?<![<=])=>$"),replace:"⇒"}),Tpe=()=>Vt({find:/<-->$/,replace:"⟷"}),bpe=()=>Vt({find:/<-- $/,replace:"⟵ "}),Ape=()=>Vt({find:new RegExp("(?<!<)-->$"),replace:"⟶"}),ype=cpe.extend({addOptions(){const e={...this.parent?.()};return e.emDash=!1,e.leftArrow=!1,e.rightArrow=!1,e},addInputRules(){const e=this.parent?.()||[];return e.push(upe()),e.push(hpe()),e.push(ppe()),e.push(dpe()),e.push(fpe()),e.push(mpe()),e.push(gpe()),e.push(Tpe()),e.push(bpe()),e.push(Ape()),e}}),Epe="listItem",cC="textStyle",uC=/^\s*([-+*])\s$/,vpe=bn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Epe,this.editor.getAttributes(cC)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=wa({find:uC,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=wa({find:uC,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(cC),editor:this.editor})),[e]}});function Dpe(e,t,n){const r=({state:i,range:o,match:s})=>{wa({find:e,type:t,getAttributes:n}).handler({state:i,range:o,match:s}),s.length>=3&&i.tr.insertText(s[2])};return new Au({find:e,handler:r})}const Spe=vpe.extend({parseHTML(){return this.parent().map(e=>Object.assign(e,{preserveWhitespace:!0}))},addAttributes(){return{...this.parent?.(),isList:{default:!0,rendered:!1},bullet:{default:"-",rendered:!1,isRequired:!0,parseHTML:e=>e.getAttribute("data-bullet")}}},addInputRules(){return[Dpe(/^\s*([-+*])\s([^\s[]+)$/,this.type)]}}),wpe={info:QA,success:bx,error:Tx,warn:Ex},_pe={name:"Callout",components:{NodeViewWrapper:zo,NodeViewContent:Pa},props:{node:{type:Object,required:!0}},computed:{icon(){return wpe[this.type]||QA},type(){return this.node.attrs.type||"info"},dir(){return this.node.attrs.dir||""}}};var Cpe=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{staticClass:"callout",class:`callout--${e.type}`,attrs:{"data-text-el":"callout",dir:e.dir,as:"div"}},[t(e.icon,{tag:"component",staticClass:"callout__icon"}),t("NodeViewContent",{staticClass:"callout__content"})],1)},Npe=[],Fpe=Ee(_pe,Cpe,Npe,!1,null,"34f6e9a3");const Ope=Fpe.exports,xpe=bn.create({name:"callout",content:"paragraph+",group:"block",defining:!0,addOptions(){return{types:Sb,HTMLAttributes:{class:"callout"}}},addAttributes(){return{type:{default:"info",rendered:!1,parseHTML:e=>e.getAttribute("data-callout")||Sb.find(t=>e.classList.contains(t))||e.classList.contains("warning")&&"warn",renderHTML:e=>({"data-callout":e.type,class:`callout-${e.type}`})}}},parseHTML(){return[{tag:"div.callout"},{tag:"p.callout",priority:1001}]},renderHTML({node:e,HTMLAttributes:t}){const{class:n}=this.options.HTMLAttributes,r={...this.options.HTMLAttributes,"data-callout":e.attrs.type,class:`${n} ${n}-${e.attrs.type}`};return["div",Ft(r,t),0]},toMarkdown:(e,t)=>{e.write("::: "+(t.attrs.type||"info")+`
`),e.renderContent(t),e.ensureNewLine(),e.write(":::"),e.closeBlock(t)},addNodeView(){return Vo(Ope)},addCommands(){return{setCallout:e=>({commands:t})=>t.wrapIn(this.name,e),toggleCallout:e=>({commands:t,state:n})=>Ds(n,this.name)?Ds(n,this.name,e)?t.unsetCallout():t.updateAttributes(this.name,e):t.setCallout(e),unsetCallout:()=>({commands:e})=>e.lift(this.name)}}});function kpe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function X3(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&X3(n)}),e}let dC=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function eM(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function fa(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Rpe="</span>",hC=e=>!!e.scope,Mpe=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class Bpe{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=eM(t)}openNode(t){if(!hC(t))return;const n=Mpe(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){hC(t)&&(this.buffer+=Rpe)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const pC=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class iE{constructor(){this.rootNode=pC(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=pC({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{iE._collapse(n)}))}}class Ipe extends iE{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Bpe(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function $d(e){return e?typeof e=="string"?e:e.source:null}function tM(e){return Gl("(?=",e,")")}function Lpe(e){return Gl("(?:",e,")*")}function Ype(e){return Gl("(?:",e,")?")}function Gl(...e){return e.map(t=>$d(t)).join("")}function Hpe(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function oE(...e){return"("+(Hpe(e).capture?"":"?:")+e.map(t=>$d(t)).join("|")+")"}function nM(e){return new RegExp(e.toString()+"|").exec("").length-1}function Zpe(e,t){const n=e&&e.exec(t);return n&&n.index===0}const Ppe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function sE(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=$d(r),s="";for(;o.length>0;){const a=Ppe.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&n++)}return s}).map(r=>`(${r})`).join(t)}const $pe=/\b\B/,rM="[a-zA-Z]\\w*",aE="[a-zA-Z_]\\w*",iM="\\b\\d+(\\.\\d+)?",oM="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",sM="\\b(0b[01]+)",Upe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zpe=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Gl(t,/.*\b/,e.binary,/\b.*/)),fa({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Ud={begin:"\\\\[\\s\\S]",relevance:0},Vpe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ud]},jpe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ud]},Gpe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},l1=function(e,t,n={}){const r=fa({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=oE("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Gl(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},qpe=l1("//","$"),Wpe=l1("/\\*","\\*/"),Kpe=l1("#","$"),Qpe={scope:"number",begin:iM,relevance:0},Jpe={scope:"number",begin:oM,relevance:0},Xpe={scope:"number",begin:sM,relevance:0},efe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ud,{begin:/\[/,end:/\]/,relevance:0,contains:[Ud]}]},tfe={scope:"title",begin:rM,relevance:0},nfe={scope:"title",begin:aE,relevance:0},rfe={begin:"\\.\\s*"+aE,relevance:0},ife=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var ip=Object.freeze({__proto__:null,APOS_STRING_MODE:Vpe,BACKSLASH_ESCAPE:Ud,BINARY_NUMBER_MODE:Xpe,BINARY_NUMBER_RE:sM,COMMENT:l1,C_BLOCK_COMMENT_MODE:Wpe,C_LINE_COMMENT_MODE:qpe,C_NUMBER_MODE:Jpe,C_NUMBER_RE:oM,END_SAME_AS_BEGIN:ife,HASH_COMMENT_MODE:Kpe,IDENT_RE:rM,MATCH_NOTHING_RE:$pe,METHOD_GUARD:rfe,NUMBER_MODE:Qpe,NUMBER_RE:iM,PHRASAL_WORDS_MODE:Gpe,QUOTE_STRING_MODE:jpe,REGEXP_MODE:efe,RE_STARTERS_RE:Upe,SHEBANG:zpe,TITLE_MODE:tfe,UNDERSCORE_IDENT_RE:aE,UNDERSCORE_TITLE_MODE:nfe});function ofe(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function sfe(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function afe(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=ofe,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function lfe(e,t){Array.isArray(e.illegal)&&(e.illegal=oE(...e.illegal))}function cfe(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function ufe(e,t){e.relevance===void 0&&(e.relevance=1)}const dfe=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Gl(n.beforeMatch,tM(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},hfe=["of","and","for","in","not","or","if","then","parent","list","value"],pfe="keyword";function aM(e,t,n=pfe){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,aM(e[o],t,o))}),r;function i(o,s){t&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");r[l[0]]=[o,ffe(l[0],l[1])]})}}function ffe(e,t){return t?Number(t):mfe(e)?0:1}function mfe(e){return hfe.includes(e.toLowerCase())}const fC={},xl=e=>{console.error(e)},mC=(e,...t)=>{console.log(`WARN: ${e}`,...t)},fc=(e,t)=>{fC[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),fC[`${e}/${t}`]=!0)},cm=new Error;function lM(e,t,{key:n}){let r=0;const i=e[n],o={},s={};for(let a=1;a<=t.length;a++)s[a+r]=i[a],o[a+r]=!0,r+=nM(t[a-1]);e[n]=s,e[n]._emit=o,e[n]._multi=!0}function gfe(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw xl("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),cm;if(typeof e.beginScope!="object"||e.beginScope===null)throw xl("beginScope must be object"),cm;lM(e,e.begin,{key:"beginScope"}),e.begin=sE(e.begin,{joinWith:""})}}function Tfe(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw xl("skip, excludeEnd, returnEnd not compatible with endScope: {}"),cm;if(typeof e.endScope!="object"||e.endScope===null)throw xl("endScope must be object"),cm;lM(e,e.end,{key:"endScope"}),e.end=sE(e.end,{joinWith:""})}}function bfe(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function Afe(e){bfe(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),gfe(e),Tfe(e)}function yfe(e){function t(s,a){return new RegExp($d(s),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=nM(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=t(sE(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((d,h)=>h>0&&d!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new n;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(s){const a=new r;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[sfe,cfe,Afe,dfe].forEach(u=>u(s,a)),e.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[afe,lfe,ufe].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=aM(s.keywords,e.case_insensitive)),l.keywordPatternRe=t(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=t(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=t(l.end)),l.terminatorEnd=$d(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=t(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return Efe(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=i(l),l}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return e.classNameAliases=fa(e.classNameAliases||{}),o(e)}function cM(e){return e?e.endsWithParent||cM(e.starts):!1}function Efe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return fa(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:cM(e)?fa(e,{starts:e.starts?fa(e.starts):null}):Object.isFrozen(e)?fa(e):e}var vfe="11.10.0";class Dfe extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const yT=eM,gC=fa,TC=Symbol("nomatch"),Sfe=7,uM=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ipe};function l(G){return a.noHighlightRe.test(G)}function c(G){let ie=G.className+" ";ie+=G.parentNode?G.parentNode.className:"";const ce=a.languageDetectRe.exec(ie);if(ce){const De=U(ce[1]);return De||(mC(o.replace("{}",ce[1])),mC("Falling back to no-highlight mode for this block.",G)),De?ce[1]:"no-highlight"}return ie.split(/\s+/).find(De=>l(De)||U(De))}function u(G,ie,ce){let De="",Oe="";typeof ie=="object"?(De=G,ce=ie.ignoreIllegals,Oe=ie.language):(fc("10.7.0","highlight(lang, code, ...args) has been deprecated."),fc("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),Oe=G,De=ie),ce===void 0&&(ce=!0);const Be={code:De,language:Oe};J("before:highlight",Be);const ft=Be.result?Be.result:d(Be.language,Be.code,ce);return ft.code=Be.code,J("after:highlight",ft),ft}function d(G,ie,ce,De){const Oe=Object.create(null);function Be(Q,ne){return Q.keywords[ne]}function ft(){if(!M.keywords){Te.addText(H);return}let Q=0;M.keywordPatternRe.lastIndex=0;let ne=M.keywordPatternRe.exec(H),Ne="";for(;ne;){Ne+=H.substring(Q,ne.index);const ot=Ue.case_insensitive?ne[0].toLowerCase():ne[0],Ot=Be(M,ot);if(Ot){const[fn,nn]=Ot;if(Te.addText(Ne),Ne="",Oe[ot]=(Oe[ot]||0)+1,Oe[ot]<=Sfe&&(fe+=nn),fn.startsWith("_"))Ne+=ne[0];else{const oe=Ue.classNameAliases[fn]||fn;nt(ne[0],oe)}}else Ne+=ne[0];Q=M.keywordPatternRe.lastIndex,ne=M.keywordPatternRe.exec(H)}Ne+=H.substring(Q),Te.addText(Ne)}function bt(){if(H==="")return;let Q=null;if(typeof M.subLanguage=="string"){if(!t[M.subLanguage]){Te.addText(H);return}Q=d(M.subLanguage,H,!0,de[M.subLanguage]),de[M.subLanguage]=Q._top}else Q=p(H,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(fe+=Q.relevance),Te.__addSublanguage(Q._emitter,Q.language)}function et(){M.subLanguage!=null?bt():ft(),H=""}function nt(Q,ne){Q!==""&&(Te.startScope(ne),Te.addText(Q),Te.endScope())}function rt(Q,ne){let Ne=1;const ot=ne.length-1;for(;Ne<=ot;){if(!Q._emit[Ne]){Ne++;continue}const Ot=Ue.classNameAliases[Q[Ne]]||Q[Ne],fn=ne[Ne];Ot?nt(fn,Ot):(H=fn,ft(),H=""),Ne++}}function Dt(Q,ne){return Q.scope&&typeof Q.scope=="string"&&Te.openNode(Ue.classNameAliases[Q.scope]||Q.scope),Q.beginScope&&(Q.beginScope._wrap?(nt(H,Ue.classNameAliases[Q.beginScope._wrap]||Q.beginScope._wrap),H=""):Q.beginScope._multi&&(rt(Q.beginScope,ne),H="")),M=Object.create(Q,{parent:{value:M}}),M}function jt(Q,ne,Ne){let ot=Zpe(Q.endRe,Ne);if(ot){if(Q["on:end"]){const Ot=new dC(Q);Q["on:end"](ne,Ot),Ot.isMatchIgnored&&(ot=!1)}if(ot){for(;Q.endsParent&&Q.parent;)Q=Q.parent;return Q}}if(Q.endsWithParent)return jt(Q.parent,ne,Ne)}function _e(Q){return M.matcher.regexIndex===0?(H+=Q[0],1):(St=!0,0)}function ht(Q){const ne=Q[0],Ne=Q.rule,ot=new dC(Ne),Ot=[Ne.__beforeBegin,Ne["on:begin"]];for(const fn of Ot)if(fn&&(fn(Q,ot),ot.isMatchIgnored))return _e(ne);return Ne.skip?H+=ne:(Ne.excludeBegin&&(H+=ne),et(),!Ne.returnBegin&&!Ne.excludeBegin&&(H=ne)),Dt(Ne,Q),Ne.returnBegin?0:ne.length}function it(Q){const ne=Q[0],Ne=ie.substring(Q.index),ot=jt(M,Q,Ne);if(!ot)return TC;const Ot=M;M.endScope&&M.endScope._wrap?(et(),nt(ne,M.endScope._wrap)):M.endScope&&M.endScope._multi?(et(),rt(M.endScope,Q)):Ot.skip?H+=ne:(Ot.returnEnd||Ot.excludeEnd||(H+=ne),et(),Ot.excludeEnd&&(H=ne));do M.scope&&Te.closeNode(),!M.skip&&!M.subLanguage&&(fe+=M.relevance),M=M.parent;while(M!==ot.parent);return ot.starts&&Dt(ot.starts,Q),Ot.returnEnd?0:ne.length}function Bt(){const Q=[];for(let ne=M;ne!==Ue;ne=ne.parent)ne.scope&&Q.unshift(ne.scope);Q.forEach(ne=>Te.openNode(ne))}let $t={};function wn(Q,ne){const Ne=ne&&ne[0];if(H+=Q,Ne==null)return et(),0;if($t.type==="begin"&&ne.type==="end"&&$t.index===ne.index&&Ne===""){if(H+=ie.slice(ne.index,ne.index+1),!i){const ot=new Error(`0 width match regex (${G})`);throw ot.languageName=G,ot.badRule=$t.rule,ot}return 1}if($t=ne,ne.type==="begin")return ht(ne);if(ne.type==="illegal"&&!ce){const ot=new Error('Illegal lexeme "'+Ne+'" for mode "'+(M.scope||"<unnamed>")+'"');throw ot.mode=M,ot}else if(ne.type==="end"){const ot=it(ne);if(ot!==TC)return ot}if(ne.type==="illegal"&&Ne==="")return 1;if(lt>1e5&&lt>ne.index*3)throw new Error("potential infinite loop, way more iterations than matches");return H+=Ne,Ne.length}const Ue=U(G);if(!Ue)throw xl(o.replace("{}",G)),new Error('Unknown language: "'+G+'"');const I=yfe(Ue);let j="",M=De||I;const de={},Te=new a.__emitter(a);Bt();let H="",fe=0,Ie=0,lt=0,St=!1;try{if(Ue.__emitTokens)Ue.__emitTokens(ie,Te);else{for(M.matcher.considerAll();;){lt++,St?St=!1:M.matcher.considerAll(),M.matcher.lastIndex=Ie;const Q=M.matcher.exec(ie);if(!Q)break;const ne=ie.substring(Ie,Q.index),Ne=wn(ne,Q);Ie=Q.index+Ne}wn(ie.substring(Ie))}return Te.finalize(),j=Te.toHTML(),{language:G,value:j,relevance:fe,illegal:!1,_emitter:Te,_top:M}}catch(Q){if(Q.message&&Q.message.includes("Illegal"))return{language:G,value:yT(ie),illegal:!0,relevance:0,_illegalBy:{message:Q.message,index:Ie,context:ie.slice(Ie-100,Ie+100),mode:Q.mode,resultSoFar:j},_emitter:Te};if(i)return{language:G,value:yT(ie),illegal:!1,relevance:0,errorRaised:Q,_emitter:Te,_top:M};throw Q}}function h(G){const ie={value:yT(G),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return ie._emitter.addText(G),ie}function p(G,ie){ie=ie||a.languages||Object.keys(t);const ce=h(G),De=ie.filter(U).filter(z).map(et=>d(et,G,!1));De.unshift(ce);const Oe=De.sort((et,nt)=>{if(et.relevance!==nt.relevance)return nt.relevance-et.relevance;if(et.language&&nt.language){if(U(et.language).supersetOf===nt.language)return 1;if(U(nt.language).supersetOf===et.language)return-1}return 0}),[Be,ft]=Oe,bt=Be;return bt.secondBest=ft,bt}function m(G,ie,ce){const De=ie&&n[ie]||ce;G.classList.add("hljs"),G.classList.add(`language-${De}`)}function b(G){let ie=null;const ce=c(G);if(l(ce))return;if(J("before:highlightElement",{el:G,language:ce}),G.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",G);return}if(G.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(G)),a.throwUnescapedHTML))throw new Dfe("One of your code blocks includes unescaped HTML.",G.innerHTML);ie=G;const De=ie.textContent,Oe=ce?u(De,{language:ce,ignoreIllegals:!0}):p(De);G.innerHTML=Oe.value,G.dataset.highlighted="yes",m(G,ce,Oe.language),G.result={language:Oe.language,re:Oe.relevance,relevance:Oe.relevance},Oe.secondBest&&(G.secondBest={language:Oe.secondBest.language,relevance:Oe.secondBest.relevance}),J("after:highlightElement",{el:G,result:Oe,text:De})}function A(G){a=gC(a,G)}const v=()=>{S(),fc("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function D(){S(),fc("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let C=!1;function S(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(a.cssSelector).forEach(b)}function O(){C&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function k(G,ie){let ce=null;try{ce=ie(e)}catch(De){if(xl("Language definition for '{}' could not be registered.".replace("{}",G)),i)xl(De);else throw De;ce=s}ce.name||(ce.name=G),t[G]=ce,ce.rawDefinition=ie.bind(null,e),ce.aliases&&w(ce.aliases,{languageName:G})}function Z(G){delete t[G];for(const ie of Object.keys(n))n[ie]===G&&delete n[ie]}function W(){return Object.keys(t)}function U(G){return G=(G||"").toLowerCase(),t[G]||t[n[G]]}function w(G,{languageName:ie}){typeof G=="string"&&(G=[G]),G.forEach(ce=>{n[ce.toLowerCase()]=ie})}function z(G){const ie=U(G);return ie&&!ie.disableAutodetect}function V(G){G["before:highlightBlock"]&&!G["before:highlightElement"]&&(G["before:highlightElement"]=ie=>{G["before:highlightBlock"](Object.assign({block:ie.el},ie))}),G["after:highlightBlock"]&&!G["after:highlightElement"]&&(G["after:highlightElement"]=ie=>{G["after:highlightBlock"](Object.assign({block:ie.el},ie))})}function L(G){V(G),r.push(G)}function se(G){const ie=r.indexOf(G);ie!==-1&&r.splice(ie,1)}function J(G,ie){const ce=G;r.forEach(function(De){De[ce]&&De[ce](ie)})}function Se(G){return fc("10.7.0","highlightBlock will be removed entirely in v12.0"),fc("10.7.0","Please use highlightElement now."),b(G)}Object.assign(e,{highlight:u,highlightAuto:p,highlightAll:S,highlightElement:b,highlightBlock:Se,configure:A,initHighlighting:v,initHighlightingOnLoad:D,registerLanguage:k,unregisterLanguage:Z,listLanguages:W,getLanguage:U,registerAliases:w,autoDetection:z,inherit:gC,addPlugin:L,removePlugin:se}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=vfe,e.regex={concat:Gl,lookahead:tM,either:oE,optional:Ype,anyNumberOfTimes:Lpe};for(const G in ip)typeof ip[G]=="object"&&X3(ip[G]);return Object.assign(e,ip),e},kc=uM({});kc.newInstance=()=>uM({});var wfe=kc;kc.HighlightJS=kc,kc.default=kc;var _fe=kpe(wfe);function dM(e,t=[]){return e.map(n=>{const r=[...t,...n.properties?n.properties.className:[]];return n.children?dM(n.children,r):{text:n.value,classes:r}}).flat()}function bC(e){return e.value||e.children||[]}function Cfe(e){return!!_fe.getLanguage(e)}function AC({doc:e,name:t,lowlight:n,defaultLanguage:r}){const i=[];return zT(e,o=>o.type.name===t).forEach(o=>{var s;let a=o.pos+1;const l=o.node.attrs.language||r,c=n.listLanguages(),u=l&&(c.includes(l)||Cfe(l)||!((s=n.registered)===null||s===void 0)&&s.call(n,l))?bC(n.highlight(l,o.node.textContent)):bC(n.highlightAuto(o.node.textContent));dM(u).forEach(d=>{const h=a+d.text.length;if(d.classes.length){const p=xn.inline(a,h,{class:d.classes.join(" ")});i.push(p)}a=h})}),Rt.create(e,i)}function Nfe(e){return typeof e=="function"}function Ffe({name:e,lowlight:t,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(i=>Nfe(t[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new kt({key:new Lt("lowlight"),state:{init:(i,{doc:o})=>AC({doc:o,name:e,lowlight:t,defaultLanguage:n}),apply:(i,o,s,a)=>{const l=s.selection.$head.parent.type.name,c=a.selection.$head.parent.type.name,u=zT(s.doc,h=>h.type.name===e),d=zT(a.doc,h=>h.type.name===e);return i.docChanged&&([l,c].includes(e)||d.length!==u.length||i.steps.some(h=>h.from!==void 0&&h.to!==void 0&&u.some(p=>p.pos>=h.from&&p.pos+p.node.nodeSize<=h.to)))?AC({doc:i.doc,name:e,lowlight:t,defaultLanguage:n}):o.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}const Ofe=Uy.extend({addOptions(){var e;return{...(e=this.parent)===null||e===void 0?void 0:e.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},addProseMirrorPlugins(){var e;return[...((e=this.parent)===null||e===void 0?void 0:e.call(this))||[],Ffe({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),br=[];for(let e=0;e<256;++e)br.push((e+256).toString(16).slice(1));function xfe(e,t=0){return(br[e[t+0]]+br[e[t+1]]+br[e[t+2]]+br[e[t+3]]+"-"+br[e[t+4]]+br[e[t+5]]+"-"+br[e[t+6]]+br[e[t+7]]+"-"+br[e[t+8]]+br[e[t+9]]+"-"+br[e[t+10]]+br[e[t+11]]+br[e[t+12]]+br[e[t+13]]+br[e[t+14]]+br[e[t+15]]).toLowerCase()}let ET;const kfe=new Uint8Array(16);function Rfe(){if(!ET){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ET=crypto.getRandomValues.bind(crypto)}return ET(kfe)}const Mfe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),yC={randomUUID:Mfe};function Bfe(e,t,n){if(yC.randomUUID&&!e)return yC.randomUUID();e=e||{};const r=e.random??e.rng?.()??Rfe();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,xfe(r)}const Ife={name:"CodeBracesIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Lfe=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon code-braces-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Yfe=[],Hfe=Ee(Ife,Lfe,Yfe,!1,null,null);const Zfe=Hfe.exports,Pfe={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $fe=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ufe=[],zfe=Ee(Pfe,$fe,Ufe,!1,null,null);const Vfe=zfe.exports,jfe={name:"MarkerIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Gfe=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon marker-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M18.5,1.15C17.97,1.15 17.46,1.34 17.07,1.73L11.26,7.55L16.91,13.2L22.73,7.39C23.5,6.61 23.5,5.35 22.73,4.56L19.89,1.73C19.5,1.34 19,1.15 18.5,1.15M10.3,8.5L4.34,14.46C3.56,15.24 3.56,16.5 4.36,17.31C3.14,18.54 1.9,19.77 0.67,21H6.33L7.19,20.14C7.97,20.9 9.22,20.89 10,20.12L15.95,14.16"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},qfe=[],Wfe=Ee(jfe,Gfe,qfe,!1,null,null);const Kfe=Wfe.exports,Qfe={name:"ViewSplitVerticalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Jfe=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon view-split-vertical-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13,5H21V19H13V5M3,5H11V7H3V5M3,11V9H11V11H3M3,19V17H11V19H3M3,15V13H11V15H3Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Xfe=[],eme=Ee(Qfe,Jfe,Xfe,!1,null,null);const tme=eme.exports,nme={name:"CodeBlockView",components:{MarkerIcon:Kfe,ContentCopy:G3,Help:dx,Check:cx,EyeOutlineIcon:Vfe,ViewSplitVertical:tme,CodeBraces:Zfe,NcActions:Os,NcActionButton:Ha,NcActionInput:Nx,NcActionLink:jx,NcActionSeparator:XA,NcLoadingIcon:Vd,NodeViewWrapper:zo,NodeViewContent:Pa},mixins:[W3],props:{node:{type:Object,required:!0},editor:{type:Object,required:!0}},setup(){return{isDarkTheme:sy(),mermaid:null,t:xe}},data(){return{isEditable:!1,viewMode:"preview",targetId:"mermaid-view-"+Bfe()}},computed:{hasCode(){return this.node?.textContent},type(){return this.node?.attrs?.language||""},supportPreview(){return["mermaid"].includes(this.type)},showCode(){return!this.supportPreview||this.viewMode==="code"||this.viewMode==="side-by-side"},showPreview(){return this.supportPreview&&(this.viewMode==="preview"||this.viewMode==="side-by-side")},defaultMode(){return this.isEditable?"side-by-side":this.supportPreview()?"code":"preview"},renderMermaidDebounced(){return th(this.renderMermaid,250)}},watch:{"node.textContent":{handler(){this.renderMermaidDebounced()},immediate:!0}},beforeMount(){this.isEditable=this.editor.isEditable,this.editor.on("update",({editor:e})=>{this.isEditable=e.isEditable})},methods:{async copyCode(){await this.copyToClipboard(this.node?.textContent)},updateLanguage(e){this.updateAttributes({language:e.target.value})},async renderMermaid(){if(!this.supportPreview){this.viewMode="code";return}const e=this.node?.textContent||"";e.trim()===""&&(this.viewMode=this.defaultMode,this.$refs.preview.innerHTML="");try{this.mermaid===null&&(this.mermaid=(await O0(async()=>{const{default:r}=await import("./mermaid.core-DG2R2EW0.chunk.mjs").then(i=>i.bB);return{default:r}},__vite__mapDeps([23,1,2,6,3,7,8]),import.meta.url)).default,this.mermaid.initialize({startOnLoad:!1,theme:this.isDarkTheme?"dark":"default"})),await this.mermaid.parse(e);const{svg:t}=await this.mermaid.render(this.targetId,e),n=document.getElementById(this.targetId);n&&(n.style.display="none"),this.$refs.preview.innerHTML=t}catch(t){console.debug("Invalid mermaid source",t),this.viewMode==="preview"&&(this.viewMode=this.isEditable?"side-by-side":"code")}}}};var rme=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{staticClass:"code-block",attrs:{as:"div","data-mode":e.viewMode}},[t("div",{staticClass:"code-block-header"},[t("div",{staticClass:"view-switch"},[t("NcActions",{attrs:{"aria-label":e.t("text","Copy code block")}},[e.hasCode?t("NcActionButton",{attrs:{"data-cy":"copy-code","aria-label":e.t("text","Copy code")},on:{click:e.copyCode},scopedSlots:e._u([{key:"icon",fn:function(){return[e.copySuccess?t("Check",{attrs:{size:20}}):e.copyLoading?t("NcLoadingIcon",{attrs:{size:20}}):t("ContentCopy",{attrs:{size:20}})]},proxy:!0}],null,!1,2104404999)}):e._e()],1),e.isEditable?t("NcActions",{attrs:{"data-cy":"code-action-group","aria-label":e.t("text","Code block options")}},[t("NcActionInput",{attrs:{label:e.t("text","Code block language"),value:e.type,"show-trailing-button":!1,placeholder:e.t("text","e.g. php, javascript, json…")},on:{input:e.updateLanguage},scopedSlots:e._u([{key:"icon",fn:function(){return[t("MarkerIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,3768505569)}),e.supportPreview?t("NcActionSeparator"):e._e(),e.supportPreview?t("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(n){e.viewMode="code"}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CodeBraces",{attrs:{size:20}})]},proxy:!0}],null,!1,2428748609)},[e._v(" "+e._s(e.t("text","Source code"))+" ")]):e._e(),e.supportPreview?t("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(n){e.viewMode="preview"}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("EyeOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,1033454938)},[e._v(" "+e._s(e.t("text","Diagram"))+" ")]):e._e(),e.supportPreview?t("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(n){e.viewMode="side-by-side"}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ViewSplitVertical",{attrs:{size:20}})]},proxy:!0}],null,!1,3354721413)},[e._v(" "+e._s(e.t("text","Both"))+" ")]):e._e(),e.supportPreview?t("NcActionSeparator"):e._e(),e.supportPreview?t("NcActionLink",{attrs:{href:"https://mermaid.js.org/intro/",target:"_blank"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Help",{attrs:{size:20}})]},proxy:!0}],null,!1,802739225)},[e._v(" "+e._s(e.t("text","Mermaid documentation"))+" ")]):e._e()],1):e._e()],1)]),t("div",{class:{"split-view":e.showCode&&e.showPreview}},[t("pre",{directives:[{name:"show",rawName:"v-show",value:e.showCode,expression:"showCode"}],staticClass:"split-view__code"},[t("NodeViewContent",{attrs:{spellcheck:"false",as:"code",contenteditable:e.isEditable}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showPreview,expression:"showPreview"}],ref:"preview",staticClass:"split-view__preview",attrs:{contenteditable:!1}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:e.targetId,contenteditable:!1}})])])},ime=[],ome=Ee(nme,rme,ime,!1,null,"223fd069");const sme=ome.exports,ame=Ofe.extend({parseHTML(){return[{tag:"pre",preserveWhitespace:"full",getContent:(e,t)=>{const n=e.textContent.replace(/\n$/,""),r=n?[t.text(n)]:[];return t.nodes.codeBlock.create(null,r)}}]},toMarkdown(e,t,n,r){t.attrs.params=t.attrs.language;const i=t.textContent.match(/`{3,}/gm),o=i?i.sort().slice(-1)[0]+"`":"```",s=t.attrs.params!=="plaintext"?t.attrs.params:"";e.write(o+(s||"")+`
`),e.text(t.textContent,!1),e.ensureNewLine(),e.write(o),e.closeBlock(t)},addNodeView(){return Vo(sme)},addKeyboardShortcuts(){return d3}}),lme={name:"DetailsContent",components:{NodeViewContent:Pa,NodeViewWrapper:zo}};var cme=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{staticClass:"details-content",attrs:{as:"div"}},[t("NodeViewContent")],1)},ume=[],dme=Ee(lme,cme,ume,!1,null,null);const hme=dme.exports,pme=bn.create({name:"detailsContent",content:"block+",defining:!0,selectable:!1,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`div[data-type="${this.name}"]`}]},renderHTML({HTMLAttributes:e}){return["div",Ft(this.options.HTMLAttributes,e,{class:"details-content"}),0]},addNodeView(){return Vo(hme)},toMarkdown:(e,t)=>{e.renderContent(t),e.ensureNewLine()}}),fme=bn.create({name:"detailsSummary",content:"text*",defining:!0,selectable:!1,isolating:!0,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"summary"}]},renderHTML({HTMLAttributes:e}){return["summary",Ft(this.options.HTMLAttributes,e),0]},toMarkdown:(e,t)=>{e.write("<summary>"),e.renderInline(t),e.write(`</summary>
`)}}),mme={name:"TriangleSmallDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var gme=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon triangle-small-down-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8 9H16L12 16"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Tme=[],bme=Ee(mme,gme,Tme,!1,null,null);const Ame=bme.exports,yme={name:"DetailsView",components:{NcButton:_i,NodeViewContent:Pa,NodeViewWrapper:zo,TriangleSmallDownIcon:Ame},props:{node:{type:Object,required:!0},updateAttributes:{type:Function,required:!0}},data(){return{open:!1}},watch:{"node.attrs.openDetails"(){this.openByAttr()}},beforeMount(){this.openByAttr()},methods:{toggleOpen(){this.open=!this.open},openByAttr(){this.node.attrs.openDetails&&(this.open=!0,this.updateAttributes({openDetails:!1}))}}};var Eme=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{staticClass:"details",attrs:{"data-text-el":"details",as:"div"}},[t("NcButton",{attrs:{type:"tertiary",size:"small"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TriangleSmallDownIcon",{staticClass:"button-open",class:{open:e.open},attrs:{size:20},on:{click:e.toggleOpen}})]},proxy:!0}])}),t("NodeViewContent",{staticClass:"details-container",class:{"is-hidden":!e.open}})],1)},vme=[],Dme=Ee(yme,Eme,vme,!1,null,"65c624a0");const Sme=Dme.exports;function EC(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(r.type===t.nodes.details)return{pos:n>0?e.before(n):0,node:r}}}function vC(e,t){const n=[];return e.descendants((r,i)=>{if(r.type===t)return n.push(r),!1}),n.length>0?n[0]:null}const wme=bn.create({name:"details",content:"detailsSummary detailsContent",group:"block",defining:!0,isolating:!0,allowGapCursor:!1,addExtensions(){return[pme,fme]},addOptions(){return{HTMLAttributes:{}}},addAttributes(){return{openDetails:{default:!1}}},parseHTML(){return[{tag:"details"}]},renderHTML({HTMLAttributes:e}){return["details",Ft(this.options.HTMLAttributes,e),0]},addNodeView(){return Vo(Sme)},toMarkdown:(e,t)=>{e.write(`<details>
`),e.renderContent(t),e.closeBlock(t),e.ensureNewLine(),e.write("</details>"),e.ensureNewLine()},addCommands(){return{setDetails:()=>({commands:e,state:t,chain:n})=>{const{schema:r,selection:i}=t,{$from:o,$to:s}=i,a=o.blockRange(s);if(!a)return!1;const l=t.doc.slice(a.start,a.end);if(!r.nodes.detailsContent.contentMatch.matchFragment(l.content))return!1;const c=l.toJSON()?.content||[];return n().insertContentAt({from:a.start,to:a.end},{type:this.name,attrs:{openDetails:!0},content:[{type:"detailsSummary"},{type:"detailsContent",content:c}]}).setTextSelection(a.start+2).run()},unsetDetails:()=>({state:e,chain:t})=>{const{schema:n,selection:r}=e,i=EC(r.$from,n);if(!i)return!1;const o=vC(i.node,n.nodes.detailsContent);if(!o)return!1;const s=o.content.toJSON(),a={from:i.pos,to:i.pos+i.node.nodeSize};return t().insertContentAt(a,s).setTextSelection(i.pos+1).run()},toggleDetails:()=>({commands:e,state:t})=>Ds(t,this.name)?e.unsetDetails():e.setDetails()}},addKeyboardShortcuts(){return{Enter:({editor:e})=>{const{state:t}=e,{schema:n,selection:r}=t,{$from:i}=r;if(i.parent.type!==n.nodes.detailsSummary)return!1;const o=EC(i,n);return o.node.attrs.openDetails||e.commands.updateAttributes("details",{openDetails:!0}),!vC(o.node,n.nodes.detailsContent)||!t.doc.nodeAt(i.after())?.type===n.nodes.detailsContent?!1:e.commands.setTextSelection(i.after())},Backspace:({editor:e})=>{const{state:t}=e,{schema:n,selection:r}=t,{$from:i}=r;return i.parent.type!==n.nodes.detailsSummary||i.parent.textContent!==""?!1:e.commands.unsetDetails()}}}});var Ub,zb;if(typeof WeakMap<"u"){let e=new WeakMap;Ub=t=>e.get(t),zb=(t,n)=>(e.set(t,n),n)}else{const e=[];let t=0;Ub=n=>{for(let r=0;r<e.length;r+=2)if(e[r]==n)return e[r+1]},zb=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var Pn=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const r=t%this.width,i=t/this.width|0;let o=r+1,s=i+1;for(let a=1;o<this.width&&this.map[t+a]==n;a++)o++;for(let a=1;s<this.height&&this.map[t+this.width*a]==n;a++)s++;return{left:r,top:i,right:o,bottom:s}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){const{left:r,right:i,top:o,bottom:s}=this.findCell(e);return t=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(e,t){const{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:s,right:a,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,c)}}cellsInRect(e){const t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){const o=r*this.width+i,s=this.map[o];n[s]||(n[s]=!0,!(i==e.left&&i&&this.map[o-1]==s||r==e.top&&r&&this.map[o-this.width]==s)&&t.push(s))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){const o=i+n.child(r).nodeSize;if(r==e){let s=t+e*this.width;const a=(e+1)*this.width;for(;s<a&&this.map[s]<i;)s++;return s==a?o-1:this.map[s]}i=o}}static get(e){return Ub(e)||zb(e,_me(e))}};function _me(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const t=Cme(e),n=e.childCount,r=[];let i=0,o=null;const s=[];for(let c=0,u=t*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const d=e.child(c);u++;for(let m=0;;m++){for(;i<r.length&&r[i]!=0;)i++;if(m==d.childCount)break;const b=d.child(m),{colspan:A,rowspan:v,colwidth:D}=b.attrs;for(let C=0;C<v;C++){if(C+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:v-C});break}const S=i+C*t;for(let O=0;O<A;O++){r[S+O]==0?r[S+O]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:A-O});const k=D&&D[O];if(k){const Z=(S+O)%t*2,W=s[Z];W==null||W!=k&&s[Z+1]==1?(s[Z]=k,s[Z+1]=1):W==k&&s[Z+1]++}}}i+=A,u+=b.nodeSize}const h=(c+1)*t;let p=0;for(;i<h;)r[i++]==0&&p++;p&&(o||(o=[])).push({type:"missing",row:c,n:p}),u++}(t===0||n===0)&&(o||(o=[])).push({type:"zero_sized"});const a=new Pn(t,n,r,o);let l=!1;for(let c=0;!l&&c<s.length;c+=2)s[c]!=null&&s[c+1]<n&&(l=!0);return l&&Nme(a,s,e),a}function Cme(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){const i=e.child(r);let o=0;if(n)for(let s=0;s<r;s++){const a=e.child(s);for(let l=0;l<a.childCount;l++){const c=a.child(l);s+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let s=0;s<i.childCount;s++){const a=i.child(s);o+=a.attrs.colspan,a.attrs.rowspan>1&&(n=!0)}t==-1?t=o:t!=o&&(t=Math.max(t,o))}return t}function Nme(e,t,n){e.problems||(e.problems=[]);const r={};for(let i=0;i<e.map.length;i++){const o=e.map[i];if(r[o])continue;r[o]=!0;const s=n.nodeAt(o);if(!s)throw new RangeError(`No cell with offset ${o} found`);let a=null;const l=s.attrs;for(let c=0;c<l.colspan;c++){const u=(i+c)%e.width,d=t[u*2];d!=null&&(!l.colwidth||l.colwidth[c]!=d)&&((a||(a=Fme(l)))[c]=d)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}function Fme(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function Br(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}var aa=new Lt("selectingCells");function _u(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return e.node(0).resolve(e.before(t+1));return null}function Ome(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if(n==="cell"||n==="header_cell")return e.node(t)}return null}function hi(e){const t=e.selection.$head;for(let n=t.depth;n>0;n--)if(t.node(n).type.spec.tableRole=="row")return!0;return!1}function ah(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&t.node.type.spec.tableRole=="cell")return t.$anchor;const n=_u(t.$head)||xme(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function xme(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const r=t.type.spec.tableRole;if(r=="cell"||r=="header_cell")return e.doc.resolve(n-t.nodeSize)}}function Vb(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function hM(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function lE(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function pM(e,t,n){const r=e.node(-1),i=Pn.get(r),o=e.start(-1),s=i.nextCell(e.pos-o,t,n);return s==null?null:e.node(0).resolve(o+s)}function Pl(e,t,n=1){const r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function fM(e,t,n=1){const r={...e,colspan:e.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(t,0,0)}return r}function kme(e,t,n){const r=Br(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0}var Sn=class ls extends ct{constructor(t,n=t){const r=t.node(-1),i=Pn.get(r),o=t.start(-1),s=i.rectBetween(t.pos-o,n.pos-o),a=t.node(0),l=i.cellsInRect(s).filter(u=>u!=n.pos-o);l.unshift(n.pos-o);const c=l.map(u=>{const d=r.nodeAt(u);if(!d)throw RangeError(`No cell with offset ${u} found`);const h=o+u+1;return new UN(a.resolve(h),a.resolve(h+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=n}map(t,n){const r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(Vb(r)&&Vb(i)&&lE(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?ls.rowSelection(r,i):o&&this.isColSelection()?ls.colSelection(r,i):new ls(r,i)}return Ke.between(r,i)}content(){const t=this.$anchorCell.node(-1),n=Pn.get(t),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},s=[];for(let l=i.top;l<i.bottom;l++){const c=[];for(let u=l*n.width+i.left,d=i.left;d<i.right;d++,u++){const h=n.map[u];if(o[h])continue;o[h]=!0;const p=n.findCell(h);let m=t.nodeAt(h);if(!m)throw RangeError(`No cell with offset ${h} found`);const b=i.left-p.left,A=p.right-i.right;if(b>0||A>0){let v=m.attrs;if(b>0&&(v=Pl(v,0,b)),A>0&&(v=Pl(v,v.colspan-A,A)),p.left<i.left){if(m=m.type.createAndFill(v),!m)throw RangeError(`Could not create cell with attrs ${JSON.stringify(v)}`)}else m=m.type.create(v,m.content)}if(p.top<i.top||p.bottom>i.bottom){const v={...m.attrs,rowspan:Math.min(p.bottom,i.bottom)-Math.max(p.top,i.top)};p.top<i.top?m=m.type.createAndFill(v):m=m.type.create(v,m.content)}c.push(m)}s.push(t.child(l).copy(ue.from(c)))}const a=this.isColSelection()&&this.isRowSelection()?t:s;return new we(ue.from(a),1,1)}replace(t,n=we.empty){const r=t.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){const{$from:a,$to:l}=i[s],c=t.mapping.slice(r);t.replace(c.map(a.pos),c.map(l.pos),s?we.empty:n)}const o=ct.findFrom(t.doc.resolve(t.mapping.slice(r).map(this.to)),-1);o&&t.setSelection(o)}replaceWith(t,n){this.replace(t,new we(ue.from(n),0,0))}forEachCell(t){const n=this.$anchorCell.node(-1),r=Pn.get(n),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let s=0;s<o.length;s++)t(n.nodeAt(o[s]),i+o[s])}isColSelection(){const t=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(t,n)>0)return!1;const r=t+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){const r=t.node(-1),i=Pn.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.top<=a.top?(s.top>0&&(t=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new ls(t,n)}isRowSelection(){const t=this.$anchorCell.node(-1),n=Pn.get(t),r=this.$anchorCell.start(-1),i=n.colCount(this.$anchorCell.pos-r),o=n.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;const s=i+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,a)==n.width}eq(t){return t instanceof ls&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){const r=t.node(-1),i=Pn.get(r),o=t.start(-1),s=i.findCell(t.pos-o),a=i.findCell(n.pos-o),l=t.node(0);return s.left<=a.left?(s.left>0&&(t=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(n=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(t=l.resolve(o+i.map[i.width*(s.top+1)-1]))),new ls(t,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new ls(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new ls(t.resolve(n),t.resolve(r))}getBookmark(){return new Rme(this.$anchorCell.pos,this.$headCell.pos)}};Sn.prototype.visible=!1,ct.jsonID("cell",Sn);var Rme=class mM{constructor(t,n){this.anchor=t,this.head=n}map(t){return new mM(t.map(this.anchor),t.map(this.head))}resolve(t){const n=t.resolve(this.anchor),r=t.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&lE(n,r)?new Sn(n,r):ct.near(r,1)}};function Mme(e){if(!(e.selection instanceof Sn))return null;const t=[];return e.selection.forEachCell((n,r)=>{t.push(xn.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Rt.create(e.doc,t)}function Bme({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let o=t.depth;o>=0&&!(t.before(o+1)>t.start(o));o--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function Ime({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=t.depth;i>0;i--){const o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&t.parentOffset===0}function Lme(e,t,n){const r=(t||e).selection,i=(t||e).doc;let o,s;if(r instanceof We&&(s=r.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")o=Sn.create(i,r.from);else if(s=="row"){const a=i.resolve(r.from+1);o=Sn.rowSelection(a,a)}else if(!n){const a=Pn.get(r.node),l=r.from+1,c=l+a.map[a.width*a.height-1];o=Sn.create(i,l+1,c)}}else r instanceof Ke&&Bme(r)?o=Ke.create(i,r.from):r instanceof Ke&&Ime(r)&&(o=Ke.create(i,r.$from.start(),r.$from.end()));return o&&(t||(t=e.tr)).setSelection(o),t}var Yme=new Lt("fix-tables");function gM(e,t,n,r){const i=e.childCount,o=t.childCount;e:for(let s=0,a=0;s<o;s++){const l=t.child(s);for(let c=a,u=Math.min(i,s+3);c<u;c++)if(e.child(c)==l){a=c+1,n+=l.nodeSize;continue e}r(l,n),a<i&&e.child(a).sameMarkup(l)?gM(e.child(a),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function TM(e,t){let n;const r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=Hme(e,i,o,n))};return t?t.doc!=e.doc&&gM(t.doc,e.doc,0,r):e.doc.descendants(r),n}function Hme(e,t,n,r){const i=Pn.get(t);if(!i.problems)return r;r||(r=e.tr);const o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){const c=i.problems[l];if(c.type=="collision"){const u=t.nodeAt(c.pos);if(!u)continue;const d=u.attrs;for(let h=0;h<d.rowspan;h++)o[c.row+h]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,Pl(d,d.colspan-c.n,c.n))}else if(c.type=="missing")o[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=t.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}else if(c.type=="zero_sized"){const u=r.mapping.map(n);r.delete(u,u+t.nodeSize)}}let s,a;for(let l=0;l<o.length;l++)o[l]&&(s==null&&(s=l),a=l);for(let l=0,c=n+1;l<i.height;l++){const u=t.child(l),d=c+u.nodeSize,h=o[l];if(h>0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);const m=[];for(let A=0;A<h;A++){const v=Br(e.schema)[p].createAndFill();v&&m.push(v)}const b=(l==0||s==l-1)&&a==l?c+1:d-1;r.insert(r.mapping.map(b),m)}c=d}return r.setMeta(Yme,{fixTables:!0})}function Vi(e){const t=e.selection,n=ah(e),r=n.node(-1),i=n.start(-1),o=Pn.get(r);return{...t instanceof Sn?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function bM(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;kme(t,r,i+o)&&(o=i==0||i==t.width?null:0);for(let s=0;s<t.height;s++){const a=s*t.width+i;if(i>0&&i<t.width&&t.map[a-1]==t.map[a]){const l=t.map[a],c=r.nodeAt(l);e.setNodeMarkup(e.mapping.map(n+l),null,fM(c.attrs,i-t.colCount(l))),s+=c.attrs.rowspan-1}else{const l=o==null?Br(r.type.schema).cell:r.nodeAt(t.map[a+o]).type,c=t.positionAt(s,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function Zme(e,t){if(!hi(e))return!1;if(t){const n=Vi(e);t(bM(e.tr,n,n.left))}return!0}function Pme(e,t){if(!hi(e))return!1;if(t){const n=Vi(e);t(bM(e.tr,n,n.right))}return!0}function $me(e,{map:t,table:n,tableStart:r},i){const o=e.mapping.maps.length;for(let s=0;s<t.height;){const a=s*t.width+i,l=t.map[a],c=n.nodeAt(l),u=c.attrs;if(i>0&&t.map[a-1]==l||i<t.width-1&&t.map[a+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,Pl(u,i-t.colCount(l)));else{const d=e.mapping.slice(o).map(r+l);e.delete(d,d+c.nodeSize)}s+=u.rowspan}}function Ume(e,t){if(!hi(e))return!1;if(t){const n=Vi(e),r=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;$me(r,n,i),i!=n.left;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=Pn.get(o)}t(r)}return!0}function zme(e,t,n){var r;const i=Br(t.type.schema).header_cell;for(let o=0;o<e.width;o++)if(((r=t.nodeAt(e.map[o+n*e.width]))==null?void 0:r.type)!=i)return!1;return!0}function AM(e,{map:t,tableStart:n,table:r},i){var o;let s=n;for(let c=0;c<i;c++)s+=r.child(c).nodeSize;const a=[];let l=i>0?-1:0;zme(t,r,i+l)&&(l=i==0||i==t.height?null:0);for(let c=0,u=t.width*i;c<t.width;c++,u++)if(i>0&&i<t.height&&t.map[u]==t.map[u-t.width]){const d=t.map[u],h=r.nodeAt(d).attrs;e.setNodeMarkup(n+d,null,{...h,rowspan:h.rowspan+1}),c+=h.colspan-1}else{const d=l==null?Br(r.type.schema).cell:(o=r.nodeAt(t.map[u+l*t.width]))==null?void 0:o.type,h=d?.createAndFill();h&&a.push(h)}return e.insert(s,Br(r.type.schema).row.create(null,a)),e}function yM(e,t){if(!hi(e))return!1;if(t){const n=Vi(e);t(AM(e.tr,n,n.top))}return!0}function EM(e,t){if(!hi(e))return!1;if(t){const n=Vi(e);t(AM(e.tr,n,n.bottom))}return!0}function Vme(e,{map:t,table:n,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=n.child(c).nodeSize;const s=o+n.child(i).nodeSize,a=e.mapping.maps.length;e.delete(o+r,s+r);const l=new Set;for(let c=0,u=i*t.width;c<t.width;c++,u++){const d=t.map[u];if(!l.has(d)){if(l.add(d),i>0&&d==t.map[u-t.width]){const h=n.nodeAt(d).attrs;e.setNodeMarkup(e.mapping.slice(a).map(d+r),null,{...h,rowspan:h.rowspan-1}),c+=h.colspan-1}else if(i<t.height&&d==t.map[u+t.width]){const h=n.nodeAt(d),p=h.attrs,m=h.type.create({...p,rowspan:h.attrs.rowspan-1},h.content),b=t.positionAt(i+1,c,n);e.insert(e.mapping.slice(a).map(r+b),m),c+=p.colspan-1}}}}function jme(e,t){if(!hi(e))return!1;if(t){const n=Vi(e),r=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;Vme(r,n,i),i!=n.top;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw RangeError("No table found");n.table=o,n.map=Pn.get(n.table)}t(r)}return!0}function DC(e){const t=e.content;return t.childCount==1&&t.child(0).isTextblock&&t.child(0).childCount==0}function Gme({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,s=(r.bottom-1)*e+r.left,a=i+(r.right-r.left-1);for(let l=r.top;l<r.bottom;l++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[a]==n[a+1])return!0;o+=e,a+=e}for(let l=r.left;l<r.right;l++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[s]==n[s+e])return!0;i++,s++}return!1}function SC(e,t){const n=e.selection;if(!(n instanceof Sn)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=Vi(e),{map:i}=r;if(Gme(i,r))return!1;if(t){const o=e.tr,s={};let a=ue.empty,l,c;for(let u=r.top;u<r.bottom;u++)for(let d=r.left;d<r.right;d++){const h=i.map[u*i.width+d],p=r.table.nodeAt(h);if(!(s[h]||!p))if(s[h]=!0,l==null)l=h,c=p;else{DC(p)||(a=a.append(p.content));const m=o.mapping.map(h+r.tableStart);o.delete(m,m+p.nodeSize)}}if(l==null||c==null)return!0;if(o.setNodeMarkup(l+r.tableStart,null,{...fM(c.attrs,c.attrs.colspan,r.right-r.left-c.attrs.colspan),rowspan:r.bottom-r.top}),a.size){const u=l+1+c.content.size,d=DC(c)?l+1:u;o.replaceWith(d+r.tableStart,u+r.tableStart,a)}o.setSelection(new Sn(o.doc.resolve(l+r.tableStart))),t(o)}return!0}function wC(e,t){const n=Br(e.schema);return qme(({node:r})=>n[r.type.spec.tableRole])(e,t)}function qme(e){return(t,n)=>{var r;const i=t.selection;let o,s;if(i instanceof Sn){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,s=i.$anchorCell.pos}else{if(o=Ome(i.$from),!o)return!1;s=(r=_u(i.$from))==null?void 0:r.pos}if(o==null||s==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(n){let a=o.attrs;const l=[],c=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});const u=Vi(t),d=t.tr;for(let p=0;p<u.right-u.left;p++)l.push(c?{...a,colwidth:c&&c[p]?[c[p]]:null}:a);let h;for(let p=u.top;p<u.bottom;p++){let m=u.map.positionAt(p,u.left,u.table);p==u.top&&(m+=o.nodeSize);for(let b=u.left,A=0;b<u.right;b++,A++)b==u.left&&p==u.top||d.insert(h=d.mapping.map(m+u.tableStart,1),e({node:o,row:p,col:b}).createAndFill(l[A]))}d.setNodeMarkup(s,e({node:o,row:u.top,col:u.left}),l[0]),i instanceof Sn&&d.setSelection(new Sn(d.doc.resolve(i.$anchorCell.pos),h?d.doc.resolve(h):void 0)),n(d)}return!0}}function Wme(e,t){return function(n,r){if(!hi(n))return!1;const i=ah(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){const o=n.tr;n.selection instanceof Sn?n.selection.forEachCell((s,a)=>{s.attrs[e]!==t&&o.setNodeMarkup(a,null,{...s.attrs,[e]:t})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),r(o)}return!0}}function Kme(e){return function(t,n){if(!hi(t))return!1;if(n){const r=Br(t.schema),i=Vi(t),o=t.tr,s=i.map.cellsInRect(e=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(l=>i.table.nodeAt(l));for(let l=0;l<s.length;l++)a[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[l],r.cell,a[l].attrs);if(o.steps.length==0)for(let l=0;l<s.length;l++)o.setNodeMarkup(i.tableStart+s[l],r.header_cell,a[l].attrs);n(o)}return!0}}function _C(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:e=="row"?t.map.width:1,bottom:e=="column"?t.map.height:1});for(let i=0;i<r.length;i++){const o=t.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function zd(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?Kme(e):function(n,r){if(!hi(n))return!1;if(r){const i=Br(n.schema),o=Vi(n),s=n.tr,a=_C("row",o,i),l=_C("column",o,i),c=(e==="column"?a:e==="row"&&l)?1:0,u=e=="column"?{left:0,top:c,right:1,bottom:o.map.height}:e=="row"?{left:c,top:0,right:o.map.width,bottom:1}:o,d=e=="column"?l?i.cell:i.header_cell:e=="row"?a?i.cell:i.header_cell:i.cell;o.map.cellsInRect(u).forEach(h=>{const p=h+o.tableStart,m=s.doc.nodeAt(p);m&&s.setNodeMarkup(p,d,m.attrs)}),r(s)}return!0}}zd("row",{useDeprecatedLogic:!0}),zd("column",{useDeprecatedLogic:!0});var Qme=zd("cell",{useDeprecatedLogic:!0});function Jme(e,t){if(t<0){const n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(let r=e.index(-1)-1,i=e.before();r>=0;r--){const o=e.node(-1).child(r),s=o.lastChild;if(s)return i-1-s.nodeSize;i-=o.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const n=e.node(-1);for(let r=e.indexAfter(-1),i=e.after();r<n.childCount;r++){const o=n.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function CC(e){return function(t,n){if(!hi(t))return!1;const r=Jme(ah(t),e);if(r==null)return!1;if(n){const i=t.doc.resolve(r);n(t.tr.setSelection(Ke.between(i,hM(i))).scrollIntoView())}return!0}}function Xme(e,t){const n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function op(e,t){const n=e.selection;if(!(n instanceof Sn))return!1;if(t){const r=e.tr,i=Br(e.schema).cell.createAndFill().content;n.forEachCell((o,s)=>{o.content.eq(i)||r.replace(r.mapping.map(s+1),r.mapping.map(s+o.nodeSize-1),new we(i,0,0))}),r.docChanged&&t(r)}return!0}function e1e(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;t.childCount==1&&(n>0&&r>0||t.child(0).type.spec.tableRole=="table");)n--,r--,t=t.child(0).content;const i=t.child(0),o=i.type.spec.tableRole,s=i.type.schema,a=[];if(o=="row")for(let l=0;l<t.childCount;l++){let c=t.child(l).content;const u=l?0:Math.max(0,n-1),d=l<t.childCount-1?0:Math.max(0,r-1);(u||d)&&(c=jb(Br(s).row,new we(c,u,d)).content),a.push(c)}else if(o=="cell"||o=="header_cell")a.push(n||r?jb(Br(s).row,new we(t,n,r)).content:t);else return null;return t1e(s,a)}function t1e(e,t){const n=[];for(let i=0;i<t.length;i++){const o=t[i];for(let s=o.childCount-1;s>=0;s--){const{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=i;c<i+a;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(ue.empty),n[i]<r){const o=Br(e).cell.createAndFill(),s=[];for(let a=n[i];a<r;a++)s.push(o);t[i]=t[i].append(ue.from(s))}return{height:t.length,width:r,rows:t}}function jb(e,t){const n=e.createAndFill();return new tA(n).replace(0,n.content.size,t).doc}function n1e({width:e,height:t,rows:n},r,i){if(e!=r){const o=[],s=[];for(let a=0;a<n.length;a++){const l=n[a],c=[];for(let u=o[a]||0,d=0;u<r;d++){let h=l.child(d%l.childCount);u+h.attrs.colspan>r&&(h=h.type.createChecked(Pl(h.attrs,h.attrs.colspan,u+h.attrs.colspan-r),h.content)),c.push(h),u+=h.attrs.colspan;for(let p=1;p<h.attrs.rowspan;p++)o[a+p]=(o[a+p]||0)+h.attrs.colspan}s.push(ue.from(c))}n=s,e=r}if(t!=i){const o=[];for(let s=0,a=0;s<i;s++,a++){const l=[],c=n[a%t];for(let u=0;u<c.childCount;u++){let d=c.child(u);s+d.attrs.rowspan>i&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}o.push(ue.from(l))}n=o,t=i}return{width:e,height:t,rows:n}}function r1e(e,t,n,r,i,o,s){const a=e.doc.type.schema,l=Br(a);let c,u;if(i>t.width)for(let d=0,h=0;d<t.height;d++){const p=n.child(d);h+=p.nodeSize;const m=[];let b;p.lastChild==null||p.lastChild.type==l.cell?b=c||(c=l.cell.createAndFill()):b=u||(u=l.header_cell.createAndFill());for(let A=t.width;A<i;A++)m.push(b);e.insert(e.mapping.slice(s).map(h-1+r),m)}if(o>t.height){const d=[];for(let m=0,b=(t.height-1)*t.width;m<Math.max(t.width,i);m++){const A=m>=t.width?!1:n.nodeAt(t.map[b+m]).type==l.header_cell;d.push(A?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,ue.from(d)),p=[];for(let m=t.height;m<o;m++)p.push(h);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),p)}return!!(c||u)}function NC(e,t,n,r,i,o,s,a){if(s==0||s==t.height)return!1;let l=!1;for(let c=i;c<o;c++){const u=s*t.width+c,d=t.map[u];if(t.map[u-t.width]==d){l=!0;const h=n.nodeAt(d),{top:p,left:m}=t.findCell(d);e.setNodeMarkup(e.mapping.slice(a).map(d+r),null,{...h.attrs,rowspan:s-p}),e.insert(e.mapping.slice(a).map(t.positionAt(s,m,n)),h.type.createAndFill({...h.attrs,rowspan:p+h.attrs.rowspan-s})),c+=h.attrs.colspan-1}}return l}function FC(e,t,n,r,i,o,s,a){if(s==0||s==t.width)return!1;let l=!1;for(let c=i;c<o;c++){const u=c*t.width+s,d=t.map[u];if(t.map[u-1]==d){l=!0;const h=n.nodeAt(d),p=t.colCount(d),m=e.mapping.slice(a).map(d+r);e.setNodeMarkup(m,null,Pl(h.attrs,s-p,h.attrs.colspan-(s-p))),e.insert(m+h.nodeSize,h.type.createAndFill(Pl(h.attrs,0,s-p))),c+=h.attrs.rowspan-1}}return l}function xC(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc;if(!o)throw new Error("No table found");let s=Pn.get(o);const{top:a,left:l}=r,c=l+i.width,u=a+i.height,d=e.tr;let h=0;function p(){if(o=n?d.doc.nodeAt(n-1):d.doc,!o)throw new Error("No table found");s=Pn.get(o),h=d.mapping.maps.length}r1e(d,s,o,n,c,u,h)&&p(),NC(d,s,o,n,l,c,a,h)&&p(),NC(d,s,o,n,l,c,u,h)&&p(),FC(d,s,o,n,a,u,l,h)&&p(),FC(d,s,o,n,a,u,c,h)&&p();for(let m=a;m<u;m++){const b=s.positionAt(m,l,o),A=s.positionAt(m,c,o);d.replace(d.mapping.slice(h).map(b+n),d.mapping.slice(h).map(A+n),new we(i.rows[m-a],0,0))}p(),d.setSelection(new Sn(d.doc.resolve(n+s.positionAt(a,l,o)),d.doc.resolve(n+s.positionAt(u-1,c-1,o)))),t(d)}var i1e=dA({ArrowLeft:sp("horiz",-1),ArrowRight:sp("horiz",1),ArrowUp:sp("vert",-1),ArrowDown:sp("vert",1),"Shift-ArrowLeft":ap("horiz",-1),"Shift-ArrowRight":ap("horiz",1),"Shift-ArrowUp":ap("vert",-1),"Shift-ArrowDown":ap("vert",1),Backspace:op,"Mod-Backspace":op,Delete:op,"Mod-Delete":op});function Mp(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function sp(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof Sn)return Mp(n,r,ct.near(o.$headCell,t));if(e!="horiz"&&!o.empty)return!1;const s=vM(i,e,t);if(s==null)return!1;if(e=="horiz")return Mp(n,r,ct.near(n.doc.resolve(o.head+t),t));{const a=n.doc.resolve(s),l=pM(a,e,t);let c;return l?c=ct.near(l,1):t<0?c=ct.near(n.doc.resolve(a.before(-1)),-1):c=ct.near(n.doc.resolve(a.after(-1)),1),Mp(n,r,c)}}}function ap(e,t){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let s;if(o instanceof Sn)s=o;else{const l=vM(i,e,t);if(l==null)return!1;s=new Sn(n.doc.resolve(l))}const a=pM(s.$headCell,e,t);return a?Mp(n,r,new Sn(s.$anchorCell,a)):!1}}function o1e(e,t){const n=e.state.doc,r=_u(n.resolve(t));return r?(e.dispatch(e.state.tr.setSelection(new Sn(r))),!0):!1}function s1e(e,t,n){if(!hi(e.state))return!1;let r=e1e(n);const i=e.state.selection;if(i instanceof Sn){r||(r={width:1,height:1,rows:[ue.from(jb(Br(e.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),a=Pn.get(o).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return r=n1e(r,a.right-a.left,a.bottom-a.top),xC(e.state,e.dispatch,s,a,r),!0}else if(r){const o=ah(e.state),s=o.start(-1);return xC(e.state,e.dispatch,s,Pn.get(o.node(-1)).findCell(o.pos-s),r),!0}else return!1}function a1e(e,t){var n;if(t.ctrlKey||t.metaKey)return;const r=kC(e,t.target);let i;if(t.shiftKey&&e.state.selection instanceof Sn)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&(i=_u(e.state.selection.$anchor))!=null&&((n=vT(e,t))==null?void 0:n.pos)!=i.pos)o(i,t),t.preventDefault();else if(!r)return;function o(l,c){let u=vT(e,c);const d=aa.getState(e.state)==null;if(!u||!lE(l,u))if(d)u=l;else return;const h=new Sn(l,u);if(d||!e.state.selection.eq(h)){const p=e.state.tr.setSelection(h);d&&p.setMeta(aa,l.pos),e.dispatch(p)}}function s(){e.root.removeEventListener("mouseup",s),e.root.removeEventListener("dragstart",s),e.root.removeEventListener("mousemove",a),aa.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(aa,-1))}function a(l){const c=l,u=aa.getState(e.state);let d;if(u!=null)d=e.state.doc.resolve(u);else if(kC(e,c.target)!=r&&(d=vT(e,t),!d))return s();d&&o(d,c)}e.root.addEventListener("mouseup",s),e.root.addEventListener("dragstart",s),e.root.addEventListener("mousemove",a)}function vM(e,t,n){if(!(e.state.selection instanceof Ke))return null;const{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const s=r.before(i),a=t=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?s:null}}return null}function kC(e,t){for(;t&&t!=e.dom;t=t.parentNode)if(t.nodeName=="TD"||t.nodeName=="TH")return t;return null}function vT(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?_u(e.state.doc.resolve(n.pos)):null}var l1e=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Gb(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,Gb(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function Gb(e,t,n,r,i,o){var s;let a=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u){for(let d=0,h=0;d<u.childCount;d++){const{colspan:p,colwidth:m}=u.child(d).attrs;for(let b=0;b<p;b++,h++){const A=i==h?o:m&&m[b],v=A?A+"px":"";if(a+=A||r,A||(l=!1),c)c.style.width!=v&&(c.style.width=v),c=c.nextSibling;else{const D=document.createElement("col");D.style.width=v,t.appendChild(D)}}}for(;c;){const d=c.nextSibling;(s=c.parentNode)==null||s.removeChild(c),c=d}l?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var Di=new Lt("tableColumnResizing");function c1e({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:n=100,View:r=l1e,lastColumnResizable:i=!0}={}){const o=new kt({key:Di,state:{init(s,a){var l,c;const u=(c=(l=o.spec)==null?void 0:l.props)==null?void 0:c.nodeViews,d=Br(a.schema).table.name;return r&&u&&(u[d]=(h,p)=>new r(h,n,p)),new u1e(-1,!1)},apply(s,a){return a.apply(s)}},props:{attributes:s=>{const a=Di.getState(s);return a&&a.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(s,a)=>{d1e(s,a,e,i)},mouseleave:s=>{h1e(s)},mousedown:(s,a)=>{p1e(s,a,t,n)}},decorations:s=>{const a=Di.getState(s);if(a&&a.activeHandle>-1)return b1e(s,a.activeHandle)},nodeViews:{}}});return o}var u1e=class Bp{constructor(t,n){this.activeHandle=t,this.dragging=n}apply(t){const n=this,r=t.getMeta(Di);if(r&&r.setHandle!=null)return new Bp(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new Bp(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&t.docChanged){let i=t.mapping.map(n.activeHandle,-1);return Vb(t.doc.resolve(i))||(i=-1),new Bp(i,n.dragging)}return n}};function d1e(e,t,n,r){if(!e.editable)return;const i=Di.getState(e.state);if(i&&!i.dragging){const o=m1e(t.target);let s=-1;if(o){const{left:a,right:l}=o.getBoundingClientRect();t.clientX-a<=n?s=RC(e,t,"left",n):l-t.clientX<=n&&(s=RC(e,t,"right",n))}if(s!=i.activeHandle){if(!r&&s!==-1){const a=e.state.doc.resolve(s),l=a.node(-1),c=Pn.get(l),u=a.start(-1);if(c.colCount(a.pos-u)+a.nodeAfter.attrs.colspan-1==c.width-1)return}DM(e,s)}}}function h1e(e){if(!e.editable)return;const t=Di.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&DM(e,-1)}function p1e(e,t,n,r){var i;if(!e.editable)return!1;const o=(i=e.dom.ownerDocument.defaultView)!=null?i:window,s=Di.getState(e.state);if(!s||s.activeHandle==-1||s.dragging)return!1;const a=e.state.doc.nodeAt(s.activeHandle),l=f1e(e,s.activeHandle,a.attrs);e.dispatch(e.state.tr.setMeta(Di,{setDragging:{startX:t.clientX,startWidth:l}}));function c(d){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);const h=Di.getState(e.state);h?.dragging&&(g1e(e,h.activeHandle,MC(h.dragging,d,n)),e.dispatch(e.state.tr.setMeta(Di,{setDragging:null})))}function u(d){if(!d.which)return c(d);const h=Di.getState(e.state);if(h&&h.dragging){const p=MC(h.dragging,d,n);BC(e,h.activeHandle,p,r)}}return BC(e,s.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),t.preventDefault(),!0}function f1e(e,t,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=e.domAtPos(t);let s=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let l=0;l<n;l++)r[l]&&(s-=r[l],a--);return s/a}function m1e(e){for(;e&&e.nodeName!="TD"&&e.nodeName!="TH";)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function RC(e,t,n,r){const i=n=="right"?-r:r,o=e.posAtCoords({left:t.clientX+i,top:t.clientY});if(!o)return-1;const{pos:s}=o,a=_u(e.state.doc.resolve(s));if(!a)return-1;if(n=="right")return a.pos;const l=Pn.get(a.node(-1)),c=a.start(-1),u=l.map.indexOf(a.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function MC(e,t,n){const r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function DM(e,t){e.dispatch(e.state.tr.setMeta(Di,{setHandle:t}))}function g1e(e,t,n){const r=e.state.doc.resolve(t),i=r.node(-1),o=Pn.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let c=0;c<o.height;c++){const u=c*o.width+a;if(c&&o.map[u]==o.map[u-o.width])continue;const d=o.map[u],h=i.nodeAt(d).attrs,p=h.colspan==1?0:a-o.colCount(d);if(h.colwidth&&h.colwidth[p]==n)continue;const m=h.colwidth?h.colwidth.slice():T1e(h.colspan);m[p]=n,l.setNodeMarkup(s+d,null,{...h,colwidth:m})}l.docChanged&&e.dispatch(l)}function BC(e,t,n,r){const i=e.state.doc.resolve(t),o=i.node(-1),s=i.start(-1),a=Pn.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1;let l=e.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&Gb(o,l.firstChild,l,r,a,n)}function T1e(e){return Array(e).fill(0)}function b1e(e,t){var n;const r=[],i=e.doc.resolve(t),o=i.node(-1);if(!o)return Rt.empty;const s=Pn.get(o),a=i.start(-1),l=s.colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1;for(let c=0;c<s.height;c++){const u=l+c*s.width;if((l==s.width-1||s.map[u]!=s.map[u+1])&&(c==0||s.map[u]!=s.map[u-s.width])){const d=s.map[u],h=a+d+o.nodeAt(d).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",(n=Di.getState(e))!=null&&n.dragging&&r.push(xn.node(a+d,a+d+o.nodeAt(d).nodeSize,{class:"column-resize-dragging"})),r.push(xn.widget(h,p))}}return Rt.create(e.doc,r)}function A1e({allowTableNodeSelection:e=!1}={}){return new kt({key:aa,state:{init(){return null},apply(t,n){const r=t.getMeta(aa);if(r!=null)return r==-1?null:r;if(n==null||!t.docChanged)return n;const{deleted:i,pos:o}=t.mapping.mapResult(n);return i?null:o}},props:{decorations:Mme,handleDOMEvents:{mousedown:a1e},createSelectionBetween(t){return aa.getState(t.state)!=null?t.state.selection:null},handleTripleClick:o1e,handleKeyDown:i1e,handlePaste:s1e},appendTransaction(t,n,r){return Lme(r,TM(r,n),e)}})}function qb(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function IC(e,t,n,r,i,o){var s;let a=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u!==null)for(let d=0,h=0;d<u.childCount;d+=1){const{colspan:p,colwidth:m}=u.child(d).attrs;for(let b=0;b<p;b+=1,h+=1){const A=i===h?o:m&&m[b],v=A?`${A}px`:"";if(a+=A||r,A||(l=!1),c){if(c.style.width!==v){const[D,C]=qb(r,A);c.style.setProperty(D,C)}c=c.nextSibling}else{const D=document.createElement("col"),[C,S]=qb(r,A);D.style.setProperty(C,S),t.appendChild(D)}}}for(;c;){const d=c.nextSibling;(s=c.parentNode)===null||s===void 0||s.removeChild(c),c=d}l?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}let y1e=class{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),IC(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!==this.node.type?!1:(this.node=e,IC(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type==="attributes"&&(e.target===this.table||this.colgroup.contains(e.target))}};function E1e(e,t,n,r){let i=0,o=!0;const s=[],a=e.firstChild;if(!a)return{};for(let u=0,d=0;u<a.childCount;u+=1){const{colspan:h,colwidth:p}=a.child(u).attrs;for(let m=0;m<h;m+=1,d+=1){const b=n===d?r:p&&p[m];i+=b||t,b||(o=!1);const[A,v]=qb(t,b);s.push(["col",{style:`${A}: ${v}`}])}}const l=o?`${i}px`:"",c=o?"":`${i}px`;return{colgroup:["colgroup",{},...s],tableWidth:l,tableMinWidth:c}}function LC(e,t){return e.createAndFill()}function v1e(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;const t={};return Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}function D1e(e,t,n,r,i){const o=v1e(e),s=[],a=[];for(let c=0;c<n;c+=1){const u=LC(o.cell);if(u&&a.push(u),r){const d=LC(o.header_cell);d&&s.push(d)}}const l=[];for(let c=0;c<t;c+=1)l.push(o.row.createChecked(null,r&&c===0?s:a));return o.table.createChecked(null,l)}function S1e(e){return e instanceof Sn}const lp=({editor:e})=>{const{selection:t}=e.state;if(!S1e(t))return!1;let n=0;return VF(t.ranges[0].$from,i=>i.type.name==="table")?.node.descendants(i=>{if(i.type.name==="table")return!1;["tableCell","tableHeader"].includes(i.type.name)&&(n+=1)}),n===t.ranges.length?(e.commands.deleteTable(),!0):!1},w1e=bn.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:y1e,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:e,HTMLAttributes:t}){const{colgroup:n,tableWidth:r,tableMinWidth:i}=E1e(e,this.options.cellMinWidth);return["table",Ft(this.options.HTMLAttributes,t,{style:r?`width: ${r}`:`min-width: ${i}`}),n,["tbody",0]]},addCommands(){return{insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{const s=D1e(o.schema,e,t,n);if(i){const a=r.selection.from+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(Ke.near(r.doc.resolve(a)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>Zme(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>Pme(e,t),deleteColumn:()=>({state:e,dispatch:t})=>Ume(e,t),addRowBefore:()=>({state:e,dispatch:t})=>yM(e,t),addRowAfter:()=>({state:e,dispatch:t})=>EM(e,t),deleteRow:()=>({state:e,dispatch:t})=>jme(e,t),deleteTable:()=>({state:e,dispatch:t})=>Xme(e,t),mergeCells:()=>({state:e,dispatch:t})=>SC(e,t),splitCell:()=>({state:e,dispatch:t})=>wC(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>zd("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>zd("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>Qme(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>SC(e,t)?!0:wC(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>Wme(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>CC(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>CC(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&TM(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){const r=Sn.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:lp,"Mod-Backspace":lp,Delete:lp,"Mod-Delete":lp}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[c1e({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],A1e({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){const t={name:e.name,options:e.options,storage:e.storage};return{tableRole:Nt($e(e,"tableRole",t))}}}),SM=bn.create({name:"tableCaption",content:"inline*",allowGapCursor:!1,addAttributes(){return{}},renderHTML(){return["caption"]},toMarkdown(e,t){},parseHTML(){return[{tag:"table caption",priority:90}]}}),_1e=bn.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?t.split(",").map(n=>parseInt(n,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:e}){return["td",Ft(this.options.HTMLAttributes,e),0]}}),wM=_1e.extend({content:"inline*",toMarkdown(e,t){e.write(" ");const n=e.options?.escapeExtraCharacters,r=e.options.currentColumnIndex;e.options.escapeExtraCharacters=/\|/;let i=0;t.content.forEach((u,d,h)=>{i+=u.text?.length||6,u.text?.includes("|")&&(i+=1),u.attrs.syntax==="  "&&(t.child(h).attrs.syntax="html")});const o=e.options.columnWidths[r],s=t.attrs?.textAlign||"left",a=o-i,l=Math.floor(a/2),c=Math.ceil(a/2);s==="center"&&e.write(" ".repeat(l)),s==="right"&&e.write(" ".repeat(a)),e.renderInline(t),s==="center"&&e.write(" ".repeat(c)),s==="left"&&e.write(" ".repeat(a)),e.options.escapeExtraCharacters=n,e.write(" |"),e.options.currentColumnIndex++},parseHTML(){return[{tag:"td",preserveWhitespace:!0},{tag:"th",preserveWhitespace:!0},{tag:"table thead ~ tbody th",priority:70,preserveWhitespace:!0},{tag:"table thead ~ tbody td",priority:70,preserveWhitespace:!0}]},addAttributes(){return{...this.parent?.(),textAlign:{rendered:!1,parseHTML:e=>e.style.textAlign||null}}},renderHTML({HTMLAttributes:e}){const t=Ft(this.options.HTMLAttributes,e);return t.colspan===1&&delete t.colspan,t.rowspan===1&&delete t.rowspan,["td",t,0]},addProseMirrorPlugins(){return[new kt({props:{handlePaste:(e,t,n)=>{if(!this.editor.isActive(this.type.name))return!1;const{state:r}=e,{schema:i}=r,o=[];n.content.descendants((a,l)=>{a.isText?o.push(i.text(a.textContent,a.marks)):o.length!==0&&a.type===i.nodes.hardBreak&&o.push(a)});const s=i.node("paragraph",[],o);n.content=ue.empty.addToStart(s)}}})]}}),C1e=bn.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return t?t.split(",").map(n=>parseInt(n,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:e}){return["th",Ft(this.options.HTMLAttributes,e),0]}}),_M=C1e.extend({content:"inline*",toMarkdown(e,t){const n=e.options.currentHeaderIndex,r=e.options.columnWidths[n],i=t.attrs?.textAlign||"left",o=r-t.content.size,s=Math.floor(o/2),a=Math.ceil(o/2);e.write(" "),i==="center"&&e.write(" ".repeat(s)),i==="right"&&e.write(" ".repeat(o)),e.renderInline(t),i==="center"&&e.write(" ".repeat(a)),i==="left"&&e.write(" ".repeat(o)),e.write(" |"),e.options.currentHeaderIndex++},parseHTML(){return[{tag:"table thead:empty ~ tbody :first-child th",priority:80},{tag:"table thead:empty ~ tbody :first-child td",priority:80},{tag:"table thead :first-child th",priority:60},{tag:"table thead :first-child td",priority:60},{tag:"table tbody :first-child th",priority:60},{tag:"table tbody :first-child td",priority:60},{tag:"table > :first-child > th",priority:60},{tag:"table > :first-child > td",priority:60}]},renderHTML({HTMLAttributes:e}){const t=Ft(this.options.HTMLAttributes,e);return t.colspan===1&&delete t.colspan,t.rowspan===1&&delete t.rowspan,["th",t,0]},addAttributes(){return{...this.parent?.(),textAlign:{rendered:!1,parseHTML:e=>e.style.textAlign||null}}}}),N1e=bn.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:e}){return["tr",Ft(this.options.HTMLAttributes,e),0]}}),cE=N1e.extend({content:"tableCell*",allowGapCursor:!1,toMarkdown(e,t){e.write("|"),e.options.currentColumnIndex=0,e.renderInline(t),e.ensureNewLine()},parseHTML(){return[{tag:"tr",priority:70}]}}),CM=cE.extend({name:"tableHeadRow",content:"tableHeader+",allowGapCursor:!1,toMarkdown(e,t){e.write("|"),e.renderInline(t),e.ensureNewLine(),e.write("|"),t.forEach((n,r,i)=>{let o=e.repeat("-",e.options.columnWidths[i]+2);const s=n.attrs?.textAlign;(s==="center"||s==="left")&&(o=":"+o.slice(1)),(s==="center"||s==="right")&&(o=o.slice(0,-1)+":"),e.write(o),e.write("|")}),e.ensureNewLine()},parseHTML(){return[{tag:"tr:first-of-type",priority:80}]}});function F1e(e,t,n,r){const i=[],o=[];for(let l=0;l<n;l+=1){const c=e.nodes.tableCell.createAndFill();c&&o.push(c);const u=e.nodes.tableHeader.createAndFill();u&&i.push(u)}const s=e.nodes.tableHeadRow.createChecked(null,i),a=[];for(let l=1;l<t;l+=1)a.push(e.nodes.tableRow.createChecked(null,o));return e.nodes.table.createChecked(null,[s,...a])}function O1e(e){if(e.index(-1)===e.node(-1).childCount-1)return null;let t=e.after();const n=e.node(-1);for(let r=e.indexAfter(-1);r<n.childCount;r++){const i=n.child(r);if(i.childCount>=e.index()){for(let o=0;o<e.index();o++){const s=i.child(o);t+=s.nodeSize}return t+1}t+=i.nodeSize}}function x1e(e){const t=[];return e.content.forEach(n=>{n.content.forEach((r,i,o)=>{t[o]||(t[o]=[]),t[o].push(r)})}),t}function k1e(e){const t=[];return e.forEach(n=>{let r=0;n.forEach(i=>{let o=0;i.content.forEach(s=>{o+=s.text?.length||6,s.text?.includes("|")&&(o+=1)}),r=Math.max(r,o)}),t.push(r)}),t}const NM=w1e.extend({content:"tableCaption? tableHeadRow tableRow*",addExtensions(){return[SM,wM,_M,CM,cE]},addCommands(){return{...this.parent(),addRowAfter:()=>({chain:e,dispatch:t})=>e().command(({state:n})=>EM(n,t)).command(({state:n,tr:r})=>{const{tableStart:i,table:o,bottom:s}=Vi(n);if(t){const a=o.child(s-1),l=o.child(s);let c=i+1;for(let u=0;u<s;u++)c+=o.child(u).nodeSize;for(let u=0;u<a.childCount;u++)r.setNodeAttribute(c,"textAlign",a.child(u).attrs.textAlign),c+=l.child(u).nodeSize}return!0}).run(),addRowBefore:()=>({chain:e,dispatch:t})=>e().command(({state:n})=>yM(n,t)).command(({state:n,tr:r})=>{const{tableStart:i,table:o,top:s}=Vi(n);if(t){const a=o.child(s),l=o.child(s-1);let c=i+1;for(let u=0;u<s-1;u++)c+=o.child(u).nodeSize;for(let u=0;u<a.childCount;u++)r.setNodeAttribute(c,"textAlign",a.child(u).attrs.textAlign),c+=l.child(u).nodeSize}return!0}).run(),insertTable:()=>({tr:e,dispatch:t,editor:n})=>{if(hi(e))return!1;const r=F1e(n.schema,3,3);if(t){const i=e.selection.anchor+1;e.replaceSelectionWith(r).scrollIntoView().setSelection(Ke.near(e.doc.resolve(i)))}return!0},leaveTable:()=>({tr:e,dispatch:t,editor:n})=>{if(!hi(e))return!1;const{$head:r,empty:i}=e.selection;if(!i)return!1;const o=r.depth<3?1:r.depth-2;if(t){const s=e.doc.resolve(r.after(o)+1),a=Ke.near(s);t(e.setSelection(a).scrollIntoView())}return!0},goToNextRow:()=>({tr:e,dispatch:t,editor:n})=>{if(!hi(e))return!1;const r=O1e(ah(e));if(r!=null){if(t){const i=e.doc.resolve(r),o=Ke.between(i,hM(i));t(e.setSelection(o).scrollIntoView())}return!0}}}},renderHTML({HTMLAttributes:e}){return["div",{class:"table-wrapper",style:"overflow-x: auto;"},["table",Ft(this.options.HTMLAttributes,e),0]]},toMarkdown(e,t){const n=x1e(t);e.options.columnWidths=k1e(n),e.options.currentHeaderIndex=0,e.renderContent(t),e.closeBlock(t)},addKeyboardShortcuts(){return{...this.parent(),Tab:()=>this.editor.commands.goToNextCell()||this.editor.commands.leaveTable(),Enter:({editor:e})=>{const{selection:t}=e.state;return t.$from.parent.type.name.startsWith("table")?t.$from.nodeBefore?.type.name==="hardBreak"?e.can().goToNextRow()||e.can().addRowAfter()?(e.chain().setTextSelection({from:t.from-1,to:t.from}).deleteSelection().run(),e.commands.goToNextRow()?!0:e.chain().addRowAfter().goToNextRow().run()):!1:e.chain().insertContent('<br data-syntax="html" />').focus().run():!1}}}}),R1e={name:"TableCellView",components:{NcActionButton:Ha,NcActions:Os,NodeViewWrapper:zo,NodeViewContent:Pa,TableAddRowBefore:vV,TableAddRowAfter:yx,TrashCan:Bm},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0}},data(){return{isEditable:!1}},computed:{textAlign(){return{"text-align":this.node.attrs.textAlign}},dir(){return this.node.attrs.dir||""}},beforeMount(){this.isEditable=this.editor.isEditable,this.editor.on("update",({editor:e})=>{this.isEditable=e.isEditable})},methods:{deleteRow(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteRow().run()},addRowBefore(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowBefore().run()},addRowAfter(){this.editor.chain().focus().setTextSelection(this.getPos()).addRowAfter().run()},t:xe}};var M1e=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{style:e.textAlign,attrs:{"data-text-el":"table-cell",as:"td",dir:e.dir}},[t("div",{staticClass:"container"},[t("NodeViewContent",{staticClass:"content"}),e.isEditable?t("NcActions",{attrs:{"data-text-table-actions":"row"}},[t("NcActionButton",{attrs:{"data-text-table-action":"add-row-before","close-after-click":""},on:{click:e.addRowBefore},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TableAddRowBefore")]},proxy:!0}],null,!1,1805502767)},[e._v(" "+e._s(e.t("text","Add row before"))+" ")]),t("NcActionButton",{attrs:{"data-text-table-action":"add-row-after","close-after-click":""},on:{click:e.addRowAfter},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TableAddRowAfter")]},proxy:!0}],null,!1,3179199218)},[e._v(" "+e._s(e.t("text","Add row after"))+" ")]),t("NcActionButton",{attrs:{"data-text-table-action":"remove-row","close-after-click":""},on:{click:e.deleteRow},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TrashCan")]},proxy:!0}],null,!1,2019846067)},[e._v(" "+e._s(e.t("text","Delete this row"))+" ")])],1):e._e()],1)])},B1e=[],I1e=Ee(R1e,M1e,B1e,!1,null,"40ec12a5");const L1e=I1e.exports,Y1e={name:"TableHeaderView",components:{AlignHorizontalCenter:Pz,AlignHorizontalLeft:$z,AlignHorizontalRight:Uz,TrashCan:Bm,NcActionButton:Ha,NcActionButtonGroup:Rae,NcActions:Os,NodeViewWrapper:zo,NodeViewContent:Pa,TableAddColumnBefore:EV,TableAddColumnAfter:Ax},props:{editor:{type:Object,required:!0},getPos:{type:Function,required:!0},node:{type:Object,required:!0}},data(){return{isEditable:!1}},computed:{textAlign(){return{"text-align":this.node.attrs.textAlign}},dir(){return this.node.attrs.dir||""}},beforeMount(){this.isEditable=this.editor.isEditable,this.editor.on("update",({editor:e})=>{this.isEditable=e.isEditable})},methods:{alignCenter(){this.align("center")},alignLeft(){this.align("left")},alignRight(){this.align("right")},align(e){for(this.editor.chain().focus().setTextSelection(this.getPos()).setCellAttribute("textAlign",e).run();this.editor.commands.goToNextRow();)this.editor.commands.setCellAttribute("textAlign",e);this.editor.chain().setTextSelection(this.getPos()).focus().run(),this.$refs.menu.closeMenu(!1)},deleteColumn(){this.editor.chain().focus().setTextSelection(this.getPos()).deleteColumn().run()},addColumnBefore(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnBefore().run()},addColumnAfter(){this.editor.chain().focus().setTextSelection(this.getPos()).addColumnAfter().run()},t:xe}};var H1e=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{style:e.textAlign,attrs:{"data-text-el":"table-header",as:"th",dir:e.dir}},[t("div",[t("NodeViewContent",{staticClass:"content"}),e.isEditable?t("NcActions",{ref:"menu",attrs:{type:"tertiary-no-background","data-text-table-actions":"header"}},[t("NcActionButtonGroup",[t("NcActionButton",{attrs:{"data-text-table-action":"align-column-left","aria-label":e.t("text","Left align column"),type:"radio",value:"left","model-value":e.node.attrs.textAlign},on:{click:e.alignLeft},scopedSlots:e._u([{key:"icon",fn:function(){return[t("AlignHorizontalLeft")]},proxy:!0}],null,!1,2968467243)}),t("NcActionButton",{attrs:{"data-text-table-action":"align-column-center","aria-label":e.t("text","Center align column"),type:"radio",value:"center","model-value":e.node.attrs.textAlign},on:{click:e.alignCenter},scopedSlots:e._u([{key:"icon",fn:function(){return[t("AlignHorizontalCenter")]},proxy:!0}],null,!1,536750267)}),t("NcActionButton",{attrs:{"data-text-table-action":"align-column-right","aria-label":e.t("text","Right align column"),type:"radio",value:"right","model-value":e.node.attrs.textAlign},on:{click:e.alignRight},scopedSlots:e._u([{key:"icon",fn:function(){return[t("AlignHorizontalRight")]},proxy:!0}],null,!1,3861151024)})],1),t("NcActionButton",{attrs:{"data-text-table-action":"add-column-before","close-after-click":""},on:{click:e.addColumnBefore},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TableAddColumnBefore")]},proxy:!0}],null,!1,3782681875)},[e._v(" "+e._s(e.t("text","Add column before"))+" ")]),t("NcActionButton",{attrs:{"data-text-table-action":"add-column-after","close-after-click":""},on:{click:e.addColumnAfter},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TableAddColumnAfter")]},proxy:!0}],null,!1,1608287598)},[e._v(" "+e._s(e.t("text","Add column after"))+" ")]),t("NcActionButton",{attrs:{"data-text-table-action":"remove-column","close-after-click":""},on:{click:e.deleteColumn},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TrashCan")]},proxy:!0}],null,!1,2019846067)},[e._v(" "+e._s(e.t("text","Delete this column"))+" ")])],1):e._e()],1)])},Z1e=[],P1e=Ee(Y1e,H1e,Z1e,!1,null,"73c16a7d");const $1e=P1e.exports,U1e={name:"TableView",components:{TableAddColumnAfter:Ax,TableAddRowAfter:yx,NcActionButton:Ha,NcActions:Os,NcButton:_i,NodeViewWrapper:zo,NodeViewContent:Pa,TableSettings:DV,TrashCan:Bm},props:{editor:{type:Object,required:!0},deleteNode:{type:Function,required:!0},node:{type:Object,required:!0}},data(){return{isEditable:!1,isFocused:!1}},beforeMount(){this.isEditable=this.editor.isEditable,this.editor.on("selectionUpdate",({editor:e})=>{const t=this.getPos(),n=t+this.node.nodeSize,{from:r,to:i}=e.state.selection;this.isFocused=r>=t&&i<=n}),this.editor.on("update",({editor:e})=>{this.isEditable=e.isEditable})},methods:{addColumnAfter(){const e=this.node.firstChild;this.editor.chain().focus().setTextSelection(this.getPos()+e.nodeSize-1).addColumnAfter().setTextSelection(this.getPos()+e.nodeSize).run()},addRowAfter(){const e=this.node.lastChild;this.editor.chain().focus().setTextSelection(this.getPos()+this.node.nodeSize-e.nodeSize+1).addRowAfter().setTextSelection(this.getPos()+this.node.nodeSize+1).run()},t:xe}};var z1e=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{staticClass:"table-wrapper",class:{focused:e.isFocused},attrs:{"data-text-el":"table-view"}},[e.isEditable?t("NcActions",{staticClass:"table-settings",attrs:{"force-menu":"","data-text-table-actions":"settings"},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TableSettings")]},proxy:!0}],null,!1,1699550424)},[t("NcActionButton",{attrs:{"data-text-table-action":"delete","close-after-click":""},on:{click:e.deleteNode},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TrashCan")]},proxy:!0}],null,!1,2019846067)},[e._v(" "+e._s(e.t("text","Delete this table"))+" ")])],1):e._e(),t("NodeViewContent",{staticClass:"content",attrs:{as:"table"}}),e.isEditable?t("NcButton",{staticClass:"table-add-column",attrs:{"aria-label":e.t("text","Add column after"),title:e.t("text","Add column after")},on:{click:e.addColumnAfter},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TableAddColumnAfter")]},proxy:!0}],null,!1,1608287598)}):e._e(),e.isEditable?t("NcButton",{staticClass:"table-add-row",attrs:{"aria-label":e.t("text","Add row below"),title:e.t("text","Add row below")},on:{click:e.addRowAfter},scopedSlots:e._u([{key:"icon",fn:function(){return[t("TableAddRowAfter")]},proxy:!0}],null,!1,3179199218)}):e._e(),t("div",{staticClass:"clearfix"})],1)},V1e=[],j1e=Ee(U1e,z1e,V1e,!1,null,"55d60332");const G1e=j1e.exports;function YC(e,t){return e.extend({addNodeView(){return Vo(t)}})}const q1e=NM.extend({addNodeView(){return Vo(G1e)},addExtensions(){return[SM,YC(wM,L1e),YC(_M,$1e),CM,cE]}}),W1e=Uy.extend({name:"frontMatter",draggable:!1,renderHTML({node:e,HTMLAttributes:t}){return this.parent({node:e,HTMLAttributes:Ft(t,{"data-title":xe("text","Front matter"),class:"frontmatter"})})},parseHTML(){return[{tag:"pre#frontmatter",preserveWhitespace:"full",priority:9001,attrs:{language:"yaml"}}]},toMarkdown:(e,t)=>{if(!e.out.match(/^\s*/))throw Error("FrontMatter must be the first node of the document!");const n=t.textContent,r=n.match(/-{3,}/gm),i=r?r.sort().slice(-1)[0]+"-":"---";e.write(""),e.out="",e.write(`${i}
`),e.text(n,!1),e.ensureNewLine(),e.write(i),e.closeBlock(t)},addInputRules(){return[{find:/^---$/g,handler:({state:e,range:t,chain:n})=>t.from===1?e.doc.resolve(1).parent.type.name===this.name?!1:(n().deleteRange(t).insertContentAt(0,{type:this.name}),!0):!1}]},addCommands(){return{}},addPasteRules:()=>[],addProseMirrorPlugins:()=>[]}),K1e=bn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Ft(this.options.HTMLAttributes,e)]},renderText(){return`
`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:i,storedMarks:o}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(h=>a.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Q1e=K1e.extend({addAttributes(){return{syntax:{default:"  ",rendered:!1,keepOnSplit:!0,parseHTML:e=>e.getAttribute("data-syntax")||"  "}}},addCommands(){return{...this?.parent(),setHardBreak:()=>e=>{for(let t=e.state.selection.$from.depth;t>=0;t--)if(e.state.selection.$from.node(t).type.name==="heading")return!1;return this.parent().setHardBreak()(e)}}},toMarkdown(e,t,n,r){for(let i=r+1;i<n.childCount;i++)if(n.child(i).type!==t.type){t.attrs.syntax!=="html"?(e.write(t.attrs.syntax),n.child(i).text?.startsWith(`
`)||e.write(`
`)):e.write("<br />");return}}}),J1e=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,FM=bn.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",Ft(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[KF({find:J1e,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}});var HC={exports:{}},ZC;function X1e(){return ZC||(ZC=1,function(e,t){function n(o){return typeof o.value!="function"?(console.warn("[Vue-click-outside:] provided expression",o.expression,"is not a function."),!1):!0}function r(o,s){if(!o||!s)return!1;for(var a=0,l=s.length;a<l;a++)try{if(o.contains(s[a]))return!0;if(s[a].contains(o))return!1}catch{return!1}return!1}function i(o){return typeof o.componentInstance<"u"&&o.componentInstance.$isServer}e.exports={bind:function(o,s,a){if(!n(s))return;function l(u){if(a.context){var d=u.path||u.composedPath&&u.composedPath();d&&d.length>0&&d.unshift(u.target),!(o.contains(u.target)||r(a.context.popupItem,d))&&o.__vueClickOutside__.callback(u)}}o.__vueClickOutside__={handler:l,callback:s.value};const c="ontouchstart"in document.documentElement?"touchstart":"click";!i(a)&&document.addEventListener(c,l)},update:function(o,s){n(s)&&(o.__vueClickOutside__.callback=s.value)},unbind:function(o,s,a){const l="ontouchstart"in document.documentElement?"touchstart":"click";!i(a)&&o.__vueClickOutside__&&document.removeEventListener(l,o.__vueClickOutside__.handler),delete o.__vueClickOutside__}}}(HC)),HC.exports}var ege=X1e();const tge=$l(ege),nge={name:"ShowImageModal",components:{NcModal:cN},props:{images:{type:Array,required:!0},startIndex:{type:Number,default:0},show:{type:Boolean,default:!1}},data(){return{currentImageIndex:0}},computed:{currentImage(){return this.images[this.currentImageIndex]}},watch:{startIndex(e){this.currentImageIndex=e}},methods:{showNextImage(){this.currentImageIndex=(this.currentImageIndex+1)%this.images.length},showPreviousImage(){this.currentImageIndex=this.currentImageIndex<=0?this.images.length-1:this.currentImageIndex-1}}};var rge=function(){var e=this,t=e._self._c;return e.show?t("NcModal",{attrs:{size:"large",name:e.currentImage.name,"out-transition":!0,"has-next":!0,"has-previous":!0,"close-button-contained":!1,dark:!0},on:{next:e.showNextImage,previous:e.showPreviousImage,close:function(n){return e.$emit("close")}}},[t("div",{staticClass:"modal__content"},[t("img",{attrs:{src:e.currentImage.previewUrl}})])]):e._e()},ige=[],oge=Ee(nge,rge,ige,!1,null,"de2685d2");const sge=oge.exports;class PC extends Error{constructor(t,n){super(t?.message||xe("text","Failed to load")),this.reason=t,this.imageUrl=n}}const age={name:"ImageView",components:{ImageIcon:hV,DeleteIcon:Bm,NcButton:_i,NcBlurHash:Gle,ShowImageModal:sge,NodeViewWrapper:zo},directives:{ClickOutside:tge},mixins:[u6],props:["editor","node","extension","updateAttributes","deleteNode"],data(){return{attachment:null,attachmentPromise:null,imageLoaded:!1,imageWidth:0,imageHeight:0,wrapperWidth:0,resizeObserver:null,imageBlurhash:null,loaded:!1,failed:!1,showIcons:!1,imageUrl:null,errorMessage:null,attachmentSize:null,showImageModal:!1,imageIndex:null,isEditable:!1,isLastInserted:!1,embeddedImageList:[],loadIntersectionObserver:null}},computed:{attachmentType(){return this.attachment?this.attachment.isImage?"image":"media":null},isMediaAttachment(){return this.attachmentType==="media"},showDeleteIcon(){return this.isEditable&&this.showIcons},showImageDeleteIcon(){return this.showDeleteIcon&&!this.isMediaAttachment},canDisplayImage(){return this.failed&&this.loaded?!0:this.loaded&&this.imageLoaded},canDisplayPlaceholder(){return this.imageHeight>0},blurhashSize(){if(this.imageWidth>0&&this.imageHeight>0){const e=this.imageWidth/this.imageHeight,t=this.wrapperWidth-12>this.imageWidth?this.imageWidth:this.wrapperWidth-12,n=t/e;return{width:`${t}px`,height:`${n}px`}}return{}},src:{get(){return this.node.attrs.src||""},set(e){this.updateAttributes({src:e})}},alt:{get(){return this.node.attrs.alt?this.node.attrs.alt:""},set(e){this.updateAttributes({alt:e})}}},beforeMount(){this.isEditable=this.editor.isEditable,this.editor.on("update",({editor:e})=>{this.isEditable=e.isEditable}),this.editor.on("transaction",({transaction:e})=>{e.getMeta("insertedAttachmentSrc")?.src===this.src&&(this.isLastInserted=!0)})},mounted(){this.attachmentPromise=this.$attachmentResolver.resolve(this.src),this.loadAttachmentMetadata(),this.setupResizeObserver(),this.$nextTick(()=>{const e={root:null,threshold:0},t=(n,r)=>{n[0].isIntersecting&&(r.disconnect(),this.loadPreview().catch(this.onImageLoadFailure))};this.loadIntersectionObserver=new IntersectionObserver(t,e),this.loadIntersectionObserver.observe(this.$el)})},beforeUnmount(){this.loadIntersectionObserver?.disconnect(),this.resizeObserver?.disconnect()},methods:{setupResizeObserver(){this.$refs.wrapper&&(this.resizeObserver=new ResizeObserver(e=>{const t=e[0].contentRect.width;t>0&&(this.wrapperWidth=t)}),this.resizeObserver.observe(this.$refs.wrapper))},async loadAttachmentMetadata(){try{this.attachment=await this.attachmentPromise;const e=this.attachment?.metadata||null;if(e){const t=e["photos-size"]?.value;this.imageWidth=t?.width||0,this.imageHeight=t?.height||0,this.imageBlurhash=e.blurhash?.value||null}}catch(e){Nr.debug("Failed to load attachment metadata",{err:e})}},async loadPreview(){if(this.attachment||(this.attachment=await this.attachmentPromise),!this.attachment.previewUrl)throw new Error("Attachment source was not resolved");return new Promise((e,t)=>{const n=new Image;n.onload=async()=>{this.imageUrl=this.attachment.previewUrl,this.imageLoaded=!0,this.loaded=!0,this.attachmentSize=this.attachment.size,this.resizeObserver?.disconnect()},n.onerror=r=>{t(new PC(r,this.attachment.previewUrl))},n.src=this.attachment.previewUrl})},onImageLoadFailure(e){this.failed=!0,this.imageLoaded=!1,this.loaded=!0,this.errorMessage=e.message,e instanceof PC&&(this.errorMessage=`${this.errorMessage} ${this.src}`),this.$emit("error",{error:e,src:this.src})},updateAlt(e){this.updateAttributes({alt:e.target.value})},onLoaded(){this.loaded=!0,this.$nextTick(()=>{this.isLastInserted&&this.$refs.altInput?.focus()})},async updateEmbeddedImageList(){this.embeddedImageList=[];const e=Array.from(document.querySelectorAll('figure[data-component="image-view"][data-attachment-type="image"]:not(.image-view--failed).image-view'));for(const t of e){const n=t.getAttribute("data-src");if(!this.embeddedImageList.find(r=>r.src===n)){const r=await this.$attachmentResolver.resolve(t.getAttribute("data-src"));this.embeddedImageList.push({src:n,...r})}}},handleAttachmentClick(){if(OCA.Viewer&&!OCA.Viewer.file&&OCA.Viewer.mimetypes.indexOf(this.attachment.mimetype)!==-1&&this.attachment.davPath){OCA.Viewer.open({path:this.attachment.davPath});return}window.location.assign(this.attachment.fullUrl)},async handleImageClick(){await this.updateEmbeddedImageList(),this.imageIndex=this.embeddedImageList.findIndex(e=>e.src===this.src),this.imageIndex!==-1?this.showImageModal=!0:(console.error("Could not find image in attachments list",this.attachment),uN(xe("text","Could not find image in attachments list.")))},onDelete(){ad("text:image-node:delete",this.imageUrl),this.deleteNode()},t:xe}};var lge=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{attrs:{contenteditable:e.isEditable}},[t("figure",{ref:"wrapper",staticClass:"image image-view",class:{"icon-loading":!e.loaded,"image-view--failed":e.failed},attrs:{"data-component":"image-view","data-attachment-type":e.attachmentType,"data-src":e.src}},[e.canDisplayImage?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:()=>e.showIcons=!1,expression:"() => (showIcons = false)"}],staticClass:"image__view",on:{mouseover:function(n){e.showIcons=!0},mouseleave:function(n){e.showIcons=!1}}},[t("transition",{attrs:{name:"fade"}},[e.failed?[t("ImageIcon",{staticClass:"image__main image__main--broken-icon",attrs:{size:100}})]:[e.isMediaAttachment?t("div",{staticClass:"media",attrs:{contenteditable:"false"},on:{click:e.handleAttachmentClick}},[t("div",{staticClass:"media__wrapper"},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:e.imageUrl,alt:e.alt},on:{load:e.onLoaded}}),t("div",{staticClass:"metadata"},[t("span",{staticClass:"name"},[e._v(e._s(e.alt))]),t("span",{staticClass:"size"},[e._v(e._s(e.attachmentSize))])])]),e.showDeleteIcon?t("div",{staticClass:"buttons"},[t("NcButton",{attrs:{"aria-label":e.t("text","Delete this attachment"),title:e.t("text","Delete this attachment")},on:{click:e.onDelete},scopedSlots:e._u([{key:"icon",fn:function(){return[t("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):e._e()]):t("div",{staticClass:"media",attrs:{contenteditable:"false"}},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:e.imageUrl,alt:e.alt},on:{click:e.handleImageClick,load:e.onLoaded}})])]],2),t("transition",{attrs:{name:"fade"}},[e.isMediaAttachment?e._e():t("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__caption",attrs:{title:e.alt}},[e.isEditable?t("div",{staticClass:"image__caption__wrapper"},[t("input",{directives:[{name:"show",rawName:"v-show",value:!e.isMediaAttachment,expression:"!isMediaAttachment"}],ref:"altInput",staticClass:"image__caption__input",attrs:{type:"text"},domProps:{value:e.alt},on:{blur:e.updateAlt,keyup:e.updateAlt}}),e.showImageDeleteIcon?t("div",{staticClass:"image__caption__delete",attrs:{contenteditable:"false"}},[t("NcButton",{attrs:{"aria-label":e.t("text","Delete this image"),title:e.t("text","Delete this image")},on:{click:e.onDelete},scopedSlots:e._u([{key:"icon",fn:function(){return[t("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):e._e()]):t("figcaption",[e._v(" "+e._s(e.alt)+" ")])])]),t("div",{staticClass:"image__modal"},[t("ShowImageModal",{attrs:{images:e.embeddedImageList,"start-index":e.imageIndex,show:e.showImageModal},on:{close:function(n){e.showImageModal=!1}}})],1)],1):e.canDisplayPlaceholder?t("div",{staticClass:"image__placeholder"},[t("NcBlurHash",{style:e.blurhashSize,attrs:{hash:e.imageBlurhash,"aria-hidden":"true"}})],1):t("div",{staticClass:"image-view__cant_display"},[t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__caption"},[t("input",{ref:"altInput",attrs:{type:"text",disabled:!e.isEditable},domProps:{value:e.alt},on:{blur:e.updateAlt,keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.updateAlt.apply(null,arguments)}}})])])],1),e.errorMessage?t("small",{staticClass:"image__error-message"},[e._v(" "+e._s(e.errorMessage)+" ")]):e._e()])])},cge=[],uge=Ee(age,lge,cge,!1,null,"0085ac7d");const OM=uge.exports,dge=FM.extend({selectable:!1,parseHTML(){return[{tag:this.options.allowBase64?"figure img[src]":'figure img[src]:not([src^="data:"])'}]},renderHTML(){return["img"]},addOptions(){return{...this.parent?.()}},addNodeView(){return Vo(OM)},addProseMirrorPlugins(){return[new kt({props:{handleDrop:(e,t,n)=>{if(t.dataTransfer.files&&t.dataTransfer.files.length>0){const r=e.posAtCoords({left:t.clientX,top:t.clientY}),i=new CustomEvent("file-drop",{bubbles:!0,detail:{files:t.dataTransfer.files,position:r.pos}});return t.target.dispatchEvent(i),!0}},handlePaste:(e,t,n)=>{if(t.clipboardData.files&&t.clipboardData.files.length>0){const r=new CustomEvent("image-paste",{bubbles:!0,detail:{files:t.clipboardData.files}});return t.target.dispatchEvent(r),!0}}}})]},toMarkdown(e,t,n,r){t.attrs.alt=t.attrs.alt.toString(),ih.nodes.image(e,t,n,r),e.closeBlock(t)}}),hge=FM.extend({name:"image-inline",priority:99,selectable:!1,parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addOptions(){return{...this.parent?.(),inline:!0}},addCommands(){return{}},addInputRules(){return[]},addNodeView(){return Vo(OM)},toMarkdown(e,t,n,r){return ih.nodes.image(e,t,n,r)}}),pge="listItem",$C="textStyle",UC=/^(\d+)\.\s$/,fge=bn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:e}){const{start:t,...n}=e;return t===1?["ol",Ft(this.options.HTMLAttributes,n),0]:["ol",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(pge,this.editor.getAttributes($C)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=wa({find:UC,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=wa({find:UC,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes($C)}),joinPredicate:(t,n)=>n.childCount+n.attrs.start===+t[1],editor:this.editor})),[e]}}),mge=fge.extend({addAttributes(){return{...this.parent?.(),isList:{default:!0,rendered:!1}}}}),gge=bn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Tge={name:"SmartPickerMenu",components:{PlusIcon:fx,NcButton:_i},methods:{t:xe}};var bge=function(){var e=this,t=e._self._c;return t("div",{staticClass:"smart-picker-menu-container",attrs:{contenteditable:"false"}},[t("NcButton",{attrs:{"aria-label":e.t("text","Open the Smart Picker"),type:"tertiary"},on:{click:function(n){return e.$emit("open-smart-picker")}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("PlusIcon")]},proxy:!0}])})],1)},Age=[],yge=Ee(Tge,bge,Age,!1,null,"a5581597");const Ege=yge.exports,vge=new Lt("currentLineMenu");function Dge({editor:e}){return new kt({key:vge,state:{init(t,n){if(!e.options.editable)return{decorations:Rt.empty};const r=zC(n);return{currentParagraph:r,decorations:VC(n.doc,r,e)}},apply(t,n,r,i){if(!e.options.editable)return{decorations:Rt.empty};const o=zC(i);if(!o)return{decorations:Rt.empty};const s=Sge(n,t,o)||VC(i.doc,o,e);return{currentParagraph:o,decorations:s}}},props:{decorations(t){return this.getState(t).decorations}}})}function Sge(e,t,n){if(e.currentParagraph?.pos!==n.pos)return!1;let r=!1;const i=e.decorations.map(t.mapping,t.doc,{onRemove:()=>{r=!0}});return r?!1:i}function zC({selection:e}){const{parent:t,depth:n}=e.$anchor;if(n>1)return!1;const r=n===0?0:e.$anchor.before(),i=n===1,o=!t.textContent.match(/(^| )\/$/);if(i&&o&&e.empty&&t.isTextblock&&!t.type.spec.code)return{pos:r}}function VC(e,t,n){if(!t)return Rt.empty;const r=[wge(t,n)];return Rt.create(e,r)}function wge(e,t){return xn.widget(e.pos+1,_ge(t),{side:-1})}function _ge(e){const t=document.createElement("div"),n=Mr.extend(Ege),r=new n;return r.$mount(t),r.$on("open-smart-picker",()=>{const{selection:i}=e.state,{textContent:o}=i.$anchor.parent,s=i.$anchor.end(),a=e.chain().focus().setTextSelection(s);o.trim()===""?a.insertContent("/").run():a.splitBlock().insertContent("/").run()}),r.$el}const Cge={name:"DotsVerticalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Nge=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon dots-vertical-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Fge=[],Oge=Ee(Cge,Nge,Fge,!1,null,null);const xge=Oge.exports,kge={name:"PreviewOptions",components:{DotsVerticalIcon:xge,NcActions:Os,NcActionButton:Ha,NcActionCaption:Yae,NcActionRadio:Uae,NcActionSeparator:XA,DeleteOutlineIcon:mx,OpenIcon:q3},props:{type:{type:String,required:!0},href:{type:String,default:""}},data(){return{open:!1}},methods:{onOpen(){this.$emit("open")},toggle(e){this.open=!1,this.$emit("toggle",e)},deleteNode(){this.$emit("delete")},openLink(){this.href&&window.open(this.href,"_blank").focus()},t:xe}};var Rge=function(){var e=this,t=e._self._c;return t("div",{staticClass:"preview-options-container",attrs:{contenteditable:"false"}},[t("NcActions",{staticClass:"preview-options",attrs:{"data-text-preview-options":"select",open:e.open},on:{"update:open":function(n){e.open=n},open:e.onOpen},scopedSlots:e._u([{key:"icon",fn:function(){return[t("DotsVerticalIcon",{attrs:{size:20}})]},proxy:!0}])},[t("NcActionCaption",{attrs:{name:e.t("text","Preview options")}}),t("NcActionRadio",{attrs:{"data-text-preview-option":"text-only",name:"preview-option",value:"text-only",checked:e.type==="text-only"},on:{change:n=>e.toggle(n.currentTarget.value)}},[e._v(" "+e._s(e.t("text","Text only"))+" ")]),t("NcActionRadio",{attrs:{"data-text-preview-option":"link-preview",name:"preview-option",value:"link-preview",checked:e.type==="link-preview"},on:{change:n=>e.toggle(n.currentTarget.value)}},[e._v(" "+e._s(e.t("text","Show link preview"))+" ")]),t("NcActionSeparator"),e.href?t("NcActionButton",{attrs:{"close-after-click":""},on:{click:e.openLink},scopedSlots:e._u([{key:"icon",fn:function(){return[t("OpenIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2504743223)},[e._v(" "+e._s(e.t("text","Open in new tab"))+" ")]):e._e(),t("NcActionButton",{attrs:{"close-after-click":""},on:{click:e.deleteNode},scopedSlots:e._u([{key:"icon",fn:function(){return[t("DeleteOutlineIcon",{attrs:{size:20}})]},proxy:!0}])},[e._v(" "+e._s(e.t("text","Remove link"))+" ")])],1)],1)},Mge=[],Bge=Ee(kge,Rge,Mge,!1,null,"b245856d");const Ige=Bge.exports;function jC(e){const t=[];return e.descendants((n,r)=>{Lge(n)?t.push(Object.freeze({pos:r,nodeSize:n.nodeSize,type:"text-only",href:xM(n.firstChild)})):n.type.name==="preview"&&t.push(Object.freeze({pos:r,nodeSize:n.nodeSize,type:"link-preview",href:n.attrs.href}))}),t}function Lge(e){if(e.type.name!=="paragraph"||Yge(e))return!1;const t=xM(e.firstChild);return!(!t||pm(t))}function Yge(e){return e.childCount>2||e.childCount===2&&e.lastChild.textContent.trim()}function xM(e){return e?e.marks.find(t=>t.type.name==="link")?.attrs.href:void 0}const Hge=new Lt("linkParagraphMenu");function Zge({editor:e}){return new kt({key:Hge,state:{init(t,{doc:n}){if(!e.options.editable)return{decorations:Rt.create()};const r=jC(n);return{linkParagraphs:r,decorations:GC(n,r,e)}},apply(t,n,r,i){if(!t.docChanged||!e.options.editable)return n;const o=jC(i.doc),s=Pge(n,t,o)||GC(i.doc,o,e);return{linkParagraphs:o,decorations:s}}},props:{decorations(t){return this.getState(t).decorations}}})}function Pge(e,t,n){if($ge(n,e.linkParagraphs))return!1;let r=!1;const i=e.decorations.map(t.mapping,t.doc,{onRemove:()=>{r=!0}});return r?!1:i}function $ge(e,t){return e.length!==t.length||e.some(Uge(t))}const Uge=e=>(t,n)=>t.type!==e[n].type||t.nodeSize!==e[n].nodeSize;function GC(e,t,n){const r=t.map(i=>zge(i,n));return Rt.create(e,r)}function zge(e,t){return xn.widget(e.pos+1,Vge(e,t),{side:-1})}function Vge({type:e,href:t,pos:n,nodeSize:r},i){const o=document.createElement("div"),s=Mr.extend(Ige),a={type:e,href:t},l=new s({propsData:a}).$mount(o);return l.$on("open",()=>{i.commands.hideLinkBubble()}),l.$on("toggle",c=>{jge(n,c,i)}),l.$on("delete",()=>{i.commands.deleteRange({from:n,to:n+r})}),l.$el}function jge(e,t,n){const r=n.chain().focus().setTextSelection(e+1);t!=="text-only"?r.setPreview().run():r.unsetPreview().run()}const Gge=gge.extend({parseHTML(){return this.parent?.()?.map(e=>Object.assign(e,{preserveWhitespace:"full"}))},addKeyboardShortcuts(){return{Backspace:()=>{const e=this.editor.state.selection;if(e.$from.parentOffset!==0)return!1;const t=e.$from.parent,n=e.$from.index(e.$from.depth-1);if(n===0)return!1;const r=e.$from.node(e.$from.depth-1).child(n-1);return t.type.name===this.name&&r.type.name===this.name?this.editor.chain().joinBackward().setHardBreak().run():!1}}},addProseMirrorPlugins(){return[Dge({editor:this.editor}),Zge({editor:this.editor})]}}),qge={name:"Preview",components:{NodeViewWrapper:zo,NodeViewContent:Pa,NcReferenceList:Nk},props:Yse};var Wge=function(){var e=this,t=e._self._c;return t("NodeViewWrapper",{staticClass:"preview",attrs:{"data-text-el":"preview",as:"div",contenteditable:"false"}},[t("NodeViewContent"),t("NcReferenceList",{attrs:{text:e.node.attrs.href,limit:1,interactive:!e.extension.options.isEmbedded,"display-fallback":!0}})],1)},Kge=[],Qge=Ee(qge,Wge,Kge,!1,null,"d76f988d");const Jge=Qge.exports,Xge=bn.create({name:"preview",group:"block",content:"text?",atom:!0,marks:"link",isolating:!0,addOptions(){return{isEmbedded:!1,relativePath:null}},addAttributes(){return{href:{parseHTML:hN},title:{parseHTML:e=>e.getAttribute("title")}}},parseHTML(){return[{tag:'a[title="preview"]',priority:1001}]},renderHTML({node:e}){return["a",{...e.attrs,href:Kb(e,this.options.relativePath),rel:"noopener noreferrer nofollow"},0]},addNodeView(){return Vo(Jge)},toMarkdown:(e,t)=>{e.write("["),e.text(t.textContent,!1),e.write(`](${t.attrs.href} (${t.attrs.title}))`),e.closeBlock(t)},addCommands(){return{setPreview:()=>({state:e,chain:t})=>nTe(e)&&t().setNode(this.name,eTe(e)).run(),unsetPreview:()=>({state:e,chain:t})=>tTe(this.name,this.attributes,e)&&t().setNode("paragraph").run(),insertPreview:e=>({state:t,chain:n})=>n().insertContent({type:"preview",attrs:{href:e,title:"preview"},content:[{type:"text",marks:[{type:"link",attrs:{href:e}}],text:e}]}).run()}}});function eTe({selection:e}){const{$from:t}=e;return{href:kM(t.nodeAfter),title:"preview"}}function tTe(e,t,n){const r=nr(e,n.schema);return Ds(n,r,t)}function nTe({selection:e}){const{$from:t}=e;if(rTe(t.parent))return!1;const n=kM(t.parent.firstChild);return!(!n||pm(n))}function rTe(e){return e.childCount>2||e.childCount===2&&e.lastChild.textContent.trim()}function kM(e){return e?e.marks.find(t=>t.type.name==="link")?.attrs.href:void 0}const iTe=/^\s*(\[([( |x])?\])\s$/,oTe=bn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return t===""||t==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{const i=document.createElement("li"),o=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),c=()=>{var u,d;a.ariaLabel=((d=(u=this.options.a11y)===null||u===void 0?void 0:u.checkboxLabel)===null||d===void 0?void 0:d.call(u,e,a.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};return c(),o.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",u=>u.preventDefault()),a.addEventListener("change",u=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:d}=u.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:h})=>{const p=n();if(typeof p!="number")return!1;const m=h.doc.nodeAt(p);return h.setNodeMarkup(p,void 0,{...m?.attrs,checked:d}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,d)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([u,d])=>{i.setAttribute(u,d)}),i.dataset.checked=e.attrs.checked,a.checked=e.attrs.checked,o.append(a,s),i.append(o,l),Object.entries(t).forEach(([u,d])=>{i.setAttribute(u,d)}),{dom:i,contentDOM:l,update:u=>u.type!==this.type?!1:(i.dataset.checked=u.attrs.checked,a.checked=u.attrs.checked,c(),!0)}}},addInputRules(){return[wa({find:iTe,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),sTe=(e,t)=>{for(let n=e.depth;n>0;n--){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}},aTe=oTe.extend({addOptions(){return{nested:!0,HTMLAttributes:{}}},draggable:!1,content:"paragraph block*",addAttributes(){const e={...this.parent()};return e.checked.parseHTML=t=>t.querySelector("input[type=checkbox]")?.checked,e},parseHTML:[{priority:101,tag:"li",getAttrs:e=>e.querySelector("input[type=checkbox]"),context:"taskList/"}],renderHTML({node:e,HTMLAttributes:t}){const n={class:"task-list-item checkbox-item"},r={type:"checkbox",class:"",contenteditable:!1};return e.attrs.checked&&(r.checked=!0,n.class+=" checked"),["li",Ft(t,n),["input",r],["label",0]]},addNodeView:!1,toMarkdown:(e,t)=>{e.write(`[${t.attrs.checked?"x":" "}] `),e.renderContent(t)},addInputRules(){return[...this.parent(),wa({find:/^\s*([-+*])\s(\[(x|X|\s)?\])\s$/,type:this.type,getAttributes:e=>({checked:"xX".includes(e[e.length-1])})})]},addProseMirrorPlugins(){return[new kt({props:{handleClick:(e,t,n)=>{const r=e.state,i=r.schema,o=e.posAtCoords({left:n.clientX,top:n.clientY}),s=r.doc.resolve(o.pos),a=sTe(s,function(c){return c.type===i.nodes.taskItem||c.type===i.nodes.listItem});if(n.target.tagName.toLowerCase()!=="li"||!a||a.node.type!==i.nodes.taskItem||!e.editable)return;const l=r.tr;l.setNodeMarkup(a.pos,i.nodes.taskItem,{checked:!a.node.attrs.checked}),e.dispatch(l)}}})]}}),lTe=bn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return["ul",Ft(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),cTe=lTe.extend({parseHTML:[{priority:100,tag:"ul.contains-task-list"}],renderHTML({HTMLAttributes:e}){return["ul",Ft(this.options.HTMLAttributes,e,{class:"contains-task-list"}),0]},addAttributes(){return{...this.parent?.(),isList:{default:!0,rendered:!1},bullet:{default:"-",rendered:!1,isRequired:!0,parseHTML:e=>e.getAttribute("data-bullet")}}},toMarkdown:(e,t)=>{e.renderList(t,"  ",()=>`${t.attrs.bullet} `)}});function qC({types:e,node:t}){return Array.isArray(e)&&e.includes(t.type)||t.type===e}const uTe=pn.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:["paragraph"]}},addProseMirrorPlugins(){const e=new Lt(this.name),t=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>this.options.notAfter.includes(n.name));return[new kt({key:e,appendTransaction:(n,r,i)=>{const{doc:o,tr:s,schema:a}=i,l=e.getState(i),c=o.content.size,u=a.nodes[this.options.node];if(l)return s.insert(c,u.create())},state:{init:(n,r)=>{const i=r.tr.doc.lastChild;return!qC({node:i,types:t})},apply:(n,r)=>{if(!n.docChanged)return r;const i=n.doc.lastChild;return!qC({node:i,types:t})}}})]}}),dTe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,hTe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,pTe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,fTe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,mTe=so.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>e.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Ss({find:dTe,type:this.type}),Ss({find:pTe,type:this.type})]},addPasteRules(){return[ws({find:hTe,type:this.type}),ws({find:fTe,type:this.type})]}}),uE="[\0-   ᠎ -\u2029  ]",gTe=new RegExp(uE),TTe=new RegExp(`${uE}$`),bTe=new RegExp(uE,"g");function ATe(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function yTe(e){return new kt({key:new Lt("autolink"),appendTransaction:(t,n,r)=>{const i=t.some(l=>l.docChanged)&&!n.doc.eq(r.doc),o=t.some(l=>l.getMeta("preventAutolink"));if(!i||o)return;const{tr:s}=r,a=UF(n.doc,[...t]);if(qF(a).forEach(({newRange:l})=>{const c=zF(r.doc,l,h=>h.isTextblock);let u,d;if(c.length>1)u=c[0],d=r.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ");else if(c.length){const h=r.doc.textBetween(l.from,l.to," "," ");if(!TTe.test(h))return;u=c[0],d=r.doc.textBetween(u.pos,l.to,void 0," ")}if(u&&d){const h=d.split(gTe).filter(Boolean);if(h.length<=0)return!1;const p=h[h.length-1],m=u.pos+d.lastIndexOf(p);if(!p)return!1;const b=n1(p).map(A=>A.toObject(e.defaultProtocol));if(!ATe(b))return!1;b.filter(A=>A.isLink).map(A=>({...A,from:m+A.start+1,to:m+A.end+1})).filter(A=>r.schema.marks.code?!r.doc.rangeHasMark(A.from,A.to,r.schema.marks.code):!0).filter(A=>e.validate(A.value)).filter(A=>e.shouldAutoLink(A.value)).forEach(A=>{yA(A.from,A.to,r.doc).some(v=>v.mark.type===e.type)||s.addMark(A.from,A.to,e.type.create({href:A.href}))})}}),!!s.steps.length)return s}})}function ETe(e){return new kt({key:new Lt("handleClickLink"),props:{handleClick:(t,n,r)=>{var i,o;if(r.button!==0||!t.editable)return!1;let s=r.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(h=>h.nodeName==="A"))return!1;const l=GF(t.state,e.type.name),c=r.target,u=(i=c?.href)!==null&&i!==void 0?i:l.href,d=(o=c?.target)!==null&&o!==void 0?o:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function vTe(e){return new kt({key:new Lt("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:i}=t,{selection:o}=i,{empty:s}=o;if(s)return!1;let a="";r.content.forEach(c=>{a+=c.textContent});const l=D3(a,{defaultProtocol:e.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function sl(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!e||e.replace(bTe,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const DTe=so.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e=="string"){b_(e);return}b_(e.scheme,e.optionalSlashes)})},onDestroy(){gle()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!sl(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!t||!this.options.isAllowedUri(t,{defaultValidate:n=>!!sl(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:t=>!!sl(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ft(this.options.HTMLAttributes,e),0]:["a",Ft(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!sl(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:t})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:r=>!!sl(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[ws({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,i=D3(e).filter(o=>o.isLink&&this.options.isAllowedUri(o.value,{defaultValidate:s=>!!sl(s,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(o=>t.push({text:o.value,data:{href:o.href},index:o.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:(t=e.data)===null||t===void 0?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(yTe({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:i=>!!sl(i,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(ETe({type:this.type})),this.options.linkOnPaste&&e.push(vTe({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),STe=["http:","https:","mailto:","tel:"],wTe=e=>({href:e.groups.href}),_Te=e=>(e.pop(),wTe(e)),CTe=DTe.extend({addOptions(){return{...this.parent?.(),relativePath:null}},addAttributes(){return{href:{default:null},title:{default:null}}},inclusive:!1,parseHTML:[{tag:"a[href]",getAttrs:e=>({href:hN(e),title:e.getAttribute("title")})}],renderHTML(e){const{mark:t}=e;let n;try{const r=new URL(t.attrs.href,window.location);n=STe.includes(r.protocol)?Kb(t,this.options.relativePath):"#"}catch{n="#"}return["a",{...t.attrs,href:n,"data-text-el":"text-only-link","data-md-href":t.attrs.href,rel:"noopener noreferrer nofollow"},0]},addInputRules(){return[Ss({find:/(?:^|\s)\[([\w|\s|-]+)\]\((?<href>.+?)\)$/gm,type:this.type,getAttributes:_Te})]},addCommands(){return{...this.parent?.(),insertOrSetLink:(e,t)=>({state:n,chain:r,commands:i})=>{if(n.selection.empty){if(Qp(n,this.name)){let o="";return n.selection.$anchor.marks().forEach(s=>{s.attrs.href&&s.type.name==="link"&&(o=s.attrs.href)}),i.deleteRange(wm(n.selection.$anchor,n.schema.marks.link,{href:o})),r().insertContent({type:"text",marks:[{type:"link",attrs:t}],text:e})}return r().insertContent({type:"paragraph",content:[{type:"text",marks:[{type:"link",attrs:t}],text:e}]})}else return i.setLink(t)}}},addKeyboardShortcuts(){return{"Mod-k":()=>{const{empty:e}=this.editor.state.selection;return e?(console.debug("empty selection"),!1):(console.debug("toggle link for selection"),this.editor.commands.toggleLink({href:""}))}}},addProseMirrorPlugins(){return[...this.parent().filter(({key:e})=>!e.startsWith("handleClickLink")&&!e.startsWith("textHandleClickLink")),che()]}}),NTe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,FTe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,OTe=so.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["s",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Ss({find:NTe,type:this.type})]},addPasteRules(){return[ws({find:FTe,type:this.type})]}}),xTe=OTe.extend({parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:e=>e==="line-through"}]},renderHTML(){return["s",0]},toMarkdown:{open:"~~",close:"~~",mixable:!0,expelEnclosingWhitespace:!0}}),RM=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,MM=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,BM=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,IM=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,kTe=so.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Ss({find:RM,type:this.type}),Ss({find:BM,type:this.type})]},addPasteRules(){return[ws({find:MM,type:this.type}),ws({find:IM,type:this.type})]}}),RTe=kTe.extend({name:"strong",addInputRules(){return[Ss({find:RM,type:this.type})]},addPasteRules(){return[ws({find:MM,type:this.type})]}}),MTe=so.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>e.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:e}){return["u",Ft(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),BTe=MTe.extend({parseHTML(){return[{tag:"u"},{style:"text-decoration",getAttrs:e=>e==="underline"}]},renderHTML(){return["u",0]},toMarkdown:{open:"__",close:"__",mixable:!0,expelEnclosingWhitespace:!0},addInputRules(){return[Ss({find:BM,type:this.type})]},addPasteRules(){return[ws({find:IM,type:this.type})]}}),ITe=mTe.extend({name:"em"}),LM=Die(Eie);LM.registerAlias("plaintext","mermaid");const Hbe=pn.create({name:"RichText",addOptions(){return{connection:null,editing:!0,extensions:[],relativePath:null,isEmbedded:!1}},addExtensions(){const e=[fR,hae,p3,Gge,Q1e,Ide,RTe,ITe,xTe,aae,lae,dae,ame.configure({lowlight:LM,defaultLanguage:"plaintext"}),wme,Spe,Sae,mge,wae,this.options.editing?q1e:NM,cTe,aTe,xpe,Xge.configure({isEmbedded:this.options.isEmbedded}),BTe,dge,hge,mae.configure({color:"var(--color-primary-element)",width:2}),Dae,Bie,h3,W1e,tae.configure({suggestion:Cde({connection:this.options.connection})}),Mhe,kie.configure({suggestion:$de()}),Che,CTe.configure({openOnClick:!0,shouldAutoLink:n=>/^https?:\/\//.test(n),relativePath:this.options.relativePath}),uhe,uTe,Zhe.configure({types:["blockquote","callout","detailsSummary","heading","listItem","paragraph","tableCell","tableHeader","taskItem"]}),ype],t=this.options.extensions.map(n=>n.name);return[...e.filter(n=>n&&!t.includes(n.name)),...this.options.extensions]}});class id{constructor(t,n,r){this.from=t,this.to=n,this.author=r}}function LTe(e,t,n){const r=[],i=t.mapping;for(let o=0;o<e.length;o++){const s=e[o],a=i.map(s.from,1),l=i.map(s.to,-1);a<l&&r.push(new id(a,l,s.author))}for(let o=0;o<i.maps.length;o++){const s=i.maps[o],a=i.slice(o+1);s.forEach((l,c,u,d)=>{YTe(r,a.map(u,1),a.map(d,-1),n[o])})}return r}function YTe(e,t,n,r){if(t>=n)return;let i=0,o;for(;i<e.length;i++)if(o=e[i],o.author===r){if(o.to>=t)break}else if(o.to>t){if(o.from<t){const s=new id(o.from,t,o.author);o.to>n?e.splice(i++,0,s):e[i++]=s}break}for(;o=e[i];)if(o.author===r){if(o.from>n)break;t=Math.min(t,o.from),n=Math.max(n,o.to),e.splice(i,1)}else{if(o.from>=n)break;if(o.to>n){e[i]=new id(n,o.to,o.author);break}else e.splice(i,1)}e.splice(i,0,new id(t,n,r))}class dE{constructor(t){this.blameMap=t}applyTransform(t){const n=t.getMeta("clientID")??t.steps.map(i=>"self"),r=LTe(this.blameMap,t,n);return new dE(r)}}pn.create({name:"users",addOptions(){return{clientID:0,color:e=>"#"+Math.floor(Math.abs(Math.sin(e)*16777215)%16777215).toString(16)+"aa",name:e=>"Unknown user "+e}},addProseMirrorPlugins(){let e=null;return[new kt({clientID:this.options.clientID,color:this.options.color,name:this.options.name,view:t=>(e=t,{}),state:{init(t,n){return{tracked:new dE([new id(0,n.doc.content.size,null)],[],[],[]),deco:Rt.empty}},apply(t,n,r,i){let{tracked:o,decos:s}=n,a=this.getState(r).tracked;return t.docChanged&&(t.getMeta("clientID")||t.setMeta("clientID",t.steps.map(l=>this.spec.clientID)),e.composing||(o=o.applyTransform(t),a=o)),s=a.blameMap.map(l=>{const c=l.author;return xn.inline(l.from,l.to,{class:"author-annotation",style:"background-color: "+this.spec.color(c)+"66;",title:this.spec.name(c)})}).filter(l=>l!==null),{tracked:o,deco:Rt.create(i.doc,s)}}},props:{decorations(t){return this.getState(t).deco}}})]}});const HTe={name:"TableOfContents",setup(){const{editor:e}=ax();return{editor:e}},data:()=>({initialRender:!0,headings:[]}),mounted(){this.editor.on("update",this.updateHeadings),this.updateHeadings(),setTimeout(()=>{this.initialRender=!1},1e3)},beforeDestroy(){this.editor.off("update",this.updateHeadings)},methods:{goto(e){this.$root.$el.querySelector(`#${e.id}`).scrollIntoView({block:"start",behavior:"smooth"}),this.$nextTick(()=>{window.history.replaceState(window.history.state,"",`#${e.id}`)})},updateHeadings(){this.headings=j3.getState(this.editor.state)?.headings??[]}}};var ZTe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"editor--toc",class:{"--initial-render":e.initialRender},attrs:{"data-text-el":"editor-table-of-contents"}},[t("ul",{staticClass:"editor--toc__list"},e._l(e.headings,function(n){return t("li",{key:n.id,staticClass:"editor--toc__item",class:{[`editor--toc__item--${n.level}`]:!0,[`editor--toc__item--previous-${n.previous}`]:n.previous>0},attrs:{"data-toc-level":n.level}},[t("a",{staticClass:"editor--toc__item-link",attrs:{href:`#${n.id}`},on:{click:function(r){return r.preventDefault(),e.goto(n)}}},[e._v(" "+e._s(n.text)+" ")])])}),0)])},PTe=[],$Te=Ee(HTe,ZTe,PTe,!1,null,null);const UTe=$Te.exports,zTe={name:"EditorOutline",components:{Close:zz,NcButton:_i,TableOfContents:UTe},mixins:[dN,Sx,wx],methods:{t:xe}};var VTe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"editor--outline",class:{"editor--outline-mobile":e.$isMobile},attrs:{"data-text-el":"editor-outline"}},[t("header",{staticClass:"editor--outline__header"},[t("NcButton",{staticClass:"editor--outline__btn-close",attrs:{type:"tertiary","aria-label":e.t("text","Close outline view")},on:{click:e.$outlineActions.toggle},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close")]},proxy:!0}])}),t("h2",[e._v(e._s(e.t("text","Outline")))])],1),t("TableOfContents")],1)},jTe=[],GTe=Ee(zTe,VTe,jTe,!1,null,"9c8d928c");const Zbe=GTe.exports;export{Ebe as $,cx as A,eu as B,Kne as C,Tbe as D,Zbe as E,xbe as F,_be as G,LH as H,lH as I,tr as J,cS as K,hn as L,$p as M,jx as N,$o as O,Mbe as P,zr as Q,Hbe as R,lbe as S,ube as T,sY as U,df as V,ey as W,XA as X,Il as Y,mS as Z,_x as _,wx as a,ybe as a0,JA as a1,ct as a2,Rt as a3,xn as a4,Zp as a5,UN as a6,gl as a7,uf as a8,Zc as a9,cbe as aA,Une as aB,vne as aC,Sbe as aD,Lbe as aE,Ez as aF,vP as aG,mx as aH,Rbe as aI,xL as aJ,phe as aK,Li as aL,$V as aM,_V as aN,AV as aO,Gz as aP,yV as aQ,eJ as aR,Ck as aS,RJ as aT,aw as aU,tH as aV,hbe as aW,bbe as aX,Obe as aY,gJ as aZ,Abe as aa,GV as ab,jV as ac,VV as ad,WV as ae,Ct as af,mbe as ag,Pq as ah,pbe as ai,gbe as aj,fbe as ak,vbe as al,bc as am,tj as an,wbe as ao,Nbe as ap,Ej as aq,gj as ar,Die as as,ere as at,_l as au,As as av,YA as aw,U8 as ax,Ya as ay,Oa as az,kbe as b,abe as c,Fbe as d,px as e,kt as f,Lt as g,pn as h,Dbe as i,lx as j,Iq as k,Ha as l,th as m,Ibe as n,Bbe as o,dbe as p,Ile as q,ty as r,Lm as s,zm as t,Sx as u,Nx as v,ZV as w,Cbe as x,nk as y,ax as z};
//# sourceMappingURL=EditorOutline-CqmB-AYU.chunk.mjs.map