← Back
Editing: Wrapper-g9rQ14Xc.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/preload-helper-BorfeO-5.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-B7-PK3p1.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor-h9EWaODT.chunk.mjs'),window.OC.filePath('text', '', 'js/index-CdM8BgQf.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-hi3Hwbeu.chunk.mjs'),window.OC.filePath('text', '', 'js/index-kwZOOyqh.chunk.mjs'),window.OC.filePath('text', '', 'js/NcLoadingIcon-CBTC2zMe.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DCzdQJ7L.chunk.mjs'),window.OC.filePath('text', '', 'css/NcLoadingIcon-KhuNWNbx.chunk.css'),window.OC.filePath('text', '', 'js/NcNoteCard-CwNXZ4vV-Dyi378DT.chunk.mjs'),window.OC.filePath('text', '', 'js/index-D3wiQe9-.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Bnw2WuIx.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CwNXZ4vV-CAMZkS3U.chunk.css'),window.OC.filePath('text', '', 'js/MediaHandler.provider-BoQN9QHH.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-DS8A9d_w.chunk.mjs'),window.OC.filePath('text', '', 'js/MenuBar-yxPsXXVM.chunk.mjs'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-CgbTELjq-BFpDVXaF.chunk.mjs'),window.OC.filePath('text', '', 'css/NcCheckboxRadioSwitch-CgbTELjq-yZHRUesB.chunk.css'),window.OC.filePath('text', '', 'css/MenuBar-nIM-GMTV.chunk.css'),window.OC.filePath('text', '', 'css/Editor-WVhMK67-.chunk.css'),window.OC.filePath('text', '', 'css/text-BrKBJp1J.chunk.css'),window.OC.filePath('text', '', 'js/index-BMbtc3xh-CIFfGXha.chunk.mjs'),window.OC.filePath('text', '', 'js/mermaid.core-BHWH4e1q.chunk.mjs')])))=>i.map(i=>d[i]); import{e as Ku,g as C5,B as o3,n as qt,N as rp,c as qn,t as lt,G as Xs,r as ar,q as VI,b as Xe,s as Qx,u as jI,v as Jx,w as GI,x as qI,y as WI,z as KI,d as np,A as QI,C as Xx,D as JI,E as XI,F as eL,H as ek,I as tL,J as tk,K as rL,j as nL,L as iL,M as oL,O as sL,P as rk,Q as nk,R as aL,m as lL,S as uL,T as cL,U as dL,V as hL,W as pL,X as fL,Y as mL,Z as gL,_ as ik,$ as yL,a0 as TL,a1 as bL,a2 as vL,a3 as AL,a4 as EL,a5 as wL,a6 as SL,a7 as DL,a8 as xL,a9 as kL,aa as CL,ab as _L,ac as NL,ad as FL,ae as OL,af as ML,ag as RL}from"./NcLoadingIcon-CBTC2zMe.chunk.mjs";import{g as bo,a as _s,c as wA,d as BL,i as IL}from"./index-DCzdQJ7L.chunk.mjs";import{g as SA,i as wl,p as Sl,s as x2,r as _i,c as ri,f as ld,d as _5,w as u0,V as ea,n as s3,x as LL,a as Uf,u as ok,j as ud,h as zL,e as Mb,o as YL,z as sk}from"./vue.runtime.esm-B7-PK3p1.chunk.mjs";import{l as bi}from"./logger-DS8A9d_w.chunk.mjs";import{p as Ds,s as xu,e as Io,b as Rb,g as kh,u as jg,r as HL,c as PL,d as ZL}from"./index-CdM8BgQf.chunk.mjs";import{l as zu,d as $L}from"./index-D3wiQe9-.chunk.mjs";import{g as D0,c as i0,e as dh,d as ak,a as lk}from"./emoji-picker-hi3Hwbeu.chunk.mjs";import{_ as S1}from"./preload-helper-BorfeO-5.chunk.mjs";import{n as Ze,u as Ra}from"./NcCheckboxRadioSwitch-CgbTELjq-BFpDVXaF.chunk.mjs";import{i as UL,m as VL,k as uk,e as Nl,S as ck,N as as,l as pi,h as wa,o as dk,p as jL,q as GL,r as qL,v as WL,f as Fo,w as KL,x as QL,y as DA,z as Gg,A as Ry,B as JL,C as XL,D as hk,E as ez,d as a3,F as pk,G as fk,u as mk,H as tz,j as Vf,g as xA,I as rz,t as Hd,J as nz,K as iz,a as gk,s as uu,c as l3,L as oz,M as sz,O as az,P as lz,Q as uz,T as $m}from"./NcNoteCard-CwNXZ4vV-Dyi378DT.chunk.mjs";import{e as yk,f as cz,g as dz,c as hz,h as pz,d as Bb,i as fz,j as Ib,k as Lb,p as Tk,l as mz,S as gz,m as yz,n as Tz,b as bz}from"./MediaHandler.provider-BoQN9QHH.chunk.mjs";const $I="text",UI="7.0.0-dev.3";function vz(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(Ku()),r=e.getWeekInfo?.()??e.weekInfo;return r?r.firstDay%7:1}function Az(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=Ku();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"long"})]}function Ez(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=Ku();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"short"})]}function wz(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=Ku();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"narrow"})]}function Sz(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=Ku();return[new Date(1970,0).toLocaleDateString(e,{month:"long"}),new Date(1970,1).toLocaleDateString(e,{month:"long"}),new Date(1970,2).toLocaleDateString(e,{month:"long"}),new Date(1970,3).toLocaleDateString(e,{month:"long"}),new Date(1970,4).toLocaleDateString(e,{month:"long"}),new Date(1970,5).toLocaleDateString(e,{month:"long"}),new Date(1970,6).toLocaleDateString(e,{month:"long"}),new Date(1970,7).toLocaleDateString(e,{month:"long"}),new Date(1970,8).toLocaleDateString(e,{month:"long"}),new Date(1970,9).toLocaleDateString(e,{month:"long"}),new Date(1970,10).toLocaleDateString(e,{month:"long"}),new Date(1970,11).toLocaleDateString(e,{month:"long"})]}function Dz(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=Ku();return[new Date(1970,0).toLocaleDateString(e,{month:"short"}),new Date(1970,1).toLocaleDateString(e,{month:"short"}),new Date(1970,2).toLocaleDateString(e,{month:"short"}),new Date(1970,3).toLocaleDateString(e,{month:"short"}),new Date(1970,4).toLocaleDateString(e,{month:"short"}),new Date(1970,5).toLocaleDateString(e,{month:"short"}),new Date(1970,6).toLocaleDateString(e,{month:"short"}),new Date(1970,7).toLocaleDateString(e,{month:"short"}),new Date(1970,8).toLocaleDateString(e,{month:"short"}),new Date(1970,9).toLocaleDateString(e,{month:"short"}),new Date(1970,10).toLocaleDateString(e,{month:"short"}),new Date(1970,11).toLocaleDateString(e,{month:"short"})]}function xz(e=Date.now(),r={}){const n={ignoreSeconds:!1,language:C5(),relativeTime:"long",...r},i=new Date(e),o=new Intl.RelativeTimeFormat([n.language,C5()],{numeric:"auto",style:n.relativeTime}),s=(i.getTime()-Date.now())/1e3;if(Math.abs(s)<59.5)return n.ignoreSeconds||o.format(Math.round(s),"second");const a=s/60;if(Math.abs(a)<=59)return o.format(Math.round(a),"minute");const l=a/60;if(Math.abs(l)<23.5)return o.format(Math.round(l),"hour");const u=l/24;if(Math.abs(u)<6.5)return o.format(Math.round(u),"day");if(Math.abs(u)<27.5){const h=u/7;return o.format(Math.round(h),"week")}const c=u/30,d=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,C5()],d).format(i)}function to(e){this.content=e}to.prototype={constructor:to,find:function(e){for(var r=0;r<this.content.length;r+=2)if(this.content[r]===e)return r;return-1},get:function(e){var r=this.find(e);return r==-1?void 0:this.content[r+1]},update:function(e,r,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),s=i.content.slice();return o==-1?s.push(n||e,r):(s[o+1]=r,n&&(s[o]=n)),new to(s)},remove:function(e){var r=this.find(e);if(r==-1)return this;var n=this.content.slice();return n.splice(r,2),new to(n)},addToStart:function(e,r){return new to([e,r].concat(this.remove(e).content))},addToEnd:function(e,r){var n=this.remove(e).content.slice();return n.push(e,r),new to(n)},addBefore:function(e,r,n){var i=this.remove(r),o=i.content.slice(),s=i.find(e);return o.splice(s==-1?o.length:s,0,r,n),new to(o)},forEach:function(e){for(var r=0;r<this.content.length;r+=2)e(this.content[r],this.content[r+1])},prepend:function(e){return e=to.from(e),e.size?new to(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=to.from(e),e.size?new to(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var r=this;e=to.from(e);for(var n=0;n<e.content.length;n+=2)r=r.remove(e.content[n]);return r},toObject:function(){var e={};return this.forEach(function(r,n){e[r]=n}),e},get size(){return this.content.length>>1}},to.from=function(e){if(e instanceof to)return e;var r=[];if(e)for(var n in e)r.push(n,e[n]);return new to(r)};function bk(e,r,n){for(let i=0;;i++){if(i==e.childCount||i==r.childCount)return e.childCount==r.childCount?null:n;let o=e.child(i),s=r.child(i);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(let a=0;o.text[a]==s.text[a];a++)n++;return n}if(o.content.size||s.content.size){let a=bk(o.content,s.content,n+1);if(a!=null)return a}n+=o.nodeSize}}function vk(e,r,n,i){for(let o=e.childCount,s=r.childCount;;){if(o==0||s==0)return o==s?null:{a:n,b:i};let a=e.child(--o),l=r.child(--s),u=a.nodeSize;if(a==l){n-=u,i-=u;continue}if(!a.sameMarkup(l))return{a:n,b:i};if(a.isText&&a.text!=l.text){let c=0,d=Math.min(a.text.length,l.text.length);for(;c<d&&a.text[a.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,i--;return{a:n,b:i}}if(a.content.size||l.content.size){let c=vk(a.content,l.content,n-1,i-1);if(c)return c}n-=u,i-=u}}class ze{constructor(r,n){if(this.content=r,this.size=n||0,n==null)for(let i=0;i<r.length;i++)this.size+=r[i].nodeSize}nodesBetween(r,n,i,o=0,s){for(let a=0,l=0;l<n;a++){let u=this.content[a],c=l+u.nodeSize;if(c>r&&i(u,o+l,s||null,a)!==!1&&u.content.size){let d=l+1;u.nodesBetween(Math.max(0,r-d),Math.min(u.content.size,n-d),i,o+d)}l=c}}descendants(r){this.nodesBetween(0,this.size,r)}textBetween(r,n,i,o){let s="",a=!0;return this.nodesBetween(r,n,(l,u)=>{let c=l.isText?l.text.slice(Math.max(r,u)-u,n-u):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&i&&(a?a=!1:s+=i),s+=c},0),s}append(r){if(!r.size)return this;if(!this.size)return r;let n=this.lastChild,i=r.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(i)&&(o[o.length-1]=n.withText(n.text+i.text),s=1);s<r.content.length;s++)o.push(r.content[s]);return new ze(o,this.size+r.size)}cut(r,n=this.size){if(r==0&&n==this.size)return this;let i=[],o=0;if(n>r)for(let s=0,a=0;a<n;s++){let l=this.content[s],u=a+l.nodeSize;u>r&&((a<r||u>n)&&(l.isText?l=l.cut(Math.max(0,r-a),Math.min(l.text.length,n-a)):l=l.cut(Math.max(0,r-a-1),Math.min(l.content.size,n-a-1))),i.push(l),o+=l.nodeSize),a=u}return new ze(i,o)}cutByIndex(r,n){return r==n?ze.empty:r==0&&n==this.content.length?this:new ze(this.content.slice(r,n))}replaceChild(r,n){let i=this.content[r];if(i==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-i.nodeSize;return o[r]=n,new ze(o,s)}addToStart(r){return new ze([r].concat(this.content),this.size+r.nodeSize)}addToEnd(r){return new ze(this.content.concat(r),this.size+r.nodeSize)}eq(r){if(this.content.length!=r.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(r.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(r){let n=this.content[r];if(!n)throw new RangeError("Index "+r+" out of range for "+this);return n}maybeChild(r){return this.content[r]||null}forEach(r){for(let n=0,i=0;n<this.content.length;n++){let o=this.content[n];r(o,i,n),i+=o.nodeSize}}findDiffStart(r,n=0){return bk(this,r,n)}findDiffEnd(r,n=this.size,i=r.size){return vk(this,r,n,i)}findIndex(r){if(r==0)return Um(0,r);if(r==this.size)return Um(this.content.length,r);if(r>this.size||r<0)throw new RangeError(`Position ${r} outside of fragment (${this})`);for(let n=0,i=0;;n++){let o=this.child(n),s=i+o.nodeSize;if(s>=r)return s==r?Um(n+1,s):Um(n,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(r=>r.toJSON()):null}static fromJSON(r,n){if(!n)return ze.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ze(n.map(r.nodeFromJSON))}static fromArray(r){if(!r.length)return ze.empty;let n,i=0;for(let o=0;o<r.length;o++){let s=r[o];i+=s.nodeSize,o&&s.isText&&r[o-1].sameMarkup(s)?(n||(n=r.slice(0,o)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new ze(n||r,i)}static from(r){if(!r)return ze.empty;if(r instanceof ze)return r;if(Array.isArray(r))return this.fromArray(r);if(r.attrs)return new ze([r],r.nodeSize);throw new RangeError("Can not convert "+r+" to a Fragment"+(r.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ze.empty=new ze([],0);const N5={index:0,offset:0};function Um(e,r){return N5.index=e,N5.offset=r,N5}function k2(e,r){if(e===r)return!0;if(!(e&&typeof e=="object")||!(r&&typeof r=="object"))return!1;let n=Array.isArray(e);if(Array.isArray(r)!=n)return!1;if(n){if(e.length!=r.length)return!1;for(let i=0;i<e.length;i++)if(!k2(e[i],r[i]))return!1}else{for(let i in e)if(!(i in r)||!k2(e[i],r[i]))return!1;for(let i in r)if(!(i in e))return!1}return!0}let en=class By{constructor(r,n){this.type=r,this.attrs=n}addToSet(r){let n,i=!1;for(let o=0;o<r.length;o++){let s=r[o];if(this.eq(s))return r;if(this.type.excludes(s.type))n||(n=r.slice(0,o));else{if(s.type.excludes(this.type))return r;!i&&s.type.rank>this.type.rank&&(n||(n=r.slice(0,o)),n.push(this),i=!0),n&&n.push(s)}}return n||(n=r.slice()),i||n.push(this),n}removeFromSet(r){for(let n=0;n<r.length;n++)if(this.eq(r[n]))return r.slice(0,n).concat(r.slice(n+1));return r}isInSet(r){for(let n=0;n<r.length;n++)if(this.eq(r[n]))return!0;return!1}eq(r){return this==r||this.type==r.type&&k2(this.attrs,r.attrs)}toJSON(){let r={type:this.type.name};for(let n in this.attrs){r.attrs=this.attrs;break}return r}static fromJSON(r,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let i=r.marks[n.type];if(!i)throw new RangeError(`There is no mark type ${n.type} in this schema`);let o=i.create(n.attrs);return i.checkAttrs(o.attrs),o}static sameSet(r,n){if(r==n)return!0;if(r.length!=n.length)return!1;for(let i=0;i<r.length;i++)if(!r[i].eq(n[i]))return!1;return!0}static setFrom(r){if(!r||Array.isArray(r)&&r.length==0)return By.none;if(r instanceof By)return[r];let n=r.slice();return n.sort((i,o)=>i.type.rank-o.type.rank),n}};en.none=[];class C2 extends Error{}class ht{constructor(r,n,i){this.content=r,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(r,n){let i=Ek(this.content,r+this.openStart,n);return i&&new ht(i,this.openStart,this.openEnd)}removeBetween(r,n){return new ht(Ak(this.content,r+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(r){return this.content.eq(r.content)&&this.openStart==r.openStart&&this.openEnd==r.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let r={content:this.content.toJSON()};return this.openStart>0&&(r.openStart=this.openStart),this.openEnd>0&&(r.openEnd=this.openEnd),r}static fromJSON(r,n){if(!n)return ht.empty;let i=n.openStart||0,o=n.openEnd||0;if(typeof i!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ht(ze.fromJSON(r,n.content),i,o)}static maxOpen(r,n=!0){let i=0,o=0;for(let s=r.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=r.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new ht(r,i,o)}}ht.empty=new ht(ze.empty,0,0);function Ak(e,r,n){let{index:i,offset:o}=e.findIndex(r),s=e.maybeChild(i),{index:a,offset:l}=e.findIndex(n);if(o==r||s.isText){if(l!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,r).append(e.cut(n))}if(i!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(Ak(s.content,r-o-1,n-o-1)))}function Ek(e,r,n,i){let{index:o,offset:s}=e.findIndex(r),a=e.maybeChild(o);if(s==r||a.isText)return i&&!i.canReplace(o,o,n)?null:e.cut(0,r).append(n).append(e.cut(r));let l=Ek(a.content,r-s-1,n,a);return l&&e.replaceChild(o,a.copy(l))}function kz(e,r,n){if(n.openStart>e.depth)throw new C2("Inserted content deeper than insertion position");if(e.depth-n.openStart!=r.depth-n.openEnd)throw new C2("Inconsistent open depths");return wk(e,r,n,0)}function wk(e,r,n,i){let o=e.index(i),s=e.node(i);if(o==r.index(i)&&i<e.depth-n.openStart){let a=wk(e,r,n,i+1);return s.copy(s.content.replaceChild(o,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==i&&r.depth==i){let a=e.parent,l=a.content;return Yc(a,l.cut(0,e.parentOffset).append(n.content).append(l.cut(r.parentOffset)))}else{let{start:a,end:l}=Cz(n,e);return Yc(s,Dk(e,a,l,r,i))}else return Yc(s,_2(e,r,i))}function Sk(e,r){if(!r.type.compatibleContent(e.type))throw new C2("Cannot join "+r.type.name+" onto "+e.type.name)}function Iy(e,r,n){let i=e.node(n);return Sk(i,r.node(n)),i}function zc(e,r){let n=r.length-1;n>=0&&e.isText&&e.sameMarkup(r[n])?r[n]=e.withText(r[n].text+e.text):r.push(e)}function D1(e,r,n,i){let o=(r||e).node(n),s=0,a=r?r.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(zc(e.nodeAfter,i),s++));for(let l=s;l<a;l++)zc(o.child(l),i);r&&r.depth==n&&r.textOffset&&zc(r.nodeBefore,i)}function Yc(e,r){return e.type.checkContent(r),e.copy(r)}function Dk(e,r,n,i,o){let s=e.depth>o&&Iy(e,r,o+1),a=i.depth>o&&Iy(n,i,o+1),l=[];return D1(null,e,o,l),s&&a&&r.index(o)==n.index(o)?(Sk(s,a),zc(Yc(s,Dk(e,r,n,i,o+1)),l)):(s&&zc(Yc(s,_2(e,r,o+1)),l),D1(r,n,o,l),a&&zc(Yc(a,_2(n,i,o+1)),l)),D1(i,null,o,l),new ze(l)}function _2(e,r,n){let i=[];if(D1(null,e,n,i),e.depth>n){let o=Iy(e,r,n+1);zc(Yc(o,_2(e,r,n+1)),i)}return D1(r,null,n,i),new ze(i)}function Cz(e,r){let n=r.depth-e.openStart,i=r.node(n).copy(e.content);for(let o=n-1;o>=0;o--)i=r.node(o).copy(ze.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class ef{constructor(r,n,i){this.pos=r,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(r){return r==null?this.depth:r<0?this.depth+r:r}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(r){return this.path[this.resolveDepth(r)*3]}index(r){return this.path[this.resolveDepth(r)*3+1]}indexAfter(r){return r=this.resolveDepth(r),this.index(r)+(r==this.depth&&!this.textOffset?0:1)}start(r){return r=this.resolveDepth(r),r==0?0:this.path[r*3-1]+1}end(r){return r=this.resolveDepth(r),this.start(r)+this.node(r).content.size}before(r){if(r=this.resolveDepth(r),!r)throw new RangeError("There is no position before the top-level node");return r==this.depth+1?this.pos:this.path[r*3-1]}after(r){if(r=this.resolveDepth(r),!r)throw new RangeError("There is no position after the top-level node");return r==this.depth+1?this.pos:this.path[r*3-1]+this.path[r*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let r=this.parent,n=this.index(this.depth);if(n==r.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=r.child(n);return i?r.child(n).cut(i):o}get nodeBefore(){let r=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(r).cut(0,n):r==0?null:this.parent.child(r-1)}posAtIndex(r,n){n=this.resolveDepth(n);let i=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s<r;s++)o+=i.child(s).nodeSize;return o}marks(){let r=this.parent,n=this.index();if(r.content.size==0)return en.none;if(this.textOffset)return r.child(n).marks;let i=r.maybeChild(n-1),o=r.maybeChild(n);if(!i){let l=i;i=o,o=l}let s=i.marks;for(var a=0;a<s.length;a++)s[a].type.spec.inclusive===!1&&(!o||!s[a].isInSet(o.marks))&&(s=s[a--].removeFromSet(s));return s}marksAcross(r){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let i=n.marks,o=r.parent.maybeChild(r.index());for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}sharedDepth(r){for(let n=this.depth;n>0;n--)if(this.start(n)<=r&&this.end(n)>=r)return n;return 0}blockRange(r=this,n){if(r.pos<this.pos)return r.blockRange(this);for(let i=this.depth-(this.parent.inlineContent||this.pos==r.pos?1:0);i>=0;i--)if(r.pos<=this.end(i)&&(!n||n(this.node(i))))return new tf(this,r,i);return null}sameParent(r){return this.pos-this.parentOffset==r.pos-r.parentOffset}max(r){return r.pos>this.pos?r:this}min(r){return r.pos<this.pos?r:this}toString(){let r="";for(let n=1;n<=this.depth;n++)r+=(r?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return r+":"+this.parentOffset}static resolve(r,n){if(!(n>=0&&n<=r.content.size))throw new RangeError("Position "+n+" out of range");let i=[],o=0,s=n;for(let a=r;;){let{index:l,offset:u}=a.content.findIndex(s),c=s-u;if(i.push(a,l,o+u),!c||(a=a.child(l),a.isText))break;s=c-1,o+=u+1}return new ef(n,i,s)}static resolveCached(r,n){let i=kA.get(r);if(i)for(let s=0;s<i.elts.length;s++){let a=i.elts[s];if(a.pos==n)return a}else kA.set(r,i=new _z);let o=i.elts[i.i]=ef.resolve(r,n);return i.i=(i.i+1)%Nz,o}}class _z{constructor(){this.elts=[],this.i=0}}const Nz=12,kA=new WeakMap;class tf{constructor(r,n,i){this.$from=r,this.$to=n,this.depth=i}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 Fz=Object.create(null);let c0=class Ly{constructor(r,n,i,o=en.none){this.type=r,this.attrs=n,this.marks=o,this.content=i||ze.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(r){return this.content.child(r)}maybeChild(r){return this.content.maybeChild(r)}forEach(r){this.content.forEach(r)}nodesBetween(r,n,i,o=0){this.content.nodesBetween(r,n,i,o,this)}descendants(r){this.nodesBetween(0,this.content.size,r)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(r,n,i,o){return this.content.textBetween(r,n,i,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(r){return this==r||this.sameMarkup(r)&&this.content.eq(r.content)}sameMarkup(r){return this.hasMarkup(r.type,r.attrs,r.marks)}hasMarkup(r,n,i){return this.type==r&&k2(this.attrs,n||r.defaultAttrs||Fz)&&en.sameSet(this.marks,i||en.none)}copy(r=null){return r==this.content?this:new Ly(this.type,this.attrs,r,this.marks)}mark(r){return r==this.marks?this:new Ly(this.type,this.attrs,this.content,r)}cut(r,n=this.content.size){return r==0&&n==this.content.size?this:this.copy(this.content.cut(r,n))}slice(r,n=this.content.size,i=!1){if(r==n)return ht.empty;let o=this.resolve(r),s=this.resolve(n),a=i?0:o.sharedDepth(n),l=o.start(a),u=o.node(a).content.cut(o.pos-l,s.pos-l);return new ht(u,o.depth-a,s.depth-a)}replace(r,n,i){return kz(this.resolve(r),this.resolve(n),i)}nodeAt(r){for(let n=this;;){let{index:i,offset:o}=n.content.findIndex(r);if(n=n.maybeChild(i),!n)return null;if(o==r||n.isText)return n;r-=o+1}}childAfter(r){let{index:n,offset:i}=this.content.findIndex(r);return{node:this.content.maybeChild(n),index:n,offset:i}}childBefore(r){if(r==0)return{node:null,index:0,offset:0};let{index:n,offset:i}=this.content.findIndex(r);if(i<r)return{node:this.content.child(n),index:n,offset:i};let o=this.content.child(n-1);return{node:o,index:n-1,offset:i-o.nodeSize}}resolve(r){return ef.resolveCached(this,r)}resolveNoCache(r){return ef.resolve(this,r)}rangeHasMark(r,n,i){let o=!1;return n>r&&this.nodesBetween(r,n,s=>(i.isInSet(s.marks)&&(o=!0),!o)),o}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 r=this.type.name;return this.content.size&&(r+="("+this.content.toStringInner()+")"),xk(this.marks,r)}contentMatchAt(r){let n=this.type.contentMatch.matchFragment(this.content,0,r);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(r,n,i=ze.empty,o=0,s=i.childCount){let a=this.contentMatchAt(r).matchFragment(i,o,s),l=a&&a.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let u=o;u<s;u++)if(!this.type.allowsMarks(i.child(u).marks))return!1;return!0}canReplaceWith(r,n,i,o){if(o&&!this.type.allowsMarks(o))return!1;let s=this.contentMatchAt(r).matchType(i),a=s&&s.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(r){return r.content.size?this.canReplace(this.childCount,this.childCount,r.content):this.type.compatibleContent(r.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let r=en.none;for(let n=0;n<this.marks.length;n++){let i=this.marks[n];i.type.checkAttrs(i.attrs),r=i.addToSet(r)}if(!en.sameSet(r,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 r={type:this.type.name};for(let n in this.attrs){r.attrs=this.attrs;break}return this.content.size&&(r.content=this.content.toJSON()),this.marks.length&&(r.marks=this.marks.map(n=>n.toJSON())),r}static fromJSON(r,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(r.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return r.text(n.text,i)}let o=ze.fromJSON(r,n.content),s=r.nodeType(n.type).create(n.attrs,o,i);return s.type.checkAttrs(s.attrs),s}};c0.prototype.text=void 0;let Oz=class zy extends c0{constructor(r,n,i,o){if(super(r,n,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xk(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(r,n){return this.text.slice(r,n)}get nodeSize(){return this.text.length}mark(r){return r==this.marks?this:new zy(this.type,this.attrs,this.text,r)}withText(r){return r==this.text?this:new zy(this.type,this.attrs,r,this.marks)}cut(r=0,n=this.text.length){return r==0&&n==this.text.length?this:this.withText(this.text.slice(r,n))}eq(r){return this.sameMarkup(r)&&this.text==r.text}toJSON(){let r=super.toJSON();return r.text=this.text,r}};function xk(e,r){for(let n=e.length-1;n>=0;n--)r=e[n].type.name+"("+r+")";return r}class Kc{constructor(r){this.validEnd=r,this.next=[],this.wrapCache=[]}static parse(r,n){let i=new Mz(r,n);if(i.next==null)return Kc.empty;let o=kk(i);i.next&&i.err("Unexpected trailing text");let s=Hz(Yz(o));return Pz(s,i),s}matchType(r){for(let n=0;n<this.next.length;n++)if(this.next[n].type==r)return this.next[n].next;return null}matchFragment(r,n=0,i=r.childCount){let o=this;for(let s=n;o&&s<i;s++)o=o.matchType(r.child(s).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let r=0;r<this.next.length;r++){let{type:n}=this.next[r];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(r){for(let n=0;n<this.next.length;n++)for(let i=0;i<r.next.length;i++)if(this.next[n].type==r.next[i].type)return!0;return!1}fillBefore(r,n=!1,i=0){let o=[this];function s(a,l){let u=a.matchFragment(r,i);if(u&&(!n||u.validEnd))return ze.from(l.map(c=>c.createAndFill()));for(let c=0;c<a.next.length;c++){let{type:d,next:h}=a.next[c];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(h)==-1){o.push(h);let p=s(h,l.concat(d));if(p)return p}}return null}return s(this,[])}findWrapping(r){for(let i=0;i<this.wrapCache.length;i+=2)if(this.wrapCache[i]==r)return this.wrapCache[i+1];let n=this.computeWrapping(r);return this.wrapCache.push(r,n),n}computeWrapping(r){let n=Object.create(null),i=[{match:this,type:null,via:null}];for(;i.length;){let o=i.shift(),s=o.match;if(s.matchType(r)){let a=[];for(let l=o;l.type;l=l.via)a.push(l.type);return a.reverse()}for(let a=0;a<s.next.length;a++){let{type:l,next:u}=s.next[a];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!o.type||u.validEnd)&&(i.push({match:l.contentMatch,type:l,via:o}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(r){if(r>=this.next.length)throw new RangeError(`There's no ${r}th edge in this content match`);return this.next[r]}toString(){let r=[];function n(i){r.push(i);for(let o=0;o<i.next.length;o++)r.indexOf(i.next[o].next)==-1&&n(i.next[o].next)}return n(this),r.map((i,o)=>{let s=o+(i.validEnd?"*":" ")+" ";for(let a=0;a<i.next.length;a++)s+=(a?", ":"")+i.next[a].type.name+"->"+r.indexOf(i.next[a].next);return s}).join(` `)}}Kc.empty=new Kc(!0);class Mz{constructor(r,n){this.string=r,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=r.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(r){return this.next==r&&(this.pos++||!0)}err(r){throw new SyntaxError(r+" (in content expression '"+this.string+"')")}}function kk(e){let r=[];do r.push(Rz(e));while(e.eat("|"));return r.length==1?r[0]:{type:"choice",exprs:r}}function Rz(e){let r=[];do r.push(Bz(e));while(e.next&&e.next!=")"&&e.next!="|");return r.length==1?r[0]:{type:"seq",exprs:r}}function Bz(e){let r=zz(e);for(;;)if(e.eat("+"))r={type:"plus",expr:r};else if(e.eat("*"))r={type:"star",expr:r};else if(e.eat("?"))r={type:"opt",expr:r};else if(e.eat("{"))r=Iz(e,r);else break;return r}function CA(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let r=Number(e.next);return e.pos++,r}function Iz(e,r){let n=CA(e),i=n;return e.eat(",")&&(e.next!="}"?i=CA(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:r}}function Lz(e,r){let n=e.nodeTypes,i=n[r];if(i)return[i];let o=[];for(let s in n){let a=n[s];a.isInGroup(r)&&o.push(a)}return o.length==0&&e.err("No node type or group '"+r+"' found"),o}function zz(e){if(e.eat("(")){let r=kk(e);return e.eat(")")||e.err("Missing closing paren"),r}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let r=Lz(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++,r.length==1?r[0]:{type:"choice",exprs:r}}}function Yz(e){let r=[[]];return o(s(e,0),n()),r;function n(){return r.push([])-1}function i(a,l,u){let c={term:u,to:l};return r[a].push(c),c}function o(a,l){a.forEach(u=>u.to=l)}function s(a,l){if(a.type=="choice")return a.exprs.reduce((u,c)=>u.concat(s(c,l)),[]);if(a.type=="seq")for(let u=0;;u++){let c=s(a.exprs[u],l);if(u==a.exprs.length-1)return c;o(c,l=n())}else if(a.type=="star"){let u=n();return i(l,u),o(s(a.expr,u),u),[i(u)]}else if(a.type=="plus"){let u=n();return o(s(a.expr,l),u),o(s(a.expr,u),u),[i(u)]}else{if(a.type=="opt")return[i(l)].concat(s(a.expr,l));if(a.type=="range"){let u=l;for(let c=0;c<a.min;c++){let d=n();o(s(a.expr,u),d),u=d}if(a.max==-1)o(s(a.expr,u),u);else for(let c=a.min;c<a.max;c++){let d=n();i(u,d),o(s(a.expr,u),d),u=d}return[i(u)]}else{if(a.type=="name")return[i(l,void 0,a.value)];throw new Error("Unknown expr type")}}}}function Ck(e,r){return r-e}function _A(e,r){let n=[];return i(r),n.sort(Ck);function i(o){let s=e[o];if(s.length==1&&!s[0].term)return i(s[0].to);n.push(o);for(let a=0;a<s.length;a++){let{term:l,to:u}=s[a];!l&&n.indexOf(u)==-1&&i(u)}}}function Hz(e){let r=Object.create(null);return n(_A(e,0));function n(i){let o=[];i.forEach(a=>{e[a].forEach(({term:l,to:u})=>{if(!l)return;let c;for(let d=0;d<o.length;d++)o[d][0]==l&&(c=o[d][1]);_A(e,u).forEach(d=>{c||o.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let s=r[i.join(",")]=new Kc(i.indexOf(e.length-1)>-1);for(let a=0;a<o.length;a++){let l=o[a][1].sort(Ck);s.next.push({type:o[a][0],next:r[l.join(",")]||n(l)})}return s}}function Pz(e,r){for(let n=0,i=[e];n<i.length;n++){let o=i[n],s=!o.validEnd,a=[];for(let l=0;l<o.next.length;l++){let{type:u,next:c}=o.next[l];a.push(u.name),s&&!(u.isText||u.hasRequiredAttrs())&&(s=!1),i.indexOf(c)==-1&&i.push(c)}s&&r.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function _k(e){let r=Object.create(null);for(let n in e){let i=e[n];if(!i.hasDefault)return null;r[n]=i.default}return r}function Nk(e,r){let n=Object.create(null);for(let i in e){let o=r&&r[i];if(o===void 0){let s=e[i];if(s.hasDefault)o=s.default;else throw new RangeError("No value supplied for attribute "+i)}n[i]=o}return n}function Fk(e,r,n,i){for(let o in r)if(!(o in e))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in e){let s=e[o];s.validate&&s.validate(r[o])}}function Ok(e,r){let n=Object.create(null);if(r)for(let i in r)n[i]=new $z(e,i,r[i]);return n}let NA=class Mk{constructor(r,n,i){this.name=r,this.schema=n,this.spec=i,this.markSet=null,this.groups=i.group?i.group.split(" "):[],this.attrs=Ok(r,i.attrs),this.defaultAttrs=_k(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(i.inline||r=="text"),this.isText=r=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Kc.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(r){return this.groups.indexOf(r)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let r in this.attrs)if(this.attrs[r].isRequired)return!0;return!1}compatibleContent(r){return this==r||this.contentMatch.compatible(r.contentMatch)}computeAttrs(r){return!r&&this.defaultAttrs?this.defaultAttrs:Nk(this.attrs,r)}create(r=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new c0(this,this.computeAttrs(r),ze.from(n),en.setFrom(i))}createChecked(r=null,n,i){return n=ze.from(n),this.checkContent(n),new c0(this,this.computeAttrs(r),n,en.setFrom(i))}createAndFill(r=null,n,i){if(r=this.computeAttrs(r),n=ze.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(ze.empty,!0);return s?new c0(this,r,n.append(s),en.setFrom(i)):null}validContent(r){let n=this.contentMatch.matchFragment(r);if(!n||!n.validEnd)return!1;for(let i=0;i<r.childCount;i++)if(!this.allowsMarks(r.child(i).marks))return!1;return!0}checkContent(r){if(!this.validContent(r))throw new RangeError(`Invalid content for node ${this.name}: ${r.toString().slice(0,50)}`)}checkAttrs(r){Fk(this.attrs,r,"node",this.name)}allowsMarkType(r){return this.markSet==null||this.markSet.indexOf(r)>-1}allowsMarks(r){if(this.markSet==null)return!0;for(let n=0;n<r.length;n++)if(!this.allowsMarkType(r[n].type))return!1;return!0}allowedMarks(r){if(this.markSet==null)return r;let n;for(let i=0;i<r.length;i++)this.allowsMarkType(r[i].type)?n&&n.push(r[i]):n||(n=r.slice(0,i));return n?n.length?n:en.none:r}static compile(r,n){let i=Object.create(null);r.forEach((s,a)=>i[s]=new Mk(s,n,a));let o=n.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function Zz(e,r,n){let i=n.split("|");return o=>{let s=o===null?"null":typeof o;if(i.indexOf(s)<0)throw new RangeError(`Expected value of type ${i} for attribute ${r} on type ${e}, got ${s}`)}}class $z{constructor(r,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?Zz(r,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class u3{constructor(r,n,i,o){this.name=r,this.rank=n,this.schema=i,this.spec=o,this.attrs=Ok(r,o.attrs),this.excluded=null;let s=_k(this.attrs);this.instance=s?new en(this,s):null}create(r=null){return!r&&this.instance?this.instance:new en(this,Nk(this.attrs,r))}static compile(r,n){let i=Object.create(null),o=0;return r.forEach((s,a)=>i[s]=new u3(s,o++,n,a)),i}removeFromSet(r){for(var n=0;n<r.length;n++)r[n].type==this&&(r=r.slice(0,n).concat(r.slice(n+1)),n--);return r}isInSet(r){for(let n=0;n<r.length;n++)if(r[n].type==this)return r[n]}checkAttrs(r){Fk(this.attrs,r,"mark",this.name)}excludes(r){return this.excluded.indexOf(r)>-1}}let zb=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let r=this.spec={};for(let i in e)r[i]=e[i];r.nodes=to.from(e.nodes),r.marks=to.from(e.marks||{}),this.nodes=NA.compile(this.spec.nodes,this),this.marks=u3.compile(this.spec.marks,this);let n=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=n[s]||(n[s]=Kc.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?FA(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==""?[]:FA(this,s.split(" "))}this.nodeFromJSON=i=>c0.fromJSON(this,i),this.markFromJSON=i=>en.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,r=null,n,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof NA){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(r,n,i)}text(e,r){let n=this.nodes.text;return new Oz(n,n.defaultAttrs,e,en.setFrom(r))}mark(e,r){return typeof e=="string"&&(e=this.marks[e]),e.create(r)}nodeType(e){let r=this.nodes[e];if(!r)throw new RangeError("Unknown node type: "+e);return r}};function FA(e,r){let n=[];for(let i=0;i<r.length;i++){let o=r[i],s=e.marks[o],a=s;if(s)n.push(s);else for(let l in e.marks){let u=e.marks[l];(o=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=u)}if(!a)throw new SyntaxError("Unknown mark type: '"+r[i]+"'")}return n}function Uz(e){return e.tag!=null}function Vz(e){return e.style!=null}let hh=class Yy{constructor(r,n){this.schema=r,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(o=>{if(Uz(o))this.tags.push(o);else if(Vz(o)){let s=/[^=]*/.exec(o.style)[0];i.indexOf(s)<0&&i.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=r.nodes[o.node];return s.contentMatch.matchType(s)})}parse(r,n={}){let i=new MA(this,n,!1);return i.addAll(r,en.none,n.from,n.to),i.finish()}parseSlice(r,n={}){let i=new MA(this,n,!0);return i.addAll(r,en.none,n.from,n.to),ht.maxOpen(i.finish())}matchTag(r,n,i){for(let o=i?this.tags.indexOf(i)+1:0;o<this.tags.length;o++){let s=this.tags[o];if(qz(r,s.tag)&&(s.namespace===void 0||r.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let a=s.getAttrs(r);if(a===!1)continue;s.attrs=a||void 0}return s}}}matchStyle(r,n,i,o){for(let s=o?this.styles.indexOf(o)+1:0;s<this.styles.length;s++){let a=this.styles[s],l=a.style;if(!(l.indexOf(r)!=0||a.context&&!i.matchesContext(a.context)||l.length>r.length&&(l.charCodeAt(r.length)!=61||l.slice(r.length+1)!=n))){if(a.getAttrs){let u=a.getAttrs(n);if(u===!1)continue;a.attrs=u||void 0}return a}}}static schemaRules(r){let n=[];function i(o){let s=o.priority==null?50:o.priority,a=0;for(;a<n.length;a++){let l=n[a];if((l.priority==null?50:l.priority)<s)break}n.splice(a,0,o)}for(let o in r.marks){let s=r.marks[o].spec.parseDOM;s&&s.forEach(a=>{i(a=RA(a)),a.mark||a.ignore||a.clearMark||(a.mark=o)})}for(let o in r.nodes){let s=r.nodes[o].spec.parseDOM;s&&s.forEach(a=>{i(a=RA(a)),a.node||a.ignore||a.mark||(a.node=o)})}return n}static fromSchema(r){return r.cached.domParser||(r.cached.domParser=new Yy(r,Yy.schemaRules(r)))}};const Rk={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},jz={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Bk={ol:!0,ul:!0},rf=1,Hy=2,x1=4;function OA(e,r,n){return r!=null?(r?rf:0)|(r==="full"?Hy:0):e&&e.whitespace=="pre"?rf|Hy:n&~x1}class Vm{constructor(r,n,i,o,s,a){this.type=r,this.attrs=n,this.marks=i,this.solid=o,this.options=a,this.content=[],this.activeMarks=en.none,this.match=s||(a&x1?null:r.contentMatch)}findWrapping(r){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ze.from(r));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,o;return(o=i.findWrapping(r.type))?(this.match=i,o):null}}return this.match.findWrapping(r.type)}finish(r){if(!(this.options&rf)){let i=this.content[this.content.length-1],o;if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=ze.from(this.content);return!r&&this.match&&(n=n.append(this.match.fillBefore(ze.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(r){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:r.parentNode&&!Rk.hasOwnProperty(r.parentNode.nodeName.toLowerCase())}}class MA{constructor(r,n,i){this.parser=r,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let o=n.topNode,s,a=OA(null,n.preserveWhitespace,0)|(i?x1:0);o?s=new Vm(o.type,o.attrs,en.none,!0,n.topMatch||o.type.contentMatch,a):i?s=new Vm(null,null,en.none,!0,null,a):s=new Vm(r.schema.topNodeType,null,en.none,!0,null,a),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(r,n){r.nodeType==3?this.addTextNode(r,n):r.nodeType==1&&this.addElement(r,n)}addTextNode(r,n){let i=r.nodeValue,o=this.top,s=o.options&Hy?"full":this.localPreserveWS||(o.options&rf)>0,{schema:a}=this.parser;if(s==="full"||o.inlineContext(r)||/[^ \t\r\n\u000c]/.test(i)){if(s)if(s==="full")i=i.replace(/\r\n?/g,` `);else if(a.linebreakReplacement&&/[\r\n]/.test(i)&&this.top.findWrapping(a.linebreakReplacement.create())){let l=i.split(/\r?\n|\r/);for(let u=0;u<l.length;u++)u&&this.insertNode(a.linebreakReplacement.create(),n,!0),l[u]&&this.insertNode(a.text(l[u]),n,!/\S/.test(l[u]));i=""}else i=i.replace(/\r?\n|\r/g," ");else if(i=i.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(i)&&this.open==this.nodes.length-1){let l=o.content[o.content.length-1],u=r.previousSibling;(!l||u&&u.nodeName=="BR"||l.isText&&/[ \t\r\n\u000c]$/.test(l.text))&&(i=i.slice(1))}i&&this.insertNode(a.text(i),n,!/\S/.test(i)),this.findInText(r)}else this.findInside(r)}addElement(r,n,i){let o=this.localPreserveWS,s=this.top;(r.tagName=="PRE"||/pre/.test(r.style&&r.style.whiteSpace))&&(this.localPreserveWS=!0);let a=r.nodeName.toLowerCase(),l;Bk.hasOwnProperty(a)&&this.parser.normalizeLists&&Gz(r);let u=this.options.ruleFromNode&&this.options.ruleFromNode(r)||(l=this.parser.matchTag(r,this,i));e:if(u?u.ignore:jz.hasOwnProperty(a))this.findInside(r),this.ignoreFallback(r,n);else if(!u||u.skip||u.closeParent){u&&u.closeParent?this.open=Math.max(0,this.open-1):u&&u.skip.nodeType&&(r=u.skip);let c,d=this.needsBlock;if(Rk.hasOwnProperty(a))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!r.firstChild){this.leafFallback(r,n);break e}let h=u&&u.skip?n:this.readStyles(r,n);h&&this.addAll(r,h),c&&this.sync(s),this.needsBlock=d}else{let c=this.readStyles(r,n);c&&this.addElementByRule(r,u,c,u.consuming===!1?l:void 0)}this.localPreserveWS=o}leafFallback(r,n){r.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(r.ownerDocument.createTextNode(` `),n)}ignoreFallback(r,n){r.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(r,n){let i=r.style;if(i&&i.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let s=this.parser.matchedStyles[o],a=i.getPropertyValue(s);if(a)for(let l=void 0;;){let u=this.parser.matchStyle(s,a,this,l);if(!u)break;if(u.ignore)return null;if(u.clearMark?n=n.filter(c=>!u.clearMark(c)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)l=u;else break}}return n}addElementByRule(r,n,i,o){let s,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),i,r.nodeName=="BR")||this.leafFallback(r,i);else{let u=this.enter(a,n.attrs||null,i,n.preserveWhitespace);u&&(s=!0,i=u)}else{let u=this.parser.schema.marks[n.mark];i=i.concat(u.create(n.attrs))}let l=this.top;if(a&&a.isLeaf)this.findInside(r);else if(o)this.addElement(r,i,o);else if(n.getContent)this.findInside(r),n.getContent(r,this.parser.schema).forEach(u=>this.insertNode(u,i,!1));else{let u=r;typeof n.contentElement=="string"?u=r.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(r):n.contentElement&&(u=n.contentElement),this.findAround(r,u,!0),this.addAll(u,i),this.findAround(r,u,!1)}s&&this.sync(l)&&this.open--}addAll(r,n,i,o){let s=i||0;for(let a=i?r.childNodes[i]:r.firstChild,l=o==null?null:r.childNodes[o];a!=l;a=a.nextSibling,++s)this.findAtPoint(r,s),this.addDOM(a,n);this.findAtPoint(r,s)}findPlace(r,n,i){let o,s;for(let a=this.open,l=0;a>=0;a--){let u=this.nodes[a],c=u.findWrapping(r);if(c&&(!o||o.length>c.length+l)&&(o=c,s=u,!c.length))break;if(u.solid){if(i)break;l+=2}}if(!o)return null;this.sync(s);for(let a=0;a<o.length;a++)n=this.enterInner(o[a],null,n,!1);return n}insertNode(r,n,i){if(r.isInline&&this.needsBlock&&!this.top.type){let s=this.textblockFromContext();s&&(n=this.enterInner(s,null,n))}let o=this.findPlace(r,n,i);if(o){this.closeExtra();let s=this.top;s.match&&(s.match=s.match.matchType(r.type));let a=en.none;for(let l of o.concat(r.marks))(s.type?s.type.allowsMarkType(l.type):BA(l.type,r.type))&&(a=l.addToSet(a));return s.content.push(r.mark(a)),!0}return!1}enter(r,n,i,o){let s=this.findPlace(r.create(n),i,!1);return s&&(s=this.enterInner(r,n,i,!0,o)),s}enterInner(r,n,i,o=!1,s){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(r);let l=OA(r,s,a.options);a.options&x1&&a.content.length==0&&(l|=x1);let u=en.none;return i=i.filter(c=>(a.type?a.type.allowsMarkType(c.type):BA(c.type,r))?(u=c.addToSet(u),!1):!0),this.nodes.push(new Vm(r,n,u,o,null,l)),this.open++,i}closeExtra(r=!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(r));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(r){for(let n=this.open;n>=0;n--){if(this.nodes[n]==r)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=rf)}return!1}get currentPos(){this.closeExtra();let r=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let o=i.length-1;o>=0;o--)r+=i[o].nodeSize;n&&r++}return r}findAtPoint(r,n){if(this.find)for(let i=0;i<this.find.length;i++)this.find[i].node==r&&this.find[i].offset==n&&(this.find[i].pos=this.currentPos)}findInside(r){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&r.nodeType==1&&r.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(r,n,i){if(r!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&r.nodeType==1&&r.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(i?2:4)&&(this.find[o].pos=this.currentPos)}findInText(r){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==r&&(this.find[n].pos=this.currentPos-(r.nodeValue.length-this.find[n].offset))}matchesContext(r){if(r.indexOf("|")>-1)return r.split(/\s*\|\s*/).some(this.matchesContext,this);let n=r.split("/"),i=this.options.context,o=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(o?0:1),a=(l,u)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;u>=s;u--)if(a(l-1,u))return!0;return!1}else{let d=u>0||u==0&&o?this.nodes[u].type:i&&u>=s?i.node(u-s).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;u--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let r=this.options.context;if(r)for(let n=r.depth;n>=0;n--){let i=r.node(n).contentMatchAt(r.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function Gz(e){for(let r=e.firstChild,n=null;r;r=r.nextSibling){let i=r.nodeType==1?r.nodeName.toLowerCase():null;i&&Bk.hasOwnProperty(i)&&n?(n.appendChild(r),r=n):i=="li"?n=r:i&&(n=null)}}function qz(e,r){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,r)}function RA(e){let r={};for(let n in e)r[n]=e[n];return r}function BA(e,r){let n=r.schema.nodes;for(let i in n){let o=n[i];if(!o.allowsMarkType(e))continue;let s=[],a=l=>{s.push(l);for(let u=0;u<l.edgeCount;u++){let{type:c,next:d}=l.edge(u);if(c==r||s.indexOf(d)<0&&a(d))return!0}};if(a(o.contentMatch))return!0}}class cd{constructor(r,n){this.nodes=r,this.marks=n}serializeFragment(r,n={},i){i||(i=F5(n).createDocumentFragment());let o=i,s=[];return r.forEach(a=>{if(s.length||a.marks.length){let l=0,u=0;for(;l<s.length&&u<a.marks.length;){let c=a.marks[u];if(!this.marks[c.type.name]){u++;continue}if(!c.eq(s[l][0])||c.type.spec.spanning===!1)break;l++,u++}for(;l<s.length;)o=s.pop()[1];for(;u<a.marks.length;){let c=a.marks[u++],d=this.serializeMark(c,a.isInline,n);d&&(s.push([c,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(a,n))}),i}serializeNodeInner(r,n){let{dom:i,contentDOM:o}=qg(F5(n),this.nodes[r.type.name](r),null,r.attrs);if(o){if(r.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(r.content,n,o)}return i}serializeNode(r,n={}){let i=this.serializeNodeInner(r,n);for(let o=r.marks.length-1;o>=0;o--){let s=this.serializeMark(r.marks[o],r.isInline,n);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(r,n,i={}){let o=this.marks[r.type.name];return o&&qg(F5(i),o(r,n),null,r.attrs)}static renderSpec(r,n,i=null,o){return qg(r,n,i,o)}static fromSchema(r){return r.cached.domSerializer||(r.cached.domSerializer=new cd(this.nodesFromSchema(r),this.marksFromSchema(r)))}static nodesFromSchema(r){let n=IA(r.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(r){return IA(r.marks)}}function IA(e){let r={};for(let n in e){let i=e[n].spec.toDOM;i&&(r[n]=i)}return r}function F5(e){return e.document||window.document}const LA=new WeakMap;function Wz(e){let r=LA.get(e);return r===void 0&&LA.set(e,r=Kz(e)),r}function Kz(e){let r=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")r||(r=[]),r.push(i);else for(let o=0;o<i.length;o++)n(i[o]);else for(let o in i)n(i[o])}return n(e),r}function qg(e,r,n,i){if(typeof r=="string")return{dom:e.createTextNode(r)};if(r.nodeType!=null)return{dom:r};if(r.dom&&r.dom.nodeType!=null)return r;let o=r[0],s;if(typeof o!="string")throw new RangeError("Invalid array passed to renderSpec");if(i&&(s=Wz(i))&&s.indexOf(r)>-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 a=o.indexOf(" ");a>0&&(n=o.slice(0,a),o=o.slice(a+1));let l,u=n?e.createElementNS(n,o):e.createElement(o),c=r[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let h in c)if(c[h]!=null){let p=h.indexOf(" ");p>0?u.setAttributeNS(h.slice(0,p),h.slice(p+1),c[h]):h=="style"&&u.style?u.style.cssText=c[h]:u.setAttribute(h,c[h])}}for(let h=d;h<r.length;h++){let p=r[h];if(p===0){if(h<r.length-1||h>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:f,contentDOM:m}=qg(e,p,n,i);if(u.appendChild(f),m){if(l)throw new RangeError("Multiple content holes");l=m}}}return{dom:u,contentDOM:l}}const Ik=65535,Lk=Math.pow(2,16);function Qz(e,r){return e+r*Lk}function zA(e){return e&Ik}function Jz(e){return(e-(e&Ik))/Lk}const zk=1,Yk=2,Wg=4,Hk=8;class Py{constructor(r,n,i){this.pos=r,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&Hk)>0}get deletedBefore(){return(this.delInfo&(zk|Wg))>0}get deletedAfter(){return(this.delInfo&(Yk|Wg))>0}get deletedAcross(){return(this.delInfo&Wg)>0}}class xs{constructor(r,n=!1){if(this.ranges=r,this.inverted=n,!r.length&&xs.empty)return xs.empty}recover(r){let n=0,i=zA(r);if(!this.inverted)for(let o=0;o<i;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[i*3]+n+Jz(r)}mapResult(r,n=1){return this._map(r,n,!1)}map(r,n=1){return this._map(r,n,!0)}_map(r,n,i){let o=0,s=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?o:0);if(u>r)break;let c=this.ranges[l+s],d=this.ranges[l+a],h=u+c;if(r<=h){let p=c?r==u?-1:r==h?1:n:n,f=u+o+(p<0?0:d);if(i)return f;let m=r==(n<0?u:h)?null:Qz(l/3,r-u),v=r==u?Yk:r==h?zk:Wg;return(n<0?r!=u:r!=h)&&(v|=Hk),new Py(f,v,m)}o+=d-c}return i?r+o:new Py(r+o,0,null)}touches(r,n){let i=0,o=zA(n),s=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let u=this.ranges[l]-(this.inverted?i:0);if(u>r)break;let c=this.ranges[l+s],d=u+c;if(r<=d&&l==o*3)return!0;i+=this.ranges[l+a]-c}return!1}forEach(r){let n=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,s=0;o<this.ranges.length;o+=3){let a=this.ranges[o],l=a-(this.inverted?s:0),u=a+(this.inverted?0:s),c=this.ranges[o+n],d=this.ranges[o+i];r(l,l+c,u,u+d),s+=d-c}}invert(){return new xs(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(r){return r==0?xs.empty:new xs(r<0?[0,-r,0]:[0,0,r])}}xs.empty=new xs([]);class nf{constructor(r,n,i=0,o=r?r.length:0){this.mirror=n,this.from=i,this.to=o,this._maps=r||[],this.ownData=!(r||n)}get maps(){return this._maps}slice(r=0,n=this.maps.length){return new nf(this._maps,this.mirror,r,n)}appendMap(r,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(r),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(r){for(let n=0,i=this._maps.length;n<r._maps.length;n++){let o=r.getMirror(n);this.appendMap(r._maps[n],o!=null&&o<n?i+o:void 0)}}getMirror(r){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==r)return this.mirror[n+(n%2?-1:1)]}}setMirror(r,n){this.mirror||(this.mirror=[]),this.mirror.push(r,n)}appendMappingInverted(r){for(let n=r.maps.length-1,i=this._maps.length+r._maps.length;n>=0;n--){let o=r.getMirror(n);this.appendMap(r._maps[n].invert(),o!=null&&o>n?i-o-1:void 0)}}invert(){let r=new nf;return r.appendMappingInverted(this),r}map(r,n=1){if(this.mirror)return this._map(r,n,!0);for(let i=this.from;i<this.to;i++)r=this._maps[i].map(r,n);return r}mapResult(r,n=1){return this._map(r,n,!1)}_map(r,n,i){let o=0;for(let s=this.from;s<this.to;s++){let a=this._maps[s],l=a.mapResult(r,n);if(l.recover!=null){let u=this.getMirror(s);if(u!=null&&u>s&&u<this.to){s=u,r=this._maps[u].recover(l.recover);continue}}o|=l.delInfo,r=l.pos}return i?r:new Py(r,o,null)}}const O5=Object.create(null);class Eo{getMap(){return xs.empty}merge(r){return null}static fromJSON(r,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let i=O5[n.stepType];if(!i)throw new RangeError(`No step type ${n.stepType} defined`);return i.fromJSON(r,n)}static jsonID(r,n){if(r in O5)throw new RangeError("Duplicate use of step JSON ID "+r);return O5[r]=n,n.prototype.jsonID=r,n}}class vi{constructor(r,n){this.doc=r,this.failed=n}static ok(r){return new vi(r,null)}static fail(r){return new vi(null,r)}static fromReplace(r,n,i,o){try{return vi.ok(r.replace(n,i,o))}catch(s){if(s instanceof C2)return vi.fail(s.message);throw s}}}function Yb(e,r,n){let i=[];for(let o=0;o<e.childCount;o++){let s=e.child(o);s.content.size&&(s=s.copy(Yb(s.content,r,s))),s.isInline&&(s=r(s,n,o)),i.push(s)}return ze.fromArray(i)}class yu extends Eo{constructor(r,n,i){super(),this.from=r,this.to=n,this.mark=i}apply(r){let n=r.slice(this.from,this.to),i=r.resolve(this.from),o=i.node(i.sharedDepth(this.to)),s=new ht(Yb(n.content,(a,l)=>!a.isAtom||!l.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),o),n.openStart,n.openEnd);return vi.fromReplace(r,this.from,this.to,s)}invert(){return new xa(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new yu(n.pos,i.pos,this.mark)}merge(r){return r instanceof yu&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new yu(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new yu(n.from,n.to,r.markFromJSON(n.mark))}}Eo.jsonID("addMark",yu);class xa extends Eo{constructor(r,n,i){super(),this.from=r,this.to=n,this.mark=i}apply(r){let n=r.slice(this.from,this.to),i=new ht(Yb(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),r),n.openStart,n.openEnd);return vi.fromReplace(r,this.from,this.to,i)}invert(){return new yu(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new xa(n.pos,i.pos,this.mark)}merge(r){return r instanceof xa&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new xa(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new xa(n.from,n.to,r.markFromJSON(n.mark))}}Eo.jsonID("removeMark",xa);class Tu extends Eo{constructor(r,n){super(),this.pos=r,this.mark=n}apply(r){let n=r.nodeAt(this.pos);if(!n)return vi.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return vi.fromReplace(r,this.pos,this.pos+1,new ht(ze.from(i),0,n.isLeaf?0:1))}invert(r){let n=r.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(i))return new Tu(this.pos,n.marks[o]);return new Tu(this.pos,this.mark)}}return new Qc(this.pos,this.mark)}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new Tu(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(r,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Tu(n.pos,r.markFromJSON(n.mark))}}Eo.jsonID("addNodeMark",Tu);class Qc extends Eo{constructor(r,n){super(),this.pos=r,this.mark=n}apply(r){let n=r.nodeAt(this.pos);if(!n)return vi.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return vi.fromReplace(r,this.pos,this.pos+1,new ht(ze.from(i),0,n.isLeaf?0:1))}invert(r){let n=r.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Tu(this.pos,this.mark)}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new Qc(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(r,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Qc(n.pos,r.markFromJSON(n.mark))}}Eo.jsonID("removeNodeMark",Qc);class Ui extends Eo{constructor(r,n,i,o=!1){super(),this.from=r,this.to=n,this.slice=i,this.structure=o}apply(r){return this.structure&&Zy(r,this.from,this.to)?vi.fail("Structure replace would overwrite content"):vi.fromReplace(r,this.from,this.to,this.slice)}getMap(){return new xs([this.from,this.to-this.from,this.slice.size])}invert(r){return new Ui(this.from,this.from+this.slice.size,r.slice(this.from,this.to))}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deletedAcross&&i.deletedAcross?null:new Ui(n.pos,Math.max(n.pos,i.pos),this.slice,this.structure)}merge(r){if(!(r instanceof Ui)||r.structure||this.structure)return null;if(this.from+this.slice.size==r.from&&!this.slice.openEnd&&!r.slice.openStart){let n=this.slice.size+r.slice.size==0?ht.empty:new ht(this.slice.content.append(r.slice.content),this.slice.openStart,r.slice.openEnd);return new Ui(this.from,this.to+(r.to-r.from),n,this.structure)}else if(r.to==this.from&&!this.slice.openStart&&!r.slice.openEnd){let n=this.slice.size+r.slice.size==0?ht.empty:new ht(r.slice.content.append(this.slice.content),r.slice.openStart,this.slice.openEnd);return new Ui(r.from,this.to,n,this.structure)}else return null}toJSON(){let r={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(r.slice=this.slice.toJSON()),this.structure&&(r.structure=!0),r}static fromJSON(r,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ui(n.from,n.to,ht.fromJSON(r,n.slice),!!n.structure)}}Eo.jsonID("replace",Ui);class ji extends Eo{constructor(r,n,i,o,s,a,l=!1){super(),this.from=r,this.to=n,this.gapFrom=i,this.gapTo=o,this.slice=s,this.insert=a,this.structure=l}apply(r){if(this.structure&&(Zy(r,this.from,this.gapFrom)||Zy(r,this.gapTo,this.to)))return vi.fail("Structure gap-replace would overwrite content");let n=r.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return vi.fail("Gap is not a flat range");let i=this.slice.insertAt(this.insert,n.content);return i?vi.fromReplace(r,this.from,this.to,i):vi.fail("Content does not fit in gap")}getMap(){return new xs([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(r){let n=this.gapTo-this.gapFrom;return new ji(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,r.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1),o=this.from==this.gapFrom?n.pos:r.map(this.gapFrom,-1),s=this.to==this.gapTo?i.pos:r.map(this.gapTo,1);return n.deletedAcross&&i.deletedAcross||o<n.pos||s>i.pos?null:new ji(n.pos,i.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let r={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(r.slice=this.slice.toJSON()),this.structure&&(r.structure=!0),r}static fromJSON(r,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 ji(n.from,n.to,n.gapFrom,n.gapTo,ht.fromJSON(r,n.slice),n.insert,!!n.structure)}}Eo.jsonID("replaceAround",ji);function Zy(e,r,n){let i=e.resolve(r),o=n-r,s=i.depth;for(;o>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,o--;if(o>0){let a=i.node(s).maybeChild(i.indexAfter(s));for(;o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}}return!1}function Xz(e,r,n,i){let o=[],s=[],a,l;e.doc.nodesBetween(r,n,(u,c,d)=>{if(!u.isInline)return;let h=u.marks;if(!i.isInSet(h)&&d.type.allowsMarkType(i.type)){let p=Math.max(c,r),f=Math.min(c+u.nodeSize,n),m=i.addToSet(h);for(let v=0;v<h.length;v++)h[v].isInSet(m)||(a&&a.to==p&&a.mark.eq(h[v])?a.to=f:o.push(a=new xa(p,f,h[v])));l&&l.to==p?l.to=f:s.push(l=new yu(p,f,i))}}),o.forEach(u=>e.step(u)),s.forEach(u=>e.step(u))}function eY(e,r,n,i){let o=[],s=0;e.doc.nodesBetween(r,n,(a,l)=>{if(!a.isInline)return;s++;let u=null;if(i instanceof u3){let c=a.marks,d;for(;d=i.isInSet(c);)(u||(u=[])).push(d),c=d.removeFromSet(c)}else i?i.isInSet(a.marks)&&(u=[i]):u=a.marks;if(u&&u.length){let c=Math.min(l+a.nodeSize,n);for(let d=0;d<u.length;d++){let h=u[d],p;for(let f=0;f<o.length;f++){let m=o[f];m.step==s-1&&h.eq(o[f].style)&&(p=m)}p?(p.to=c,p.step=s):o.push({style:h,from:Math.max(l,r),to:c,step:s})}}}),o.forEach(a=>e.step(new xa(a.from,a.to,a.style)))}function Hb(e,r,n,i=n.contentMatch,o=!0){let s=e.doc.nodeAt(r),a=[],l=r+1;for(let u=0;u<s.childCount;u++){let c=s.child(u),d=l+c.nodeSize,h=i.matchType(c.type);if(!h)a.push(new Ui(l,d,ht.empty));else{i=h;for(let p=0;p<c.marks.length;p++)n.allowsMarkType(c.marks[p].type)||e.step(new xa(l,d,c.marks[p]));if(o&&c.isText&&n.whitespace!="pre"){let p,f=/\r?\n|\r/g,m;for(;p=f.exec(c.text);)m||(m=new ht(ze.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new Ui(l+p.index,l+p.index+p[0].length,m))}}l=d}if(!i.validEnd){let u=i.fillBefore(ze.empty,!0);e.replace(l,l,new ht(u,0,0))}for(let u=a.length-1;u>=0;u--)e.step(a[u])}function tY(e,r,n){return(r==0||e.canReplace(r,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function ip(e){let r=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,i=0,o=0;;--n){let s=e.$from.node(n),a=e.$from.index(n)+i,l=e.$to.indexAfter(n)-o;if(n<e.depth&&s.canReplace(a,l,r))return n;if(n==0||s.type.spec.isolating||!tY(s,a,l))break;a&&(i=1),l<s.childCount&&(o=1)}return null}function rY(e,r,n){let{$from:i,$to:o,depth:s}=r,a=i.before(s+1),l=o.after(s+1),u=a,c=l,d=ze.empty,h=0;for(let m=s,v=!1;m>n;m--)v||i.index(m)>0?(v=!0,d=ze.from(i.node(m).copy(d)),h++):u--;let p=ze.empty,f=0;for(let m=s,v=!1;m>n;m--)v||o.after(m+1)<o.end(m)?(v=!0,p=ze.from(o.node(m).copy(p)),f++):c++;e.step(new ji(u,c,a,l,new ht(d.append(p),h,f),d.size-h,!0))}function Pb(e,r,n=null,i=e){let o=nY(e,r),s=o&&iY(i,r);return s?o.map(YA).concat({type:r,attrs:n}).concat(s.map(YA)):null}function YA(e){return{type:e,attrs:null}}function nY(e,r){let{parent:n,startIndex:i,endIndex:o}=e,s=n.contentMatchAt(i).findWrapping(r);if(!s)return null;let a=s.length?s[0]:r;return n.canReplaceWith(i,o,a)?s:null}function iY(e,r){let{parent:n,startIndex:i,endIndex:o}=e,s=n.child(i),a=r.contentMatch.findWrapping(s.type);if(!a)return null;let l=(a.length?a[a.length-1]:r).contentMatch;for(let u=i;l&&u<o;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:a}function oY(e,r,n){let i=ze.empty;for(let a=n.length-1;a>=0;a--){if(i.size){let l=n[a].type.contentMatch.matchFragment(i);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=ze.from(n[a].type.create(n[a].attrs,i))}let o=r.start,s=r.end;e.step(new ji(o,s,o,s,new ht(i,0,0),n.length,!0))}function sY(e,r,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(r,n,(a,l)=>{let u=typeof o=="function"?o(a):o;if(a.isTextblock&&!a.hasMarkup(i,u)&&aY(e.doc,e.mapping.slice(s).map(l),i)){let c=null;if(i.schema.linebreakReplacement){let f=i.whitespace=="pre",m=!!i.contentMatch.matchType(i.schema.linebreakReplacement);f&&!m?c=!1:!f&&m&&(c=!0)}c===!1&&Zk(e,a,l,s),Hb(e,e.mapping.slice(s).map(l,1),i,void 0,c===null);let d=e.mapping.slice(s),h=d.map(l,1),p=d.map(l+a.nodeSize,1);return e.step(new ji(h,p,h+1,p-1,new ht(ze.from(i.create(u,null,a.marks)),0,0),1,!0)),c===!0&&Pk(e,a,l,s),!1}})}function Pk(e,r,n,i){r.forEach((o,s)=>{if(o.isText){let a,l=/\r?\n|\r/g;for(;a=l.exec(o.text);){let u=e.mapping.slice(i).map(n+1+s+a.index);e.replaceWith(u,u+1,r.type.schema.linebreakReplacement.create())}}})}function Zk(e,r,n,i){r.forEach((o,s)=>{if(o.type==o.type.schema.linebreakReplacement){let a=e.mapping.slice(i).map(n+1+s);e.replaceWith(a,a+1,r.type.schema.text(` `))}})}function aY(e,r,n){let i=e.resolve(r),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}function lY(e,r,n,i,o){let s=e.doc.nodeAt(r);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(r,r+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new ji(r,r+s.nodeSize,r+1,r+s.nodeSize-1,new ht(ze.from(a),0,0),1,!0))}function d0(e,r,n=1,i){let o=e.resolve(r),s=o.depth-n,a=i&&i[i.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,d=n-2;c>s;c--,d--){let h=o.node(c),p=o.index(c);if(h.type.spec.isolating)return!1;let f=h.content.cutByIndex(p,h.childCount),m=i&&i[d+1];m&&(f=f.replaceChild(0,m.type.create(m.attrs)));let v=i&&i[d]||h;if(!h.canReplace(p+1,h.childCount)||!v.type.validContent(f))return!1}let l=o.indexAfter(s),u=i&&i[0];return o.node(s).canReplaceWith(l,l,u?u.type:o.node(s+1).type)}function uY(e,r,n=1,i){let o=e.doc.resolve(r),s=ze.empty,a=ze.empty;for(let l=o.depth,u=o.depth-n,c=n-1;l>u;l--,c--){s=ze.from(o.node(l).copy(s));let d=i&&i[c];a=ze.from(d?d.type.create(d.attrs,a):o.node(l).copy(a))}e.step(new Ui(r,r,new ht(s.append(a),n,n),!0))}function Qu(e,r){let n=e.resolve(r),i=n.index();return $k(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function cY(e,r){r.content.size||e.type.compatibleContent(r.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:i}=e.type.schema;for(let o=0;o<r.childCount;o++){let s=r.child(o),a=s.type==i?e.type.schema.nodes.text:s.type;if(n=n.matchType(a),!n||!e.type.allowsMarks(s.marks))return!1}return n.validEnd}function $k(e,r){return!!(e&&r&&!e.isLeaf&&cY(e,r))}function c3(e,r,n=-1){let i=e.resolve(r);for(let o=i.depth;;o--){let s,a,l=i.index(o);if(o==i.depth?(s=i.nodeBefore,a=i.nodeAfter):n>0?(s=i.node(o+1),l++,a=i.node(o).maybeChild(l)):(s=i.node(o).maybeChild(l-1),a=i.node(o+1)),s&&!s.isTextblock&&$k(s,a)&&i.node(o).canReplace(l,l+1))return r;if(o==0)break;r=n<0?i.before(o):i.after(o)}}function dY(e,r,n){let i=null,{linebreakReplacement:o}=e.doc.type.schema,s=e.doc.resolve(r-n),a=s.node().type;if(o&&a.inlineContent){let d=a.whitespace=="pre",h=!!a.contentMatch.matchType(o);d&&!h?i=!1:!d&&h&&(i=!0)}let l=e.steps.length;if(i===!1){let d=e.doc.resolve(r+n);Zk(e,d.node(),d.before(),l)}a.inlineContent&&Hb(e,r+n-1,a,s.node().contentMatchAt(s.index()),i==null);let u=e.mapping.slice(l),c=u.map(r-n);if(e.step(new Ui(c,u.map(r+n,-1),ht.empty,!0)),i===!0){let d=e.doc.resolve(c);Pk(e,d.node(),d.before(),e.steps.length)}return e}function hY(e,r,n){let i=e.resolve(r);if(i.parent.canReplaceWith(i.index(),i.index(),n))return r;if(i.parentOffset==0)for(let o=i.depth-1;o>=0;o--){let s=i.index(o);if(i.node(o).canReplaceWith(s,s,n))return i.before(o+1);if(s>0)return null}if(i.parentOffset==i.parent.content.size)for(let o=i.depth-1;o>=0;o--){let s=i.indexAfter(o);if(i.node(o).canReplaceWith(s,s,n))return i.after(o+1);if(s<i.node(o).childCount)return null}return null}function Uk(e,r,n){let i=e.resolve(r);if(!n.content.size)return r;let o=n.content;for(let s=0;s<n.openStart;s++)o=o.firstChild.content;for(let s=1;s<=(n.openStart==0&&n.size?2:1);s++)for(let a=i.depth;a>=0;a--){let l=a==i.depth?0:i.pos<=(i.start(a+1)+i.end(a+1))/2?-1:1,u=i.index(a)+(l>0?1:0),c=i.node(a),d=!1;if(s==1)d=c.canReplace(u,u,o);else{let h=c.contentMatchAt(u).findWrapping(o.firstChild.type);d=h&&c.canReplaceWith(u,u,h[0])}if(d)return l==0?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function d3(e,r,n=r,i=ht.empty){if(r==n&&!i.size)return null;let o=e.resolve(r),s=e.resolve(n);return Vk(o,s,i)?new Ui(r,n,i):new pY(o,s,i).fit()}function Vk(e,r,n){return!n.openStart&&!n.openEnd&&e.start()==r.start()&&e.parent.canReplace(e.index(),r.index(),n.content)}class pY{constructor(r,n,i){this.$from=r,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=ze.empty;for(let o=0;o<=r.depth;o++){let s=r.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(r.indexAfter(o))})}for(let o=r.depth;o>0;o--)this.placed=ze.from(r.node(o).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 r=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(r<0?this.$to:i.doc.resolve(r));if(!o)return null;let s=this.placed,a=i.depth,l=o.depth;for(;a&&l&&s.childCount==1;)s=s.firstChild.content,a--,l--;let u=new ht(s,a,l);return r>-1?new ji(i.pos,r,this.$to.pos,this.$to.end(),u,n):u.size||i.pos!=this.$to.pos?new Ui(i.pos,o.pos,u):null}findFittable(){let r=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,o=this.unplaced.openEnd;i<r;i++){let s=n.firstChild;if(n.childCount>1&&(o=0),s.type.spec.isolating&&o<=i){r=i;break}n=s.content}for(let n=1;n<=2;n++)for(let i=n==1?r:this.unplaced.openStart;i>=0;i--){let o,s=null;i?(s=M5(this.unplaced.content,i-1).firstChild,o=s.content):o=this.unplaced.content;let a=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:u,match:c}=this.frontier[l],d,h=null;if(n==1&&(a?c.matchType(a.type)||(h=c.fillBefore(ze.from(a),!1)):s&&u.compatibleContent(s.type)))return{sliceDepth:i,frontierDepth:l,parent:s,inject:h};if(n==2&&a&&(d=c.findWrapping(a.type)))return{sliceDepth:i,frontierDepth:l,parent:s,wrap:d};if(s&&c.matchType(s.type))break}}}openMore(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=M5(r,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ht(r,n+1,Math.max(i,o.size+n>=r.size-i?n+1:0)),!0)}dropNode(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=M5(r,n);if(o.childCount<=1&&n>0){let s=r.size-n<=n+o.size;this.unplaced=new ht(h1(r,n-1,1),n-1,s?n-1:i)}else this.unplaced=new ht(h1(r,n,1),n,i)}placeNodes({sliceDepth:r,frontierDepth:n,parent:i,inject:o,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let v=0;v<s.length;v++)this.openFrontierNode(s[v]);let a=this.unplaced,l=i?i.content:a.content,u=a.openStart-r,c=0,d=[],{match:h,type:p}=this.frontier[n];if(o){for(let v=0;v<o.childCount;v++)d.push(o.child(v));h=h.matchFragment(o)}let f=l.size+r-(a.content.size-a.openEnd);for(;c<l.childCount;){let v=l.child(c),w=h.matchType(v.type);if(!w)break;c++,(c>1||u==0||v.content.size)&&(h=w,d.push(jk(v.mark(p.allowedMarks(v.marks)),c==1?u:0,c==l.childCount?f:-1)))}let m=c==l.childCount;m||(f=-1),this.placed=p1(this.placed,n,ze.from(d)),this.frontier[n].match=h,m&&f<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let v=0,w=l;v<f;v++){let x=w.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),w=x.content}this.unplaced=m?r==0?ht.empty:new ht(h1(a.content,r-1,1),r-1,f<0?a.openEnd:r-1):new ht(h1(a.content,r,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let r=this.frontier[this.depth],n;if(!r.type.isTextblock||!R5(this.$to,this.$to.depth,r.type,r.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:i}=this.$to,o=this.$to.after(i);for(;i>1&&o==this.$to.end(--i);)++o;return o}findCloseLevel(r){e:for(let n=Math.min(this.depth,r.depth);n>=0;n--){let{match:i,type:o}=this.frontier[n],s=n<r.depth&&r.end(n+1)==r.pos+(r.depth-(n+1)),a=R5(r,n,o,i,s);if(a){for(let l=n-1;l>=0;l--){let{match:u,type:c}=this.frontier[l],d=R5(r,l,c,u,!0);if(!d||d.childCount)continue e}return{depth:n,fit:a,move:s?r.doc.resolve(r.after(n+1)):r}}}}close(r){let n=this.findCloseLevel(r);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=p1(this.placed,n.depth,n.fit)),r=n.move;for(let i=n.depth+1;i<=r.depth;i++){let o=r.node(i),s=o.type.contentMatch.fillBefore(o.content,!0,r.index(i));this.openFrontierNode(o.type,o.attrs,s)}return r}openFrontierNode(r,n=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(r),this.placed=p1(this.placed,this.depth,ze.from(r.create(n,i))),this.frontier.push({type:r,match:r.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(ze.empty,!0);r.childCount&&(this.placed=p1(this.placed,this.frontier.length,r))}}function h1(e,r,n){return r==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(h1(e.firstChild.content,r-1,n)))}function p1(e,r,n){return r==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(p1(e.lastChild.content,r-1,n)))}function M5(e,r){for(let n=0;n<r;n++)e=e.firstChild.content;return e}function jk(e,r,n){if(r<=0)return e;let i=e.content;return r>1&&(i=i.replaceChild(0,jk(i.firstChild,r-1,i.childCount==1?n-1:0))),r>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(ze.empty,!0)))),e.copy(i)}function R5(e,r,n,i,o){let s=e.node(r),a=o?e.indexAfter(r):e.index(r);if(a==s.childCount&&!n.compatibleContent(s.type))return null;let l=i.fillBefore(s.content,!0,a);return l&&!fY(n,s.content,a)?l:null}function fY(e,r,n){for(let i=n;i<r.childCount;i++)if(!e.allowsMarks(r.child(i).marks))return!0;return!1}function mY(e){return e.spec.defining||e.spec.definingForContent}function gY(e,r,n,i){if(!i.size)return e.deleteRange(r,n);let o=e.doc.resolve(r),s=e.doc.resolve(n);if(Vk(o,s,i))return e.step(new Ui(r,n,i));let a=qk(o,s);a[a.length-1]==0&&a.pop();let l=-(o.depth+1);a.unshift(l);for(let p=o.depth,f=o.pos-1;p>0;p--,f--){let m=o.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(p)>-1?l=p:o.before(p)==f&&a.splice(1,0,-p)}let u=a.indexOf(l),c=[],d=i.openStart;for(let p=i.content,f=0;;f++){let m=p.firstChild;if(c.push(m),f==i.openStart)break;p=m.content}for(let p=d-1;p>=0;p--){let f=c[p],m=mY(f.type);if(m&&!f.sameMarkup(o.node(Math.abs(l)-1)))d=p;else if(m||!f.type.isTextblock)break}for(let p=i.openStart;p>=0;p--){let f=(p+d+1)%(i.openStart+1),m=c[f];if(m)for(let v=0;v<a.length;v++){let w=a[(v+u)%a.length],x=!0;w<0&&(x=!1,w=-w);let k=o.node(w-1),R=o.index(w-1);if(k.canReplaceWith(R,R,m.type,m.marks))return e.replace(o.before(w),x?s.after(w):n,new ht(Gk(i.content,0,i.openStart,f),f,i.openEnd))}}let h=e.steps.length;for(let p=a.length-1;p>=0&&(e.replace(r,n,i),!(e.steps.length>h));p--){let f=a[p];f<0||(r=o.before(f),n=s.after(f))}}function Gk(e,r,n,i,o){if(r<n){let s=e.firstChild;e=e.replaceChild(0,s.copy(Gk(s.content,r+1,n,i,s)))}if(r>i){let s=o.contentMatchAt(0),a=s.fillBefore(e).append(e);e=a.append(s.matchFragment(a).fillBefore(ze.empty,!0))}return e}function yY(e,r,n,i){if(!i.isInline&&r==n&&e.doc.resolve(r).parent.content.size){let o=hY(e.doc,r,i.type);o!=null&&(r=n=o)}e.replaceRange(r,n,new ht(ze.from(i),0,0))}function TY(e,r,n){let i=e.doc.resolve(r),o=e.doc.resolve(n),s=qk(i,o);for(let a=0;a<s.length;a++){let l=s[a],u=a==s.length-1;if(u&&l==0||i.node(l).type.contentMatch.validEnd)return e.delete(i.start(l),o.end(l));if(l>0&&(u||i.node(l-1).canReplace(i.index(l-1),o.indexAfter(l-1))))return e.delete(i.before(l),o.after(l))}for(let a=1;a<=i.depth&&a<=o.depth;a++)if(r-i.start(a)==i.depth-a&&n>i.end(a)&&o.end(a)-n!=o.depth-a&&i.start(a-1)==o.start(a-1)&&i.node(a-1).canReplace(i.index(a-1),o.index(a-1)))return e.delete(i.before(a),n);e.delete(r,n)}function qk(e,r){let n=[],i=Math.min(e.depth,r.depth);for(let o=i;o>=0;o--){let s=e.start(o);if(s<e.pos-(e.depth-o)||r.end(o)>r.pos+(r.depth-o)||e.node(o).type.spec.isolating||r.node(o).type.spec.isolating)break;(s==r.start(o)||o==e.depth&&o==r.depth&&e.parent.inlineContent&&r.parent.inlineContent&&o&&r.start(o-1)==s-1)&&n.push(o)}return n}class ph extends Eo{constructor(r,n,i){super(),this.pos=r,this.attr=n,this.value=i}apply(r){let n=r.nodeAt(this.pos);if(!n)return vi.fail("No node at attribute step's position");let i=Object.create(null);for(let s in n.attrs)i[s]=n.attrs[s];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return vi.fromReplace(r,this.pos,this.pos+1,new ht(ze.from(o),0,n.isLeaf?0:1))}getMap(){return xs.empty}invert(r){return new ph(this.pos,this.attr,r.nodeAt(this.pos).attrs[this.attr])}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new ph(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(r,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ph(n.pos,n.attr,n.value)}}Eo.jsonID("attr",ph);class of extends Eo{constructor(r,n){super(),this.attr=r,this.value=n}apply(r){let n=Object.create(null);for(let o in r.attrs)n[o]=r.attrs[o];n[this.attr]=this.value;let i=r.type.create(n,r.content,r.marks);return vi.ok(i)}getMap(){return xs.empty}invert(r){return new of(this.attr,r.attrs[this.attr])}map(r){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(r,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new of(n.attr,n.value)}}Eo.jsonID("docAttr",of);let qd=class extends Error{};qd=function e(r){let n=Error.call(this,r);return n.__proto__=e.prototype,n},qd.prototype=Object.create(Error.prototype),qd.prototype.constructor=qd,qd.prototype.name="TransformError";class Zb{constructor(r){this.doc=r,this.steps=[],this.docs=[],this.mapping=new nf}get before(){return this.docs.length?this.docs[0]:this.doc}step(r){let n=this.maybeStep(r);if(n.failed)throw new qd(n.failed);return this}maybeStep(r){let n=r.apply(this.doc);return n.failed||this.addStep(r,n.doc),n}get docChanged(){return this.steps.length>0}addStep(r,n){this.docs.push(this.doc),this.steps.push(r),this.mapping.appendMap(r.getMap()),this.doc=n}replace(r,n=r,i=ht.empty){let o=d3(this.doc,r,n,i);return o&&this.step(o),this}replaceWith(r,n,i){return this.replace(r,n,new ht(ze.from(i),0,0))}delete(r,n){return this.replace(r,n,ht.empty)}insert(r,n){return this.replaceWith(r,r,n)}replaceRange(r,n,i){return gY(this,r,n,i),this}replaceRangeWith(r,n,i){return yY(this,r,n,i),this}deleteRange(r,n){return TY(this,r,n),this}lift(r,n){return rY(this,r,n),this}join(r,n=1){return dY(this,r,n),this}wrap(r,n){return oY(this,r,n),this}setBlockType(r,n=r,i,o=null){return sY(this,r,n,i,o),this}setNodeMarkup(r,n,i=null,o){return lY(this,r,n,i,o),this}setNodeAttribute(r,n,i){return this.step(new ph(r,n,i)),this}setDocAttribute(r,n){return this.step(new of(r,n)),this}addNodeMark(r,n){return this.step(new Tu(r,n)),this}removeNodeMark(r,n){let i=this.doc.nodeAt(r);if(!i)throw new RangeError("No node at position "+r);if(n instanceof en)n.isInSet(i.marks)&&this.step(new Qc(r,n));else{let o=i.marks,s,a=[];for(;s=n.isInSet(o);)a.push(new Qc(r,s)),o=s.removeFromSet(o);for(let l=a.length-1;l>=0;l--)this.step(a[l])}return this}split(r,n=1,i){return uY(this,r,n,i),this}addMark(r,n,i){return Xz(this,r,n,i),this}removeMark(r,n,i){return eY(this,r,n,i),this}clearIncompatible(r,n,i){return Hb(this,r,n,i),this}}const B5=Object.create(null);class rr{constructor(r,n,i){this.$anchor=r,this.$head=n,this.ranges=i||[new $b(r.min(n),r.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 r=this.ranges;for(let n=0;n<r.length;n++)if(r[n].$from.pos!=r[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(r,n=ht.empty){let i=n.content.lastChild,o=null;for(let l=0;l<n.openEnd;l++)o=i,i=i.lastChild;let s=r.steps.length,a=this.ranges;for(let l=0;l<a.length;l++){let{$from:u,$to:c}=a[l],d=r.mapping.slice(s);r.replaceRange(d.map(u.pos),d.map(c.pos),l?ht.empty:n),l==0&&ZA(r,s,(i?i.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(r,n){let i=r.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:a,$to:l}=o[s],u=r.mapping.slice(i),c=u.map(a.pos),d=u.map(l.pos);s?r.deleteRange(c,d):(r.replaceRangeWith(c,d,n),ZA(r,i,n.isInline?-1:1))}}static findFrom(r,n,i=!1){let o=r.parent.inlineContent?new Lt(r):Wd(r.node(0),r.parent,r.pos,r.index(),n,i);if(o)return o;for(let s=r.depth-1;s>=0;s--){let a=n<0?Wd(r.node(0),r.node(s),r.before(s+1),r.index(s),n,i):Wd(r.node(0),r.node(s),r.after(s+1),r.index(s)+1,n,i);if(a)return a}return null}static near(r,n=1){return this.findFrom(r,n)||this.findFrom(r,-n)||new Xo(r.node(0))}static atStart(r){return Wd(r,r,0,0,1)||new Xo(r)}static atEnd(r){return Wd(r,r,r.content.size,r.childCount,-1)||new Xo(r)}static fromJSON(r,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=B5[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(r,n)}static jsonID(r,n){if(r in B5)throw new RangeError("Duplicate use of selection JSON ID "+r);return B5[r]=n,n.prototype.jsonID=r,n}getBookmark(){return Lt.between(this.$anchor,this.$head).getBookmark()}}rr.prototype.visible=!0;class $b{constructor(r,n){this.$from=r,this.$to=n}}let HA=!1;function PA(e){!HA&&!e.parent.inlineContent&&(HA=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Lt extends rr{constructor(r,n=r){PA(r),PA(n),super(r,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(r,n){let i=r.resolve(n.map(this.head));if(!i.parent.inlineContent)return rr.near(i);let o=r.resolve(n.map(this.anchor));return new Lt(o.parent.inlineContent?o:i,i)}replace(r,n=ht.empty){if(super.replace(r,n),n==ht.empty){let i=this.$from.marksAcross(this.$to);i&&r.ensureMarks(i)}}eq(r){return r instanceof Lt&&r.anchor==this.anchor&&r.head==this.head}getBookmark(){return new h3(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(r,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Lt(r.resolve(n.anchor),r.resolve(n.head))}static create(r,n,i=n){let o=r.resolve(n);return new this(o,i==n?o:r.resolve(i))}static between(r,n,i){let o=r.pos-n.pos;if((!i||o)&&(i=o>=0?1:-1),!n.parent.inlineContent){let s=rr.findFrom(n,i,!0)||rr.findFrom(n,-i,!0);if(s)n=s.$head;else return rr.near(n,i)}return r.parent.inlineContent||(o==0?r=n:(r=(rr.findFrom(r,-i,!0)||rr.findFrom(r,i,!0)).$anchor,r.pos<n.pos!=o<0&&(r=n))),new Lt(r,n)}}rr.jsonID("text",Lt);class h3{constructor(r,n){this.anchor=r,this.head=n}map(r){return new h3(r.map(this.anchor),r.map(this.head))}resolve(r){return Lt.between(r.resolve(this.anchor),r.resolve(this.head))}}class Ht extends rr{constructor(r){let n=r.nodeAfter,i=r.node(0).resolve(r.pos+n.nodeSize);super(r,i),this.node=n}map(r,n){let{deleted:i,pos:o}=n.mapResult(this.anchor),s=r.resolve(o);return i?rr.near(s):new Ht(s)}content(){return new ht(ze.from(this.node),0,0)}eq(r){return r instanceof Ht&&r.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Ub(this.anchor)}static fromJSON(r,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Ht(r.resolve(n.anchor))}static create(r,n){return new Ht(r.resolve(n))}static isSelectable(r){return!r.isText&&r.type.spec.selectable!==!1}}Ht.prototype.visible=!1,rr.jsonID("node",Ht);class Ub{constructor(r){this.anchor=r}map(r){let{deleted:n,pos:i}=r.mapResult(this.anchor);return n?new h3(i,i):new Ub(i)}resolve(r){let n=r.resolve(this.anchor),i=n.nodeAfter;return i&&Ht.isSelectable(i)?new Ht(n):rr.near(n)}}class Xo extends rr{constructor(r){super(r.resolve(0),r.resolve(r.content.size))}replace(r,n=ht.empty){if(n==ht.empty){r.delete(0,r.doc.content.size);let i=rr.atStart(r.doc);i.eq(r.selection)||r.setSelection(i)}else super.replace(r,n)}toJSON(){return{type:"all"}}static fromJSON(r){return new Xo(r)}map(r){return new Xo(r)}eq(r){return r instanceof Xo}getBookmark(){return bY}}rr.jsonID("all",Xo);const bY={map(){return this},resolve(e){return new Xo(e)}};function Wd(e,r,n,i,o,s=!1){if(r.inlineContent)return Lt.create(e,n);for(let a=i-(o>0?0:1);o>0?a<r.childCount:a>=0;a+=o){let l=r.child(a);if(l.isAtom){if(!s&&Ht.isSelectable(l))return Ht.create(e,n-(o<0?l.nodeSize:0))}else{let u=Wd(e,l,n+o,o<0?l.childCount:0,o,s);if(u)return u}n+=l.nodeSize*o}return null}function ZA(e,r,n){let i=e.steps.length-1;if(i<r)return;let o=e.steps[i];if(!(o instanceof Ui||o instanceof ji))return;let s=e.mapping.maps[i],a;s.forEach((l,u,c,d)=>{a==null&&(a=d)}),e.setSelection(rr.near(e.doc.resolve(a),n))}const $A=1,jm=2,UA=4;let vY=class extends Zb{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|$A)&~jm,this.storedMarks=null,this}get selectionSet(){return(this.updated&$A)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=jm,this}ensureMarks(e){return en.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&jm)>0}addStep(e,r){super.addStep(e,r),this.updated=this.updated&~jm,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,r=!0){let n=this.selection;return r&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||en.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,r,n){let i=this.doc.type.schema;if(r==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(n==null&&(n=r),!e)return this.deleteRange(r,n);let o=this.storedMarks;if(!o){let s=this.doc.resolve(r);o=n==r?s.marks():s.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(r,n,i.text(e,o)),!this.selection.empty&&this.selection.to==r+e.length&&this.setSelection(rr.near(this.selection.$to)),this}}setMeta(e,r){return this.meta[typeof e=="string"?e:e.key]=r,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|=UA,this}get scrolledIntoView(){return(this.updated&UA)>0}};function VA(e,r){return!r||!e?e:e.bind(r)}class f1{constructor(r,n,i){this.name=r,this.init=VA(n.init,i),this.apply=VA(n.apply,i)}}const AY=[new f1("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new f1("selection",{init(e,r){return e.selection||rr.atStart(r.doc)},apply(e){return e.selection}}),new f1("storedMarks",{init(e){return e.storedMarks||null},apply(e,r,n,i){return i.selection.$cursor?e.storedMarks:null}}),new f1("scrollToSelection",{init(){return 0},apply(e,r){return e.scrolledIntoView?r+1:r}})];class I5{constructor(r,n){this.schema=r,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=AY.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new f1(i.key,i.spec.state,i))})}}class sh{constructor(r){this.config=r}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(r){return this.applyTransaction(r).state}filterTransaction(r,n=-1){for(let i=0;i<this.config.plugins.length;i++)if(i!=n){let o=this.config.plugins[i];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,r,this))return!1}return!0}applyTransaction(r){if(!this.filterTransaction(r))return{state:this,transactions:[]};let n=[r],i=this.applyInner(r),o=null;for(;;){let s=!1;for(let a=0;a<this.config.plugins.length;a++){let l=this.config.plugins[a];if(l.spec.appendTransaction){let u=o?o[a].n:0,c=o?o[a].state:this,d=u<n.length&&l.spec.appendTransaction.call(l,u?n.slice(u):n,c,i);if(d&&i.filterTransaction(d,a)){if(d.setMeta("appendedTransaction",r),!o){o=[];for(let h=0;h<this.config.plugins.length;h++)o.push(h<a?{state:i,n:n.length}:{state:this,n:0})}n.push(d),i=i.applyInner(d),s=!0}o&&(o[a]={state:i,n:n.length})}}if(!s)return{state:i,transactions:n}}}applyInner(r){if(!r.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new sh(this.config),i=this.config.fields;for(let o=0;o<i.length;o++){let s=i[o];n[s.name]=s.apply(r,this[s.name],this,n)}return n}get tr(){return new vY(this)}static create(r){let n=new I5(r.doc?r.doc.type.schema:r.schema,r.plugins),i=new sh(n);for(let o=0;o<n.fields.length;o++)i[n.fields[o].name]=n.fields[o].init(r,i);return i}reconfigure(r){let n=new I5(this.schema,r.plugins),i=n.fields,o=new sh(n);for(let s=0;s<i.length;s++){let a=i[s].name;o[a]=this.hasOwnProperty(a)?this[a]:i[s].init(r,o)}return o}toJSON(r){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(i=>i.toJSON())),r&&typeof r=="object")for(let i in r){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=r[i],s=o.spec.state;s&&s.toJSON&&(n[i]=s.toJSON.call(o,this[o.key]))}return n}static fromJSON(r,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!r.schema)throw new RangeError("Required config field 'schema' missing");let o=new I5(r.schema,r.plugins),s=new sh(o);return o.fields.forEach(a=>{if(a.name=="doc")s.doc=c0.fromJSON(r.schema,n.doc);else if(a.name=="selection")s.selection=rr.fromJSON(s.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(r.schema.markFromJSON));else{if(i)for(let l in i){let u=i[l],c=u.spec.state;if(u.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){s[a.name]=c.fromJSON.call(u,r,n[l],s);return}}s[a.name]=a.init(r,s)}}),s}}function Wk(e,r,n){for(let i in e){let o=e[i];o instanceof Function?o=o.bind(r):i=="handleDOMEvents"&&(o=Wk(o,r,{})),n[i]=o}return n}class lr{constructor(r){this.spec=r,this.props={},r.props&&Wk(r.props,this,this.props),this.key=r.key?r.key.key:Kk("plugin")}getState(r){return r[this.key]}}const L5=Object.create(null);function Kk(e){return e in L5?e+"$"+ ++L5[e]:(L5[e]=0,e+"$")}class hr{constructor(r="key"){this.key=Kk(r)}get(r){return r.config.pluginsByKey[this.key]}getState(r){return r[this.key]}}const $y=(e,r)=>e.selection.empty?!1:(r&&r(e.tr.deleteSelection().scrollIntoView()),!0);function Qk(e,r){let{$cursor:n}=e.selection;return!n||(r?!r.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const Jk=(e,r,n)=>{let i=Qk(e,n);if(!i)return!1;let o=Vb(i);if(!o){let a=i.blockRange(),l=a&&ip(a);return l==null?!1:(r&&r(e.tr.lift(a,l).scrollIntoView()),!0)}let s=o.nodeBefore;if(aC(e,o,r,-1))return!0;if(i.parent.content.size==0&&(Ch(s,"end")||Ht.isSelectable(s)))for(let a=i.depth;;a--){let l=d3(e.doc,i.before(a),i.after(a),ht.empty);if(l&&l.slice.size<l.to-l.from){if(r){let u=e.tr.step(l);u.setSelection(Ch(s,"end")?rr.findFrom(u.doc.resolve(u.mapping.map(o.pos,-1)),-1):Ht.create(u.doc,o.pos-s.nodeSize)),r(u.scrollIntoView())}return!0}if(a==1||i.node(a-1).childCount>1)break}return s.isAtom&&o.depth==i.depth-1?(r&&r(e.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0):!1},EY=(e,r,n)=>{let i=Qk(e,n);if(!i)return!1;let o=Vb(i);return o?Xk(e,o,r):!1},wY=(e,r,n)=>{let i=tC(e,n);if(!i)return!1;let o=jb(i);return o?Xk(e,o,r):!1};function Xk(e,r,n){let i=r.nodeBefore,o=i,s=r.pos-1;for(;!o.isTextblock;s--){if(o.type.spec.isolating)return!1;let d=o.lastChild;if(!d)return!1;o=d}let a=r.nodeAfter,l=a,u=r.pos+1;for(;!l.isTextblock;u++){if(l.type.spec.isolating)return!1;let d=l.firstChild;if(!d)return!1;l=d}let c=d3(e.doc,s,u,ht.empty);if(!c||c.from!=s||c instanceof Ui&&c.slice.size>=u-s)return!1;if(n){let d=e.tr.step(c);d.setSelection(Lt.create(d.doc,s)),n(d.scrollIntoView())}return!0}function Ch(e,r,n=!1){for(let i=e;i;i=r=="start"?i.firstChild:i.lastChild){if(i.isTextblock)return!0;if(n&&i.childCount!=1)return!1}return!1}const eC=(e,r,n)=>{let{$head:i,empty:o}=e.selection,s=i;if(!o)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=Vb(i)}let a=s&&s.nodeBefore;return!a||!Ht.isSelectable(a)?!1:(r&&r(e.tr.setSelection(Ht.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function Vb(e){if(!e.parent.type.spec.isolating)for(let r=e.depth-1;r>=0;r--){if(e.index(r)>0)return e.doc.resolve(e.before(r+1));if(e.node(r).type.spec.isolating)break}return null}function tC(e,r){let{$cursor:n}=e.selection;return!n||(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const rC=(e,r,n)=>{let i=tC(e,n);if(!i)return!1;let o=jb(i);if(!o)return!1;let s=o.nodeAfter;if(aC(e,o,r,1))return!0;if(i.parent.content.size==0&&(Ch(s,"start")||Ht.isSelectable(s))){let a=d3(e.doc,i.before(),i.after(),ht.empty);if(a&&a.slice.size<a.to-a.from){if(r){let l=e.tr.step(a);l.setSelection(Ch(s,"start")?rr.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Ht.create(l.doc,l.mapping.map(o.pos))),r(l.scrollIntoView())}return!0}}return s.isAtom&&o.depth==i.depth-1?(r&&r(e.tr.delete(o.pos,o.pos+s.nodeSize).scrollIntoView()),!0):!1},nC=(e,r,n)=>{let{$head:i,empty:o}=e.selection,s=i;if(!o)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;s=jb(i)}let a=s&&s.nodeAfter;return!a||!Ht.isSelectable(a)?!1:(r&&r(e.tr.setSelection(Ht.create(e.doc,s.pos)).scrollIntoView()),!0)};function jb(e){if(!e.parent.type.spec.isolating)for(let r=e.depth-1;r>=0;r--){let n=e.node(r);if(e.index(r)+1<n.childCount)return e.doc.resolve(e.after(r+1));if(n.type.spec.isolating)break}return null}const SY=(e,r)=>{let n=e.selection,i=n instanceof Ht,o;if(i){if(n.node.isTextblock||!Qu(e.doc,n.from))return!1;o=n.from}else if(o=c3(e.doc,n.from,-1),o==null)return!1;if(r){let s=e.tr.join(o);i&&s.setSelection(Ht.create(s.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),r(s.scrollIntoView())}return!0},DY=(e,r)=>{let n=e.selection,i;if(n instanceof Ht){if(n.node.isTextblock||!Qu(e.doc,n.to))return!1;i=n.to}else if(i=c3(e.doc,n.to,1),i==null)return!1;return r&&r(e.tr.join(i).scrollIntoView()),!0},xY=(e,r)=>{let{$from:n,$to:i}=e.selection,o=n.blockRange(i),s=o&&ip(o);return s==null?!1:(r&&r(e.tr.lift(o,s).scrollIntoView()),!0)},iC=(e,r)=>{let{$head:n,$anchor:i}=e.selection;return!n.parent.type.spec.code||!n.sameParent(i)?!1:(r&&r(e.tr.insertText(` `).scrollIntoView()),!0)};function Gb(e){for(let r=0;r<e.edgeCount;r++){let{type:n}=e.edge(r);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const kY=(e,r)=>{let{$head:n,$anchor:i}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let o=n.node(-1),s=n.indexAfter(-1),a=Gb(o.contentMatchAt(s));if(!a||!o.canReplaceWith(s,s,a))return!1;if(r){let l=n.after(),u=e.tr.replaceWith(l,l,a.createAndFill());u.setSelection(rr.near(u.doc.resolve(l),1)),r(u.scrollIntoView())}return!0},oC=(e,r)=>{let n=e.selection,{$from:i,$to:o}=n;if(n instanceof Xo||i.parent.inlineContent||o.parent.inlineContent)return!1;let s=Gb(o.parent.contentMatchAt(o.indexAfter()));if(!s||!s.isTextblock)return!1;if(r){let a=(!i.parentOffset&&o.index()<o.parent.childCount?i:o).pos,l=e.tr.insert(a,s.createAndFill());l.setSelection(Lt.create(l.doc,a+1)),r(l.scrollIntoView())}return!0},sC=(e,r)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(d0(e.doc,s))return r&&r(e.tr.split(s).scrollIntoView()),!0}let i=n.blockRange(),o=i&&ip(i);return o==null?!1:(r&&r(e.tr.lift(i,o).scrollIntoView()),!0)};function CY(e){return(r,n)=>{let{$from:i,$to:o}=r.selection;if(r.selection instanceof Ht&&r.selection.node.isBlock)return!i.parentOffset||!d0(r.doc,i.pos)?!1:(n&&n(r.tr.split(i.pos).scrollIntoView()),!0);if(!i.depth)return!1;let s=[],a,l,u=!1,c=!1;for(let f=i.depth;;f--)if(i.node(f).isBlock){u=i.end(f)==i.pos+(i.depth-f),c=i.start(f)==i.pos-(i.depth-f),l=Gb(i.node(f-1).contentMatchAt(i.indexAfter(f-1))),s.unshift(u&&l?{type:l}:null),a=f;break}else{if(f==1)return!1;s.unshift(null)}let d=r.tr;(r.selection instanceof Lt||r.selection instanceof Xo)&&d.deleteSelection();let h=d.mapping.map(i.pos),p=d0(d.doc,h,s.length,s);if(p||(s[0]=l?{type:l}:null,p=d0(d.doc,h,s.length,s)),!p)return!1;if(d.split(h,s.length,s),!u&&c&&i.node(a).type!=l){let f=d.mapping.map(i.before(a)),m=d.doc.resolve(f);l&&i.node(a-1).canReplaceWith(m.index(),m.index()+1,l)&&d.setNodeMarkup(d.mapping.map(i.before(a)),l)}return n&&n(d.scrollIntoView()),!0}}const _Y=CY(),NY=(e,r)=>{let{$from:n,to:i}=e.selection,o,s=n.sharedDepth(i);return s==0?!1:(o=n.before(s),r&&r(e.tr.setSelection(Ht.create(e.doc,o))),!0)};function FY(e,r,n){let i=r.nodeBefore,o=r.nodeAfter,s=r.index();return!i||!o||!i.type.compatibleContent(o.type)?!1:!i.content.size&&r.parent.canReplace(s-1,s)?(n&&n(e.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!r.parent.canReplace(s,s+1)||!(o.isTextblock||Qu(e.doc,r.pos))?!1:(n&&n(e.tr.join(r.pos).scrollIntoView()),!0)}function aC(e,r,n,i){let o=r.nodeBefore,s=r.nodeAfter,a,l,u=o.type.spec.isolating||s.type.spec.isolating;if(!u&&FY(e,r,n))return!0;let c=!u&&r.parent.canReplace(r.index(),r.index()+1);if(c&&(a=(l=o.contentMatchAt(o.childCount)).findWrapping(s.type))&&l.matchType(a[0]||s.type).validEnd){if(n){let f=r.pos+s.nodeSize,m=ze.empty;for(let x=a.length-1;x>=0;x--)m=ze.from(a[x].create(null,m));m=ze.from(o.copy(m));let v=e.tr.step(new ji(r.pos-1,f,r.pos,f,new ht(m,1,0),a.length,!0)),w=v.doc.resolve(f+2*a.length);w.nodeAfter&&w.nodeAfter.type==o.type&&Qu(v.doc,w.pos)&&v.join(w.pos),n(v.scrollIntoView())}return!0}let d=s.type.spec.isolating||i>0&&u?null:rr.findFrom(r,1),h=d&&d.$from.blockRange(d.$to),p=h&&ip(h);if(p!=null&&p>=r.depth)return n&&n(e.tr.lift(h,p).scrollIntoView()),!0;if(c&&Ch(s,"start",!0)&&Ch(o,"end")){let f=o,m=[];for(;m.push(f),!f.isTextblock;)f=f.lastChild;let v=s,w=1;for(;!v.isTextblock;v=v.firstChild)w++;if(f.canReplace(f.childCount,f.childCount,v.content)){if(n){let x=ze.empty;for(let R=m.length-1;R>=0;R--)x=ze.from(m[R].copy(x));let k=e.tr.step(new ji(r.pos-m.length,r.pos+s.nodeSize,r.pos+w,r.pos+s.nodeSize-w,new ht(x,m.length,0),0,!0));n(k.scrollIntoView())}return!0}}return!1}function lC(e){return function(r,n){let i=r.selection,o=e<0?i.$from:i.$to,s=o.depth;for(;o.node(s).isInline;){if(!s)return!1;s--}return o.node(s).isTextblock?(n&&n(r.tr.setSelection(Lt.create(r.doc,e<0?o.start(s):o.end(s)))),!0):!1}}const OY=lC(-1),MY=lC(1);function RY(e,r=null){return function(n,i){let{$from:o,$to:s}=n.selection,a=o.blockRange(s),l=a&&Pb(a,e,r);return l?(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0):!1}}function jA(e,r=null){return function(n,i){let o=!1;for(let s=0;s<n.selection.ranges.length&&!o;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];n.doc.nodesBetween(a,l,(u,c)=>{if(o)return!1;if(!(!u.isTextblock||u.hasMarkup(e,r)))if(u.type==e)o=!0;else{let d=n.doc.resolve(c),h=d.index();o=d.parent.canReplaceWith(h,h+1,e)}})}if(!o)return!1;if(i){let s=n.tr;for(let a=0;a<n.selection.ranges.length;a++){let{$from:{pos:l},$to:{pos:u}}=n.selection.ranges[a];s.setBlockType(l,u,e,r)}i(s.scrollIntoView())}return!0}}function z5(...e){return function(r,n,i){for(let o=0;o<e.length;o++)if(e[o](r,n,i))return!0;return!1}}z5($y,Jk,eC),z5($y,rC,nC),z5(iC,oC,sC,_Y),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function BY(e,r=null){return function(n,i){let{$from:o,$to:s}=n.selection,a=o.blockRange(s);if(!a)return!1;let l=i?n.tr:null;return IY(l,a,e,r)?(i&&i(l.scrollIntoView()),!0):!1}}function IY(e,r,n,i=null){let o=!1,s=r,a=r.$from.doc;if(r.depth>=2&&r.$from.node(r.depth-1).type.compatibleContent(n)&&r.startIndex==0){if(r.$from.index(r.depth-1)==0)return!1;let u=a.resolve(r.start-2);s=new tf(u,u,r.depth),r.endIndex<r.parent.childCount&&(r=new tf(r.$from,a.resolve(r.$to.end(r.depth)),r.depth)),o=!0}let l=Pb(s,n,i,r);return l?(e&&LY(e,r,l,o,n),!0):!1}function LY(e,r,n,i,o){let s=ze.empty;for(let d=n.length-1;d>=0;d--)s=ze.from(n[d].type.create(n[d].attrs,s));e.step(new ji(r.start-(i?2:0),r.end,r.start,r.end,new ht(s,0,0),n.length,!0));let a=0;for(let d=0;d<n.length;d++)n[d].type==o&&(a=d+1);let l=n.length-a,u=r.start+n.length-(i?2:0),c=r.parent;for(let d=r.startIndex,h=r.endIndex,p=!0;d<h;d++,p=!1)!p&&d0(e.doc,u,l)&&(e.split(u,l),u+=2*l),u+=c.child(d).nodeSize;return e}function zY(e){return function(r,n){let{$from:i,$to:o}=r.selection,s=i.blockRange(o,a=>a.childCount>0&&a.firstChild.type==e);return s?n?i.node(s.depth-1).type==e?YY(r,n,e,s):HY(r,n,s):!0:!1}}function YY(e,r,n,i){let o=e.tr,s=i.end,a=i.$to.end(i.depth);s<a&&(o.step(new ji(s-1,a,s,a,new ht(ze.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new tf(o.doc.resolve(i.$from.pos),o.doc.resolve(a),i.depth));const l=ip(i);if(l==null)return!1;o.lift(i,l);let u=o.doc.resolve(o.mapping.map(s,-1)-1);return Qu(o.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&o.join(u.pos),r(o.scrollIntoView()),!0}function HY(e,r,n){let i=e.tr,o=n.parent;for(let f=n.end,m=n.endIndex-1,v=n.startIndex;m>v;m--)f-=o.child(m).nodeSize,i.delete(f-1,f+1);let s=i.doc.resolve(n.start),a=s.nodeAfter;if(i.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,u=n.endIndex==o.childCount,c=s.node(-1),d=s.index(-1);if(!c.canReplace(d+(l?0:1),d+1,a.content.append(u?ze.empty:ze.from(o))))return!1;let h=s.pos,p=h+a.nodeSize;return i.step(new ji(h-(l?1:0),p+(u?1:0),h+1,p-1,new ht((l?ze.empty:ze.from(o.copy(ze.empty))).append(u?ze.empty:ze.from(o.copy(ze.empty))),l?0:1,u?0:1),l?0:1)),r(i.scrollIntoView()),!0}function PY(e){return function(r,n){let{$from:i,$to:o}=r.selection,s=i.blockRange(o,c=>c.childCount>0&&c.firstChild.type==e);if(!s)return!1;let a=s.startIndex;if(a==0)return!1;let l=s.parent,u=l.child(a-1);if(u.type!=e)return!1;if(n){let c=u.lastChild&&u.lastChild.type==l.type,d=ze.from(c?e.create():null),h=new ht(ze.from(e.create(null,ze.from(l.type.create(null,d)))),c?3:1,0),p=s.start,f=s.end;n(r.tr.step(new ji(p-(c?3:1),f,p,f,h,1,!0)).scrollIntoView())}return!0}}const ro=function(e){for(var r=0;;r++)if(e=e.previousSibling,!e)return r},_h=function(e){let r=e.assignedSlot||e.parentNode;return r&&r.nodeType==11?r.host:r};let Uy=null;const Xl=function(e,r,n){let i=Uy||(Uy=document.createRange());return i.setEnd(e,n??e.nodeValue.length),i.setStart(e,r||0),i},ZY=function(){Uy=null},Jc=function(e,r,n,i){return n&&(GA(e,r,n,i,-1)||GA(e,r,n,i,1))},$Y=/^(img|br|input|textarea|hr)$/i;function GA(e,r,n,i,o){for(var s;;){if(e==n&&r==i)return!0;if(r==(o<0?0:Us(e))){let a=e.parentNode;if(!a||a.nodeType!=1||jf(e)||$Y.test(e.nodeName)||e.contentEditable=="false")return!1;r=ro(e)+(o<0?0:1),e=a}else if(e.nodeType==1){let a=e.childNodes[r+(o<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((s=a.pmViewDesc)===null||s===void 0)&&s.ignoreForSelection)r+=o;else return!1;else e=a,r=o<0?Us(e):0}else return!1}}function Us(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function UY(e,r){for(;;){if(e.nodeType==3&&r)return e;if(e.nodeType==1&&r>0){if(e.contentEditable=="false")return null;e=e.childNodes[r-1],r=Us(e)}else if(e.parentNode&&!jf(e))r=ro(e),e=e.parentNode;else return null}}function VY(e,r){for(;;){if(e.nodeType==3&&r<e.nodeValue.length)return e;if(e.nodeType==1&&r<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[r],r=0}else if(e.parentNode&&!jf(e))r=ro(e)+1,e=e.parentNode;else return null}}function jY(e,r,n){for(let i=r==0,o=r==Us(e);i||o;){if(e==n)return!0;let s=ro(e);if(e=e.parentNode,!e)return!1;i=i&&s==0,o=o&&s==Us(e)}}function jf(e){let r;for(let n=e;n&&!(r=n.pmViewDesc);n=n.parentNode);return r&&r.node&&r.node.isBlock&&(r.dom==e||r.contentDOM==e)}const p3=function(e){return e.focusNode&&Jc(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Fc(e,r){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=r,n}function GY(e){let r=e.activeElement;for(;r&&r.shadowRoot;)r=r.shadowRoot.activeElement;return r}function qY(e,r,n){if(e.caretPositionFromPoint)try{let i=e.caretPositionFromPoint(r,n);if(i)return{node:i.offsetNode,offset:Math.min(Us(i.offsetNode),i.offset)}}catch{}if(e.caretRangeFromPoint){let i=e.caretRangeFromPoint(r,n);if(i)return{node:i.startContainer,offset:Math.min(Us(i.startContainer),i.startOffset)}}}const Dl=typeof navigator<"u"?navigator:null,qA=typeof document<"u"?document:null,Ju=Dl&&Dl.userAgent||"",Vy=/Edge\/(\d+)/.exec(Ju),uC=/MSIE \d/.exec(Ju),jy=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ju),es=!!(uC||jy||Vy),ku=uC?document.documentMode:jy?+jy[1]:Vy?+Vy[1]:0,Ws=!es&&/gecko\/(\d+)/i.test(Ju);Ws&&+(/Firefox\/(\d+)/.exec(Ju)||[0,0])[1];const Gy=!es&&/Chrome\/(\d+)/.exec(Ju),go=!!Gy,cC=Gy?+Gy[1]:0,Lo=!es&&!!Dl&&/Apple Computer/.test(Dl.vendor),Nh=Lo&&(/Mobile\/\w+/.test(Ju)||!!Dl&&Dl.maxTouchPoints>2),Zs=Nh||(Dl?/Mac/.test(Dl.platform):!1),WY=Dl?/Win/.test(Dl.platform):!1,o0=/Android \d/.test(Ju),Gf=!!qA&&"webkitFontSmoothing"in qA.documentElement.style,KY=Gf?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function QY(e){let r=e.defaultView&&e.defaultView.visualViewport;return r?{left:0,right:r.width,top:0,bottom:r.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Zl(e,r){return typeof e=="number"?e:e[r]}function JY(e){let r=e.getBoundingClientRect(),n=r.width/e.offsetWidth||1,i=r.height/e.offsetHeight||1;return{left:r.left,right:r.left+e.clientWidth*n,top:r.top,bottom:r.top+e.clientHeight*i}}function WA(e,r,n){let i=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,s=e.dom.ownerDocument;for(let a=n||e.dom;a;){if(a.nodeType!=1){a=_h(a);continue}let l=a,u=l==s.body,c=u?QY(s):JY(l),d=0,h=0;if(r.top<c.top+Zl(i,"top")?h=-(c.top-r.top+Zl(o,"top")):r.bottom>c.bottom-Zl(i,"bottom")&&(h=r.bottom-r.top>c.bottom-c.top?r.top+Zl(o,"top")-c.top:r.bottom-c.bottom+Zl(o,"bottom")),r.left<c.left+Zl(i,"left")?d=-(c.left-r.left+Zl(o,"left")):r.right>c.right-Zl(i,"right")&&(d=r.right-c.right+Zl(o,"right")),d||h)if(u)s.defaultView.scrollBy(d,h);else{let f=l.scrollLeft,m=l.scrollTop;h&&(l.scrollTop+=h),d&&(l.scrollLeft+=d);let v=l.scrollLeft-f,w=l.scrollTop-m;r={left:r.left-v,top:r.top-w,right:r.right-v,bottom:r.bottom-w}}let p=u?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(p))break;a=p=="absolute"?a.offsetParent:_h(a)}}function XY(e){let r=e.dom.getBoundingClientRect(),n=Math.max(0,r.top),i,o;for(let s=(r.left+r.right)/2,a=n+1;a<Math.min(innerHeight,r.bottom);a+=5){let l=e.root.elementFromPoint(s,a);if(!l||l==e.dom||!e.dom.contains(l))continue;let u=l.getBoundingClientRect();if(u.top>=n-20){i=l,o=u.top;break}}return{refDOM:i,refTop:o,stack:dC(e.dom)}}function dC(e){let r=[],n=e.ownerDocument;for(let i=e;i&&(r.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),e!=n);i=_h(i));return r}function eH({refDOM:e,refTop:r,stack:n}){let i=e?e.getBoundingClientRect().top:0;hC(n,i==0?0:i-r)}function hC(e,r){for(let n=0;n<e.length;n++){let{dom:i,top:o,left:s}=e[n];i.scrollTop!=o+r&&(i.scrollTop=o+r),i.scrollLeft!=s&&(i.scrollLeft=s)}}let Pd=null;function tH(e){if(e.setActive)return e.setActive();if(Pd)return e.focus(Pd);let r=dC(e);e.focus(Pd==null?{get preventScroll(){return Pd={preventScroll:!0},!0}}:void 0),Pd||(Pd=!1,hC(r,0))}function pC(e,r){let n,i=2e8,o,s=0,a=r.top,l=r.top,u,c;for(let d=e.firstChild,h=0;d;d=d.nextSibling,h++){let p;if(d.nodeType==1)p=d.getClientRects();else if(d.nodeType==3)p=Xl(d).getClientRects();else continue;for(let f=0;f<p.length;f++){let m=p[f];if(m.top<=a&&m.bottom>=l){a=Math.max(m.bottom,a),l=Math.min(m.top,l);let v=m.left>r.left?m.left-r.left:m.right<r.left?r.left-m.right:0;if(v<i){n=d,i=v,o=v&&n.nodeType==3?{left:m.right<r.left?m.right:m.left,top:r.top}:r,d.nodeType==1&&v&&(s=h+(r.left>=(m.left+m.right)/2?1:0));continue}}else m.top>r.top&&!u&&m.left<=r.left&&m.right>=r.left&&(u=d,c={left:Math.max(m.left,Math.min(m.right,r.left)),top:m.top});!n&&(r.left>=m.right&&r.top>=m.top||r.left>=m.left&&r.top>=m.bottom)&&(s=h+1)}}return!n&&u&&(n=u,o=c,i=0),n&&n.nodeType==3?rH(n,o):!n||i&&n.nodeType==1?{node:e,offset:s}:pC(n,o)}function rH(e,r){let n=e.nodeValue.length,i=document.createRange();for(let o=0;o<n;o++){i.setEnd(e,o+1),i.setStart(e,o);let s=tu(i,1);if(s.top!=s.bottom&&qb(r,s))return{node:e,offset:o+(r.left>=(s.left+s.right)/2?1:0)}}return{node:e,offset:0}}function qb(e,r){return e.left>=r.left-1&&e.left<=r.right+1&&e.top>=r.top-1&&e.top<=r.bottom+1}function nH(e,r){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&r.left<e.getBoundingClientRect().left?n:e}function iH(e,r,n){let{node:i,offset:o}=pC(r,n),s=-1;if(i.nodeType==1&&!i.firstChild){let a=i.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(i,o,s)}function oH(e,r,n,i){let o=-1;for(let s=r,a=!1;s!=e.dom;){let l=e.docView.nearestDesc(s,!0),u;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((u=l.dom.getBoundingClientRect()).width||u.height)&&(l.node.isBlock&&l.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(l.dom.nodeName)&&(!a&&u.left>i.left||u.top>i.top?o=l.posBefore:(!a&&u.right<i.left||u.bottom<i.top)&&(o=l.posAfter),a=!0),!l.contentDOM&&o<0&&!l.node.isText))return(l.node.isBlock?i.top<(u.top+u.bottom)/2:i.left<(u.left+u.right)/2)?l.posBefore:l.posAfter;s=l.dom.parentNode}return o>-1?o:e.docView.posFromDOM(r,n,-1)}function fC(e,r,n){let i=e.childNodes.length;if(i&&n.top<n.bottom)for(let o=Math.max(0,Math.min(i-1,Math.floor(i*(r.top-n.top)/(n.bottom-n.top))-2)),s=o;;){let a=e.childNodes[s];if(a.nodeType==1){let l=a.getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(qb(r,c))return fC(a,r,c)}}if((s=(s+1)%i)==o)break}return e}function sH(e,r){let n=e.dom.ownerDocument,i,o=0,s=qY(n,r.left,r.top);s&&({node:i,offset:o}=s);let a=(e.root.elementFromPoint?e.root:n).elementFromPoint(r.left,r.top),l;if(!a||!e.dom.contains(a.nodeType!=1?a.parentNode:a)){let c=e.dom.getBoundingClientRect();if(!qb(r,c)||(a=fC(e.dom,r,c),!a))return null}if(Lo)for(let c=a;i&&c;c=_h(c))c.draggable&&(i=void 0);if(a=nH(a,r),i){if(Ws&&i.nodeType==1&&(o=Math.min(o,i.childNodes.length),o<i.childNodes.length)){let d=i.childNodes[o],h;d.nodeName=="IMG"&&(h=d.getBoundingClientRect()).right<=r.left&&h.bottom>r.top&&o++}let c;Gf&&o&&i.nodeType==1&&(c=i.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=r.top&&o--,i==e.dom&&o==i.childNodes.length-1&&i.lastChild.nodeType==1&&r.top>i.lastChild.getBoundingClientRect().bottom?l=e.state.doc.content.size:(o==0||i.nodeType!=1||i.childNodes[o-1].nodeName!="BR")&&(l=oH(e,i,o,r))}l==null&&(l=iH(e,a,r));let u=e.docView.nearestDesc(a,!0);return{pos:l,inside:u?u.posAtStart-u.border:-1}}function KA(e){return e.top<e.bottom||e.left<e.right}function tu(e,r){let n=e.getClientRects();if(n.length){let i=n[r<0?0:n.length-1];if(KA(i))return i}return Array.prototype.find.call(n,KA)||e.getBoundingClientRect()}const aH=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function mC(e,r,n){let{node:i,offset:o,atom:s}=e.docView.domFromPos(r,n<0?-1:1),a=Gf||Ws;if(i.nodeType==3)if(a&&(aH.test(i.nodeValue)||(n<0?!o:o==i.nodeValue.length))){let l=tu(Xl(i,o,o),n);if(Ws&&o&&/\s/.test(i.nodeValue[o-1])&&o<i.nodeValue.length){let u=tu(Xl(i,o-1,o-1),-1);if(u.top==l.top){let c=tu(Xl(i,o,o+1),-1);if(c.top!=l.top)return Bp(c,c.left<u.left)}}return l}else{let l=o,u=o,c=n<0?1:-1;return n<0&&!o?(u++,c=-1):n>=0&&o==i.nodeValue.length?(l--,c=1):n<0?l--:u++,Bp(tu(Xl(i,l,u),c),c<0)}if(!e.state.doc.resolve(r-(s||0)).parent.inlineContent){if(s==null&&o&&(n<0||o==Us(i))){let l=i.childNodes[o-1];if(l.nodeType==1)return Y5(l.getBoundingClientRect(),!1)}if(s==null&&o<Us(i)){let l=i.childNodes[o];if(l.nodeType==1)return Y5(l.getBoundingClientRect(),!0)}return Y5(i.getBoundingClientRect(),n>=0)}if(s==null&&o&&(n<0||o==Us(i))){let l=i.childNodes[o-1],u=l.nodeType==3?Xl(l,Us(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Bp(tu(u,1),!1)}if(s==null&&o<Us(i)){let l=i.childNodes[o];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Xl(l,0,a?0:1):l.nodeType==1?l:null:null;if(u)return Bp(tu(u,-1),!0)}return Bp(tu(i.nodeType==3?Xl(i):i,-n),n>=0)}function Bp(e,r){if(e.width==0)return e;let n=r?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Y5(e,r){if(e.height==0)return e;let n=r?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function gC(e,r,n){let i=e.state,o=e.root.activeElement;i!=r&&e.updateState(r),o!=e.dom&&e.focus();try{return n()}finally{i!=r&&e.updateState(i),o!=e.dom&&o&&o.focus()}}function lH(e,r,n){let i=r.selection,o=n=="up"?i.$from:i.$to;return gC(e,r,()=>{let{node:s}=e.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=e.docView.nearestDesc(s,!0);if(!l)break;if(l.node.isBlock){s=l.contentDOM||l.dom;break}s=l.dom.parentNode}let a=mC(e,o.pos,1);for(let l=s.firstChild;l;l=l.nextSibling){let u;if(l.nodeType==1)u=l.getClientRects();else if(l.nodeType==3)u=Xl(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<u.length;c++){let d=u[c];if(d.bottom>d.top+1&&(n=="up"?a.top-d.top>(d.bottom-a.top)*2:d.bottom-a.bottom>(a.bottom-d.top)*2))return!1}}return!0})}const uH=/[\u0590-\u08ac]/;function cH(e,r,n){let{$head:i}=r.selection;if(!i.parent.isTextblock)return!1;let o=i.parentOffset,s=!o,a=o==i.parent.content.size,l=e.domSelection();return l?!uH.test(i.parent.textContent)||!l.modify?n=="left"||n=="backward"?s:a:gC(e,r,()=>{let{focusNode:u,focusOffset:c,anchorNode:d,anchorOffset:h}=e.domSelectionRange(),p=l.caretBidiLevel;l.modify("move",n,"character");let f=i.depth?e.docView.domAfterPos(i.before()):e.dom,{focusNode:m,focusOffset:v}=e.domSelectionRange(),w=m&&!f.contains(m.nodeType==1?m:m.parentNode)||u==m&&c==v;try{l.collapse(d,h),u&&(u!=d||c!=h)&&l.extend&&l.extend(u,c)}catch{}return p!=null&&(l.caretBidiLevel=p),w}):i.pos==i.start()||i.pos==i.end()}let QA=null,JA=null,XA=!1;function dH(e,r,n){return QA==r&&JA==n?XA:(QA=r,JA=n,XA=n=="up"||n=="down"?lH(e,r,n):cH(e,r,n))}const Ks=0,e8=1,Mc=2,xl=3;class qf{constructor(r,n,i,o){this.parent=r,this.children=n,this.dom=i,this.contentDOM=o,this.dirty=Ks,i.pmViewDesc=this}matchesWidget(r){return!1}matchesMark(r){return!1}matchesNode(r,n,i){return!1}matchesHack(r){return!1}parseRule(){return null}stopEvent(r){return!1}get size(){let r=0;for(let n=0;n<this.children.length;n++)r+=this.children[n].size;return r}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let r=0;r<this.children.length;r++)this.children[r].destroy()}posBeforeChild(r){for(let n=0,i=this.posAtStart;;n++){let o=this.children[n];if(o==r)return i;i+=o.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(r,n,i){if(this.contentDOM&&this.contentDOM.contains(r.nodeType==1?r:r.parentNode))if(i<0){let s,a;if(r==this.contentDOM)s=r.childNodes[n-1];else{for(;r.parentNode!=this.contentDOM;)r=r.parentNode;s=r.previousSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(a)+a.size:this.posAtStart}else{let s,a;if(r==this.contentDOM)s=r.childNodes[n];else{for(;r.parentNode!=this.contentDOM;)r=r.parentNode;s=r.nextSibling}for(;s&&!((a=s.pmViewDesc)&&a.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(a):this.posAtEnd}let o;if(r==this.dom&&this.contentDOM)o=n>ro(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=r.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=r;;s=s.parentNode){if(s==this.dom){o=!1;break}if(s.previousSibling)break}if(o==null&&n==r.childNodes.length)for(let s=r;;s=s.parentNode){if(s==this.dom){o=!0;break}if(s.nextSibling)break}}return o??i>0?this.posAtEnd:this.posAtStart}nearestDesc(r,n=!1){for(let i=!0,o=r;o;o=o.parentNode){let s=this.getDesc(o),a;if(s&&(!n||s.node))if(i&&(a=s.nodeDOM)&&!(a.nodeType==1?a.contains(r.nodeType==1?r:r.parentNode):a==r))i=!1;else return s}}getDesc(r){let n=r.pmViewDesc;for(let i=n;i;i=i.parent)if(i==this)return n}posFromDOM(r,n,i){for(let o=r;o;o=o.parentNode){let s=this.getDesc(o);if(s)return s.localPosFromDOM(r,n,i)}return-1}descAt(r){for(let n=0,i=0;n<this.children.length;n++){let o=this.children[n],s=i+o.size;if(i==r&&s!=i){for(;!o.border&&o.children.length;)for(let a=0;a<o.children.length;a++){let l=o.children[a];if(l.size){o=l;break}}return o}if(r<s)return o.descAt(r-i-o.border);i=s}}domFromPos(r,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:r+1};let i=0,o=0;for(let s=0;i<this.children.length;i++){let a=this.children[i],l=s+a.size;if(l>r||a instanceof TC){o=r-s;break}s=l}if(o)return this.children[i].domFromPos(o-this.children[i].border,n);for(let s;i&&!(s=this.children[i-1]).size&&s instanceof yC&&s.side>=0;i--);if(n<=0){let s,a=!0;for(;s=i?this.children[i-1]:null,!(!s||s.dom.parentNode==this.contentDOM);i--,a=!1);return s&&n&&a&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?ro(s.dom)+1:0}}else{let s,a=!0;for(;s=i<this.children.length?this.children[i]:null,!(!s||s.dom.parentNode==this.contentDOM);i++,a=!1);return s&&a&&!s.border&&!s.domAtom?s.domFromPos(0,n):{node:this.contentDOM,offset:s?ro(s.dom):this.contentDOM.childNodes.length}}}parseRange(r,n,i=0){if(this.children.length==0)return{node:this.contentDOM,from:r,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,s=-1;for(let a=i,l=0;;l++){let u=this.children[l],c=a+u.size;if(o==-1&&r<=c){let d=a+u.border;if(r>=d&&n<=c-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(r,n,d);r=a;for(let h=l;h>0;h--){let p=this.children[h-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){o=ro(p.dom)+1;break}r-=p.size}o==-1&&(o=0)}if(o>-1&&(c>n||l==this.children.length-1)){n=c;for(let d=l+1;d<this.children.length;d++){let h=this.children[d];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){s=ro(h.dom);break}n+=h.size}s==-1&&(s=this.contentDOM.childNodes.length);break}a=c}return{node:this.contentDOM,from:r,to:n,fromOffset:o,toOffset:s}}emptyChildAt(r){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[r<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(r)}domAfterPos(r){let{node:n,offset:i}=this.domFromPos(r,0);if(n.nodeType!=1||i==n.childNodes.length)throw new RangeError("No node after pos "+r);return n.childNodes[i]}setSelection(r,n,i,o=!1){let s=Math.min(r,n),a=Math.max(r,n);for(let f=0,m=0;f<this.children.length;f++){let v=this.children[f],w=m+v.size;if(s>m&&a<w)return v.setSelection(r-m-v.border,n-m-v.border,i,o);m=w}let l=this.domFromPos(r,r?-1:1),u=n==r?l:this.domFromPos(n,n?-1:1),c=i.root.getSelection(),d=i.domSelectionRange(),h=!1;if((Ws||Lo)&&r==n){let{node:f,offset:m}=l;if(f.nodeType==3){if(h=!!(m&&f.nodeValue[m-1]==` `),h&&m==f.nodeValue.length)for(let v=f,w;v;v=v.parentNode){if(w=v.nextSibling){w.nodeName=="BR"&&(l=u={node:w.parentNode,offset:ro(w)+1});break}let x=v.pmViewDesc;if(x&&x.node&&x.node.isBlock)break}}else{let v=f.childNodes[m-1];h=v&&(v.nodeName=="BR"||v.contentEditable=="false")}}if(Ws&&d.focusNode&&d.focusNode!=u.node&&d.focusNode.nodeType==1){let f=d.focusNode.childNodes[d.focusOffset];f&&f.contentEditable=="false"&&(o=!0)}if(!(o||h&&Lo)&&Jc(l.node,l.offset,d.anchorNode,d.anchorOffset)&&Jc(u.node,u.offset,d.focusNode,d.focusOffset))return;let p=!1;if((c.extend||r==n)&&!(h&&Ws)){c.collapse(l.node,l.offset);try{r!=n&&c.extend(u.node,u.offset),p=!0}catch{}}if(!p){if(r>n){let m=l;l=u,u=m}let f=document.createRange();f.setEnd(u.node,u.offset),f.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(r){return!this.contentDOM&&r.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(r,n){for(let i=0,o=0;o<this.children.length;o++){let s=this.children[o],a=i+s.size;if(i==a?r<=a&&n>=i:r<a&&n>i){let l=i+s.border,u=a-s.border;if(r>=l&&n<=u){this.dirty=r==i||n==a?Mc:e8,r==l&&n==u&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=xl:s.markDirty(r-l,n-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Mc:xl}i=a}this.dirty=Mc}markParentsDirty(){let r=1;for(let n=this.parent;n;n=n.parent,r++){let i=r==1?Mc:e8;n.dirty<i&&(n.dirty=i)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(r){return!1}}class yC extends qf{constructor(r,n,i,o){let s,a=n.type.toDOM;if(typeof a=="function"&&(a=a(i,()=>{if(!s)return o;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(a.nodeType!=1){let l=document.createElement("span");l.appendChild(a),a=l}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(r,[],a,null),this.widget=n,this.widget=n,s=this}matchesWidget(r){return this.dirty==Ks&&r.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(r){let n=this.widget.spec.stopEvent;return n?n(r):!1}ignoreMutation(r){return r.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class hH extends qf{constructor(r,n,i,o){super(r,[],n,null),this.textDOM=i,this.text=o}get size(){return this.text.length}localPosFromDOM(r,n){return r!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(r){return{node:this.textDOM,offset:r}}ignoreMutation(r){return r.type==="characterData"&&r.target.nodeValue==r.oldValue}}class Xc extends qf{constructor(r,n,i,o,s){super(r,[],i,o),this.mark=n,this.spec=s}static create(r,n,i,o){let s=o.nodeViews[n.type.name],a=s&&s(n,o,i);return(!a||!a.dom)&&(a=cd.renderSpec(document,n.type.spec.toDOM(n,i),null,n.attrs)),new Xc(r,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&xl||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(r){return this.dirty!=xl&&this.mark.eq(r)}markDirty(r,n){if(super.markDirty(r,n),this.dirty!=Ks){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=Ks}}slice(r,n,i){let o=Xc.create(this.parent,this.mark,!0,i),s=this.children,a=this.size;n<a&&(s=Wy(s,n,a,i)),r>0&&(s=Wy(s,0,r,i));for(let l=0;l<s.length;l++)s[l].parent=o;return o.children=s,o}ignoreMutation(r){return this.spec.ignoreMutation?this.spec.ignoreMutation(r):super.ignoreMutation(r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Cu extends qf{constructor(r,n,i,o,s,a,l,u,c){super(r,[],s,a),this.node=n,this.outerDeco=i,this.innerDeco=o,this.nodeDOM=l}static create(r,n,i,o,s,a){let l=s.nodeViews[n.type.name],u,c=l&&l(n,s,()=>{if(!u)return a;if(u.parent)return u.parent.posBeforeChild(u)},i,o),d=c&&c.dom,h=c&&c.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:h}=cd.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!h&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let p=d;return d=AC(d,i,n),c?u=new pH(r,n,i,o,d,h||null,p,c,s,a+1):n.isText?new f3(r,n,i,o,d,p,s):new Cu(r,n,i,o,d,h||null,p,s,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let r={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(r.preserveWhitespace="full"),!this.contentDOM)r.getContent=()=>this.node.content;else if(!this.contentLost)r.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let i=this.children[n];if(this.dom.contains(i.dom.parentNode)){r.contentElement=i.dom.parentNode;break}}r.contentElement||(r.getContent=()=>ze.empty)}return r}matchesNode(r,n,i){return this.dirty==Ks&&r.eq(this.node)&&N2(n,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(r,n){let i=this.node.inlineContent,o=n,s=r.composing?this.localCompositionInfo(r,n):null,a=s&&s.pos>-1?s:null,l=s&&s.pos<0,u=new mH(this,a&&a.node,r);TH(this.node,this.innerDeco,(c,d,h)=>{c.spec.marks?u.syncToMarks(c.spec.marks,i,r):c.type.side>=0&&!h&&u.syncToMarks(d==this.node.childCount?en.none:this.node.child(d).marks,i,r),u.placeWidget(c,r,o)},(c,d,h,p)=>{u.syncToMarks(c.marks,i,r);let f;u.findNodeMatch(c,d,h,p)||l&&r.state.selection.from>o&&r.state.selection.to<o+c.nodeSize&&(f=u.findIndexWithChild(s.node))>-1&&u.updateNodeAt(c,d,h,f,r)||u.updateNextNode(c,d,h,r,p,o)||u.addNode(c,d,h,r,o),o+=c.nodeSize}),u.syncToMarks([],i,r),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==Mc)&&(a&&this.protectLocalComposition(r,a),bC(this.contentDOM,this.children,r),Nh&&bH(this.dom))}localCompositionInfo(r,n){let{from:i,to:o}=r.state.selection;if(!(r.state.selection instanceof Lt)||i<n||o>n+this.node.content.size)return null;let s=r.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,l=vH(this.node.content,a,i-n,o-n);return l<0?null:{node:s,pos:l,text:a}}else return{node:s,pos:-1,text:""}}protectLocalComposition(r,{node:n,pos:i,text:o}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let a=new hH(this,s,n,o);r.input.compositionNodes.push(a),this.children=Wy(this.children,i,i+o.length,r,a)}update(r,n,i,o){return this.dirty==xl||!r.sameMarkup(this.node)?!1:(this.updateInner(r,n,i,o),!0)}updateInner(r,n,i,o){this.updateOuterDeco(n),this.node=r,this.innerDeco=i,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=Ks}updateOuterDeco(r){if(N2(r,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,i=this.dom;this.dom=vC(this.dom,this.nodeDOM,qy(this.outerDeco,this.node,n),qy(r,this.node,n)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=r}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function t8(e,r,n,i,o){AC(i,r,e);let s=new Cu(void 0,e,r,n,i,i,i,o,0);return s.contentDOM&&s.updateChildren(o,0),s}class f3 extends Cu{constructor(r,n,i,o,s,a,l){super(r,n,i,o,s,null,a,l,0)}parseRule(){let r=this.nodeDOM.parentNode;for(;r&&r!=this.dom&&!r.pmIsDeco;)r=r.parentNode;return{skip:r||!0}}update(r,n,i,o){return this.dirty==xl||this.dirty!=Ks&&!this.inParent()||!r.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ks||r.text!=this.node.text)&&r.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=r.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=r,this.dirty=Ks,!0)}inParent(){let r=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==r)return!0;return!1}domFromPos(r){return{node:this.nodeDOM,offset:r}}localPosFromDOM(r,n,i){return r==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(r,n,i)}ignoreMutation(r){return r.type!="characterData"&&r.type!="selection"}slice(r,n,i){let o=this.node.cut(r,n),s=document.createTextNode(o.text);return new f3(this.parent,o,this.outerDeco,this.innerDeco,s,s,i)}markDirty(r,n){super.markDirty(r,n),this.dom!=this.nodeDOM&&(r==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=xl)}get domAtom(){return!1}isText(r){return this.node.text==r}}class TC extends qf{parseRule(){return{ignore:!0}}matchesHack(r){return this.dirty==Ks&&this.dom.nodeName==r}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class pH extends Cu{constructor(r,n,i,o,s,a,l,u,c,d){super(r,n,i,o,s,a,l,c,d),this.spec=u}update(r,n,i,o){if(this.dirty==xl)return!1;if(this.spec.update&&(this.node.type==r.type||this.spec.multiType)){let s=this.spec.update(r,n,i);return s&&this.updateInner(r,n,i,o),s}else return!this.contentDOM&&!r.isLeaf?!1:super.update(r,n,i,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(r,n,i,o){this.spec.setSelection?this.spec.setSelection(r,n,i.root):super.setSelection(r,n,i,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(r){return this.spec.stopEvent?this.spec.stopEvent(r):!1}ignoreMutation(r){return this.spec.ignoreMutation?this.spec.ignoreMutation(r):super.ignoreMutation(r)}}function bC(e,r,n){let i=e.firstChild,o=!1;for(let s=0;s<r.length;s++){let a=r[s],l=a.dom;if(l.parentNode==e){for(;l!=i;)i=r8(i),o=!0;i=i.nextSibling}else o=!0,e.insertBefore(l,i);if(a instanceof Xc){let u=i?i.previousSibling:e.lastChild;bC(a.contentDOM,a.children,n),i=u?u.nextSibling:e.firstChild}}for(;i;)i=r8(i),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const k1=function(e){e&&(this.nodeName=e)};k1.prototype=Object.create(null);const Rc=[new k1];function qy(e,r,n){if(e.length==0)return Rc;let i=n?Rc[0]:new k1,o=[i];for(let s=0;s<e.length;s++){let a=e[s].type.attrs;if(a){a.nodeName&&o.push(i=new k1(a.nodeName));for(let l in a){let u=a[l];u!=null&&(n&&o.length==1&&o.push(i=new k1(r.isInline?"span":"div")),l=="class"?i.class=(i.class?i.class+" ":"")+u:l=="style"?i.style=(i.style?i.style+";":"")+u:l!="nodeName"&&(i[l]=u))}}}return o}function vC(e,r,n,i){if(n==Rc&&i==Rc)return r;let o=r;for(let s=0;s<i.length;s++){let a=i[s],l=n[s];if(s){let u;l&&l.nodeName==a.nodeName&&o!=e&&(u=o.parentNode)&&u.nodeName.toLowerCase()==a.nodeName||(u=document.createElement(a.nodeName),u.pmIsDeco=!0,u.appendChild(o),l=Rc[0]),o=u}fH(o,l||Rc[0],a)}return o}function fH(e,r,n){for(let i in r)i!="class"&&i!="style"&&i!="nodeName"&&!(i in n)&&e.removeAttribute(i);for(let i in n)i!="class"&&i!="style"&&i!="nodeName"&&n[i]!=r[i]&&e.setAttribute(i,n[i]);if(r.class!=n.class){let i=r.class?r.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let s=0;s<i.length;s++)o.indexOf(i[s])==-1&&e.classList.remove(i[s]);for(let s=0;s<o.length;s++)i.indexOf(o[s])==-1&&e.classList.add(o[s]);e.classList.length==0&&e.removeAttribute("class")}if(r.style!=n.style){if(r.style){let i=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=i.exec(r.style);)e.style.removeProperty(o[1])}n.style&&(e.style.cssText+=n.style)}}function AC(e,r,n){return vC(e,e,Rc,qy(r,n,e.nodeType!=1))}function N2(e,r){if(e.length!=r.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(r[n].type))return!1;return!0}function r8(e){let r=e.nextSibling;return e.parentNode.removeChild(e),r}class mH{constructor(r,n,i){this.lock=n,this.view=i,this.index=0,this.stack=[],this.changed=!1,this.top=r,this.preMatch=gH(r.node.content,r)}destroyBetween(r,n){if(r!=n){for(let i=r;i<n;i++)this.top.children[i].destroy();this.top.children.splice(r,n-r),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(r,n,i){let o=0,s=this.stack.length>>1,a=Math.min(s,r.length);for(;o<a&&(o==s-1?this.top:this.stack[o+1<<1]).matchesMark(r[o])&&r[o].type.spec.spanning!==!1;)o++;for(;o<s;)this.destroyRest(),this.top.dirty=Ks,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<r.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let u=this.index;u<Math.min(this.index+3,this.top.children.length);u++){let c=this.top.children[u];if(c.matchesMark(r[s])&&!this.isLocked(c.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Xc.create(this.top,r[s],n,i);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(r,n,i,o){let s=-1,a;if(o>=this.preMatch.index&&(a=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&a.matchesNode(r,n,i))s=this.top.children.indexOf(a,this.index);else for(let l=this.index,u=Math.min(this.top.children.length,l+5);l<u;l++){let c=this.top.children[l];if(c.matchesNode(r,n,i)&&!this.preMatch.matched.has(c)){s=l;break}}return s<0?!1:(this.destroyBetween(this.index,s),this.index++,!0)}updateNodeAt(r,n,i,o,s){let a=this.top.children[o];return a.dirty==xl&&a.dom==a.contentDOM&&(a.dirty=Mc),a.update(r,n,i,s)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(r){for(;;){let n=r.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let i=r.pmViewDesc;if(i){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==i)return o}return-1}r=n}}updateNextNode(r,n,i,o,s,a){for(let l=this.index;l<this.top.children.length;l++){let u=this.top.children[l];if(u instanceof Cu){let c=this.preMatch.matched.get(u);if(c!=null&&c!=s)return!1;let d=u.dom,h,p=this.isLocked(d)&&!(r.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==r.text&&u.dirty!=xl&&N2(n,u.outerDeco));if(!p&&u.update(r,n,i,o))return this.destroyBetween(this.index,l),u.dom!=d&&(this.changed=!0),this.index++,!0;if(!p&&(h=this.recreateWrapper(u,r,n,i,o,a)))return this.destroyBetween(this.index,l),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=Mc,h.updateChildren(o,a+1),h.dirty=Ks),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(r,n,i,o,s,a){if(r.dirty||n.isAtom||!r.children.length||!r.node.content.eq(n.content)||!N2(i,r.outerDeco)||!o.eq(r.innerDeco))return null;let l=Cu.create(this.top,n,i,o,s,a);if(l.contentDOM){l.children=r.children,r.children=[];for(let u of l.children)u.parent=l}return r.destroy(),l}addNode(r,n,i,o,s){let a=Cu.create(this.top,r,n,i,o,s);a.contentDOM&&a.updateChildren(o,s+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(r,n,i){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(r)&&(r==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let s=new yC(this.top,r,n,i);this.top.children.splice(this.index++,0,s),this.changed=!0}}addTextblockHacks(){let r=this.top.children[this.index-1],n=this.top;for(;r instanceof Xc;)n=r,r=n.children[n.children.length-1];(!r||!(r instanceof f3)||/\n$/.test(r.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(r.node.text))&&((Lo||go)&&r&&r.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(r,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(r))this.index++;else{let i=document.createElement(r);r=="IMG"&&(i.className="ProseMirror-separator",i.alt=""),r=="BR"&&(i.className="ProseMirror-trailingBreak");let o=new TC(this.top,[],i,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(r){return this.lock&&(r==this.lock||r.nodeType==1&&r.contains(this.lock.parentNode))}}function gH(e,r){let n=r,i=n.children.length,o=e.childCount,s=new Map,a=[];e:for(;o>0;){let l;for(;;)if(i){let c=n.children[i-1];if(c instanceof Xc)n=c,i=c.children.length;else{l=c,i--;break}}else{if(n==r)break e;i=n.parent.children.indexOf(n),n=n.parent}let u=l.node;if(u){if(u!=e.child(o-1))break;--o,s.set(l,o),a.push(l)}}return{index:o,matched:s,matches:a.reverse()}}function yH(e,r){return e.type.side-r.type.side}function TH(e,r,n,i){let o=r.locals(e),s=0;if(o.length==0){for(let c=0;c<e.childCount;c++){let d=e.child(c);i(d,o,r.forChild(s,d),c),s+=d.nodeSize}return}let a=0,l=[],u=null;for(let c=0;;){let d,h;for(;a<o.length&&o[a].to==s;){let w=o[a++];w.widget&&(d?(h||(h=[d])).push(w):d=w)}if(d)if(h){h.sort(yH);for(let w=0;w<h.length;w++)n(h[w],c,!!u)}else n(d,c,!!u);let p,f;if(u)f=-1,p=u,u=null;else if(c<e.childCount)f=c,p=e.child(c++);else break;for(let w=0;w<l.length;w++)l[w].to<=s&&l.splice(w--,1);for(;a<o.length&&o[a].from<=s&&o[a].to>s;)l.push(o[a++]);let m=s+p.nodeSize;if(p.isText){let w=m;a<o.length&&o[a].from<w&&(w=o[a].from);for(let x=0;x<l.length;x++)l[x].to<w&&(w=l[x].to);w<m&&(u=p.cut(w-s),p=p.cut(0,w-s),m=w,f=-1)}else for(;a<o.length&&o[a].to<m;)a++;let v=p.isInline&&!p.isLeaf?l.filter(w=>!w.inline):l.slice();i(p,v,r.forChild(s,p),f),s=m}}function bH(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let r=e.style.cssText;e.style.cssText=r+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=r}}function vH(e,r,n,i){for(let o=0,s=0;o<e.childCount&&s<=i;){let a=e.child(o++),l=s;if(s+=a.nodeSize,!a.isText)continue;let u=a.text;for(;o<e.childCount;){let c=e.child(o++);if(s+=c.nodeSize,!c.isText)break;u+=c.text}if(s>=n){if(s>=i&&u.slice(i-r.length-l,i-l)==r)return i-r.length;let c=l<i?u.lastIndexOf(r,i-l-1):-1;if(c>=0&&c+r.length+l>=n)return l+c;if(n==i&&u.length>=i+r.length-l&&u.slice(i-l,i-l+r.length)==r)return i}}return-1}function Wy(e,r,n,i,o){let s=[];for(let a=0,l=0;a<e.length;a++){let u=e[a],c=l,d=l+=u.size;c>=n||d<=r?s.push(u):(c<r&&s.push(u.slice(0,r-c,i)),o&&(s.push(o),o=void 0),d>n&&s.push(u.slice(n-c,u.size,i)))}return s}function Wb(e,r=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),s=o&&o.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let l=i.resolve(a),u,c;if(p3(n)){for(u=a;o&&!o.node;)o=o.parent;let h=o.node;if(o&&h.isAtom&&Ht.isSelectable(h)&&o.parent&&!(h.isInline&&jY(n.focusNode,n.focusOffset,o.dom))){let p=o.posBefore;c=new Ht(a==p?l:i.resolve(p))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let h=a,p=a;for(let f=0;f<n.rangeCount;f++){let m=n.getRangeAt(f);h=Math.min(h,e.docView.posFromDOM(m.startContainer,m.startOffset,1)),p=Math.max(p,e.docView.posFromDOM(m.endContainer,m.endOffset,-1))}if(h<0)return null;[u,a]=p==e.state.selection.anchor?[p,h]:[h,p],l=i.resolve(a)}else u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null}let d=i.resolve(u);if(!c){let h=r=="pointer"||e.state.selection.head<l.pos&&!s?1:-1;c=Kb(e,d,l,h)}return c}function EC(e){return e.editable?e.hasFocus():SC(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function h0(e,r=!1){let n=e.state.selection;if(wC(e,n),!!EC(e)){if(!r&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&go){let i=e.domSelectionRange(),o=e.domObserver.currentSelection;if(i.anchorNode&&o.anchorNode&&Jc(i.anchorNode,i.anchorOffset,o.anchorNode,o.anchorOffset)){e.input.mouseDown.delayedSelectionSync=!0,e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)EH(e);else{let{anchor:i,head:o}=n,s,a;n8&&!(n instanceof Lt)&&(n.$from.parent.inlineContent||(s=i8(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(a=i8(e,n.to))),e.docView.setSelection(i,o,e,r),n8&&(s&&o8(s),a&&o8(a)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&AH(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const n8=Lo||go&&cC<63;function i8(e,r){let{node:n,offset:i}=e.docView.domFromPos(r,0),o=i<n.childNodes.length?n.childNodes[i]:null,s=i?n.childNodes[i-1]:null;if(Lo&&o&&o.contentEditable=="false")return H5(o);if((!o||o.contentEditable=="false")&&(!s||s.contentEditable=="false")){if(o)return H5(o);if(s)return H5(s)}}function H5(e){return e.contentEditable="true",Lo&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function o8(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function AH(e){let r=e.dom.ownerDocument;r.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),i=n.anchorNode,o=n.anchorOffset;r.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{(n.anchorNode!=i||n.anchorOffset!=o)&&(r.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!EC(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function EH(e){let r=e.domSelection();if(!r)return;let n=e.cursorWrapper.dom,i=n.nodeName=="IMG";i?r.collapse(n.parentNode,ro(n)+1):r.collapse(n,0),!i&&!e.state.selection.visible&&es&&ku<=11&&(n.disabled=!0,n.disabled=!1)}function wC(e,r){if(r instanceof Ht){let n=e.docView.descAt(r.from);n!=e.lastSelectedViewDesc&&(s8(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else s8(e)}function s8(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Kb(e,r,n,i){return e.someProp("createSelectionBetween",o=>o(e,r,n))||Lt.between(r,n,i)}function a8(e){return e.editable&&!e.hasFocus()?!1:SC(e)}function SC(e){let r=e.domSelectionRange();if(!r.anchorNode)return!1;try{return e.dom.contains(r.anchorNode.nodeType==3?r.anchorNode.parentNode:r.anchorNode)&&(e.editable||e.dom.contains(r.focusNode.nodeType==3?r.focusNode.parentNode:r.focusNode))}catch{return!1}}function wH(e){let r=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Jc(r.node,r.offset,n.anchorNode,n.anchorOffset)}function Ky(e,r){let{$anchor:n,$head:i}=e.selection,o=r>0?n.max(i):n.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(r>0?o.after():o.before()):null:o;return s&&rr.findFrom(s,r)}function ou(e,r){return e.dispatch(e.state.tr.setSelection(r).scrollIntoView()),!0}function l8(e,r,n){let i=e.state.selection;if(i instanceof Lt)if(n.indexOf("s")>-1){let{$head:o}=i,s=o.textOffset?null:r<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let a=e.state.doc.resolve(o.pos+s.nodeSize*(r<0?-1:1));return ou(e,new Lt(i.$anchor,a))}else if(i.empty){if(e.endOfTextblock(r>0?"forward":"backward")){let o=Ky(e.state,r);return o&&o instanceof Ht?ou(e,o):!1}else if(!(Zs&&n.indexOf("m")>-1)){let o=i.$head,s=o.textOffset?null:r<0?o.nodeBefore:o.nodeAfter,a;if(!s||s.isText)return!1;let l=r<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(a=e.docView.descAt(l))&&!a.contentDOM?Ht.isSelectable(s)?ou(e,new Ht(r<0?e.state.doc.resolve(o.pos-s.nodeSize):o)):Gf?ou(e,new Lt(e.state.doc.resolve(r<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(i instanceof Ht&&i.node.isInline)return ou(e,new Lt(r>0?i.$to:i.$from));{let o=Ky(e.state,r);return o?ou(e,o):!1}}}function F2(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function C1(e,r){let n=e.pmViewDesc;return n&&n.size==0&&(r<0||e.nextSibling||e.nodeName!="BR")}function Zd(e,r){return r<0?SH(e):DH(e)}function SH(e){let r=e.domSelectionRange(),n=r.focusNode,i=r.focusOffset;if(!n)return;let o,s,a=!1;for(Ws&&n.nodeType==1&&i<F2(n)&&C1(n.childNodes[i],-1)&&(a=!0);;)if(i>0){if(n.nodeType!=1)break;{let l=n.childNodes[i-1];if(C1(l,-1))o=n,s=--i;else if(l.nodeType==3)n=l,i=n.nodeValue.length;else break}}else{if(DC(n))break;{let l=n.previousSibling;for(;l&&C1(l,-1);)o=n.parentNode,s=ro(l),l=l.previousSibling;if(l)n=l,i=F2(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}a?Qy(e,n,i):o&&Qy(e,o,s)}function DH(e){let r=e.domSelectionRange(),n=r.focusNode,i=r.focusOffset;if(!n)return;let o=F2(n),s,a;for(;;)if(i<o){if(n.nodeType!=1)break;let l=n.childNodes[i];if(C1(l,1))s=n,a=++i;else break}else{if(DC(n))break;{let l=n.nextSibling;for(;l&&C1(l,1);)s=l.parentNode,a=ro(l)+1,l=l.nextSibling;if(l)n=l,i=0,o=F2(n);else{if(n=n.parentNode,n==e.dom)break;i=o=0}}}s&&Qy(e,s,a)}function DC(e){let r=e.pmViewDesc;return r&&r.node&&r.node.isBlock}function xH(e,r){for(;e&&r==e.childNodes.length&&!jf(e);)r=ro(e)+1,e=e.parentNode;for(;e&&r<e.childNodes.length;){let n=e.childNodes[r];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,r=0}}function kH(e,r){for(;e&&!r&&!jf(e);)r=ro(e),e=e.parentNode;for(;e&&r;){let n=e.childNodes[r-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;e=n,r=e.childNodes.length}}function Qy(e,r,n){if(r.nodeType!=3){let s,a;(a=xH(r,n))?(r=a,n=0):(s=kH(r,n))&&(r=s,n=s.nodeValue.length)}let i=e.domSelection();if(!i)return;if(p3(i)){let s=document.createRange();s.setEnd(r,n),s.setStart(r,n),i.removeAllRanges(),i.addRange(s)}else i.extend&&i.extend(r,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout(()=>{e.state==o&&h0(e)},50)}function u8(e,r){let n=e.state.doc.resolve(r);if(!(go||WY)&&n.parent.inlineContent){let i=e.coordsAtPos(r);if(r>n.start()){let o=e.coordsAtPos(r-1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left<i.left?"ltr":"rtl"}if(r<n.end()){let o=e.coordsAtPos(r+1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function c8(e,r,n){let i=e.state.selection;if(i instanceof Lt&&!i.empty||n.indexOf("s")>-1||Zs&&n.indexOf("m")>-1)return!1;let{$from:o,$to:s}=i;if(!o.parent.inlineContent||e.endOfTextblock(r<0?"up":"down")){let a=Ky(e.state,r);if(a&&a instanceof Ht)return ou(e,a)}if(!o.parent.inlineContent){let a=r<0?o:s,l=i instanceof Xo?rr.near(a,r):rr.findFrom(a,r);return l?ou(e,l):!1}return!1}function d8(e,r){if(!(e.state.selection instanceof Lt))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(r>0?"forward":"backward"))return!0;let s=!n.textOffset&&(r<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let a=e.state.tr;return r<0?a.delete(n.pos-s.nodeSize,n.pos):a.delete(n.pos,n.pos+s.nodeSize),e.dispatch(a),!0}return!1}function h8(e,r,n){e.domObserver.stop(),r.contentEditable=n,e.domObserver.start()}function CH(e){if(!Lo||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:r,focusOffset:n}=e.domSelectionRange();if(r&&r.nodeType==1&&n==0&&r.firstChild&&r.firstChild.contentEditable=="false"){let i=r.firstChild;h8(e,i,"true"),setTimeout(()=>h8(e,i,"false"),20)}return!1}function _H(e){let r="";return e.ctrlKey&&(r+="c"),e.metaKey&&(r+="m"),e.altKey&&(r+="a"),e.shiftKey&&(r+="s"),r}function NH(e,r){let n=r.keyCode,i=_H(r);if(n==8||Zs&&n==72&&i=="c")return d8(e,-1)||Zd(e,-1);if(n==46&&!r.shiftKey||Zs&&n==68&&i=="c")return d8(e,1)||Zd(e,1);if(n==13||n==27)return!0;if(n==37||Zs&&n==66&&i=="c"){let o=n==37?u8(e,e.state.selection.from)=="ltr"?-1:1:-1;return l8(e,o,i)||Zd(e,o)}else if(n==39||Zs&&n==70&&i=="c"){let o=n==39?u8(e,e.state.selection.from)=="ltr"?1:-1:1;return l8(e,o,i)||Zd(e,o)}else{if(n==38||Zs&&n==80&&i=="c")return c8(e,-1,i)||Zd(e,-1);if(n==40||Zs&&n==78&&i=="c")return CH(e)||c8(e,1,i)||Zd(e,1);if(i==(Zs?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Qb(e,r){e.someProp("transformCopied",f=>{r=f(r,e)});let n=[],{content:i,openStart:o,openEnd:s}=r;for(;o>1&&s>1&&i.childCount==1&&i.firstChild.childCount==1;){o--,s--;let f=i.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),i=f.content}let a=e.someProp("clipboardSerializer")||cd.fromSchema(e.state.schema),l=FC(),u=l.createElement("div");u.appendChild(a.serializeFragment(i,{document:l}));let c=u.firstChild,d,h=0;for(;c&&c.nodeType==1&&(d=NC[c.nodeName.toLowerCase()]);){for(let f=d.length-1;f>=0;f--){let m=l.createElement(d[f]);for(;u.firstChild;)m.appendChild(u.firstChild);u.appendChild(m),h++}c=u.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${s}${h?` -${h}`:""} ${JSON.stringify(n)}`);let p=e.someProp("clipboardTextSerializer",f=>f(r,e))||r.content.textBetween(0,r.content.size,` `);return{dom:u,text:p,slice:r}}function xC(e,r,n,i,o){let s=o.parent.type.spec.code,a,l;if(!n&&!r)return null;let u=!!r&&(i||s||!n);if(u){if(e.someProp("transformPastedText",p=>{r=p(r,s||i,e)}),s)return l=new ht(ze.from(e.state.schema.text(r.replace(/\r\n?/g,` `))),0,0),e.someProp("transformPasted",p=>{l=p(l,e,!0)}),l;let h=e.someProp("clipboardTextParser",p=>p(r,o,i,e));if(h)l=h;else{let p=o.marks(),{schema:f}=e.state,m=cd.fromSchema(f);a=document.createElement("div"),r.split(/(?:\r\n?|\n)+/).forEach(v=>{let w=a.appendChild(document.createElement("p"));v&&w.appendChild(m.serializeNode(f.text(v,p)))})}}else e.someProp("transformPastedHTML",h=>{n=h(n,e)}),a=RH(n),Gf&&BH(a);let c=a&&a.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let h=+d[3];h>0;h--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||hh.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(u||d),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!FH.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)l=IH(p8(l,+d[1],+d[2]),d[4]);else if(l=ht.maxOpen(OH(l.content,o),!0),l.openStart||l.openEnd){let h=0,p=0;for(let f=l.content.firstChild;h<l.openStart&&!f.type.spec.isolating;h++,f=f.firstChild);for(let f=l.content.lastChild;p<l.openEnd&&!f.type.spec.isolating;p++,f=f.lastChild);l=p8(l,h,p)}return e.someProp("transformPasted",h=>{l=h(l,e,u)}),l}const FH=/^(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 OH(e,r){if(e.childCount<2)return e;for(let n=r.depth;n>=0;n--){let i=r.node(n).contentMatchAt(r.index(n)),o,s=[];if(e.forEach(a=>{if(!s)return;let l=i.findWrapping(a.type),u;if(!l)return s=null;if(u=s.length&&o.length&&CC(l,o,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=_C(s[s.length-1],o.length));let c=kC(a,l);s.push(c),i=i.matchType(c.type),o=l}}),s)return ze.from(s)}return e}function kC(e,r,n=0){for(let i=r.length-1;i>=n;i--)e=r[i].create(null,ze.from(e));return e}function CC(e,r,n,i,o){if(o<e.length&&o<r.length&&e[o]==r[o]){let s=CC(e,r,n,i.lastChild,o+1);if(s)return i.copy(i.content.replaceChild(i.childCount-1,s));if(i.contentMatchAt(i.childCount).matchType(o==e.length-1?n.type:e[o+1]))return i.copy(i.content.append(ze.from(kC(n,e,o+1))))}}function _C(e,r){if(r==0)return e;let n=e.content.replaceChild(e.childCount-1,_C(e.lastChild,r-1)),i=e.contentMatchAt(e.childCount).fillBefore(ze.empty,!0);return e.copy(n.append(i))}function Jy(e,r,n,i,o,s){let a=r<0?e.firstChild:e.lastChild,l=a.content;return e.childCount>1&&(s=0),o<i-1&&(l=Jy(l,r,n,i,o+1,s)),o>=n&&(l=r<0?a.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(ze.empty,!0))),e.replaceChild(r<0?0:e.childCount-1,a.copy(l))}function p8(e,r,n){return r<e.openStart&&(e=new ht(Jy(e.content,-1,r,e.openStart,0,e.openEnd),r,e.openEnd)),n<e.openEnd&&(e=new ht(Jy(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const NC={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 f8=null;function FC(){return f8||(f8=document.implementation.createHTMLDocument("title"))}let P5=null;function MH(e){let r=window.trustedTypes;return r?(P5||(P5=r.defaultPolicy||r.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),P5.createHTML(e)):e}function RH(e){let r=/^(\s*<meta [^>]*>)*/.exec(e);r&&(e=e.slice(r[0].length));let n=FC().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e),o;if((o=i&&NC[i[1].toLowerCase()])&&(e=o.map(s=>"<"+s+">").join("")+e+o.map(s=>"</"+s+">").reverse().join("")),n.innerHTML=MH(e),o)for(let s=0;s<o.length;s++)n=n.querySelector(o[s])||n;return n}function BH(e){let r=e.querySelectorAll(go?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<r.length;n++){let i=r[n];i.childNodes.length==1&&i.textContent==" "&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}function IH(e,r){if(!e.size)return e;let n=e.content.firstChild.type.schema,i;try{i=JSON.parse(r)}catch{return e}let{content:o,openStart:s,openEnd:a}=e;for(let l=i.length-2;l>=0;l-=2){let u=n.nodes[i[l]];if(!u||u.hasRequiredAttrs())break;o=ze.from(u.create(i[l+1],o)),s++,a++}return new ht(o,s,a)}const No={},Mo={},LH={touchstart:!0,touchmove:!0};class zH{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},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 YH(e){for(let r in No){let n=No[r];e.dom.addEventListener(r,e.input.eventHandlers[r]=i=>{PH(e,i)&&!Jb(e,i)&&(e.editable||!(i.type in Mo))&&n(e,i)},LH[r]?{passive:!0}:void 0)}Lo&&e.dom.addEventListener("input",()=>null),Xy(e)}function bu(e,r){e.input.lastSelectionOrigin=r,e.input.lastSelectionTime=Date.now()}function HH(e){e.domObserver.stop();for(let r in e.input.eventHandlers)e.dom.removeEventListener(r,e.input.eventHandlers[r]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Xy(e){e.someProp("handleDOMEvents",r=>{for(let n in r)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=i=>Jb(e,i))})}function Jb(e,r){return e.someProp("handleDOMEvents",n=>{let i=n[r.type];return i?i(e,r)||r.defaultPrevented:!1})}function PH(e,r){if(!r.bubbles)return!0;if(r.defaultPrevented)return!1;for(let n=r.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(r))return!1;return!0}function ZH(e,r){!Jb(e,r)&&No[r.type]&&(e.editable||!(r.type in Mo))&&No[r.type](e,r)}Mo.keydown=(e,r)=>{let n=r;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!m8(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(o0&&go&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Nh&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",o=>o(e,Fc(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,n))||NH(e,n)?n.preventDefault():bu(e,"key")},Mo.keyup=(e,r)=>{r.keyCode==16&&(e.input.shiftKey=!1)},Mo.keypress=(e,r)=>{let n=r;if(m8(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Zs&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let i=e.state.selection;if(!(i instanceof Lt)||!i.$from.sameParent(i.$to)){let o=String.fromCharCode(n.charCode),s=()=>e.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",a=>a(e,i.$from.pos,i.$to.pos,o,s))&&e.dispatch(s()),n.preventDefault()}};function O2(e){return{left:e.clientX,top:e.clientY}}function $H(e,r){let n=r.x-e.clientX,i=r.y-e.clientY;return n*n+i*i<100}function Xb(e,r,n,i,o){if(i==-1)return!1;let s=e.state.doc.resolve(i);for(let a=s.depth+1;a>0;a--)if(e.someProp(r,l=>a>s.depth?l(e,n,s.nodeAfter,s.before(a),o,!0):l(e,n,s.node(a),s.before(a),o,!1)))return!0;return!1}function fh(e,r,n){if(e.focused||e.focus(),e.state.selection.eq(r))return;let i=e.state.tr.setSelection(r);i.setMeta("pointer",!0),e.dispatch(i)}function UH(e,r){if(r==-1)return!1;let n=e.state.doc.resolve(r),i=n.nodeAfter;return i&&i.isAtom&&Ht.isSelectable(i)?(fh(e,new Ht(n)),!0):!1}function VH(e,r){if(r==-1)return!1;let n=e.state.selection,i,o;n instanceof Ht&&(i=n.node);let s=e.state.doc.resolve(r);for(let a=s.depth+1;a>0;a--){let l=a>s.depth?s.nodeAfter:s.node(a);if(Ht.isSelectable(l)){i&&n.$from.depth>0&&a>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?o=s.before(n.$from.depth):o=s.before(a);break}}return o!=null?(fh(e,Ht.create(e.state.doc,o)),!0):!1}function jH(e,r,n,i,o){return Xb(e,"handleClickOn",r,n,i)||e.someProp("handleClick",s=>s(e,r,i))||(o?VH(e,n):UH(e,n))}function GH(e,r,n,i){return Xb(e,"handleDoubleClickOn",r,n,i)||e.someProp("handleDoubleClick",o=>o(e,r,i))}function qH(e,r,n,i){return Xb(e,"handleTripleClickOn",r,n,i)||e.someProp("handleTripleClick",o=>o(e,r,i))||WH(e,n,i)}function WH(e,r,n){if(n.button!=0)return!1;let i=e.state.doc;if(r==-1)return i.inlineContent?(fh(e,Lt.create(i,0,i.content.size)),!0):!1;let o=i.resolve(r);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(a.inlineContent)fh(e,Lt.create(i,l+1,l+1+a.content.size));else if(Ht.isSelectable(a))fh(e,Ht.create(i,l));else continue;return!0}}function eT(e){return M2(e)}const MC=Zs?"metaKey":"ctrlKey";No.mousedown=(e,r)=>{let n=r;e.input.shiftKey=n.shiftKey;let i=eT(e),o=Date.now(),s="singleClick";o-e.input.lastClick.time<500&&$H(n,e.input.lastClick)&&!n[MC]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?s="doubleClick":e.input.lastClick.type=="doubleClick"&&(s="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:s,button:n.button};let a=e.posAtCoords(O2(n));a&&(s=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new KH(e,a,n,!!i)):(s=="doubleClick"?GH:qH)(e,a.pos,a.inside,n)?n.preventDefault():bu(e,"pointer"))};class KH{constructor(r,n,i,o){this.view=r,this.pos=n,this.event=i,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=r.state.doc,this.selectNode=!!i[MC],this.allowDefault=i.shiftKey;let s,a;if(n.inside>-1)s=r.state.doc.nodeAt(n.inside),a=n.inside;else{let d=r.state.doc.resolve(n.pos);s=d.parent,a=d.depth?d.before():0}const l=o?null:i.target,u=l?r.docView.nearestDesc(l,!0):null;this.target=u&&u.nodeDOM.nodeType==1?u.nodeDOM:null;let{selection:c}=r.state;(i.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||c instanceof Ht&&c.from<=a&&c.to>a)&&(this.mightDrag={node:s,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ws&&!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()),r.root.addEventListener("mouseup",this.up=this.up.bind(this)),r.root.addEventListener("mousemove",this.move=this.move.bind(this)),bu(r,"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(()=>h0(this.view)),this.view.input.mouseDown=null}up(r){if(this.done(),!this.view.dom.contains(r.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(O2(r))),this.updateAllowDefault(r),this.allowDefault||!n?bu(this.view,"pointer"):jH(this.view,n.pos,n.inside,r,this.selectNode)?r.preventDefault():r.button==0&&(this.flushed||Lo&&this.mightDrag&&!this.mightDrag.node.isAtom||go&&!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)?(fh(this.view,rr.near(this.view.state.doc.resolve(n.pos))),r.preventDefault()):bu(this.view,"pointer")}move(r){this.updateAllowDefault(r),bu(this.view,"pointer"),r.buttons==0&&this.done()}updateAllowDefault(r){!this.allowDefault&&(Math.abs(this.event.x-r.clientX)>4||Math.abs(this.event.y-r.clientY)>4)&&(this.allowDefault=!0)}}No.touchstart=e=>{e.input.lastTouch=Date.now(),eT(e),bu(e,"pointer")},No.touchmove=e=>{e.input.lastTouch=Date.now(),bu(e,"pointer")},No.contextmenu=e=>eT(e);function m8(e,r){return e.composing?!0:Lo&&Math.abs(r.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const QH=o0?5e3:-1;Mo.compositionstart=Mo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:r}=e,n=r.selection.$to;if(r.selection instanceof Lt&&(r.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),M2(e,!0),e.markCursor=null;else if(M2(e,!r.selection.empty),Ws&&r.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let i=e.domSelectionRange();for(let o=i.focusNode,s=i.focusOffset;o&&o.nodeType==1&&s!=0;){let a=s<0?o.lastChild:o.childNodes[s-1];if(!a)break;if(a.nodeType==3){let l=e.domSelection();l&&l.collapse(a,a.nodeValue.length);break}else o=a,s=-1}}e.input.composing=!0}g8(e,QH)},Mo.compositionend=(e,r)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=r.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++,g8(e,20))};function g8(e,r){clearTimeout(e.input.composingTimeout),r>-1&&(e.input.composingTimeout=setTimeout(()=>M2(e),r))}function RC(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=XH());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function JH(e){let r=e.domSelectionRange();if(!r.focusNode)return null;let n=UY(r.focusNode,r.focusOffset),i=VY(r.focusNode,r.focusOffset);if(n&&i&&n!=i){let o=i.pmViewDesc,s=e.domObserver.lastChangedTextNode;if(n==s||i==s)return s;if(!o||!o.isText(i.nodeValue))return i;if(e.input.compositionNode==i){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return i}}return n||i}function XH(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function M2(e,r=!1){if(!(o0&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),RC(e),r||e.docView&&e.docView.dirty){let n=Wb(e),i=e.state.selection;return n&&!n.eq(i)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||r)&&!i.$from.node(i.$from.sharedDepth(i.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function eP(e,r){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(r),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=document.createRange();o.selectNodeContents(r),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const _1=es&&ku<15||Nh&&KY<604;No.copy=Mo.cut=(e,r)=>{let n=r,i=e.state.selection,o=n.type=="cut";if(i.empty)return;let s=_1?null:n.clipboardData,a=i.content(),{dom:l,text:u}=Qb(e,a);s?(n.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",u)):eP(e,l),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function tP(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function rP(e,r){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?sf(e,i.value,null,o,r):sf(e,i.textContent,i.innerHTML,o,r)},50)}function sf(e,r,n,i,o){let s=xC(e,r,n,i,e.state.selection.$from);if(e.someProp("handlePaste",u=>u(e,o,s||ht.empty)))return!0;if(!s)return!1;let a=tP(s),l=a?e.state.tr.replaceSelectionWith(a,i):e.state.tr.replaceSelection(s);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function BC(e){let r=e.getData("text/plain")||e.getData("Text");if(r)return r;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Mo.paste=(e,r)=>{let n=r;if(e.composing&&!o0)return;let i=_1?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&sf(e,BC(i),i.getData("text/html"),o,n)?n.preventDefault():rP(e,n)};class IC{constructor(r,n,i){this.slice=r,this.move=n,this.node=i}}const nP=Zs?"altKey":"ctrlKey";function y8(e,r){return e.someProp("dragCopies",i=>!i(r))??!r[nP]}No.dragstart=(e,r)=>{let n=r,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let o=e.state.selection,s=o.empty?null:e.posAtCoords(O2(n)),a;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof Ht?o.to-1:o.to))){if(i&&i.mightDrag)a=Ht.create(e.state.doc,i.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let h=e.docView.nearestDesc(n.target,!0);h&&h.node.type.spec.draggable&&h!=e.docView&&(a=Ht.create(e.state.doc,h.posBefore))}}let l=(a||e.state.selection).content(),{dom:u,text:c,slice:d}=Qb(e,l);(!n.dataTransfer.files.length||!go||cC>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(_1?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",_1||n.dataTransfer.setData("text/plain",c),e.dragging=new IC(d,y8(e,n),a)},No.dragend=e=>{let r=e.dragging;window.setTimeout(()=>{e.dragging==r&&(e.dragging=null)},50)},Mo.dragover=Mo.dragenter=(e,r)=>r.preventDefault(),Mo.drop=(e,r)=>{let n=r,i=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(O2(n));if(!o)return;let s=e.state.doc.resolve(o.pos),a=i&&i.slice;a?e.someProp("transformPasted",m=>{a=m(a,e,!1)}):a=xC(e,BC(n.dataTransfer),_1?null:n.dataTransfer.getData("text/html"),!1,s);let l=!!(i&&y8(e,n));if(e.someProp("handleDrop",m=>m(e,n,a||ht.empty,l))){n.preventDefault();return}if(!a)return;n.preventDefault();let u=a?Uk(e.state.doc,s.pos,a):s.pos;u==null&&(u=s.pos);let c=e.state.tr;if(l){let{node:m}=i;m?m.replace(c):c.deleteSelection()}let d=c.mapping.map(u),h=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,p=c.doc;if(h?c.replaceRangeWith(d,d,a.content.firstChild):c.replaceRange(d,d,a),c.doc.eq(p))return;let f=c.doc.resolve(d);if(h&&Ht.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Ht(f));else{let m=c.mapping.map(u);c.mapping.maps[c.mapping.maps.length-1].forEach((v,w,x,k)=>m=k),c.setSelection(Kb(e,f,c.doc.resolve(m)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},No.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())&&h0(e)},20))},No.blur=(e,r)=>{let n=r;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)},No.beforeinput=(e,r)=>{if(go&&o0&&r.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",o=>o(e,Fc(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Mo)No[e]=Mo[e];function af(e,r){if(e==r)return!0;for(let n in e)if(e[n]!==r[n])return!1;for(let n in r)if(!(n in e))return!1;return!0}class R2{constructor(r,n){this.toDOM=r,this.spec=n||Hc,this.side=this.spec.side||0}map(r,n,i,o){let{pos:s,deleted:a}=r.mapResult(n.from+o,this.side<0?-1:1);return a?null:new kn(s-i,s-i,this)}valid(){return!0}eq(r){return this==r||r instanceof R2&&(this.spec.key&&this.spec.key==r.spec.key||this.toDOM==r.toDOM&&af(this.spec,r.spec))}destroy(r){this.spec.destroy&&this.spec.destroy(r)}}class _u{constructor(r,n){this.attrs=r,this.spec=n||Hc}map(r,n,i,o){let s=r.map(n.from+o,this.spec.inclusiveStart?-1:1)-i,a=r.map(n.to+o,this.spec.inclusiveEnd?1:-1)-i;return s>=a?null:new kn(s,a,this)}valid(r,n){return n.from<n.to}eq(r){return this==r||r instanceof _u&&af(this.attrs,r.attrs)&&af(this.spec,r.spec)}static is(r){return r.type instanceof _u}destroy(){}}class ev{constructor(r,n){this.attrs=r,this.spec=n||Hc}map(r,n,i,o){let s=r.mapResult(n.from+o,1);if(s.deleted)return null;let a=r.mapResult(n.to+o,-1);return a.deleted||a.pos<=s.pos?null:new kn(s.pos-i,a.pos-i,this)}valid(r,n){let{index:i,offset:o}=r.content.findIndex(n.from),s;return o==n.from&&!(s=r.child(i)).isText&&o+s.nodeSize==n.to}eq(r){return this==r||r instanceof ev&&af(this.attrs,r.attrs)&&af(this.spec,r.spec)}destroy(){}}class kn{constructor(r,n,i){this.from=r,this.to=n,this.type=i}copy(r,n){return new kn(r,n,this.type)}eq(r,n=0){return this.type.eq(r.type)&&this.from+n==r.from&&this.to+n==r.to}map(r,n,i){return this.type.map(r,this,n,i)}static widget(r,n,i){return new kn(r,r,new R2(n,i))}static inline(r,n,i,o){return new kn(r,n,new _u(i,o))}static node(r,n,i,o){return new kn(r,n,new ev(i,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof _u}get widget(){return this.type instanceof R2}}const Kd=[],Hc={};class Nr{constructor(r,n){this.local=r.length?r:Kd,this.children=n.length?n:Kd}static create(r,n){return n.length?B2(n,r,0,Hc):co}find(r,n,i){let o=[];return this.findInner(r??0,n??1e9,o,0,i),o}findInner(r,n,i,o,s){for(let a=0;a<this.local.length;a++){let l=this.local[a];l.from<=n&&l.to>=r&&(!s||s(l.spec))&&i.push(l.copy(l.from+o,l.to+o))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<n&&this.children[a+1]>r){let l=this.children[a]+1;this.children[a+2].findInner(r-l,n-l,i,o+l,s)}}map(r,n,i){return this==co||r.maps.length==0?this:this.mapInner(r,n,0,0,i||Hc)}mapInner(r,n,i,o,s){let a;for(let l=0;l<this.local.length;l++){let u=this.local[l].map(r,i,o);u&&u.type.valid(n,u)?(a||(a=[])).push(u):s.onRemove&&s.onRemove(this.local[l].spec)}return this.children.length?iP(this.children,a||[],r,n,i,o,s):a?new Nr(a.sort(Pc),Kd):co}add(r,n){return n.length?this==co?Nr.create(r,n):this.addInner(r,n,0):this}addInner(r,n,i){let o,s=0;r.forEach((l,u)=>{let c=u+i,d;if(d=zC(n,l,c)){for(o||(o=this.children.slice());s<o.length&&o[s]<u;)s+=3;o[s]==u?o[s+2]=o[s+2].addInner(l,d,c+1):o.splice(s,0,u,u+l.nodeSize,B2(d,l,c+1,Hc)),s+=3}});let a=LC(s?YC(n):n,-i);for(let l=0;l<a.length;l++)a[l].type.valid(r,a[l])||a.splice(l--,1);return new Nr(a.length?this.local.concat(a).sort(Pc):this.local,o||this.children)}remove(r){return r.length==0||this==co?this:this.removeInner(r,0)}removeInner(r,n){let i=this.children,o=this.local;for(let s=0;s<i.length;s+=3){let a,l=i[s]+n,u=i[s+1]+n;for(let d=0,h;d<r.length;d++)(h=r[d])&&h.from>l&&h.to<u&&(r[d]=null,(a||(a=[])).push(h));if(!a)continue;i==this.children&&(i=this.children.slice());let c=i[s+2].removeInner(a,l+1);c!=co?i[s+2]=c:(i.splice(s,3),s-=3)}if(o.length){for(let s=0,a;s<r.length;s++)if(a=r[s])for(let l=0;l<o.length;l++)o[l].eq(a,n)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return i==this.children&&o==this.local?this:o.length||i.length?new Nr(o,i):co}forChild(r,n){if(this==co)return this;if(n.isLeaf)return Nr.empty;let i,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=r){this.children[l]==r&&(i=this.children[l+2]);break}let s=r+1,a=s+n.content.size;for(let l=0;l<this.local.length;l++){let u=this.local[l];if(u.from<a&&u.to>s&&u.type instanceof _u){let c=Math.max(s,u.from)-s,d=Math.min(a,u.to)-s;c<d&&(o||(o=[])).push(u.copy(c,d))}}if(o){let l=new Nr(o.sort(Pc),Kd);return i?new cu([l,i]):l}return i||co}eq(r){if(this==r)return!0;if(!(r instanceof Nr)||this.local.length!=r.local.length||this.children.length!=r.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(r.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=r.children[n]||this.children[n+1]!=r.children[n+1]||!this.children[n+2].eq(r.children[n+2]))return!1;return!0}locals(r){return tv(this.localsInner(r))}localsInner(r){if(this==co)return Kd;if(r.inlineContent||!this.local.some(_u.is))return this.local;let n=[];for(let i=0;i<this.local.length;i++)this.local[i].type instanceof _u||n.push(this.local[i]);return n}forEachSet(r){r(this)}}Nr.empty=new Nr([],[]),Nr.removeOverlap=tv;const co=Nr.empty;class cu{constructor(r){this.members=r}map(r,n){const i=this.members.map(o=>o.map(r,n,Hc));return cu.from(i)}forChild(r,n){if(n.isLeaf)return Nr.empty;let i=[];for(let o=0;o<this.members.length;o++){let s=this.members[o].forChild(r,n);s!=co&&(s instanceof cu?i=i.concat(s.members):i.push(s))}return cu.from(i)}eq(r){if(!(r instanceof cu)||r.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(r.members[n]))return!1;return!0}locals(r){let n,i=!0;for(let o=0;o<this.members.length;o++){let s=this.members[o].localsInner(r);if(s.length)if(!n)n=s;else{i&&(n=n.slice(),i=!1);for(let a=0;a<s.length;a++)n.push(s[a])}}return n?tv(i?n:n.sort(Pc)):Kd}static from(r){switch(r.length){case 0:return co;case 1:return r[0];default:return new cu(r.every(n=>n instanceof Nr)?r:r.reduce((n,i)=>n.concat(i instanceof Nr?i:i.members),[]))}}forEachSet(r){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(r)}}function iP(e,r,n,i,o,s,a){let l=e.slice();for(let c=0,d=s;c<n.maps.length;c++){let h=0;n.maps[c].forEach((p,f,m,v)=>{let w=v-m-(f-p);for(let x=0;x<l.length;x+=3){let k=l[x+1];if(k<0||p>k+d-h)continue;let R=l[x]+d-h;f>=R?l[x+1]=p<=R?-2:-1:p>=d&&w&&(l[x]+=w,l[x+1]+=w)}h+=w}),d=n.maps[c].map(d,-1)}let u=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){u=!0,l[c+1]=-1;continue}let d=n.map(e[c]+s),h=d-o;if(h<0||h>=i.content.size){u=!0;continue}let p=n.map(e[c+1]+s,-1),f=p-o,{index:m,offset:v}=i.content.findIndex(h),w=i.maybeChild(m);if(w&&v==h&&v+w.nodeSize==f){let x=l[c+2].mapInner(n,w,d+1,e[c]+s+1,a);x!=co?(l[c]=h,l[c+1]=f,l[c+2]=x):(l[c+1]=-2,u=!0)}else u=!0}if(u){let c=oP(l,e,r,n,o,s,a),d=B2(c,i,0,a);r=d.local;for(let h=0;h<l.length;h+=3)l[h+1]<0&&(l.splice(h,3),h-=3);for(let h=0,p=0;h<d.children.length;h+=3){let f=d.children[h];for(;p<l.length&&l[p]<f;)p+=3;l.splice(p,0,d.children[h],d.children[h+1],d.children[h+2])}}return new Nr(r.sort(Pc),l)}function LC(e,r){if(!r||!e.length)return e;let n=[];for(let i=0;i<e.length;i++){let o=e[i];n.push(new kn(o.from+r,o.to+r,o.type))}return n}function oP(e,r,n,i,o,s,a){function l(u,c){for(let d=0;d<u.local.length;d++){let h=u.local[d].map(i,o,c);h?n.push(h):a.onRemove&&a.onRemove(u.local[d].spec)}for(let d=0;d<u.children.length;d+=3)l(u.children[d+2],u.children[d]+c+1)}for(let u=0;u<e.length;u+=3)e[u+1]==-1&&l(e[u+2],r[u]+s+1);return n}function zC(e,r,n){if(r.isLeaf)return null;let i=n+r.nodeSize,o=null;for(let s=0,a;s<e.length;s++)(a=e[s])&&a.from>n&&a.to<i&&((o||(o=[])).push(a),e[s]=null);return o}function YC(e){let r=[];for(let n=0;n<e.length;n++)e[n]!=null&&r.push(e[n]);return r}function B2(e,r,n,i){let o=[],s=!1;r.forEach((l,u)=>{let c=zC(e,l,u+n);if(c){s=!0;let d=B2(c,l,n+u+1,i);d!=co&&o.push(u,u+l.nodeSize,d)}});let a=LC(s?YC(e):e,-n).sort(Pc);for(let l=0;l<a.length;l++)a[l].type.valid(r,a[l])||(i.onRemove&&i.onRemove(a[l].spec),a.splice(l--,1));return a.length||o.length?new Nr(a,o):co}function Pc(e,r){return e.from-r.from||e.to-r.to}function tv(e){let r=e;for(let n=0;n<r.length-1;n++){let i=r[n];if(i.from!=i.to)for(let o=n+1;o<r.length;o++){let s=r[o];if(s.from==i.from){s.to!=i.to&&(r==e&&(r=e.slice()),r[o]=s.copy(s.from,i.to),T8(r,o+1,s.copy(i.to,s.to)));continue}else{s.from<i.to&&(r==e&&(r=e.slice()),r[n]=i.copy(i.from,s.from),T8(r,o,i.copy(s.from,i.to)));break}}}return r}function T8(e,r,n){for(;r<e.length&&Pc(n,e[r])>0;)r++;e.splice(r,0,n)}function Z5(e){let r=[];return e.someProp("decorations",n=>{let i=n(e.state);i&&i!=co&&r.push(i)}),e.cursorWrapper&&r.push(Nr.create(e.state.doc,[e.cursorWrapper.deco])),cu.from(r)}const sP={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},aP=es&&ku<=11;class lP{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(r){this.anchorNode=r.anchorNode,this.anchorOffset=r.anchorOffset,this.focusNode=r.focusNode,this.focusOffset=r.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(r){return r.anchorNode==this.anchorNode&&r.anchorOffset==this.anchorOffset&&r.focusNode==this.focusNode&&r.focusOffset==this.focusOffset}}class uP{constructor(r,n){this.view=r,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lP,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let o=0;o<i.length;o++)this.queue.push(i[o]);es&&ku<=11&&i.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),aP&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.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,sP)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let r=this.observer.takeRecords();if(r.length){for(let n=0;n<r.length;n++)this.queue.push(r[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(a8(this.view)){if(this.suppressingSelectionUpdates)return h0(this.view);if(es&&ku<=11&&!this.view.state.selection.empty){let r=this.view.domSelectionRange();if(r.focusNode&&Jc(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(r){if(!r.focusNode)return!0;let n=new Set,i;for(let s=r.focusNode;s;s=_h(s))n.add(s);for(let s=r.anchorNode;s;s=_h(s))if(n.has(s)){i=s;break}let o=i&&this.view.docView.nearestDesc(i);if(o&&o.ignoreMutation({type:"selection",target:i.nodeType==3?i.parentNode:i}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let r of this.observer.takeRecords())this.queue.push(r);return this.queue}flush(){let{view:r}=this;if(!r.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let i=r.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&a8(r)&&!this.ignoreSelectionChange(i),s=-1,a=-1,l=!1,u=[];if(r.editable)for(let d=0;d<n.length;d++){let h=this.registerMutation(n[d],u);h&&(s=s<0?h.from:Math.min(h.from,s),a=a<0?h.to:Math.max(h.to,a),h.typeOver&&(l=!0))}if(Ws&&u.length){let d=u.filter(h=>h.nodeName=="BR");if(d.length==2){let[h,p]=d;h.parentNode&&h.parentNode.parentNode==p.parentNode?p.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let p of d){let f=p.parentNode;f&&f.nodeName=="LI"&&(!h||hP(r,h)!=f)&&p.remove()}}}let c=null;s<0&&o&&r.input.lastFocus>Date.now()-200&&Math.max(r.input.lastTouch,r.input.lastClick.time)<Date.now()-300&&p3(i)&&(c=Wb(r))&&c.eq(rr.near(r.state.doc.resolve(0),1))?(r.input.lastFocus=0,h0(r),this.currentSelection.set(i),r.scrollToSelection()):(s>-1||o)&&(s>-1&&(r.docView.markDirty(s,a),cP(r)),this.handleDOMChange(s,a,l,u),r.docView&&r.docView.dirty?r.updateState(r.state):this.currentSelection.eq(i)||h0(r),this.currentSelection.set(i))}registerMutation(r,n){if(n.indexOf(r.target)>-1)return null;let i=this.view.docView.nearestDesc(r.target);if(r.type=="attributes"&&(i==this.view.docView||r.attributeName=="contenteditable"||r.attributeName=="style"&&!r.oldValue&&!r.target.getAttribute("style"))||!i||i.ignoreMutation(r))return null;if(r.type=="childList"){for(let d=0;d<r.addedNodes.length;d++){let h=r.addedNodes[d];n.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(i.contentDOM&&i.contentDOM!=i.dom&&!i.contentDOM.contains(r.target))return{from:i.posBefore,to:i.posAfter};let o=r.previousSibling,s=r.nextSibling;if(es&&ku<=11&&r.addedNodes.length)for(let d=0;d<r.addedNodes.length;d++){let{previousSibling:h,nextSibling:p}=r.addedNodes[d];(!h||Array.prototype.indexOf.call(r.addedNodes,h)<0)&&(o=h),(!p||Array.prototype.indexOf.call(r.addedNodes,p)<0)&&(s=p)}let a=o&&o.parentNode==r.target?ro(o)+1:0,l=i.localPosFromDOM(r.target,a,-1),u=s&&s.parentNode==r.target?ro(s):r.target.childNodes.length,c=i.localPosFromDOM(r.target,u,1);return{from:l,to:c}}else return r.type=="attributes"?{from:i.posAtStart-i.border,to:i.posAtEnd+i.border}:(this.lastChangedTextNode=r.target,{from:i.posAtStart,to:i.posAtEnd,typeOver:r.target.nodeValue==r.oldValue})}}let b8=new WeakMap,v8=!1;function cP(e){if(!b8.has(e)&&(b8.set(e,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Ws,v8)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."),v8=!0}}function A8(e,r){let n=r.startContainer,i=r.startOffset,o=r.endContainer,s=r.endOffset,a=e.domAtPos(e.state.selection.anchor);return Jc(a.node,a.offset,o,s)&&([n,i,o,s]=[o,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:o,focusOffset:s}}function dP(e,r){if(r.getComposedRanges){let o=r.getComposedRanges(e.root)[0];if(o)return A8(e,o)}let n;function i(o){o.preventDefault(),o.stopImmediatePropagation(),n=o.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",i,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",i,!0),n?A8(e,n):null}function hP(e,r){for(let n=r.parentNode;n&&n!=e.dom;n=n.parentNode){let i=e.docView.nearestDesc(n,!0);if(i&&i.node.isBlock)return n}return null}function pP(e,r,n){let{node:i,fromOffset:o,toOffset:s,from:a,to:l}=e.docView.parseRange(r,n),u=e.domSelectionRange(),c,d=u.anchorNode;if(d&&e.dom.contains(d.nodeType==1?d:d.parentNode)&&(c=[{node:d,offset:u.anchorOffset}],p3(u)||c.push({node:u.focusNode,offset:u.focusOffset})),go&&e.input.lastKeyCode===8)for(let w=s;w>o;w--){let x=i.childNodes[w-1],k=x.pmViewDesc;if(x.nodeName=="BR"&&!k){s=w;break}if(!k||k.size)break}let h=e.state.doc,p=e.someProp("domParser")||hh.fromSchema(e.state.schema),f=h.resolve(a),m=null,v=p.parse(i,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:o,to:s,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:fP,context:f});if(c&&c[0].pos!=null){let w=c[0].pos,x=c[1]&&c[1].pos;x==null&&(x=w),m={anchor:w+a,head:x+a}}return{doc:v,sel:m,from:a,to:l}}function fP(e){let r=e.pmViewDesc;if(r)return r.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Lo&&/^(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||Lo&&/^(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 mP=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function gP(e,r,n,i,o){let s=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,r<0){let W=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,ie=Wb(e,W);if(ie&&!e.state.selection.eq(ie)){if(go&&o0&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",I=>I(e,Fc(13,"Enter"))))return;let ue=e.state.tr.setSelection(ie);W=="pointer"?ue.setMeta("pointer",!0):W=="key"&&ue.scrollIntoView(),s&&ue.setMeta("composition",s),e.dispatch(ue)}return}let a=e.state.doc.resolve(r),l=a.sharedDepth(n);r=a.before(l+1),n=e.state.doc.resolve(n).after(l+1);let u=e.state.selection,c=pP(e,r,n),d=e.state.doc,h=d.slice(c.from,c.to),p,f;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(p=e.state.selection.to,f="end"):(p=e.state.selection.from,f="start"),e.input.lastKeyCode=null;let m=bP(h.content,c.doc.content,c.from,p,f);if(m&&e.input.domChangeCount++,(Nh&&e.input.lastIOSEnter>Date.now()-225||o0)&&o.some(W=>W.nodeType==1&&!mP.test(W.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",W=>W(e,Fc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(i&&u instanceof Lt&&!u.empty&&u.$head.sameParent(u.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:u.from,endA:u.to,endB:u.to};else{if(c.sel){let W=E8(e,e.state.doc,c.sel);if(W&&!W.eq(e.state.selection)){let ie=e.state.tr.setSelection(W);s&&ie.setMeta("composition",s),e.dispatch(ie)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof Lt&&(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)),es&&ku<=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 v=c.doc.resolveNoCache(m.start-c.from),w=c.doc.resolveNoCache(m.endB-c.from),x=d.resolve(m.start),k=v.sameParent(w)&&v.parent.inlineContent&&x.end()>=m.endA;if((Nh&&e.input.lastIOSEnter>Date.now()-225&&(!k||o.some(W=>W.nodeName=="DIV"||W.nodeName=="P"))||!k&&v.pos<c.doc.content.size&&(!v.sameParent(w)||!v.parent.inlineContent)&&v.pos<w.pos&&!/\S/.test(c.doc.textBetween(v.pos,w.pos,"","")))&&e.someProp("handleKeyDown",W=>W(e,Fc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&TP(d,m.start,m.endA,v,w)&&e.someProp("handleKeyDown",W=>W(e,Fc(8,"Backspace")))){o0&&go&&e.domObserver.suppressSelectionUpdates();return}go&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),o0&&!k&&v.start()!=w.start()&&w.parentOffset==0&&v.depth==w.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,w=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(W){return W(e,Fc(13,"Enter"))})},20));let R=m.start,O=m.endA,P=W=>{let ie=W||e.state.tr.replace(R,O,c.doc.slice(m.start-c.from,m.endB-c.from));if(c.sel){let ue=E8(e,ie.doc,c.sel);ue&&!(go&&e.composing&&ue.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(ue.head==R||ue.head==ie.mapping.map(O)-1)||es&&ue.empty&&ue.head==R)&&ie.setSelection(ue)}return s&&ie.setMeta("composition",s),ie.scrollIntoView()},V;if(k)if(v.pos==w.pos){es&&ku<=11&&v.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>h0(e),20));let W=P(e.state.tr.delete(R,O)),ie=d.resolve(m.start).marksAcross(d.resolve(m.endA));ie&&W.ensureMarks(ie),e.dispatch(W)}else if(m.endA==m.endB&&(V=yP(v.parent.content.cut(v.parentOffset,w.parentOffset),x.parent.content.cut(x.parentOffset,m.endA-x.start())))){let W=P(e.state.tr);V.type=="add"?W.addMark(R,O,V.mark):W.removeMark(R,O,V.mark),e.dispatch(W)}else if(v.parent.child(v.index()).isText&&v.index()==w.index()-(w.textOffset?0:1)){let W=v.parent.textBetween(v.parentOffset,w.parentOffset),ie=()=>P(e.state.tr.insertText(W,R,O));e.someProp("handleTextInput",ue=>ue(e,R,O,W,ie))||e.dispatch(ie())}else e.dispatch(P());else e.dispatch(P())}function E8(e,r,n){return Math.max(n.anchor,n.head)>r.content.size?null:Kb(e,r.resolve(n.anchor),r.resolve(n.head))}function yP(e,r){let n=e.firstChild.marks,i=r.firstChild.marks,o=n,s=i,a,l,u;for(let d=0;d<i.length;d++)o=i[d].removeFromSet(o);for(let d=0;d<n.length;d++)s=n[d].removeFromSet(s);if(o.length==1&&s.length==0)l=o[0],a="add",u=d=>d.mark(l.addToSet(d.marks));else if(o.length==0&&s.length==1)l=s[0],a="remove",u=d=>d.mark(l.removeFromSet(d.marks));else return null;let c=[];for(let d=0;d<r.childCount;d++)c.push(u(r.child(d)));if(ze.from(c).eq(e))return{mark:l,type:a}}function TP(e,r,n,i,o){if(n-r<=o.pos-i.pos||$5(i,!0,!1)<o.pos)return!1;let s=e.resolve(r);if(!i.parent.isTextblock){let l=s.nodeAfter;return l!=null&&n==r+l.nodeSize}if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let a=e.resolve($5(s,!0,!0));return!a.parent.isTextblock||a.pos>n||$5(a,!0,!1)<n?!1:i.parent.content.cut(i.parentOffset).eq(a.parent.content)}function $5(e,r,n){let i=e.depth,o=r?e.end():e.pos;for(;i>0&&(r||e.indexAfter(i)==e.node(i).childCount);)i--,o++,r=!1;if(n){let s=e.node(i).maybeChild(e.indexAfter(i));for(;s&&!s.isLeaf;)s=s.firstChild,o++}return o}function bP(e,r,n,i,o){let s=e.findDiffStart(r,n);if(s==null)return null;let{a,b:l}=e.findDiffEnd(r,n+e.size,n+r.size);if(o=="end"){let u=Math.max(0,s-Math.min(a,l));i-=a+u-s}if(a<s&&e.size<r.size){let u=i<=s&&i>=a?s-i:0;s-=u,s&&s<r.size&&w8(r.textBetween(s-1,s+1))&&(s+=u?1:-1),l=s+(l-a),a=s}else if(l<s){let u=i<=s&&i>=l?s-i:0;s-=u,s&&s<e.size&&w8(e.textBetween(s-1,s+1))&&(s+=u?1:-1),a=s+(a-l),l=s}return{start:s,endA:a,endB:l}}function w8(e){if(e.length!=2)return!1;let r=e.charCodeAt(0),n=e.charCodeAt(1);return r>=56320&&r<=57343&&n>=55296&&n<=56319}class HC{constructor(r,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 zH,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(C8),this.dispatch=this.dispatch.bind(this),this.dom=r&&r.mount||document.createElement("div"),r&&(r.appendChild?r.appendChild(this.dom):typeof r=="function"?r(this.dom):r.mount&&(this.mounted=!0)),this.editable=x8(this),D8(this),this.nodeViews=k8(this),this.docView=t8(this.state.doc,S8(this),Z5(this),this.dom,this),this.domObserver=new uP(this,(i,o,s,a)=>gP(this,i,o,s,a)),this.domObserver.start(),YH(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let r=this._props;this._props={};for(let n in r)this._props[n]=r[n];this._props.state=this.state}return this._props}update(r){r.handleDOMEvents!=this._props.handleDOMEvents&&Xy(this);let n=this._props;this._props=r,r.plugins&&(r.plugins.forEach(C8),this.directPlugins=r.plugins),this.updateStateInner(r.state,n)}setProps(r){let n={};for(let i in this._props)n[i]=this._props[i];n.state=this.state;for(let i in r)n[i]=r[i];this.update(n)}updateState(r){this.updateStateInner(r,this._props)}updateStateInner(r,n){var i;let o=this.state,s=!1,a=!1;r.storedMarks&&this.composing&&(RC(this),a=!0),this.state=r;let l=o.plugins!=r.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=k8(this);AP(f,this.nodeViews)&&(this.nodeViews=f,s=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&Xy(this),this.editable=x8(this),D8(this);let u=Z5(this),c=S8(this),d=o.plugins!=r.plugins&&!o.doc.eq(r.doc)?"reset":r.scrollToSelection>o.scrollToSelection?"to selection":"preserve",h=s||!this.docView.matchesNode(r.doc,c,u);(h||!r.selection.eq(o.selection))&&(a=!0);let p=d=="preserve"&&a&&this.dom.style.overflowAnchor==null&&XY(this);if(a){this.domObserver.stop();let f=h&&(es||go)&&!this.composing&&!o.selection.empty&&!r.selection.empty&&vP(o.selection,r.selection);if(h){let m=go?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=JH(this)),(s||!this.docView.update(r.doc,c,u,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=t8(r.doc,c,u,this.dom,this)),m&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&wH(this))?h0(this,f):(wC(this,r.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((i=this.dragging)===null||i===void 0)&&i.node&&!o.doc.eq(r.doc)&&this.updateDraggedNode(this.dragging,o),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():p&&eH(p)}scrollToSelection(){let r=this.domSelectionRange().focusNode;if(!(!r||!this.dom.contains(r.nodeType==1?r:r.parentNode))&&!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Ht){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&WA(this,n.getBoundingClientRect(),r)}else WA(this,this.coordsAtPos(this.state.selection.head,1),r)}destroyPluginViews(){let r;for(;r=this.pluginViews.pop();)r.destroy&&r.destroy()}updatePluginViews(r){if(!r||r.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let i=this.state.plugins[n];i.spec.view&&this.pluginViews.push(i.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let i=this.pluginViews[n];i.update&&i.update(this,r)}}updateDraggedNode(r,n){let i=r.node,o=-1;if(this.state.doc.nodeAt(i.from)==i.node)o=i.from;else{let s=i.from+(this.state.doc.content.size-n.doc.content.size);(s>0&&this.state.doc.nodeAt(s))==i.node&&(o=s)}this.dragging=new IC(r.slice,r.move,o<0?void 0:Ht.create(this.state.doc,o))}someProp(r,n){let i=this._props&&this._props[r],o;if(i!=null&&(o=n?n(i):i))return o;for(let a=0;a<this.directPlugins.length;a++){let l=this.directPlugins[a].props[r];if(l!=null&&(o=n?n(l):l))return o}let s=this.state.plugins;if(s)for(let a=0;a<s.length;a++){let l=s[a].props[r];if(l!=null&&(o=n?n(l):l))return o}}hasFocus(){if(es){let r=this.root.activeElement;if(r==this.dom)return!0;if(!r||!this.dom.contains(r))return!1;for(;r&&this.dom!=r&&this.dom.contains(r);){if(r.contentEditable=="false")return!1;r=r.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&tH(this.dom),h0(this),this.domObserver.start()}get root(){let r=this._root;if(r==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 r||document}updateRoot(){this._root=null}posAtCoords(r){return sH(this,r)}coordsAtPos(r,n=1){return mC(this,r,n)}domAtPos(r,n=0){return this.docView.domFromPos(r,n)}nodeDOM(r){let n=this.docView.descAt(r);return n?n.nodeDOM:null}posAtDOM(r,n,i=-1){let o=this.docView.posFromDOM(r,n,i);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(r,n){return dH(this,n||this.state,r)}pasteHTML(r,n){return sf(this,"",r,!1,n||new ClipboardEvent("paste"))}pasteText(r,n){return sf(this,r,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(r){return Qb(this,r)}destroy(){this.docView&&(HH(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Z5(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,ZY())}get isDestroyed(){return this.docView==null}dispatchEvent(r){return ZH(this,r)}domSelectionRange(){let r=this.domSelection();return r?Lo&&this.root.nodeType===11&&GY(this.dom.ownerDocument)==this.dom&&dP(this,r)||r:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}HC.prototype.dispatch=function(e){let r=this._props.dispatchTransaction;r?r.call(this,e):this.updateState(this.state.apply(e))};function S8(e){let r=Object.create(null);return r.class="ProseMirror",r.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let i in n)i=="class"?r.class+=" "+n[i]:i=="style"?r.style=(r.style?r.style+";":"")+n[i]:!r[i]&&i!="contenteditable"&&i!="nodeName"&&(r[i]=String(n[i]))}),r.translate||(r.translate="no"),[kn.node(0,e.state.doc.content.size,r)]}function D8(e){if(e.markCursor){let r=document.createElement("img");r.className="ProseMirror-separator",r.setAttribute("mark-placeholder","true"),r.setAttribute("alt",""),e.cursorWrapper={dom:r,deco:kn.widget(e.state.selection.from,r,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function x8(e){return!e.someProp("editable",r=>r(e.state)===!1)}function vP(e,r){let n=Math.min(e.$anchor.sharedDepth(e.head),r.$anchor.sharedDepth(r.head));return e.$anchor.start(n)!=r.$anchor.start(n)}function k8(e){let r=Object.create(null);function n(i){for(let o in i)Object.prototype.hasOwnProperty.call(r,o)||(r[o]=i[o])}return e.someProp("nodeViews",n),e.someProp("markViews",n),r}function AP(e,r){let n=0,i=0;for(let o in e){if(e[o]!=r[o])return!0;n++}for(let o in r)i++;return n!=i}function C8(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 Yu={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:"'"},I2={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},EP=typeof navigator<"u"&&/Mac/.test(navigator.platform),wP=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),no=0;no<10;no++)Yu[48+no]=Yu[96+no]=String(no);for(var no=1;no<=24;no++)Yu[no+111]="F"+no;for(var no=65;no<=90;no++)Yu[no]=String.fromCharCode(no+32),I2[no]=String.fromCharCode(no);for(var U5 in Yu)I2.hasOwnProperty(U5)||(I2[U5]=Yu[U5]);function SP(e){var r=EP&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||wP&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!r&&e.key||(e.shiftKey?I2:Yu)[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 DP=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),xP=typeof navigator<"u"&&/Win/.test(navigator.platform);function kP(e){let r=e.split(/-(?!$)/),n=r[r.length-1];n=="Space"&&(n=" ");let i,o,s,a;for(let l=0;l<r.length-1;l++){let u=r[l];if(/^(cmd|meta|m)$/i.test(u))a=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))s=!0;else if(/^mod$/i.test(u))DP?a=!0:o=!0;else throw new Error("Unrecognized modifier name: "+u)}return i&&(n="Alt-"+n),o&&(n="Ctrl-"+n),a&&(n="Meta-"+n),s&&(n="Shift-"+n),n}function CP(e){let r=Object.create(null);for(let n in e)r[kP(n)]=e[n];return r}function V5(e,r,n=!0){return r.altKey&&(e="Alt-"+e),r.ctrlKey&&(e="Ctrl-"+e),r.metaKey&&(e="Meta-"+e),n&&r.shiftKey&&(e="Shift-"+e),e}function _P(e){return new lr({props:{handleKeyDown:rv(e)}})}function rv(e){let r=CP(e);return function(n,i){let o=SP(i),s,a=r[V5(o,i)];if(a&&a(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(i.shiftKey){let l=r[V5(o,i,!1)];if(l&&l(n.state,n.dispatch,n))return!0}if((i.altKey||i.metaKey||i.ctrlKey)&&!(xP&&i.ctrlKey&&i.altKey)&&(s=Yu[i.keyCode])&&s!=o){let l=r[V5(s,i)];if(l&&l(n.state,n.dispatch,n))return!0}}return!1}}var NP=Object.defineProperty,nv=(e,r)=>{for(var n in r)NP(e,n,{get:r[n],enumerable:!0})};function m3(e){const{state:r,transaction:n}=e;let{selection:i}=n,{doc:o}=n,{storedMarks:s}=n;return{...r,apply:r.apply.bind(r),applyTransaction:r.applyTransaction.bind(r),plugins:r.plugins,schema:r.schema,reconfigure:r.reconfigure.bind(r),toJSON:r.toJSON.bind(r),get storedMarks(){return s},get selection(){return i},get doc(){return o},get tr(){return i=n.selection,o=n.doc,s=n.storedMarks,n}}}var g3=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:r,state:n}=this,{view:i}=r,{tr:o}=n,s=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const c=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,r=!0){const{rawCommands:n,editor:i,state:o}=this,{view:s}=i,a=[],l=!!e,u=e||o.tr,c=()=>(!l&&r&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(n).map(([h,p])=>[h,(...f)=>{const m=this.buildProps(u,r),v=p(...f)(m);return a.push(v),d}])),run:c};return d}createCan(e){const{rawCommands:r,state:n}=this,i=!1,o=e||n.tr,s=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(r).map(([a,l])=>[a,(...u)=>l(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(e,r=!0){const{rawCommands:n,editor:i,state:o}=this,{view:s}=i,a={tr:e,editor:i,view:s,state:m3({state:o,transaction:e}),dispatch:r?()=>{}:void 0,chain:()=>this.createChain(e,r),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)(a)]))}};return a}},PC={};nv(PC,{blur:()=>FP,clearContent:()=>OP,clearNodes:()=>MP,command:()=>RP,createParagraphNear:()=>BP,cut:()=>IP,deleteCurrentNode:()=>LP,deleteNode:()=>zP,deleteRange:()=>YP,deleteSelection:()=>HP,enter:()=>PP,exitCode:()=>ZP,extendMarkRange:()=>$P,first:()=>UP,focus:()=>jP,forEach:()=>GP,insertContent:()=>qP,insertContentAt:()=>QP,joinBackward:()=>eZ,joinDown:()=>XP,joinForward:()=>tZ,joinItemBackward:()=>rZ,joinItemForward:()=>nZ,joinTextblockBackward:()=>iZ,joinTextblockForward:()=>oZ,joinUp:()=>JP,keyboardShortcut:()=>aZ,lift:()=>lZ,liftEmptyBlock:()=>uZ,liftListItem:()=>cZ,newlineInCode:()=>dZ,resetAttributes:()=>hZ,scrollIntoView:()=>pZ,selectAll:()=>fZ,selectNodeBackward:()=>mZ,selectNodeForward:()=>gZ,selectParentNode:()=>yZ,selectTextblockEnd:()=>TZ,selectTextblockStart:()=>bZ,setContent:()=>vZ,setMark:()=>IZ,setMeta:()=>LZ,setNode:()=>zZ,setNodeSelection:()=>YZ,setTextDirection:()=>HZ,setTextSelection:()=>PZ,sinkListItem:()=>ZZ,splitBlock:()=>$Z,splitListItem:()=>UZ,toggleList:()=>VZ,toggleMark:()=>jZ,toggleNode:()=>GZ,toggleWrap:()=>qZ,undoInputRule:()=>WZ,unsetAllMarks:()=>KZ,unsetMark:()=>QZ,unsetTextDirection:()=>JZ,updateAttributes:()=>XZ,wrapIn:()=>e$,wrapInList:()=>t$});var FP=()=>({editor:e,view:r})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(r.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),OP=(e=!0)=>({commands:r})=>r.setContent("",{emitUpdate:e}),MP=()=>({state:e,tr:r,dispatch:n})=>{const{selection:i}=r,{ranges:o}=i;return n&&o.forEach(({$from:s,$to:a})=>{e.doc.nodesBetween(s.pos,a.pos,(l,u)=>{if(l.type.isText)return;const{doc:c,mapping:d}=r,h=c.resolve(d.map(u)),p=c.resolve(d.map(u+l.nodeSize)),f=h.blockRange(p);if(!f)return;const m=ip(f);if(l.type.isTextblock){const{defaultType:v}=h.parent.contentMatchAt(h.index());r.setNodeMarkup(f.start,v)}(m||m===0)&&r.lift(f,m)})}),!0},RP=e=>r=>e(r),BP=()=>({state:e,dispatch:r})=>oC(e,r),IP=(e,r)=>({editor:n,tr:i})=>{const{state:o}=n,s=o.doc.slice(e.from,e.to);i.deleteRange(e.from,e.to);const a=i.mapping.map(r);return i.insert(a,s.content),i.setSelection(new Lt(i.doc.resolve(Math.max(a-1,0)))),!0},LP=()=>({tr:e,dispatch:r})=>{const{selection:n}=e,i=n.$anchor.node();if(i.content.size>0)return!1;const o=e.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===i.type){if(r){const a=o.before(s),l=o.after(s);e.delete(a,l).scrollIntoView()}return!0}return!1};function fi(e,r){if(typeof e=="string"){if(!r.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return r.nodes[e]}return e}var zP=e=>({tr:r,state:n,dispatch:i})=>{const o=fi(e,n.schema),s=r.selection.$anchor;for(let a=s.depth;a>0;a-=1)if(s.node(a).type===o){if(i){const l=s.before(a),u=s.after(a);r.delete(l,u).scrollIntoView()}return!0}return!1},YP=e=>({tr:r,dispatch:n})=>{const{from:i,to:o}=e;return n&&r.delete(i,o),!0},HP=()=>({state:e,dispatch:r})=>$y(e,r),PP=()=>({commands:e})=>e.keyboardShortcut("Enter"),ZP=()=>({state:e,dispatch:r})=>kY(e,r);function iv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function L2(e,r,n={strict:!0}){const i=Object.keys(r);return i.length?i.every(o=>n.strict?r[o]===e[o]:iv(r[o])?r[o].test(e[o]):r[o]===e[o]):!0}function ZC(e,r,n={}){return e.find(i=>i.type===r&&L2(Object.fromEntries(Object.keys(n).map(o=>[o,i.attrs[o]])),n))}function _8(e,r,n={}){return!!ZC(e,r,n)}function y3(e,r,n){var i;if(!e||!r)return;let o=e.parent.childAfter(e.parentOffset);if((!o.node||!o.node.marks.some(c=>c.type===r))&&(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some(c=>c.type===r)||(n=n||((i=o.node.marks[0])==null?void 0:i.attrs),!ZC([...o.node.marks],r,n)))return;let s=o.index,a=e.start()+o.offset,l=s+1,u=a+o.node.nodeSize;for(;s>0&&_8([...e.parent.child(s-1).marks],r,n);)s-=1,a-=e.parent.child(s).nodeSize;for(;l<e.parent.childCount&&_8([...e.parent.child(l).marks],r,n);)u+=e.parent.child(l).nodeSize,l+=1;return{from:a,to:u}}function x0(e,r){if(typeof e=="string"){if(!r.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return r.marks[e]}return e}var $P=(e,r={})=>({tr:n,state:i,dispatch:o})=>{const s=x0(e,i.schema),{doc:a,selection:l}=n,{$from:u,from:c,to:d}=l;if(o){const h=y3(u,s,r);if(h&&h.from<=c&&h.to>=d){const p=Lt.create(a,h.from,h.to);n.setSelection(p)}}return!0},UP=e=>r=>{const n=typeof e=="function"?e(r):e;for(let i=0;i<n.length;i+=1)if(n[i](r))return!0;return!1};function $C(e){return e instanceof Lt}function Bc(e=0,r=0,n=0){return Math.min(Math.max(e,r),n)}function UC(e,r=null){if(!r)return null;const n=rr.atStart(e),i=rr.atEnd(e);if(r==="start"||r===!0)return n;if(r==="end")return i;const o=n.from,s=i.to;return r==="all"?Lt.create(e,Bc(0,o,s),Bc(e.content.size,o,s)):Lt.create(e,Bc(r,o,s),Bc(r,o,s))}function tT(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function lf(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function VP(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var jP=(e=null,r={})=>({editor:n,view:i,tr:o,dispatch:s})=>{r={scrollIntoView:!0,...r};const a=()=>{(lf()||tT())&&i.dom.focus(),VP()&&!lf()&&!tT()&&i.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(i.focus(),r?.scrollIntoView&&n.commands.scrollIntoView())})};if(i.hasFocus()&&e===null||e===!1)return!0;if(s&&e===null&&!$C(n.state.selection))return a(),!0;const l=UC(o.doc,e)||n.state.selection,u=n.state.selection.eq(l);return s&&(u||o.setSelection(l),u&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},GP=(e,r)=>n=>e.every((i,o)=>r(i,{...n,index:o})),qP=(e,r)=>({tr:n,commands:i})=>i.insertContentAt({from:n.selection.from,to:n.selection.to},e,r),VC=e=>{const r=e.childNodes;for(let n=r.length-1;n>=0;n-=1){const i=r[n];i.nodeType===3&&i.nodeValue&&/^(\n\s\s|\n)$/.test(i.nodeValue)?e.removeChild(i):i.nodeType===1&&VC(i)}return e};function Gm(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const r=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(r,"text/html").body;return VC(n)}function uf(e,r,n){if(e instanceof c0||e instanceof ze)return e;n={slice:!0,parseOptions:{},...n};const i=typeof e=="object"&&e!==null,o=typeof e=="string";if(i)try{if(Array.isArray(e)&&e.length>0)return ze.fromArray(e.map(a=>r.nodeFromJSON(a)));const s=r.nodeFromJSON(e);return n.errorOnInvalidContent&&s.check(),s}catch(s){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",s),uf("",r,n)}if(o){if(n.errorOnInvalidContent){let a=!1,l="";const u=new zb({topNode:r.spec.topNode,marks:r.spec.marks,nodes:r.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(a=!0,l=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?hh.fromSchema(u).parseSlice(Gm(e),n.parseOptions):hh.fromSchema(u).parse(Gm(e),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const s=hh.fromSchema(r);return n.slice?s.parseSlice(Gm(e),n.parseOptions).content:s.parse(Gm(e),n.parseOptions)}return uf("",r,n)}function WP(e,r,n){const i=e.steps.length-1;if(i<r)return;const o=e.steps[i];if(!(o instanceof Ui||o instanceof ji))return;const s=e.mapping.maps[i];let a=0;s.forEach((l,u,c,d)=>{a===0&&(a=d)}),e.setSelection(rr.near(e.doc.resolve(a),n))}var KP=e=>!("type"in e),QP=(e,r,n)=>({tr:i,dispatch:o,editor:s})=>{var a;if(o){n={parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let l;const u=v=>{s.emit("contentError",{editor:s,error:v,disableCollaboration:()=>{"collaboration"in s.storage&&typeof s.storage.collaboration=="object"&&s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!s.options.enableContentCheck&&s.options.emitContentError)try{uf(r,s.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(v){u(v)}try{l=uf(r,s.schema,{parseOptions:c,errorOnInvalidContent:(a=n.errorOnInvalidContent)!=null?a:s.options.enableContentCheck})}catch(v){return u(v),!1}let{from:d,to:h}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},p=!0,f=!0;if((KP(l)?l:[l]).forEach(v=>{v.check(),p=p?v.isText&&v.marks.length===0:!1,f=f?v.isBlock:!1}),d===h&&f){const{parent:v}=i.doc.resolve(d);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(d-=1,h+=1)}let m;if(p){if(Array.isArray(r))m=r.map(v=>v.text||"").join("");else if(r instanceof ze){let v="";r.forEach(w=>{w.text&&(v+=w.text)}),m=v}else typeof r=="object"&&r&&r.text?m=r.text:m=r;i.insertText(m,d,h)}else{m=l;const v=i.doc.resolve(d),w=v.node(),x=v.parentOffset===0,k=w.isText||w.isTextblock,R=w.content.size>0;x&&k&&R&&(d=Math.max(0,d-1)),i.replaceWith(d,h,m)}n.updateSelection&&WP(i,i.steps.length-1,-1),n.applyInputRules&&i.setMeta("applyInputRules",{from:d,text:m}),n.applyPasteRules&&i.setMeta("applyPasteRules",{from:d,text:m})}return!0},JP=()=>({state:e,dispatch:r})=>SY(e,r),XP=()=>({state:e,dispatch:r})=>DY(e,r),eZ=()=>({state:e,dispatch:r})=>Jk(e,r),tZ=()=>({state:e,dispatch:r})=>rC(e,r),rZ=()=>({state:e,dispatch:r,tr:n})=>{try{const i=c3(e.doc,e.selection.$from.pos,-1);return i==null?!1:(n.join(i,2),r&&r(n),!0)}catch{return!1}},nZ=()=>({state:e,dispatch:r,tr:n})=>{try{const i=c3(e.doc,e.selection.$from.pos,1);return i==null?!1:(n.join(i,2),r&&r(n),!0)}catch{return!1}},iZ=()=>({state:e,dispatch:r})=>EY(e,r),oZ=()=>({state:e,dispatch:r})=>wY(e,r);function jC(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function sZ(e){const r=e.split(/-(?!$)/);let n=r[r.length-1];n==="Space"&&(n=" ");let i,o,s,a;for(let l=0;l<r.length-1;l+=1){const u=r[l];if(/^(cmd|meta|m)$/i.test(u))a=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))s=!0;else if(/^mod$/i.test(u))lf()||jC()?a=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${u}`)}return i&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),a&&(n=`Meta-${n}`),s&&(n=`Shift-${n}`),n}var aZ=e=>({editor:r,view:n,tr:i,dispatch:o})=>{const s=sZ(e).split(/-(?!$)/),a=s.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0});return r.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,l))})?.steps.forEach(c=>{const d=c.map(i.mapping);d&&o&&i.maybeStep(d)}),!0};function ta(e,r,n={}){const{from:i,to:o,empty:s}=e.selection,a=r?fi(r,e.schema):null,l=[];e.doc.nodesBetween(i,o,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(o,h+d.nodeSize);l.push({node:d,from:p,to:f})});const u=o-i,c=l.filter(d=>a?a.name===d.node.type.name:!0).filter(d=>L2(d.node.attrs,n,{strict:!1}));return s?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=u}var lZ=(e,r={})=>({state:n,dispatch:i})=>{const o=fi(e,n.schema);return ta(n,o,r)?xY(n,i):!1},uZ=()=>({state:e,dispatch:r})=>sC(e,r),cZ=e=>({state:r,dispatch:n})=>{const i=fi(e,r.schema);return zY(i)(r,n)},dZ=()=>({state:e,dispatch:r})=>iC(e,r);function T3(e,r){return r.nodes[e]?"node":r.marks[e]?"mark":null}function N8(e,r){const n=typeof r=="string"?[r]:r;return Object.keys(e).reduce((i,o)=>(n.includes(o)||(i[o]=e[o]),i),{})}var hZ=(e,r)=>({tr:n,state:i,dispatch:o})=>{let s=null,a=null;const l=T3(typeof e=="string"?e:e.name,i.schema);if(!l)return!1;l==="node"&&(s=fi(e,i.schema)),l==="mark"&&(a=x0(e,i.schema));let u=!1;return n.selection.ranges.forEach(c=>{i.doc.nodesBetween(c.$from.pos,c.$to.pos,(d,h)=>{s&&s===d.type&&(u=!0,o&&n.setNodeMarkup(h,void 0,N8(d.attrs,r))),a&&d.marks.length&&d.marks.forEach(p=>{a===p.type&&(u=!0,o&&n.addMark(h,h+d.nodeSize,a.create(N8(p.attrs,r))))})})}),u},pZ=()=>({tr:e,dispatch:r})=>(r&&e.scrollIntoView(),!0),fZ=()=>({tr:e,dispatch:r})=>{if(r){const n=new Xo(e.doc);e.setSelection(n)}return!0},mZ=()=>({state:e,dispatch:r})=>eC(e,r),gZ=()=>({state:e,dispatch:r})=>nC(e,r),yZ=()=>({state:e,dispatch:r})=>NY(e,r),TZ=()=>({state:e,dispatch:r})=>MY(e,r),bZ=()=>({state:e,dispatch:r})=>OY(e,r);function rT(e,r,n={},i={}){return uf(e,r,{slice:!1,parseOptions:n,errorOnInvalidContent:i.errorOnInvalidContent})}var vZ=(e,{errorOnInvalidContent:r,emitUpdate:n=!0,parseOptions:i={}}={})=>({editor:o,tr:s,dispatch:a,commands:l})=>{const{doc:u}=s;if(i.preserveWhitespace!=="full"){const c=rT(e,o.schema,i,{errorOnInvalidContent:r??o.options.enableContentCheck});return a&&s.replaceWith(0,u.content.size,c).setMeta("preventUpdate",!n),!0}return a&&s.setMeta("preventUpdate",!n),l.insertContentAt({from:0,to:u.content.size},e,{parseOptions:i,errorOnInvalidContent:r??o.options.enableContentCheck})};function ov(e,r){const n=x0(r,e.schema),{from:i,to:o,empty:s}=e.selection,a=[];s?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(i,o,u=>{a.push(...u.marks)});const l=a.find(u=>u.type.name===n.name);return l?{...l.attrs}:{}}function sv(e,r){const n=new Zb(e);return r.forEach(i=>{i.steps.forEach(o=>{n.step(o)})}),n}function AZ(e){for(let r=0;r<e.edgeCount;r+=1){const{type:n}=e.edge(r);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function nT(e,r){const n=[];return e.descendants((i,o)=>{r(i)&&n.push({node:i,pos:o})}),n}function GC(e,r,n){const i=[];return e.nodesBetween(r.from,r.to,(o,s)=>{n(o)&&i.push({node:o,pos:s})}),i}function qC(e,r){for(let n=e.depth;n>0;n-=1){const i=e.node(n);if(r(i))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:i}}}function b3(e){return r=>qC(r.$from,e)}function zt(e,r,n){return e.config[r]===void 0&&e.parent?zt(e.parent,r,n):typeof e.config[r]=="function"?e.config[r].bind({...n,parent:e.parent?zt(e.parent,r,n):null}):e.config[r]}function av(e){return e.map(r=>{const n={name:r.name,options:r.options,storage:r.storage},i=zt(r,"addExtensions",n);return i?[r,...av(i())]:r}).flat(10)}function lv(e,r){const n=cd.fromSchema(r).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function WC(e){return typeof e=="function"}function Xr(e,r=void 0,...n){return WC(e)?r?e.bind(r)(...n):e(...n):e}function EZ(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Fh(e){const r=e.filter(o=>o.type==="extension"),n=e.filter(o=>o.type==="node"),i=e.filter(o=>o.type==="mark");return{baseExtensions:r,nodeExtensions:n,markExtensions:i}}function KC(e){const r=[],{nodeExtensions:n,markExtensions:i}=Fh(e),o=[...n,...i],s={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage,extensions:o},u=zt(a,"addGlobalAttributes",l);u&&u().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([h,p])=>{r.push({type:d,name:h,attribute:{...s,...p}})})})})}),o.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage},u=zt(a,"addAttributes",l);if(!u)return;const c=u();Object.entries(c).forEach(([d,h])=>{const p={...s,...h};typeof p?.default=="function"&&(p.default=p.default()),p?.isRequired&&p?.default===void 0&&delete p.default,r.push({type:a.name,name:d,attribute:p})})}),r}function gr(...e){return e.filter(r=>!!r).reduce((r,n)=>{const i={...r};return Object.entries(n).forEach(([o,s])=>{if(!i[o]){i[o]=s;return}if(o==="class"){const a=s?String(s).split(" "):[],l=i[o]?i[o].split(" "):[],u=a.filter(c=>!l.includes(c));i[o]=[...l,...u].join(" ")}else if(o==="style"){const a=s?s.split(";").map(c=>c.trim()).filter(Boolean):[],l=i[o]?i[o].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[d,h]=c.split(":").map(p=>p.trim());u.set(d,h)}),a.forEach(c=>{const[d,h]=c.split(":").map(p=>p.trim());u.set(d,h)}),i[o]=Array.from(u.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else i[o]=s}),i},{})}function cf(e,r){return r.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,i)=>gr(n,i),{})}function wZ(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function F8(e,r){return"style"in e?e:{...e,getAttrs:n=>{const i=e.getAttrs?e.getAttrs(n):e.attrs;if(i===!1)return!1;const o=r.reduce((s,a)=>{const l=a.attribute.parseHTML?a.attribute.parseHTML(n):wZ(n.getAttribute(a.name));return l==null?s:{...s,[a.name]:l}},{});return{...i,...o}}}}function O8(e){return Object.fromEntries(Object.entries(e).filter(([r,n])=>r==="attrs"&&EZ(n)?!1:n!=null))}function M8(e){var r,n;const i={};return!((r=e?.attribute)!=null&&r.isRequired)&&"default"in(e?.attribute||{})&&(i.default=e.attribute.default),((n=e?.attribute)==null?void 0:n.validate)!==void 0&&(i.validate=e.attribute.validate),[e.name,i]}function SZ(e,r){var n;const i=KC(e),{nodeExtensions:o,markExtensions:s}=Fh(e),a=(n=o.find(c=>zt(c,"topNode")))==null?void 0:n.name,l=Object.fromEntries(o.map(c=>{const d=i.filter(x=>x.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:r},p=e.reduce((x,k)=>{const R=zt(k,"extendNodeSchema",h);return{...x,...R?R(c):{}}},{}),f=O8({...p,content:Xr(zt(c,"content",h)),marks:Xr(zt(c,"marks",h)),group:Xr(zt(c,"group",h)),inline:Xr(zt(c,"inline",h)),atom:Xr(zt(c,"atom",h)),selectable:Xr(zt(c,"selectable",h)),draggable:Xr(zt(c,"draggable",h)),code:Xr(zt(c,"code",h)),whitespace:Xr(zt(c,"whitespace",h)),linebreakReplacement:Xr(zt(c,"linebreakReplacement",h)),defining:Xr(zt(c,"defining",h)),isolating:Xr(zt(c,"isolating",h)),attrs:Object.fromEntries(d.map(M8))}),m=Xr(zt(c,"parseHTML",h));m&&(f.parseDOM=m.map(x=>F8(x,d)));const v=zt(c,"renderHTML",h);v&&(f.toDOM=x=>v({node:x,HTMLAttributes:cf(x,d)}));const w=zt(c,"renderText",h);return w&&(f.toText=w),[c.name,f]})),u=Object.fromEntries(s.map(c=>{const d=i.filter(w=>w.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:r},p=e.reduce((w,x)=>{const k=zt(x,"extendMarkSchema",h);return{...w,...k?k(c):{}}},{}),f=O8({...p,inclusive:Xr(zt(c,"inclusive",h)),excludes:Xr(zt(c,"excludes",h)),group:Xr(zt(c,"group",h)),spanning:Xr(zt(c,"spanning",h)),code:Xr(zt(c,"code",h)),attrs:Object.fromEntries(d.map(M8))}),m=Xr(zt(c,"parseHTML",h));m&&(f.parseDOM=m.map(w=>F8(w,d)));const v=zt(c,"renderHTML",h);return v&&(f.toDOM=w=>v({mark:w,HTMLAttributes:cf(w,d)})),[c.name,f]}));return new zb({topNode:a,nodes:l,marks:u})}function DZ(e){const r=e.filter((n,i)=>e.indexOf(n)!==i);return Array.from(new Set(r))}function z2(e){return e.sort((r,n)=>{const i=zt(r,"priority")||100,o=zt(n,"priority")||100;return i>o?-1:i<o?1:0})}function QC(e){const r=z2(av(e)),n=DZ(r.map(i=>i.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),r}function JC(e,r,n){const{from:i,to:o}=r,{blockSeparator:s=` `,textSerializers:a={}}=n||{};let l="";return e.nodesBetween(i,o,(u,c,d,h)=>{var p;u.isBlock&&c>i&&(l+=s);const f=a?.[u.type.name];if(f)return d&&(l+=f({node:u,pos:c,parent:d,index:h,range:r})),!1;u.isText&&(l+=(p=u?.text)==null?void 0:p.slice(Math.max(i,c)-c,o-c))}),l}function xZ(e,r){const n={from:0,to:e.content.size};return JC(e,n,r)}function XC(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,r])=>r.spec.toText).map(([r,n])=>[r,n.spec.toText]))}function kZ(e,r){const n=fi(r,e.schema),{from:i,to:o}=e.selection,s=[];e.doc.nodesBetween(i,o,l=>{s.push(l)});const a=s.reverse().find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function e_(e,r){const n=T3(typeof r=="string"?r:r.name,e.schema);return n==="node"?kZ(e,r):n==="mark"?ov(e,r):{}}function CZ(e,r=JSON.stringify){const n={};return e.filter(i=>{const o=r(i);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function _Z(e){const r=CZ(e);return r.length===1?r:r.filter((n,i)=>!r.filter((o,s)=>s!==i).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function uv(e){const{mapping:r,steps:n}=e,i=[];return r.maps.forEach((o,s)=>{const a=[];if(o.ranges.length)o.forEach((l,u)=>{a.push({from:l,to:u})});else{const{from:l,to:u}=n[s];if(l===void 0||u===void 0)return;a.push({from:l,to:u})}a.forEach(({from:l,to:u})=>{const c=r.slice(s).map(l,-1),d=r.slice(s).map(u),h=r.invert().map(c,-1),p=r.invert().map(d);i.push({oldRange:{from:h,to:p},newRange:{from:c,to:d}})})}),_Z(i)}function cv(e,r,n){const i=[];return e===r?n.resolve(e).marks().forEach(o=>{const s=n.resolve(e),a=y3(s,o.type);a&&i.push({mark:o,...a})}):n.nodesBetween(e,r,(o,s)=>{!o||o?.nodeSize===void 0||i.push(...o.marks.map(a=>({from:s,to:s+o.nodeSize,mark:a})))}),i}var NZ=(e,r,n,i=20)=>{const o=e.doc.resolve(n);let s=i,a=null;for(;s>0&&a===null;){const l=o.node(s);l?.type.name===r?a=l:s-=1}return[a,s]};function qm(e,r){return r.nodes[e]||r.marks[e]||null}function Kg(e,r,n){return Object.fromEntries(Object.entries(n).filter(([i])=>{const o=e.find(s=>s.type===r&&s.name===i);return o?o.attribute.keepOnSplit:!1}))}var FZ=(e,r=500)=>{let n="";const i=e.parentOffset;return e.parent.nodesBetween(Math.max(0,i-r),i,(o,s,a,l)=>{var u,c;const d=((c=(u=o.type.spec).toText)==null?void 0:c.call(u,{node:o,pos:s,parent:a,index:l}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?d:d.slice(0,Math.max(0,i-s))}),n};function Y2(e,r,n={}){const{empty:i,ranges:o}=e.selection,s=r?x0(r,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>L2(d.attrs,n,{strict:!1}));let a=0;const l=[];if(o.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;e.doc.nodesBetween(p,f,(m,v)=>{if(!m.isText&&!m.marks.length)return;const w=Math.max(p,v),x=Math.min(f,v+m.nodeSize),k=x-w;a+=k,l.push(...m.marks.map(R=>({mark:R,from:w,to:x})))})}),a===0)return!1;const u=l.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>L2(d.mark.attrs,n,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=l.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,h)=>d+h.to-h.from,0);return(u>0?u+c:u)>=a}function t_(e,r,n={}){if(!r)return ta(e,null,n)||Y2(e,null,n);const i=T3(r,e.schema);return i==="node"?ta(e,r,n):i==="mark"?Y2(e,r,n):!1}var OZ=(e,r)=>{const{$from:n,$to:i,$anchor:o}=e.selection;if(r){const s=b3(l=>l.type.name===r)(e.selection);if(!s)return!1;const a=e.doc.resolve(s.pos+1);return o.pos+1===a.end()}return!(i.parentOffset<i.parent.nodeSize-2||n.pos!==i.pos)},MZ=e=>{const{$from:r,$to:n}=e.selection;return!(r.parentOffset>0||r.pos!==n.pos)};function R8(e,r){return Array.isArray(r)?r.some(n=>(typeof n=="string"?n:n.name)===e.name):r}function B8(e,r){const{nodeExtensions:n}=Fh(r),i=n.find(a=>a.name===e);if(!i)return!1;const o={name:i.name,options:i.options,storage:i.storage},s=Xr(zt(i,"group",o));return typeof s!="string"?!1:s.split(" ").includes("list")}function v3(e,{checkChildren:r=!0,ignoreWhitespace:n=!1}={}){var i;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((i=e.text)!=null?i:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(r){let o=!0;return e.content.forEach(s=>{o!==!1&&(v3(s,{ignoreWhitespace:n,checkChildren:r})||(o=!1))}),o}return!1}function r_(e){return e instanceof Ht}var dv=class n_{constructor(r){this.position=r}static fromJSON(r){return new n_(r.position)}toJSON(){return{position:this.position}}};function i_(e,r){const n=r.mapping.mapResult(e.position);return{position:new dv(n.pos),mapResult:n}}function RZ(e){return new dv(e)}function BZ(e,r,n){var i;const{selection:o}=r;let s=null;if($C(o)&&(s=o.$cursor),s){const l=(i=e.storedMarks)!=null?i:s.marks();return s.parent.type.allowsMarkType(n)&&(!!n.isInSet(l)||!l.some(u=>u.type.excludes(n)))}const{ranges:a}=o;return a.some(({$from:l,$to:u})=>{let c=l.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(l.pos,u.pos,(d,h,p)=>{if(c)return!1;if(d.isInline){const f=!p||p.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(v=>v.type.excludes(n));c=f&&m}return!c}),c})}var IZ=(e,r={})=>({tr:n,state:i,dispatch:o})=>{const{selection:s}=n,{empty:a,ranges:l}=s,u=x0(e,i.schema);if(o)if(a){const c=ov(i,u);n.addStoredMark(u.create({...c,...r}))}else l.forEach(c=>{const d=c.$from.pos,h=c.$to.pos;i.doc.nodesBetween(d,h,(p,f)=>{const m=Math.max(f,d),v=Math.min(f+p.nodeSize,h);p.marks.find(w=>w.type===u)?p.marks.forEach(w=>{u===w.type&&n.addMark(m,v,u.create({...w.attrs,...r}))}):n.addMark(m,v,u.create(r))})});return BZ(i,n,u)},LZ=(e,r)=>({tr:n})=>(n.setMeta(e,r),!0),zZ=(e,r={})=>({state:n,dispatch:i,chain:o})=>{const s=fi(e,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),s.isTextblock?o().command(({commands:l})=>jA(s,{...a,...r})(n)?!0:l.clearNodes()).command(({state:l})=>jA(s,{...a,...r})(l,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},YZ=e=>({tr:r,dispatch:n})=>{if(n){const{doc:i}=r,o=Bc(e,0,i.content.size),s=Ht.create(i,o);r.setSelection(s)}return!0},HZ=(e,r)=>({tr:n,state:i,dispatch:o})=>{const{selection:s}=i;let a,l;return typeof r=="number"?(a=r,l=r):r&&"from"in r&&"to"in r?(a=r.from,l=r.to):(a=s.from,l=s.to),o&&n.doc.nodesBetween(a,l,(u,c)=>{u.isText||n.setNodeMarkup(c,void 0,{...u.attrs,dir:e})}),!0},PZ=e=>({tr:r,dispatch:n})=>{if(n){const{doc:i}=r,{from:o,to:s}=typeof e=="number"?{from:e,to:e}:e,a=Lt.atStart(i).from,l=Lt.atEnd(i).to,u=Bc(o,a,l),c=Bc(s,a,l),d=Lt.create(i,u,c);r.setSelection(d)}return!0},ZZ=e=>({state:r,dispatch:n})=>{const i=fi(e,r.schema);return PY(i)(r,n)};function I8(e,r){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const i=n.filter(o=>r?.includes(o.type.name));e.tr.ensureMarks(i)}}var $Z=({keepMarks:e=!0}={})=>({tr:r,state:n,dispatch:i,editor:o})=>{const{selection:s,doc:a}=r,{$from:l,$to:u}=s,c=o.extensionManager.attributes,d=Kg(c,l.node().type.name,l.node().attrs);if(s instanceof Ht&&s.node.isBlock)return!l.parentOffset||!d0(a,l.pos)?!1:(i&&(e&&I8(n,o.extensionManager.splittableMarks),r.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const h=u.parentOffset===u.parent.content.size,p=l.depth===0?void 0:AZ(l.node(-1).contentMatchAt(l.indexAfter(-1)));let f=h&&p?[{type:p,attrs:d}]:void 0,m=d0(r.doc,r.mapping.map(l.pos),1,f);if(!f&&!m&&d0(r.doc,r.mapping.map(l.pos),1,p?[{type:p}]:void 0)&&(m=!0,f=p?[{type:p,attrs:d}]:void 0),i){if(m&&(s instanceof Lt&&r.deleteSelection(),r.split(r.mapping.map(l.pos),1,f),p&&!h&&!l.parentOffset&&l.parent.type!==p)){const v=r.mapping.map(l.before()),w=r.doc.resolve(v);l.node(-1).canReplaceWith(w.index(),w.index()+1,p)&&r.setNodeMarkup(r.mapping.map(l.before()),p)}e&&I8(n,o.extensionManager.splittableMarks),r.scrollIntoView()}return m},UZ=(e,r={})=>({tr:n,state:i,dispatch:o,editor:s})=>{var a;const l=fi(e,i.schema),{$from:u,$to:c}=i.selection,d=i.selection.node;if(d&&d.isBlock||u.depth<2||!u.sameParent(c))return!1;const h=u.node(-1);if(h.type!==l)return!1;const p=s.extensionManager.attributes;if(u.parent.content.size===0&&u.node(-1).childCount===u.indexAfter(-1)){if(u.depth===2||u.node(-3).type!==l||u.index(-2)!==u.node(-2).childCount-1)return!1;if(o){let x=ze.empty;const k=u.index(-1)?1:u.index(-2)?2:3;for(let ie=u.depth-k;ie>=u.depth-3;ie-=1)x=ze.from(u.node(ie).copy(x));const R=u.indexAfter(-1)<u.node(-2).childCount?1:u.indexAfter(-2)<u.node(-3).childCount?2:3,O={...Kg(p,u.node().type.name,u.node().attrs),...r},P=((a=l.contentMatch.defaultType)==null?void 0:a.createAndFill(O))||void 0;x=x.append(ze.from(l.createAndFill(null,P)||void 0));const V=u.before(u.depth-(k-1));n.replace(V,u.after(-R),new ht(x,4-k,0));let W=-1;n.doc.nodesBetween(V,n.doc.content.size,(ie,ue)=>{if(W>-1)return!1;ie.isTextblock&&ie.content.size===0&&(W=ue+1)}),W>-1&&n.setSelection(Lt.near(n.doc.resolve(W))),n.scrollIntoView()}return!0}const f=c.pos===u.end()?h.contentMatchAt(0).defaultType:null,m={...Kg(p,h.type.name,h.attrs),...r},v={...Kg(p,u.node().type.name,u.node().attrs),...r};n.delete(u.pos,c.pos);const w=f?[{type:l,attrs:m},{type:f,attrs:v}]:[{type:l,attrs:m}];if(!d0(n.doc,u.pos,2))return!1;if(o){const{selection:x,storedMarks:k}=i,{splittableMarks:R}=s.extensionManager,O=k||x.$to.parentOffset&&x.$from.marks();if(n.split(u.pos,2,w).scrollIntoView(),!O||!o)return!0;const P=O.filter(V=>R.includes(V.type.name));n.ensureMarks(P)}return!0},j5=(e,r)=>{const n=b3(s=>s.type===r)(e.selection);if(!n)return!0;const i=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(i===void 0)return!0;const o=e.doc.nodeAt(i);return n.node.type===o?.type&&Qu(e.doc,n.pos)&&e.join(n.pos),!0},G5=(e,r)=>{const n=b3(s=>s.type===r)(e.selection);if(!n)return!0;const i=e.doc.resolve(n.start).after(n.depth);if(i===void 0)return!0;const o=e.doc.nodeAt(i);return n.node.type===o?.type&&Qu(e.doc,i)&&e.join(i),!0},VZ=(e,r,n,i={})=>({editor:o,tr:s,state:a,dispatch:l,chain:u,commands:c,can:d})=>{const{extensions:h,splittableMarks:p}=o.extensionManager,f=fi(e,a.schema),m=fi(r,a.schema),{selection:v,storedMarks:w}=a,{$from:x,$to:k}=v,R=x.blockRange(k),O=w||v.$to.parentOffset&&v.$from.marks();if(!R)return!1;const P=b3(V=>B8(V.type.name,h))(v);if(R.depth>=1&&P&&R.depth-P.depth<=1){if(P.node.type===f)return c.liftListItem(m);if(B8(P.node.type.name,h)&&f.validContent(P.node.content)&&l)return u().command(()=>(s.setNodeMarkup(P.pos,f),!0)).command(()=>j5(s,f)).command(()=>G5(s,f)).run()}return!n||!O||!l?u().command(()=>d().wrapInList(f,i)?!0:c.clearNodes()).wrapInList(f,i).command(()=>j5(s,f)).command(()=>G5(s,f)).run():u().command(()=>{const V=d().wrapInList(f,i),W=O.filter(ie=>p.includes(ie.type.name));return s.ensureMarks(W),V?!0:c.clearNodes()}).wrapInList(f,i).command(()=>j5(s,f)).command(()=>G5(s,f)).run()},jZ=(e,r={},n={})=>({state:i,commands:o})=>{const{extendEmptyMarkRange:s=!1}=n,a=x0(e,i.schema);return Y2(i,a,r)?o.unsetMark(a,{extendEmptyMarkRange:s}):o.setMark(a,r)},GZ=(e,r,n={})=>({state:i,commands:o})=>{const s=fi(e,i.schema),a=fi(r,i.schema),l=ta(i,s,n);let u;return i.selection.$anchor.sameParent(i.selection.$head)&&(u=i.selection.$anchor.parent.attrs),l?o.setNode(a,u):o.setNode(s,{...u,...n})},qZ=(e,r={})=>({state:n,commands:i})=>{const o=fi(e,n.schema);return ta(n,o,r)?i.lift(o):i.wrapIn(o,r)},WZ=()=>({state:e,dispatch:r})=>{const n=e.plugins;for(let i=0;i<n.length;i+=1){const o=n[i];let s;if(o.spec.isInputRules&&(s=o.getState(e))){if(r){const a=e.tr,l=s.transform;for(let u=l.steps.length-1;u>=0;u-=1)a.step(l.steps[u].invert(l.docs[u]));if(s.text){const u=a.doc.resolve(s.from).marks();a.replaceWith(s.from,s.to,e.schema.text(s.text,u))}else a.delete(s.from,s.to)}return!0}}return!1},KZ=()=>({tr:e,dispatch:r})=>{const{selection:n}=e,{empty:i,ranges:o}=n;return i||r&&o.forEach(s=>{e.removeMark(s.$from.pos,s.$to.pos)}),!0},QZ=(e,r={})=>({tr:n,state:i,dispatch:o})=>{var s;const{extendEmptyMarkRange:a=!1}=r,{selection:l}=n,u=x0(e,i.schema),{$from:c,empty:d,ranges:h}=l;if(!o)return!0;if(d&&a){let{from:p,to:f}=l;const m=(s=c.marks().find(w=>w.type===u))==null?void 0:s.attrs,v=y3(c,u,m);v&&(p=v.from,f=v.to),n.removeMark(p,f,u)}else h.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,u)});return n.removeStoredMark(u),!0},JZ=e=>({tr:r,state:n,dispatch:i})=>{const{selection:o}=n;let s,a;return typeof e=="number"?(s=e,a=e):e&&"from"in e&&"to"in e?(s=e.from,a=e.to):(s=o.from,a=o.to),i&&r.doc.nodesBetween(s,a,(l,u)=>{if(l.isText)return;const c={...l.attrs};delete c.dir,r.setNodeMarkup(u,void 0,c)}),!0},XZ=(e,r={})=>({tr:n,state:i,dispatch:o})=>{let s=null,a=null;const l=T3(typeof e=="string"?e:e.name,i.schema);if(!l)return!1;l==="node"&&(s=fi(e,i.schema)),l==="mark"&&(a=x0(e,i.schema));let u=!1;return n.selection.ranges.forEach(c=>{const d=c.$from.pos,h=c.$to.pos;let p,f,m,v;n.selection.empty?i.doc.nodesBetween(d,h,(w,x)=>{s&&s===w.type&&(u=!0,m=Math.max(x,d),v=Math.min(x+w.nodeSize,h),p=x,f=w)}):i.doc.nodesBetween(d,h,(w,x)=>{x<d&&s&&s===w.type&&(u=!0,m=Math.max(x,d),v=Math.min(x+w.nodeSize,h),p=x,f=w),x>=d&&x<=h&&(s&&s===w.type&&(u=!0,o&&n.setNodeMarkup(x,void 0,{...w.attrs,...r})),a&&w.marks.length&&w.marks.forEach(k=>{if(a===k.type&&(u=!0,o)){const R=Math.max(x,d),O=Math.min(x+w.nodeSize,h);n.addMark(R,O,a.create({...k.attrs,...r}))}}))}),f&&(p!==void 0&&o&&n.setNodeMarkup(p,void 0,{...f.attrs,...r}),a&&f.marks.length&&f.marks.forEach(w=>{a===w.type&&o&&n.addMark(m,v,a.create({...w.attrs,...r}))}))}),u},e$=(e,r={})=>({state:n,dispatch:i})=>{const o=fi(e,n.schema);return RY(o,r)(n,i)},t$=(e,r={})=>({state:n,dispatch:i})=>{const o=fi(e,n.schema);return BY(o,r)(n,i)},r$=class{constructor(){this.callbacks={}}on(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),this}emit(e,...r){const n=this.callbacks[e];return n&&n.forEach(i=>i.apply(this,r)),this}off(e,r){const n=this.callbacks[e];return n&&(r?this.callbacks[e]=n.filter(i=>i!==r):delete this.callbacks[e]),this}once(e,r){const n=(...i)=>{this.off(e,n),r.apply(this,i)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},Xu=class{constructor(e){var r;this.find=e.find,this.handler=e.handler,this.undoable=(r=e.undoable)!=null?r:!0}},n$=(e,r)=>{if(iv(r))return r.exec(e);const n=r(e);if(!n)return null;const i=[n.text];return i.index=n.index,i.input=e,i.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(n.replaceWith)),i};function Wm(e){var r;const{editor:n,from:i,to:o,text:s,rules:a,plugin:l}=e,{view:u}=n;if(u.composing)return!1;const c=u.state.doc.resolve(i);if(c.parent.type.spec.code||(r=c.nodeBefore||c.nodeAfter)!=null&&r.marks.find(p=>p.type.spec.code))return!1;let d=!1;const h=FZ(c)+s;return a.forEach(p=>{if(d)return;const f=n$(h,p.find);if(!f)return;const m=u.state.tr,v=m3({state:u.state,transaction:m}),w={from:i-(f[0].length-s.length),to:o},{commands:x,chain:k,can:R}=new g3({editor:n,state:v});p.handler({state:v,range:w,match:f,commands:x,chain:k,can:R})===null||!m.steps.length||(p.undoable&&m.setMeta(l,{transform:m,from:i,to:o,text:s}),u.dispatch(m),d=!0)}),d}function i$(e){const{editor:r,rules:n}=e,i=new lr({state:{init(){return null},apply(o,s,a){const l=o.getMeta(i);if(l)return l;const u=o.getMeta("applyInputRules");return u&&setTimeout(()=>{let{text:c}=u;typeof c=="string"?c=c:c=lv(ze.from(c),a.schema);const{from:d}=u,h=d+c.length;Wm({editor:r,from:d,to:h,text:c,rules:n,plugin:i})}),o.selectionSet||o.docChanged?null:s}},props:{handleTextInput(o,s,a,l){return Wm({editor:r,from:s,to:a,text:l,rules:n,plugin:i})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:s}=o.state.selection;s&&Wm({editor:r,from:s.pos,to:s.pos,text:"",rules:n,plugin:i})}),!1)},handleKeyDown(o,s){if(s.key!=="Enter")return!1;const{$cursor:a}=o.state.selection;return a?Wm({editor:r,from:a.pos,to:a.pos,text:` `,rules:n,plugin:i}):!1}},isInputRules:!0});return i}function o$(e){return Object.prototype.toString.call(e).slice(8,-1)}function Km(e){return o$(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function o_(e,r){const n={...e};return Km(e)&&Km(r)&&Object.keys(r).forEach(i=>{Km(r[i])&&Km(e[i])?n[i]=o_(e[i],r[i]):n[i]=r[i]}),n}var hv=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...Xr(zt(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...Xr(zt(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){const r=this.extend({...this.config,addOptions:()=>o_(this.options,e)});return r.name=this.name,r.parent=this.parent,r}extend(e={}){const r=new this.constructor({...this.config,...e});return r.parent=this,this.child=r,r.name="name"in e?e.name:r.parent.name,r}},ec=class s_ extends hv{constructor(){super(...arguments),this.type="mark"}static create(r={}){const n=typeof r=="function"?r():r;return new s_(n)}static handleExit({editor:r,mark:n}){const{tr:i}=r.state,o=r.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!s.find(l=>l?.type.name===n.name))return!1;const a=s.find(l=>l?.type.name===n.name);return a&&i.removeStoredMark(a),i.insertText(" ",o.pos),r.view.dispatch(i),!0}return!1}configure(r){return super.configure(r)}extend(r){const n=typeof r=="function"?r():r;return super.extend(n)}};function s$(e){return typeof e=="number"}var a$=class{constructor(e){this.find=e.find,this.handler=e.handler}},l$=(e,r,n)=>{if(iv(r))return[...e.matchAll(r)];const i=r(e,n);return i?i.map(o=>{const s=[o.text];return s.index=o.index,s.input=e,s.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),s.push(o.replaceWith)),s}):[]};function u$(e){const{editor:r,state:n,from:i,to:o,rule:s,pasteEvent:a,dropEvent:l}=e,{commands:u,chain:c,can:d}=new g3({editor:r,state:n}),h=[];return n.doc.nodesBetween(i,o,(p,f)=>{var m,v,w,x,k;if((v=(m=p.type)==null?void 0:m.spec)!=null&&v.code||!(p.isText||p.isTextblock||p.isInline))return;const R=(k=(x=(w=p.content)==null?void 0:w.size)!=null?x:p.nodeSize)!=null?k:0,O=Math.max(i,f),P=Math.min(o,f+R);if(O>=P)return;const V=p.isText?p.text||"":p.textBetween(O-f,P-f,void 0,"");l$(V,s.find,a).forEach(W=>{if(W.index===void 0)return;const ie=O+W.index+1,ue=ie+W[0].length,I={from:n.tr.mapping.map(ie),to:n.tr.mapping.map(ue)},ne=s.handler({state:n,range:I,match:W,commands:u,chain:c,can:d,pasteEvent:a,dropEvent:l});h.push(ne)})}),h.every(p=>p!==null)}var Qm=null,c$=e=>{var r;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(r=n.clipboardData)==null||r.setData("text/html",e),n};function d$(e){const{editor:r,rules:n}=e;let i=null,o=!1,s=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const u=({state:c,from:d,to:h,rule:p,pasteEvt:f})=>{const m=c.tr,v=m3({state:c,transaction:m});if(!(!u$({editor:r,state:v,from:Math.max(d-1,0),to:h.b-1,rule:p,pasteEvent:f,dropEvent:l})||!m.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(c=>new lr({view(d){const h=f=>{var m;i=(m=d.dom.parentElement)!=null&&m.contains(f.target)?d.dom.parentElement:null,i&&(Qm=r)},p=()=>{Qm&&(Qm=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",p),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",p)}}},props:{handleDOMEvents:{drop:(d,h)=>{if(s=i===d.dom.parentElement,l=h,!s){const p=Qm;p?.isEditable&&setTimeout(()=>{const f=p.state.selection;f&&p.commands.deleteRange({from:f.from,to:f.to})},10)}return!1},paste:(d,h)=>{var p;const f=(p=h.clipboardData)==null?void 0:p.getData("text/html");return a=h,o=!!f?.includes("data-pm-slice"),!1}}},appendTransaction:(d,h,p)=>{const f=d[0],m=f.getMeta("uiEvent")==="paste"&&!o,v=f.getMeta("uiEvent")==="drop"&&!s,w=f.getMeta("applyPasteRules"),x=!!w;if(!m&&!v&&!x)return;if(x){let{text:O}=w;typeof O=="string"?O=O:O=lv(ze.from(O),p.schema);const{from:P}=w,V=P+O.length,W=c$(O);return u({rule:c,state:p,from:P,to:{b:V},pasteEvt:W})}const k=h.doc.content.findDiffStart(p.doc.content),R=h.doc.content.findDiffEnd(p.doc.content);if(!(!s$(k)||!R||k===R.b))return u({rule:c,state:p,from:k,to:R,pasteEvt:a})}}))}var Qg=class{constructor(e,r){this.splittableMarks=[],this.editor=r,this.baseExtensions=e,this.extensions=QC(e),this.schema=SZ(this.extensions,r),this.setupExtensions()}get commands(){return this.extensions.reduce((e,r)=>{const n={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:this.editor,type:qm(r.name,this.schema)},i=zt(r,"addCommands",n);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this;return z2([...this.extensions].reverse()).flatMap(r=>{const n={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:qm(r.name,this.schema)},i=[],o=zt(r,"addKeyboardShortcuts",n);let s={};if(r.type==="mark"&&zt(r,"exitable",n)&&(s.ArrowRight=()=>ec.handleExit({editor:e,mark:r})),o){const d=Object.fromEntries(Object.entries(o()).map(([h,p])=>[h,()=>p({editor:e})]));s={...s,...d}}const a=_P(s);i.push(a);const l=zt(r,"addInputRules",n);if(R8(r,e.options.enableInputRules)&&l){const d=l();if(d&&d.length){const h=i$({editor:e,rules:d}),p=Array.isArray(h)?h:[h];i.push(...p)}}const u=zt(r,"addPasteRules",n);if(R8(r,e.options.enablePasteRules)&&u){const d=u();if(d&&d.length){const h=d$({editor:e,rules:d});i.push(...h)}}const c=zt(r,"addProseMirrorPlugins",n);if(c){const d=c();i.push(...d)}return i})}get attributes(){return KC(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:r}=Fh(this.extensions);return Object.fromEntries(r.filter(n=>!!zt(n,"addNodeView")).map(n=>{const i=this.attributes.filter(u=>u.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:fi(n.name,this.schema)},s=zt(n,"addNodeView",o);if(!s)return[];const a=s();if(!a)return[];const l=(u,c,d,h,p)=>{const f=cf(u,i);return a({node:u,view:c,getPos:d,decorations:h,innerDecorations:p,editor:e,extension:n,HTMLAttributes:f})};return[n.name,l]}))}dispatchTransaction(e){const{editor:r}=this;return z2([...this.extensions].reverse()).reduceRight((n,i)=>{const o={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:r,type:qm(i.name,this.schema)},s=zt(i,"dispatchTransaction",o);return s?a=>{s.call(o,{transaction:a,next:n})}:n},e)}get markViews(){const{editor:e}=this,{markExtensions:r}=Fh(this.extensions);return Object.fromEntries(r.filter(n=>!!zt(n,"addMarkView")).map(n=>{const i=this.attributes.filter(l=>l.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:x0(n.name,this.schema)},s=zt(n,"addMarkView",o);if(!s)return[];const a=(l,u,c)=>{const d=cf(l,i);return s()({mark:l,view:u,inline:c,editor:e,extension:n,HTMLAttributes:d,updateAttributes:h=>{D$(l,e,h)}})};return[n.name,a]}))}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(r=>[r.name,r.storage])),e.forEach(r=>{var n;const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:this.editor,type:qm(r.name,this.schema)};r.type==="mark"&&((n=Xr(zt(r,"keepOnSplit",i)))==null||n)&&this.splittableMarks.push(r.name);const o=zt(r,"onBeforeCreate",i),s=zt(r,"onCreate",i),a=zt(r,"onUpdate",i),l=zt(r,"onSelectionUpdate",i),u=zt(r,"onTransaction",i),c=zt(r,"onFocus",i),d=zt(r,"onBlur",i),h=zt(r,"onDestroy",i);o&&this.editor.on("beforeCreate",o),s&&this.editor.on("create",s),a&&this.editor.on("update",a),l&&this.editor.on("selectionUpdate",l),u&&this.editor.on("transaction",u),c&&this.editor.on("focus",c),d&&this.editor.on("blur",d),h&&this.editor.on("destroy",h)})}};Qg.resolve=QC,Qg.sort=z2,Qg.flatten=av;var h$={};nv(h$,{ClipboardTextSerializer:()=>l_,Commands:()=>u_,Delete:()=>c_,Drop:()=>d_,Editable:()=>h_,FocusEvents:()=>f_,Keymap:()=>m_,Paste:()=>g_,Tabindex:()=>y_,TextDirection:()=>T_,focusEventsPluginKey:()=>p_});var xr=class a_ extends hv{constructor(){super(...arguments),this.type="extension"}static create(r={}){const n=typeof r=="function"?r():r;return new a_(n)}configure(r){return super.configure(r)}extend(r){const n=typeof r=="function"?r():r;return super.extend(n)}},l_=xr.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new lr({key:new hr("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:r,schema:n}=e,{doc:i,selection:o}=r,{ranges:s}=o,a=Math.min(...s.map(c=>c.$from.pos)),l=Math.max(...s.map(c=>c.$to.pos)),u=XC(n);return JC(i,{from:a,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:u})}}})]}}),u_=xr.create({name:"commands",addCommands(){return{...PC}}}),c_=xr.create({name:"delete",onUpdate({transaction:e,appendedTransactions:r}){var n,i,o;const s=()=>{var a,l,u,c;if((c=(u=(l=(a=this.editor.options.coreExtensionOptions)==null?void 0:a.delete)==null?void 0:l.filterTransaction)==null?void 0:u.call(l,e))!=null?c:e.getMeta("y-sync$"))return;const d=sv(e.before,[e,...r]);uv(d).forEach(p=>{d.mapping.mapResult(p.oldRange.from).deletedAfter&&d.mapping.mapResult(p.oldRange.to).deletedBefore&&d.before.nodesBetween(p.oldRange.from,p.oldRange.to,(f,m)=>{const v=m+f.nodeSize-2,w=p.oldRange.from<=m&&v<=p.oldRange.to;this.editor.emit("delete",{type:"node",node:f,from:m,to:v,newFrom:d.mapping.map(m),newTo:d.mapping.map(v),deletedRange:p.oldRange,newRange:p.newRange,partial:!w,editor:this.editor,transaction:e,combinedTransform:d})})});const h=d.mapping;d.steps.forEach((p,f)=>{var m,v;if(p instanceof xa){const w=h.slice(f).map(p.from,-1),x=h.slice(f).map(p.to),k=h.invert().map(w,-1),R=h.invert().map(x),O=(m=d.doc.nodeAt(w-1))==null?void 0:m.marks.some(V=>V.eq(p.mark)),P=(v=d.doc.nodeAt(x))==null?void 0:v.marks.some(V=>V.eq(p.mark));this.editor.emit("delete",{type:"mark",mark:p.mark,from:p.from,to:p.to,deletedRange:{from:k,to:R},newRange:{from:w,to:x},partial:!!(P||O),editor:this.editor,transaction:e,combinedTransform:d})}})};(o=(i=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:i.async)==null||o?setTimeout(s,0):s()}}),d_=xr.create({name:"drop",addProseMirrorPlugins(){return[new lr({key:new hr("tiptapDrop"),props:{handleDrop:(e,r,n,i)=>{this.editor.emit("drop",{editor:this.editor,event:r,slice:n,moved:i})}}})]}}),h_=xr.create({name:"editable",addProseMirrorPlugins(){return[new lr({key:new hr("editable"),props:{editable:()=>this.editor.options.editable}})]}}),p_=new hr("focusEvents"),f_=xr.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new lr({key:p_,props:{handleDOMEvents:{focus:(r,n)=>{e.isFocused=!0;const i=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return r.dispatch(i),!1},blur:(r,n)=>{e.isFocused=!1;const i=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return r.dispatch(i),!1}}}})]}}),m_=xr.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:c,$anchor:d}=l,{pos:h,parent:p}=d,f=d.parent.isTextblock&&h>0?a.doc.resolve(h-1):d,m=f.parent.type.spec.isolating,v=d.pos-d.parentOffset,w=m&&f.parent.childCount===1?v===d.pos:rr.atStart(u).from===h;return!c||!p.type.isTextblock||p.textContent.length||!w||w&&d.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),r=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:r,"Mod-Delete":r,"Mod-a":()=>this.editor.commands.selectAll()},i={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":r,"Ctrl-Alt-Backspace":r,"Alt-Delete":r,"Alt-d":r,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return lf()||jC()?o:i},addProseMirrorPlugins(){return[new lr({key:new hr("clearDocument"),appendTransaction:(e,r,n)=>{if(e.some(f=>f.getMeta("composition")))return;const i=e.some(f=>f.docChanged)&&!r.doc.eq(n.doc),o=e.some(f=>f.getMeta("preventClearDocument"));if(!i||o)return;const{empty:s,from:a,to:l}=r.selection,u=rr.atStart(r.doc).from,c=rr.atEnd(r.doc).to;if(s||!(a===u&&l===c)||!v3(n.doc))return;const d=n.tr,h=m3({state:n,transaction:d}),{commands:p}=new g3({editor:this.editor,state:h});if(p.clearNodes(),!!d.steps.length)return d}})]}}),g_=xr.create({name:"paste",addProseMirrorPlugins(){return[new lr({key:new hr("tiptapPaste"),props:{handlePaste:(e,r,n)=>{this.editor.emit("paste",{editor:this.editor,event:r,slice:n})}}})]}}),y_=xr.create({name:"tabindex",addProseMirrorPlugins(){return[new lr({key:new hr("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),T_=xr.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=Fh(this.extensions);return[{types:e.filter(r=>r.name!=="text").map(r=>r.name),attributes:{dir:{default:this.options.direction,parseHTML:r=>{const n=r.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:r=>r.dir?{dir:r.dir}:{}}}}]},addProseMirrorPlugins(){return[new lr({key:new hr("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),p$=class Qd{constructor(r,n,i=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=i,this.resolvedPos=r,this.editor=n,this.currentNode=o}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var r;return(r=this.actualDepth)!=null?r:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(r){let n=this.from,i=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,i=this.to-1}this.editor.commands.insertContentAt({from:n,to:i},r)}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 r=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(r);return new Qd(n,this.editor)}get before(){let r=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return r.depth!==this.depth&&(r=this.resolvedPos.doc.resolve(this.from-3)),new Qd(r,this.editor)}get after(){let r=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return r.depth!==this.depth&&(r=this.resolvedPos.doc.resolve(this.to+3)),new Qd(r,this.editor)}get children(){const r=[];return this.node.content.forEach((n,i)=>{const o=n.isBlock&&!n.isTextblock,s=n.isAtom&&!n.isText,a=this.pos+i+(s?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!o&&l.depth<=this.depth)return;const u=new Qd(l,this.editor,o,o?n:null);o&&(u.actualDepth=this.depth+1),r.push(new Qd(l,this.editor,o,o?n:null))}),r}get firstChild(){return this.children[0]||null}get lastChild(){const r=this.children;return r[r.length-1]||null}closest(r,n={}){let i=null,o=this.parent;for(;o&&!i;){if(o.node.type.name===r)if(Object.keys(n).length>0){const s=o.node.attrs,a=Object.keys(n);for(let l=0;l<a.length;l+=1){const u=a[l];if(s[u]!==n[u])break}}else i=o;o=o.parent}return i}querySelector(r,n={}){return this.querySelectorAll(r,n,!0)[0]||null}querySelectorAll(r,n={},i=!1){let o=[];if(!this.children||this.children.length===0)return o;const s=Object.keys(n);return this.children.forEach(a=>{i&&o.length>0||(a.node.type.name===r&&s.every(l=>n[l]===a.node.attrs[l])&&o.push(a),!(i&&o.length>0)&&(o=o.concat(a.querySelectorAll(r,n,i))))}),o}setAttribute(r){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...r}),this.editor.view.dispatch(n)}},f$=`.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; }`;function m$(e,r,n){const i=document.querySelector("style[data-tiptap-style]");if(i!==null)return i;const o=document.createElement("style");return r&&o.setAttribute("nonce",r),o.setAttribute("data-tiptap-style",""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}var w9e=class extends r${constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:i})=>{throw i},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:i_,createMappablePosition:RZ},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),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:i,slice:o,moved:s})=>this.options.onDrop(i,o,s)),this.on("paste",({event:i,slice:o})=>this.options.onPaste(i,o)),this.on("delete",this.options.onDelete);const r=this.createDoc(),n=UC(r,this.options.autofocus);this.editorState=sh.create({doc:r,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}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&&typeof document<"u"&&(this.css=m$(f$,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,r=!0){this.setOptions({editable:e}),r&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,r)=>{if(this.editorView)return this.editorView[r];if(r==="state")return this.editorState;if(r in e)return Reflect.get(e,r);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${r}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,r){const n=WC(r)?r(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:n});return this.view.updateState(i),i}unregisterPlugin(e){if(this.isDestroyed)return;const r=this.state.plugins;let n=r;if([].concat(e).forEach(o=>{const s=typeof o=="string"?`${o}$`:o.key;n=n.filter(a=>!a.key.startsWith(s))}),r.length===n.length)return;const i=this.state.reconfigure({plugins:n});return this.view.updateState(i),i}createExtensionManager(){var e,r;const n=[...this.options.enableCoreExtensions?[h_,l_.configure({blockSeparator:(r=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:r.blockSeparator}),u_,f_,m_,y_,d_,g_,c_,T_.configure({direction:this.options.textDirection})].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new Qg(n,this)}createCommandManager(){this.commandManager=new g3({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=rT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(r){if(!(r instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(r.message))throw r;this.emit("contentError",{editor:this,error:r,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),e=rT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:r,enableExtensionDispatchTransaction:n}=this.options,i=r.dispatchTransaction||this.dispatchTransaction.bind(this),o=n?this.extensionManager.dispatchTransaction(i):i;this.editorView=new HC(e,{...r,attributes:{role:"textbox",...r?.attributes},dispatchTransaction:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const r=this.capturedTransaction;return this.capturedTransaction=null,r}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(c=>{var d;return(d=this.capturedTransaction)==null?void 0:d.step(c)});return}const{state:r,transactions:n}=this.state.applyTransaction(e),i=!this.state.selection.eq(r.selection),o=n.includes(e),s=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:r}),!o)return;this.view.updateState(r),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),i&&this.emit("selectionUpdate",{editor:this,transaction:e});const a=n.findLast(c=>c.getMeta("focus")||c.getMeta("blur")),l=a?.getMeta("focus"),u=a?.getMeta("blur");l&&this.emit("focus",{editor:this,event:l.event,transaction:a}),u&&this.emit("blur",{editor:this,event:u.event,transaction:a}),!(e.getMeta("preventUpdate")||!n.some(c=>c.docChanged)||s.doc.eq(r.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return e_(this.state,e)}isActive(e,r){const n=typeof e=="string"?e:null,i=typeof e=="string"?r:e;return t_(this.state,n,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return lv(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:r=` `,textSerializers:n={}}=e||{};return xZ(this.state.doc,{blockSeparator:r,textSerializers:{...XC(this.schema),...n}})}get isEmpty(){return v3(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,r;return(r=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?r:!0}$node(e,r){var n;return((n=this.$doc)==null?void 0:n.querySelector(e,r))||null}$nodes(e,r){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(e,r))||null}$pos(e){const r=this.state.doc.resolve(e);return new p$(r,this)}get $doc(){return this.$pos(0)}};function g0(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{const o=Xr(e.getAttributes,void 0,i);if(o===!1||o===null)return null;const{tr:s}=r,a=i[i.length-1],l=i[0];if(a){const u=l.search(/\S/),c=n.from+l.indexOf(a),d=c+a.length;if(cv(n.from,n.to,r.doc).filter(p=>p.mark.type.excluded.find(f=>f===e.type&&f!==p.mark.type)).filter(p=>p.to>c).length)return null;d<n.to&&s.delete(d,n.to),c>n.from&&s.delete(n.from+u,c);const h=n.from+u+a.length;s.addMark(n.from+u,h,e.type.create(o||{})),s.removeStoredMark(e.type)}},undoable:e.undoable})}function b_(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{const o=Xr(e.getAttributes,void 0,i)||{},{tr:s}=r,a=n.from;let l=n.to;const u=e.type.create(o);if(i[1]){const c=i[0].lastIndexOf(i[1]);let d=a+c;d>l?d=l:l=d+i[1].length;const h=i[0][i[0].length-1];s.insertText(h,a+i[0].length-1),s.replaceWith(d,l,u)}else if(i[0]){const c=e.type.isInline?a:a-1;s.insert(c,e.type.create(o)).delete(s.mapping.map(a),s.mapping.map(l))}s.scrollIntoView()},undoable:e.undoable})}function iT(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{const o=r.doc.resolve(n.from),s=Xr(e.getAttributes,void 0,i)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;r.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,s)},undoable:e.undoable})}function Vr(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{let o=e.replace,s=n.from;const a=n.to;if(i[1]){const l=i[0].lastIndexOf(i[1]);o+=i[0].slice(l+i[1].length),s+=l;const u=s-a;u>0&&(o=i[0].slice(l-u,l)+o,s=a)}r.tr.insertText(o,s,a)},undoable:e.undoable})}function Hu(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i,chain:o})=>{const s=Xr(e.getAttributes,void 0,i)||{},a=r.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),u=l&&Pb(l,e.type,s);if(!u)return null;if(a.wrap(l,u),e.keepMarks&&e.editor){const{selection:d,storedMarks:h}=r,{splittableMarks:p}=e.editor.extensionManager,f=h||d.$to.parentOffset&&d.$from.marks();if(f){const m=f.filter(v=>p.includes(v.type.name));a.ensureMarks(m)}}if(e.keepAttributes){const d=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(d,s).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Qu(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(i,c))&&a.join(n.from-1)},undoable:e.undoable})}var g$=e=>"touches"in e,y$=class{constructor(e){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=l=>{if(!this.isResizing||!this.activeHandle)return;const u=l.clientX-this.startX,c=l.clientY-this.startY;this.handleResize(u,c)},this.handleTouchMove=l=>{if(!this.isResizing||!this.activeHandle)return;const u=l.touches[0];if(!u)return;const c=u.clientX-this.startX,d=u.clientY-this.startY;this.handleResize(c,d)},this.handleMouseUp=()=>{if(!this.isResizing)return;const l=this.element.offsetWidth,u=this.element.offsetHeight;this.onCommit(l,u),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=!1)};var r,n,i,o,s,a;this.node=e.node,this.editor=e.editor,this.element=e.element,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,(r=e.options)!=null&&r.min&&(this.minSize={...this.minSize,...e.options.min}),(n=e.options)!=null&&n.max&&(this.maxSize=e.options.max),(i=e?.options)!=null&&i.directions&&(this.directions=e.options.directions),(o=e.options)!=null&&o.preserveAspectRatio&&(this.preserveAspectRatio=e.options.preserveAspectRatio),(s=e.options)!=null&&s.className&&(this.classNames={container:e.options.className.container||"",wrapper:e.options.className.wrapper||"",handle:e.options.className.handle||"",resizing:e.options.className.resizing||""}),(a=e.options)!=null&&a.createCustomHandle&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){return this.contentElement}handleEditorUpdate(){const e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(e,r,n){return e.type!==this.node.type?!1:(this.node=e,this.onUpdate?this.onUpdate(e,r,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const e=document.createElement("div");return e.dataset.resizeContainer="",e.dataset.node=this.node.type.name,e.style.display="flex",this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){const e=document.createElement("div");return e.style.position="relative",e.style.display="block",e.dataset.resizeWrapper="",this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){const r=document.createElement("div");return r.dataset.resizeHandle=e,r.style.position="absolute",this.classNames.handle&&(r.className=this.classNames.handle),r}positionHandle(e,r){const n=r.includes("top"),i=r.includes("bottom"),o=r.includes("left"),s=r.includes("right");n&&(e.style.top="0"),i&&(e.style.bottom="0"),o&&(e.style.left="0"),s&&(e.style.right="0"),(r==="top"||r==="bottom")&&(e.style.left="0",e.style.right="0"),(r==="left"||r==="right")&&(e.style.top="0",e.style.bottom="0")}attachHandles(){this.directions.forEach(e=>{let r;this.createCustomHandle?r=this.createCustomHandle(e):r=this.createHandle(e),r instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),r=this.createHandle(e)),this.createCustomHandle||this.positionHandle(r,e),r.addEventListener("mousedown",n=>this.handleResizeStart(n,e)),r.addEventListener("touchstart",n=>this.handleResizeStart(n,e)),this.handleMap.set(e,r),this.wrapper.appendChild(r)})}removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){const e=this.node.attrs.width,r=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,r?(this.element.style.height=`${r}px`,this.initialHeight=r):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,r){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=r,g$(e)?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(e,r){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:i,height:o}=this.calculateNewDimensions(this.activeHandle,e,r),s=this.applyConstraints(i,o,n);this.element.style.width=`${s.width}px`,this.element.style.height=`${s.height}px`,this.onResize&&this.onResize(s.width,s.height)}calculateNewDimensions(e,r,n){let i=this.startWidth,o=this.startHeight;const s=e.includes("right"),a=e.includes("left"),l=e.includes("bottom"),u=e.includes("top");return s?i=this.startWidth+r:a&&(i=this.startWidth-r),l?o=this.startHeight+n:u&&(o=this.startHeight-n),(e==="right"||e==="left")&&(i=this.startWidth+(s?r:-r)),(e==="top"||e==="bottom")&&(o=this.startHeight+(l?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(i,o,e):{width:i,height:o}}applyConstraints(e,r,n){var i,o,s,a;if(!n){let c=Math.max(this.minSize.width,e),d=Math.max(this.minSize.height,r);return(i=this.maxSize)!=null&&i.width&&(c=Math.min(this.maxSize.width,c)),(o=this.maxSize)!=null&&o.height&&(d=Math.min(this.maxSize.height,d)),{width:c,height:d}}let l=e,u=r;return l<this.minSize.width&&(l=this.minSize.width,u=l/this.aspectRatio),u<this.minSize.height&&(u=this.minSize.height,l=u*this.aspectRatio),(s=this.maxSize)!=null&&s.width&&l>this.maxSize.width&&(l=this.maxSize.width,u=l/this.aspectRatio),(a=this.maxSize)!=null&&a.height&&u>this.maxSize.height&&(u=this.maxSize.height,l=u*this.aspectRatio),{width:l,height:u}}applyAspectRatio(e,r,n){return n==="left"||n==="right"?{width:e,height:e/this.aspectRatio}:n==="top"||n==="bottom"?{width:r*this.aspectRatio,height:r}:{width:e,height:e/this.aspectRatio}}};function T$(e,r){const{selection:n}=e,{$from:i}=n;if(n instanceof Ht){const s=i.index();return i.parent.canReplaceWith(s,s+1,r)}let o=i.depth;for(;o>=0;){const s=i.index(o);if(i.node(o).contentMatchAt(s).matchType(r))return!0;o-=1}return!1}function b$(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var v$={};nv(v$,{createAtomBlockMarkdownSpec:()=>A$,createBlockMarkdownSpec:()=>E$,createInlineMarkdownSpec:()=>v_,parseAttributes:()=>pv,parseIndentedBlocks:()=>oT,renderNestedMarkdownContent:()=>mv,serializeAttributes:()=>fv});function pv(e){if(!e?.trim())return{};const r={},n=[],i=e.replace(/["']([^"']*)["']/g,u=>(n.push(u),`__QUOTED_${n.length-1}__`)),o=i.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(o){const u=o.map(c=>c.trim().slice(1));r.class=u.join(" ")}const s=i.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);s&&(r.id=s[1]);const a=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(i.matchAll(a)).forEach(([,u,c])=>{var d;const h=parseInt(((d=c.match(/__QUOTED_(\d+)__/))==null?void 0:d[1])||"0",10),p=n[h];p&&(r[u]=p.slice(1,-1))});const l=i.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return l&&l.split(/\s+/).filter(Boolean).forEach(u=>{u.match(/^[a-zA-Z][\w-]*$/)&&(r[u]=!0)}),r}function fv(e){if(!e||Object.keys(e).length===0)return"";const r=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(n=>r.push(`.${n}`)),e.id&&r.push(`#${e.id}`),Object.entries(e).forEach(([n,i])=>{n==="class"||n==="id"||(i===!0?r.push(n):i!==!1&&i!=null&&r.push(`${n}="${String(i)}"`))}),r.join(" ")}function A$(e){const{nodeName:r,name:n,parseAttributes:i=pv,serializeAttributes:o=fv,defaultAttributes:s={},requiredAttributes:a=[],allowedAttributes:l}=e,u=n||r,c=d=>{if(!l)return d;const h={};return l.forEach(p=>{p in d&&(h[p]=d[p])}),h};return{parseMarkdown:(d,h)=>{const p={...s,...d.attributes};return h.createNode(r,p,[])},markdownTokenizer:{name:r,level:"block",start(d){var h;const p=new RegExp(`^:::${u}(?:\\s|$)`,"m"),f=(h=d.match(p))==null?void 0:h.index;return f!==void 0?f:-1},tokenize(d,h,p){const f=new RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),m=d.match(f);if(!m)return;const v=m[1]||"",w=i(v);if(!a.find(x=>!(x in w)))return{type:r,raw:m[0],attributes:w}}},renderMarkdown:d=>{const h=c(d.attrs||{}),p=o(h),f=p?` {${p}}`:"";return`:::${u}${f} :::`}}}function E$(e){const{nodeName:r,name:n,getContent:i,parseAttributes:o=pv,serializeAttributes:s=fv,defaultAttributes:a={},content:l="block",allowedAttributes:u}=e,c=n||r,d=h=>{if(!u)return h;const p={};return u.forEach(f=>{f in h&&(p[f]=h[f])}),p};return{parseMarkdown:(h,p)=>{let f;if(i){const v=i(h);f=typeof v=="string"?[{type:"text",text:v}]:v}else l==="block"?f=p.parseChildren(h.tokens||[]):f=p.parseInline(h.tokens||[]);const m={...a,...h.attributes};return p.createNode(r,m,f)},markdownTokenizer:{name:r,level:"block",start(h){var p;const f=new RegExp(`^:::${c}`,"m"),m=(p=h.match(f))==null?void 0:p.index;return m!==void 0?m:-1},tokenize(h,p,f){var m;const v=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),w=h.match(v);if(!w)return;const[x,k=""]=w,R=o(k);let O=1;const P=x.length;let V="";const W=/^:::([\w-]*)(\s.*)?/gm,ie=h.slice(P);for(W.lastIndex=0;;){const ue=W.exec(ie);if(ue===null)break;const I=ue.index,ne=ue[1];if(!((m=ue[2])!=null&&m.endsWith(":::"))){if(ne)O+=1;else if(O-=1,O===0){const he=ie.slice(0,I);V=he.trim();const re=h.slice(0,P+I+ue[0].length);let Ee=[];if(V)if(l==="block")for(Ee=f.blockTokens(he),Ee.forEach(ge=>{ge.text&&(!ge.tokens||ge.tokens.length===0)&&(ge.tokens=f.inlineTokens(ge.text))});Ee.length>0;){const ge=Ee[Ee.length-1];if(ge.type==="paragraph"&&(!ge.text||ge.text.trim()===""))Ee.pop();else break}else Ee=f.inlineTokens(V);return{type:r,raw:re,attributes:R,content:V,tokens:Ee}}}}}},renderMarkdown:(h,p)=>{const f=d(h.attrs||{}),m=s(f),v=m?` {${m}}`:"",w=p.renderChildren(h.content||[],` `);return`:::${c}${v} ${w} :::`}}}function w$(e){if(!e.trim())return{};const r={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let i=n.exec(e);for(;i!==null;){const[,o,s,a]=i;r[o]=s||a,i=n.exec(e)}return r}function S$(e){return Object.entries(e).filter(([,r])=>r!=null).map(([r,n])=>`${r}="${n}"`).join(" ")}function v_(e){const{nodeName:r,name:n,getContent:i,parseAttributes:o=w$,serializeAttributes:s=S$,defaultAttributes:a={},selfClosing:l=!1,allowedAttributes:u}=e,c=n||r,d=p=>{if(!u)return p;const f={};return u.forEach(m=>{const v=typeof m=="string"?m:m.name,w=typeof m=="string"?void 0:m.skipIfDefault;if(v in p){const x=p[v];if(w!==void 0&&x===w)return;f[v]=x}}),f},h=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(p,f)=>{const m={...a,...p.attributes};if(l)return f.createNode(r,m);const v=i?i(p):p.content||"";return v?f.createNode(r,m,[f.createTextNode(v)]):f.createNode(r,m,[])},markdownTokenizer:{name:r,level:"inline",start(p){const f=l?new RegExp(`\\[${h}\\s*[^\\]]*\\]`):new RegExp(`\\[${h}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${h}\\]`),m=p.match(f),v=m?.index;return v!==void 0?v:-1},tokenize(p,f,m){const v=l?new RegExp(`^\\[${h}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${h}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${h}\\]`),w=p.match(v);if(!w)return;let x="",k="";if(l){const[,O]=w;k=O}else{const[,O,P]=w;k=O,x=P||""}const R=o(k.trim());return{type:r,raw:w[0],content:x.trim(),attributes:R}}},renderMarkdown:p=>{let f="";i?f=i(p):p.content&&p.content.length>0&&(f=p.content.filter(x=>x.type==="text").map(x=>x.text).join(""));const m=d(p.attrs||{}),v=s(m),w=v?` ${v}`:"";return l?`[${c}${w}]`:`[${c}${w}]${f}[/${c}]`}}}function oT(e,r,n){var i,o,s,a;const l=e.split(` `),u=[];let c="",d=0;const h=r.baseIndentSize||2;for(;d<l.length;){const p=l[d],f=p.match(r.itemPattern);if(!f){if(u.length>0)break;if(p.trim()===""){d+=1,c=`${c}${p} `;continue}else return}const m=r.extractItemData(f),{indentLevel:v,mainContent:w}=m;c=`${c}${p} `;const x=[w];for(d+=1;d<l.length;){const P=l[d];if(P.trim()===""){const V=l.slice(d+1).findIndex(W=>W.trim()!=="");if(V===-1)break;if((((o=(i=l[d+1+V].match(/^(\s*)/))==null?void 0:i[1])==null?void 0:o.length)||0)>v){x.push(P),c=`${c}${P} `,d+=1;continue}else break}if((((a=(s=P.match(/^(\s*)/))==null?void 0:s[1])==null?void 0:a.length)||0)>v)x.push(P),c=`${c}${P} `,d+=1;else break}let k;const R=x.slice(1);if(R.length>0){const P=R.map(V=>V.slice(v+h)).join(` `);P.trim()&&(r.customNestedParser?k=r.customNestedParser(P):k=n.blockTokens(P))}const O=r.createToken(m,k);u.push(O)}if(u.length!==0)return{items:u,raw:c}}function mv(e,r,n,i){if(!e||!Array.isArray(e.content))return"";const o=typeof n=="function"?n(i):n,[s,...a]=e.content,l=r.renderChildren([s]),u=[`${o}${l}`];return a&&a.length>0&&a.forEach(c=>{const d=r.renderChildren([c]);if(d){const h=d.split(` `).map(p=>p?r.indent(p):"").join(` `);u.push(h)}}),u.join(` `)}function D$(e,r,n={}){const{state:i}=r,{doc:o,tr:s}=i,a=e;o.descendants((l,u)=>{const c=s.mapping.map(u),d=s.mapping.map(u)+l.nodeSize;let h=null;if(l.marks.forEach(f=>{if(f!==a)return!1;h=f}),!h)return;let p=!1;if(Object.keys(n).forEach(f=>{n[f]!==h.attrs[f]&&(p=!0)}),p){const f=e.type.create({...e.attrs,...n});s.removeMark(c,d,e.type),s.addMark(c,d,f)}}),s.docChanged&&r.view.dispatch(s)}var tn=class A_ extends hv{constructor(){super(...arguments),this.type="node"}static create(r={}){const n=typeof r=="function"?r():r;return new A_(n)}configure(r){return super.configure(r)}extend(r){const n=typeof r=="function"?r():r;return super.extend(n)}},x$=class{constructor(e,r,n){this.isDragging=!1,this.component=e,this.editor=r.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=r.extension,this.node=r.node,this.decorations=r.decorations,this.innerDecorations=r.innerDecorations,this.view=r.view,this.HTMLAttributes=r.HTMLAttributes,this.getPos=r.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var r,n,i,o,s,a,l;const{view:u}=this.editor,c=e.target,d=c.nodeType===3?(r=c.parentElement)==null?void 0:r.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(c)||!d)return;let h=0,p=0;if(this.dom!==d){const k=this.dom.getBoundingClientRect(),R=d.getBoundingClientRect(),O=(o=e.offsetX)!=null?o:(i=e.nativeEvent)==null?void 0:i.offsetX,P=(a=e.offsetY)!=null?a:(s=e.nativeEvent)==null?void 0:s.offsetY;h=R.x-k.x+O,p=R.y-k.y+P}const f=this.dom.cloneNode(!0);try{const k=this.dom.getBoundingClientRect();f.style.width=`${Math.round(k.width)}px`,f.style.height=`${Math.round(k.height)}px`,f.style.boxSizing="border-box",f.style.pointerEvents="none"}catch{}let m=null;try{m=document.createElement("div"),m.style.position="absolute",m.style.top="-9999px",m.style.left="-9999px",m.style.pointerEvents="none",m.appendChild(f),document.body.appendChild(m),(l=e.dataTransfer)==null||l.setDragImage(f,h,p)}finally{m&&setTimeout(()=>{try{m?.remove()}catch{}},0)}const v=this.getPos();if(typeof v!="number")return;const w=Ht.create(u.state.doc,v),x=u.state.tr.setSelection(w);u.dispatch(x)}stopEvent(e){var r;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const n=e.target;if(!(this.dom.contains(n)&&!((r=this.contentDOM)!=null&&r.contains(n))))return!1;const i=e.type.startsWith("drag"),o=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!o&&!i)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,u=Ht.isSelectable(this.node),c=e.type==="copy",d=e.type==="paste",h=e.type==="cut",p=e.type==="mousedown";if(!l&&u&&i&&e.target===this.dom&&e.preventDefault(),l&&i&&!a&&e.target===this.dom)return e.preventDefault(),!1;if(l&&s&&!a&&p){const f=n.closest("[data-drag-handle]");f&&(this.dom===f||this.dom.contains(f))&&(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||c||d||h||p&&u)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(lf()||tT())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:r})=>{const n=this.getPos();return typeof n!="number"?!1:(r.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if(typeof e!="number")return;const r=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:r})}};function y0(e){return new a$({find:e.find,handler:({state:r,range:n,match:i,pasteEvent:o})=>{const s=Xr(e.getAttributes,void 0,i,o);if(s===!1||s===null)return null;const{tr:a}=r,l=i[i.length-1],u=i[0];let c=n.to;if(l){const d=u.search(/\S/),h=n.from+u.indexOf(l),p=h+l.length;if(cv(n.from,n.to,r.doc).filter(f=>f.mark.type.excluded.find(m=>m===e.type&&m!==f.mark.type)).filter(f=>f.to>h).length)return null;p<n.to&&a.delete(p,n.to),h>n.from&&a.delete(n.from+d,h),c=n.from+d+l.length,a.addMark(n.from+d,c,e.type.create(s||{})),a.removeStoredMark(e.type)}}})}const Ro=()=>new Map,sT=e=>{const r=Ro();return e.forEach((n,i)=>{r.set(i,n)}),r},aa=(e,r,n)=>{let i=e.get(r);return i===void 0&&e.set(r,i=n()),i},k$=(e,r)=>{const n=[];for(const[i,o]of e)n.push(r(o,i));return n},C$=(e,r)=>{for(const[n,i]of e)if(r(i,n))return!0;return!1},T0=()=>new Set,q5=e=>e[e.length-1],_$=(e,r)=>{for(let n=0;n<r.length;n++)e.push(r[n])},b0=Array.from,gv=(e,r)=>{for(let n=0;n<e.length;n++)if(!r(e[n],n,e))return!1;return!0},yv=(e,r)=>{for(let n=0;n<e.length;n++)if(r(e[n],n,e))return!0;return!1},N$=(e,r)=>{const n=new Array(e);for(let i=0;i<e;i++)n[i]=r(i,n);return n},Oh=Array.isArray;class E_{constructor(){this._observers=Ro()}on(r,n){return aa(this._observers,r,T0).add(n),n}once(r,n){const i=(...o)=>{this.off(r,i),n(...o)};this.on(r,i)}off(r,n){const i=this._observers.get(r);i!==void 0&&(i.delete(n),i.size===0&&this._observers.delete(r))}emit(r,n){return b0((this._observers.get(r)||Ro()).values()).forEach(i=>i(...n))}destroy(){this._observers=Ro()}}class w_{constructor(){this._observers=Ro()}on(r,n){aa(this._observers,r,T0).add(n)}once(r,n){const i=(...o)=>{this.off(r,i),n(...o)};this.on(r,i)}off(r,n){const i=this._observers.get(r);i!==void 0&&(i.delete(n),i.size===0&&this._observers.delete(r))}emit(r,n){return b0((this._observers.get(r)||Ro()).values()).forEach(i=>i(...n))}destroy(){this._observers=Ro()}}const ra=Math.floor,Jg=Math.abs,bl=(e,r)=>e<r?e:r,_a=(e,r)=>e>r?e:r,F$=Math.pow,S_=e=>e!==0?e<0:1/e<0,L8=1,z8=2,W5=4,K5=8,df=32,p0=64,Bo=128,O$=1<<29,A3=31,aT=63,Zc=127,M$=2147483647,H2=Number.MAX_SAFE_INTEGER,Y8=Number.MIN_SAFE_INTEGER,R$=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&ra(e)===e),D_=String.fromCharCode,B$=e=>e.toLowerCase(),I$=/^\s*/g,L$=e=>e.replace(I$,""),z$=/([A-Z])/g,H8=(e,r)=>L$(e.replace(z$,n=>`${r}${B$(n)}`)),Y$=e=>{const r=unescape(encodeURIComponent(e)),n=r.length,i=new Uint8Array(n);for(let o=0;o<n;o++)i[o]=r.codePointAt(o);return i},hf=typeof TextEncoder<"u"?new TextEncoder:null,H$=e=>hf.encode(e),P$=hf?H$:Y$;let N1=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});N1&&N1.decode(new Uint8Array).length===1&&(N1=null);const Z$=(e,r)=>N$(r,()=>e).join("");class Wf{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const $i=()=>new Wf,$$=e=>{const r=$i();return e(r),Gn(r)},Tv=e=>{let r=e.cpos;for(let n=0;n<e.bufs.length;n++)r+=e.bufs[n].length;return r},Gn=e=>{const r=new Uint8Array(Tv(e));let n=0;for(let i=0;i<e.bufs.length;i++){const o=e.bufs[i];r.set(o,n),n+=o.length}return r.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),n),r},U$=(e,r)=>{const n=e.cbuf.length;n-e.cpos<r&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(_a(n,r)*2),e.cpos=0)},Pi=(e,r)=>{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++]=r},lT=Pi,Ut=(e,r)=>{for(;r>Zc;)Pi(e,Bo|Zc&r),r=ra(r/128);Pi(e,Zc&r)},bv=(e,r)=>{const n=S_(r);for(n&&(r=-r),Pi(e,(r>aT?Bo:0)|(n?p0:0)|aT&r),r=ra(r/64);r>0;)Pi(e,(r>Zc?Bo:0)|Zc&r),r=ra(r/128)},uT=new Uint8Array(3e4),V$=uT.length/3,j$=(e,r)=>{if(r.length<V$){const n=hf.encodeInto(r,uT).written||0;Ut(e,n);for(let i=0;i<n;i++)Pi(e,uT[i])}else ui(e,P$(r))},G$=(e,r)=>{const n=unescape(encodeURIComponent(r)),i=n.length;Ut(e,i);for(let o=0;o<i;o++)Pi(e,n.codePointAt(o))},$c=hf&&hf.encodeInto?j$:G$,E3=(e,r)=>{const n=e.cbuf.length,i=e.cpos,o=bl(n-i,r.length),s=r.length-o;e.cbuf.set(r.subarray(0,o),i),e.cpos+=o,s>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(_a(n*2,s)),e.cbuf.set(r.subarray(o)),e.cpos=s)},ui=(e,r)=>{Ut(e,r.byteLength),E3(e,r)},vv=(e,r)=>{U$(e,r);const n=new DataView(e.cbuf.buffer,e.cpos,r);return e.cpos+=r,n},q$=(e,r)=>vv(e,4).setFloat32(0,r,!1),W$=(e,r)=>vv(e,8).setFloat64(0,r,!1),K$=(e,r)=>vv(e,8).setBigInt64(0,r,!1),P8=new DataView(new ArrayBuffer(4)),Q$=e=>(P8.setFloat32(0,e),P8.getFloat32(0)===e),Mh=(e,r)=>{switch(typeof r){case"string":Pi(e,119),$c(e,r);break;case"number":R$(r)&&Jg(r)<=M$?(Pi(e,125),bv(e,r)):Q$(r)?(Pi(e,124),q$(e,r)):(Pi(e,123),W$(e,r));break;case"bigint":Pi(e,122),K$(e,r);break;case"object":if(r===null)Pi(e,126);else if(Oh(r)){Pi(e,117),Ut(e,r.length);for(let n=0;n<r.length;n++)Mh(e,r[n])}else if(r instanceof Uint8Array)Pi(e,116),ui(e,r);else{Pi(e,118);const n=Object.keys(r);Ut(e,n.length);for(let i=0;i<n.length;i++){const o=n[i];$c(e,o),Mh(e,r[o])}}break;case"boolean":Pi(e,r?120:121);break;default:Pi(e,127)}};class Z8 extends Wf{constructor(r){super(),this.w=r,this.s=null,this.count=0}write(r){this.s===r?this.count++:(this.count>0&&Ut(this,this.count-1),this.count=1,this.w(this,r),this.s=r)}}const $8=e=>{e.count>0&&(bv(e.encoder,e.count===1?e.s:-e.s),e.count>1&&Ut(e.encoder,e.count-2))};class Xg{constructor(){this.encoder=new Wf,this.s=0,this.count=0}write(r){this.s===r?this.count++:($8(this),this.count=1,this.s=r)}toUint8Array(){return $8(this),Gn(this.encoder)}}const U8=e=>{if(e.count>0){const r=e.diff*2+(e.count===1?0:1);bv(e.encoder,r),e.count>1&&Ut(e.encoder,e.count-2)}};class Q5{constructor(){this.encoder=new Wf,this.s=0,this.count=0,this.diff=0}write(r){this.diff===r-this.s?(this.s=r,this.count++):(U8(this),this.count=1,this.diff=r-this.s,this.s=r)}toUint8Array(){return U8(this),Gn(this.encoder)}}class J${constructor(){this.sarr=[],this.s="",this.lensE=new Xg}write(r){this.s+=r,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(r.length)}toUint8Array(){const r=new Wf;return this.sarr.push(this.s),this.s="",$c(r,this.sarr.join("")),E3(r,this.lensE.toUint8Array()),Gn(r)}}const kl=e=>new Error(e),Qs=()=>{throw kl("Method unimplemented")},vo=()=>{throw kl("Unexpected case")},x_=kl("Unexpected end of array"),k_=kl("Integer out of Range");class w3{constructor(r){this.arr=r,this.pos=0}}const k0=e=>new w3(e),X$=e=>e.pos!==e.arr.length,eU=(e,r=e.pos)=>{const n=k0(e.arr);return n.pos=r,n},tU=(e,r)=>{const n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,r);return e.pos+=r,n},ho=e=>tU(e,pr(e)),Rh=e=>e.arr[e.pos++],pr=e=>{let r=0,n=1;const i=e.arr.length;for(;e.pos<i;){const o=e.arr[e.pos++];if(r=r+(o&Zc)*n,n*=128,o<Bo)return r;if(r>H2)throw k_}throw x_},Av=e=>{let r=e.arr[e.pos++],n=r&aT,i=64;const o=(r&p0)>0?-1:1;if((r&Bo)===0)return o*n;const s=e.arr.length;for(;e.pos<s;){if(r=e.arr[e.pos++],n=n+(r&Zc)*i,i*=128,r<Bo)return o*n;if(n>H2)throw k_}throw x_},rU=e=>{let r=pr(e);if(r===0)return"";{let n=String.fromCodePoint(Rh(e));if(--r<100)for(;r--;)n+=String.fromCodePoint(Rh(e));else for(;r>0;){const i=r<1e4?r:1e4,o=e.arr.subarray(e.pos,e.pos+i);e.pos+=i,n+=String.fromCodePoint.apply(null,o),r-=i}return decodeURIComponent(escape(n))}},nU=e=>N1.decode(ho(e)),Nu=N1?nU:rU,Ev=(e,r)=>{const n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,r);return e.pos+=r,n},iU=e=>Ev(e,4).getFloat32(0,!1),oU=e=>Ev(e,8).getFloat64(0,!1),sU=e=>Ev(e,8).getBigInt64(0,!1),aU=[e=>{},e=>null,Av,iU,oU,sU,e=>!1,e=>!0,Nu,e=>{const r=pr(e),n={};for(let i=0;i<r;i++){const o=Nu(e);n[o]=pf(e)}return n},e=>{const r=pr(e),n=[];for(let i=0;i<r;i++)n.push(pf(e));return n},ho],pf=e=>aU[127-Rh(e)](e);class V8 extends w3{constructor(r,n){super(r),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),X$(this)?this.count=pr(this)+1:this.count=-1),this.count--,this.s}}class e2 extends w3{constructor(r){super(r),this.s=0,this.count=0}read(){if(this.count===0){this.s=Av(this);const r=S_(this.s);this.count=1,r&&(this.s=-this.s,this.count=pr(this)+2)}return this.count--,this.s}}class J5 extends w3{constructor(r){super(r),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const r=Av(this),n=r&1;this.diff=ra(r/2),this.count=1,n&&(this.count=pr(this)+2)}return this.s+=this.diff,this.count--,this.s}}class lU{constructor(r){this.decoder=new e2(r),this.str=Nu(this.decoder),this.spos=0}read(){const r=this.spos+this.decoder.read(),n=this.str.slice(this.spos,r);return this.spos=r,n}}const uU=crypto.getRandomValues.bind(crypto),cU=Math.random,C_=()=>uU(new Uint32Array(1))[0],dU=e=>e[ra(cU()*e.length)],hU="10000000-1000-4000-8000"+-1e11,pU=()=>hU.replace(/[018]/g,e=>(e^C_()&15>>e/4).toString(16)),Pu=Date.now,j8=e=>new Promise(e);Promise.all.bind(Promise);const fU=e=>e===void 0?null:e;class mU{constructor(){this.map=new Map}setItem(r,n){this.map.set(r,n)}getItem(r){return this.map.get(r)}}let __=new mU,wv=!0;try{typeof localStorage<"u"&&localStorage&&(__=localStorage,wv=!1)}catch{}const N_=__,gU=e=>wv||addEventListener("storage",e),yU=e=>wv||removeEventListener("storage",e),ff=Symbol("Equality"),F_=(e,r)=>e===r||!!e?.[ff]?.(r)||!1,TU=e=>typeof e=="object",bU=Object.assign,O_=Object.keys,vU=(e,r)=>{for(const n in e)r(e[n],n)},AU=(e,r)=>{const n=[];for(const i in e)n.push(r(e[i],i));return n},P2=e=>O_(e).length,EU=e=>{for(const r in e)return!1;return!0},op=(e,r)=>{for(const n in e)if(!r(e[n],n))return!1;return!0},Sv=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),wU=(e,r)=>e===r||P2(e)===P2(r)&&op(e,(n,i)=>(n!==void 0||Sv(r,i))&&F_(r[i],n)),SU=Object.freeze,M_=e=>{for(const r in e){const n=e[r];(typeof n=="object"||typeof n=="function")&&M_(e[r])}return SU(e)},Dv=(e,r,n=0)=>{try{for(;n<e.length;n++)e[n](...r)}finally{n<e.length&&Dv(e,r,n+1)}},DU=e=>e,mh=(e,r)=>{if(e===r)return!0;if(e==null||r==null||e.constructor!==r.constructor&&(e.constructor||Object)!==(r.constructor||Object))return!1;if(e[ff]!=null)return e[ff](r);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),r=new Uint8Array(r);case Uint8Array:{if(e.byteLength!==r.byteLength)return!1;for(let n=0;n<e.length;n++)if(e[n]!==r[n])return!1;break}case Set:{if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;break}case Map:{if(e.size!==r.size)return!1;for(const n of e.keys())if(!r.has(n)||!mh(e.get(n),r.get(n)))return!1;break}case void 0:case Object:if(P2(e)!==P2(r))return!1;for(const n in e)if(!Sv(e,n)||!mh(e[n],r[n]))return!1;break;case Array:if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!mh(e[n],r[n]))return!1;break;default:return!1}return!0},xU=(e,r)=>r.includes(e);var R_={};const Zu=typeof Ds<"u"&&Ds.release&&/node|io\.js/.test(Ds.release.name)&&Object.prototype.toString.call(typeof Ds<"u"?Ds:0)==="[object process]",xv=typeof window<"u"&&typeof document<"u"&&!Zu;let el;const kU=()=>{if(el===void 0)if(Zu){el=Ro();const e=Ds.argv;let r=null;for(let n=0;n<e.length;n++){const i=e[n];i[0]==="-"?(r!==null&&el.set(r,""),r=i):r!==null&&(el.set(r,i),r=null)}r!==null&&el.set(r,"")}else typeof location=="object"?(el=Ro(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){const[r,n]=e.split("=");el.set(`--${H8(r,"-")}`,n),el.set(`-${H8(r,"-")}`,n)}})):el=Ro();return el},cT=e=>kU().has(e),Z2=e=>fU(Zu?R_[e.toUpperCase().replaceAll("-","_")]:N_.getItem(e)),B_=e=>cT("--"+e)||Z2(e)!==null,CU=B_("production"),_U=Zu&&xU(R_.FORCE_COLOR,["true","1","2"]),NU=_U||!cT("--no-colors")&&!B_("no-color")&&(!Zu||Ds.stdout.isTTY)&&(!Zu||cT("--color")||Z2("COLORTERM")!==null||(Z2("TERM")||"").includes("color")),I_=e=>new Uint8Array(e),FU=(e,r,n)=>new Uint8Array(e,r,n),OU=e=>new Uint8Array(e),MU=e=>{let r="";for(let n=0;n<e.byteLength;n++)r+=D_(e[n]);return btoa(r)},RU=e=>o3.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),BU=e=>{const r=atob(e),n=I_(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n},IU=e=>{const r=o3.from(e,"base64");return FU(r.buffer,r.byteOffset,r.byteLength)},kv=xv?MU:RU,L_=xv?BU:IU,LU=e=>{const r=I_(e.byteLength);return r.set(e),r},zU=e=>$$(r=>Mh(r,e));class YU{constructor(r,n){this.left=r,this.right=n}}const $l=(e,r)=>new YU(e,r),G8=e=>e.next()>=.5,X5=(e,r,n)=>ra(e.next()*(n+1-r)+r),z_=(e,r,n)=>ra(e.next()*(n+1-r)+r),Cv=(e,r,n)=>z_(e,r,n),HU=e=>D_(Cv(e,97,122)),PU=(e,r=0,n=20)=>{const i=Cv(e,r,n);let o="";for(let s=0;s<i;s++)o+=HU(e);return o},e6=(e,r)=>r[Cv(e,0,r.length-1)],ZU=Symbol("0schema");class $U{constructor(){this._rerrs=[]}extend(r,n,i,o=null){this._rerrs.push({path:r,expected:n,has:i,message:o})}toString(){const r=[];for(let n=this._rerrs.length-1;n>0;n--){const i=this._rerrs[n];r.push(Z$(" ",(this._rerrs.length-n)*2)+`${i.path!=null?`[${i.path}] `:""}${i.has} doesn't match ${i.expected}. ${i.message}`)}return r.join(` `)}}const dT=(e,r)=>e===r?!0:e==null||r==null||e.constructor!==r.constructor?!1:e[ff]?F_(e,r):Oh(e)?gv(e,n=>yv(r,i=>dT(n,i))):TU(e)?op(e,(n,i)=>dT(n,r[i])):!1;class zo{static _dilutes=!1;extends(r){let[n,i]=[this.shape,r.shape];return this.constructor._dilutes&&([i,n]=[n,i]),dT(n,i)}equals(r){return this.constructor===r.constructor&&mh(this.shape,r.shape)}[ZU](){return!0}[ff](r){return this.equals(r)}validate(r){return this.check(r)}check(r,n){Qs()}get nullable(){return sp(this,C3)}get optional(){return new P_(this)}cast(r){return q8(r,this),r}expect(r){return q8(r,this),r}}class _v extends zo{constructor(r,n){super(),this.shape=r,this._c=n}check(r,n=void 0){const i=r?.constructor===this.shape&&(this._c==null||this._c(r));return!i&&n?.extend(null,this.shape.name,r?.constructor.name,r?.constructor!==this.shape?"Constructor match failed":"Check failed"),i}}const Ai=(e,r=null)=>new _v(e,r);Ai(_v);class Nv extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=this.shape(r);return!i&&n?.extend(null,"custom prop",r?.constructor.name,"failed to check custom prop"),i}}const Gi=e=>new Nv(e);Ai(Nv);class S3 extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=this.shape.some(o=>o===r);return!i&&n?.extend(null,this.shape.join(" | "),r.toString()),i}}const D3=(...e)=>new S3(e),Y_=Ai(S3),UU=RegExp.escape||(e=>e.replace(/[().|&,$^[\]]/g,r=>"\\"+r)),H_=e=>{if(Bh.check(e))return[UU(e)];if(Y_.check(e))return e.shape.map(r=>r+"");if(K_.check(e))return["[+-]?\\d+.?\\d*"];if(Q_.check(e))return[".*"];if($2.check(e))return e.shape.map(H_).flat(1);vo()};class VU extends zo{constructor(r){super(),this.shape=r,this._r=new RegExp("^"+r.map(H_).map(n=>`(${n.join("|")})`).join("")+"$")}check(r,n){const i=this._r.exec(r)!=null;return!i&&n?.extend(null,this._r.toString(),r.toString(),"String doesn't match string template."),i}}Ai(VU);const jU=Symbol("optional");class P_ extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=r===void 0||this.shape.check(r);return!i&&n?.extend(null,"undefined (optional)","()"),i}get[jU](){return!0}}const GU=Ai(P_);class qU extends zo{check(r,n){return n?.extend(null,"never",typeof r),!1}}Ai(qU);class x3 extends zo{constructor(r,n=!1){super(),this.shape=r,this._isPartial=n}static _dilutes=!0;get partial(){return new x3(this.shape,!0)}check(r,n){return r==null?(n?.extend(null,"object","null"),!1):op(this.shape,(i,o)=>{const s=this._isPartial&&!Sv(r,o)||i.check(r[o],n);return!s&&n?.extend(o.toString(),i.toString(),typeof r[o],"Object property does not match"),s})}}const WU=e=>new x3(e),KU=Ai(x3),QU=Gi(e=>e!=null&&(e.constructor===Object||e.constructor==null));class Z_ extends zo{constructor(r,n){super(),this.shape={keys:r,values:n}}check(r,n){return r!=null&&op(r,(i,o)=>{const s=this.shape.keys.check(o,n);return!s&&n?.extend(o+"","Record",typeof r,s?"Key doesn't match schema":"Value doesn't match value"),s&&this.shape.values.check(i,n)})}}const $_=(e,r)=>new Z_(e,r),JU=Ai(Z_);class U_ extends zo{constructor(r){super(),this.shape=r}check(r,n){return r!=null&&op(this.shape,(i,o)=>{const s=i.check(r[o],n);return!s&&n?.extend(o.toString(),"Tuple",typeof i),s})}}const XU=(...e)=>new U_(e);Ai(U_);class V_ extends zo{constructor(r){super(),this.shape=r.length===1?r[0]:new Fv(r)}check(r,n){const i=Oh(r)&&gv(r,o=>this.shape.check(o));return!i&&n?.extend(null,"Array",""),i}}const j_=(...e)=>new V_(e),eV=Ai(V_),tV=Gi(e=>Oh(e));class G_ extends zo{constructor(r,n){super(),this.shape=r,this._c=n}check(r,n){const i=r instanceof this.shape&&(this._c==null||this._c(r));return!i&&n?.extend(null,this.shape.name,r?.constructor.name),i}}const rV=(e,r=null)=>new G_(e,r);Ai(G_);const nV=rV(zo);class iV extends zo{constructor(r){super(),this.len=r.length-1,this.args=XU(...r.slice(-1)),this.res=r[this.len]}check(r,n){const i=r.constructor===Function&&r.length<=this.len;return!i&&n?.extend(null,"function",typeof r),i}}const oV=Ai(iV),sV=Gi(e=>typeof e=="function");class aV extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=gv(this.shape,o=>o.check(r,n));return!i&&n?.extend(null,"Intersectinon",typeof r),i}}Ai(aV,e=>e.shape.length>0);class Fv extends zo{static _dilutes=!0;constructor(r){super(),this.shape=r}check(r,n){const i=yv(this.shape,o=>o.check(r,n));return n?.extend(null,"Union",typeof r),i}}const sp=(...e)=>e.findIndex(r=>$2.check(r))>=0?sp(...e.map(r=>mf(r)).map(r=>$2.check(r)?r.shape:[r]).flat(1)):e.length===1?e[0]:new Fv(e),$2=Ai(Fv),q_=()=>!0,U2=Gi(q_),lV=Ai(Nv,e=>e.shape===q_),Ov=Gi(e=>typeof e=="bigint"),uV=Gi(e=>e===Ov),W_=Gi(e=>typeof e=="symbol");Gi(e=>e===W_);const gh=Gi(e=>typeof e=="number"),K_=Gi(e=>e===gh),Bh=Gi(e=>typeof e=="string"),Q_=Gi(e=>e===Bh),k3=Gi(e=>typeof e=="boolean"),cV=Gi(e=>e===k3),J_=D3(void 0);Ai(S3,e=>e.shape.length===1&&e.shape[0]===void 0),D3(void 0);const C3=D3(null),dV=Ai(S3,e=>e.shape.length===1&&e.shape[0]===null);Ai(Uint8Array),Ai(_v,e=>e.shape===Uint8Array);const hV=sp(gh,Bh,C3,J_,Ov,k3,W_);(()=>{const e=j_(U2),r=$_(Bh,U2),n=sp(gh,Bh,C3,k3,e,r);return e.shape=n,r.shape.values=n,n})();const mf=e=>{if(nV.check(e))return e;if(QU.check(e)){const r={};for(const n in e)r[n]=mf(e[n]);return WU(r)}else{if(tV.check(e))return sp(...e.map(mf));if(hV.check(e))return D3(e);if(sV.check(e))return Ai(e)}vo()},q8=CU?()=>{}:(e,r)=>{const n=new $U;if(!r.check(e,n))throw kl(`Expected value to be of type ${r.constructor.name}. ${n.toString()}`)};class pV{constructor(r){this.patterns=[],this.$state=r}if(r,n){return this.patterns.push({if:mf(r),h:n}),this}else(r){return this.if(U2,r)}done(){return(r,n)=>{for(let i=0;i<this.patterns.length;i++){const o=this.patterns[i];if(o.if.check(r))return o.h(r,n)}throw kl("Unhandled pattern")}}}const fV=e=>new pV(e),X_=fV(U2).if(K_,(e,r)=>X5(r,Y8,H2)).if(Q_,(e,r)=>PU(r)).if(cV,(e,r)=>G8(r)).if(uV,(e,r)=>BigInt(X5(r,Y8,H2))).if($2,(e,r)=>$d(r,e6(r,e.shape))).if(KU,(e,r)=>{const n={};for(const i in e.shape){let o=e.shape[i];if(GU.check(o)){if(G8(r))continue;o=o.shape}n[i]=X_(o,r)}return n}).if(eV,(e,r)=>{const n=[],i=z_(r,0,42);for(let o=0;o<i;o++)n.push($d(r,e.shape));return n}).if(Y_,(e,r)=>e6(r,e.shape)).if(dV,(e,r)=>null).if(oV,(e,r)=>{const n=$d(r,e.res);return()=>n}).if(lV,(e,r)=>$d(r,e6(r,[gh,Bh,C3,J_,Ov,k3,j_(gh),$_(sp("a","b","c"),gh)]))).if(JU,(e,r)=>{const n={},i=X5(r,0,3);for(let o=0;o<i;o++){const s=$d(r,e.shape.keys),a=$d(r,e.shape.values);n[s]=a}return n}).done(),$d=(e,r)=>X_(mf(r),e),Kf=typeof document<"u"?document:{};Gi(e=>e.nodeType===bV),typeof DOMParser<"u"&&new DOMParser,Gi(e=>e.nodeType===gV),Gi(e=>e.nodeType===yV);const mV=e=>k$(e,(r,n)=>`${n}:${r};`).join(""),gV=Kf.ELEMENT_NODE,yV=Kf.TEXT_NODE,TV=Kf.DOCUMENT_NODE,bV=Kf.DOCUMENT_FRAGMENT_NODE;Gi(e=>e.nodeType===TV);const vV=e=>class{constructor(r){this._=r}destroy(){e(this._)}},AV=vV(clearTimeout),Mv=(e,r)=>new AV(setTimeout(r,e)),C0=Symbol,eN=C0(),tN=C0(),EV=C0(),wV=C0(),SV=C0(),rN=C0(),DV=C0(),Rv=C0(),xV=C0(),kV=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const r=[],n=[];let i=0;for(;i<e.length;i++){const o=e[i];if(o===void 0)break;if(o.constructor===String||o.constructor===Number)r.push(o);else if(o.constructor===Object)break}for(i>0&&n.push(r.join(""));i<e.length;i++){const o=e[i];o instanceof Symbol||n.push(o)}return n},CV={[eN]:$l("font-weight","bold"),[tN]:$l("font-weight","normal"),[EV]:$l("color","blue"),[SV]:$l("color","green"),[wV]:$l("color","grey"),[rN]:$l("color","red"),[DV]:$l("color","purple"),[Rv]:$l("color","orange"),[xV]:$l("color","black")},_V=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const r=[],n=[],i=Ro();let o=[],s=0;for(;s<e.length;s++){const a=e[s],l=CV[a];if(l!==void 0)i.set(l.left,l.right);else{if(a===void 0)break;if(a.constructor===String||a.constructor===Number){const u=mV(i);s>0||u.length>0?(r.push("%c"+a),n.push(u)):r.push(a)}else break}}for(s>0&&(o=n,o.unshift(r.join("")));s<e.length;s++){const a=e[s];a instanceof Symbol||o.push(a)}return o},nN=NU?_V:kV,NV=(...e)=>{console.log(...nN(e)),oN.forEach(r=>r.print(e))},iN=(...e)=>{console.warn(...nN(e)),e.unshift(Rv),oN.forEach(r=>r.print(e))},oN=T0(),sN=e=>({[Symbol.iterator](){return this},next:e}),FV=(e,r)=>sN(()=>{let n;do n=e.next();while(!n.done&&!r(n.value));return n}),t6=(e,r)=>sN(()=>{const{done:n,value:i}=e.next();return{done:n,value:n?void 0:r(i)}});class Bv{constructor(r,n){this.clock=r,this.len=n}}class ap{constructor(){this.clients=new Map}}const $u=(e,r,n)=>r.clients.forEach((i,o)=>{const s=e.doc.store.clients.get(o);if(s!=null){const a=s[s.length-1],l=a.id.clock+a.length;for(let u=0,c=i[u];u<i.length&&c.clock<l;c=i[++u])AN(e,s,c.clock,c.len,n)}}),OV=(e,r)=>{let n=0,i=e.length-1;for(;n<=i;){const o=ra((n+i)/2),s=e[o],a=s.clock;if(a<=r){if(r<a+s.len)return o;n=o+1}else i=o-1}return null},lp=(e,r)=>{const n=e.clients.get(r.client);return n!==void 0&&OV(n,r.clock)!==null},Iv=e=>{e.clients.forEach(r=>{r.sort((o,s)=>o.clock-s.clock);let n,i;for(n=1,i=1;n<r.length;n++){const o=r[i-1],s=r[n];o.clock+o.len>=s.clock?o.len=_a(o.len,s.clock+s.len-o.clock):(i<n&&(r[i]=s),i++)}r.length=i})},hT=e=>{const r=new ap;for(let n=0;n<e.length;n++)e[n].clients.forEach((i,o)=>{if(!r.clients.has(o)){const s=i.slice();for(let a=n+1;a<e.length;a++)_$(s,e[a].clients.get(o)||[]);r.clients.set(o,s)}});return Iv(r),r},gf=(e,r,n,i)=>{aa(e.clients,r,()=>[]).push(new Bv(n,i))},aN=()=>new ap,lN=e=>{const r=aN();return e.clients.forEach((n,i)=>{const o=[];for(let s=0;s<n.length;s++){const a=n[s];if(a.deleted){const l=a.id.clock;let u=a.length;if(s+1<n.length)for(let c=n[s+1];s+1<n.length&&c.deleted;c=n[++s+1])u+=c.length;o.push(new Bv(l,u))}}o.length>0&&r.clients.set(i,o)}),r},up=(e,r)=>{Ut(e.restEncoder,r.clients.size),b0(r.clients.entries()).sort((n,i)=>i[0]-n[0]).forEach(([n,i])=>{e.resetDsCurVal(),Ut(e.restEncoder,n);const o=i.length;Ut(e.restEncoder,o);for(let s=0;s<o;s++){const a=i[s];e.writeDsClock(a.clock),e.writeDsLen(a.len)}})},Lv=e=>{const r=new ap,n=pr(e.restDecoder);for(let i=0;i<n;i++){e.resetDsCurVal();const o=pr(e.restDecoder),s=pr(e.restDecoder);if(s>0){const a=aa(r.clients,o,()=>[]);for(let l=0;l<s;l++)a.push(new Bv(e.readDsClock(),e.readDsLen()))}}return r},W8=(e,r,n)=>{const i=new ap,o=pr(e.restDecoder);for(let s=0;s<o;s++){e.resetDsCurVal();const a=pr(e.restDecoder),l=pr(e.restDecoder),u=n.clients.get(a)||[],c=hi(n,a);for(let d=0;d<l;d++){const h=e.readDsClock(),p=h+e.readDsLen();if(h<c){c<p&&gf(i,a,c,p-c);let f=Na(u,h),m=u[f];for(!m.deleted&&m.id.clock<h&&(u.splice(f+1,0,Q2(r,m,h-m.id.clock)),f++);f<u.length&&(m=u[f++],m.id.clock<p);)m.deleted||(p<m.id.clock+m.length&&u.splice(f,0,Q2(r,m,p-m.id.clock)),m.delete(r))}else gf(i,a,h,p-h)}}if(i.clients.size>0){const s=new ed;return Ut(s.restEncoder,0),up(s,i),s.toUint8Array()}return null},uN=C_;class tc extends E_{constructor({guid:r=pU(),collectionid:n=null,gc:i=!0,gcFilter:o=()=>!0,meta:s=null,autoLoad:a=!1,shouldLoad:l=!0}={}){super(),this.gc=i,this.gcFilter=o,this.clientID=uN(),this.guid=r,this.collectionid=n,this.share=new Map,this.store=new bN,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=l,this.autoLoad=a,this.meta=s,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=j8(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});const u=()=>j8(c=>{const d=h=>{(h===void 0||h===!0)&&(this.off("sync",d),c())};this.on("sync",d)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=u()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=u()}load(){const r=this._item;r!==null&&!this.shouldLoad&&bn(r.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(b0(this.subdocs).map(r=>r.guid))}transact(r,n=null){return bn(this,r,n)}get(r,n=qi){const i=aa(this.share,r,()=>{const s=new n;return s._integrate(this,null),s}),o=i.constructor;if(n!==qi&&o!==n)if(o===qi){const s=new n;s._map=i._map,i._map.forEach(a=>{for(;a!==null;a=a.left)a.parent=s}),s._start=i._start;for(let a=s._start;a!==null;a=a.right)a.parent=s;return s._length=i._length,this.share.set(r,s),s._integrate(this,null),s}else throw new Error(`Type with the name ${r} has already been defined with a different constructor`);return i}getArray(r=""){return this.get(r,bh)}getText(r=""){return this.get(r,Uu)}getMap(r=""){return this.get(r,Lh)}getXmlElement(r=""){return this.get(r,yo)}getXmlFragment(r=""){return this.get(r,td)}toJSON(){const r={};return this.share.forEach((n,i)=>{r[i]=n.toJSON()}),r}destroy(){this.isDestroyed=!0,b0(this.subdocs).forEach(n=>n.destroy());const r=this._item;if(r!==null){this._item=null;const n=r.content;n.doc=new tc({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=r,bn(r.parent.doc,i=>{const o=n.doc;r.deleted||i.subdocsAdded.add(o),i.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class cN{constructor(r){this.restDecoder=r}resetDsCurVal(){}readDsClock(){return pr(this.restDecoder)}readDsLen(){return pr(this.restDecoder)}}class dN extends cN{readLeftID(){return fr(pr(this.restDecoder),pr(this.restDecoder))}readRightID(){return fr(pr(this.restDecoder),pr(this.restDecoder))}readClient(){return pr(this.restDecoder)}readInfo(){return Rh(this.restDecoder)}readString(){return Nu(this.restDecoder)}readParentInfo(){return pr(this.restDecoder)===1}readTypeRef(){return pr(this.restDecoder)}readLen(){return pr(this.restDecoder)}readAny(){return pf(this.restDecoder)}readBuf(){return LU(ho(this.restDecoder))}readJSON(){return JSON.parse(Nu(this.restDecoder))}readKey(){return Nu(this.restDecoder)}}class MV{constructor(r){this.dsCurrVal=0,this.restDecoder=r}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=pr(this.restDecoder),this.dsCurrVal}readDsLen(){const r=pr(this.restDecoder)+1;return this.dsCurrVal+=r,r}}class Ih extends MV{constructor(r){super(r),this.keys=[],pr(r),this.keyClockDecoder=new J5(ho(r)),this.clientDecoder=new e2(ho(r)),this.leftClockDecoder=new J5(ho(r)),this.rightClockDecoder=new J5(ho(r)),this.infoDecoder=new V8(ho(r),Rh),this.stringDecoder=new lU(ho(r)),this.parentInfoDecoder=new V8(ho(r),Rh),this.typeRefDecoder=new e2(ho(r)),this.lenDecoder=new e2(ho(r))}readLeftID(){return new yh(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new yh(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 pf(this.restDecoder)}readBuf(){return ho(this.restDecoder)}readJSON(){return pf(this.restDecoder)}readKey(){const r=this.keyClockDecoder.read();if(r<this.keys.length)return this.keys[r];{const n=this.stringDecoder.read();return this.keys.push(n),n}}}class hN{constructor(){this.restEncoder=$i()}toUint8Array(){return Gn(this.restEncoder)}resetDsCurVal(){}writeDsClock(r){Ut(this.restEncoder,r)}writeDsLen(r){Ut(this.restEncoder,r)}}class Qf extends hN{writeLeftID(r){Ut(this.restEncoder,r.client),Ut(this.restEncoder,r.clock)}writeRightID(r){Ut(this.restEncoder,r.client),Ut(this.restEncoder,r.clock)}writeClient(r){Ut(this.restEncoder,r)}writeInfo(r){lT(this.restEncoder,r)}writeString(r){$c(this.restEncoder,r)}writeParentInfo(r){Ut(this.restEncoder,r?1:0)}writeTypeRef(r){Ut(this.restEncoder,r)}writeLen(r){Ut(this.restEncoder,r)}writeAny(r){Mh(this.restEncoder,r)}writeBuf(r){ui(this.restEncoder,r)}writeJSON(r){$c(this.restEncoder,JSON.stringify(r))}writeKey(r){$c(this.restEncoder,r)}}class pN{constructor(){this.restEncoder=$i(),this.dsCurrVal=0}toUint8Array(){return Gn(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(r){const n=r-this.dsCurrVal;this.dsCurrVal=r,Ut(this.restEncoder,n)}writeDsLen(r){r===0&&vo(),Ut(this.restEncoder,r-1),this.dsCurrVal+=r}}class ed extends pN{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new Q5,this.clientEncoder=new Xg,this.leftClockEncoder=new Q5,this.rightClockEncoder=new Q5,this.infoEncoder=new Z8(lT),this.stringEncoder=new J$,this.parentInfoEncoder=new Z8(lT),this.typeRefEncoder=new Xg,this.lenEncoder=new Xg}toUint8Array(){const r=$i();return Ut(r,0),ui(r,this.keyClockEncoder.toUint8Array()),ui(r,this.clientEncoder.toUint8Array()),ui(r,this.leftClockEncoder.toUint8Array()),ui(r,this.rightClockEncoder.toUint8Array()),ui(r,Gn(this.infoEncoder)),ui(r,this.stringEncoder.toUint8Array()),ui(r,Gn(this.parentInfoEncoder)),ui(r,this.typeRefEncoder.toUint8Array()),ui(r,this.lenEncoder.toUint8Array()),E3(r,Gn(this.restEncoder)),Gn(r)}writeLeftID(r){this.clientEncoder.write(r.client),this.leftClockEncoder.write(r.clock)}writeRightID(r){this.clientEncoder.write(r.client),this.rightClockEncoder.write(r.clock)}writeClient(r){this.clientEncoder.write(r)}writeInfo(r){this.infoEncoder.write(r)}writeString(r){this.stringEncoder.write(r)}writeParentInfo(r){this.parentInfoEncoder.write(r?1:0)}writeTypeRef(r){this.typeRefEncoder.write(r)}writeLen(r){this.lenEncoder.write(r)}writeAny(r){Mh(this.restEncoder,r)}writeBuf(r){ui(this.restEncoder,r)}writeJSON(r){Mh(this.restEncoder,r)}writeKey(r){const n=this.keyMap.get(r);n===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(r)):this.keyClockEncoder.write(n)}}const RV=(e,r,n,i)=>{i=_a(i,r[0].id.clock);const o=Na(r,i);Ut(e.restEncoder,r.length-o),e.writeClient(n),Ut(e.restEncoder,i);const s=r[o];s.write(e,i-s.id.clock);for(let a=o+1;a<r.length;a++)r[a].write(e,0)},zv=(e,r,n)=>{const i=new Map;n.forEach((o,s)=>{hi(r,s)>o&&i.set(s,o)}),Jf(r).forEach((o,s)=>{n.has(s)||i.set(s,0)}),Ut(e.restEncoder,i.size),b0(i.entries()).sort((o,s)=>s[0]-o[0]).forEach(([o,s])=>{RV(e,r.clients.get(o),o,s)})},BV=(e,r)=>{const n=Ro(),i=pr(e.restDecoder);for(let o=0;o<i;o++){const s=pr(e.restDecoder),a=new Array(s),l=e.readClient();let u=pr(e.restDecoder);n.set(l,{i:0,refs:a});for(let c=0;c<s;c++){const d=e.readInfo();switch(A3&d){case 0:{const h=e.readLen();a[c]=new Vs(fr(l,u),h),u+=h;break}case 10:{const h=pr(e.restDecoder);a[c]=new js(fr(l,u),h),u+=h;break}default:{const h=(d&(p0|Bo))===0,p=new Cn(fr(l,u),null,(d&Bo)===Bo?e.readLeftID():null,null,(d&p0)===p0?e.readRightID():null,h?e.readParentInfo()?r.get(e.readString()):e.readLeftID():null,h&&(d&df)===df?e.readString():null,$N(e,d));a[c]=p,u+=p.length}}}}return n},IV=(e,r,n)=>{const i=[];let o=b0(n.keys()).sort((f,m)=>f-m);if(o.length===0)return null;const s=()=>{if(o.length===0)return null;let f=n.get(o[o.length-1]);for(;f.refs.length===f.i;)if(o.pop(),o.length>0)f=n.get(o[o.length-1]);else return null;return f};let a=s();if(a===null)return null;const l=new bN,u=new Map,c=(f,m)=>{const v=u.get(f);(v==null||v>m)&&u.set(f,m)};let d=a.refs[a.i++];const h=new Map,p=()=>{for(const f of i){const m=f.id.client,v=n.get(m);v?(v.i--,l.clients.set(m,v.refs.slice(v.i)),n.delete(m),v.i=0,v.refs=[]):l.clients.set(m,[f]),o=o.filter(w=>w!==m)}i.length=0};for(;;){if(d.constructor!==js){const f=aa(h,d.id.client,()=>hi(r,d.id.client))-d.id.clock;if(f<0)i.push(d),c(d.id.client,d.id.clock-1),p();else{const m=d.getMissing(e,r);if(m!==null){i.push(d);const v=n.get(m)||{refs:[],i:0};if(v.refs.length===v.i)c(m,hi(r,m)),p();else{d=v.refs[v.i++];continue}}else(f===0||f<d.length)&&(d.integrate(e,f),h.set(d.id.client,d.id.clock+d.length))}}if(i.length>0)d=i.pop();else if(a!==null&&a.i<a.refs.length)d=a.refs[a.i++];else{if(a=s(),a===null)break;d=a.refs[a.i++]}}if(l.clients.size>0){const f=new ed;return zv(f,l,new Map),Ut(f.restEncoder,0),{missing:u,update:f.toUint8Array()}}return null},LV=(e,r)=>zv(e,r.doc.store,r.beforeState),zV=(e,r,n,i=new Ih(e))=>bn(r,o=>{o.local=!1;let s=!1;const a=o.doc,l=a.store,u=BV(i,a),c=IV(o,l,u),d=l.pendingStructs;if(d){for(const[p,f]of d.missing)if(f<hi(l,p)){s=!0;break}if(c){for(const[p,f]of c.missing){const m=d.missing.get(p);(m==null||m>f)&&d.missing.set(p,f)}d.update=j2([d.update,c.update])}}else l.pendingStructs=c;const h=W8(i,o,l);if(l.pendingDs){const p=new Ih(k0(l.pendingDs));pr(p.restDecoder);const f=W8(p,o,l);h&&f?l.pendingDs=j2([h,f]):l.pendingDs=h||f}else l.pendingDs=h;if(s){const p=l.pendingStructs.update;l.pendingStructs=null,V2(o.doc,p)}},n,!1),V2=(e,r,n,i=Ih)=>{const o=k0(r);zV(o,e,n,new i(o))},YV=(e,r,n)=>V2(e,r,n,dN),HV=(e,r,n=new Map)=>{zv(e,r.store,n),up(e,lN(r.store))},PV=(e,r=new Uint8Array([0]),n=new ed)=>{const i=fN(r);HV(n,e,i);const o=[n.toUint8Array()];if(e.store.pendingDs&&o.push(e.store.pendingDs),e.store.pendingStructs&&o.push(oj(e.store.pendingStructs.update,r)),o.length>1){if(n.constructor===Qf)return nj(o.map((s,a)=>a===0?s:aj(s)));if(n.constructor===ed)return j2(o)}return o[0]},Yv=(e,r)=>PV(e,r,new Qf),ZV=e=>{const r=new Map,n=pr(e.restDecoder);for(let i=0;i<n;i++){const o=pr(e.restDecoder),s=pr(e.restDecoder);r.set(o,s)}return r},fN=e=>ZV(new cN(k0(e))),mN=(e,r)=>(Ut(e.restEncoder,r.size),b0(r.entries()).sort((n,i)=>i[0]-n[0]).forEach(([n,i])=>{Ut(e.restEncoder,n),Ut(e.restEncoder,i)}),e),$V=(e,r)=>mN(e,Jf(r.store)),UV=(e,r=new pN)=>(e instanceof Map?mN(r,e):$V(r,e),r.toUint8Array()),gN=e=>UV(e,new hN);class VV{constructor(){this.l=[]}}const K8=()=>new VV,Q8=(e,r)=>e.l.push(r),J8=(e,r)=>{const n=e.l,i=n.length;e.l=n.filter(o=>r!==o),i===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},yN=(e,r,n)=>Dv(e.l,[r,n]);class yh{constructor(r,n){this.client=r,this.clock=n}}const ah=(e,r)=>e===r||e!==null&&r!==null&&e.client===r.client&&e.clock===r.clock,fr=(e,r)=>new yh(e,r),yf=e=>{for(const[r,n]of e.doc.share.entries())if(n===e)return r;throw vo()},Tf=(e,r)=>{for(;r!==null;){if(r.parent===e)return!0;r=r.parent._item}return!1};class bf{constructor(r,n,i,o=0){this.type=r,this.tname=n,this.item=i,this.assoc=o}}const F1=e=>new bf(e.type==null?null:fr(e.type.client,e.type.clock),e.tname??null,e.item==null?null:fr(e.item.client,e.item.clock),e.assoc==null?0:e.assoc);class jV{constructor(r,n,i=0){this.type=r,this.index=n,this.assoc=i}}const GV=(e,r,n=0)=>new jV(e,r,n),Jm=(e,r,n)=>{let i=null,o=null;return e._item===null?o=yf(e):i=fr(e._item.id.client,e._item.id.clock),new bf(i,o,r,n)},r6=(e,r,n=0)=>{let i=e._start;if(n<0){if(r===0)return Jm(e,null,n);r--}for(;i!==null;){if(!i.deleted&&i.countable){if(i.length>r)return Jm(e,fr(i.id.client,i.id.clock+r),n);r-=i.length}if(i.right===null&&n<0)return Jm(e,i.lastId,n);i=i.right}return Jm(e,null,n)},qV=(e,r)=>{const n=Th(e,r),i=r.clock-n.id.clock;return{item:n,diff:i}},WV=(e,r,n=!0)=>{const i=r.store,o=e.item,s=e.type,a=e.tname,l=e.assoc;let u=null,c=0;if(o!==null){if(hi(i,o.client)<=o.clock)return null;const d=n?gT(i,o):qV(i,o),h=d.item;if(!(h instanceof Cn))return null;if(u=h.parent,u._item===null||!u._item.deleted){c=h.deleted||!h.countable?0:d.diff+(l>=0?0:1);let p=h.left;for(;p!==null;)!p.deleted&&p.countable&&(c+=p.length),p=p.left}}else{if(a!==null)u=r.get(a);else if(s!==null){if(hi(i,s.client)<=s.clock)return null;const{item:d}=n?gT(i,s):{item:Th(i,s)};if(d instanceof Cn&&d.content instanceof Ba)u=d.content.type;else return null}else throw vo();l>=0?c=u._length:c=0}return GV(u,c,e.assoc)},X8=(e,r)=>e===r||e!==null&&r!==null&&e.tname===r.tname&&ah(e.item,r.item)&&ah(e.type,r.type)&&e.assoc===r.assoc;class Hv{constructor(r,n){this.ds=r,this.sv=n}}const TN=(e,r)=>new Hv(e,r),n6=e=>TN(lN(e.store),Jf(e.store)),Oc=(e,r)=>r===void 0?!e.deleted:r.sv.has(e.id.client)&&(r.sv.get(e.id.client)||0)>e.id.clock&&!lp(r.ds,e.id),pT=(e,r)=>{const n=aa(e.meta,pT,T0),i=e.doc.store;n.has(r)||(r.sv.forEach((o,s)=>{o<hi(i,s)&&Qo(e,fr(s,o))}),$u(e,r.ds,o=>{}),n.add(r))};class bN{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Jf=e=>{const r=new Map;return e.clients.forEach((n,i)=>{const o=n[n.length-1];r.set(i,o.id.clock+o.length)}),r},hi=(e,r)=>{const n=e.clients.get(r);if(n===void 0)return 0;const i=n[n.length-1];return i.id.clock+i.length},vN=(e,r)=>{let n=e.clients.get(r.id.client);if(n===void 0)n=[],e.clients.set(r.id.client,n);else{const i=n[n.length-1];if(i.id.clock+i.length!==r.id.clock)throw vo()}n.push(r)},Na=(e,r)=>{let n=0,i=e.length-1,o=e[i],s=o.id.clock;if(s===r)return i;let a=ra(r/(s+o.length-1)*i);for(;n<=i;){if(o=e[a],s=o.id.clock,s<=r){if(r<s+o.length)return a;n=a+1}else i=a-1;a=ra((n+i)/2)}throw vo()},KV=(e,r)=>{const n=e.clients.get(r.client);return n[Na(n,r.clock)]},Th=KV,fT=(e,r,n)=>{const i=Na(r,n),o=r[i];return o.id.clock<n&&o instanceof Cn?(r.splice(i+1,0,Q2(e,o,n-o.id.clock)),i+1):i},Qo=(e,r)=>{const n=e.doc.store.clients.get(r.client);return n[fT(e,n,r.clock)]},eE=(e,r,n)=>{const i=r.clients.get(n.client),o=Na(i,n.clock),s=i[o];return n.clock!==s.id.clock+s.length-1&&s.constructor!==Vs&&i.splice(o+1,0,Q2(e,s,n.clock-s.id.clock+1)),s},QV=(e,r,n)=>{const i=e.clients.get(r.id.client);i[Na(i,r.id.clock)]=n},AN=(e,r,n,i,o)=>{if(i===0)return;const s=n+i;let a=fT(e,r,n),l;do l=r[a++],s<l.id.clock+l.length&&fT(e,r,s),o(l);while(a<r.length&&r[a].id.clock<s)};class JV{constructor(r,n,i){this.doc=r,this.deleteSet=new ap,this.beforeState=Jf(r.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=n,this.meta=new Map,this.local=i,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const tE=(e,r)=>r.deleteSet.clients.size===0&&!C$(r.afterState,(n,i)=>r.beforeState.get(i)!==n)?!1:(Iv(r.deleteSet),LV(e,r),up(e,r.deleteSet),!0),rE=(e,r,n)=>{const i=r._item;(i===null||i.id.clock<(e.beforeState.get(i.id.client)||0)&&!i.deleted)&&aa(e.changed,r,T0).add(n)},t2=(e,r)=>{let n=e[r],i=e[r-1],o=r;for(;o>0;n=i,i=e[--o-1]){if(i.deleted===n.deleted&&i.constructor===n.constructor&&i.mergeWith(n)){n instanceof Cn&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,i);continue}break}const s=r-o;return s&&e.splice(r+1-s,s),s},XV=(e,r,n)=>{for(const[i,o]of e.clients.entries()){const s=r.clients.get(i);for(let a=o.length-1;a>=0;a--){const l=o[a],u=l.clock+l.len;for(let c=Na(s,l.clock),d=s[c];c<s.length&&d.id.clock<u;d=s[++c]){const h=s[c];if(l.clock+l.len<=h.id.clock)break;h instanceof Cn&&h.deleted&&!h.keep&&n(h)&&h.gc(r,!1)}}}},ej=(e,r)=>{e.clients.forEach((n,i)=>{const o=r.clients.get(i);for(let s=n.length-1;s>=0;s--){const a=n[s],l=bl(o.length-1,1+Na(o,a.clock+a.len-1));for(let u=l,c=o[u];u>0&&c.id.clock>=a.clock;c=o[u])u-=1+t2(o,u)}})},EN=(e,r)=>{if(r<e.length){const n=e[r],i=n.doc,o=i.store,s=n.deleteSet,a=n._mergeStructs;try{Iv(s),n.afterState=Jf(n.doc.store),i.emit("beforeObserverCalls",[n,i]);const l=[];n.changed.forEach((u,c)=>l.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(n,u)})),l.push(()=>{n.changedParentTypes.forEach((u,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(u=u.filter(d=>d.target._item===null||!d.target._item.deleted),u.forEach(d=>{d.currentTarget=c,d._path=null}),u.sort((d,h)=>d.path.length-h.path.length),l.push(()=>{yN(c._dEH,u,n)}))}),l.push(()=>i.emit("afterTransaction",[n,i])),l.push(()=>{n._needFormattingCleanup&&Aj(n)})}),Dv(l,[])}finally{i.gc&&XV(s,o,i.gcFilter),ej(s,o),n.afterState.forEach((d,h)=>{const p=n.beforeState.get(h)||0;if(p!==d){const f=o.clients.get(h),m=_a(Na(f,p),1);for(let v=f.length-1;v>=m;)v-=1+t2(f,v)}});for(let d=a.length-1;d>=0;d--){const{client:h,clock:p}=a[d].id,f=o.clients.get(h),m=Na(f,p);m+1<f.length&&t2(f,m+1)>1||m>0&&t2(f,m)}if(!n.local&&n.afterState.get(i.clientID)!==n.beforeState.get(i.clientID)&&(NV(Rv,eN,"[yjs] ",tN,rN,"Changed the client-id because another client seems to be using it."),i.clientID=uN()),i.emit("afterTransactionCleanup",[n,i]),i._observers.has("update")){const d=new Qf;tE(d,n)&&i.emit("update",[d.toUint8Array(),n.origin,i,n])}if(i._observers.has("updateV2")){const d=new ed;tE(d,n)&&i.emit("updateV2",[d.toUint8Array(),n.origin,i,n])}const{subdocsAdded:l,subdocsLoaded:u,subdocsRemoved:c}=n;(l.size>0||c.size>0||u.size>0)&&(l.forEach(d=>{d.clientID=i.clientID,d.collectionid==null&&(d.collectionid=i.collectionid),i.subdocs.add(d)}),c.forEach(d=>i.subdocs.delete(d)),i.emit("subdocs",[{loaded:u,added:l,removed:c},i,n]),c.forEach(d=>d.destroy())),e.length<=r+1?(i._transactionCleanups=[],i.emit("afterAllTransactions",[i,e])):EN(e,r+1)}}},bn=(e,r,n=null,i=!0)=>{const o=e._transactionCleanups;let s=!1,a=null;e._transaction===null&&(s=!0,e._transaction=new JV(e,n,i),o.push(e._transaction),o.length===1&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{a=r(e._transaction)}finally{if(s){const l=e._transaction===o[0];e._transaction=null,l&&EN(o,0)}}return a};class tj{constructor(r,n){this.insertions=n,this.deletions=r,this.meta=new Map}}const nE=(e,r,n)=>{$u(e,n.deletions,i=>{i instanceof Cn&&r.scope.some(o=>o===e.doc||Tf(o,i))&&qv(i,!1)})},iE=(e,r,n)=>{let i=null;const o=e.doc,s=e.scope;bn(o,l=>{for(;r.length>0&&e.currStackItem===null;){const u=o.store,c=r.pop(),d=new Set,h=[];let p=!1;$u(l,c.insertions,f=>{if(f instanceof Cn){if(f.redone!==null){let{item:m,diff:v}=gT(u,f.id);v>0&&(m=Qo(l,fr(m.id.client,m.id.clock+v))),f=m}!f.deleted&&s.some(m=>m===l.doc||Tf(m,f))&&h.push(f)}}),$u(l,c.deletions,f=>{f instanceof Cn&&s.some(m=>m===l.doc||Tf(m,f))&&!lp(c.insertions,f.id)&&d.add(f)}),d.forEach(f=>{p=ZN(l,f,d,c.insertions,e.ignoreRemoteMapChanges,e)!==null||p});for(let f=h.length-1;f>=0;f--){const m=h[f];e.deleteFilter(m)&&(m.delete(l),p=!0)}e.currStackItem=p?c:null}l.changed.forEach((u,c)=>{u.has(null)&&c._searchMarker&&(c._searchMarker.length=0)}),i=l},e);const a=e.currStackItem;if(a!=null){const l=i.changedParentTypes;e.emit("stack-item-popped",[{stackItem:a,type:n,changedParentTypes:l,origin:e},e]),e.currStackItem=null}return a};class wN extends E_{constructor(r,{captureTimeout:n=500,captureTransaction:i=u=>!0,deleteFilter:o=()=>!0,trackedOrigins:s=new Set([null]),ignoreRemoteMapChanges:a=!1,doc:l=Oh(r)?r[0].doc:r instanceof tc?r:r.doc}={}){super(),this.scope=[],this.doc=l,this.addToScope(r),this.deleteFilter=o,s.add(this),this.trackedOrigins=s,this.captureTransaction=i,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=a,this.captureTimeout=n,this.afterTransactionHandler=u=>{if(!this.captureTransaction(u)||!this.scope.some(w=>u.changedParentTypes.has(w)||w===this.doc)||!this.trackedOrigins.has(u.origin)&&(!u.origin||!this.trackedOrigins.has(u.origin.constructor)))return;const c=this.undoing,d=this.redoing,h=c?this.redoStack:this.undoStack;c?this.stopCapturing():d||this.clear(!1,!0);const p=new ap;u.afterState.forEach((w,x)=>{const k=u.beforeState.get(x)||0,R=w-k;R>0&&gf(p,x,k,R)});const f=Pu();let m=!1;if(this.lastChange>0&&f-this.lastChange<this.captureTimeout&&h.length>0&&!c&&!d){const w=h[h.length-1];w.deletions=hT([w.deletions,u.deleteSet]),w.insertions=hT([w.insertions,p])}else h.push(new tj(u.deleteSet,p)),m=!0;!c&&!d&&(this.lastChange=f),$u(u,u.deleteSet,w=>{w instanceof Cn&&this.scope.some(x=>x===u.doc||Tf(x,w))&&qv(w,!0)});const v=[{stackItem:h[h.length-1],origin:u.origin,type:c?"redo":"undo",changedParentTypes:u.changedParentTypes},this];m?this.emit("stack-item-added",v):this.emit("stack-item-updated",v)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(r){const n=new Set(this.scope);r=Oh(r)?r:[r],r.forEach(i=>{n.has(i)||(n.add(i),(i instanceof qi?i.doc!==this.doc:i!==this.doc)&&iN("[yjs#509] Not same Y.Doc"),this.scope.push(i))})}addTrackedOrigin(r){this.trackedOrigins.add(r)}removeTrackedOrigin(r){this.trackedOrigins.delete(r)}clear(r=!0,n=!0){(r&&this.canUndo()||n&&this.canRedo())&&this.doc.transact(i=>{r&&(this.undoStack.forEach(o=>nE(i,this,o)),this.undoStack=[]),n&&(this.redoStack.forEach(o=>nE(i,this,o)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:r,redoStackCleared:n}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let r;try{r=iE(this,this.undoStack,"undo")}finally{this.undoing=!1}return r}redo(){this.redoing=!0;let r;try{r=iE(this,this.redoStack,"redo")}finally{this.redoing=!1}return r}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*rj(e){const r=pr(e.restDecoder);for(let n=0;n<r;n++){const i=pr(e.restDecoder),o=e.readClient();let s=pr(e.restDecoder);for(let a=0;a<i;a++){const l=e.readInfo();if(l===10){const u=pr(e.restDecoder);yield new js(fr(o,s),u),s+=u}else if((A3&l)!==0){const u=(l&(p0|Bo))===0,c=new Cn(fr(o,s),null,(l&Bo)===Bo?e.readLeftID():null,null,(l&p0)===p0?e.readRightID():null,u?e.readParentInfo()?e.readString():e.readLeftID():null,u&&(l&df)===df?e.readString():null,$N(e,l));yield c,s+=c.length}else{const u=e.readLen();yield new Vs(fr(o,s),u),s+=u}}}}class Pv{constructor(r,n){this.gen=rj(r),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===js);return this.curr}}class Zv{constructor(r){this.currClient=0,this.startClock=0,this.written=0,this.encoder=r,this.clientStructs=[]}}const nj=e=>j2(e,dN,Qf),ij=(e,r)=>{if(e.constructor===Vs){const{client:n,clock:i}=e.id;return new Vs(fr(n,i+r),e.length-r)}else if(e.constructor===js){const{client:n,clock:i}=e.id;return new js(fr(n,i+r),e.length-r)}else{const n=e,{client:i,clock:o}=n.id;return new Cn(fr(i,o+r),null,fr(i,o+r-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(r))}},j2=(e,r=Ih,n=ed)=>{if(e.length===1)return e[0];const i=e.map(d=>new r(k0(d)));let o=i.map(d=>new Pv(d,!0)),s=null;const a=new n,l=new Zv(a);for(;o=o.filter(d=>d.curr!==null),o.sort((d,h)=>{if(d.curr.id.client===h.curr.id.client){const p=d.curr.id.clock-h.curr.id.clock;return p===0?d.curr.constructor===h.curr.constructor?0:d.curr.constructor===js?1:-1:p}else return h.curr.id.client-d.curr.id.client}),o.length!==0;){const d=o[0],h=d.curr.id.client;if(s!==null){let p=d.curr,f=!1;for(;p!==null&&p.id.clock+p.length<=s.struct.id.clock+s.struct.length&&p.id.client>=s.struct.id.client;)p=d.next(),f=!0;if(p===null||p.id.client!==h||f&&p.id.clock>s.struct.id.clock+s.struct.length)continue;if(h!==s.struct.id.client)du(l,s.struct,s.offset),s={struct:p,offset:0},d.next();else if(s.struct.id.clock+s.struct.length<p.id.clock)if(s.struct.constructor===js)s.struct.length=p.id.clock+p.length-s.struct.id.clock;else{du(l,s.struct,s.offset);const m=p.id.clock-s.struct.id.clock-s.struct.length;s={struct:new js(fr(h,s.struct.id.clock+s.struct.length),m),offset:0}}else{const m=s.struct.id.clock+s.struct.length-p.id.clock;m>0&&(s.struct.constructor===js?s.struct.length-=m:p=ij(p,m)),s.struct.mergeWith(p)||(du(l,s.struct,s.offset),s={struct:p,offset:0},d.next())}}else s={struct:d.curr,offset:0},d.next();for(let p=d.curr;p!==null&&p.id.client===h&&p.id.clock===s.struct.id.clock+s.struct.length&&p.constructor!==js;p=d.next())du(l,s.struct,s.offset),s={struct:p,offset:0}}s!==null&&(du(l,s.struct,s.offset),s=null),$v(l);const u=i.map(d=>Lv(d)),c=hT(u);return up(a,c),a.toUint8Array()},oj=(e,r,n=Ih,i=ed)=>{const o=fN(r),s=new i,a=new Zv(s),l=new n(k0(e)),u=new Pv(l,!1);for(;u.curr;){const d=u.curr,h=d.id.client,p=o.get(h)||0;if(u.curr.constructor===js){u.next();continue}if(d.id.clock+d.length>p)for(du(a,d,_a(p-d.id.clock,0)),u.next();u.curr&&u.curr.id.client===h;)du(a,u.curr,0),u.next();else for(;u.curr&&u.curr.id.client===h&&u.curr.id.clock+u.curr.length<=p;)u.next()}$v(a);const c=Lv(l);return up(s,c),s.toUint8Array()},SN=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:Gn(e.encoder.restEncoder)}),e.encoder.restEncoder=$i(),e.written=0)},du=(e,r,n)=>{e.written>0&&e.currClient!==r.id.client&&SN(e),e.written===0&&(e.currClient=r.id.client,e.encoder.writeClient(r.id.client),Ut(e.encoder.restEncoder,r.id.clock+n)),r.write(e.encoder,n),e.written++},$v=e=>{SN(e);const r=e.encoder.restEncoder;Ut(r,e.clientStructs.length);for(let n=0;n<e.clientStructs.length;n++){const i=e.clientStructs[n];Ut(r,i.written),E3(r,i.restEncoder)}},sj=(e,r,n,i)=>{const o=new n(k0(e)),s=new Pv(o,!1),a=new i,l=new Zv(a);for(let c=s.curr;c!==null;c=s.next())du(l,r(c),0);$v(l);const u=Lv(o);return up(a,u),a.toUint8Array()},aj=e=>sj(e,DU,Ih,Qf),oE="You must not compute changes after the event-handler fired.";class _3{constructor(r,n){this.target=r,this.currentTarget=r,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=lj(this.currentTarget,this.target))}deletes(r){return lp(this.transaction.deleteSet,r.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw kl(oE);const r=new Map,n=this.target;this.transaction.changed.get(n).forEach(i=>{if(i!==null){const o=n._map.get(i);let s,a;if(this.adds(o)){let l=o.left;for(;l!==null&&this.adds(l);)l=l.left;if(this.deletes(o))if(l!==null&&this.deletes(l))s="delete",a=q5(l.content.getContent());else return;else l!==null&&this.deletes(l)?(s="update",a=q5(l.content.getContent())):(s="add",a=void 0)}else if(this.deletes(o))s="delete",a=q5(o.content.getContent());else return;r.set(i,{action:s,oldValue:a})}}),this._keys=r}return this._keys}get delta(){return this.changes.delta}adds(r){return r.id.clock>=(this.transaction.beforeState.get(r.id.client)||0)}get changes(){let r=this._changes;if(r===null){if(this.transaction.doc._transactionCleanups.length===0)throw kl(oE);const n=this.target,i=T0(),o=T0(),s=[];if(r={added:i,deleted:o,delta:s,keys:this.keys},this.transaction.changed.get(n).has(null)){let a=null;const l=()=>{a&&s.push(a)};for(let u=n._start;u!==null;u=u.right)u.deleted?this.deletes(u)&&!this.adds(u)&&((a===null||a.delete===void 0)&&(l(),a={delete:0}),a.delete+=u.length,o.add(u)):this.adds(u)?((a===null||a.insert===void 0)&&(l(),a={insert:[]}),a.insert=a.insert.concat(u.content.getContent()),i.add(u)):((a===null||a.retain===void 0)&&(l(),a={retain:0}),a.retain+=u.length);a!==null&&a.retain===void 0&&l()}this._changes=r}return r}}const lj=(e,r)=>{const n=[];for(;r._item!==null&&r!==e;){if(r._item.parentSub!==null)n.unshift(r._item.parentSub);else{let i=0,o=r._item.parent._start;for(;o!==r._item&&o!==null;)!o.deleted&&o.countable&&(i+=o.length),o=o.right;n.unshift(i)}r=r._item.parent}return n},To=()=>{iN("Invalid access: Add Yjs type to a document before reading data.")},DN=80;let Uv=0;class uj{constructor(r,n){r.marker=!0,this.p=r,this.index=n,this.timestamp=Uv++}}const cj=e=>{e.timestamp=Uv++},xN=(e,r,n)=>{e.p.marker=!1,e.p=r,r.marker=!0,e.index=n,e.timestamp=Uv++},dj=(e,r,n)=>{if(e.length>=DN){const i=e.reduce((o,s)=>o.timestamp<s.timestamp?o:s);return xN(i,r,n),i}else{const i=new uj(r,n);return e.push(i),i}},N3=(e,r)=>{if(e._start===null||r===0||e._searchMarker===null)return null;const n=e._searchMarker.length===0?null:e._searchMarker.reduce((s,a)=>Jg(r-s.index)<Jg(r-a.index)?s:a);let i=e._start,o=0;for(n!==null&&(i=n.p,o=n.index,cj(n));i.right!==null&&o<r;){if(!i.deleted&&i.countable){if(r<o+i.length)break;o+=i.length}i=i.right}for(;i.left!==null&&o>r;)i=i.left,!i.deleted&&i.countable&&(o-=i.length);for(;i.left!==null&&i.left.id.client===i.id.client&&i.left.id.clock+i.left.length===i.id.clock;)i=i.left,!i.deleted&&i.countable&&(o-=i.length);return n!==null&&Jg(n.index-o)<i.parent.length/DN?(xN(n,i,o),n):dj(e._searchMarker,i,o)},vf=(e,r,n)=>{for(let i=e.length-1;i>=0;i--){const o=e[i];if(n>0){let s=o.p;for(s.marker=!1;s&&(s.deleted||!s.countable);)s=s.left,s&&!s.deleted&&s.countable&&(o.index-=s.length);if(s===null||s.marker===!0){e.splice(i,1);continue}o.p=s,s.marker=!0}(r<o.index||n>0&&r===o.index)&&(o.index=_a(r,o.index+n))}},F3=(e,r,n)=>{const i=e,o=r.changedParentTypes;for(;aa(o,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;yN(i._eH,n,r)};class qi{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=K8(),this._dEH=K8(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(r,n){this.doc=r,this._item=n}_copy(){throw Qs()}clone(){throw Qs()}_write(r){}get _first(){let r=this._start;for(;r!==null&&r.deleted;)r=r.right;return r}_callObserver(r,n){!r.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(r){Q8(this._eH,r)}observeDeep(r){Q8(this._dEH,r)}unobserve(r){J8(this._eH,r)}unobserveDeep(r){J8(this._dEH,r)}toJSON(){}}const kN=(e,r,n)=>{e.doc??To(),r<0&&(r=e._length+r),n<0&&(n=e._length+n);let i=n-r;const o=[];let s=e._start;for(;s!==null&&i>0;){if(s.countable&&!s.deleted){const a=s.content.getContent();if(a.length<=r)r-=a.length;else{for(let l=r;l<a.length&&i>0;l++)o.push(a[l]),i--;r=0}}s=s.right}return o},CN=e=>{e.doc??To();const r=[];let n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){const i=n.content.getContent();for(let o=0;o<i.length;o++)r.push(i[o])}n=n.right}return r},_N=(e,r)=>{const n=[];let i=e._start;for(;i!==null;){if(i.countable&&Oc(i,r)){const o=i.content.getContent();for(let s=0;s<o.length;s++)n.push(o[s])}i=i.right}return n},Af=(e,r)=>{let n=0,i=e._start;for(e.doc??To();i!==null;){if(i.countable&&!i.deleted){const o=i.content.getContent();for(let s=0;s<o.length;s++)r(o[s],n++,e)}i=i.right}},NN=(e,r)=>{const n=[];return Af(e,(i,o)=>{n.push(r(i,o,e))}),n},hj=e=>{let r=e._start,n=null,i=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;r!==null&&r.deleted;)r=r.right;if(r===null)return{done:!0,value:void 0};n=r.content.getContent(),i=0,r=r.right}const o=n[i++];return n.length<=i&&(n=null),{done:!1,value:o}}}},FN=(e,r)=>{e.doc??To();const n=N3(e,r);let i=e._start;for(n!==null&&(i=n.p,r-=n.index);i!==null;i=i.right)if(!i.deleted&&i.countable){if(r<i.length)return i.content.getContent()[r];r-=i.length}},G2=(e,r,n,i)=>{let o=n;const s=e.doc,a=s.clientID,l=s.store,u=n===null?r._start:n.right;let c=[];const d=()=>{c.length>0&&(o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new rd(c)),o.integrate(e,0),c=[])};i.forEach(h=>{if(h===null)c.push(h);else switch(h.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(h);break;default:switch(d(),h.constructor){case Uint8Array:case ArrayBuffer:o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new Xf(new Uint8Array(h))),o.integrate(e,0);break;case tc:o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new em(h)),o.integrate(e,0);break;default:if(h instanceof qi)o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new Ba(h)),o.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),d()},ON=()=>kl("Length exceeded!"),MN=(e,r,n,i)=>{if(n>r._length)throw ON();if(n===0)return r._searchMarker&&vf(r._searchMarker,n,i.length),G2(e,r,null,i);const o=n,s=N3(r,n);let a=r._start;for(s!==null&&(a=s.p,n-=s.index,n===0&&(a=a.prev,n+=a&&a.countable&&!a.deleted?a.length:0));a!==null;a=a.right)if(!a.deleted&&a.countable){if(n<=a.length){n<a.length&&Qo(e,fr(a.id.client,a.id.clock+n));break}n-=a.length}return r._searchMarker&&vf(r._searchMarker,o,i.length),G2(e,r,a,i)},pj=(e,r,n)=>{let i=(r._searchMarker||[]).reduce((o,s)=>s.index>o.index?s:o,{index:0,p:r._start}).p;if(i)for(;i.right;)i=i.right;return G2(e,r,i,n)},RN=(e,r,n,i)=>{if(i===0)return;const o=n,s=i,a=N3(r,n);let l=r._start;for(a!==null&&(l=a.p,n-=a.index);l!==null&&n>0;l=l.right)!l.deleted&&l.countable&&(n<l.length&&Qo(e,fr(l.id.client,l.id.clock+n)),n-=l.length);for(;i>0&&l!==null;)l.deleted||(i<l.length&&Qo(e,fr(l.id.client,l.id.clock+i)),l.delete(e),i-=l.length),l=l.right;if(i>0)throw ON();r._searchMarker&&vf(r._searchMarker,o,-s+i)},q2=(e,r,n)=>{const i=r._map.get(n);i!==void 0&&i.delete(e)},Vv=(e,r,n,i)=>{const o=r._map.get(n)||null,s=e.doc,a=s.clientID;let l;if(i==null)l=new rd([i]);else switch(i.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:l=new rd([i]);break;case Uint8Array:l=new Xf(i);break;case tc:l=new em(i);break;default:if(i instanceof qi)l=new Ba(i);else throw new Error("Unexpected content type")}new Cn(fr(a,hi(s.store,a)),o,o&&o.lastId,null,null,r,n,l).integrate(e,0)},jv=(e,r)=>{e.doc??To();const n=e._map.get(r);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},BN=e=>{const r={};return e.doc??To(),e._map.forEach((n,i)=>{n.deleted||(r[i]=n.content.getContent()[n.length-1])}),r},IN=(e,r)=>{e.doc??To();const n=e._map.get(r);return n!==void 0&&!n.deleted},fj=(e,r)=>{const n={};return e._map.forEach((i,o)=>{let s=i;for(;s!==null&&(!r.sv.has(s.id.client)||s.id.clock>=(r.sv.get(s.id.client)||0));)s=s.left;s!==null&&Oc(s,r)&&(n[o]=s.content.getContent()[s.length-1])}),n},Xm=e=>(e.doc??To(),FV(e._map.entries(),r=>!r[1].deleted));class mj extends _3{}class bh extends qi{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(r){const n=new bh;return n.push(r),n}_integrate(r,n){super._integrate(r,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new bh}clone(){const r=new bh;return r.insert(0,this.toArray().map(n=>n instanceof qi?n.clone():n)),r}get length(){return this.doc??To(),this._length}_callObserver(r,n){super._callObserver(r,n),F3(this,r,new mj(this,r))}insert(r,n){this.doc!==null?bn(this.doc,i=>{MN(i,this,r,n)}):this._prelimContent.splice(r,0,...n)}push(r){this.doc!==null?bn(this.doc,n=>{pj(n,this,r)}):this._prelimContent.push(...r)}unshift(r){this.insert(0,r)}delete(r,n=1){this.doc!==null?bn(this.doc,i=>{RN(i,this,r,n)}):this._prelimContent.splice(r,n)}get(r){return FN(this,r)}toArray(){return CN(this)}slice(r=0,n=this.length){return kN(this,r,n)}toJSON(){return this.map(r=>r instanceof qi?r.toJSON():r)}map(r){return NN(this,r)}forEach(r){Af(this,r)}[Symbol.iterator](){return hj(this)}_write(r){r.writeTypeRef(Hj)}}const gj=e=>new bh;class yj extends _3{constructor(r,n,i){super(r,n),this.keysChanged=i}}class Lh extends qi{constructor(r){super(),this._prelimContent=null,r===void 0?this._prelimContent=new Map:this._prelimContent=new Map(r)}_integrate(r,n){super._integrate(r,n),this._prelimContent.forEach((i,o)=>{this.set(o,i)}),this._prelimContent=null}_copy(){return new Lh}clone(){const r=new Lh;return this.forEach((n,i)=>{r.set(i,n instanceof qi?n.clone():n)}),r}_callObserver(r,n){F3(this,r,new yj(this,r,n))}toJSON(){this.doc??To();const r={};return this._map.forEach((n,i)=>{if(!n.deleted){const o=n.content.getContent()[n.length-1];r[i]=o instanceof qi?o.toJSON():o}}),r}get size(){return[...Xm(this)].length}keys(){return t6(Xm(this),r=>r[0])}values(){return t6(Xm(this),r=>r[1].content.getContent()[r[1].length-1])}entries(){return t6(Xm(this),r=>[r[0],r[1].content.getContent()[r[1].length-1]])}forEach(r){this.doc??To(),this._map.forEach((n,i)=>{n.deleted||r(n.content.getContent()[n.length-1],i,this)})}[Symbol.iterator](){return this.entries()}delete(r){this.doc!==null?bn(this.doc,n=>{q2(n,this,r)}):this._prelimContent.delete(r)}set(r,n){return this.doc!==null?bn(this.doc,i=>{Vv(i,this,r,n)}):this._prelimContent.set(r,n),n}get(r){return jv(this,r)}has(r){return IN(this,r)}clear(){this.doc!==null?bn(this.doc,r=>{this.forEach(function(n,i,o){q2(r,o,i)})}):this._prelimContent.clear()}_write(r){r.writeTypeRef(Pj)}}const Tj=e=>new Lh,vu=(e,r)=>e===r||typeof e=="object"&&typeof r=="object"&&e&&r&&wU(e,r);class mT{constructor(r,n,i,o){this.left=r,this.right=n,this.index=i,this.currentAttributes=o}forward(){(this.right===null&&vo(),this.right.content.constructor)===Ei?this.right.deleted||cp(this.currentAttributes,this.right.content):this.right.deleted||(this.index+=this.right.length),this.left=this.right,this.right=this.right.right}}const sE=(e,r,n)=>{for(;r.right!==null&&n>0;)r.right.content.constructor===Ei?r.right.deleted||cp(r.currentAttributes,r.right.content):r.right.deleted||(n<r.right.length&&Qo(e,fr(r.right.id.client,r.right.id.clock+n)),r.index+=r.right.length,n-=r.right.length),r.left=r.right,r.right=r.right.right;return r},eg=(e,r,n,i)=>{const o=new Map,s=i?N3(r,n):null;if(s){const a=new mT(s.p.left,s.p,s.index,o);return sE(e,a,n-s.index)}else{const a=new mT(null,r._start,0,o);return sE(e,a,n)}},LN=(e,r,n,i)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===Ei&&vu(i.get(n.right.content.key),n.right.content.value));)n.right.deleted||i.delete(n.right.content.key),n.forward();const o=e.doc,s=o.clientID;i.forEach((a,l)=>{const u=n.left,c=n.right,d=new Cn(fr(s,hi(o.store,s)),u,u&&u.lastId,c,c&&c.id,r,null,new Ei(l,a));d.integrate(e,0),n.right=d,n.forward()})},cp=(e,r)=>{const{key:n,value:i}=r;i===null?e.delete(n):e.set(n,i)},zN=(e,r)=>{for(;e.right!==null&&(e.right.deleted||e.right.content.constructor===Ei&&vu(r[e.right.content.key]??null,e.right.content.value));)e.forward()},YN=(e,r,n,i)=>{const o=e.doc,s=o.clientID,a=new Map;for(const l in i){const u=i[l],c=n.currentAttributes.get(l)??null;if(!vu(c,u)){a.set(l,c);const{left:d,right:h}=n;n.right=new Cn(fr(s,hi(o.store,s)),d,d&&d.lastId,h,h&&h.id,r,null,new Ei(l,u)),n.right.integrate(e,0),n.forward()}}return a},i6=(e,r,n,i,o)=>{n.currentAttributes.forEach((p,f)=>{o[f]===void 0&&(o[f]=null)});const s=e.doc,a=s.clientID;zN(n,o);const l=YN(e,r,n,o),u=i.constructor===String?new Fa(i):i instanceof qi?new Ba(i):new dd(i);let{left:c,right:d,index:h}=n;r._searchMarker&&vf(r._searchMarker,n.index,u.getLength()),d=new Cn(fr(a,hi(s.store,a)),c,c&&c.lastId,d,d&&d.id,r,null,u),d.integrate(e,0),n.right=d,n.index=h,n.forward(),LN(e,r,n,l)},aE=(e,r,n,i,o)=>{const s=e.doc,a=s.clientID;zN(n,o);const l=YN(e,r,n,o);e:for(;n.right!==null&&(i>0||l.size>0&&(n.right.deleted||n.right.content.constructor===Ei));){if(!n.right.deleted)switch(n.right.content.constructor){case Ei:{const{key:u,value:c}=n.right.content,d=o[u];if(d!==void 0){if(vu(d,c))l.delete(u);else{if(i===0)break e;l.set(u,c)}n.right.delete(e)}else n.currentAttributes.set(u,c);break}default:i<n.right.length&&Qo(e,fr(n.right.id.client,n.right.id.clock+i)),i-=n.right.length;break}n.forward()}if(i>0){let u="";for(;i>0;i--)u+=` `;n.right=new Cn(fr(a,hi(s.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,r,null,new Fa(u)),n.right.integrate(e,0),n.forward()}LN(e,r,n,l)},HN=(e,r,n,i,o)=>{let s=r;const a=Ro();for(;s&&(!s.countable||s.deleted);){if(!s.deleted&&s.content.constructor===Ei){const c=s.content;a.set(c.key,c)}s=s.right}let l=0,u=!1;for(;r!==s;){if(n===r&&(u=!0),!r.deleted){const c=r.content;if(c.constructor===Ei){const{key:d,value:h}=c,p=i.get(d)??null;(a.get(d)!==c||p===h)&&(r.delete(e),l++,!u&&(o.get(d)??null)===h&&p!==h&&(p===null?o.delete(d):o.set(d,p))),!u&&!r.deleted&&cp(o,c)}}r=r.right}return l},bj=(e,r)=>{for(;r&&r.right&&(r.right.deleted||!r.right.countable);)r=r.right;const n=new Set;for(;r&&(r.deleted||!r.countable);){if(!r.deleted&&r.content.constructor===Ei){const i=r.content.key;n.has(i)?r.delete(e):n.add(i)}r=r.left}},vj=e=>{let r=0;return bn(e.doc,n=>{let i=e._start,o=e._start,s=Ro();const a=sT(s);for(;o;)o.deleted===!1&&(o.content.constructor===Ei?cp(a,o.content):(r+=HN(n,i,o,s,a),s=sT(a),i=o)),o=o.right}),r},Aj=e=>{const r=new Set,n=e.doc;for(const[i,o]of e.afterState.entries()){const s=e.beforeState.get(i)||0;o!==s&&AN(e,n.store.clients.get(i),s,o,a=>{!a.deleted&&a.content.constructor===Ei&&a.constructor!==Vs&&r.add(a.parent)})}bn(n,i=>{$u(e,e.deleteSet,o=>{if(o instanceof Vs||!o.parent._hasFormatting||r.has(o.parent))return;const s=o.parent;o.content.constructor===Ei?r.add(s):bj(i,o)});for(const o of r)vj(o)})},lE=(e,r,n)=>{const i=n,o=sT(r.currentAttributes),s=r.right;for(;n>0&&r.right!==null;){if(r.right.deleted===!1)switch(r.right.content.constructor){case Ba:case dd:case Fa:n<r.right.length&&Qo(e,fr(r.right.id.client,r.right.id.clock+n)),n-=r.right.length,r.right.delete(e);break}r.forward()}s&&HN(e,s,r.right,o,r.currentAttributes);const a=(r.left||r.right).parent;return a._searchMarker&&vf(a._searchMarker,r.index,-i+n),r};class Ej extends _3{constructor(r,n,i){super(r,n),this.childListChanged=!1,this.keysChanged=new Set,i.forEach(o=>{o===null?this.childListChanged=!0:this.keysChanged.add(o)})}get changes(){if(this._changes===null){const r={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=r}return this._changes}get delta(){if(this._delta===null){const r=this.target.doc,n=[];bn(r,i=>{const o=new Map,s=new Map;let a=this.target._start,l=null;const u={};let c="",d=0,h=0;const p=()=>{if(l!==null){let f=null;switch(l){case"delete":h>0&&(f={delete:h}),h=0;break;case"insert":(typeof c=="object"||c.length>0)&&(f={insert:c},o.size>0&&(f.attributes={},o.forEach((m,v)=>{m!==null&&(f.attributes[v]=m)}))),c="";break;case"retain":d>0&&(f={retain:d},EU(u)||(f.attributes=bU({},u))),d=0;break}f&&n.push(f),l=null}};for(;a!==null;){switch(a.content.constructor){case Ba:case dd:this.adds(a)?this.deletes(a)||(p(),l="insert",c=a.content.getContent()[0],p()):this.deletes(a)?(l!=="delete"&&(p(),l="delete"),h+=1):a.deleted||(l!=="retain"&&(p(),l="retain"),d+=1);break;case Fa:this.adds(a)?this.deletes(a)||(l!=="insert"&&(p(),l="insert"),c+=a.content.str):this.deletes(a)?(l!=="delete"&&(p(),l="delete"),h+=a.length):a.deleted||(l!=="retain"&&(p(),l="retain"),d+=a.length);break;case Ei:{const{key:f,value:m}=a.content;if(this.adds(a)){if(!this.deletes(a)){const v=o.get(f)??null;vu(v,m)?m!==null&&a.delete(i):(l==="retain"&&p(),vu(m,s.get(f)??null)?delete u[f]:u[f]=m)}}else if(this.deletes(a)){s.set(f,m);const v=o.get(f)??null;vu(v,m)||(l==="retain"&&p(),u[f]=v)}else if(!a.deleted){s.set(f,m);const v=u[f];v!==void 0&&(vu(v,m)?v!==null&&a.delete(i):(l==="retain"&&p(),m===null?delete u[f]:u[f]=m))}a.deleted||(l==="insert"&&p(),cp(o,a.content));break}}a=a.right}for(p();n.length>0;){const f=n[n.length-1];if(f.retain!==void 0&&f.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class Uu extends qi{constructor(r){super(),this._pending=r!==void 0?[()=>this.insert(0,r)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??To(),this._length}_integrate(r,n){super._integrate(r,n);try{this._pending.forEach(i=>i())}catch(i){console.error(i)}this._pending=null}_copy(){return new Uu}clone(){const r=new Uu;return r.applyDelta(this.toDelta()),r}_callObserver(r,n){super._callObserver(r,n);const i=new Ej(this,r,n);F3(this,r,i),!r.local&&this._hasFormatting&&(r._needFormattingCleanup=!0)}toString(){this.doc??To();let r="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===Fa&&(r+=n.content.str),n=n.right;return r}toJSON(){return this.toString()}applyDelta(r,{sanitize:n=!0}={}){this.doc!==null?bn(this.doc,i=>{const o=new mT(null,this._start,0,new Map);for(let s=0;s<r.length;s++){const a=r[s];if(a.insert!==void 0){const l=!n&&typeof a.insert=="string"&&s===r.length-1&&o.right===null&&a.insert.slice(-1)===` `?a.insert.slice(0,-1):a.insert;(typeof l!="string"||l.length>0)&&i6(i,this,o,l,a.attributes||{})}else a.retain!==void 0?aE(i,this,o,a.retain,a.attributes||{}):a.delete!==void 0&&lE(i,o,a.delete)}}):this._pending.push(()=>this.applyDelta(r))}toDelta(r,n,i){this.doc??To();const o=[],s=new Map,a=this.doc;let l="",u=this._start;function c(){if(l.length>0){const h={};let p=!1;s.forEach((m,v)=>{p=!0,h[v]=m});const f={insert:l};p&&(f.attributes=h),o.push(f),l=""}}const d=()=>{for(;u!==null;){if(Oc(u,r)||n!==void 0&&Oc(u,n))switch(u.content.constructor){case Fa:{const h=s.get("ychange");r!==void 0&&!Oc(u,r)?(h===void 0||h.user!==u.id.client||h.type!=="removed")&&(c(),s.set("ychange",i?i("removed",u.id):{type:"removed"})):n!==void 0&&!Oc(u,n)?(h===void 0||h.user!==u.id.client||h.type!=="added")&&(c(),s.set("ychange",i?i("added",u.id):{type:"added"})):h!==void 0&&(c(),s.delete("ychange")),l+=u.content.str;break}case Ba:case dd:{c();const h={insert:u.content.getContent()[0]};if(s.size>0){const p={};h.attributes=p,s.forEach((f,m)=>{p[m]=f})}o.push(h);break}case Ei:Oc(u,r)&&(c(),cp(s,u.content));break}u=u.right}c()};return r||n?bn(a,h=>{r&&pT(h,r),n&&pT(h,n),d()},"cleanup"):d(),o}insert(r,n,i){if(n.length<=0)return;const o=this.doc;o!==null?bn(o,s=>{const a=eg(s,this,r,!i);i||(i={},a.currentAttributes.forEach((l,u)=>{i[u]=l})),i6(s,this,a,n,i)}):this._pending.push(()=>this.insert(r,n,i))}insertEmbed(r,n,i){const o=this.doc;o!==null?bn(o,s=>{const a=eg(s,this,r,!i);i6(s,this,a,n,i||{})}):this._pending.push(()=>this.insertEmbed(r,n,i||{}))}delete(r,n){if(n===0)return;const i=this.doc;i!==null?bn(i,o=>{lE(o,eg(o,this,r,!0),n)}):this._pending.push(()=>this.delete(r,n))}format(r,n,i){if(n===0)return;const o=this.doc;o!==null?bn(o,s=>{const a=eg(s,this,r,!1);a.right!==null&&aE(s,this,a,n,i)}):this._pending.push(()=>this.format(r,n,i))}removeAttribute(r){this.doc!==null?bn(this.doc,n=>{q2(n,this,r)}):this._pending.push(()=>this.removeAttribute(r))}setAttribute(r,n){this.doc!==null?bn(this.doc,i=>{Vv(i,this,r,n)}):this._pending.push(()=>this.setAttribute(r,n))}getAttribute(r){return jv(this,r)}getAttributes(){return BN(this)}_write(r){r.writeTypeRef(Zj)}}const wj=e=>new Uu;class o6{constructor(r,n=()=>!0){this._filter=n,this._root=r,this._currentNode=r._start,this._firstCall=!0,r.doc??To()}[Symbol.iterator](){return this}next(){let r=this._currentNode,n=r&&r.content&&r.content.type;if(r!==null&&(!this._firstCall||r.deleted||!this._filter(n)))do if(n=r.content.type,!r.deleted&&(n.constructor===yo||n.constructor===td)&&n._start!==null)r=n._start;else for(;r!==null;){const i=r.next;if(i!==null){r=i;break}else r.parent===this._root?r=null:r=r.parent._item}while(r!==null&&(r.deleted||!this._filter(r.content.type)));return this._firstCall=!1,r===null?{value:void 0,done:!0}:(this._currentNode=r,{value:r.content.type,done:!1})}}class td extends qi{constructor(){super(),this._prelimContent=[]}get firstChild(){const r=this._first;return r?r.content.getContent()[0]:null}_integrate(r,n){super._integrate(r,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new td}clone(){const r=new td;return r.insert(0,this.toArray().map(n=>n instanceof qi?n.clone():n)),r}get length(){return this.doc??To(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(r){return new o6(this,r)}querySelector(r){r=r.toUpperCase();const n=new o6(this,i=>i.nodeName&&i.nodeName.toUpperCase()===r).next();return n.done?null:n.value}querySelectorAll(r){return r=r.toUpperCase(),b0(new o6(this,n=>n.nodeName&&n.nodeName.toUpperCase()===r))}_callObserver(r,n){F3(this,r,new xj(this,n,r))}toString(){return NN(this,r=>r.toString()).join("")}toJSON(){return this.toString()}toDOM(r=document,n={},i){const o=r.createDocumentFragment();return i!==void 0&&i._createAssociation(o,this),Af(this,s=>{o.insertBefore(s.toDOM(r,n,i),null)}),o}insert(r,n){this.doc!==null?bn(this.doc,i=>{MN(i,this,r,n)}):this._prelimContent.splice(r,0,...n)}insertAfter(r,n){if(this.doc!==null)bn(this.doc,i=>{const o=r&&r instanceof qi?r._item:r;G2(i,this,o,n)});else{const i=this._prelimContent,o=r===null?0:i.findIndex(s=>s===r)+1;if(o===0&&r!==null)throw kl("Reference item not found");i.splice(o,0,...n)}}delete(r,n=1){this.doc!==null?bn(this.doc,i=>{RN(i,this,r,n)}):this._prelimContent.splice(r,n)}toArray(){return CN(this)}push(r){this.insert(this.length,r)}unshift(r){this.insert(0,r)}get(r){return FN(this,r)}slice(r=0,n=this.length){return kN(this,r,n)}forEach(r){Af(this,r)}_write(r){r.writeTypeRef(Uj)}}const Sj=e=>new td;class yo extends td{constructor(r="UNDEFINED"){super(),this.nodeName=r,this._prelimAttrs=new Map}get nextSibling(){const r=this._item?this._item.next:null;return r?r.content.type:null}get prevSibling(){const r=this._item?this._item.prev:null;return r?r.content.type:null}_integrate(r,n){super._integrate(r,n),this._prelimAttrs.forEach((i,o)=>{this.setAttribute(o,i)}),this._prelimAttrs=null}_copy(){return new yo(this.nodeName)}clone(){const r=new yo(this.nodeName),n=this.getAttributes();return vU(n,(i,o)=>{r.setAttribute(o,i)}),r.insert(0,this.toArray().map(i=>i instanceof qi?i.clone():i)),r}toString(){const r=this.getAttributes(),n=[],i=[];for(const l in r)i.push(l);i.sort();const o=i.length;for(let l=0;l<o;l++){const u=i[l];n.push(u+'="'+r[u]+'"')}const s=this.nodeName.toLocaleLowerCase(),a=n.length>0?" "+n.join(" "):"";return`<${s}${a}>${super.toString()}</${s}>`}removeAttribute(r){this.doc!==null?bn(this.doc,n=>{q2(n,this,r)}):this._prelimAttrs.delete(r)}setAttribute(r,n){this.doc!==null?bn(this.doc,i=>{Vv(i,this,r,n)}):this._prelimAttrs.set(r,n)}getAttribute(r){return jv(this,r)}hasAttribute(r){return IN(this,r)}getAttributes(r){return r?fj(this,r):BN(this)}toDOM(r=document,n={},i){const o=r.createElement(this.nodeName),s=this.getAttributes();for(const a in s){const l=s[a];typeof l=="string"&&o.setAttribute(a,l)}return Af(this,a=>{o.appendChild(a.toDOM(r,n,i))}),i!==void 0&&i._createAssociation(o,this),o}_write(r){r.writeTypeRef($j),r.writeKey(this.nodeName)}}const Dj=e=>new yo(e.readKey());class xj extends _3{constructor(r,n,i){super(r,i),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(o=>{o===null?this.childListChanged=!0:this.attributesChanged.add(o)})}}class W2 extends Lh{constructor(r){super(),this.hookName=r}_copy(){return new W2(this.hookName)}clone(){const r=new W2(this.hookName);return this.forEach((n,i)=>{r.set(i,n)}),r}toDOM(r=document,n={},i){const o=n[this.hookName];let s;return o!==void 0?s=o.createDom(this):s=document.createElement(this.hookName),s.setAttribute("data-yjs-hook",this.hookName),i!==void 0&&i._createAssociation(s,this),s}_write(r){r.writeTypeRef(Vj),r.writeKey(this.hookName)}}const kj=e=>new W2(e.readKey());class ts extends Uu{get nextSibling(){const r=this._item?this._item.next:null;return r?r.content.type:null}get prevSibling(){const r=this._item?this._item.prev:null;return r?r.content.type:null}_copy(){return new ts}clone(){const r=new ts;return r.applyDelta(this.toDelta()),r}toDOM(r=document,n,i){const o=r.createTextNode(this.toString());return i!==void 0&&i._createAssociation(o,this),o}toString(){return this.toDelta().map(r=>{const n=[];for(const o in r.attributes){const s=[];for(const a in r.attributes[o])s.push({key:a,value:r.attributes[o][a]});s.sort((a,l)=>a.key<l.key?-1:1),n.push({nodeName:o,attrs:s})}n.sort((o,s)=>o.nodeName<s.nodeName?-1:1);let i="";for(let o=0;o<n.length;o++){const s=n[o];i+=`<${s.nodeName}`;for(let a=0;a<s.attrs.length;a++){const l=s.attrs[a];i+=` ${l.key}="${l.value}"`}i+=">"}i+=r.insert;for(let o=n.length-1;o>=0;o--)i+=`</${n[o].nodeName}>`;return i}).join("")}toJSON(){return this.toString()}_write(r){r.writeTypeRef(jj)}}const Cj=e=>new ts;class Gv{constructor(r,n){this.id=r,this.length=n}get deleted(){throw Qs()}mergeWith(r){return!1}write(r,n,i){throw Qs()}integrate(r,n){throw Qs()}}const _j=0;class Vs extends Gv{get deleted(){return!0}delete(){}mergeWith(r){return this.constructor!==r.constructor?!1:(this.length+=r.length,!0)}integrate(r,n){n>0&&(this.id.clock+=n,this.length-=n),vN(r.doc.store,this)}write(r,n){r.writeInfo(_j),r.writeLen(this.length-n)}getMissing(r,n){return null}}class Xf{constructor(r){this.content=r}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Xf(this.content)}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){}delete(r){}gc(r){}write(r,n){r.writeBuf(this.content)}getRef(){return 3}}const Nj=e=>new Xf(e.readBuf());class Ef{constructor(r){this.len=r}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new Ef(this.len)}splice(r){const n=new Ef(this.len-r);return this.len=r,n}mergeWith(r){return this.len+=r.len,!0}integrate(r,n){gf(r.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(r){}gc(r){}write(r,n){r.writeLen(this.len-n)}getRef(){return 1}}const Fj=e=>new Ef(e.readLen()),PN=(e,r)=>new tc({guid:e,...r,shouldLoad:r.shouldLoad||r.autoLoad||!1});class em{constructor(r){r._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=r;const n={};this.opts=n,r.gc||(n.gc=!1),r.autoLoad&&(n.autoLoad=!0),r.meta!==null&&(n.meta=r.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new em(PN(this.doc.guid,this.opts))}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){this.doc._item=n,r.subdocsAdded.add(this.doc),this.doc.shouldLoad&&r.subdocsLoaded.add(this.doc)}delete(r){r.subdocsAdded.has(this.doc)?r.subdocsAdded.delete(this.doc):r.subdocsRemoved.add(this.doc)}gc(r){}write(r,n){r.writeString(this.doc.guid),r.writeAny(this.opts)}getRef(){return 9}}const Oj=e=>new em(PN(e.readString(),e.readAny()));class dd{constructor(r){this.embed=r}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new dd(this.embed)}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){}delete(r){}gc(r){}write(r,n){r.writeJSON(this.embed)}getRef(){return 5}}const Mj=e=>new dd(e.readJSON());class Ei{constructor(r,n){this.key=r,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new Ei(this.key,this.value)}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){const i=n.parent;i._searchMarker=null,i._hasFormatting=!0}delete(r){}gc(r){}write(r,n){r.writeKey(this.key),r.writeJSON(this.value)}getRef(){return 6}}const Rj=e=>new Ei(e.readKey(),e.readJSON());class K2{constructor(r){this.arr=r}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new K2(this.arr)}splice(r){const n=new K2(this.arr.slice(r));return this.arr=this.arr.slice(0,r),n}mergeWith(r){return this.arr=this.arr.concat(r.arr),!0}integrate(r,n){}delete(r){}gc(r){}write(r,n){const i=this.arr.length;r.writeLen(i-n);for(let o=n;o<i;o++){const s=this.arr[o];r.writeString(s===void 0?"undefined":JSON.stringify(s))}}getRef(){return 2}}const Bj=e=>{const r=e.readLen(),n=[];for(let i=0;i<r;i++){const o=e.readString();o==="undefined"?n.push(void 0):n.push(JSON.parse(o))}return new K2(n)},Ij=Z2("node_env")==="development";class rd{constructor(r){this.arr=r,Ij&&M_(r)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new rd(this.arr)}splice(r){const n=new rd(this.arr.slice(r));return this.arr=this.arr.slice(0,r),n}mergeWith(r){return this.arr=this.arr.concat(r.arr),!0}integrate(r,n){}delete(r){}gc(r){}write(r,n){const i=this.arr.length;r.writeLen(i-n);for(let o=n;o<i;o++){const s=this.arr[o];r.writeAny(s)}}getRef(){return 8}}const Lj=e=>{const r=e.readLen(),n=[];for(let i=0;i<r;i++)n.push(e.readAny());return new rd(n)};class Fa{constructor(r){this.str=r}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new Fa(this.str)}splice(r){const n=new Fa(this.str.slice(r));this.str=this.str.slice(0,r);const i=this.str.charCodeAt(r-1);return i>=55296&&i<=56319&&(this.str=this.str.slice(0,r-1)+"�",n.str="�"+n.str.slice(1)),n}mergeWith(r){return this.str+=r.str,!0}integrate(r,n){}delete(r){}gc(r){}write(r,n){r.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const zj=e=>new Fa(e.readString()),Yj=[gj,Tj,wj,Dj,Sj,kj,Cj],Hj=0,Pj=1,Zj=2,$j=3,Uj=4,Vj=5,jj=6;class Ba{constructor(r){this.type=r}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Ba(this.type._copy())}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){this.type._integrate(r.doc,n)}delete(r){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(r.beforeState.get(n.id.client)||0)&&r._mergeStructs.push(n):n.delete(r),n=n.right;this.type._map.forEach(i=>{i.deleted?i.id.clock<(r.beforeState.get(i.id.client)||0)&&r._mergeStructs.push(i):i.delete(r)}),r.changed.delete(this.type)}gc(r){let n=this.type._start;for(;n!==null;)n.gc(r,!0),n=n.right;this.type._start=null,this.type._map.forEach(i=>{for(;i!==null;)i.gc(r,!0),i=i.left}),this.type._map=new Map}write(r,n){this.type._write(r)}getRef(){return 7}}const Gj=e=>new Ba(Yj[e.readTypeRef()](e)),gT=(e,r)=>{let n=r,i=0,o;do i>0&&(n=fr(n.client,n.clock+i)),o=Th(e,n),i=n.clock-o.id.clock,n=o.redone;while(n!==null&&o instanceof Cn);return{item:o,diff:i}},qv=(e,r)=>{for(;e!==null&&e.keep!==r;)e.keep=r,e=e.parent._item},Q2=(e,r,n)=>{const{client:i,clock:o}=r.id,s=new Cn(fr(i,o+n),r,fr(i,o+n-1),r.right,r.rightOrigin,r.parent,r.parentSub,r.content.splice(n));return r.deleted&&s.markDeleted(),r.keep&&(s.keep=!0),r.redone!==null&&(s.redone=fr(r.redone.client,r.redone.clock+n)),r.right=s,s.right!==null&&(s.right.left=s),e._mergeStructs.push(s),s.parentSub!==null&&s.right===null&&s.parent._map.set(s.parentSub,s),r.length=n,s},uE=(e,r)=>yv(e,n=>lp(n.deletions,r)),ZN=(e,r,n,i,o,s)=>{const a=e.doc,l=a.store,u=a.clientID,c=r.redone;if(c!==null)return Qo(e,c);let d=r.parent._item,h=null,p;if(d!==null&&d.deleted===!0){if(d.redone===null&&(!n.has(d)||ZN(e,d,n,i,o,s)===null))return null;for(;d.redone!==null;)d=Qo(e,d.redone)}const f=d===null?r.parent:d.content.type;if(r.parentSub===null){for(h=r.left,p=r;h!==null;){let x=h;for(;x!==null&&x.parent._item!==d;)x=x.redone===null?null:Qo(e,x.redone);if(x!==null&&x.parent._item===d){h=x;break}h=h.left}for(;p!==null;){let x=p;for(;x!==null&&x.parent._item!==d;)x=x.redone===null?null:Qo(e,x.redone);if(x!==null&&x.parent._item===d){p=x;break}p=p.right}}else if(p=null,r.right&&!o){for(h=r;h!==null&&h.right!==null&&(h.right.redone||lp(i,h.right.id)||uE(s.undoStack,h.right.id)||uE(s.redoStack,h.right.id));)for(h=h.right;h.redone;)h=Qo(e,h.redone);if(h&&h.right!==null)return null}else h=f._map.get(r.parentSub)||null;const m=hi(l,u),v=fr(u,m),w=new Cn(v,h,h&&h.lastId,p,p&&p.id,f,r.parentSub,r.content.copy());return r.redone=v,qv(w,!0),w.integrate(e,0),w};let Cn=class yT extends Gv{constructor(r,n,i,o,s,a,l,u){super(r,u.getLength()),this.origin=i,this.left=n,this.right=o,this.rightOrigin=s,this.parent=a,this.parentSub=l,this.redone=null,this.content=u,this.info=this.content.isCountable()?z8:0}set marker(r){(this.info&K5)>0!==r&&(this.info^=K5)}get marker(){return(this.info&K5)>0}get keep(){return(this.info&L8)>0}set keep(r){this.keep!==r&&(this.info^=L8)}get countable(){return(this.info&z8)>0}get deleted(){return(this.info&W5)>0}set deleted(r){this.deleted!==r&&(this.info^=W5)}markDeleted(){this.info|=W5}getMissing(r,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=hi(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=hi(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===yh&&this.id.client!==this.parent.client&&this.parent.clock>=hi(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=eE(r,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Qo(r,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Vs||this.right&&this.right.constructor===Vs)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===yT?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===yT&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===yh){const i=Th(n,this.parent);i.constructor===Vs?this.parent=null:this.parent=i.content.type}return null}integrate(r,n){if(n>0&&(this.id.clock+=n,this.left=eE(r,r.doc.store,fr(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 i=this.left,o;if(i!==null)o=i.right;else if(this.parentSub!==null)for(o=this.parent._map.get(this.parentSub)||null;o!==null&&o.left!==null;)o=o.left;else o=this.parent._start;const s=new Set,a=new Set;for(;o!==null&&o!==this.right;){if(a.add(o),s.add(o),ah(this.origin,o.origin)){if(o.id.client<this.id.client)i=o,s.clear();else if(ah(this.rightOrigin,o.rightOrigin))break}else if(o.origin!==null&&a.has(Th(r.doc.store,o.origin)))s.has(Th(r.doc.store,o.origin))||(i=o,s.clear());else break;o=o.right}this.left=i}if(this.left!==null){const i=this.left.right;this.right=i,this.left.right=this}else{let i;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,this.parent._start=this;this.right=i}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(r)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),vN(r.doc.store,this),this.content.integrate(r,this),rE(r,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(r)}else new Vs(this.id,this.length).integrate(r,0)}get next(){let r=this.right;for(;r!==null&&r.deleted;)r=r.right;return r}get prev(){let r=this.left;for(;r!==null&&r.deleted;)r=r.left;return r}get lastId(){return this.length===1?this.id:fr(this.id.client,this.id.clock+this.length-1)}mergeWith(r){if(this.constructor===r.constructor&&ah(r.origin,this.lastId)&&this.right===r&&ah(this.rightOrigin,r.rightOrigin)&&this.id.client===r.id.client&&this.id.clock+this.length===r.id.clock&&this.deleted===r.deleted&&this.redone===null&&r.redone===null&&this.content.constructor===r.content.constructor&&this.content.mergeWith(r.content)){const n=this.parent._searchMarker;return n&&n.forEach(i=>{i.p===r&&(i.p=this,!this.deleted&&this.countable&&(i.index-=this.length))}),r.keep&&(this.keep=!0),this.right=r.right,this.right!==null&&(this.right.left=this),this.length+=r.length,!0}return!1}delete(r){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),gf(r.deleteSet,this.id.client,this.id.clock,this.length),rE(r,n,this.parentSub),this.content.delete(r)}}gc(r,n){if(!this.deleted)throw vo();this.content.gc(r),n?QV(r,this,new Vs(this.id,this.length)):this.content=new Ef(this.length)}write(r,n){const i=n>0?fr(this.id.client,this.id.clock+n-1):this.origin,o=this.rightOrigin,s=this.parentSub,a=this.content.getRef()&A3|(i===null?0:Bo)|(o===null?0:p0)|(s===null?0:df);if(r.writeInfo(a),i!==null&&r.writeLeftID(i),o!==null&&r.writeRightID(o),i===null&&o===null){const l=this.parent;if(l._item!==void 0){const u=l._item;if(u===null){const c=yf(l);r.writeParentInfo(!0),r.writeString(c)}else r.writeParentInfo(!1),r.writeLeftID(u.id)}else l.constructor===String?(r.writeParentInfo(!0),r.writeString(l)):l.constructor===yh?(r.writeParentInfo(!1),r.writeLeftID(l)):vo();s!==null&&r.writeString(s)}this.content.write(r,n)}};const $N=(e,r)=>qj[r&A3](e),qj=[()=>{vo()},Fj,Bj,Nj,zj,Mj,Rj,Gj,Lj,Oj,()=>{vo()}],Wj=10;class js extends Gv{get deleted(){return!0}delete(){}mergeWith(r){return this.constructor!==r.constructor?!1:(this.length+=r.length,!0)}integrate(r,n){vo()}write(r,n){r.writeInfo(Wj),Ut(r.restEncoder,this.length-n)}getMissing(r,n){return null}}const cE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof SA<"u"?SA:{},dE="__ $YJS$ __";cE[dE]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),cE[dE]=!0;const s6=3e4;class Kj extends w_{constructor(r){super(),this.doc=r,this.clientID=r.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const n=Pu();this.getLocalState()!==null&&s6/2<=n-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const i=[];this.meta.forEach((o,s)=>{s!==this.clientID&&s6<=n-o.lastUpdated&&this.states.has(s)&&i.push(s)}),i.length>0&&Wv(this,i,"timeout")},ra(s6/10)),r.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(r){const n=this.clientID,i=this.meta.get(n),o=i===void 0?0:i.clock+1,s=this.states.get(n);r===null?this.states.delete(n):this.states.set(n,r),this.meta.set(n,{clock:o,lastUpdated:Pu()});const a=[],l=[],u=[],c=[];r===null?c.push(n):s==null?r!=null&&a.push(n):(l.push(n),mh(s,r)||u.push(n)),(a.length>0||u.length>0||c.length>0)&&this.emit("change",[{added:a,updated:u,removed:c},"local"]),this.emit("update",[{added:a,updated:l,removed:c},"local"])}setLocalStateField(r,n){const i=this.getLocalState();i!==null&&this.setLocalState({...i,[r]:n})}getStates(){return this.states}}const Wv=(e,r,n)=>{const i=[];for(let o=0;o<r.length;o++){const s=r[o];if(e.states.has(s)){if(e.states.delete(s),s===e.clientID){const a=e.meta.get(s);e.meta.set(s,{clock:a.clock+1,lastUpdated:Pu()})}i.push(s)}}i.length>0&&(e.emit("change",[{added:[],updated:[],removed:i},n]),e.emit("update",[{added:[],updated:[],removed:i},n]))},O1=(e,r,n=e.states)=>{const i=r.length,o=$i();Ut(o,i);for(let s=0;s<i;s++){const a=r[s],l=n.get(a)||null,u=e.meta.get(a).clock;Ut(o,a),Ut(o,u),$c(o,JSON.stringify(l))}return Gn(o)},Qj=(e,r,n)=>{const i=k0(r),o=Pu(),s=[],a=[],l=[],u=[],c=pr(i);for(let d=0;d<c;d++){const h=pr(i);let p=pr(i);const f=JSON.parse(Nu(i)),m=e.meta.get(h),v=e.states.get(h),w=m===void 0?0:m.clock;(w<p||w===p&&f===null&&e.states.has(h))&&(f===null?h===e.clientID&&e.getLocalState()!=null?p++:e.states.delete(h):e.states.set(h,f),e.meta.set(h,{clock:p,lastUpdated:o}),m===void 0&&f!==null?s.push(h):m!==void 0&&f===null?u.push(h):f!==null&&(mh(f,v)||l.push(h),a.push(h)))}(s.length>0||l.length>0||u.length>0)&&e.emit("change",[{added:s,updated:l,removed:u},n]),(s.length>0||a.length>0||u.length>0)&&e.emit("update",[{added:s,updated:a,removed:u},n])},Jj=()=>{let e=!0;return(r,n)=>{if(e){e=!1;try{r()}finally{e=!0}}else n!==void 0&&n()}},Xj=/[\uD800-\uDBFF]/,eG=/[\uDC00-\uDFFF]/,tG=(e,r)=>{let n=0,i=0;for(;n<e.length&&n<r.length&&e[n]===r[n];)n++;for(n>0&&Xj.test(e[n-1])&&n--;i+n<e.length&&i+n<r.length&&e[e.length-i-1]===r[r.length-i-1];)i++;return i>0&&eG.test(e[e.length-i])&&i--,{index:n,remove:e.length-n-i,insert:r.slice(n,r.length-i)}},rG=tG,vl=(e,r)=>e>>>r|e<<32-r,nG=e=>vl(e,2)^vl(e,13)^vl(e,22),iG=e=>vl(e,6)^vl(e,11)^vl(e,25),oG=e=>vl(e,7)^vl(e,18)^e>>>3,sG=e=>vl(e,17)^vl(e,19)^e>>>10,aG=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]),lG=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);class uG{constructor(){const r=new ArrayBuffer(320);this._H=new Uint32Array(r,0,8),this._H.set(lG),this._W=new Uint32Array(r,64,64)}_updateHash(){const r=this._H,n=this._W;for(let h=16;h<64;h++)n[h]=sG(n[h-2])+n[h-7]+oG(n[h-15])+n[h-16];let i=r[0],o=r[1],s=r[2],a=r[3],l=r[4],u=r[5],c=r[6],d=r[7];for(let h=0,p,f;h<64;h++)p=d+iG(l)+(l&u^~l&c)+aG[h]+n[h]>>>0,f=nG(i)+(i&o^i&s^o&s)>>>0,d=c,c=u,u=l,l=a+p>>>0,a=s,s=o,o=i,i=p+f>>>0;r[0]+=i,r[1]+=o,r[2]+=s,r[3]+=a,r[4]+=l,r[5]+=u,r[6]+=c,r[7]+=d}digest(r){let n=0;for(;n+56<=r.length;){let a=0;for(;a<16&&n+3<r.length;a++)this._W[a]=r[n++]<<24|r[n++]<<16|r[n++]<<8|r[n++];if(n%64!==0){for(this._W.fill(0,a,16);n<r.length;)this._W[a]|=r[n]<<(3-n%4)*8,n++;this._W[a]|=Bo<<(3-n%4)*8}this._updateHash()}const i=n%64!==0;this._W.fill(0,0,16);let o=0;for(;n<r.length;o++)for(let a=3;a>=0&&n<r.length;a--)this._W[o]|=r[n++]<<a*8;i||(this._W[o-(n%4===0?0:1)]|=Bo<<(3-n%4)*8),this._W[14]=r.byteLength/O$,this._W[15]=r.byteLength*8,this._updateHash();const s=new Uint8Array(32);for(let a=0;a<this._H.length;a++)for(let l=0;l<4;l++)s[a*4+l]=this._H[a]>>>(3-l)*8;return s}}const cG=e=>new uG().digest(e),fn=new hr("y-sync"),f0=new hr("y-undo"),tg=new hr("yjs-cursor"),dG=e=>{for(let r=6;r<e.length;r++)e[r%6]=e[r%6]^e[r];return e.slice(0,6)},hG=e=>kv(dG(cG(zU(e)))),J2=(e,r)=>r===void 0?!e.deleted:r.sv.has(e.id.client)&&r.sv.get(e.id.client)>e.id.clock&&!lp(r.ds,e.id),pG=[{light:"#ecd44433",dark:"#ecd444"}],fG=(e,r,n)=>{if(!e.has(n)){if(e.size<r.length){const i=T0();e.forEach(o=>i.add(o)),r=r.filter(o=>!i.has(o))}e.set(n,dU(r))}return e.get(n)},mG=(e,{colors:r=pG,colorMapping:n=new Map,permanentUserData:i=null,onFirstRender:o=()=>{},mapping:s}={})=>{let a=!1;const l=new TG(e,s),u=new lr({props:{editable:c=>{const d=fn.getState(c);return d.snapshot==null&&d.prevSnapshot==null}},key:fn,state:{init:(c,d)=>({type:e,doc:e.doc,binding:l,snapshot:null,prevSnapshot:null,isChangeOrigin:!1,isUndoRedoOperation:!1,addToHistory:!0,colors:r,colorMapping:n,permanentUserData:i}),apply:(c,d)=>{const h=c.getMeta(fn);if(h!==void 0){d=Object.assign({},d);for(const p in h)d[p]=h[p]}return d.addToHistory=c.getMeta("addToHistory")!==!1,d.isChangeOrigin=h!==void 0&&!!h.isChangeOrigin,d.isUndoRedoOperation=h!==void 0&&!!h.isChangeOrigin&&!!h.isUndoRedoOperation,l.prosemirrorView!==null&&h!==void 0&&(h.snapshot!=null||h.prevSnapshot!=null)&&Mv(0,()=>{l.prosemirrorView!=null&&(h.restore==null?l._renderSnapshot(h.snapshot,h.prevSnapshot,d):(l._renderSnapshot(h.snapshot,h.snapshot,d),delete d.restore,delete d.snapshot,delete d.prevSnapshot,l.mux(()=>{l._prosemirrorChanged(l.prosemirrorView.state.doc)})))}),d}},view:c=>(l.initView(c),s==null&&l._forceRerender(),o(),{update:()=>{const d=u.getState(c.state);if(d.snapshot==null&&d.prevSnapshot==null&&(a||c.state.doc.content.findDiffStart(c.state.doc.type.createAndFill().content)!==null)){if(a=!0,d.addToHistory===!1&&!d.isChangeOrigin){const h=f0.getState(c.state),p=h&&h.undoManager;p&&p.stopCapturing()}l.mux(()=>{d.doc.transact(h=>{h.meta.set("addToHistory",d.addToHistory),l._prosemirrorChanged(c.state.doc)},fn)})}},destroy:()=>{l.destroy()}})});return u},gG=(e,r,n)=>{if(r!==null&&r.anchor!==null&&r.head!==null)if(r.type==="all")e.setSelection(new Xo(e.doc));else if(r.type==="node"){const i=Fu(n.doc,n.type,r.anchor,n.mapping);e.setSelection(yG(e,i))}else{const i=Fu(n.doc,n.type,r.anchor,n.mapping),o=Fu(n.doc,n.type,r.head,n.mapping);i!==null&&o!==null&&e.setSelection(Lt.between(e.doc.resolve(i),e.doc.resolve(o)))}},yG=(e,r)=>{const n=e.doc.resolve(r);return n.nodeAfter?Ht.create(e.doc,r):Lt.near(n)},TT=(e,r)=>({type:r.selection.jsonID,anchor:zh(r.selection.anchor,e.type,e.mapping),head:zh(r.selection.head,e.type,e.mapping)});class TG{constructor(r,n=new Map){this.type=r,this.prosemirrorView=null,this.mux=Jj(),this.mapping=n,this.isOMark=new Map,this._observeFunction=this._typeChanged.bind(this),this.doc=r.doc,this.beforeTransactionSelection=null,this.beforeAllTransactions=()=>{this.beforeTransactionSelection===null&&this.prosemirrorView!=null&&(this.beforeTransactionSelection=TT(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()?(xv&&this._domSelectionInView===null&&(Mv(0,()=>{this._domSelectionInView=null}),this._domSelectionInView=this._isDomSelectionInView()),this._domSelectionInView):!1}_isDomSelectionInView(){const r=this.prosemirrorView._root.getSelection();if(r==null||r.anchorNode==null)return!1;const n=this.prosemirrorView._root.createRange();n.setStart(r.anchorNode,r.anchorOffset),n.setEnd(r.focusNode,r.focusOffset),n.getClientRects().length===0&&n.startContainer&&n.collapsed&&n.selectNodeContents(n.startContainer);const i=n.getBoundingClientRect(),o=Kf.documentElement;return i.bottom>=0&&i.right>=0&&i.left<=(window.innerWidth||o.clientWidth||0)&&i.top<=(window.innerHeight||o.clientHeight||0)}renderSnapshot(r,n){n||(n=TN(aN(),new Map)),this.prosemirrorView.dispatch(this._tr.setMeta(fn,{snapshot:r,prevSnapshot:n}))}unrenderSnapshot(){this.mapping.clear(),this.mux(()=>{const r=this.type.toArray().map(i=>r2(i,this.prosemirrorView.state.schema,this)).filter(i=>i!==null),n=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(r),0,0));n.setMeta(fn,{snapshot:null,prevSnapshot:null}),this.prosemirrorView.dispatch(n)})}_forceRerender(){this.mapping.clear(),this.mux(()=>{const r=this.beforeTransactionSelection!==null?null:this.prosemirrorView.state.selection,n=this.type.toArray().map(o=>r2(o,this.prosemirrorView.state.schema,this)).filter(o=>o!==null),i=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(n),0,0));if(r){const o=bl(_a(r.anchor,0),i.doc.content.size),s=bl(_a(r.head,0),i.doc.content.size);i.setSelection(Lt.create(i.doc,o,s))}this.prosemirrorView.dispatch(i.setMeta(fn,{isChangeOrigin:!0,binding:this}))})}_renderSnapshot(r,n,i){let o=this.doc,s=this.type;if(r||(r=n6(this.doc)),r instanceof Uint8Array||n instanceof Uint8Array)if((!(r instanceof Uint8Array)||!(n instanceof Uint8Array))&&vo(),o=new tc({gc:!1}),V2(o,n),n=n6(o),V2(o,r),r=n6(o),s._item===null){const a=Array.from(this.doc.share.keys()).find(l=>this.doc.share.get(l)===this.type);s=o.getXmlFragment(a)}else{const a=o.store.clients.get(s._item.id.client)??[],l=Na(a,s._item.id.clock);s=a[l].content.type}this.mapping.clear(),this.mux(()=>{o.transact(a=>{const l=i.permanentUserData;l&&l.dss.forEach(h=>{$u(a,h,p=>{})});const u=(h,p)=>{const f=h==="added"?l.getUserByClientId(p.client):l.getUserByDeletedId(p);return{user:f,type:h,color:fG(i.colorMapping,i.colors,f)}},c=_N(s,new Hv(n.ds,r.sv)).map(h=>!h._item.deleted||J2(h._item,r)||J2(h._item,n)?r2(h,this.prosemirrorView.state.schema,{mapping:new Map,isOMark:new Map},r,n,u):null).filter(h=>h!==null),d=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(c),0,0));this.prosemirrorView.dispatch(d.setMeta(fn,{isChangeOrigin:!0}))},fn)})}_typeChanged(r,n){if(this.prosemirrorView==null)return;const i=fn.getState(this.prosemirrorView.state);if(r.length===0||i.snapshot!=null||i.prevSnapshot!=null){this.renderSnapshot(i.snapshot,i.prevSnapshot);return}this.mux(()=>{const o=(l,u)=>this.mapping.delete(u);$u(n,n.deleteSet,l=>{if(l.constructor===Cn){const u=l.content.type;u&&this.mapping.delete(u)}}),n.changed.forEach(o),n.changedParentTypes.forEach(o);const s=this.type.toArray().map(l=>UN(l,this.prosemirrorView.state.schema,this)).filter(l=>l!==null);let a=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(s),0,0));gG(a,this.beforeTransactionSelection,this),a=a.setMeta(fn,{isChangeOrigin:!0,isUndoRedoOperation:n.origin instanceof wN}),this.beforeTransactionSelection!==null&&this._isLocalCursorInView()&&a.scrollIntoView(),this.prosemirrorView.dispatch(a)})}_prosemirrorChanged(r){this.doc.transact(()=>{vT(this.doc,this.type,r,this),this.beforeTransactionSelection=TT(this,this.prosemirrorView.state)},fn)}initView(r){this.prosemirrorView!=null&&this.destroy(),this.prosemirrorView=r,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 UN=(e,r,n,i,o,s)=>{const a=n.mapping.get(e);if(a===void 0){if(e instanceof yo)return r2(e,r,n,i,o,s);throw Qs()}return a},r2=(e,r,n,i,o,s)=>{const a=[],l=u=>{if(u instanceof yo){const c=UN(u,r,n,i,o,s);c!==null&&a.push(c)}else{const c=u._item.right?.content?.type;c instanceof Uu&&!c._item.deleted&&c._item.id.client===c.doc.clientID&&(u.applyDelta([{retain:u.length},...c.toDelta()]),c.doc.transact(h=>{c._item.delete(h)}));const d=bG(u,r,n,i,o,s);d!==null&&d.forEach(h=>{h!==null&&a.push(h)})}};i===void 0||o===void 0?e.toArray().forEach(l):_N(e,new Hv(o.ds,i.sv)).forEach(l);try{const u=e.getAttributes(i);i!==void 0&&(J2(e._item,i)?J2(e._item,o)||(u.ychange=s?s("added",e._item.id):{type:"added"}):u.ychange=s?s("removed",e._item.id):{type:"removed"});const c=r.node(e.nodeName,u,a);return n.mapping.set(e,c),c}catch{return e.doc.transact(u=>{e._item.delete(u)},fn),n.mapping.delete(e),null}},bG=(e,r,n,i,o,s)=>{const a=[],l=e.toDelta(i,o,s);try{for(let u=0;u<l.length;u++){const c=l[u];a.push(r.text(c.insert,DG(c.attributes,r)))}}catch{return e.doc.transact(u=>{e._item.delete(u)},fn),null}return a},vG=(e,r)=>{const n=new ts,i=e.map(o=>({insert:o.text,attributes:jN(o.marks,r)}));return n.applyDelta(i),r.mapping.set(n,e),n},AG=(e,r)=>{const n=new yo(e.type.name);for(const i in e.attrs){const o=e.attrs[i];o!==null&&i!=="ychange"&&n.setAttribute(i,o)}return n.insert(0,O3(e).map(i=>bT(i,r))),r.mapping.set(n,e),n},bT=(e,r)=>e instanceof Array?vG(e,r):AG(e,r),hE=e=>typeof e=="object"&&e!==null,Kv=(e,r)=>{const n=Object.keys(e).filter(o=>e[o]!==null);let i=n.length===Object.keys(r).filter(o=>r[o]!==null).length;for(let o=0;o<n.length&&i;o++){const s=n[o],a=e[s],l=r[s];i=s==="ychange"||a===l||hE(a)&&hE(l)&&Kv(a,l)}return i},O3=e=>{const r=e.content.content,n=[];for(let i=0;i<r.length;i++){const o=r[i];if(o.isText){const s=[];for(let a=r[i];i<r.length&&a.isText;a=r[++i])s.push(a);i--,n.push(s)}else n.push(o)}return n},VN=(e,r)=>{const n=e.toDelta();return n.length===r.length&&n.every((i,o)=>i.insert===r[o].text&&O_(i.attributes||{}).length===r[o].marks.length&&op(i.attributes,(s,a)=>{const l=Qv(a),u=r[o].marks;return u.find(c=>c.type.name===l)?Kv(s,u.find(c=>c.type.name===l)?.attrs):!1}))},wf=(e,r)=>{if(e instanceof yo&&!(r instanceof Array)&&AT(e,r)){const n=O3(r);return e._length===n.length&&Kv(e.getAttributes(),r.attrs)&&e.toArray().every((i,o)=>wf(i,n[o]))}return e instanceof ts&&r instanceof Array&&VN(e,r)},X2=(e,r)=>e===r||e instanceof Array&&r instanceof Array&&e.length===r.length&&e.every((n,i)=>r[i]===n),pE=(e,r,n)=>{const i=e.toArray(),o=O3(r),s=o.length,a=i.length,l=bl(a,s);let u=0,c=0,d=!1;for(;u<l;u++){const h=i[u],p=o[u];if(X2(n.mapping.get(h),p))d=!0;else if(!wf(h,p))break}for(;u+c<l;c++){const h=i[a-c-1],p=o[s-c-1];if(X2(n.mapping.get(h),p))d=!0;else if(!wf(h,p))break}return{equalityFactor:u+c,foundMappedChild:d}},EG=e=>{let r="",n=e._start;const i={};for(;n!==null;)n.deleted||(n.countable&&n.content instanceof Fa?r+=n.content.str:n.content instanceof Ei&&(i[n.content.key]=null)),n=n.right;return{str:r,nAttrs:i}},wG=(e,r,n)=>{n.mapping.set(e,r);const{nAttrs:i,str:o}=EG(e),s=r.map(c=>({insert:c.text,attributes:Object.assign({},i,jN(c.marks,n))})),{insert:a,remove:l,index:u}=rG(o,s.map(c=>c.insert).join(""));e.delete(u,l),e.insert(u,a),e.applyDelta(s.map(c=>({retain:c.insert.length,attributes:c.attributes})))},SG=/(.*)(--[a-zA-Z0-9+/=]{8})$/,Qv=e=>SG.exec(e)?.[1]??e,DG=(e,r)=>{const n=[];for(const i in e)n.push(r.mark(Qv(i),e[i]));return n},jN=(e,r)=>{const n={};return e.forEach(i=>{if(i.type.name!=="ychange"){const o=aa(r.isOMark,i.type,()=>!i.type.excludes(i.type));n[o?`${i.type.name}--${hG(i.toJSON())}`:i.type.name]=i.attrs}}),n},vT=(e,r,n,i)=>{if(r instanceof yo&&r.nodeName!==n.type.name)throw new Error("node name mismatch!");if(i.mapping.set(r,n),r instanceof yo){const h=r.getAttributes(),p=n.attrs;for(const f in p)p[f]!==null?h[f]!==p[f]&&f!=="ychange"&&r.setAttribute(f,p[f]):r.removeAttribute(f);for(const f in h)p[f]===void 0&&r.removeAttribute(f)}const o=O3(n),s=o.length,a=r.toArray(),l=a.length,u=bl(s,l);let c=0,d=0;for(;c<u;c++){const h=a[c],p=o[c];if(!X2(i.mapping.get(h),p))if(wf(h,p))i.mapping.set(h,p);else break}for(;d+c+1<u;d++){const h=a[l-d-1],p=o[s-d-1];if(!X2(i.mapping.get(h),p))if(wf(h,p))i.mapping.set(h,p);else break}e.transact(()=>{for(;l-c-d>0&&s-c-d>0;){const p=a[c],f=o[c],m=a[l-d-1],v=o[s-d-1];if(p instanceof ts&&f instanceof Array)VN(p,f)||wG(p,f,i),c+=1;else{let w=p instanceof yo&&AT(p,f),x=m instanceof yo&&AT(m,v);if(w&&x){const k=pE(p,f,i),R=pE(m,v,i);k.foundMappedChild&&!R.foundMappedChild?x=!1:!k.foundMappedChild&&R.foundMappedChild||k.equalityFactor<R.equalityFactor?w=!1:x=!1}w?(vT(e,p,f,i),c+=1):x?(vT(e,m,v,i),d+=1):(i.mapping.delete(r.get(c)),r.delete(c,1),r.insert(c,[bT(f,i)]),c+=1)}}const h=l-c-d;if(l===1&&s===0&&a[0]instanceof ts?(i.mapping.delete(a[0]),a[0].delete(0,a[0].length)):h>0&&(r.slice(c,c+h).forEach(p=>i.mapping.delete(p)),r.delete(c,h)),c+d<s){const p=[];for(let f=c;f<s-d;f++)p.push(bT(o[f],i));r.insert(c,p)}},fn)},AT=(e,r)=>!(r instanceof Array)&&e.nodeName===r.type.name;let M1=null;const xG=()=>{const e=M1;M1=null,e.forEach((r,n)=>{const i=n.state.tr,o=fn.getState(n.state);o&&o.binding&&!o.binding.isDestroyed&&(r.forEach((s,a)=>{i.setMeta(a,s)}),n.dispatch(i))})},kG=(e,r,n)=>{M1||(M1=new Map,Mv(0,xG)),aa(M1,e,Ro).set(r,n)},zh=(e,r,n)=>{if(e===0)return r6(r,0,-1);let i=r._first===null?null:r._first.content.type;for(;i!==null&&r!==i;){if(i instanceof ts){if(i._length>=e)return r6(i,e,-1);if(e-=i._length,i._item!==null&&i._item.next!==null)i=i._item.next.content.type;else{do i=i._item===null?null:i._item.parent,e--;while(i!==r&&i!==null&&i._item!==null&&i._item.next===null);i!==null&&i!==r&&(i=i._item===null?null:i._item.next.content.type)}}else{const o=(n.get(i)||{nodeSize:0}).nodeSize;if(i._first!==null&&e<o)i=i._first.content.type,e--;else{if(e===1&&i._length===0&&o>1)return new bf(i._item===null?null:i._item.id,i._item===null?yf(i):null,null);if(e-=o,i._item!==null&&i._item.next!==null)i=i._item.next.content.type;else{if(e===0)return i=i._item===null?i:i._item.parent,new bf(i._item===null?null:i._item.id,i._item===null?yf(i):null,null);do i=i._item.parent,e--;while(i!==r&&i._item.next===null);i!==r&&(i=i._item.next.content.type)}}}if(i===null)throw vo();if(e===0&&i.constructor!==ts&&i!==r)return CG(i._item.parent,i._item)}return r6(r,r._length,-1)},CG=(e,r)=>{let n=null,i=null;return e._item===null?i=yf(e):n=fr(e._item.id.client,e._item.id.clock),new bf(n,i,r.id)},Fu=(e,r,n,i)=>{const o=WV(n,e);if(o===null||o.type!==r&&!Tf(r,o.type._item))return null;let s=o.type,a=0;if(s.constructor===ts)a=o.index;else if(s._item===null||!s._item.deleted){let l=s._first,u=0;for(;u<s._length&&u<o.index&&l!==null;){if(!l.deleted){const c=l.content.type;u++,c instanceof ts?a+=c._length:a+=i.get(c).nodeSize}l=l.right}a+=1}for(;s!==r&&s._item!==null;){const l=s._item.parent;if(l._item===null||!l._item.deleted){a+=1;let u=l._first;for(;u!==null;){const c=u.content.type;if(c===s)break;u.deleted||(c instanceof ts?a+=c._length:a+=i.get(c).nodeSize),u=u.right}}s=l}return a-1};function _G(e){const r=e.toArray(),n=i=>{let o;if(i instanceof ts)o=i.toDelta().map(s=>{const a={type:"text",text:s.insert};return s.attributes&&(a.marks=Object.keys(s.attributes).map(l=>{const u=s.attributes[l],c={type:Qv(l)};return Object.keys(u)&&(c.attrs=u),c})),a});else if(i instanceof yo){o={type:i.nodeName};const s=i.getAttributes();Object.keys(s).length&&(o.attrs=s);const a=i.toArray();a.length&&(o.content=a.map(n).flat())}else vo();return o};return{type:"doc",content:r.map(n)}}const NG=(e,r,n)=>e!==r,FG=e=>{const r=document.createElement("span");r.classList.add("ProseMirror-yjs-cursor"),r.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 i=document.createTextNode(""),o=document.createTextNode("");return r.insertBefore(i,null),r.insertBefore(n,null),r.insertBefore(o,null),r},GN=e=>({style:`background-color: ${e.color}70`,class:"ProseMirror-yjs-selection"}),OG=/^#[0-9a-fA-F]{6}$/,fE=(e,r,n,i,o)=>{const s=fn.getState(e),a=s.doc,l=[];return s.snapshot!=null||s.prevSnapshot!=null||s.binding.mapping.size===0?Nr.create(e.doc,[]):(r.getStates().forEach((u,c)=>{if(n(a.clientID,c,u)&&u.cursor!=null){const d=u.user||{};d.color==null?d.color="#ffa500":OG.test(d.color)||console.warn("A user uses an unsupported color format",d),d.name==null&&(d.name=`User: ${c}`);let h=Fu(a,s.type,F1(u.cursor.anchor),s.binding.mapping),p=Fu(a,s.type,F1(u.cursor.head),s.binding.mapping);if(h!==null&&p!==null){const f=_a(e.doc.content.size-1,0);h=bl(h,f),p=bl(p,f),l.push(kn.widget(p,()=>i(d,c),{key:c+"",side:10}));const m=bl(h,p),v=_a(h,p);l.push(kn.inline(m,v,o(d,c),{inclusiveEnd:!0,inclusiveStart:!1}))}}}),Nr.create(e.doc,l))},MG=(e,{awarenessStateFilter:r=NG,cursorBuilder:n=FG,selectionBuilder:i=GN,getSelection:o=a=>a.selection}={},s="cursor")=>new lr({key:tg,state:{init(a,l){return fE(l,e,r,n,i)},apply(a,l,u,c){const d=fn.getState(c),h=a.getMeta(tg);return d&&d.isChangeOrigin||h&&h.awarenessUpdated?fE(c,e,r,n,i):l.map(a.mapping,a.doc)}},props:{decorations:a=>tg.getState(a)},view:a=>{const l=()=>{a.docView&&kG(a,tg,{awarenessUpdated:!0})},u=()=>{const c=fn.getState(a.state),d=e.getLocalState()||{};if(a.hasFocus()){const h=o(a.state),p=zh(h.anchor,c.type,c.binding.mapping),f=zh(h.head,c.type,c.binding.mapping);(d.cursor==null||!X8(F1(d.cursor.anchor),p)||!X8(F1(d.cursor.head),f))&&e.setLocalStateField(s,{anchor:p,head:f})}else d.cursor!=null&&Fu(c.doc,c.type,F1(d.cursor.anchor),c.binding.mapping)!==null&&e.setLocalStateField(s,null)};return e.on("change",l),a.dom.addEventListener("focusin",u),a.dom.addEventListener("focusout",u),{update:u,destroy:()=>{a.dom.removeEventListener("focusin",u),a.dom.removeEventListener("focusout",u),e.off("change",l),e.setLocalStateField(s,null)}}}}),RG=e=>{const r=f0.getState(e).undoManager;if(r!=null)return r.undo(),!0},BG=e=>{const r=f0.getState(e).undoManager;if(r!=null)return r.redo(),!0},IG=new Set(["paragraph"]),LG=(e,r)=>!(e instanceof Cn)||!(e.content instanceof Ba)||!(e.content.type instanceof Uu||e.content.type instanceof yo&&r.has(e.content.type.nodeName))||e.content.type._length===0,zG=({protectedNodes:e=IG,trackedOrigins:r=[],undoManager:n=null}={})=>new lr({key:f0,state:{init:(i,o)=>{const s=fn.getState(o),a=n||new wN(s.type,{trackedOrigins:new Set([fn].concat(r)),deleteFilter:l=>LG(l,e),captureTransaction:l=>l.meta.get("addToHistory")!==!1});return{undoManager:a,prevSel:null,hasUndoOps:a.undoStack.length>0,hasRedoOps:a.redoStack.length>0}},apply:(i,o,s,a)=>{const l=fn.getState(a).binding,u=o.undoManager,c=u.undoStack.length>0,d=u.redoStack.length>0;return l?{undoManager:u,prevSel:TT(l,s),hasUndoOps:c,hasRedoOps:d}:c!==o.hasUndoOps||d!==o.hasRedoOps?Object.assign({},o,{hasUndoOps:u.undoStack.length>0,hasRedoOps:u.redoStack.length>0}):o}},view:i=>{const o=fn.getState(i.state),s=f0.getState(i.state).undoManager;return s.on("stack-item-added",({stackItem:a})=>{const l=o.binding;l&&a.meta.set(l,f0.getState(i.state).prevSel)}),s.on("stack-item-popped",({stackItem:a})=>{const l=o.binding;l&&(l.beforeTransactionSelection=a.meta.get(l)||l.beforeTransactionSelection)}),{destroy:()=>{s.destroy()}}}});function qN(e){return!!e.getMeta(fn)}function YG(e,r){const n=fn.getState(e);return Fu(n.doc,n.type,r,n.binding.mapping)||0}function WN(e,r){const n=fn.getState(e);return zh(r,n.type,n.binding.mapping)}var n2=class KN extends dv{constructor(r,n){super(r),this.yRelativePosition=n}static fromJSON(r){return new KN(r.position,r.yRelativePosition)}toJSON(){return{position:this.position,yRelativePosition:this.yRelativePosition}}};function HG(e,r){const n=WN(r,e);return new n2(e,n)}function PG(e,r,n){const i=e instanceof n2?e.yRelativePosition:null;if(qN(r)&&i){const a=YG(n,i);return{position:new n2(a,i),mapResult:null}}const o=i_(e,r),s=o.position.position;return{position:new n2(s,i??WN(n,s)),mapResult:o.mapResult}}var S9e=xr.create({name:"collaboration",priority:1e3,addOptions(){return{document:null,field:"default",fragment:null,provider:null}},addStorage(){return{isDisabled:!1}},onCreate(){this.editor.extensionManager.extensions.find(e=>e.name==="undoRedo")&&console.warn('[tiptap warn]: "@tiptap/extension-collaboration" comes with its own history support and is not compatible with "@tiptap/extension-undo-redo".')},onBeforeCreate(){this.editor.utils.getUpdatedPosition=(e,r)=>PG(e,r,this.editor.state),this.editor.utils.createMappablePosition=e=>HG(e,this.editor.state)},addCommands(){return{undo:()=>({tr:e,state:r,dispatch:n})=>(e.setMeta("preventDispatch",!0),f0.getState(r).undoManager.undoStack.length===0?!1:n?RG(r):!0),redo:()=>({tr:e,state:r,dispatch:n})=>(e.setMeta("preventDispatch",!0),f0.getState(r).undoManager.redoStack.length===0?!1:n?BG(r):!0)}},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo()}},addProseMirrorPlugins(){var e;const r=this.options.fragment?this.options.fragment:this.options.document.getXmlFragment(this.options.field),n=zG(this.options.yUndoOptions),i=n.spec.view;n.spec.view=a=>{const{undoManager:l}=f0.getState(a.state);l.restore&&(l.restore(),l.restore=()=>{});const u=i?i(a):void 0;return{destroy:()=>{const c=l.trackedOrigins.has(l),d=l._observers;l.restore=()=>{c&&l.trackedOrigins.add(l),l.doc.on("afterTransaction",l.afterTransactionHandler),l._observers=d},u?.destroy&&u.destroy()}}};const o={...this.options.ySyncOptions,onFirstRender:this.options.onFirstRender},s=mG(r,o);return this.editor.options.enableContentCheck&&((e=r.doc)==null||e.on("beforeTransaction",()=>{try{const a=_G(r);if(a.content.length===0)return;this.editor.schema.nodeFromJSON(a).check()}catch(a){return this.editor.emit("contentError",{error:a,editor:this.editor,disableCollaboration:()=>{var l;(l=r.doc)==null||l.destroy(),this.storage.isDisabled=!0}}),!1}})),[s,n,this.editor.options.enableContentCheck&&new lr({key:new hr("filterInvalidContent"),filterTransaction:()=>{var a;return this.storage.isDisabled!==!1&&((a=r.doc)==null||a.destroy()),!0}})].filter(Boolean)}});const QN=Symbol("tiptap:editor"),D9e=e=>{Sl(QN,e)},hd=()=>{const e=wl(QN);if(!e)throw new Error("Failed to inject Editor");return{editor:e}},JN=Symbol("editor:flags"),x9e=e=>{const r=e.isDirectEditing||UL(),n=e.richWorkspace??!1,i=zu("text","rich_editing_enabled",!0)&&e.mime==="text/markdown",o=i&&!n;return Sl(JN,{isPublic:r,isRichEditor:i,isRichWorkspace:n,useTableOfContents:o}),{isPublic:r,isRichEditor:i,isRichWorkspace:n,useTableOfContents:o}},M3=()=>{const{isPublic:e,isRichEditor:r,isRichWorkspace:n,useTableOfContents:i}=wl(JN,{isPublic:!1,isRichEditor:!1,isRichWorkspace:!1,useTableOfContents:!1});return{isPublic:e,isRichEditor:r,isRichWorkspace:n,useTableOfContents:i}},ZG={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $G=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},UG=[],VG=Ze(ZG,$G,UG,!1,null,null);const jG=VG.exports,GG={name:"AlertDecagramIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qG=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},WG=[],KG=Ze(GG,qG,WG,!1,null,null);const QG=KG.exports,JG={name:"AlignHorizontalCenterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var XG=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11 2H13V7H21V10H13V14H18V17H13V22H11V17H6V14H11V10H3V7H11V2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},eq=[],tq=Ze(JG,XG,eq,!1,null,null);const rq=tq.exports,nq={name:"AlignHorizontalLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var iq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M4 22H2V2H4V22M22 7H6V10H22V7M16 14H6V17H16V14Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},oq=[],sq=Ze(nq,iq,oq,!1,null,null);const aq=sq.exports,lq={name:"AlignHorizontalRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var uq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M20 2H22V22H20V2M2 10H18V7H2V10M8 17H18V14H8V17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},cq=[],dq=Ze(lq,uq,cq,!1,null,null);const hq=dq.exports,pq={name:"AlphabeticalVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var fq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},mq=[],gq=Ze(pq,fq,mq,!1,null,null);const yq=gq.exports,Tq={name:"ArrowULeftTopIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var bq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},vq=[],Aq=Ze(Tq,bq,vq,!1,null,null);const Eq=Aq.exports,wq={name:"ArrowURightTopIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Sq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Dq=[],xq=Ze(wq,Sq,Dq,!1,null,null);const kq=xq.exports,Cq={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _q=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Nq=[],Fq=Ze(Cq,_q,Nq,!1,null,null);const Jv=Fq.exports,Oq={name:"CheckboxMarkedCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Mq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Rq=[],Bq=Ze(Oq,Mq,Rq,!1,null,null);const Iq=Bq.exports,Lq={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Yq=[],Hq=Ze(Lq,zq,Yq,!1,null,null);const XN=Hq.exports,Pq={name:"CodeBracketsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Zq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M15,4V6H18V18H15V20H20V4M4,4V20H9V18H6V6H9V4H4Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},$q=[],Uq=Ze(Pq,Zq,$q,!1,null,null);const Vq=Uq.exports,jq={name:"CodeTagsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Gq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},qq=[],Wq=Ze(jq,Gq,qq,!1,null,null);const Kq=Wq.exports,Qq={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Jq=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Xq=[],eW=Ze(Qq,Jq,Xq,!1,null,null);const tW=eW.exports,rW={name:"EmoticonOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},iW=[],oW=Ze(rW,nW,iW,!1,null,null);const sW=oW.exports,aW={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},uW=[],cW=Ze(aW,lW,uW,!1,null,null);const dW=cW.exports,hW={name:"FolderOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},fW=[],mW=Ze(hW,pW,fW,!1,null,null);const gW=mW.exports,yW={name:"FormatBoldIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var TW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},bW=[],vW=Ze(yW,TW,bW,!1,null,null);const AW=vW.exports,EW={name:"FormatHeader1Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},SW=[],DW=Ze(EW,wW,SW,!1,null,null);const eF=DW.exports,xW={name:"FormatHeader2Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},CW=[],_W=Ze(xW,kW,CW,!1,null,null);const NW=_W.exports,FW={name:"FormatHeader3Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var OW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},MW=[],RW=Ze(FW,OW,MW,!1,null,null);const BW=RW.exports,IW={name:"FormatHeader4Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var LW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},zW=[],YW=Ze(IW,LW,zW,!1,null,null);const HW=YW.exports,PW={name:"FormatHeader5Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ZW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},$W=[],UW=Ze(PW,ZW,$W,!1,null,null);const VW=UW.exports,jW={name:"FormatHeader6Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var GW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},qW=[],WW=Ze(jW,GW,qW,!1,null,null);const KW=WW.exports,QW={name:"FormatIndentDecreaseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var JW=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},XW=[],eK=Ze(QW,JW,XW,!1,null,null);const tK=eK.exports,rK={name:"FormatIndentIncreaseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},iK=[],oK=Ze(rK,nK,iK,!1,null,null);const sK=oK.exports,aK={name:"FormatItalicIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},uK=[],cK=Ze(aK,lK,uK,!1,null,null);const dK=cK.exports,hK={name:"FormatListBulletedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},fK=[],mK=Ze(hK,pK,fK,!1,null,null);const gK=mK.exports,yK={name:"FormatListCheckboxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var TK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},bK=[],vK=Ze(yK,TK,bK,!1,null,null);const AK=vK.exports,EK={name:"FormatListNumberedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},SK=[],DK=Ze(EK,wK,SK,!1,null,null);const xK=DK.exports,kK={name:"FormatQuoteCloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var CK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},_K=[],NK=Ze(kK,CK,_K,!1,null,null);const FK=NK.exports,OK={name:"FormatSizeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var MK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M2 4V7H7V19H10V7H15V4H2M21 9H12V12H15V19H18V12H21V9Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},RK=[],BK=Ze(OK,MK,RK,!1,null,null);const IK=BK.exports,LK={name:"FormatStrikethroughIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},YK=[],HK=Ze(LK,zK,YK,!1,null,null);const PK=HK.exports,ZK={name:"FormatUnderlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $K=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},UK=[],VK=Ze(ZK,$K,UK,!1,null,null);const jK=VK.exports,GK={name:"HelpCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},WK=[],KK=Ze(GK,qK,WK,!1,null,null);const tF=KK.exports,QK={name:"ImageOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var JK=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},XK=[],eQ=Ze(QK,JK,XK,!1,null,null);const tQ=eQ.exports,rQ={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},iQ=[],oQ=Ze(rQ,nQ,iQ,!1,null,null);const sQ=oQ.exports,aQ={name:"LinkIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},uQ=[],cQ=Ze(aQ,lQ,uQ,!1,null,null);const dQ=cQ.exports,hQ={name:"LinkOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},fQ=[],mQ=Ze(hQ,pQ,fQ,!1,null,null);const gQ=mQ.exports,yQ={name:"LoadingIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var TQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},bQ=[],vQ=Ze(yQ,TQ,bQ,!1,null,null);const AQ=vQ.exports,EQ={name:"PaperclipIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},SQ=[],DQ=Ze(EQ,wQ,SQ,!1,null,null);const xQ=DQ.exports,kQ={name:"PencilOffOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var CQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},_Q=[],NQ=Ze(kQ,CQ,_Q,!1,null,null);const FQ=NQ.exports,OQ={name:"PencilOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var MQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},RQ=[],BQ=Ze(OQ,MQ,RQ,!1,null,null);const Xv=BQ.exports,IQ={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var LQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},zQ=[],YQ=Ze(IQ,LQ,zQ,!1,null,null);const rF=YQ.exports,HQ={name:"ShapeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var PQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},ZQ=[],$Q=Ze(HQ,PQ,ZQ,!1,null,null);const UQ=$Q.exports,VQ={name:"SigmaIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var jQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon sigma-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M18,6H8.83L14.83,12L8.83,18H18V20H6V18L12,12L6,6V4H18V6Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},GQ=[],qQ=Ze(VQ,jQ,GQ,!1,null,null);const WQ=qQ.exports,KQ={name:"TableIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var QQ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},JQ=[],XQ=Ze(KQ,QQ,JQ,!1,null,null);const eJ=XQ.exports,tJ={name:"TableCogIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},nJ=[],iJ=Ze(tJ,rJ,nJ,!1,null,null);const oJ=iJ.exports,sJ={name:"TableColumnPlusAfterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var aJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},lJ=[],uJ=Ze(sJ,aJ,lJ,!1,null,null);const cJ=uJ.exports,dJ={name:"TableColumnPlusBeforeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var hJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},pJ=[],fJ=Ze(dJ,hJ,pJ,!1,null,null);const mJ=fJ.exports,gJ={name:"TableRowPlusAfterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},TJ=[],bJ=Ze(gJ,yJ,TJ,!1,null,null);const vJ=bJ.exports,AJ={name:"TableRowPlusBeforeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var EJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},wJ=[],SJ=Ze(AJ,EJ,wJ,!1,null,null);const DJ=SJ.exports,xJ={name:"TranslateIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},CJ=[],_J=Ze(xJ,kJ,CJ,!1,null,null);const NJ=_J.exports,FJ={name:"TrashCanOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var OJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},MJ=[],RJ=Ze(FJ,OJ,MJ,!1,null,null);const e7=RJ.exports,BJ={name:"TrayArrowUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var IJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},LJ=[],zJ=Ze(BJ,IJ,LJ,!1,null,null);const YJ=zJ.exports,HJ={name:"UnfoldMoreHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var PJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},ZJ=[],$J=Ze(HJ,PJ,ZJ,!1,null,null);const UJ=$J.exports,VJ={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var jJ=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},GJ=[],qJ=Ze(VJ,jJ,GJ,!1,null,null);const WJ=qJ.exports,nF=20,Wt=e=>({functional:!0,render(r,{data:n,props:i}){return r(e,{data:n,key:n.key,staticClass:n.staticClass,props:{size:nF,...i}})}}),ET={functional:!0,render(e,{data:r,props:n}){return e(AQ,{data:r,staticClass:"animation-rotate",props:{size:nF,...n}})}},k9e=Wt(yq),KJ=Wt(rq),QJ=Wt(aq),JJ=Wt(hq),XJ=Wt(Vq),eX=Wt(Kq),iF=Wt(QG),tX=Wt(dW),C9e=Wt(tW),rX=Wt(sW),nX=Wt(gW),iX=Wt(AW),oX=Wt(IK),sX=Wt(eF),aX=Wt(NW),lX=Wt(BW),uX=Wt(HW),cX=Wt(VW),dX=Wt(KW),hX=Wt(tK),pX=Wt(sK),fX=Wt(dK),i2=Wt(gK),mX=Wt(AK),gX=Wt(xK),yX=Wt(FK),TX=Wt(PK),bX=Wt(jK),_9e=Wt(tF),vX=Wt(tQ),t7=Wt(sQ),AX=Wt(dQ),EX=Wt(gQ),wX=Wt(xQ),SX=Wt(Xv),DX=Wt(FQ),oF=Wt(Iq),xX=Wt(kq),kX=Wt(UQ),CX=Wt(eJ),sF=Wt(cJ),_X=Wt(mJ),aF=Wt(vJ),NX=Wt(DJ),FX=Wt(oJ),R3=Wt(e7),OX=Wt(Eq),MX=Wt(UJ),RX=Wt(YJ),lF=Wt(jG),BX=Wt(WJ),IX=Wt(rF),mE=Wt(WQ),r7={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():""}}};function LX(e,r){let n=e.$parent;for(;n;){if(n.$options.name===r)return n;n=n.$parent}}const B3={mixins:[r7],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 r=LX(this,"NcActions");r&&r.closeMenu&&r.closeMenu(!1)}}}},zX={name:"NcActionButton",components:{NcIconSvgWrapper:rp},mixins:[B3],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:uk,mdiChevronRight:VL}},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 YX=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",class:{"action--disabled":e.disabled},attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("button",e._b({staticClass:"action-button button-vue",class:{"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[r("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"}})]}),r("span",{staticClass:"action-button__longtext-wrapper"},[e.name?r("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]):e._e(),e.isLongText?r("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-button__text"},[e._v(" "+e._s(e.text)+" ")]),e.description?r("span",{staticClass:"action-button__description",domProps:{textContent:e._s(e.description)}}):e._e()]),e.isMenu?r("NcIconSvgWrapper",{staticClass:"action-button__menu-icon",attrs:{directional:"",path:e.mdiChevronRight}}):e.isChecked?r("NcIconSvgWrapper",{staticClass:"action-button__pressed-icon",attrs:{path:e.mdiCheck}}):e.isChecked===!1?r("span",{staticClass:"action-button__pressed-icon material-design-icon"}):e._e(),e._e()],2)])},HX=[],PX=qt(zX,YX,HX,!1,null,"5b4c6c71");const _0=PX.exports,ZX={name:"NcActionSeparator"};var $X=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action action-separator action--disabled",attrs:{role:"separator"}})},UX=[],VX=qt(ZX,$X,UX,!1,null,"3e2324b7");const I3=VX.exports;async function jX(e){const r=`${e.token?bo("/apps/text/public"):bo("/apps/text")}/session/${e.fileId}/create`,n=await qn.put(r,e),{document:i,session:o}=n.data;return{connection:{documentId:i.id,sessionId:o.id,sessionToken:o.token,baseVersionEtag:i.baseVersionEtag,filePath:e.filePath,shareToken:e.token},data:n.data}}async function N9e(e,r){if(!r.shareToken)throw new Error("Cannot set guest name without a share token!");const n=r.documentId,i=bo(`/apps/text/public/session/${n}/session`);return(await qn.post(i,{documentId:r.documentId,sessionId:r.sessionId,sessionToken:r.sessionToken,token:r.shareToken,guestName:e})).data}async function GX(e){const r=e.documentId,n=bo(`/apps/text/session/${r}/close`);return(await qn.post(n,{documentId:e.documentId,sessionId:e.sessionId,sessionToken:e.sessionToken})).data}const uF=Symbol("text:connection"),cF=Symbol("text:opendata");function F9e(e){let r;const n=x2(void 0),i=x2(void 0),o=async()=>{const s=localStorage.getItem("nick")??"",{connection:a,data:l}=qX(e)||await jX({fileId:e.fileId,guestName:s,token:e.shareToken,filePath:e.relativePath,baseVersionEtag:r});return r=l.document.baseVersionEtag,n.value=a,i.value=l,l};return Sl(uF,n),Sl(cF,i),{connection:n,openConnection:o,openData:i}}const dF=()=>{const e=wl(uF),r=wl(cF);return{connection:e,openData:r}};function qX(e){if(e.initialSession){const{document:r,session:n}=e.initialSession;return{connection:{documentId:r.id,sessionId:n.id,sessionToken:n.token,baseVersionEtag:r.baseVersionEtag,filePath:e.relativePath,shareToken:e.shareToken},data:e.initialSession}}}function hF(){const e=_i(navigator.onLine?null:Date.now()),r=ri(()=>!e.value);return xu("networkOnline",n=>{n.success&&(e.value=null)}),xu("networkOffline",()=>{e.value=Date.now()}),{networkOnline:r,offlineSince:e}}function pF(e,r=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");if(typeof n=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:i}=n;let o,s,a,l,u;function c(){const p=o,f=s;return o=void 0,s=void 0,u=e.apply(p,f),u}function d(){const p=Date.now()-l;p<r&&p>=0?a=setTimeout(d,r-p):(a=void 0,i||(u=c()))}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 f=i&&!a;if(a||(a=setTimeout(d,r)),f)return u=c(),u};return Object.defineProperty(h,"isPending",{get(){return a!==void 0}}),h.clear=()=>{a&&(clearTimeout(a),a=void 0,o=void 0,s=void 0)},h.flush=()=>{a&&h.trigger()},h.trigger=()=>{u=c(),h.clear()},h}const n7=1024,fF=n7/2,e4=e=>document.documentElement.clientWidth<e,i7=_i(e4(n7)),WX=_i(e4(fF));window.addEventListener("resize",()=>{i7.value=e4(n7),WX.value=e4(fF)},{passive:!0});function dp(){return ld(i7)}ld(i7);let o2;typeof window<"u"?window.btoa?o2=function(e){return btoa(unescape(encodeURIComponent(e)))}:o2=function(e){const r=unescape(encodeURIComponent(e+""));let n="";for(let i,o,s=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.charAt(s|0)||(a="=",s%1);n+=a.charAt(63&i>>8-s%1*8)){if(o=r.charCodeAt(s+=3/4),o>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");i=i<<8|o}return n}:o2=function(e){return o3.from(e).toString("base64")};function Dn(e,r){let n=gE(e,r);return(r&&r.fallback!==void 0?r.fallback:Dn.defaults.fallback)===!0&&n===""&&(n=gE(o2(e),r)),n}const mF={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 wT={};function gE(e,r){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 r=="string"&&(r={replacement:r}),r=r?Object.assign({},r):{},r.mode=r.mode||Dn.defaults.mode;const n=Dn.defaults.modes[r.mode],i=["replacement","multicharmap","charmap","remove","lower","trim"];for(let u,c=0,d=i.length;c<d;c++)u=i[c],r[u]=u in r?r[u]:n[u];const o=mF[r.locale]||wT;let s=[];for(const u in r.multicharmap){if(!Object.prototype.hasOwnProperty.call(r.multicharmap,u))continue;const c=u.length;s.indexOf(c)===-1&&s.push(c)}s=s.sort(function(u,c){return c-u});const a=r.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/;let l="";for(let u,c=0,d=e.length;c<d;c++){u=e[c];let h=!1;for(let p=0;p<s.length;p++){const f=s[p],m=e.substr(c,f);if(r.multicharmap[m]){c+=f-1,u=r.multicharmap[m],h=!0;break}}h||(o[u]?u=o[u]:r.charmap[u]?u=r.charmap[u].replace(r.replacement," "):u.includes(r.replacement)?u=u.replace(r.replacement," "):u=u.replace(a,"")),l+=u}return r.remove&&(l=l.replace(r.remove,"")),r.trim&&(l=l.trim()),l=l.replace(/\s+/g,r.replacement),r.lower&&(l=l.toLowerCase()),l}const yE={फ़:"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"},TE={À:"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"};Dn.charmap=Object.assign({},TE),Dn.multicharmap=Object.assign({},yE),Dn.defaults={charmap:Dn.charmap,mode:"pretty",modes:{rfc3986:{replacement:"-",remove:null,lower:!0,charmap:Dn.charmap,multicharmap:Dn.multicharmap,trim:!0},pretty:{replacement:"-",remove:null,lower:!0,charmap:Dn.charmap,multicharmap:Dn.multicharmap,trim:!0}},multicharmap:Dn.multicharmap,fallback:!0},Dn.reset=function(){Dn.defaults.modes.rfc3986.charmap=Dn.defaults.modes.pretty.charmap=Dn.charmap=Dn.defaults.charmap=Object.assign({},TE),Dn.defaults.modes.rfc3986.multicharmap=Dn.defaults.modes.pretty.multicharmap=Dn.multicharmap=Dn.defaults.multicharmap=Object.assign({},yE),wT=""},Dn.extend=function(e){const r=Object.keys(e),n={},i={};for(let o=0;o<r.length;o++)r[o].length>1?n[r[o]]=e[r[o]]:i[r[o]]=e[r[o]];Object.assign(Dn.charmap,i),Object.assign(Dn.multicharmap,n)},Dn.setLocale=function(e){wT=mF[e]||{}};function bE(e){const r=new Map,n=[],i=o=>{const s=Dn(o);if(r.has(s)){const a=r.get(s);return r.set(s,a+1),`h-${s}--${a}`}return r.set(s,1),"h-"+s};return e.descendants((o,s)=>{if(o.type.name!=="heading")return;const a=o.textContent;if(!a)return;const l=i(a),u=Object.freeze({level:o.attrs.level,text:a,id:l,offset:s});n.push(u)}),n}const gF=new hr("headingAnchor");function KX(){return new lr({key:gF,state:{init(e,{doc:r}){const n=bE(r);return{headings:n,decorations:vE(r,n)}},apply(e,r,n,i){if(!e.docChanged)return r;const o=bE(i.doc),s=QX(r,e,o)||vE(i.doc,o);return{headings:o,decorations:s}}},props:{decorations(e){return this.getState(e).decorations}}})}function QX(e,r,n){if(JX(n,e.headings))return!1;let i=!1;const o=e.decorations.map(r.mapping,r.doc,{onRemove:()=>{i=!0}});return i?!1:o}function JX(e,r){return e.length!==r.length||e.some(XX(r))}const XX=e=>(r,n)=>r.id!==e[n].id||r.level!==e[n].level;function vE(e,r){const n=r.map(eee);return Nr.create(e,n)}function eee(e){return kn.widget(e.offset+1,tee(e),{side:-1})}function tee(e){return r=>{const n=r.dom.querySelector(`#${e.id}`);if(n)return n;const i=document.createElement("a"),o=document.createTextNode("#");return i.appendChild(o),i.setAttribute("id",e.id),i.setAttribute("aria-hidden","true"),i.className="heading-anchor",i.setAttribute("href",`#${e.id}`),i.setAttribute("title",lt("text","Link to this section")),i.setAttribute("contenteditable","false"),i.addEventListener("click",ree),i}}function ree(e){e.stopPropagation(),e.preventDefault();const r=e.target;r.scrollIntoView({block:"start",behavior:"smooth"}),window.history.replaceState({},"",r.getAttribute("href"))}const yF=Symbol("text:headings"),TF=Symbol("text:displaytoc"),O9e=e=>{const r=x2([]),n=_i(!1),i=()=>{r.value=gF.getState(e.state)?.headings??[]};return i(),e.on("update",({transaction:o})=>{o.docChanged&&i()}),Sl(yF,r),Sl(TF,n),xu("text:toc:toggle",o=>{o?.visible!==void 0?n.value=o.visible:n.value=!n.value,Io("text:toc:toggled",n.value)}),{displayToc:n,headings:r,updateHeadings:i}},L3=()=>{const e=wl(yF);return{displayToc:wl(TF),headings:e}},bF=Symbol("wrapper:read-only-actions"),nee={inject:{$readOnlyActions:{from:bF,default:{toggle:()=>{}}}}},ST=navigator.userAgent.includes("Mac"),wr={Mod:ST?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},iee={[wr.Mod]:ST?lt("text","Command"):lt("text","Ctrl"),[wr.Control]:lt("text","Ctrl"),[wr.Alt]:lt("text",ST?"Option":"Alt"),[wr.Shift]:lt("text","Shift")},oee=(e,r)=>({"is-active":r,[`action-menu-${e.key}`]:!0}),see=(e,r=[])=>r.map(n=>iee[n]).concat(e.toUpperCase()).join("+"),aee=({keyChar:e,keyModifiers:r=[]})=>r.map(n=>wr[n]).concat(e).join("+"),AE=(e,{keyChar:r,keyModifiers:n})=>!e&&r?`(${see(r,n)})`:"",lee=(e,r)=>e.action&&!e.action(r.can(),r),vF=({isActive:e},r)=>{if(!e)return!1;const n=Array.isArray(e)?e:[e];for(const i of n){let o;if(i!==null&&typeof i=="object"?o=i.name?[i.name,{...i.attributes}]:[{...i.attributes}]:o=[i],r.isActive(...o))return!0}return!1},uee=e=>Array.isArray(e.isActive)?"button":e.isActive&&typeof e.isActive=="object"?"radio":typeof e.isActive=="string"?"checkbox":"button",EE=(e,r)=>{const n=vF(e,r);return{disabled:lee(e,r),class:oee(e,n),active:n}},Yh={mixins:[nee],setup(){const e=dp(),{editor:r}=hd(),{displayToc:n}=L3();return{displayToc:n,editor:r,isMobile:e}},props:{actionEntry:{type:Object,required:!0},canBeFocussed:{type:Boolean,default:null}},data(){return{state:EE(this.actionEntry,this.editor),actionType:uee(this.actionEntry)}},computed:{label(){const{label:e}=this.actionEntry;return typeof e=="function"?e({displayToc:this.displayToc}):e},icon(){return this.actionEntry.icon},keyshortcuts(){return aee(this.actionEntry)},tooltip(){return[this.label,AE(this.isMobile,this.actionEntry)].join(" ")},listItemTooltip(){return[AE(this.isMobile,this.actionEntry)].join(" ")}},watch:{canBeFocussed(){this.setTabIndexOnButton()}},mounted(){this.$_updateState=pF(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=EE(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()}}},cee=Symbol("menu::id"),z3={inject:{$menuID:{from:cee,default:null}},computed:{menuIDSelector(){return`#${this.$menuID}`}}},dee={name:"ActionAttachmentUpload",components:{NcActions:Nl,NcActionSeparator:I3,NcActionButton:_0,NcIconSvgWrapper:rp,Loading:ET,Folder:nX,Upload:RX,Plus:IX},extends:Yh,mixins:[yk,cz,dz,hz,pz,z3],setup(){const{isPublic:e}=M3(),{openData:r}=dF(),{networkOnline:n}=hF();return{...Yh.setup(),isPublic:e,networkOnline:n,openData:r}},computed:{icon(){return this.isUploadingAttachments?ET:this.actionEntry.icon},isUploadingAttachments(){return this.$uploadingState.isUploadingAttachments},templates(){return zu("files","templates",[])},isUploadDisabled(){return!this.openData?.hasOwner||!this.networkOnline},menuTitle(){return this.networkOnline?this.openData?.hasOwner?this.actionEntry.label:lt("text","Attachments cannot be created or uploaded because this file is shared from another cloud."):lt("text","Disabled because you are currently offline.")}},methods:{createAttachment(e){this.$callCreateAttachment(e)},t:lt}};var hee=function(){var e=this,r=e._self._c;return r("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[r(e.icon,{tag:"component",attrs:{name:e.actionEntry.label,"aria-label":e.actionEntry.label}})]},proxy:!0}])},[e.$editorUpload?r("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[r("Upload")]},proxy:!0}],null,!1,933298848)},[e._v(" "+e._s(e.t("text","Upload from computer"))+" ")]):e._e(),e.isPublic?e._e():r("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[r("Folder")]},proxy:!0}],null,!1,2750733237)},[e._v(" "+e._s(e.t("text","Insert from Files"))+" ")]),e.templates.length?[r("NcActionSeparator"),e._l(e.templates,function(n,i){return r("NcActionButton",{key:`${n.app}-${i}`,attrs:{"close-after-click":"",disabled:e.isUploadingAttachments,"data-text-action-entry":`${e.actionEntry.key}-add-${n.app}-${i}`},on:{click:function(o){return e.createAttachment(n)}},scopedSlots:e._u([{key:"icon",fn:function(){return[n.iconSvgInline?r("NcIconSvgWrapper",{attrs:{svg:n.iconSvgInline}}):r("Plus")]},proxy:!0}],null,!0)},[e._v(" "+e._s(n.actionLabel)+" ")])})]:e._e()],2)},pee=[],fee=Ze(dee,hee,pee,!1,null,null);const mee=fee.exports,gee=["date","datetime-local","month","time","week"],yee={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-"+Xs(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>gee.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Boolean,Date],default:null},max:{type:[Boolean,Date],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:Ra("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 r=e.target.value;if(this.model===""){const{yyyy:n,MM:i,dd:o}=this.getReadableDate(new Date);this.model=new Date(`${n}-${i}-${o}T${r}`)}else{const{yyyy:n,MM:i,dd:o}=this.getReadableDate(this.model);this.model=new Date(`${n}-${i}-${o}T${r}`)}}else if(this.type==="month"){const r=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.model===""){const{yyyy:n,dd:i,hh:o,mm:s}=this.getReadableDate(new Date);this.model=new Date(`${n}-${r}-${i}T${o}:${s}`)}else{const{yyyy:n,dd:i,hh:o,mm:s}=this.getReadableDate(this.model);this.model=new Date(`${n}-${r}-${i}T${o}:${s}`)}}else{const r=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,n=e.target.valueAsNumber+r;this.model=new Date(n)}}}}},methods:{getReadableDate(e){if(e instanceof Date){const r=e.getFullYear().toString().padStart(4,"0"),n=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0");return{yyyy:r,MM:n,dd:i,hh:o,mm:s}}},formatValue(e){if(e instanceof Date){const{yyyy:r,MM:n,dd:i,hh:o,mm:s}=this.getReadableDate(e);if(this.type==="datetime-local")return`${r}-${n}-${i}T${o}:${s}`;if(this.type==="date")return`${r}-${n}-${i}`;if(this.type==="month")return`${r}-${n}`;if(this.type==="time")return`${o}:${s}`;if(this.type==="week"){const a=new Date(r,0,1),l=Math.floor((e-a)/(1440*60*1e3)),u=Math.ceil(l/7);return`${r}-W${u}`}}else return""}}};var Tee=function(){var e=this,r=e._self._c;return r("div",{staticClass:"native-datetime-picker"},[r("label",{staticClass:"native-datetime-picker--label",class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" ")]),r("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))])},bee=[],vee=qt(yee,Tee,bee,!1,null,"6c1feae8");const AF=vee.exports;ck(AF);function Sf(e,r,n){const i=document.querySelector(`#initial-state-${e}-${r}`);if(i===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${r} of ${e}`)}try{return JSON.parse(atob(i.value))}catch{throw new Error(`Could not parse initial state ${r} of ${e}`)}}var rg={exports:{}},wE;function Aee(){if(wE)return rg.exports;wE=1;function e(r,n=100,i={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:o}=typeof i=="boolean"?{immediate:i}:i;let s,a,l,u,c;function d(){const f=s,m=a;return s=void 0,a=void 0,c=r.apply(f,m),c}function h(){const f=Date.now()-u;f<n&&f>=0?l=setTimeout(h,n-f):(l=void 0,o||(c=d()))}const p=function(...f){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,a=f,u=Date.now();const m=o&&!l;return l||(l=setTimeout(h,n)),m&&(c=d()),c};return Object.defineProperty(p,"isPending",{get(){return l!==void 0}}),p.clear=()=>{l&&(clearTimeout(l),l=void 0)},p.flush=()=>{l&&p.trigger()},p.trigger=()=>{c=d(),p.clear()},p}return rg.exports.debounce=e,rg.exports=e,rg.exports}var Eee=Aee();const EF=D0(Eee),wee={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var See=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Dee=[],xee=qt(wee,See,Dee,!1,null,null);const wF=xee.exports,kee={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Cee=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},_ee=[],Nee=qt(kee,Cee,_ee,!1,null,null);const SF=Nee.exports,Fee={name:"NcInputField",components:{NcButton:as,AlertCircle:wF,Check:SF},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=Ra("value","update:value",!0);return{isLegacy32:wa,model:e}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+Xs()},hasTrailingIcon(){return this.success},computedPlaceholder(){if(this.placeholder)return this.placeholder;if(this.label)return wa?this.label:""},isValidLabel(){const e=this.label||this.labelOutside;return e||pi.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 r=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=r},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var Oee=function(){var e=this,r=e._self._c;return r("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}},[r("div",{staticClass:"input-field__main-wrapper"},[r("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?r("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),r("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?r("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?r("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?r("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?r("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?r("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?r("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?r("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},Mee=[],Ree=qt(Fee,Oee,Mee,!1,null,"ab8d7671");const Hh=Ree.exports,Bee={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Iee=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Lee=[],zee=qt(Bee,Iee,Lee,!1,null,null);const Yee=zee.exports,Hee={name:"EyeOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Pee=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Zee=[],$ee=qt(Hee,Pee,Zee,!1,null,null);const Uee=$ee.exports;ar(VI);const SE=Sf("core","capabilities",{}).password_policy||null,Vee=new Set(Object.keys(Hh.props)),jee={name:"NcPasswordField",components:{NcInputField:Hh,IconEye:Yee,IconEyeOff:Uee},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{" ":{},...Hh.props,showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:void 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:r}){const n=Ra("value","update:value"),i=dk(e,"visible",r,{passive:!0});return{t:Xe,model:n,visibility:i}},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??(this.checkPasswordStrength?SE?.minLength:void 0)}},trailingButtonLabelPassword(){return this.visibility?Xe("Hide password"):Xe("Show password")},propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Vee.has(e)))}}},watch:{model(e){if(this.checkPasswordStrength){if(SE===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:EF(async function(e){try{const{data:r}=await qn.post(_s("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=r.ocs.data.passed,r.ocs.data.passed){this.internalHelpMessage=Xe("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=r.ocs.data.reason,this.$emit("invalid")}catch(r){pi.error("Password policy returned an error",r)}},500)}};var Gee=function(){var e=this,r=e._self._c;return r("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?r("IconEyeOff",{attrs:{size:18}}):r("IconEye",{attrs:{size:18}})]},proxy:!0}],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners))},qee=[],Wee=qt(jee,Gee,qee,!1,null,"5acba4dc");const Kee=Wee.exports;ar(jI,Qx);const Qee=new Set(Object.keys(Hh.props)),Jee={name:"NcTextField",components:{NcIconSvgWrapper:rp,NcInputField:Hh},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{" ":{},...Hh.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:Ra("value","update:value"),mdiArrowRight:qL,mdiClose:GL,mdiUndo:jL}},computed:{isArrow(){return this.trailingButtonIcon==="arrowEnd"||this.trailingButtonIcon==="arrowRight"},propsAndAttrsToForward(){const e={arrowEnd:Xe("Save changes"),arrowRight:Xe("Save changes"),close:Xe("Clear text"),undo:Xe("Undo changes")};return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([r])=>Qee.has(r))),trailingButtonLabel:this.trailingButtonLabel||e[this.trailingButtonIcon]}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()}}};var Xee=function(){var e=this,r=e._self._c;return r("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?r("NcIconSvgWrapper",{attrs:{directional:"",path:e.mdiArrowRight}}):r("NcIconSvgWrapper",{attrs:{path:e.trailingButtonIcon==="undo"?e.mdiUndo:e.mdiClose}})]},proxy:!0}:null],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners))},ete=[],tte=qt(Jee,Xee,ete,!1,null,null);const Y3=tte.exports;ar(Jx);const rte={name:"NcActionInput",components:{NcDateTimePickerNative:AF,NcPasswordField:Kee,NcTextField:Y3,NcColorPicker:_5(()=>S1(()=>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:_5(()=>S1(()=>Promise.resolve().then(()=>U6e),void 0,import.meta.url)),NcSelect:_5(()=>S1(()=>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:[r7],model:{prop:"modelValue",event:"update:modelValue"},props:{id:{type:String,default:()=>"action-"+Xs(),validator:e=>e.trim()!==""},inputId:{type:String,default:()=>"action-input-"+Xs(),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:Xe("Submit")}},emits:["input","submit","change","update:value","update:modelValue","update:model-value"],setup(){return{model:Ra("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 nte=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",class:{"action--disabled":e.disabled}},[r("span",{staticClass:"action-input",class:{"action-input-picker--disabled":e.disabled,"action-input--visible-label":e.labelOutside&&e.label},on:{mouseleave:e.onLeave}},[r("span",{staticClass:"action-input__icon-wrapper"},[e._t("icon",function(){return[r("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),r("form",{ref:"form",staticClass:"action-input__form",attrs:{disabled:e.disabled},on:{submit:function(n){return n.preventDefault(),e.onSubmit.apply(null,arguments)}}},[r("div",{staticClass:"action-input__container"},[e.label&&e.labelOutside&&!e.isNativePicker?r("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(),r("div",{staticClass:"action-input__input-container"},[e.datePickerType?r("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?r("NcDateTimePickerNative",e._b({staticClass:"action-input__datetimepicker",attrs:{id:e.idNativeDateTimePicker,value:e.model,label:e.label,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?r("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"?r("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"?r("div",{staticClass:"action-input__container"},[e.label&&e.type==="color"?r("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(),r("div",{staticClass:"action-input__input-container"},[r("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),[r("button",{staticClass:"colorpicker__preview",class:{focusable:e.isFocusable},style:{"background-color":e.model}})])],1)]):r("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)])])])])},ite=[],ote=qt(rte,nte,ite,!1,null,"3f545fde");const DF=ote.exports;function Sa(e,r){for(var n in r)e[n]=r[n];return e}var ste=/[!'()*]/g,ate=function(e){return"%"+e.charCodeAt(0).toString(16)},lte=/%2C/g,Ud=function(e){return encodeURIComponent(e).replace(ste,ate).replace(lte,",")};function DT(e){try{return decodeURIComponent(e)}catch{}return e}function ute(e,r,n){r===void 0&&(r={});var i=n||cte,o;try{o=i(e||"")}catch{o={}}for(var s in r){var a=r[s];o[s]=Array.isArray(a)?a.map(DE):DE(a)}return o}var DE=function(e){return e==null||typeof e=="object"?e:String(e)};function cte(e){var r={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var i=n.replace(/\+/g," ").split("="),o=DT(i.shift()),s=i.length>0?DT(i.join("=")):null;r[o]===void 0?r[o]=s:Array.isArray(r[o])?r[o].push(s):r[o]=[r[o],s]}),r}function dte(e){var r=e?Object.keys(e).map(function(n){var i=e[n];if(i===void 0)return"";if(i===null)return Ud(n);if(Array.isArray(i)){var o=[];return i.forEach(function(s){s!==void 0&&(s===null?o.push(Ud(n)):o.push(Ud(n)+"="+Ud(s)))}),o.join("&")}return Ud(n)+"="+Ud(i)}).filter(function(n){return n.length>0}).join("&"):null;return r?"?"+r:""}var t4=/\/?$/;function r4(e,r,n,i){var o=i&&i.options.stringifyQuery,s=r.query||{};try{s=xT(s)}catch{}var a={name:r.name||e&&e.name,meta:e&&e.meta||{},path:r.path||"/",hash:r.hash||"",query:s,params:r.params||{},fullPath:xE(r,o),matched:e?hte(e):[]};return n&&(a.redirectedFrom=xE(n,o)),Object.freeze(a)}function xT(e){if(Array.isArray(e))return e.map(xT);if(e&&typeof e=="object"){var r={};for(var n in e)r[n]=xT(e[n]);return r}else return e}var Vu=r4(null,{path:"/"});function hte(e){for(var r=[];e;)r.unshift(e),e=e.parent;return r}function xE(e,r){var n=e.path,i=e.query;i===void 0&&(i={});var o=e.hash;o===void 0&&(o="");var s=r||dte;return(n||"/")+s(i)+o}function xF(e,r,n){return r===Vu?e===r:r?e.path&&r.path?e.path.replace(t4,"")===r.path.replace(t4,"")&&(n||e.hash===r.hash&&s2(e.query,r.query)):e.name&&r.name?e.name===r.name&&(n||e.hash===r.hash&&s2(e.query,r.query)&&s2(e.params,r.params)):!1:!1}function s2(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),!e||!r)return e===r;var n=Object.keys(e).sort(),i=Object.keys(r).sort();return n.length!==i.length?!1:n.every(function(o,s){var a=e[o],l=i[s];if(l!==o)return!1;var u=r[o];return a==null||u==null?a===u:typeof a=="object"&&typeof u=="object"?s2(a,u):String(a)===String(u)})}function pte(e,r){return e.path.replace(t4,"/").indexOf(r.path.replace(t4,"/"))===0&&(!r.hash||e.hash===r.hash)&&fte(e.query,r.query)}function fte(e,r){for(var n in r)if(!(n in e))return!1;return!0}function kF(e){for(var r=0;r<e.matched.length;r++){var n=e.matched[r];for(var i in n.instances){var o=n.instances[i],s=n.enteredCbs[i];if(!(!o||!s)){delete n.enteredCbs[i];for(var a=0;a<s.length;a++)o._isBeingDestroyed||s[a](o)}}}}var mte={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,r){var n=r.props,i=r.children,o=r.parent,s=r.data;s.routerView=!0;for(var a=o.$createElement,l=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),d=0,h=!1;o&&o._routerRoot!==o;){var p=o.$vnode?o.$vnode.data:{};p.routerView&&d++,p.keepAlive&&o._directInactive&&o._inactive&&(h=!0),o=o.$parent}if(s.routerViewDepth=d,h){var f=c[l],m=f&&f.component;return m?(f.configProps&&kE(m,s,f.route,f.configProps),a(m,s,i)):a()}var v=u.matched[d],w=v&&v.components[l];if(!v||!w)return c[l]=null,a();c[l]={component:w},s.registerRouteInstance=function(k,R){var O=v.instances[l];(R&&O!==k||!R&&O===k)&&(v.instances[l]=R)},(s.hook||(s.hook={})).prepatch=function(k,R){v.instances[l]=R.componentInstance},s.hook.init=function(k){k.data.keepAlive&&k.componentInstance&&k.componentInstance!==v.instances[l]&&(v.instances[l]=k.componentInstance),kF(u)};var x=v.props&&v.props[l];return x&&(Sa(c[l],{route:u,configProps:x}),kE(w,s,u,x)),a(w,s,i)}};function kE(e,r,n,i){var o=r.props=gte(n,i);if(o){o=r.props=Sa({},o);var s=r.attrs=r.attrs||{};for(var a in o)(!e.props||!(a in e.props))&&(s[a]=o[a],delete o[a])}}function gte(e,r){switch(typeof r){case"undefined":return;case"object":return r;case"function":return r(e);case"boolean":return r?e.params:void 0}}function CF(e,r,n){var i=e.charAt(0);if(i==="/")return e;if(i==="?"||i==="#")return r+e;var o=r.split("/");(!n||!o[o.length-1])&&o.pop();for(var s=e.replace(/^\//,"").split("/"),a=0;a<s.length;a++){var l=s[a];l===".."?o.pop():l!=="."&&o.push(l)}return o[0]!==""&&o.unshift(""),o.join("/")}function yte(e){var r="",n="",i=e.indexOf("#");i>=0&&(r=e.slice(i),e=e.slice(0,i));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:r}}function Ou(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var n4=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},lh=FF,Tte=o7,bte=wte,vte=_F,Ate=NF,Ete=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o7(e,r){for(var n=[],i=0,o=0,s="",a=r&&r.delimiter||"/",l;(l=Ete.exec(e))!=null;){var u=l[0],c=l[1],d=l.index;if(s+=e.slice(o,d),o=d+u.length,c){s+=c[1];continue}var h=e[o],p=l[2],f=l[3],m=l[4],v=l[5],w=l[6],x=l[7];s&&(n.push(s),s="");var k=p!=null&&h!=null&&h!==p,R=w==="+"||w==="*",O=w==="?"||w==="*",P=l[2]||a,V=m||v;n.push({name:f||i++,prefix:p||"",delimiter:P,optional:O,repeat:R,partial:k,asterisk:!!x,pattern:V?xte(V):x?".*":"[^"+a2(P)+"]+?"})}return o<e.length&&(s+=e.substr(o)),s&&n.push(s),n}function wte(e,r){return _F(o7(e,r),r)}function Ste(e){return encodeURI(e).replace(/[\/?#]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})}function Dte(e){return encodeURI(e).replace(/[?#]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})}function _F(e,r){for(var n=new Array(e.length),i=0;i<e.length;i++)typeof e[i]=="object"&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",a7(r)));return function(o,s){for(var a="",l=o||{},u=s||{},c=u.pretty?Ste:encodeURIComponent,d=0;d<e.length;d++){var h=e[d];if(typeof h=="string"){a+=h;continue}var p=l[h.name],f;if(p==null)if(h.optional){h.partial&&(a+=h.prefix);continue}else throw new TypeError('Expected "'+h.name+'" to be defined');if(n4(p)){if(!h.repeat)throw new TypeError('Expected "'+h.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(h.optional)continue;throw new TypeError('Expected "'+h.name+'" to not be empty')}for(var m=0;m<p.length;m++){if(f=c(p[m]),!n[d].test(f))throw new TypeError('Expected all "'+h.name+'" to match "'+h.pattern+'", but received `'+JSON.stringify(f)+"`");a+=(m===0?h.prefix:h.delimiter)+f}continue}if(f=h.asterisk?Dte(p):c(p),!n[d].test(f))throw new TypeError('Expected "'+h.name+'" to match "'+h.pattern+'", but received "'+f+'"');a+=h.prefix+f}return a}}function a2(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function xte(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function s7(e,r){return e.keys=r,e}function a7(e){return e&&e.sensitive?"":"i"}function kte(e,r){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)r.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return s7(e,r)}function Cte(e,r,n){for(var i=[],o=0;o<e.length;o++)i.push(FF(e[o],r,n).source);var s=new RegExp("(?:"+i.join("|")+")",a7(n));return s7(s,r)}function _te(e,r,n){return NF(o7(e,n),r,n)}function NF(e,r,n){n4(r)||(n=r||n,r=[]),n=n||{};for(var i=n.strict,o=n.end!==!1,s="",a=0;a<e.length;a++){var l=e[a];if(typeof l=="string")s+=a2(l);else{var u=a2(l.prefix),c="(?:"+l.pattern+")";r.push(l),l.repeat&&(c+="(?:"+u+c+")*"),l.optional?l.partial?c=u+"("+c+")?":c="(?:"+u+"("+c+"))?":c=u+"("+c+")",s+=c}}var d=a2(n.delimiter||"/"),h=s.slice(-d.length)===d;return i||(s=(h?s.slice(0,-d.length):s)+"(?:"+d+"(?=$))?"),o?s+="$":s+=i&&h?"":"(?="+d+"|$)",s7(new RegExp("^"+s,a7(n)),r)}function FF(e,r,n){return n4(r)||(n=r||n,r=[]),n=n||{},e instanceof RegExp?kte(e,r):n4(e)?Cte(e,r,n):_te(e,r,n)}lh.parse=Tte,lh.compile=bte,lh.tokensToFunction=vte,lh.tokensToRegExp=Ate;var CE=Object.create(null);function l2(e,r,n){r=r||{};try{var i=CE[e]||(CE[e]=lh.compile(e));return typeof r.pathMatch=="string"&&(r[0]=r.pathMatch),i(r,{pretty:!0})}catch{return""}finally{delete r[0]}}function l7(e,r,n,i){var o=typeof e=="string"?{path:e}:e;if(o._normalized)return o;if(o.name){o=Sa({},e);var s=o.params;return s&&typeof s=="object"&&(o.params=Sa({},s)),o}if(!o.path&&o.params&&r){o=Sa({},o),o._normalized=!0;var a=Sa(Sa({},r.params),o.params);if(r.name)o.name=r.name,o.params=a;else if(r.matched.length){var l=r.matched[r.matched.length-1].path;o.path=l2(l,a,"path "+r.path)}return o}var u=yte(o.path||""),c=r&&r.path||"/",d=u.path?CF(u.path,c,n||o.append):c,h=ute(u.query,o.query,i&&i.options.parseQuery),p=o.hash||u.hash;return p&&p.charAt(0)!=="#"&&(p="#"+p),{_normalized:!0,path:d,query:h,hash:p}}var Nte=[String,Object],Fte=[String,Array],_E=function(){},u7={name:"RouterLink",props:{to:{type:Nte,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:Fte,default:"click"}},render:function(e){var r=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),s=o.location,a=o.route,l=o.href,u={},c=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=c??"router-link-active",p=d??"router-link-exact-active",f=this.activeClass==null?h:this.activeClass,m=this.exactActiveClass==null?p:this.exactActiveClass,v=a.redirectedFrom?r4(null,l7(a.redirectedFrom),null,n):a;u[m]=xF(i,v,this.exactPath),u[f]=this.exact||this.exactPath?u[m]:pte(i,v);var w=u[m]?this.ariaCurrentValue:null,x=function(ne){NE(ne)&&(r.replace?n.replace(s,_E):n.push(s,_E))},k={click:NE};Array.isArray(this.event)?this.event.forEach(function(ne){k[ne]=x}):k[this.event]=x;var R={class:u},O=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:a,navigate:x,isActive:u[f],isExactActive:u[m]});if(O){if(O.length===1)return O[0];if(O.length>1||!O.length)return O.length===0?e():e("span",{},O)}if(this.tag==="a")R.on=k,R.attrs={href:l,"aria-current":w};else{var P=OF(this.$slots.default);if(P){P.isStatic=!1;var V=P.data=Sa({},P.data);V.on=V.on||{};for(var W in V.on){var ie=V.on[W];W in k&&(V.on[W]=Array.isArray(ie)?ie:[ie])}for(var ue in k)ue in V.on?V.on[ue].push(k[ue]):V.on[ue]=x;var I=P.data.attrs=Sa({},P.data.attrs);I.href=l,I["aria-current"]=w}else R.on=k}return e(this.tag,R,this.$slots.default)}};function NE(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 r=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return e.preventDefault&&e.preventDefault(),!0}}function OF(e){if(e){for(var r,n=0;n<e.length;n++)if(r=e[n],r.tag==="a"||r.children&&(r=OF(r.children)))return r}}var i4;function kT(e){if(!(kT.installed&&i4===e)){kT.installed=!0,i4=e;var r=function(o){return o!==void 0},n=function(o,s){var a=o.$options._parentVnode;r(a)&&r(a=a.data)&&r(a=a.registerRouteInstance)&&a(o,s)};e.mixin({beforeCreate:function(){r(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",mte),e.component("RouterLink",u7);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var tm=typeof window<"u";function ng(e,r,n,i,o){var s=r||[],a=n||Object.create(null),l=i||Object.create(null);e.forEach(function(d){CT(s,a,l,d,o)});for(var u=0,c=s.length;u<c;u++)s[u]==="*"&&(s.push(s.splice(u,1)[0]),c--,u--);return{pathList:s,pathMap:a,nameMap:l}}function CT(e,r,n,i,o,s){var a=i.path,l=i.name,u=i.pathToRegexpOptions||{},c=Mte(a,o,u.strict);typeof i.caseSensitive=="boolean"&&(u.sensitive=i.caseSensitive);var d={path:c,regex:Ote(c,u),components:i.components||{default:i.component},alias:i.alias?typeof i.alias=="string"?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:l,parent:o,matchAs:s,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:i.props==null?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach(function(v){var w=s?Ou(s+"/"+v.path):void 0;CT(e,r,n,v,d,w)}),r[d.path]||(e.push(d.path),r[d.path]=d),i.alias!==void 0)for(var h=Array.isArray(i.alias)?i.alias:[i.alias],p=0;p<h.length;++p){var f=h[p],m={path:f,children:i.children};CT(e,r,n,m,o,d.path||"/")}l&&(n[l]||(n[l]=d))}function Ote(e,r){var n=lh(e,[],r);return n}function Mte(e,r,n){return n||(e=e.replace(/\/$/,"")),e[0]==="/"||r==null?e:Ou(r.path+"/"+e)}function Rte(e,r){var n=ng(e),i=n.pathList,o=n.pathMap,s=n.nameMap;function a(f){ng(f,i,o,s)}function l(f,m){var v=typeof f!="object"?s[f]:void 0;ng([m||f],i,o,s,v),v&&v.alias.length&&ng(v.alias.map(function(w){return{path:w,children:[m]}}),i,o,s,v)}function u(){return i.map(function(f){return o[f]})}function c(f,m,v){var w=l7(f,m,!1,r),x=w.name;if(x){var k=s[x];if(!k)return p(null,w);var R=k.regex.keys.filter(function(ie){return!ie.optional}).map(function(ie){return ie.name});if(typeof w.params!="object"&&(w.params={}),m&&typeof m.params=="object")for(var O in m.params)!(O in w.params)&&R.indexOf(O)>-1&&(w.params[O]=m.params[O]);return w.path=l2(k.path,w.params),p(k,w,v)}else if(w.path){w.params={};for(var P=0;P<i.length;P++){var V=i[P],W=o[V];if(Bte(W.regex,w.path,w.params))return p(W,w,v)}}return p(null,w)}function d(f,m){var v=f.redirect,w=typeof v=="function"?v(r4(f,m,null,r)):v;if(typeof w=="string"&&(w={path:w}),!w||typeof w!="object")return p(null,m);var x=w,k=x.name,R=x.path,O=m.query,P=m.hash,V=m.params;if(O=x.hasOwnProperty("query")?x.query:O,P=x.hasOwnProperty("hash")?x.hash:P,V=x.hasOwnProperty("params")?x.params:V,k)return s[k],c({_normalized:!0,name:k,query:O,hash:P,params:V},void 0,m);if(R){var W=Ite(R,f),ie=l2(W,V);return c({_normalized:!0,path:ie,query:O,hash:P},void 0,m)}else return p(null,m)}function h(f,m,v){var w=l2(v,m.params),x=c({_normalized:!0,path:w});if(x){var k=x.matched,R=k[k.length-1];return m.params=x.params,p(R,m)}return p(null,m)}function p(f,m,v){return f&&f.redirect?d(f,v||m):f&&f.matchAs?h(f,m,f.matchAs):r4(f,m,v,r)}return{match:c,addRoute:l,getRoutes:u,addRoutes:a}}function Bte(e,r,n){var i=r.match(e);if(i){if(!n)return!0}else return!1;for(var o=1,s=i.length;o<s;++o){var a=e.keys[o-1];a&&(n[a.name||"pathMatch"]=typeof i[o]=="string"?DT(i[o]):i[o])}return!0}function Ite(e,r){return CF(e,r.parent?r.parent.path:"/",!0)}var Lte=tm&&window.performance&&window.performance.now?window.performance:Date;function MF(){return Lte.now().toFixed(3)}var RF=MF();function H3(){return RF}function BF(e){return RF=e}var IF=Object.create(null);function LF(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,r=window.location.href.replace(e,""),n=Sa({},window.history.state);return n.key=H3(),window.history.replaceState(n,"",r),window.addEventListener("popstate",FE),function(){window.removeEventListener("popstate",FE)}}function Mu(e,r,n,i){if(e.app){var o=e.options.scrollBehavior;o&&e.app.$nextTick(function(){var s=zte(),a=o.call(e,r,n,i?s:null);a&&(typeof a.then=="function"?a.then(function(l){RE(l,s)}).catch(function(l){}):RE(a,s))})}}function zF(){var e=H3();e&&(IF[e]={x:window.pageXOffset,y:window.pageYOffset})}function FE(e){zF(),e.state&&e.state.key&&BF(e.state.key)}function zte(){var e=H3();if(e)return IF[e]}function Yte(e,r){var n=document.documentElement,i=n.getBoundingClientRect(),o=e.getBoundingClientRect();return{x:o.left-i.left-r.x,y:o.top-i.top-r.y}}function OE(e){return Ph(e.x)||Ph(e.y)}function ME(e){return{x:Ph(e.x)?e.x:window.pageXOffset,y:Ph(e.y)?e.y:window.pageYOffset}}function Hte(e){return{x:Ph(e.x)?e.x:0,y:Ph(e.y)?e.y:0}}function Ph(e){return typeof e=="number"}var Pte=/^#\d/;function RE(e,r){var n=typeof e=="object";if(n&&typeof e.selector=="string"){var i=Pte.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var o=e.offset&&typeof e.offset=="object"?e.offset:{};o=Hte(o),r=Yte(i,o)}else OE(e)&&(r=ME(e))}else n&&OE(e)&&(r=ME(e));r&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:r.x,top:r.y,behavior:e.behavior}):window.scrollTo(r.x,r.y))}var Ru=tm&&(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 o4(e,r){zF();var n=window.history;try{if(r){var i=Sa({},n.state);i.key=H3(),n.replaceState(i,"",e)}else n.pushState({key:BF(MF())},"",e)}catch{window.location[r?"replace":"assign"](e)}}function _T(e){o4(e,!0)}var pd={redirected:2,aborted:4,cancelled:8,duplicated:16};function Zte(e,r){return P3(e,r,pd.redirected,'Redirected when going from "'+e.fullPath+'" to "'+jte(r)+'" via a navigation guard.')}function $te(e,r){var n=P3(e,r,pd.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function BE(e,r){return P3(e,r,pd.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+r.fullPath+'" with a new navigation.')}function Ute(e,r){return P3(e,r,pd.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+r.fullPath+'" via a navigation guard.')}function P3(e,r,n,i){var o=new Error(i);return o._isRouter=!0,o.from=e,o.to=r,o.type=n,o}var Vte=["params","query","hash"];function jte(e){if(typeof e=="string")return e;if("path"in e)return e.path;var r={};return Vte.forEach(function(n){n in e&&(r[n]=e[n])}),JSON.stringify(r,null,2)}function s4(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function a4(e,r){return s4(e)&&e._isRouter&&(r==null||e.type===r)}function IE(e,r,n){var i=function(o){o>=e.length?n():e[o]?r(e[o],function(){i(o+1)}):i(o+1)};i(0)}function Gte(e){return function(r,n,i){var o=!1,s=0,a=null;YF(e,function(l,u,c,d){if(typeof l=="function"&&l.cid===void 0){o=!0,s++;var h=LE(function(v){Wte(v)&&(v=v.default),l.resolved=typeof v=="function"?v:i4.extend(v),c.components[d]=v,s--,s<=0&&i()}),p=LE(function(v){var w="Failed to resolve async component "+d+": "+v;a||(a=s4(v)?v:new Error(w),i(a))}),f;try{f=l(h,p)}catch(v){p(v)}if(f)if(typeof f.then=="function")f.then(h,p);else{var m=f.component;m&&typeof m.then=="function"&&m.then(h,p)}}}),o||i()}}function YF(e,r){return HF(e.map(function(n){return Object.keys(n.components).map(function(i){return r(n.components[i],n.instances[i],n,i)})}))}function HF(e){return Array.prototype.concat.apply([],e)}var qte=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Wte(e){return e.__esModule||qte&&e[Symbol.toStringTag]==="Module"}function LE(e){var r=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!r)return r=!0,e.apply(this,n)}}var Aa=function(e,r){this.router=e,this.base=Kte(r),this.current=Vu,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};Aa.prototype.listen=function(e){this.cb=e},Aa.prototype.onReady=function(e,r){this.ready?e():(this.readyCbs.push(e),r&&this.readyErrorCbs.push(r))},Aa.prototype.onError=function(e){this.errorCbs.push(e)},Aa.prototype.transitionTo=function(e,r,n){var i=this,o;try{o=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach(function(l){l(a)}),a}var s=this.current;this.confirmTransition(o,function(){i.updateRoute(o),r&&r(o),i.ensureURL(),i.router.afterHooks.forEach(function(a){a&&a(o,s)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(a){a(o)}))},function(a){n&&n(a),a&&!i.ready&&(!a4(a,pd.redirected)||s!==Vu)&&(i.ready=!0,i.readyErrorCbs.forEach(function(l){l(a)}))})},Aa.prototype.confirmTransition=function(e,r,n){var i=this,o=this.current;this.pending=e;var s=function(m){!a4(m)&&s4(m)&&(i.errorCbs.length?i.errorCbs.forEach(function(v){v(m)}):console.error(m)),n&&n(m)},a=e.matched.length-1,l=o.matched.length-1;if(xF(e,o)&&a===l&&e.matched[a]===o.matched[l])return this.ensureURL(),e.hash&&Mu(this.router,o,e,!1),s($te(o,e));var u=Qte(this.current.matched,e.matched),c=u.updated,d=u.deactivated,h=u.activated,p=[].concat(Xte(d),this.router.beforeHooks,ere(c),h.map(function(m){return m.beforeEnter}),Gte(h)),f=function(m,v){if(i.pending!==e)return s(BE(o,e));try{m(e,o,function(w){w===!1?(i.ensureURL(!0),s(Ute(o,e))):s4(w)?(i.ensureURL(!0),s(w)):typeof w=="string"||typeof w=="object"&&(typeof w.path=="string"||typeof w.name=="string")?(s(Zte(o,e)),typeof w=="object"&&w.replace?i.replace(w):i.push(w)):v(w)})}catch(w){s(w)}};IE(p,f,function(){var m=tre(h),v=m.concat(i.router.resolveHooks);IE(v,f,function(){if(i.pending!==e)return s(BE(o,e));i.pending=null,r(e),i.router.app&&i.router.app.$nextTick(function(){kF(e)})})})},Aa.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Aa.prototype.setupListeners=function(){},Aa.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Vu,this.pending=null};function Kte(e){if(!e)if(tm){var r=document.querySelector("base");e=r&&r.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function Qte(e,r){var n,i=Math.max(e.length,r.length);for(n=0;n<i&&e[n]===r[n];n++);return{updated:r.slice(0,n),activated:r.slice(n),deactivated:e.slice(n)}}function c7(e,r,n,i){var o=YF(e,function(s,a,l,u){var c=Jte(s,r);if(c)return Array.isArray(c)?c.map(function(d){return n(d,a,l,u)}):n(c,a,l,u)});return HF(i?o.reverse():o)}function Jte(e,r){return typeof e!="function"&&(e=i4.extend(e)),e.options[r]}function Xte(e){return c7(e,"beforeRouteLeave",PF,!0)}function ere(e){return c7(e,"beforeRouteUpdate",PF)}function PF(e,r){if(r)return function(){return e.apply(r,arguments)}}function tre(e){return c7(e,"beforeRouteEnter",function(r,n,i,o){return rre(r,i,o)})}function rre(e,r,n){return function(i,o,s){return e(i,o,function(a){typeof a=="function"&&(r.enteredCbs[n]||(r.enteredCbs[n]=[]),r.enteredCbs[n].push(a)),s(a)})}}var ZF=(function(e){function r(n,i){e.call(this,n,i),this._startLocation=m1(this.base)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,o=i.options.scrollBehavior,s=Ru&&o;s&&this.listeners.push(LF());var a=function(){var l=n.current,u=m1(n.base);n.current===Vu&&u===n._startLocation||n.transitionTo(u,function(c){s&&Mu(i,c,l,!0)})};window.addEventListener("popstate",a),this.listeners.push(function(){window.removeEventListener("popstate",a)})}},r.prototype.go=function(n){window.history.go(n)},r.prototype.push=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){o4(Ou(s.base+u.fullPath)),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.replace=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){_T(Ou(s.base+u.fullPath)),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.ensureURL=function(n){if(m1(this.base)!==this.current.fullPath){var i=Ou(this.base+this.current.fullPath);n?o4(i):_T(i)}},r.prototype.getCurrentLocation=function(){return m1(this.base)},r})(Aa);function m1(e){var r=window.location.pathname,n=r.toLowerCase(),i=e.toLowerCase();return e&&(n===i||n.indexOf(Ou(i+"/"))===0)&&(r=r.slice(e.length)),(r||"/")+window.location.search+window.location.hash}var $F=(function(e){function r(n,i,o){e.call(this,n,i),!(o&&nre(this.base))&&zE()}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,o=i.options.scrollBehavior,s=Ru&&o;s&&this.listeners.push(LF());var a=function(){var u=n.current;zE()&&n.transitionTo(u2(),function(c){s&&Mu(n.router,c,u,!0),Ru||c2(c.fullPath)})},l=Ru?"popstate":"hashchange";window.addEventListener(l,a),this.listeners.push(function(){window.removeEventListener(l,a)})}},r.prototype.push=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){YE(u.fullPath),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.replace=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){c2(u.fullPath),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.go=function(n){window.history.go(n)},r.prototype.ensureURL=function(n){var i=this.current.fullPath;u2()!==i&&(n?YE(i):c2(i))},r.prototype.getCurrentLocation=function(){return u2()},r})(Aa);function nre(e){var r=m1(e);if(!/^\/#/.test(r))return window.location.replace(Ou(e+"/#"+r)),!0}function zE(){var e=u2();return e.charAt(0)==="/"?!0:(c2("/"+e),!1)}function u2(){var e=window.location.href,r=e.indexOf("#");return r<0?"":(e=e.slice(r+1),e)}function NT(e){var r=window.location.href,n=r.indexOf("#"),i=n>=0?r.slice(0,n):r;return i+"#"+e}function YE(e){Ru?o4(NT(e)):window.location.hash=e}function c2(e){Ru?_T(NT(e)):window.location.replace(NT(e))}var ire=(function(e){function r(n,i){e.call(this,n,i),this.stack=[],this.index=-1}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.push=function(n,i,o){var s=this;this.transitionTo(n,function(a){s.stack=s.stack.slice(0,s.index+1).concat(a),s.index++,i&&i(a)},o)},r.prototype.replace=function(n,i,o){var s=this;this.transitionTo(n,function(a){s.stack=s.stack.slice(0,s.index).concat(a),i&&i(a)},o)},r.prototype.go=function(n){var i=this,o=this.index+n;if(!(o<0||o>=this.stack.length)){var s=this.stack[o];this.confirmTransition(s,function(){var a=i.current;i.index=o,i.updateRoute(s),i.router.afterHooks.forEach(function(l){l&&l(s,a)})},function(a){a4(a,pd.duplicated)&&(i.index=o)})}},r.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},r.prototype.ensureURL=function(){},r})(Aa),jn=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Rte(e.routes||[],this);var r=e.mode||"hash";switch(this.fallback=r==="history"&&!Ru&&e.fallback!==!1,this.fallback&&(r="hash"),tm||(r="abstract"),this.mode=r,r){case"history":this.history=new ZF(this,e.base);break;case"hash":this.history=new $F(this,e.base,this.fallback);break;case"abstract":this.history=new ire(this,e.base);break}},HE={currentRoute:{configurable:!0}};jn.prototype.match=function(e,r,n){return this.matcher.match(e,r,n)},HE.currentRoute.get=function(){return this.history&&this.history.current},jn.prototype.init=function(e){var r=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var s=r.apps.indexOf(e);s>-1&&r.apps.splice(s,1),r.app===e&&(r.app=r.apps[0]||null),r.app||r.history.teardown()}),!this.app){this.app=e;var n=this.history;if(n instanceof ZF||n instanceof $F){var i=function(s){var a=n.current,l=r.options.scrollBehavior,u=Ru&&l;u&&"fullPath"in s&&Mu(r,s,a,!1)},o=function(s){n.setupListeners(),i(s)};n.transitionTo(n.getCurrentLocation(),o,o)}n.listen(function(s){r.apps.forEach(function(a){a._route=s})})}},jn.prototype.beforeEach=function(e){return a6(this.beforeHooks,e)},jn.prototype.beforeResolve=function(e){return a6(this.resolveHooks,e)},jn.prototype.afterEach=function(e){return a6(this.afterHooks,e)},jn.prototype.onReady=function(e,r){this.history.onReady(e,r)},jn.prototype.onError=function(e){this.history.onError(e)},jn.prototype.push=function(e,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(o,s){i.history.push(e,o,s)});this.history.push(e,r,n)},jn.prototype.replace=function(e,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(o,s){i.history.replace(e,o,s)});this.history.replace(e,r,n)},jn.prototype.go=function(e){this.history.go(e)},jn.prototype.back=function(){this.go(-1)},jn.prototype.forward=function(){this.go(1)},jn.prototype.getMatchedComponents=function(e){var r=e?e.matched?e:this.resolve(e).route:this.currentRoute;return r?[].concat.apply([],r.matched.map(function(n){return Object.keys(n.components).map(function(i){return n.components[i]})})):[]},jn.prototype.resolve=function(e,r,n){r=r||this.history.current;var i=l7(e,r,n,this),o=this.match(i,r),s=o.redirectedFrom||o.fullPath,a=this.history.base,l=ore(a,s,this.mode);return{location:i,route:o,href:l,normalizedTo:i,resolved:o}},jn.prototype.getRoutes=function(){return this.matcher.getRoutes()},jn.prototype.addRoute=function(e,r){this.matcher.addRoute(e,r),this.history.current!==Vu&&this.history.transitionTo(this.history.getCurrentLocation())},jn.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Vu&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(jn.prototype,HE);function a6(e,r){return e.push(r),function(){var n=e.indexOf(r);n>-1&&e.splice(n,1)}}function ore(e,r,n){var i=n==="hash"?"#"+r:r;return e?Ou(e+"/"+i):i}jn.install=kT,jn.version="3.6.5",jn.isNavigationFailure=a4,jn.NavigationFailureType=pd,jn.START_LOCATION=Vu,tm&&window.Vue&&window.Vue.use(jn);const sre={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var are=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},lre=[],ure=qt(sre,are,lre,!1,null,null);const cre=ure.exports;window._vue_richtext_widgets??={},window._registerWidget??=(e,r,n,i)=>{dre(e,r,n,i)};function dre(e,r,n=()=>{},i){const o={hasInteractiveView:!0,fullWidth:!1,...i};if(window._vue_richtext_widgets[e]){pi.error(`[ReferencePicker]: Widget for id ${e} already registered`);return}window._vue_richtext_widgets[e]={id:e,callback:r,onDestroy:n,...o}}function hre(e,r){const{richObjectType:n,richObject:i,accessible:o,interactive:s}=r;if(n!=="open-graph"){if(!window._vue_richtext_widgets[n]){pi.error("Widget for rich object type "+n+" not registered");return}window._vue_richtext_widgets[n].callback(e,{richObjectType:n,richObject:i,accessible:o,interactive:s})}}function pre(e,r){e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(r)}function PE(e){return!!window._vue_richtext_widgets[e]}function fre(e){return!!window._vue_richtext_widgets[e]?.hasInteractiveView}function mre(e){return!!window._vue_richtext_widgets[e]?.fullWidth}window._vue_richtext_custom_picker_elements??={},window._registerCustomPickerElement??=yre;function Df(e){return!!window._vue_richtext_custom_picker_elements[e]}function gre(e){const r=window._vue_richtext_custom_picker_elements[e]?.size;return["small","normal","large","full"].includes(r)?r:null}function yre(e,r,n=()=>{},i="large"){if(window._vue_richtext_custom_picker_elements[e]){pi.error(`Custom reference picker element for id ${e} already registered`);return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:r,onDestroy:n,size:i}}function Tre(e,r){const{providerId:n,accessible:i}=r;if(!window._vue_richtext_custom_picker_elements[n]){pi.error(`Custom reference picker element for reference provider ID ${n} not registered`);return}return window._vue_richtext_custom_picker_elements[n].callback(e,{providerId:n,accessible:i})}function bre(e,r,n){window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(r,n)}window._nc_vue_element_id=window._nc_vue_element_id??0;function d7(){return`nc-vue-${window._nc_vue_element_id++}`}const vre={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},setup(){return{nameId:d7()}},computed:{hasName(){return this.name!==""||this.$slots.name},hasDescription(){return this.description!==""||this.$slots.description?.[0]}}};var Are=function(){var e=this,r=e._self._c;return r("div",{staticClass:"empty-content",attrs:{"aria-labelledby":e.nameId,role:"note"}},[e.$slots.icon?r("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e.hasName?r("div",{staticClass:"empty-content__name",attrs:{id:e.nameId}},[e._t("name",function(){return[e._v(" "+e._s(e.name)+" ")]})],2):e._e(),e.hasDescription?r("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?r("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()])},Ere=[],wre=qt(vre,Are,Ere,!1,null,"c3123941");const h7=wre.exports;function UF(e,r){const n=[];let i=0,o=e.toLowerCase().indexOf(r.toLowerCase(),i),s=0;for(;o>-1&&s<e.length;)i=o+r.length,n.push({start:o,end:i}),o=e.toLowerCase().indexOf(r.toLowerCase(),i),s++;return n}const Sre={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=UF(this.text,this.search),e.forEach((r,n)=>{r.end<r.start&&(e[n]={start:r.end,end:r.start})}),e=e.reduce((r,n)=>(n.start<this.text.length&&n.end>0&&r.push({start:n.start<0?0:n.start,end:n.end>this.text.length?this.text.length:n.end}),r),[]),e.sort((r,n)=>r.start-n.start),e=e.reduce((r,n)=>{if(!r.length)r.push(n);else{const i=r.length-1;r[i].end>=n.start?r[i]={start:r[i].start,end:Math.max(r[i].end,n.end)}:r.push(n)}return r},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let r=0,n=0;for(;r<this.text.length;){const i=this.ranges[n];if(i.start===r){e.push({...i,highlight:!0,text:this.text.slice(i.start,i.end)}),n++,r=i.end,n>=this.ranges.length&&r<this.text.length&&(e.push({start:r,end:this.text.length,highlight:!1,text:this.text.slice(r)}),r=this.text.length);continue}e.push({start:r,end:i.start,highlight:!1,text:this.text.slice(r,i.start)}),r=i.start}return e}},render(e){return this.ranges.length?e("span",{},this.chunks.map(r=>r.highlight?e("strong",{},r.text):r.text)):e("span",{},this.text)}},Dre=null,xre=null;var kre=qt(Sre,Dre,xre,!1,null,null);const Z3=kre.exports,l4=Math.min,Uc=Math.max,u4=Math.round,ig=Math.floor,Al=e=>({x:e,y:e}),Cre={left:"right",right:"left",bottom:"top",top:"bottom"},_re={start:"end",end:"start"};function ZE(e,r,n){return Uc(e,l4(r,n))}function Zh(e,r){return typeof e=="function"?e(r):e}function ju(e){return e.split("-")[0]}function $3(e){return e.split("-")[1]}function p7(e){return e==="x"?"y":"x"}function VF(e){return e==="y"?"height":"width"}const Nre=new Set(["top","bottom"]);function s0(e){return Nre.has(ju(e))?"y":"x"}function jF(e){return p7(s0(e))}function Fre(e,r,n){n===void 0&&(n=!1);const i=$3(e),o=jF(e),s=VF(o);let a=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(a=c4(a)),[a,c4(a)]}function Ore(e){const r=c4(e);return[FT(e),r,FT(r)]}function FT(e){return e.replace(/start|end/g,r=>_re[r])}const $E=["left","right"],UE=["right","left"],Mre=["top","bottom"],Rre=["bottom","top"];function Bre(e,r,n){switch(e){case"top":case"bottom":return n?r?UE:$E:r?$E:UE;case"left":case"right":return r?Mre:Rre;default:return[]}}function Ire(e,r,n,i){const o=$3(e);let s=Bre(ju(e),n==="start",i);return o&&(s=s.map(a=>a+"-"+o),r&&(s=s.concat(s.map(FT)))),s}function c4(e){return e.replace(/left|right|bottom|top/g,r=>Cre[r])}function Lre(e){return{top:0,right:0,bottom:0,left:0,...e}}function zre(e){return typeof e!="number"?Lre(e):{top:e,right:e,bottom:e,left:e}}function d4(e){const{x:r,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:r,right:r+i,bottom:n+o,x:r,y:n}}function VE(e,r,n){let{reference:i,floating:o}=e;const s=s0(r),a=jF(r),l=VF(a),u=ju(r),c=s==="y",d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;let f;switch(u){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:h};break;case"left":f={x:i.x-o.width,y:h};break;default:f={x:i.x,y:i.y}}switch($3(r)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1);break}return f}const Yre=async(e,r,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(r));let c=await a.getElementRects({reference:e,floating:r,strategy:o}),{x:d,y:h}=VE(c,i,u),p=i,f={},m=0;for(let v=0;v<l.length;v++){const{name:w,fn:x}=l[v],{x:k,y:R,data:O,reset:P}=await x({x:d,y:h,initialPlacement:i,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:r}});d=k??d,h=R??h,f={...f,[w]:{...f[w],...O}},P&&m<=50&&(m++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(c=P.rects===!0?await a.getElementRects({reference:e,floating:r,strategy:o}):P.rects),{x:d,y:h}=VE(c,p,u)),v=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:f}};async function GF(e,r){var n;r===void 0&&(r={});const{x:i,y:o,platform:s,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=Zh(r,e),m=zre(f),v=l[p?h==="floating"?"reference":"floating":h],w=d4(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),x=h==="floating"?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),R=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},O=d4(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:x,offsetParent:k,strategy:u}):x);return{top:(w.top-O.top+m.top)/R.y,bottom:(O.bottom-w.bottom+m.bottom)/R.y,left:(w.left-O.left+m.left)/R.x,right:(O.right-w.right+m.right)/R.x}}const Hre=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,i;const{placement:o,middlewareData:s,rects:a,initialPlacement:l,platform:u,elements:c}=r,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...w}=Zh(e,r);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=ju(o),k=s0(l),R=ju(l)===l,O=await(u.isRTL==null?void 0:u.isRTL(c.floating)),P=p||(R||!v?[c4(l)]:Ore(l)),V=m!=="none";!p&&V&&P.push(...Ire(l,v,m,O));const W=[l,...P],ie=await GF(r,w),ue=[];let I=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&ue.push(ie[x]),h){const Ee=Fre(o,a,O);ue.push(ie[Ee[0]],ie[Ee[1]])}if(I=[...I,{placement:o,overflows:ue}],!ue.every(Ee=>Ee<=0)){var ne,he;const Ee=(((ne=s.flip)==null?void 0:ne.index)||0)+1,ge=W[Ee];if(ge&&(!(h==="alignment"&&k!==s0(ge))||I.every(Me=>s0(Me.placement)===k?Me.overflows[0]>0:!0)))return{data:{index:Ee,overflows:I},reset:{placement:ge}};let Oe=(he=I.filter(Me=>Me.overflows[0]<=0).sort((Me,Ve)=>Me.overflows[1]-Ve.overflows[1])[0])==null?void 0:he.placement;if(!Oe)switch(f){case"bestFit":{var re;const Me=(re=I.filter(Ve=>{if(V){const it=s0(Ve.placement);return it===k||it==="y"}return!0}).map(Ve=>[Ve.placement,Ve.overflows.filter(it=>it>0).reduce((it,ct)=>it+ct,0)]).sort((Ve,it)=>Ve[1]-it[1])[0])==null?void 0:re[0];Me&&(Oe=Me);break}case"initialPlacement":Oe=l;break}if(o!==Oe)return{reset:{placement:Oe}}}return{}}}},qF=new Set(["left","top"]);async function Pre(e,r){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),a=ju(n),l=$3(n),u=s0(n)==="y",c=qF.has(a)?-1:1,d=s&&u?-1:1,h=Zh(r,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof m=="number"&&(f=l==="end"?m*-1:m),u?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const Zre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,i;const{x:o,y:s,placement:a,middlewareData:l}=r,u=await Pre(r,e);return a===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},$re=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:i,placement:o}=r,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x,y:k}=w;return{x,y:k}}},...u}=Zh(e,r),c={x:n,y:i},d=await GF(r,u),h=s0(ju(o)),p=p7(h);let f=c[p],m=c[h];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",k=f+d[w],R=f-d[x];f=ZE(k,f,R)}if(a){const w=h==="y"?"top":"left",x=h==="y"?"bottom":"right",k=m+d[w],R=m-d[x];m=ZE(k,m,R)}const v=l.fn({...r,[p]:f,[h]:m});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[p]:s,[h]:a}}}}}},Ure=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:i,placement:o,rects:s,middlewareData:a}=r,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=Zh(e,r),d={x:n,y:i},h=s0(o),p=p7(h);let f=d[p],m=d[h];const v=Zh(l,r),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const R=p==="y"?"height":"width",O=s.reference[p]-s.floating[R]+w.mainAxis,P=s.reference[p]+s.reference[R]-w.mainAxis;f<O?f=O:f>P&&(f=P)}if(c){var x,k;const R=p==="y"?"width":"height",O=qF.has(ju(o)),P=s.reference[h]-s.floating[R]+(O&&((x=a.offset)==null?void 0:x[h])||0)+(O?0:w.crossAxis),V=s.reference[h]+s.reference[R]+(O?0:((k=a.offset)==null?void 0:k[h])||0)-(O?w.crossAxis:0);m<P?m=P:m>V&&(m=V)}return{[p]:f,[h]:m}}}};function U3(){return typeof window<"u"}function hp(e){return WF(e)?(e.nodeName||"").toLowerCase():"#document"}function Fs(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Fl(e){var r;return(r=(WF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function WF(e){return U3()?e instanceof Node||e instanceof Fs(e).Node:!1}function Oa(e){return U3()?e instanceof Element||e instanceof Fs(e).Element:!1}function Cl(e){return U3()?e instanceof HTMLElement||e instanceof Fs(e).HTMLElement:!1}function jE(e){return!U3()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fs(e).ShadowRoot}const Vre=new Set(["inline","contents"]);function rm(e){const{overflow:r,overflowX:n,overflowY:i,display:o}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+n)&&!Vre.has(o)}const jre=new Set(["table","td","th"]);function Gre(e){return jre.has(hp(e))}const qre=[":popover-open",":modal"];function V3(e){return qre.some(r=>{try{return e.matches(r)}catch{return!1}})}const Wre=["transform","translate","scale","rotate","perspective"],Kre=["transform","translate","scale","rotate","perspective","filter"],Qre=["paint","layout","strict","content"];function f7(e){const r=m7(),n=Oa(e)?Ma(e):e;return Wre.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||Kre.some(i=>(n.willChange||"").includes(i))||Qre.some(i=>(n.contain||"").includes(i))}function Jre(e){let r=Gu(e);for(;Cl(r)&&!$h(r);){if(f7(r))return r;if(V3(r))return null;r=Gu(r)}return null}function m7(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xre=new Set(["html","body","#document"]);function $h(e){return Xre.has(hp(e))}function Ma(e){return Fs(e).getComputedStyle(e)}function j3(e){return Oa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gu(e){if(hp(e)==="html")return e;const r=e.assignedSlot||e.parentNode||jE(e)&&e.host||Fl(e);return jE(r)?r.host:r}function KF(e){const r=Gu(e);return $h(r)?e.ownerDocument?e.ownerDocument.body:e.body:Cl(r)&&rm(r)?r:KF(r)}function xf(e,r,n){var i;r===void 0&&(r=[]),n===void 0&&(n=!0);const o=KF(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),a=Fs(o);if(s){const l=OT(a);return r.concat(a,a.visualViewport||[],rm(o)?o:[],l&&n?xf(l):[])}return r.concat(o,xf(o,[],n))}function OT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QF(e){const r=Ma(e);let n=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const o=Cl(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:i,l=u4(n)!==s||u4(i)!==a;return l&&(n=s,i=a),{width:n,height:i,$:l}}function g7(e){return Oa(e)?e:e.contextElement}function vh(e){const r=g7(e);if(!Cl(r))return Al(1);const n=r.getBoundingClientRect(),{width:i,height:o,$:s}=QF(r);let a=(s?u4(n.width):n.width)/i,l=(s?u4(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const ene=Al(0);function JF(e){const r=Fs(e);return!m7()||!r.visualViewport?ene:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tne(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==Fs(e)?!1:r}function nd(e,r,n,i){r===void 0&&(r=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=g7(e);let a=Al(1);r&&(i?Oa(i)&&(a=vh(i)):a=vh(e));const l=tne(s,n,i)?JF(s):Al(0);let u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,d=o.width/a.x,h=o.height/a.y;if(s){const p=Fs(s),f=i&&Oa(i)?Fs(i):i;let m=p,v=OT(m);for(;v&&i&&f!==m;){const w=vh(v),x=v.getBoundingClientRect(),k=Ma(v),R=x.left+(v.clientLeft+parseFloat(k.paddingLeft))*w.x,O=x.top+(v.clientTop+parseFloat(k.paddingTop))*w.y;u*=w.x,c*=w.y,d*=w.x,h*=w.y,u+=R,c+=O,m=Fs(v),v=OT(m)}}return d4({width:d,height:h,x:u,y:c})}function G3(e,r){const n=j3(e).scrollLeft;return r?r.left+n:nd(Fl(e)).left+n}function XF(e,r){const n=e.getBoundingClientRect(),i=n.left+r.scrollLeft-G3(e,n),o=n.top+r.scrollTop;return{x:i,y:o}}function rne(e){let{elements:r,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",a=Fl(i),l=r?V3(r.floating):!1;if(i===a||l&&s)return n;let u={scrollLeft:0,scrollTop:0},c=Al(1);const d=Al(0),h=Cl(i);if((h||!h&&!s)&&((hp(i)!=="body"||rm(a))&&(u=j3(i)),Cl(i))){const f=nd(i);c=vh(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}const p=a&&!h&&!s?XF(a,u):Al(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}}function nne(e){return Array.from(e.getClientRects())}function ine(e){const r=Fl(e),n=j3(e),i=e.ownerDocument.body,o=Uc(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),s=Uc(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+G3(e);const l=-n.scrollTop;return Ma(i).direction==="rtl"&&(a+=Uc(r.clientWidth,i.clientWidth)-o),{width:o,height:s,x:a,y:l}}const GE=25;function one(e,r){const n=Fs(e),i=Fl(e),o=n.visualViewport;let s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;const d=m7();(!d||d&&r==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const c=G3(i);if(c<=0){const d=i.ownerDocument,h=d.body,p=getComputedStyle(h),f=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(i.clientWidth-h.clientWidth-f);m<=GE&&(s-=m)}else c<=GE&&(s+=c);return{width:s,height:a,x:l,y:u}}const sne=new Set(["absolute","fixed"]);function ane(e,r){const n=nd(e,!0,r==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=Cl(e)?vh(e):Al(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,u=o*s.x,c=i*s.y;return{width:a,height:l,x:u,y:c}}function qE(e,r,n){let i;if(r==="viewport")i=one(e,n);else if(r==="document")i=ine(Fl(e));else if(Oa(r))i=ane(r,n);else{const o=JF(e);i={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return d4(i)}function eO(e,r){const n=Gu(e);return n===r||!Oa(n)||$h(n)?!1:Ma(n).position==="fixed"||eO(n,r)}function lne(e,r){const n=r.get(e);if(n)return n;let i=xf(e,[],!1).filter(l=>Oa(l)&&hp(l)!=="body"),o=null;const s=Ma(e).position==="fixed";let a=s?Gu(e):e;for(;Oa(a)&&!$h(a);){const l=Ma(a),u=f7(a);!u&&l.position==="fixed"&&(o=null),(s?!u&&!o:!u&&l.position==="static"&&o&&sne.has(o.position)||rm(a)&&!u&&eO(e,a))?i=i.filter(c=>c!==a):o=l,a=Gu(a)}return r.set(e,i),i}function une(e){let{element:r,boundary:n,rootBoundary:i,strategy:o}=e;const s=[...n==="clippingAncestors"?V3(r)?[]:lne(r,this._c):[].concat(n),i],a=s[0],l=s.reduce((u,c)=>{const d=qE(r,c,o);return u.top=Uc(d.top,u.top),u.right=l4(d.right,u.right),u.bottom=l4(d.bottom,u.bottom),u.left=Uc(d.left,u.left),u},qE(r,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cne(e){const{width:r,height:n}=QF(e);return{width:r,height:n}}function dne(e,r,n){const i=Cl(r),o=Fl(r),s=n==="fixed",a=nd(e,!0,s,r);let l={scrollLeft:0,scrollTop:0};const u=Al(0);function c(){u.x=G3(o)}if(i||!i&&!s)if((hp(r)!=="body"||rm(o))&&(l=j3(r)),i){const f=nd(r,!0,s,r);u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}else o&&c();s&&!i&&o&&c();const d=o&&!i&&!s?XF(o,l):Al(0),h=a.left+l.scrollLeft-u.x-d.x,p=a.top+l.scrollTop-u.y-d.y;return{x:h,y:p,width:a.width,height:a.height}}function l6(e){return Ma(e).position==="static"}function WE(e,r){if(!Cl(e)||Ma(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return Fl(e)===n&&(n=n.ownerDocument.body),n}function tO(e,r){const n=Fs(e);if(V3(e))return n;if(!Cl(e)){let o=Gu(e);for(;o&&!$h(o);){if(Oa(o)&&!l6(o))return o;o=Gu(o)}return n}let i=WE(e,r);for(;i&&Gre(i)&&l6(i);)i=WE(i,r);return i&&$h(i)&&l6(i)&&!f7(i)?n:i||Jre(e)||n}const hne=async function(e){const r=this.getOffsetParent||tO,n=this.getDimensions,i=await n(e.floating);return{reference:dne(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pne(e){return Ma(e).direction==="rtl"}const fne={convertOffsetParentRelativeRectToViewportRelativeRect:rne,getDocumentElement:Fl,getClippingRect:une,getOffsetParent:tO,getElementRects:hne,getClientRects:nne,getDimensions:cne,getScale:vh,isElement:Oa,isRTL:pne};function rO(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function mne(e,r){let n=null,i;const o=Fl(e);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const c=e.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=c;if(l||r(),!p||!f)return;const m=ig(h),v=ig(o.clientWidth-(d+p)),w=ig(o.clientHeight-(h+f)),x=ig(d),k={rootMargin:-m+"px "+-v+"px "+-w+"px "+-x+"px",threshold:Uc(0,l4(1,u))||1};let R=!0;function O(P){const V=P[0].intersectionRatio;if(V!==u){if(!R)return a();V?a(!1,V):i=setTimeout(()=>{a(!1,1e-7)},1e3)}V===1&&!rO(c,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(O,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(O,k)}n.observe(e)}return a(!0),s}function gne(e,r,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,c=g7(e),d=o||s?[...c?xf(c):[],...xf(r)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const h=c&&l?mne(c,n):null;let p=-1,f=null;a&&(f=new ResizeObserver(x=>{let[k]=x;k&&k.target===c&&f&&(f.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var R;(R=f)==null||R.observe(r)})),n()}),c&&!u&&f.observe(c),f.observe(r));let m,v=u?nd(e):null;u&&w();function w(){const x=nd(e);v&&!rO(v,x)&&n(),v=x,m=requestAnimationFrame(w)}return n(),()=>{var x;d.forEach(k=>{o&&k.removeEventListener("scroll",n),s&&k.removeEventListener("resize",n)}),h?.(),(x=f)==null||x.disconnect(),f=null,u&&cancelAnimationFrame(m)}}const yne=Zre,Tne=$re,bne=Hre,vne=Ure,nO=(e,r,n)=>{const i=new Map,o={platform:fne,...n},s={...o.platform,_c:i};return Yre(e,r,{...o,platform:s})};var MT={exports:{}},Ane=MT.exports,KE;function Ene(){return KE||(KE=1,(function(e,r){(function(n,i){e.exports=i()})(typeof self<"u"?self:Ane,(function(){return(()=>{var n={646:a=>{a.exports=function(l){if(Array.isArray(l)){for(var u=0,c=new Array(l.length);u<l.length;u++)c[u]=l[u];return c}}},713:a=>{a.exports=function(l,u,c){return u in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l}},860:a=>{a.exports=function(l){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]")return Array.from(l)}},206:a=>{a.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(a,l,u)=>{var c=u(646),d=u(860),h=u(206);a.exports=function(p){return c(p)||d(p)||h()}},8:a=>{function l(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a.exports=l=function(c){return typeof c}:a.exports=l=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l(u)}a.exports=l}},i={};function o(a){var l=i[a];if(l!==void 0)return l.exports;var u=i[a]={exports:{}};return n[a](u,u.exports,o),u.exports}o.n=a=>{var l=a&&a.__esModule?()=>a.default:()=>a;return o.d(l,{a:l}),l},o.d=(a,l)=>{for(var u in l)o.o(l,u)&&!o.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:l[u]})},o.o=(a,l)=>Object.prototype.hasOwnProperty.call(a,l),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{VueSelect:()=>W,default:()=>ue,mixins:()=>ie});var a=o(319),l=o.n(a),u=o(8),c=o.n(u),d=o(713),h=o.n(d);const p={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(I){var ne=this;this.autoscroll&&I&&this.$nextTick((function(){return ne.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var I,ne=((I=this.$refs.dropdownMenu)===null||I===void 0?void 0:I.children[this.typeAheadPointer])||!1;if(ne){var he=this.getDropdownViewport(),re=ne.getBoundingClientRect(),Ee=re.top,ge=re.bottom,Oe=re.height;if(Ee<he.top)return this.$refs.dropdownMenu.scrollTop=ne.offsetTop;if(ge>he.bottom)return this.$refs.dropdownMenu.scrollTop=ne.offsetTop-(he.height-Oe)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},f={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var I=0;I<this.filteredOptions.length;I++)if(this.selectable(this.filteredOptions[I])){this.typeAheadPointer=I;break}}},open:function(I){I&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var I=this.typeAheadPointer-1;I>=0;I--)if(this.selectable(this.filteredOptions[I])){this.typeAheadPointer=I;break}},typeAheadDown:function(){for(var I=this.typeAheadPointer+1;I<this.filteredOptions.length;I++)if(this.selectable(this.filteredOptions[I])){this.typeAheadPointer=I;break}},typeAheadSelect:function(){var I=this.filteredOptions[this.typeAheadPointer];I&&this.selectable(I)&&this.select(I)},typeAheadToLastSelected:function(){var I=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;I!==-1&&(this.typeAheadPointer=I)}}},m={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(I){this.mutableLoading=I}},methods:{toggleLoading:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=I??!this.mutableLoading}}};function v(I,ne,he,re,Ee,ge,Oe,Me){var Ve,it=typeof I=="function"?I.options:I;return ne&&(it.render=ne,it.staticRenderFns=he,it._compiled=!0),{exports:I,options:it}}const w={Deselect:v({},(function(){var I=this.$createElement,ne=this._self._c||I;return ne("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[ne("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:v({},(function(){var I=this.$createElement,ne=this._self._c||I;return ne("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[ne("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},x={inserted:function(I,ne,he){var re=he.context;if(re.appendToBody){document.body.appendChild(I);var Ee=re.$refs.toggle.getBoundingClientRect(),ge=Ee.height,Oe=Ee.top,Me=Ee.left,Ve=Ee.width,it=window.scrollX||window.pageXOffset,ct=window.scrollY||window.pageYOffset;I.unbindPosition=re.calculatePosition(I,re,{width:Ve+"px",left:it+Me+"px",top:ct+Oe+ge+"px"})}},unbind:function(I,ne,he){he.context.appendToBody&&(I.unbindPosition&&typeof I.unbindPosition=="function"&&I.unbindPosition(),I.parentNode&&I.parentNode.removeChild(I))}},k=function(I){var ne={};return Object.keys(I).sort().forEach((function(he){ne[he]=I[he]})),JSON.stringify(ne)};var R=0;const O=function(){return++R};function P(I,ne){var he=Object.keys(I);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(I);ne&&(re=re.filter((function(Ee){return Object.getOwnPropertyDescriptor(I,Ee).enumerable}))),he.push.apply(he,re)}return he}function V(I){for(var ne=1;ne<arguments.length;ne++){var he=arguments[ne]!=null?arguments[ne]:{};ne%2?P(Object(he),!0).forEach((function(re){h()(I,re,he[re])})):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(he)):P(Object(he)).forEach((function(re){Object.defineProperty(I,re,Object.getOwnPropertyDescriptor(he,re))}))}return I}const W=v({components:V({},w),directives:{appendToBody:x},mixins:[p,f,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(I){return"Deselect ".concat(I)}},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(I){return I}},selectable:{type:Function,default:function(I){return!0}},getOptionLabel:{type:Function,default:function(I){return c()(I)==="object"?I.hasOwnProperty(this.label)?I[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(I),`. `)+"https://vue-select.org/api/props.html#getoptionlabel"):I}},getOptionKey:{type:Function,default:function(I){if(c()(I)!=="object")return I;try{return I.hasOwnProperty("id")?I.id:k(I)}catch(ne){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`,I,ne)}}},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(I,ne,he){return(ne||"").toLocaleLowerCase().indexOf(he.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(I,ne){var he=this;return I.filter((function(re){var Ee=he.getOptionLabel(re);return typeof Ee=="number"&&(Ee=Ee.toString()),he.filterBy(re,Ee,ne)}))}},createOption:{type:Function,default:function(I){return c()(this.optionList[0])==="object"?h()({},this.label,I):I}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(I){return["function","boolean"].includes(c()(I))}},clearSearchOnBlur:{type:Function,default:function(I){var ne=I.clearSearchOnSelect,he=I.multiple;return ne&&!he}},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(I,ne){return I}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(I,ne,he){var re=he.width,Ee=he.top,ge=he.left;I.style.top=Ee,I.style.left=ge,I.style.width=re}},dropdownShouldOpen:{type:Function,default:function(I){var ne=I.noDrop,he=I.open,re=I.mutableLoading;return!ne&&he&&!re}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return O()}}},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 I=this.value;return this.isTrackingValues&&(I=this.$data._value),I!=null&&I!==""?[].concat(I):[]},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 I=this,ne={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:V({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 I.isComposing=!0},compositionend:function(){return I.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(he){return I.search=he.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:ne,listFooter:ne,header:V({},ne,{deselect:this.deselect}),footer:V({},ne,{deselect:this.deselect})}},childComponents:function(){return V({},w,{},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 I=this,ne=function(ge){return I.limit!==null?ge.slice(0,I.limit):ge},he=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return ne(he);var re=this.search.length?this.filter(he,this.search,this):he;if(this.taggable&&this.search.length)try{var Ee=this.createOption(this.search);this.optionExists(Ee)||re.unshift(Ee)}catch{}return ne(re)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(I,ne){var he=this;!this.taggable&&(typeof he.resetOnOptionsChange=="function"?he.resetOnOptionsChange(I,ne,he.selectedValue):he.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(I){this.isTrackingValues&&this.setInternalValueFromOptions(I)}},multiple:function(){this.clearSelection()},open:function(I){this.$emit(I?"open":"close")},search:function(I){I.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(I){var ne=this;Array.isArray(I)?this.$data._value=I.map((function(he){return ne.findOptionFromReducedValue(he)})):this.$data._value=this.findOptionFromReducedValue(I)},select:function(I){this.$emit("option:selecting",I),this.isOptionSelected(I)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(I):(this.taggable&&!this.optionExists(I)&&this.$emit("option:created",I),this.multiple&&(I=this.selectedValue.concat(I)),this.updateValue(I),this.$emit("option:selected",I)),this.onAfterSelect(I)},deselect:function(I){var ne=this;this.$emit("option:deselecting",I),this.updateValue(this.selectedValue.filter((function(he){return!ne.optionComparator(he,I)}))),this.$emit("option:deselected",I)},keyboardDeselect:function(I,ne){var he,re;this.deselect(I);var Ee=(he=this.$refs.deselectButtons)===null||he===void 0?void 0:he[ne+1],ge=(re=this.$refs.deselectButtons)===null||re===void 0?void 0:re[ne-1],Oe=Ee??ge;Oe?Oe.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(I){var ne=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick((function(){return ne.$refs.search.focus()}))},updateValue:function(I){var ne=this;this.value===void 0&&(this.$data._value=I),I!==null&&(I=Array.isArray(I)?I.map((function(he){return ne.reduce(he)})):this.reduce(I)),this.$emit("input",I)},toggleDropdown:function(I){var ne=I.target!==this.searchEl;ne&&I.preventDefault();var he=[].concat(l()(this.$refs.deselectButtons||[]),l()([this.$refs.clearButton]));this.searchEl===void 0||he.filter(Boolean).some((function(re){return re.contains(I.target)||re===I.target}))?I.preventDefault():this.open&&ne?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(I){var ne=this;return this.selectedValue.some((function(he){return ne.optionComparator(he,I)}))},isOptionDeselectable:function(I){return this.isOptionSelected(I)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(I){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&I===this.typeAheadPointer},optionComparator:function(I,ne){return this.getOptionKey(I)===this.getOptionKey(ne)},findOptionFromReducedValue:function(I){var ne=this,he=[].concat(l()(this.options),l()(this.pushedTags)).filter((function(re){return JSON.stringify(ne.reduce(re))===JSON.stringify(I)}));return he.length===1?he[0]:he.find((function(re){return ne.optionComparator(re,ne.$data._value)}))||I},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var I=null;this.multiple&&(I=l()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(I)}},optionExists:function(I){var ne=this;return this.optionList.some((function(he){return ne.optionComparator(he,I)}))},optionAriaSelected:function(I){return this.selectable(I)?String(this.isOptionSelected(I)):null},normalizeOptionForSlot:function(I){return c()(I)==="object"?I:h()({},this.label,I)},pushTag:function(I){this.pushedTags.push(I)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var I=this.clearSearchOnSelect,ne=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:I,multiple:ne})&&(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(I,ne){this.isKeyboardNavigation=!1,this.selectable(I)&&(this.typeAheadPointer=ne)},onSearchKeyDown:function(I){var ne=this,he=function(ge){if(ge.preventDefault(),ne.open)return!ne.isComposing&&ne.typeAheadSelect();ne.open=!0},re={8:function(ge){return ne.maybeDeleteValue()},9:function(ge){return ne.onTab()},27:function(ge){return ne.onEscape()},38:function(ge){if(ge.preventDefault(),ne.isKeyboardNavigation=!0,ne.open)return ne.typeAheadUp();ne.open=!0},40:function(ge){if(ge.preventDefault(),ne.isKeyboardNavigation=!0,ne.open)return ne.typeAheadDown();ne.open=!0}};this.selectOnKeyCodes.forEach((function(ge){return re[ge]=he}));var Ee=this.mapKeydown(re,this);if(typeof Ee[I.keyCode]=="function")return Ee[I.keyCode](I)},onSearchKeyPress:function(I){this.open||I.keyCode!==32||(I.preventDefault(),this.open=!0)}}},(function(){var I=this,ne=I.$createElement,he=I._self._c||ne;return he("div",{staticClass:"v-select",class:I.stateClasses,attrs:{id:"v-select-"+I.uid,dir:I.dir}},[I._t("header",null,null,I.scope.header),I._v(" "),he("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[he("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:I.toggleDropdown}},[I._l(I.selectedValue,(function(re,Ee){return I._t("selected-option-container",[he("span",{key:I.getOptionKey(re),staticClass:"vs__selected"},[I._t("selected-option",[I._v(` `+I._s(I.getOptionLabel(re))+` `)],null,I.normalizeOptionForSlot(re)),I._v(" "),I.multiple?he("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:I.disabled,type:"button",title:I.ariaLabelDeselectOption(I.getOptionLabel(re)),"aria-label":I.ariaLabelDeselectOption(I.getOptionLabel(re))},on:{mousedown:function(ge){return ge.stopPropagation(),I.deselect(re)},keydown:function(ge){return!ge.type.indexOf("key")&&I._k(ge.keyCode,"enter",13,ge.key,"Enter")?null:I.keyboardDeselect(re,Ee)}}},[he(I.childComponents.Deselect,{tag:"component"})],1):I._e()],2)],{option:I.normalizeOptionForSlot(re),deselect:I.deselect,multiple:I.multiple,disabled:I.disabled})})),I._v(" "),I._t("search",[he("input",I._g(I._b({staticClass:"vs__search"},"input",I.scope.search.attributes,!1),I.scope.search.events))],null,I.scope.search)],2),I._v(" "),he("div",{ref:"actions",staticClass:"vs__actions"},[he("button",{directives:[{name:"show",rawName:"v-show",value:I.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:I.disabled,type:"button",title:I.ariaLabelClearSelected,"aria-label":I.ariaLabelClearSelected},on:{click:I.clearSelection}},[he(I.childComponents.Deselect,{tag:"component"})],1),I._v(" "),I.noDrop?I._e():he("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+I.uid+"__listbox","aria-controls":"vs-"+I.uid+"__listbox","aria-expanded":I.dropdownOpen.toString()},on:{mousedown:I.toggleDropdown}},[I._t("open-indicator",[he(I.childComponents.OpenIndicator,I._b({tag:"component"},"component",I.scope.openIndicator.attributes,!1))],null,I.scope.openIndicator)],2),I._v(" "),I._t("spinner",[he("div",{directives:[{name:"show",rawName:"v-show",value:I.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[I._v("Loading...")])],null,I.scope.spinner)],2)]),I._v(" "),he("transition",{attrs:{name:I.transition}},[I.dropdownOpen?he("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+I.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+I.uid+"__listbox",role:"listbox","aria-label":I.ariaLabelListbox,"aria-multiselectable":I.multiple,tabindex:"-1"},on:{mousedown:function(re){return re.preventDefault(),I.onMousedown(re)},mouseup:I.onMouseUp}},[I._t("list-header",null,null,I.scope.listHeader),I._v(" "),I._l(I.filteredOptions,(function(re,Ee){return he("li",{key:I.getOptionKey(re),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":I.isOptionDeselectable(re)&&Ee===I.typeAheadPointer,"vs__dropdown-option--selected":I.isOptionSelected(re),"vs__dropdown-option--highlight":Ee===I.typeAheadPointer,"vs__dropdown-option--kb-focus":I.hasKeyboardFocusBorder(Ee),"vs__dropdown-option--disabled":!I.selectable(re)},attrs:{id:"vs-"+I.uid+"__option-"+Ee,role:"option","aria-selected":I.optionAriaSelected(re)},on:{mousemove:function(ge){return I.onMouseMove(re,Ee)},click:function(ge){ge.preventDefault(),ge.stopPropagation(),I.selectable(re)&&I.select(re)}}},[I._t("option",[I._v(` `+I._s(I.getOptionLabel(re))+` `)],null,I.normalizeOptionForSlot(re))],2)})),I._v(" "),I.filteredOptions.length===0?he("li",{staticClass:"vs__no-options"},[I._t("no-options",[I._v(` Sorry, no matching options. `)],null,I.scope.noOptions)],2):I._e(),I._v(" "),I._t("list-footer",null,null,I.scope.listFooter)],2):he("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+I.uid+"__listbox",role:"listbox","aria-label":I.ariaLabelListbox}})]),I._v(" "),I._t("footer",null,null,I.scope.footer)],2)}),[]).exports,ie={ajax:m,pointer:f,pointerScroll:p},ue=W})(),s})()}))})(MT)),MT.exports}var Ec=Ene();const wne={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Sne=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Dne=[],xne=qt(wne,Sne,Dne,!1,null,null);const kne=xne.exports,Cne={name:"NcEllipsisedOption",components:{NcHighlight:Z3},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?UF(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var _ne=function(){var e=this,r=e._self._c;return r("span",{staticClass:"name-parts",attrs:{dir:"auto",title:e.name}},[r("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?r("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},Nne=[],Fne=qt(Cne,_ne,Nne,!1,null,"592b8444");const One=Fne.exports,iO=_i(oO());window.addEventListener("resize",()=>{iO.value=oO()});function oO(){return window.outerHeight===window.screen.height}ld(iO);var RT={exports:{}},Mne=RT.exports,QE;function Rne(){return QE||(QE=1,(function(e){(function(r){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const i=n("plaintext"),o=n("html"),s=n("comment"),a=/<(\w*)>/g,l=/<\/?([^\s\/>]+)/;function u(m,v,w){m=m||"",v=v||[],w=w||"";let x=d(v,w);return h(m,x)}function c(m,v){m=m||[],v=v||"";let w=d(m,v);return function(x){return h(x||"",w)}}u.init_streaming_mode=c;function d(m,v){return m=p(m),{allowable_tags:m,tag_replacement:v,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function h(m,v){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let w=v.allowable_tags,x=v.tag_replacement,k=v.state,R=v.tag_buffer,O=v.depth,P=v.in_quote_char,V="";for(let W=0,ie=m.length;W<ie;W++){let ue=m[W];if(k===i)ue==="<"?(k=o,R+=ue):V+=ue;else if(k===o)switch(ue){case"<":if(P)break;O++;break;case">":if(P)break;if(O){O--;break}P="",k=i,R+=">",w.has(f(R))?V+=R:V+=x,R="";break;case'"':case"'":ue===P?P="":P=P||ue,R+=ue;break;case"-":R==="<!-"&&(k=s),R+=ue;break;case" ":case` `:if(R==="<"){k=i,V+="< ",R="";break}R+=ue;break;default:R+=ue;break}else k===s&&(ue===">"?(R.slice(-2)=="--"&&(k=i),R=""):R+=ue)}return v.state=k,v.tag_buffer=R,v.depth=O,v.in_quote_char=P,V}function p(m){let v=new Set;if(typeof m=="string"){let w;for(;w=a.exec(m);)v.add(w[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?v=new Set(m):typeof m.forEach=="function"&&m.forEach(v.add,v);return v}function f(m){let v=l.exec(m);return v?v[1].toLowerCase():null}e.exports?e.exports=u:r.striptags=u})(Mne)})(RT)),RT.exports}Rne();function h4(e=document.body){const r=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return r!==void 0?r==="invert(100%)":!1}h4();const Bne=Symbol.for("nc:theme:enforced");function Ine(e){const r=ri(()=>Fo(e)??document.body),n=_i(h4(r.value)),i=KL();function o(){n.value=h4(r.value)}return QL(r,o,{attributes:!0}),u0(r,o),u0(i,o,{immediate:!0}),ld(n)}const Lne=WL(()=>Ine());function q3(){const e=Lne(),r=wl(Bne,void 0);return ri(()=>r?.value?r.value==="dark":e.value)}const sO=JL?window:void 0;function g1(e){var r;const n=Fo(e);return(r=n?.$el)!=null?r:n}function d2(...e){let r,n,i,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,o]=e,r=sO):[r,n,i,o]=e,!r)return Gg;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],a=()=>{s.forEach(d=>d()),s.length=0},l=(d,h,p,f)=>(d.addEventListener(h,p,f),()=>d.removeEventListener(h,p,f)),u=u0(()=>[g1(r),Fo(o)],([d,h])=>{if(a(),!d)return;const p=XL(h)?{...h}:h;s.push(...n.flatMap(f=>i.map(m=>l(d,f,m,p))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return hk(c),c}let JE=!1;function XE(e,r,n={}){const{window:i=sO,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!i)return Gg;Ry&&!JE&&(JE=!0,Array.from(i.document.body.children).forEach(m=>m.addEventListener("click",Gg)),i.document.documentElement.addEventListener("click",Gg));let l=!0;const u=m=>Fo(o).some(v=>{if(typeof v=="string")return Array.from(i.document.querySelectorAll(v)).some(w=>w===m.target||m.composedPath().includes(w));{const w=g1(v);return w&&(m.target===w||m.composedPath().includes(w))}});function c(m){const v=Fo(m);return v&&v.$.subTree.shapeFlag===16}function d(m,v){const w=Fo(m),x=w.$.subTree&&w.$.subTree.children;return x==null||!Array.isArray(x)?!1:x.some(k=>k.el===v.target||v.composedPath().includes(k.el))}const h=m=>{const v=g1(e);if(m.target!=null&&!(!(v instanceof Element)&&c(e)&&d(e,m))&&!(!v||v===m.target||m.composedPath().includes(v))){if(m.detail===0&&(l=!u(m)),!l){l=!0;return}r(m)}};let p=!1;const f=[d2(i,"click",m=>{p||(p=!0,setTimeout(()=>{p=!1},0),h(m))},{passive:!0,capture:s}),d2(i,"pointerdown",m=>{const v=g1(e);l=!u(m)&&!!(v&&!m.composedPath().includes(v))},{passive:!0}),a&&d2(i,"blur",m=>{setTimeout(()=>{var v;const w=g1(e);((v=i.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!w?.contains(i.document.activeElement)&&r(m)},0)})].filter(Boolean);return()=>f.forEach(m=>m())}const zne={[DA.mounted](e,r){const n=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=XE(e,r.value,{capture:n});else{const[i,o]=r.value;e.__onClickOutside_stop=XE(e,i,Object.assign({capture:n},o))}},[DA.unmounted](e){e.__onClickOutside_stop()}};function u6(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function aO(e){const r=window.getComputedStyle(e);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&e.clientWidth<e.scrollWidth||r.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:aO(n)}}function Yne(e){const r=e||window.event,n=r.target;return aO(n)?!1:r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)}const c6=new WeakMap;function Hne(e,r=!1){const n=_i(r);let i=null,o="";u0(ez(e),l=>{const u=u6(Fo(l));if(u){const c=u;if(c6.get(c)||c6.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(o=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const s=()=>{const l=u6(Fo(e));!l||n.value||(Ry&&(i=d2(l,"touchmove",u=>{Yne(u)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},a=()=>{const l=u6(Fo(e));!l||!n.value||(Ry&&i?.(),l.style.overflow=o,c6.delete(l),n.value=!1)};return hk(a),ri({get(){return n.value},set(l){l?s():a()}})}function Pne(){let e=!1;const r=_i(!1);return(n,i)=>{if(r.value=i.value,e)return;e=!0;const o=Hne(n,i.value);u0(r,s=>o.value=s)}}Pne();const e9=/(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig;function lO(e,r){const n=(d,h)=>d.startsWith(h)?d.slice(h.length):d,i=(d,...h)=>h.reduce((p,f)=>n(p,f),d);if(!e)return null;const o=/^https?:\/\//.test(r),s=/^[a-z][a-z0-9+.-]*:.+/.test(r);if(!o&&s||o&&!r.startsWith(wA())||!o&&!r.startsWith("/"))return null;const a=o?i(r,wA(),"/index.php"):r,l=i(e.history.base,BL(),"/index.php"),u=i(a,l)||"/",c=e.resolve(u).route;return c.matched.length?c.fullPath:null}function Zne(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(r=>r.enabled(e)):[]}var t9={exports:{}},r9={exports:{}},n9;function $ne(){return n9||(n9=1,(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,i){return n<<i|n>>>32-i},rotr:function(n,i){return n<<32-i|n>>>i},endian:function(n){if(n.constructor==Number)return r.rotl(n,8)&16711935|r.rotl(n,24)&4278255360;for(var i=0;i<n.length;i++)n[i]=r.endian(n[i]);return n},randomBytes:function(n){for(var i=[];n>0;n--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(n){for(var i=[],o=0,s=0;o<n.length;o++,s+=8)i[s>>>5]|=n[o]<<24-s%32;return i},wordsToBytes:function(n){for(var i=[],o=0;o<n.length*32;o+=8)i.push(n[o>>>5]>>>24-o%32&255);return i},bytesToHex:function(n){for(var i=[],o=0;o<n.length;o++)i.push((n[o]>>>4).toString(16)),i.push((n[o]&15).toString(16));return i.join("")},hexToBytes:function(n){for(var i=[],o=0;o<n.length;o+=2)i.push(parseInt(n.substr(o,2),16));return i},bytesToBase64:function(n){for(var i=[],o=0;o<n.length;o+=3)for(var s=n[o]<<16|n[o+1]<<8|n[o+2],a=0;a<4;a++)o*8+a*6<=n.length*8?i.push(e.charAt(s>>>6*(3-a)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],o=0,s=0;o<n.length;s=++o%4)s!=0&&i.push((e.indexOf(n.charAt(o-1))&Math.pow(2,-2*s+8)-1)<<s*2|e.indexOf(n.charAt(o))>>>6-s*2);return i}};r9.exports=r})()),r9.exports}var d6,i9;function o9(){if(i9)return d6;i9=1;var e={utf8:{stringToBytes:function(r){return e.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(e.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],i=0;i<r.length;i++)n.push(r.charCodeAt(i)&255);return n},bytesToString:function(r){for(var n=[],i=0;i<r.length;i++)n.push(String.fromCharCode(r[i]));return n.join("")}}};return d6=e,d6}var h6,s9;function Une(){if(s9)return h6;s9=1,h6=function(n){return n!=null&&(e(n)||r(n)||!!n._isBuffer)};function e(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function r(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&e(n.slice(0,0))}return h6}var a9;function Vne(){return a9||(a9=1,(function(){var e=$ne(),r=o9().utf8,n=Une(),i=o9().bin,o=function(s,a){s.constructor==String?a&&a.encoding==="binary"?s=i.stringToBytes(s):s=r.stringToBytes(s):n(s)?s=Array.prototype.slice.call(s,0):!Array.isArray(s)&&s.constructor!==Uint8Array&&(s=s.toString());for(var l=e.bytesToWords(s),u=s.length*8,c=1732584193,d=-271733879,h=-1732584194,p=271733878,f=0;f<l.length;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360;l[u>>>5]|=128<<u%32,l[(u+64>>>9<<4)+14]=u;for(var m=o._ff,v=o._gg,w=o._hh,x=o._ii,f=0;f<l.length;f+=16){var k=c,R=d,O=h,P=p;c=m(c,d,h,p,l[f+0],7,-680876936),p=m(p,c,d,h,l[f+1],12,-389564586),h=m(h,p,c,d,l[f+2],17,606105819),d=m(d,h,p,c,l[f+3],22,-1044525330),c=m(c,d,h,p,l[f+4],7,-176418897),p=m(p,c,d,h,l[f+5],12,1200080426),h=m(h,p,c,d,l[f+6],17,-1473231341),d=m(d,h,p,c,l[f+7],22,-45705983),c=m(c,d,h,p,l[f+8],7,1770035416),p=m(p,c,d,h,l[f+9],12,-1958414417),h=m(h,p,c,d,l[f+10],17,-42063),d=m(d,h,p,c,l[f+11],22,-1990404162),c=m(c,d,h,p,l[f+12],7,1804603682),p=m(p,c,d,h,l[f+13],12,-40341101),h=m(h,p,c,d,l[f+14],17,-1502002290),d=m(d,h,p,c,l[f+15],22,1236535329),c=v(c,d,h,p,l[f+1],5,-165796510),p=v(p,c,d,h,l[f+6],9,-1069501632),h=v(h,p,c,d,l[f+11],14,643717713),d=v(d,h,p,c,l[f+0],20,-373897302),c=v(c,d,h,p,l[f+5],5,-701558691),p=v(p,c,d,h,l[f+10],9,38016083),h=v(h,p,c,d,l[f+15],14,-660478335),d=v(d,h,p,c,l[f+4],20,-405537848),c=v(c,d,h,p,l[f+9],5,568446438),p=v(p,c,d,h,l[f+14],9,-1019803690),h=v(h,p,c,d,l[f+3],14,-187363961),d=v(d,h,p,c,l[f+8],20,1163531501),c=v(c,d,h,p,l[f+13],5,-1444681467),p=v(p,c,d,h,l[f+2],9,-51403784),h=v(h,p,c,d,l[f+7],14,1735328473),d=v(d,h,p,c,l[f+12],20,-1926607734),c=w(c,d,h,p,l[f+5],4,-378558),p=w(p,c,d,h,l[f+8],11,-2022574463),h=w(h,p,c,d,l[f+11],16,1839030562),d=w(d,h,p,c,l[f+14],23,-35309556),c=w(c,d,h,p,l[f+1],4,-1530992060),p=w(p,c,d,h,l[f+4],11,1272893353),h=w(h,p,c,d,l[f+7],16,-155497632),d=w(d,h,p,c,l[f+10],23,-1094730640),c=w(c,d,h,p,l[f+13],4,681279174),p=w(p,c,d,h,l[f+0],11,-358537222),h=w(h,p,c,d,l[f+3],16,-722521979),d=w(d,h,p,c,l[f+6],23,76029189),c=w(c,d,h,p,l[f+9],4,-640364487),p=w(p,c,d,h,l[f+12],11,-421815835),h=w(h,p,c,d,l[f+15],16,530742520),d=w(d,h,p,c,l[f+2],23,-995338651),c=x(c,d,h,p,l[f+0],6,-198630844),p=x(p,c,d,h,l[f+7],10,1126891415),h=x(h,p,c,d,l[f+14],15,-1416354905),d=x(d,h,p,c,l[f+5],21,-57434055),c=x(c,d,h,p,l[f+12],6,1700485571),p=x(p,c,d,h,l[f+3],10,-1894986606),h=x(h,p,c,d,l[f+10],15,-1051523),d=x(d,h,p,c,l[f+1],21,-2054922799),c=x(c,d,h,p,l[f+8],6,1873313359),p=x(p,c,d,h,l[f+15],10,-30611744),h=x(h,p,c,d,l[f+6],15,-1560198380),d=x(d,h,p,c,l[f+13],21,1309151649),c=x(c,d,h,p,l[f+4],6,-145523070),p=x(p,c,d,h,l[f+11],10,-1120210379),h=x(h,p,c,d,l[f+2],15,718787259),d=x(d,h,p,c,l[f+9],21,-343485551),c=c+k>>>0,d=d+R>>>0,h=h+O>>>0,p=p+P>>>0}return e.endian([c,d,h,p])};o._ff=function(s,a,l,u,c,d,h){var p=s+(a&l|~a&u)+(c>>>0)+h;return(p<<d|p>>>32-d)+a},o._gg=function(s,a,l,u,c,d,h){var p=s+(a&u|l&~u)+(c>>>0)+h;return(p<<d|p>>>32-d)+a},o._hh=function(s,a,l,u,c,d,h){var p=s+(a^l^u)+(c>>>0)+h;return(p<<d|p>>>32-d)+a},o._ii=function(s,a,l,u,c,d,h){var p=s+(l^(a|~u))+(c>>>0)+h;return(p<<d|p>>>32-d)+a},o._blocksize=16,o._digestsize=16,t9.exports=function(s,a){if(s==null)throw new Error("Illegal argument "+s);var l=e.wordsToBytes(o(s,a));return a&&a.asBytes?l:a&&a.asString?i.bytesToString(l):e.bytesToHex(l)}})()),t9.exports}var jne=Vne();const Gne=D0(jne);ar(GI);class ci{constructor(r,n,i,o){this.r=r,this.g=n,this.b=i,this.name=o,this.r=Math.min(r,255),this.g=Math.min(n,255),this.b=Math.min(i,255),this.name=o}get color(){const r=n=>`00${n.toString(16)}`.slice(-2);return`#${r(this.r)}${r(this.g)}${r(this.b)}`}}function qne(e,r,n){return{r:(n.r-r.r)/e,g:(n.g-r.g)/e,b:(n.b-r.b)/e}}function p6(e,r,n){const i=[];i.push(r);const o=qne(e,r,n);for(let s=1;s<e;s++){const a=Math.floor(r.r+o.r*s),l=Math.floor(r.g+o.g*s),u=Math.floor(r.b+o.b*s);i.push(new ci(a,l,u))}return i}const BT=new ci(182,70,157,Xe("Purple")),IT=new ci(221,203,85,Xe("Gold")),LT=new ci(0,130,201,Xe("Nextcloud blue")),l9=new ci(0,0,0,Xe("Black")),u9=new ci(255,255,255,Xe("White")),c9=[BT,new ci(191,103,139,Xe("Rosy brown")),new ci(201,136,121,Xe("Feldspar")),new ci(211,169,103,Xe("Whiskey")),IT,new ci(165,184,114,Xe("Olivine")),new ci(110,166,143,Xe("Acapulco")),new ci(55,148,172,Xe("Boston Blue")),LT,new ci(45,115,190,Xe("Mariner")),new ci(91,100,179,Xe("Blue Violet")),new ci(136,85,168,Xe("Deluge"))];function Wne(e){const r=p6(e,BT,IT),n=p6(e,IT,LT),i=p6(e,LT,BT);return r.concat(n).concat(i)}function d9(e){let r=e.toLowerCase();r.match(/^([0-9a-f]{4}-?){8}$/)===null&&(r=Gne(r)),r=r.replace(/[^0-9a-f]/g,"");const n=6,i=Wne(n);function o(s,a){let l=0;const u=[];for(let c=0;c<s.length;c++)u.push(parseInt(s.charAt(c),16)%16);for(const c in u)l+=u[c];return parseInt(parseInt(l,10)%a,10)}return i[o(r,n*3)]}function uO(e,r){const n=(r?.size||64)<=64?64:512,i=r?.isGuest?"/guest":"",o=r?.isDarkTheme??h4(document.body)?"/dark":"";return bo(`/avatar${i}/{user}/{size}${o}`,{user:e,size:n})}const h9=`<!-- - 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> `,Kne=`<!-- - 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> `,Qne=`<!-- - 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> `,Jne=`<!-- - 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> `,Xne=`<!-- - 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> `,p9=`<!-- - 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> `,f9=`<!-- - 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> `,eie=`<!-- - 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> `,tie=`<!-- - 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> `;ar(qI),ar(WI);function cO(e){switch(e){case"away":return Xe("away");case"busy":return Xe("busy");case"dnd":return Xe("do not disturb");case"online":return Xe("online");case"invisible":return Xe("invisible");case"offline":return Xe("offline");default:return e}}const rie={online:wa?eie:tie,away:wa?h9:Kne,busy:wa?h9:Qne,dnd:wa?Jne:Xne,invisible:wa?p9:f9,offline:wa?p9:f9},nie={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 rie[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:Xe("User status: {status}",{status:cO(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e){if(!e||!a3()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:r}=await qn.get(_s("/apps/user_status/api/v1/statuses/{user}",{user:e}));this.fetchedUserStatus=r.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var iie=function(){var e=this,r=e._self._c;return e.activeStatus?r("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()},oie=[],sie=qt(nie,iie,oie,!1,null,"86b73d39");const dO=sie.exports,aie={name:"NcActionLink",mixins:[B3],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{href:{type:String,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 lie=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("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[r("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?r("span",{staticClass:"action-link__longtext-wrapper"},[r("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),r("br"),r("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},uie=[],cie=qt(aie,lie,uie,!1,null,"86e09254");const hO=cie.exports,die={name:"NcActionRouter",mixins:[B3],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],required:!0},exact:{type:Boolean,default:!1}}};var hie=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("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[r("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?r("span",{staticClass:"action-router__longtext-wrapper"},[r("strong",{staticClass:"action-router__name"},[e._v(" "+e._s(e.name)+" ")]),r("br"),r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-router__text"},[e._v(e._s(e.text))]),e._e()],2)],1)},pie=[],fie=qt(die,hie,pie,!1,null,"4dae1ff7");const mie=fie.exports,gie={name:"NcActionText",mixins:[B3],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var yie=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("span",{staticClass:"action-text",on:{click:e.onClick}},[e._t("icon",function(){return[e.icon!==""?r("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?r("span",{staticClass:"action-text__longtext-wrapper"},[r("strong",{staticClass:"action-text__name"},[e._v(" "+e._s(e.name)+" ")]),r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-text__text"},[e._v(e._s(e.text))]),e._e()],2)])},Tie=[],bie=qt(gie,yie,Tie,!1,null,"2fe7eb92");const vie=bie.exports;ar(KI);const pO={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){if(!e)return;const r=a3();if(!(!Object.hasOwn(r,"user_status")||!r.user_status.enabled)&&kh())try{const{data:n}=await qn.get(_s("apps/user_status/api/v1/statuses/{userId}",{userId:e}));this.setUserStatus(n.ocs.data)}catch(n){if(n.response.status===404&&n.response.data.ocs?.data?.length===0)return;pi.error("Could not fetch user status",{error:n})}},setUserStatus({status:e,message:r,icon:n}){this.userStatus.status=e||"",this.userStatus.message=r||"",this.userStatus.icon=n||"",this.hasStatus=!!e}}},fO=Rb("nextcloud").persist().build();function Aie(e){const r=fO.getItem("user-has-avatar."+e);return typeof r=="string"?!!r:null}function m9(e,r){e&&fO.setItem("user-has-avatar."+e,r)}const Eie={name:"NcAvatar",directives:{ClickOutside:zne},components:{IconDotsHorizontal:pk,NcActions:Nl,NcButton:as,NcIconSvgWrapper:rp,NcLoadingIcon:np,NcUserStatusIcon:dO},mixins:[pO],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:[Boolean,String,Object,Element],default:"body"}},setup(){return{isDarkTheme:q3()}},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?Xe("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:cO(this.userStatus.status)}):Xe("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===kh()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$scopedSlots.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:r,b:n}=d9(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${r}, ${n}, 0.1)`}},initialsStyle(){const{r:e,g:r,b:n}=d9(this.userIdentifier);return{color:`rgb(${e}, ${r}, ${n})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const r=this.userIdentifier.trim();if(r==="")return e;const n=r.match(/[\p{L}\p{N}\s]/gu);if(!n)return e;const i=n.join(""),o=i.lastIndexOf(" ");e=String.fromCodePoint(i.codePointAt(0)),o!==-1&&(e=e.concat(String.fromCodePoint(i.codePointAt(o+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(n=>{const i=lO(this.$router,n.hyperlink);return{ncActionComponent:i?mie:hO,ncActionComponentProps:i?{to:i,icon:n.icon}:{href:n.hyperlink,icon:n.icon},text:n.title}});for(const n of Zne(this.contactsMenuData))try{e.push({ncActionComponent:_0,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>n.callback(this.contactsMenuData)},text:n.displayName(this.contactsMenuData),iconSvg:n.iconSvg(this.contactsMenuData)})}catch(i){pi.error(`Failed to render ContactsMenu action ${n.id}`,{error:i,action:n})}function r(n){const i=document.createTextNode(n),o=document.createElement("p");return o.appendChild(i),o.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%">${r(this.userStatus.icon)}</text> </svg>`;return[{ncActionComponent:vie,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(),xu("settings:avatar:updated",this.loadAvatarUrl),xu("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser?(this.preloadedUserStatus?this.setUserStatus(this.preloadedUserStatus):this.fetchUserStatus(this.user),xu("user_status:status.updated",this.handleUserStatusUpdated)):!this.hideStatus&&this.preloadedUserStatus&&this.setUserStatus(this.preloadedUserStatus)},beforeDestroy(){jg("settings:avatar:updated",this.loadAvatarUrl),jg("settings:display-name:updated",this.loadAvatarUrl),jg("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:Xe,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:r}=await qn.post(bo("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuData=r,this.contactsMenuActions=r.topAction?[r.topAction].concat(r.actions):r.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.$scopedSlots.icon)){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),r=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,r)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,r){let n=uO(e,{size:r,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return e===kh()?.uid&&typeof window.oc_userconfig<"u"&&(n+="?v="+window.oc_userconfig.avatar.version),n},updateImageIfValid(e,r=null){const n=Aie(this.user);if(this.isUserDefined&&typeof n=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),n===!1&&(this.userDoesNotExist=!0);return}const i=new Image;i.onload=()=>{this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),this.isAvatarLoaded=!0,m9(this.user,!0)},i.onerror=o=>{pi.debug("Invalid avatar url",{error:o,url:e}),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,m9(this.user,!1)},r&&(i.srcset=r),i.src=e}}};var wie=function(){var e=this,r=e._self._c;return r("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?r("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?r("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&e.menu.length===0?r("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?r("NcLoadingIcon"):r("IconDotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,1269954734)}):e.hasMenu?r("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[r("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(n,i){return r(n.ncActionComponent,e._g(e._b({key:i,tag:"component",scopedSlots:e._u([n.iconSvg?{key:"icon",fn:function(){return[r("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?r("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?r("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:e.userStatus.status,"aria-hidden":String(e.hasMenu)}}):e._e(),e.showInitials?r("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[r("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},Sie=[],Die=qt(Eie,wie,Sie,!1,null,"a4de1e87");const mO=Die.exports,xie=8,g9=32,kie={name:"NcListItemIcon",components:{NcAvatar:mO,NcHighlight:Z3,NcIconSvgWrapper:rp},mixins:[pO],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:g9},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:xie,defaultSize:g9}},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=/^([^<]*)<([^>]+)>?$/,r=this.search.match(e);return this.isNoUser||!r?[this.search,this.search]:[r[1].trim(),r[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var Cie=function(){var e=this,r=e._self._c;return r("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSize<e.defaultSize},style:e.cssVars,attrs:{id:e.id}},e.$listeners),[r("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)),r("div",{staticClass:"option__details"},[r("NcHighlight",{staticClass:"option__lineone",attrs:{text:e.name,search:e.searchParts[0]}}),e.isValidSubname&&e.isSizeBigEnough?r("NcHighlight",{staticClass:"option__linetwo",attrs:{text:e.subname,search:e.searchParts[1]}}):e.hasStatus?r("span",[r("span",[e._v(e._s(e.userStatus.icon))]),r("span",[e._v(e._s(e.userStatus.message))])]):e._e()],1),e._t("default",function(){return[e.hasIconSvg?r("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:e.iconSvg,name:e.iconName}}):e.hasIcon?r("span",{staticClass:"icon option__icon",class:e.icon,attrs:{"aria-label":e.iconName}}):e._e()]})],2)},_ie=[],Nie=qt(kie,Cie,_ie,!1,null,"eff1d9a4");const Fie=Nie.exports;ar(Xx,QI);const Oie={name:"NcSelect",components:{ChevronDown:kne,NcEllipsisedOption:One,NcListItemIcon:Fie,NcLoadingIcon:np,VueSelect:Ec.VueSelect},model:{prop:"modelValue",event:"update:modelValue"},props:{...Ec.VueSelect.props,...Ec.VueSelect.mixins.reduce((e,r)=>({...e,...r.props}),{}),ariaLabelClearSelected:{type:String,default:Xe("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:Xe("Options")},ariaLabelDeselectOption:{type:Function,default:e=>Xe("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(fk,{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:r})=>e?!1:r},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${Xs()}`},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,r){return{...e,27:n=>{r.open&&n.stopPropagation(),e[27](n)}}}},uid:{type:String,default:()=>Xs()},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")),r=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),n=e-2*r,i=Ra("value","input");return{avatarSize:n,model:i,isLegacy:wa}},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,r,{width:n})=>{e.style.width=n;const i={name:"addClass",fn(){return e.classList.add("vs__dropdown-menu--floating"),{}}},o={name:"togglePlacementClass",fn({placement:a}){return r.$el.classList.toggle("select--drop-up",a==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",a==="top"),{}}},s=()=>{nO(r.$refs.toggle,e,{placement:this.placement,middleware:[yne(-1),i,o,bne(),Tne({limiter:vne()})]}).then(({x:a,y:l})=>{Object.assign(e.style,{left:`${a}px`,top:`${l}px`,width:`${r.$refs.toggle.getBoundingClientRect().width}px`})})};return gne(r.$refs.toggle,e,s)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(r,n,i)=>{const o=i.match(e);return o&&r.subname?.toLocaleLowerCase?.()?.indexOf(o[1].toLocaleLowerCase())>-1||`${n} ${r.subname}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:Ec.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Ec.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(Ec.VueSelect.props),...Ec.VueSelect.mixins.flatMap(r=>Object.keys(r.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([r])=>e.includes(r))),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&&ea.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&&ea.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:Xe}};var Mie=function(){var e=this,r=e._self._c;return r("VueSelect",e._g(e._b({staticClass:"select",class:{"select--legacy":e.isLegacy,"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[r("label",{staticClass:"select__label",attrs:{for:e.inputId}},[e._v(" "+e._s(e.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:n,events:i}){return[r("input",e._g(e._b({staticClass:"vs__search",class:e.inputClass,attrs:{required:e.inputRequired,dir:"auto"}},"input",n,!1),i))]}},{key:"open-indicator",fn:function({attributes:n}){return[r("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?r("NcListItemIcon",e._b({attrs:{"avatar-size":32,name:n[e.localLabel],search:e.search}},"NcListItemIcon",n,!1)):r("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?r("NcListItemIcon",e._b({attrs:{"avatar-size":e.avatarSize,name:n[e.localLabel],"no-margin":"",search:e.search}},"NcListItemIcon",n,!1)):r("NcEllipsisedOption",{attrs:{name:String(n[e.localLabel]),search:e.search}})]},{vBind:n})]}},{key:"spinner",fn:function(n){return[n.loading?r("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,i){return{key:i,fn:function(o){return[e._t(i,null,null,o)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.listenersToForward))},Rie=[],Bie=qt(Oie,Mie,Rie,!1,null,null);const W3=Bie.exports;ar(JI);const Iie=180*1e3,Lie={name:"NcReferenceWidget",components:{NcButton:as},props:{reference:{type:Object,required:!0},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(){const e=_i(!1),r=_i(),{width:n}=mk(r);return tz(r,([i])=>{s3(()=>{e.value=i.isIntersecting})}),{width:n,isVisible:e,widgetRoot:r}},data(){return{showInteractive:!1,rendered:!1,idleTimeout:null}},computed:{isInteractive(){return!this.interactiveOptIn&&this.interactive||this.showInteractive},hasFullWidth(){return mre(this.reference.richObjectType)},hasCustomWidget(){return PE(this.reference.richObjectType)},hasInteractiveView(){return PE(this.reference.richObjectType)&&fre(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 lO(this.$router,this.reference.openGraphObject.link)},referenceWidgetLinkComponent(){return this.route?u7:"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()},Iie);return}this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.rendered||this.renderWidget()},immediate:!0}},beforeDestroy(){this.destroyWidget()},methods:{t:Xe,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(()=>{hre(e,{...this.reference,interactive:this.isInteractive}),this.rendered=!0})},destroyWidget(){this.rendered&&(pre(this.reference.richObjectType,this.$el),this.rendered=!1)}}};var zie=function(){var e=this,r=e._self._c;return r("div",{ref:"widgetRoot",class:{"toggle-interactive":e.hasInteractiveView&&!e.isInteractive}},[e.reference&&e.hasCustomWidget?r("div",{ref:"customWidget",staticClass:"widget-custom",class:{"full-width":e.hasFullWidth}}):!e.noAccess&&e.reference&&e.reference.openGraphObject&&!e.hasCustomWidget?r(e.referenceWidgetLinkComponent,e._b({tag:"component",staticClass:"widget-default",attrs:{rel:"noopener noreferrer"}},"component",e.referenceWidgetLinkProps,!1),[e.reference.openGraphObject.thumb?r("img",{staticClass:"widget-default--image",attrs:{src:e.reference.openGraphObject.thumb}}):e._e(),r("div",{staticClass:"widget-default--details"},[r("p",{staticClass:"widget-default--name"},[e._v(" "+e._s(e.reference.openGraphObject.name)+" ")]),r("p",{staticClass:"widget-default--description",style:e.descriptionStyle},[e._v(" "+e._s(e.reference.openGraphObject.description)+" ")]),r("p",{staticClass:"widget-default--link"},[e._v(" "+e._s(e.compactLink)+" ")])])]):e._e(),e.interactiveOptIn&&e.hasInteractiveView&&!e.isInteractive?r("NcButton",{staticClass:"toggle-interactive--button",on:{click:e.enableInteractive}},[e._v(" "+e._s(e.t("Enable interactive view"))+" ")]):e._e()],1)},Yie=[],Hie=qt(Lie,zie,Yie,!1,null,"f05dd81b");const gO=Hie.exports,Pie={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit"],data(){return{isRegistered:Df(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeDestroy(){this.isRegistered&&bre(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=Tre(this.$refs.domElement,{providerId:this.provider.id,accessible:!1});Promise.resolve(e).then(r=>{this.renderResult=r,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 Zie=function(){var e=this,r=e._self._c;return r("div",{ref:"domElement"})},$ie=[],Uie=qt(Pie,Zie,$ie,!1,null,"0547d92f");const Vie=Uie.exports,jie={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Gie=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},qie=[],Wie=qt(jie,Gie,qie,!1,null,null);const y7=Wie.exports;ar(XI);const yO="any-link",TO={id:yO,title:Xe("Any link"),order:0,icon_url:IL("core","filetypes/link.svg")};window._vue_richtext_reference_providers??=Sf("core","reference-provider-list",[]),window._vue_richtext_reference_provider_timestamps??=Sf("core","reference-provider-timestamps",{});function Kie(e){return e===yO?TO:bO().find(r=>r.id===e)}function bO(){return window._vue_richtext_reference_providers.filter(e=>{const r=!!e.search_providers_ids&&e.search_providers_ids.length>0||Df(e.id);return r||pi.debug(`[smart picker] ${e.id} reference provider is discoverable but does not have any related search provider or custom picker component registered`),r})}function Qie(e){const r=window._vue_richtext_reference_provider_timestamps;return e.sort((n,i)=>n.order===i.order?0:n.order>i.order?1:-1).sort((n,i)=>{const o=r[n.id],s=r[i.id];return o===s?0:s===void 0?-1:o===void 0?1:o>s?-1:1})}function vO(e,r){const n=bO(),i=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),o=new RegExp(i,"i"),s=Qie(n).filter(l=>l.title.match(o)),a=r?s.slice(0,r):s;return(e===""||a.length===0)&&a.push(TO),a}async function Jie(e){const r=Math.floor(Date.now()/1e3),n=_s("references/provider/{providerId}",{providerId:e});await qn.put(n,{timestamp:r}),window._vue_richtext_reference_provider_timestamps[e]=r}ar(ek,eL);let y9=0;function AO(e,r){return function(){const n=this,i=arguments;clearTimeout(y9),y9=setTimeout(function(){e.apply(n,i)},r)}}function T7(e){try{return!!new URL(e)}catch{return!1}}const Xie={name:"NcProviderList",components:{NcSelect:W3,NcHighlight:Z3,NcEmptyContent:h7,LinkVariantIcon:y7},emits:["select-provider","submit"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:Xe("Select provider"),providerIconAlt:Xe("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&T7(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...vO(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){this.query=e}}};var eoe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"provider-list"},[r("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?r("div",{staticClass:"provider"},[r("LinkVariantIcon",{staticClass:"link-icon",attrs:{size:20}}),r("span",[e._v(e._s(n.title))])],1):r("div",{staticClass:"provider"},[r("img",{staticClass:"provider-icon",attrs:{src:n.icon_url,alt:e.providerIconAlt}}),r("NcHighlight",{staticClass:"option-text",attrs:{search:e.query,text:n.title}})],1)]}}]),model:{value:e.selectedProvider,callback:function(n){e.selectedProvider=n},expression:"selectedProvider"}}),r("NcEmptyContent",{staticClass:"provider-list--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[r("LinkVariantIcon")]},proxy:!0}])})],1)},toe=[],roe=qt(Xie,eoe,toe,!1,null,"f39d58d9");const noe=roe.exports;ar(tL);const ioe={name:"NcRawLinkInput",components:{LinkVariantIcon:y7,NcEmptyContent:h7,NcLoadingIcon:np,NcReferenceWidget:gO,NcTextField:Y3},props:{provider:{type:Object,required:!0}},emits:["submit"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:Xe("Enter link")}},computed:{isLinkValid(){return T7(this.inputValue)}},methods:{focus(){this.$refs["url-input"].$el.getElementsByTagName("input")[0]?.focus()},onSubmit(e){const r=e.target.value;this.isLinkValid&&this.$emit("submit",r)},onClear(){this.inputValue="",this.reference=null},onInput(){this.reference=null,this.abortController&&this.abortController.abort(),this.isLinkValid&&AO(()=>{this.updateReference()},500)()},updateReference(){this.loading=!0,this.abortController=new AbortController,qn.get(_s("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{pi.error("Could not update reference",{error:e})}).then(()=>{this.loading=!1})}}};var ooe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"raw-link"},[r("div",{staticClass:"input-wrapper"},[r("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?r("NcLoadingIcon",{attrs:{size:16}}):r("LinkVariantIcon",{attrs:{size:16}})],1)],1),e.reference!==null?r("NcReferenceWidget",{staticClass:"reference-widget",attrs:{reference:e.reference}}):r("NcEmptyContent",{staticClass:"raw-link--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?r("img",{staticClass:"provider-icon",attrs:{src:e.provider.icon_url}}):r("LinkVariantIcon")]},proxy:!0}])})],1)},soe=[],aoe=qt(ioe,ooe,soe,!1,null,"be630586");const loe=aoe.exports,uoe={name:"NcSearchResult",components:{NcHighlight:Z3},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}};var coe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"result"},[e.entry.icon?r("div",{staticClass:"result--icon-class",class:{[e.entry.icon]:!0,rounded:e.entry.rounded}}):r("img",{staticClass:"result--image",class:{rounded:e.entry.rounded},attrs:{src:e.entry.thumbnailUrl}}),r("div",{staticClass:"result--content"},[r("span",{staticClass:"result--content--name"},[r("NcHighlight",{attrs:{search:e.query,text:e.entry.title}})],1),r("span",{staticClass:"result--content--subline"},[r("NcHighlight",{attrs:{search:e.query,text:e.entry.subline}})],1)])])},doe=[],hoe=qt(uoe,coe,doe,!1,null,"995c2758");const poe=hoe.exports;ar(rL,ek,tk);const T9=5,foe={name:"NcSearch",components:{LinkVariantIcon:y7,DotsHorizontalIcon:pk,NcEmptyContent:h7,NcSelect:W3,NcSearchResult:poe},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:Xe("Start typing to search"),providerIconAlt:Xe("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||Xe("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return T7(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(r=>{if(this.resultsBySearchProvider[r].entries.length>0){(this.searchProviderIds.length>1||this.resultsBySearchProvider[r].entries.length>1)&&e.push({id:"groupTitle-"+r,name:this.resultsBySearchProvider[r].name,isCustomGroupTitle:!0,providerId:r});const n=this.resultsBySearchProvider[r].entries.map((i,o)=>({id:"provider-"+r+"-entry-"+o,...i}));e.push(...n),this.resultsBySearchProvider[r].isPaginated&&e.push({id:"moreOf-"+r,name:this.resultsBySearchProvider[r].name,isMore:!0,providerId:r,isLoading:this.searchingMoreOf===r})}}),e}},mounted(){this.resetResults()},beforeDestroy(){this.cancelSearchRequests()},methods:{t:Xe,resetResults(){const e={};this.searchProviderIds.forEach(r=>{e[r]={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){this.searchQuery=e,AO(()=>{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 r=e===null?[...this.searchProviderIds].map(n=>this.searchOneProvider(n)):[this.searchOneProvider(e,this.resultsBySearchProvider[e]?.cursor??null)];return Promise.allSettled(r).then(n=>{n.find(i=>i.status==="rejected"&&(i.reason.name==="CanceledError"||i.reason.code==="ERR_CANCELED"))||(this.searching=!1,this.searchingMoreOf=null)})},searchOneProvider(e,r=null){const n=r===null?_s("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:T9}):_s("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:T9,cursor:r});return qn.get(n,{signal:this.abortController.signal}).then(i=>{const o=i.data.ocs.data;this.resultsBySearchProvider[e].name=o.name,this.resultsBySearchProvider[e].cursor=o.cursor,this.resultsBySearchProvider[e].isPaginated=o.isPaginated,this.resultsBySearchProvider[e].entries.push(...o.entries)})}}};var moe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"smart-picker-search",class:{"with-empty-content":e.showEmptyContent}},[r("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?r("div",{staticClass:"custom-option"},[r("LinkVariantIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),r("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t("Raw link {options}",{options:n.resourceUrl}))+" ")])],1):n.resourceUrl?r("NcSearchResult",{staticClass:"search-result",attrs:{entry:n,query:e.searchQuery}}):n.isCustomGroupTitle?r("span",{staticClass:"custom-option group-name"},[e.provider.icon_url?r("img",{staticClass:"provider-icon group-name-icon",attrs:{src:e.provider.icon_url}}):e._e(),r("span",{staticClass:"option-text"},[r("strong",[e._v(e._s(n.name))])])]):n.isMore?r("span",{staticClass:"custom-option"},[n.isLoading?r("span",{staticClass:"option-simple-icon icon-loading-small"}):r("DotsHorizontalIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),r("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?r("NcEmptyContent",{staticClass:"smart-picker-search--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?r("img",{staticClass:"provider-icon",attrs:{alt:e.providerIconAlt,src:e.provider.icon_url}}):r("LinkVariantIcon")]},proxy:!0}],null,!1,2922132592)}):e._e()],1)},goe=[],yoe=qt(foe,moe,goe,!1,null,"e61f71e3");const Toe=yoe.exports,Ip={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},boe={name:"NcReferencePicker",components:{NcCustomPickerElement:Vie,NcProviderList:noe,NcRawLinkInput:loe,NcSearch:Toe},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:Ip,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?Ip.providerList:Df(this.selectedProvider.id)?Ip.customElement:this.selectedProvider.search_providers_ids?Ip.searchInput:Ip.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&&Jie(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 voe=function(){var e=this,r=e._self._c;return r("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?r("NcProviderList",{ref:"provider-list",on:{"select-provider":e.onProviderSelected,submit:e.submitLink,cancel:e.cancelProviderSelection}}):e.mode===e.MODES.standardLinkInput?r("NcRawLinkInput",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelRawLinkInput}}):e.mode===e.MODES.searchInput?r("NcSearch",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{cancel:e.cancelSearch,submit:e.submitLink}}):e.mode===e.MODES.customElement?r("div",{staticClass:"custom-element-wrapper"},[r("NcCustomPickerElement",{staticClass:"custom-element",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelCustomElement}})],1):e._e()],1)},Aoe=[],Eoe=qt(boe,voe,Aoe,!1,null,"646d5538");const woe=Eoe.exports;ar(iL,nL);const Soe={name:"NcReferencePickerModal",components:{NcReferencePicker:woe,NcModal:Vf,NcButton:as,ArrowLeftIcon:cre,CloseIcon:fk},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:Xe("Back to provider selection"),closeButtonTitle:Xe("Close"),closeButtonLabel:Xe("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){return this.isProviderSelected&&Df(this.selectedProvider.id)?gre(this.selectedProvider.id)??"large":"normal"},showModalName(){return!this.isProviderSelected||!Df(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:Xe("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;Io("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 Doe=function(){var e=this,r=e._self._c;return e.show?r("NcModal",{staticClass:"reference-picker-modal",attrs:{size:e.modalSize,"can-close":!0},on:{close:e.onCancel}},[r("div",{ref:"modal_content",staticClass:"reference-picker-modal--content"},[e.showBackButton?r("NcButton",{staticClass:"back-button",attrs:{"aria-label":e.backButtonTitle,title:e.backButtonTitle},on:{click:e.onBackClicked},scopedSlots:e._u([{key:"icon",fn:function(){return[r("ArrowLeftIcon")]},proxy:!0}],null,!1,3001860362)}):e._e(),r("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[r("CloseIcon")]},proxy:!0}],null,!1,2491825086)}),e.showModalName?r("h2",[e._v(" "+e._s(e.modalName)+" ")]):e._e(),r("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()},xoe=[],koe=qt(Soe,Doe,xoe,!1,null,"00990f2a");const Coe=koe.exports;async function EO(e,r){const n="referencePickerModal",i=document.createElement("div");i.id=n,document.body.append(i);const{promise:o,reject:s,resolve:a}=Promise.withResolvers(),l=e&&Kie(e)||null,u=ea.extend(Coe),c=new u({propsData:{initialProvider:l,isInsideViewer:r}}).$mount(i);return c.$on("cancel",()=>{c.$destroy(),s(new Error("User cancellation"))}),c.$on("submit",d=>{c.$destroy(),a(d)}),o}ar(oL);const _oe={name:"NcReferenceList",components:{NcReferenceWidget:gO},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.filter(Boolean).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(e9).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=>{pi.error("Failed to extract references",{error:e}),this.loading=!1,this.$emit("loaded")})},resolve(){const e=new RegExp(e9).exec(this.text.trim()),r=kh()===null;return this.limit===1&&e?r?qn.get(_s("references/resolvePublic")+`?reference=${encodeURIComponent(e[0])}&sharingToken=${xA()}`):qn.get(_s("references/resolve")+`?reference=${encodeURIComponent(e[0])}`):r?qn.post(_s("references/extractPublic"),{text:this.text,resolve:!0,limit:this.limit,sharingToken:xA()}):qn.post(_s("references/extract"),{text:this.text,resolve:!0,limit:this.limit})}}};var Noe=function(){var e=this,r=e._self._c;return e.isVisible?r("div",{staticClass:"widgets--list",class:{"icon-loading":e.loading}},e._l(e.displayedReferences,function(n){return r("NcReferenceWidget",{key:n.openGraphObject?.id,attrs:{reference:n,interactive:e.interactive,"interactive-opt-in":e.interactiveOptIn}})}),1):e._e()},Foe=[],Ooe=qt(_oe,Noe,Foe,!1,null,"a50e616b");const wO=Ooe.exports,kf=K3(/[A-Za-z]/),b7=K3(/[\dA-Za-z]/);function Moe(e){return e!==null&&(e<32||e===127)}function Uh(e){return e!==null&&(e<0||e===32)}const SO=K3(new RegExp("\\p{P}|\\p{S}","u")),Cf=K3(/\s/);function K3(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const DO=(function(e){if(e==null)return Loe;if(typeof e=="function")return Q3(e);if(typeof e=="object")return Array.isArray(e)?Roe(e):Boe(e);if(typeof e=="string")return Ioe(e);throw new Error("Expected function, string, or object as test")});function Roe(e){const r=[];let n=-1;for(;++n<e.length;)r[n]=DO(e[n]);return Q3(i);function i(...o){let s=-1;for(;++s<r.length;)if(r[s].apply(this,o))return!0;return!1}}function Boe(e){const r=e;return Q3(n);function n(i){const o=i;let s;for(s in e)if(o[s]!==r[s])return!1;return!0}}function Ioe(e){return Q3(r);function r(n){return n&&n.type===e}}function Q3(e){return r;function r(n,i,o){return!!(zoe(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function Loe(){return!0}function zoe(e){return e!==null&&typeof e=="object"&&"type"in e}DO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);const Yoe={tokenize:Uoe,partial:!0},xO={tokenize:Voe,partial:!0},kO={tokenize:joe,partial:!0},CO={tokenize:Goe,partial:!0},Hoe={tokenize:qoe,partial:!0},b9={tokenize:Zoe,previous:_O},v9={tokenize:$oe,previous:NO},Wl={tokenize:Poe,previous:FO},Kl={};let wc=48;for(;wc<123;)Kl[wc]=Wl,wc++,wc===58?wc=65:wc===91&&(wc=97);Kl[43]=Wl,Kl[45]=Wl,Kl[46]=Wl,Kl[95]=Wl,Kl[72]=[Wl,v9],Kl[104]=[Wl,v9],Kl[87]=[Wl,b9],Kl[119]=[Wl,b9];function Poe(e,r,n){const i=this;let o,s;return a;function a(h){return!zT(h)||!FO.call(i,i.previous)||v7(i.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return zT(h)?(e.consume(h),l):h===64?(e.consume(h),u):n(h)}function u(h){return h===46?e.check(Hoe,d,c)(h):h===45||h===95||b7(h)?(s=!0,e.consume(h),u):d(h)}function c(h){return e.consume(h),o=!0,u}function d(h){return s&&o&&kf(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(h)):n(h)}}function Zoe(e,r,n){const i=this;return o;function o(a){return a!==87&&a!==119||!_O.call(i,i.previous)||v7(i.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Yoe,e.attempt(xO,e.attempt(kO,s),n),n)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(a)}}function $oe(e,r,n){const i=this;let o="",s=!1;return a;function a(h){return(h===72||h===104)&&NO.call(i,i.previous)&&!v7(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),l):n(h)}function l(h){if(kf(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(h),u}return n(h)}function u(h){return h===47?(e.consume(h),s?c:(s=!0,u)):n(h)}function c(h){return h===null||Moe(h)||Uh(h)||Cf(h)||SO(h)?n(h):e.attempt(xO,e.attempt(kO,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(h)}}function Uoe(e,r,n){let i=0;return o;function o(a){return(a===87||a===119)&&i<3?(i++,e.consume(a),o):a===46&&i===3?(e.consume(a),s):n(a)}function s(a){return a===null?n(a):r(a)}}function Voe(e,r,n){let i,o,s;return a;function a(c){return c===46||c===95?e.check(CO,u,l)(c):c===null||Uh(c)||Cf(c)||c!==45&&SO(c)?u(c):(s=!0,e.consume(c),a)}function l(c){return c===95?i=!0:(o=i,i=void 0),e.consume(c),a}function u(c){return o||i||!s?n(c):r(c)}}function joe(e,r){let n=0,i=0;return o;function o(a){return a===40?(n++,e.consume(a),o):a===41&&i<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(CO,r,s)(a):a===null||Uh(a)||Cf(a)?r(a):(e.consume(a),o)}function s(a){return a===41&&i++,e.consume(a),o}}function Goe(e,r,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),i):l===38?(e.consume(l),s):l===93?(e.consume(l),o):l===60||l===null||Uh(l)||Cf(l)?r(l):n(l)}function o(l){return l===null||l===40||l===91||Uh(l)||Cf(l)?r(l):i(l)}function s(l){return kf(l)?a(l):n(l)}function a(l){return l===59?(e.consume(l),i):kf(l)?(e.consume(l),a):n(l)}}function qoe(e,r,n){return i;function i(s){return e.consume(s),o}function o(s){return b7(s)?n(s):r(s)}}function _O(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Uh(e)}function NO(e){return!kf(e)}function FO(e){return!(e===47||zT(e))}function zT(e){return e===43||e===45||e===46||e===95||b7(e)}function v7(e){let r=e.length,n=!1;for(;r--;){const i=e[r][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}_i(null);function OO(e,r){return e=e.replace(/\\/g,"/").replace(/\/+$/g,"").replace(/.*\//,""),e}function M9e(e){const r=OO(e),n=r.lastIndexOf(".");return n>0?r.substring(n):""}function Woe(e,r={},n={},i=()=>{}){typeof n=="function"&&(i=n,n={});let{container:o}=n;"container"in r&&typeof r.container=="string"&&(o??=r.container);const s=(typeof o=="string"&&document.querySelector(o)||document.body).appendChild(document.createElement("div")),a=new ea({el:s,name:"VueDialogHelper",render:l=>l(e,{props:{container:null,...r},on:{close:(...u)=>{i(...u.map(c=>LL(c))),a.$destroy(),s.remove()}}})});return a}const Koe=Uf({name:"NcDialog",components:{NcDialogButton:rz,NcModal:Vf},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(r=>typeof r=="string"||r instanceof HTMLElement),default:()=>[]},container:{type:String,required:!1,default:"body"},open:{type:Boolean,default:!0},size:{type:String,required:!1,default:"small",validator:e=>typeof e=="string"&&["small","normal","large","full"].includes(e)},buttons:{type:Array,required:!1,default:()=>[],validator:e=>Array.isArray(e)&&e.every(r=>typeof r=="object")},noClose:{type:Boolean,default:!1},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!1},isForm:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},navigationAriaLabel:{type:String,required:!1,default:""},navigationAriaLabelledby:{type:String,required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open","submit"],setup(e,{emit:r,slots:n}){const i=_i(),{width:o}=mk(i,{width:900}),s=ri(()=>o.value<876),a=ri(()=>n?.navigation!==void 0),l=Xs(),u=ri(()=>e.navigationAriaLabel||void 0),c=ri(()=>{if(!e.navigationAriaLabel)return e.navigationAriaLabelledby||l}),d=_i(),h=ri(()=>e.isForm&&!a.value?"form":"div"),p=ri(()=>h.value==="form"?{submit(k){k.preventDefault(),r("submit",k)},reset(k){k.preventDefault(),r("reset",k)}}:{}),f=_i(!0);function m(k,R){(k.type==="submit"||k.nativeType==="submit")&&h.value==="form"&&!d.value.reportValidity()||(v(R),window.setTimeout(()=>w(),300))}function v(k){f.value=!1,r("closing",k)}function w(){f.value=!0,r("update:open",!1)}const x=ri(()=>({noClose:e.noClose||!e.canClose,container:e.container===void 0?"body":e.container,labelId:l,size:e.size,show:e.open&&f.value,outTransition:e.outTransition,closeOnClickOutside:e.closeOnClickOutside,additionalTrapElements:e.additionalTrapElements}));return{dialogElement:d,dialogListeners:p,dialogTagName:h,handleButtonClose:m,handleClosing:v,handleClosed:w,hasNavigation:a,navigationId:l,navigationAriaLabelAttr:u,navigationAriaLabelledbyAttr:c,isNavigationCollapsed:s,modalProps:x,wrapper:i}}});var Qoe=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.open?r("NcModal",e._b({staticClass:"dialog__modal",attrs:{"enable-slideshow":!1,"enable-swipe":!1},on:{close:e.handleClosed,"update:show":function(n){return e.handleClosing()}}},"NcModal",e.modalProps,!1),[r("h2",{staticClass:"dialog__name",attrs:{id:e.navigationId},domProps:{textContent:e._s(e.name)}}),r(e.dialogTagName,e._g({ref:"dialogElement",tag:"component",staticClass:"dialog",class:e.dialogClasses},e.dialogListeners),[r("div",{ref:"wrapper",staticClass:"dialog__wrapper",class:{"dialog__wrapper--collapsed":e.isNavigationCollapsed}},[e.hasNavigation?r("nav",{staticClass:"dialog__navigation",class:e.navigationClasses,attrs:{"aria-label":e.navigationAriaLabelAttr,"aria-labelledby":e.navigationAriaLabelledbyAttr}},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),r("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[r("p",{staticClass:"dialog__text"},[e._v(" "+e._s(e.message)+" ")])]})],2)]),r("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(n,i){return r("NcDialogButton",e._b({key:i,on:{click:(o,s)=>e.handleButtonClose(n,s)}},"NcDialogButton",n,!1))})})],2)])],1):e._e()},Joe=[],Xoe=qt(Koe,Qoe,Joe,!1,null,"66c29e13");const ese=Xoe.exports,tse='<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>',rse='<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 nse extends Error{}class ise{title;multiSelect;mimeTypeFilter;directoriesAllowed;buttons;path;filter;canPick;container;disabledNavigation;constructor(r,n,i,o,s,a,l,u,c,d=!1){this.title=r,this.multiSelect=n,this.mimeTypeFilter=i,this.directoriesAllowed=o,this.path=a,this.filter=l,this.canPick=u,this.buttons=s,this.container=c,this.disabledNavigation=d}async pickNodes(){const{FilePickerVue:r}=await S1(async()=>{const{FilePickerVue:n}=await import("./index-BMbtc3xh-CIFfGXha.chunk.mjs");return{FilePickerVue:n}},__vite__mapDeps([22,1,2]),import.meta.url);return new Promise((n,i)=>{Woe(r,{allowPickDirectory:this.directoriesAllowed,buttons:this.buttons,container:this.container,name:this.title,path:this.path,mimetypeFilter:this.mimeTypeFilter,multiselect:this.multiSelect,filterFn:this.filter,canPickFn:this.canPick,disabledNavigation:this.disabledNavigation},(...o)=>{const[s]=o;!Array.isArray(s)||s.length===0?i(new nse("FilePicker: No nodes selected")):n(s)})})}async pick(){const r=await this.pickNodes();return this.multiSelect?r.map(n=>n.path):r[0]?.path??"/"}}class ose{title;multiSelect=!1;mimeTypeFilter=[];directoriesAllowed=!1;path;filter;canPick;buttons=[];container;disabledNavigation=!1;constructor(r){this.title=r}setContainer(r){return this.container=r,this}setMultiSelect(r){return this.multiSelect=r,this}addMimeTypeFilter(r){return this.mimeTypeFilter.push(r),this}setMimeTypeFilter(r){return this.mimeTypeFilter=r,this}addButton(r){return typeof this.buttons=="function"&&(console.warn("FilePicker buttons were set to factory, now overwritten with button object."),this.buttons=[]),this.buttons.push(r),this}setButtonFactory(r){return this.buttons=r,this}setType(r){return this.buttons=(n,i)=>{const o=[],s=n[0]?.displayname||OO(i);if(r===1){let a=Hd("Choose");n.length===1?a=Hd("Choose {file}",{file:s}):this.multiSelect&&(a=nz("Choose %n file","Choose %n files",n.length)),o.push({callback:()=>{},type:"primary",label:a})}return(r===4||r===3)&&o.push({callback:()=>{},label:s?Hd("Copy to {target}",{target:s}):Hd("Copy"),icon:rse,variant:r===3?"primary":"secondary"}),(r===4||r===2)&&o.push({callback:()=>{},label:s?Hd("Move to {target}",{target:s}):Hd("Move"),icon:tse,variant:"primary"}),o},this}allowDirectories(r=!0){return this.directoriesAllowed=r,this}startAt(r){return this.path=r,this}setFilter(r){return this.filter=r,this}setCanPick(r){return this.canPick=r,this}disableNavigation(){return this.disabledNavigation=!0,this}build(){return new ise(this.title,this.multiSelect,this.mimeTypeFilter,this.directoriesAllowed,this.buttons,this.path,this.filter,this.canPick,this.container,this.disabledNavigation)}}function sse(e){return new ose(e)}const ase=e=>sse(lt("text","Select file or folder to link to")).startAt(e).allowDirectories(!0).setMultiSelect(!1).setButtonFactory((r,n)=>{const i=[],o=r?.[0]?.attributes?.displayName||r?.[0]?.basename,s=r?.[0]?.root===r?.[0]?.attributes?.filename;let a=lt("text","Choose");return r.length===1&&!s&&(a=lt("text","Choose {file}",{file:o})),i.push({callback:()=>{},variant:"primary",label:a,disabled:s}),i}).build(),lse={name:"ActionInsertLink",components:{NcActions:Nl,NcActionButton:_0,NcActionInput:DF,Document:tX,Loading:ET,LinkOff:EX,Web:BX,Shape:kX},extends:Yh,mixins:[Bb,z3],setup(){const{networkOnline:e}=hF();return{...Yh.setup(),networkOnline:e}},data:()=>({href:"",isInputMode:!1,startPath:null,menuOpen:!1,isUsingDirectEditing:zu("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("/")),ase(this.startPath).pick().then(e=>{OC.Files.getClient().getFileInfo(e).then((r,n)=>{const i=new URL(bo(`/f/${n.id}`),window.origin);this.setLink(i.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 r=[...e.target.elements].filter(n=>n?.type==="text")[0].value;return this.menuOpen=!1,this.isInputMode=!1,this.href="",this.setLink(r,r)}if(t_(this.editor?.state,"link")){const r=ov(this.editor?.state,"link");this.href=r.href}this.isInputMode=!0},setLink(e,r){e&&![/^[a-zA-Z]+:/,/^\//,/\?fileId=/,/^\.\.?\//,/^[^.]*[/$]/,/^#/].find(o=>e.match(o))&&(e="https://"+e);const n=e.replaceAll(" ","%20"),i=this.editor?.chain();i.insertOrSetLink(r,{href:n}),i.focus().run()},removeLink(){this.editor?.chain().unsetLink().focus().run(),this.menuOpen=!1},linkPicker(){EO(null,!0).then(e=>{const r=this.editor?.chain();this.editor?.view.state?.selection.empty?r.focus().insertPreview(e).run():r.setLink({href:e}).focus().run()}).catch(e=>{console.error("Smart picker promise rejected",e)})},t:lt}};var use=function(){var e=this,r=e._self._c;return r("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[r(e.icon,{tag:"component",attrs:{name:e.actionEntry.label,"aria-label":e.actionEntry.label}})]},proxy:!0}])},[e.state.active?r("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-remove`},on:{click:e.removeLink},scopedSlots:e._u([{key:"icon",fn:function(){return[r("LinkOff")]},proxy:!0}],null,!1,3589828876)},[e._v(" "+e._s(e.t("text","Remove link"))+" ")]):e._e(),e.isUsingDirectEditing?e._e():r("NcActionButton",{ref:"buttonFile",attrs:{disabled:!e.networkOnline,"data-text-action-entry":`${e.actionEntry.key}-file`},on:{click:e.linkFile},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Document")]},proxy:!0}],null,!1,1149029676)},[e._v(" "+e._s(e.t("text","Link to file or folder"))+" ")]),e.isInputMode?r("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[r("Web")]},proxy:!0}],null,!1,1844845715)},[e._v(" "+e._s(e.t("text","Link to website"))+" ")]):r("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-website`},on:{click:e.linkWebsite},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Web")]},proxy:!0}])},[e._v(" "+e._s(e.state.active?e.t("text","Update link"):e.t("text","Link to website"))+" ")]),r("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-picker`},on:{click:e.linkPicker},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Shape")]},proxy:!0}])},[e._v(" "+e._s(e.t("text","Open the Smart Picker"))+" ")])],1)},cse=[],dse=Ze(lse,use,cse,!1,null,"e7baf218");const hse=dse.exports,pse="_assistantIcon_1ndue_20",fse="_assistantIcon_inline_1ndue_25",mse="_assistantIcon__svg_1ndue_30",gse={"material-design-icon":"_material-design-icon_1ndue_12",assistantIcon:pse,assistantIcon_inline:fse,assistantIcon__svg:mse},yse={__name:"NcAssistantIcon",props:{inline:{type:Boolean,default:!1},size:{type:Number,default:20}},setup(e){const r=e;ok((s,a)=>({a843d9d2:a.sizePx}));const n=q3(),i=d7(),o=ri(()=>`${r.size}px`);return{__sfc:!0,props:r,isDarkTheme:n,gradientId:i,sizePx:o,mdiCreation:iz}}};var Tse=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:[e.$style.assistantIcon,e.inline&&e.$style.assistantIcon_inline],attrs:{"aria-hidden":"true",role:"img"}},[r("svg",{class:e.$style.assistantIcon__svg,attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[r("defs",[n.isDarkTheme?r("linearGradient",{attrs:{id:n.gradientId,gradientTransform:"rotateX(285)"}},[r("stop",{attrs:{offset:"15%","stop-color":"#CDACE7"}}),r("stop",{attrs:{offset:"40%","stop-color":"#008FDB"}}),r("stop",{attrs:{offset:"82%","stop-color":"#A180E0"}})],1):r("linearGradient",{attrs:{id:n.gradientId,gradientTransform:"rotateX(285)"}},[r("stop",{attrs:{offset:"15%","stop-color":"#9669D3"}}),r("stop",{attrs:{offset:"40%","stop-color":"#00679E"}}),r("stop",{attrs:{offset:"80%","stop-color":"#492083"}})],1)],1),r("path",{attrs:{d:n.mdiCreation,fill:`url('#${n.gradientId}')`}})])])},bse=[];const A9={$style:gse};function vse(e){for(var r in A9)this[r]=A9[r]}var Ase=qt(yse,Tse,bse,!1,vse,null);const Ese=Ase.exports,wse={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(Ku(),{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 r=parseInt(e,10);return{humanized:this.humanizeCount(r),original:e}}}}},render(e){const r=this.getHumanizedCount();return e("div",{staticClass:"counter-bubble__counter",class:this.counterClassObject,attrs:{title:r&&r.original!==r.humanized?r.original:void 0}},[r?.humanized??this.$slots.default])}},Sse=null,Dse=null;var xse=qt(wse,Sse,Dse,!1,null,"7d9795d6");const kse=xse.exports,Cse={name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(){return this.vnodes||this.$slots?.default||this.$scopedSlots?.default?.()}},_se=null,Nse=null;var Fse=qt(Cse,_se,Nse,!1,null,null);const Ose=Fse.exports,[E9]=Sf("core","config",{version:"30.0"}).version.split(".",2)??[],Mse=E9&&Number.parseInt(E9)<30,Rse={name:"NcListItem",components:{NcActions:Nl,NcCounterBubble:kse,NcVNodes:Ose},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:Mse}},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,r,n){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&n&&(r?.(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 Bse=function(){var e=this,r=e._self._c;return r(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:i,isActive:o}){return[r("li",{staticClass:"list-item__wrapper",class:{"list-item__wrapper--active":e.active??o}},[r("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}},[r("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(s){return e.onClick(s,i,n)},keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.hideActions.apply(null,arguments)}}},[e._t("icon"),r("div",{staticClass:"list-item-content"},[r("div",{staticClass:"list-item-content__main"},[r("div",{staticClass:"list-item-content__name"},[e._t("name",function(){return[e._v(e._s(e.name))]})],2),e.hasSubname?r("div",{staticClass:"list-item-content__subname",class:{"list-item-content__subname--bold":e.bold}},[e._t("subname")],2):e._e()]),r("div",{staticClass:"list-item-content__details"},[e.showDetails?r("div",{staticClass:"list-item-details__details"},[e._t("details",function(){return[e._v(e._s(e.details))]})],2):e._e(),e.counterNumber||e.hasIndicator?r("div",{directives:[{name:"show",rawName:"v-show",value:e.showAdditionalElements,expression:"showAdditionalElements"}],staticClass:"list-item-details__extra"},[e.counterNumber?r("NcCounterBubble",{staticClass:"list-item-details__counter",attrs:{active:e.active??o,type:e.counterType}},[e._v(" "+e._s(e.counterNumber)+" ")]):e._e(),e.hasIndicator?r("span",{staticClass:"list-item-details__indicator"},[e._t("indicator")],2):e._e()],1):e._e()])])],2),e.$slots["extra-actions"]?r("div",{staticClass:"list-item-content__extra-actions"},[e._t("extra-actions")],2):e._e(),e.forceDisplayActions||e.displayActionsOnHoverFocus?r("div",{staticClass:"list-item-content__actions",on:{focusout:e.handleBlur}},[r("NcActions",{ref:"actions",attrs:{primary:e.active??o,"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._e(),e.$slots.extra?r("div",{staticClass:"list-item__extra"},[e._t("extra")],2):e._e()])])]}}],null,!0)})},Ise=[],Lse=qt(Rse,Bse,Ise,!1,null,"be68de56");const zse=Lse.exports,Yse={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Hse=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Pse=[],Zse=Ze(Yse,Hse,Pse,!1,null,null);const w9=Zse.exports,$se={name:"CheckCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Use=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon check-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Vse=[],jse=Ze($se,Use,Vse,!1,null,null);const S9=jse.exports,Gse={name:"ClipboardTextOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qse=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon clipboard-text-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,3H14.82C14.25,1.44 12.53,0.64 11,1.2C10.14,1.5 9.5,2.16 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7M17,11H7V9H17V11M15,15H7V13H15V15Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Wse=[],Kse=Ze(Gse,qse,Wse,!1,null,null);const Qse=Kse.exports,Jse={name:"ClockOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Xse=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon clock-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},eae=[],tae=Ze(Jse,Xse,eae,!1,null,null);const D9=tae.exports,rae={name:"ShuffleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nae=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon shuffle-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M14.83,13.41L13.42,14.82L16.55,17.95L14.5,20H20V14.5L17.96,16.54L14.83,13.41M14.5,4L16.54,6.04L4,18.59L5.41,20L17.96,7.46L20,9.5V4M10.59,9.17L5.41,4L4,5.41L9.17,10.58L10.59,9.17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},iae=[],oae=Ze(rae,nae,iae,!1,null,null);const sae=oae.exports,aae={name:"TextBoxPlusOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lae=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon text-box-plus-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M17,14H19V17H22V19H19V22H17V19H14V17H17V14M5,3H19C20.11,3 21,3.89 21,5V12.8C20.39,12.45 19.72,12.2 19,12.08V5H5V19H12.08C12.2,19.72 12.45,20.39 12.8,21H5C3.89,21 3,20.11 3,19V5C3,3.89 3.89,3 5,3M7,7H17V9H7V7M7,11H17V12.08C16.15,12.22 15.37,12.54 14.68,13H7V11M7,15H12V17H7V15Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},uae=[],cae=Ze(aae,lae,uae,!1,null,null);const dae=cae.exports,hae={name:"TextShortIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pae=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon text-short-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M4,9H20V11H4V9M4,13H14V15H4V13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},fae=[],mae=Ze(hae,pae,fae,!1,null,null);const gae=mae.exports;var f6={exports:{}},x9,k9;function yae(){return k9||(k9=1,x9=function(e,r){if(r=r.split(":")[0],e=+e,!e)return!1;switch(r){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}),x9}var og={},C9;function Tae(){if(C9)return og;C9=1;var e=Object.prototype.hasOwnProperty,r;function n(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return null}}function i(a){try{return encodeURIComponent(a)}catch{return null}}function o(a){for(var l=/([^=?#&]+)=?([^&]*)/g,u={},c;c=l.exec(a);){var d=n(c[1]),h=n(c[2]);d===null||h===null||d in u||(u[d]=h)}return u}function s(a,l){l=l||"";var u=[],c,d;typeof l!="string"&&(l="?");for(d in a)if(e.call(a,d)){if(c=a[d],!c&&(c===null||c===r||isNaN(c))&&(c=""),d=i(d),c=i(c),d===null||c===null)continue;u.push(d+"="+c)}return u.length?l+u.join("&"):""}return og.stringify=s,og.parse=o,og}var m6,_9;function bae(){if(_9)return m6;_9=1;var e=yae(),r=Tae(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(k){return(k||"").toString().replace(n,"")}var c=[["#","hash"],["?","query"],function(k,R){return p(R.protocol)?k.replace(/\\/g,"/"):k},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d={hash:1,query:1};function h(k){var R;typeof window<"u"?R=window:typeof i0<"u"?R=i0:typeof self<"u"?R=self:R={};var O=R.location||{};k=k||O;var P={},V=typeof k,W;if(k.protocol==="blob:")P=new v(unescape(k.pathname),{});else if(V==="string"){P=new v(k,{});for(W in d)delete P[W]}else if(V==="object"){for(W in k)W in d||(P[W]=k[W]);P.slashes===void 0&&(P.slashes=o.test(k.href))}return P}function p(k){return k==="file:"||k==="ftp:"||k==="http:"||k==="https:"||k==="ws:"||k==="wss:"}function f(k,R){k=u(k),k=k.replace(i,""),R=R||{};var O=a.exec(k),P=O[1]?O[1].toLowerCase():"",V=!!O[2],W=!!O[3],ie=0,ue;return V?W?(ue=O[2]+O[3]+O[4],ie=O[2].length+O[3].length):(ue=O[2]+O[4],ie=O[2].length):W?(ue=O[3]+O[4],ie=O[3].length):ue=O[4],P==="file:"?ie>=2&&(ue=ue.slice(2)):p(P)?ue=O[4]:P?V&&(ue=ue.slice(2)):ie>=2&&p(R.protocol)&&(ue=O[4]),{protocol:P,slashes:V||p(P),slashesCount:ie,rest:ue}}function m(k,R){if(k==="")return R;for(var O=(R||"/").split("/").slice(0,-1).concat(k.split("/")),P=O.length,V=O[P-1],W=!1,ie=0;P--;)O[P]==="."?O.splice(P,1):O[P]===".."?(O.splice(P,1),ie++):ie&&(P===0&&(W=!0),O.splice(P,1),ie--);return W&&O.unshift(""),(V==="."||V==="..")&&O.push(""),O.join("/")}function v(k,R,O){if(k=u(k),k=k.replace(i,""),!(this instanceof v))return new v(k,R,O);var P,V,W,ie,ue,I,ne=c.slice(),he=typeof R,re=this,Ee=0;for(he!=="object"&&he!=="string"&&(O=R,R=null),O&&typeof O!="function"&&(O=r.parse),R=h(R),V=f(k||"",R),P=!V.protocol&&!V.slashes,re.slashes=V.slashes||P&&R.slashes,re.protocol=V.protocol||R.protocol||"",k=V.rest,(V.protocol==="file:"&&(V.slashesCount!==2||l.test(k))||!V.slashes&&(V.protocol||V.slashesCount<2||!p(re.protocol)))&&(ne[3]=[/(.*)/,"pathname"]);Ee<ne.length;Ee++){if(ie=ne[Ee],typeof ie=="function"){k=ie(k,re);continue}W=ie[0],I=ie[1],W!==W?re[I]=k:typeof W=="string"?(ue=W==="@"?k.lastIndexOf(W):k.indexOf(W),~ue&&(typeof ie[2]=="number"?(re[I]=k.slice(0,ue),k=k.slice(ue+ie[2])):(re[I]=k.slice(ue),k=k.slice(0,ue)))):(ue=W.exec(k))&&(re[I]=ue[1],k=k.slice(0,ue.index)),re[I]=re[I]||P&&ie[3]&&R[I]||"",ie[4]&&(re[I]=re[I].toLowerCase())}O&&(re.query=O(re.query)),P&&R.slashes&&re.pathname.charAt(0)!=="/"&&(re.pathname!==""||R.pathname!=="")&&(re.pathname=m(re.pathname,R.pathname)),re.pathname.charAt(0)!=="/"&&p(re.protocol)&&(re.pathname="/"+re.pathname),e(re.port,re.protocol)||(re.host=re.hostname,re.port=""),re.username=re.password="",re.auth&&(ue=re.auth.indexOf(":"),~ue?(re.username=re.auth.slice(0,ue),re.username=encodeURIComponent(decodeURIComponent(re.username)),re.password=re.auth.slice(ue+1),re.password=encodeURIComponent(decodeURIComponent(re.password))):re.username=encodeURIComponent(decodeURIComponent(re.auth)),re.auth=re.password?re.username+":"+re.password:re.username),re.origin=re.protocol!=="file:"&&p(re.protocol)&&re.host?re.protocol+"//"+re.host:"null",re.href=re.toString()}function w(k,R,O){var P=this;switch(k){case"query":typeof R=="string"&&R.length&&(R=(O||r.parse)(R)),P[k]=R;break;case"port":P[k]=R,e(R,P.protocol)?R&&(P.host=P.hostname+":"+R):(P.host=P.hostname,P[k]="");break;case"hostname":P[k]=R,P.port&&(R+=":"+P.port),P.host=R;break;case"host":P[k]=R,s.test(R)?(R=R.split(":"),P.port=R.pop(),P.hostname=R.join(":")):(P.hostname=R,P.port="");break;case"protocol":P.protocol=R.toLowerCase(),P.slashes=!O;break;case"pathname":case"hash":if(R){var V=k==="pathname"?"/":"#";P[k]=R.charAt(0)!==V?V+R:R}else P[k]=R;break;case"username":case"password":P[k]=encodeURIComponent(R);break;case"auth":var W=R.indexOf(":");~W?(P.username=R.slice(0,W),P.username=encodeURIComponent(decodeURIComponent(P.username)),P.password=R.slice(W+1),P.password=encodeURIComponent(decodeURIComponent(P.password))):P.username=encodeURIComponent(decodeURIComponent(R))}for(var ie=0;ie<c.length;ie++){var ue=c[ie];ue[4]&&(P[ue[1]]=P[ue[1]].toLowerCase())}return P.auth=P.password?P.username+":"+P.password:P.username,P.origin=P.protocol!=="file:"&&p(P.protocol)&&P.host?P.protocol+"//"+P.host:"null",P.href=P.toString(),P}function x(k){(!k||typeof k!="function")&&(k=r.stringify);var R,O=this,P=O.host,V=O.protocol;V&&V.charAt(V.length-1)!==":"&&(V+=":");var W=V+(O.protocol&&O.slashes||p(O.protocol)?"//":"");return O.username?(W+=O.username,O.password&&(W+=":"+O.password),W+="@"):O.password?(W+=":"+O.password,W+="@"):O.protocol!=="file:"&&p(O.protocol)&&!P&&O.pathname!=="/"&&(W+="@"),(P[P.length-1]===":"||s.test(O.hostname)&&!O.port)&&(P+=":"),W+=P+O.pathname,R=typeof O.query=="object"?k(O.query):O.query,R&&(W+=R.charAt(0)!=="?"?"?"+R:R),O.hash&&(W+=O.hash),W}return v.prototype={set:w,toString:x},v.extractProtocol=f,v.location=h,v.trimLeft=u,v.qs=r,m6=v,m6}var N9;function vae(){return N9||(N9=1,(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});function n(u){return u&&typeof u=="object"&&"default"in u?u.default:u}var i=n(bae()),o=(function(){function u(c,d){var h=[],p=!0,f=!1,m=void 0;try{for(var v=c[Symbol.iterator](),w;!(p=(w=v.next()).done)&&(h.push(w.value),!(d&&h.length===d));p=!0);}catch(x){f=!0,m=x}finally{try{!p&&v.return&&v.return()}finally{if(f)throw m}}return h}return function(c,d){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return u(c,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();function s(u,c){return'<span class="mention" data-type="'+u[c].mention.type+'" data-id="'+u[c].mention.id+'">'+u[c].mention.label+"</span>"}function a(u){var c=i(u);return{type:c.host,id:c.pathname.slice(1)}}function l(u){var c=/@$/;u.tokens.forEach(function(d){if(d.type==="inline"){var h=d.children;h.forEach(function(p,f){if(!(f+3>h.length)){var m=h.slice(f,f+4),v=o(m,4),w=v[0],x=v[1],k=v[2],R=v[3],O=R===void 0?{}:R;if(k.type==="link_close"&&(O=k,k=null),w.type==="text"&&c.test(w.content)&&x.type==="link_open"&&O.type==="link_close"){var P=x.attrs.reduce(function(V,W){return W[0]==="href"?W[1]:V},"");w.content=w.content.slice(0,-1),x.type="mention",x.mention=a(P),x.mention.label=k&&k.content||"",h.splice(f+2,k?2:1)}}}),d.children=h}})}e.exports=function(u,c){u.renderer.rules.mention=s,u.core.ruler.after("inline","mention",l)},r.renderMention=s,r.parseUri=a,r.parseMentions=l})(f6,f6.exports)),f6.exports}var Aae=vae();const Eae=D0(Aae),F9={};function wae(e){let r=F9[e];if(r)return r;r=F9[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);r.push(i)}for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);r[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return r}function Vh(e,r){typeof r!="string"&&(r=Vh.defaultChars);const n=wae(r);return e.replace(/(%[a-f0-9]{2})+/gi,function(i){let o="";for(let s=0,a=i.length;s<a;s+=3){const l=parseInt(i.slice(s+1,s+3),16);if(l<128){o+=n[l];continue}if((l&224)===192&&s+3<a){const u=parseInt(i.slice(s+4,s+6),16);if((u&192)===128){const c=l<<6&1984|u&63;c<128?o+="��":o+=String.fromCharCode(c),s+=3;continue}}if((l&240)===224&&s+6<a){const u=parseInt(i.slice(s+4,s+6),16),c=parseInt(i.slice(s+7,s+9),16);if((u&192)===128&&(c&192)===128){const d=l<<12&61440|u<<6&4032|c&63;d<2048||d>=55296&&d<=57343?o+="���":o+=String.fromCharCode(d),s+=6;continue}}if((l&248)===240&&s+9<a){const u=parseInt(i.slice(s+4,s+6),16),c=parseInt(i.slice(s+7,s+9),16),d=parseInt(i.slice(s+10,s+12),16);if((u&192)===128&&(c&192)===128&&(d&192)===128){let h=l<<18&1835008|u<<12&258048|c<<6&4032|d&63;h<65536||h>1114111?o+="����":(h-=65536,o+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),s+=9;continue}}o+="�"}return o})}Vh.defaultChars=";/?:@&=+$,#",Vh.componentChars="";const O9={};function Sae(e){let r=O9[e];if(r)return r;r=O9[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?r.push(i):r.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)r[e.charCodeAt(n)]=e[n];return r}function _f(e,r,n){typeof r!="string"&&(n=r,r=_f.defaultChars),typeof n>"u"&&(n=!0);const i=Sae(r);let o="";for(let s=0,a=e.length;s<a;s++){const l=e.charCodeAt(s);if(n&&l===37&&s+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(s+1,s+3))){o+=e.slice(s,s+3),s+=2;continue}if(l<128){o+=i[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1<a){const u=e.charCodeAt(s+1);if(u>=56320&&u<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}_f.defaultChars=";/?:@&=+$,-_.!~*'()#",_f.componentChars="-_.!~*'()";function A7(e){let r="";return r+=e.protocol||"",r+=e.slashes?"//":"",r+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?r+="["+e.hostname+"]":r+=e.hostname||"",r+=e.port?":"+e.port:"",r+=e.pathname||"",r+=e.search||"",r+=e.hash||"",r}function p4(){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 Dae=/^([a-z0-9.+-]+:)/i,xae=/:[0-9]*$/,kae=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Cae=["<",">",'"',"`"," ","\r",` `," "],_ae=["{","}","|","\\","^","`"].concat(Cae),Nae=["'"].concat(_ae),M9=["%","/","?",";","#"].concat(Nae),R9=["/","?","#"],Fae=255,B9=/^[+a-z0-9A-Z_-]{0,63}$/,Oae=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,I9={javascript:!0,"javascript:":!0},L9={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function E7(e,r){if(e&&e instanceof p4)return e;const n=new p4;return n.parse(e,r),n}p4.prototype.parse=function(e,r){let n,i,o,s=e;if(s=s.trim(),!r&&e.split("#").length===1){const c=kae.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=Dae.exec(s);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,s=s.substr(a.length)),(r||a||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(a&&I9[a])&&(s=s.substr(2),this.slashes=!0)),!I9[a]&&(o||a&&!L9[a])){let c=-1;for(let m=0;m<R9.length;m++)i=s.indexOf(R9[m]),i!==-1&&(c===-1||i<c)&&(c=i);let d,h;c===-1?h=s.lastIndexOf("@"):h=s.lastIndexOf("@",c),h!==-1&&(d=s.slice(0,h),s=s.slice(h+1),this.auth=d),c=-1;for(let m=0;m<M9.length;m++)i=s.indexOf(M9[m]),i!==-1&&(c===-1||i<c)&&(c=i);c===-1&&(c=s.length),s[c-1]===":"&&c--;const p=s.slice(0,c);s=s.slice(c),this.parseHost(p),this.hostname=this.hostname||"";const f=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!f){const m=this.hostname.split(/\./);for(let v=0,w=m.length;v<w;v++){const x=m[v];if(x&&!x.match(B9)){let k="";for(let R=0,O=x.length;R<O;R++)x.charCodeAt(R)>127?k+="x":k+=x[R];if(!k.match(B9)){const R=m.slice(0,v),O=m.slice(v+1),P=x.match(Oae);P&&(R.push(P[1]),O.unshift(P[2])),O.length&&(s=O.join(".")+s),this.hostname=R.join(".");break}}}}this.hostname.length>Fae&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=s.indexOf("#");l!==-1&&(this.hash=s.substr(l),s=s.slice(0,l));const u=s.indexOf("?");return u!==-1&&(this.search=s.substr(u),s=s.slice(0,u)),s&&(this.pathname=s),L9[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},p4.prototype.parseHost=function(e){let r=xae.exec(e);r&&(r=r[0],r!==":"&&(this.port=r.substr(1)),e=e.substr(0,e.length-r.length)),e&&(this.hostname=e)};const Mae=Object.freeze(Object.defineProperty({__proto__:null,decode:Vh,encode:_f,format:A7,parse:E7},Symbol.toStringTag,{value:"Module"})),MO=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,RO=/[\0-\x1F\x7F-\x9F]/,Rae=/[\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]/,w7=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,BO=/[\$\+<->\^`\|~\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]/,IO=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Bae=Object.freeze(Object.defineProperty({__proto__:null,Any:MO,Cc:RO,Cf:Rae,P:w7,S:BO,Z:IO},Symbol.toStringTag,{value:"Module"})),Iae=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),Lae=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var g6;const zae=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]]),Yae=(g6=String.fromCodePoint)!==null&&g6!==void 0?g6:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Hae(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=zae.get(e))!==null&&r!==void 0?r:e}var Vi;(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"})(Vi||(Vi={}));const Pae=32;var Au;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Au||(Au={}));function YT(e){return e>=Vi.ZERO&&e<=Vi.NINE}function Zae(e){return e>=Vi.UPPER_A&&e<=Vi.UPPER_F||e>=Vi.LOWER_A&&e<=Vi.LOWER_F}function $ae(e){return e>=Vi.UPPER_A&&e<=Vi.UPPER_Z||e>=Vi.LOWER_A&&e<=Vi.LOWER_Z||YT(e)}function Uae(e){return e===Vi.EQUALS||$ae(e)}var Yi;(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"})(Yi||(Yi={}));var hu;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(hu||(hu={}));class Vae{constructor(r,n,i){this.decodeTree=r,this.emitCodePoint=n,this.errors=i,this.state=Yi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=hu.Strict}startEntity(r){this.decodeMode=r,this.state=Yi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case Yi.EntityStart:return r.charCodeAt(n)===Vi.NUM?(this.state=Yi.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=Yi.NamedEntity,this.stateNamedEntity(r,n));case Yi.NumericStart:return this.stateNumericStart(r,n);case Yi.NumericDecimal:return this.stateNumericDecimal(r,n);case Yi.NumericHex:return this.stateNumericHex(r,n);case Yi.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Pae)===Vi.LOWER_X?(this.state=Yi.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=Yi.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,i,o){if(n!==i){const s=i-n;this.result=this.result*Math.pow(o,s)+parseInt(r.substr(n,s),o),this.consumed+=s}}stateNumericHex(r,n){const i=n;for(;n<r.length;){const o=r.charCodeAt(n);if(YT(o)||Zae(o))n+=1;else return this.addToNumericResult(r,i,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(r,i,n,16),-1}stateNumericDecimal(r,n){const i=n;for(;n<r.length;){const o=r.charCodeAt(n);if(YT(o))n+=1;else return this.addToNumericResult(r,i,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(r,i,n,10),-1}emitNumericEntity(r,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(r===Vi.SEMI)this.consumed+=1;else if(this.decodeMode===hu.Strict)return 0;return this.emitCodePoint(Hae(this.result),this.consumed),this.errors&&(r!==Vi.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(r,n){const{decodeTree:i}=this;let o=i[this.treeIndex],s=(o&Au.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){const a=r.charCodeAt(n);if(this.treeIndex=jae(i,o,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===hu.Attribute&&(s===0||Uae(a))?0:this.emitNotTerminatedNamedEntity();if(o=i[this.treeIndex],s=(o&Au.VALUE_LENGTH)>>14,s!==0){if(a===Vi.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==hu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:i}=this,o=(i[n]&Au.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,i){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[r]&~Au.VALUE_LENGTH:o[r+1],i),n===3&&this.emitCodePoint(o[r+2],i),i}end(){var r;switch(this.state){case Yi.NamedEntity:return this.result!==0&&(this.decodeMode!==hu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yi.NumericDecimal:return this.emitNumericEntity(0,2);case Yi.NumericHex:return this.emitNumericEntity(0,3);case Yi.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yi.EntityStart:return 0}}}function LO(e){let r="";const n=new Vae(e,i=>r+=Yae(i));return function(i,o){let s=0,a=0;for(;(a=i.indexOf("&",a))>=0;){r+=i.slice(s,a),n.startEntity(o);const u=n.write(i,a+1);if(u<0){s=a+n.end();break}s=a+u,a=u===0?s+1:s}const l=r+i.slice(s);return r="",l}}function jae(e,r,n,i){const o=(r&Au.BRANCH_LENGTH)>>7,s=r&Au.JUMP_TABLE;if(o===0)return s!==0&&i===s?n:-1;if(s){const u=i-s;return u<0||u>=o?-1:e[n+u]-1}let a=n,l=a+o-1;for(;a<=l;){const u=a+l>>>1,c=e[u];if(c<i)a=u+1;else if(c>i)l=u-1;else return e[u+o]}return-1}const Gae=LO(Iae);LO(Lae);function zO(e,r=hu.Legacy){return Gae(e,r)}function qae(e){return Object.prototype.toString.call(e)}function S7(e){return qae(e)==="[object String]"}const Wae=Object.prototype.hasOwnProperty;function Kae(e,r){return Wae.call(e,r)}function J3(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function YO(e,r,n){return[].concat(e.slice(0,r),n,e.slice(r+1))}function D7(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 f4(e){if(e>65535){e-=65536;const r=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(r,n)}return String.fromCharCode(e)}const HO=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qae=/&([a-z#][a-z0-9]{1,31});/gi,Jae=new RegExp(HO.source+"|"+Qae.source,"gi"),Xae=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ele(e,r){if(r.charCodeAt(0)===35&&Xae.test(r)){const i=r[1].toLowerCase()==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return D7(i)?f4(i):e}const n=zO(e);return n!==e?n:e}function tle(e){return e.indexOf("\\")<0?e:e.replace(HO,"$1")}function jh(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Jae,function(r,n,i){return n||ele(r,i)})}const rle=/[&<>"]/,nle=/[&<>"]/g,ile={"&":"&","<":"<",">":">",'"':"""};function ole(e){return ile[e]}function t0(e){return rle.test(e)?e.replace(nle,ole):e}const sle=/[.?*+^$[\]\\(){}|-]/g;function ale(e){return e.replace(sle,"\\$&")}function _n(e){switch(e){case 9:case 32:return!0}return!1}function Nf(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 Ff(e){return w7.test(e)||BO.test(e)}function Of(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 X3(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const lle={mdurl:Mae,ucmicro:Bae},ule=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:YO,assign:J3,escapeHtml:t0,escapeRE:ale,fromCodePoint:f4,has:Kae,isMdAsciiPunct:Of,isPunctChar:Ff,isSpace:_n,isString:S7,isValidEntityCode:D7,isWhiteSpace:Nf,lib:lle,normalizeReference:X3,unescapeAll:jh,unescapeMd:tle},Symbol.toStringTag,{value:"Module"}));function cle(e,r,n){let i,o,s,a;const l=e.posMax,u=e.pos;for(e.pos=r+1,i=1;e.pos<l;){if(s=e.src.charCodeAt(e.pos),s===93&&(i--,i===0)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),s===91){if(a===e.pos-1)i++;else if(n)return e.pos=u,-1}}let c=-1;return o&&(c=e.pos),e.pos=u,c}function dle(e,r,n){let i,o=r;const s={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(i=e.charCodeAt(o),i===10||i===60)return s;if(i===62)return s.pos=o+1,s.str=jh(e.slice(r+1,o)),s.ok=!0,s;if(i===92&&o+1<n){o+=2;continue}o++}return s}let a=0;for(;o<n&&(i=e.charCodeAt(o),!(i===32||i<32||i===127));){if(i===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(i===40&&(a++,a>32))return s;if(i===41){if(a===0)break;a--}o++}return r===o||a!==0||(s.str=jh(e.slice(r,o)),s.pos=o,s.ok=!0),s}function hle(e,r,n,i){let o,s=r;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(s>=n)return a;let l=e.charCodeAt(s);if(l!==34&&l!==39&&l!==40)return a;r++,s++,l===40&&(l=41),a.marker=l}for(;s<n;){if(o=e.charCodeAt(s),o===a.marker)return a.pos=s+1,a.str+=jh(e.slice(r,s)),a.ok=!0,a;if(o===40&&a.marker===41)return a;o===92&&s+1<n&&s++,s++}return a.can_continue=!0,a.str+=jh(e.slice(r,s)),a}const ple=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:dle,parseLinkLabel:cle,parseLinkTitle:hle},Symbol.toStringTag,{value:"Module"})),ol={};ol.code_inline=function(e,r,n,i,o){const s=e[r];return"<code"+o.renderAttrs(s)+">"+t0(s.content)+"</code>"},ol.code_block=function(e,r,n,i,o){const s=e[r];return"<pre"+o.renderAttrs(s)+"><code>"+t0(e[r].content)+`</code></pre> `},ol.fence=function(e,r,n,i,o){const s=e[r],a=s.info?jh(s.info).trim():"";let l="",u="";if(a){const d=a.split(/(\s+)/g);l=d[0],u=d.slice(2).join("")}let c;if(n.highlight?c=n.highlight(s.content,l,u)||t0(s.content):c=t0(s.content),c.indexOf("<pre")===0)return c+` `;if(a){const d=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[];d<0?h.push(["class",n.langPrefix+l]):(h[d]=h[d].slice(),h[d][1]+=" "+n.langPrefix+l);const p={attrs:h};return`<pre><code${o.renderAttrs(p)}>${c}</code></pre> `}return`<pre><code${o.renderAttrs(s)}>${c}</code></pre> `},ol.image=function(e,r,n,i,o){const s=e[r];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,i),o.renderToken(e,r,n)},ol.hardbreak=function(e,r,n){return n.xhtmlOut?`<br /> `:`<br> `},ol.softbreak=function(e,r,n){return n.breaks?n.xhtmlOut?`<br /> `:`<br> `:` `},ol.text=function(e,r){return t0(e[r].content)},ol.html_block=function(e,r){return e[r].content},ol.html_inline=function(e,r){return e[r].content};function Jd(){this.rules=J3({},ol)}Jd.prototype.renderAttrs=function(e){let r,n,i;if(!e.attrs)return"";for(i="",r=0,n=e.attrs.length;r<n;r++)i+=" "+t0(e.attrs[r][0])+'="'+t0(e.attrs[r][1])+'"';return i},Jd.prototype.renderToken=function(e,r,n){const i=e[r];let o="";if(i.hidden)return"";i.block&&i.nesting!==-1&&r&&e[r-1].hidden&&(o+=` `),o+=(i.nesting===-1?"</":"<")+i.tag,o+=this.renderAttrs(i),i.nesting===0&&n.xhtmlOut&&(o+=" /");let s=!1;if(i.block&&(s=!0,i.nesting===1&&r+1<e.length)){const a=e[r+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===i.tag)&&(s=!1)}return o+=s?`> `:">",o},Jd.prototype.renderInline=function(e,r,n){let i="";const o=this.rules;for(let s=0,a=e.length;s<a;s++){const l=e[s].type;typeof o[l]<"u"?i+=o[l](e,s,r,n,this):i+=this.renderToken(e,s,r)}return i},Jd.prototype.renderInlineAsText=function(e,r,n){let i="";for(let o=0,s=e.length;o<s;o++)switch(e[o].type){case"text":i+=e[o].content;break;case"image":i+=this.renderInlineAsText(e[o].children,r,n);break;case"html_inline":case"html_block":i+=e[o].content;break;case"softbreak":case"hardbreak":i+=` `;break}return i},Jd.prototype.render=function(e,r,n){let i="";const o=this.rules;for(let s=0,a=e.length;s<a;s++){const l=e[s].type;l==="inline"?i+=this.renderInline(e[s].children,r,n):typeof o[l]<"u"?i+=o[l](e,s,r,n,this):i+=this.renderToken(e,s,r,n)}return i};function jo(){this.__rules__=[],this.__cache__=null}jo.prototype.__find__=function(e){for(let r=0;r<this.__rules__.length;r++)if(this.__rules__[r].name===e)return r;return-1},jo.prototype.__compile__=function(){const e=this,r=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(i){r.indexOf(i)<0&&r.push(i)})}),e.__cache__={},r.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(i){i.enabled&&(n&&i.alt.indexOf(n)<0||e.__cache__[n].push(i.fn))})})},jo.prototype.at=function(e,r,n){const i=this.__find__(e),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=r,this.__rules__[i].alt=o.alt||[],this.__cache__=null},jo.prototype.before=function(e,r,n,i){const o=this.__find__(e),s=i||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:r,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},jo.prototype.after=function(e,r,n,i){const o=this.__find__(e),s=i||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:r,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},jo.prototype.push=function(e,r,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null},jo.prototype.enable=function(e,r){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const o=this.__find__(i);if(o<0){if(r)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!0,n.push(i)},this),this.__cache__=null,n},jo.prototype.enableOnly=function(e,r){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,r)},jo.prototype.disable=function(e,r){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const o=this.__find__(i);if(o<0){if(r)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!1,n.push(i)},this),this.__cache__=null,n},jo.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Jo(e,r,n){this.type=e,this.tag=r,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}Jo.prototype.attrIndex=function(e){if(!this.attrs)return-1;const r=this.attrs;for(let n=0,i=r.length;n<i;n++)if(r[n][0]===e)return n;return-1},Jo.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Jo.prototype.attrSet=function(e,r){const n=this.attrIndex(e),i=[e,r];n<0?this.attrPush(i):this.attrs[n]=i},Jo.prototype.attrGet=function(e){const r=this.attrIndex(e);let n=null;return r>=0&&(n=this.attrs[r][1]),n},Jo.prototype.attrJoin=function(e,r){const n=this.attrIndex(e);n<0?this.attrPush([e,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function PO(e,r,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=r}PO.prototype.Token=Jo;const fle=/\r\n?|\n/g,mle=/\0/g;function gle(e){let r;r=e.src.replace(fle,` `),r=r.replace(mle,"�"),e.src=r}function yle(e){let r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Tle(e){const r=e.tokens;for(let n=0,i=r.length;n<i;n++){const o=r[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function ble(e){return/^<a[>\s]/i.test(e)}function vle(e){return/^<\/a\s*>/i.test(e)}function Ale(e){const r=e.tokens;if(e.md.options.linkify)for(let n=0,i=r.length;n<i;n++){if(r[n].type!=="inline"||!e.md.linkify.pretest(r[n].content))continue;let o=r[n].children,s=0;for(let a=o.length-1;a>=0;a--){const l=o[a];if(l.type==="link_close"){for(a--;o[a].level!==l.level&&o[a].type!=="link_open";)a--;continue}if(l.type==="html_inline"&&(ble(l.content)&&s>0&&s--,vle(l.content)&&s++),!(s>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const u=l.content;let c=e.md.linkify.match(u);const d=[];let h=l.level,p=0;c.length>0&&c[0].index===0&&a>0&&o[a-1].type==="text_special"&&(c=c.slice(1));for(let f=0;f<c.length;f++){const m=c[f].url,v=e.md.normalizeLink(m);if(!e.md.validateLink(v))continue;let w=c[f].text;c[f].schema?c[f].schema==="mailto:"&&!/^mailto:/i.test(w)?w=e.md.normalizeLinkText("mailto:"+w).replace(/^mailto:/,""):w=e.md.normalizeLinkText(w):w=e.md.normalizeLinkText("http://"+w).replace(/^http:\/\//,"");const x=c[f].index;if(x>p){const P=new e.Token("text","",0);P.content=u.slice(p,x),P.level=h,d.push(P)}const k=new e.Token("link_open","a",1);k.attrs=[["href",v]],k.level=h++,k.markup="linkify",k.info="auto",d.push(k);const R=new e.Token("text","",0);R.content=w,R.level=h,d.push(R);const O=new e.Token("link_close","a",-1);O.level=--h,O.markup="linkify",O.info="auto",d.push(O),p=c[f].lastIndex}if(p<u.length){const f=new e.Token("text","",0);f.content=u.slice(p),f.level=h,d.push(f)}r[n].children=o=YO(o,a,d)}}}}const ZO=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ele=/\((c|tm|r)\)/i,wle=/\((c|tm|r)\)/ig,Sle={c:"©",r:"®",tm:"™"};function Dle(e,r){return Sle[r.toLowerCase()]}function xle(e){let r=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!r&&(i.content=i.content.replace(wle,Dle)),i.type==="link_open"&&i.info==="auto"&&r--,i.type==="link_close"&&i.info==="auto"&&r++}}function kle(e){let r=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!r&&ZO.test(i.content)&&(i.content=i.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–")),i.type==="link_open"&&i.info==="auto"&&r--,i.type==="link_close"&&i.info==="auto"&&r++}}function Cle(e){let r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Ele.test(e.tokens[r].content)&&xle(e.tokens[r].children),ZO.test(e.tokens[r].content)&&kle(e.tokens[r].children))}const _le=/['"]/,z9=/['"]/g,Y9="’";function sg(e,r,n){return e.slice(0,r)+n+e.slice(r+1)}function Nle(e,r){let n;const i=[];for(let o=0;o<e.length;o++){const s=e[o],a=e[o].level;for(n=i.length-1;n>=0&&!(i[n].level<=a);n--);if(i.length=n+1,s.type!=="text")continue;let l=s.content,u=0,c=l.length;e:for(;u<c;){z9.lastIndex=u;const d=z9.exec(l);if(!d)break;let h=!0,p=!0;u=d.index+1;const f=d[0]==="'";let m=32;if(d.index-1>=0)m=l.charCodeAt(d.index-1);else for(n=o-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 v=32;if(u<c)v=l.charCodeAt(u);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){v=e[n].content.charCodeAt(0);break}const w=Of(m)||Ff(String.fromCharCode(m)),x=Of(v)||Ff(String.fromCharCode(v)),k=Nf(m),R=Nf(v);if(R?h=!1:x&&(k||w||(h=!1)),k?p=!1:w&&(R||x||(p=!1)),v===34&&d[0]==='"'&&m>=48&&m<=57&&(p=h=!1),h&&p&&(h=w,p=x),!h&&!p){f&&(s.content=sg(s.content,d.index,Y9));continue}if(p)for(n=i.length-1;n>=0;n--){let O=i[n];if(i[n].level<a)break;if(O.single===f&&i[n].level===a){O=i[n];let P,V;f?(P=r.md.options.quotes[2],V=r.md.options.quotes[3]):(P=r.md.options.quotes[0],V=r.md.options.quotes[1]),s.content=sg(s.content,d.index,V),e[O.token].content=sg(e[O.token].content,O.pos,P),u+=V.length-1,O.token===o&&(u+=P.length-1),l=s.content,c=l.length,i.length=n;continue e}}h?i.push({token:o,pos:d.index,single:f,level:a}):p&&f&&(s.content=sg(s.content,d.index,Y9))}}}function Fle(e){if(e.md.options.typographer)for(let r=e.tokens.length-1;r>=0;r--)e.tokens[r].type!=="inline"||!_le.test(e.tokens[r].content)||Nle(e.tokens[r].children,e)}function Ole(e){let r,n;const i=e.tokens,o=i.length;for(let s=0;s<o;s++){if(i[s].type!=="inline")continue;const a=i[s].children,l=a.length;for(r=0;r<l;r++)a[r].type==="text_special"&&(a[r].type="text");for(r=n=0;r<l;r++)a[r].type==="text"&&r+1<l&&a[r+1].type==="text"?a[r+1].content=a[r].content+a[r+1].content:(r!==n&&(a[n]=a[r]),n++);r!==n&&(a.length=n)}}const y6=[["normalize",gle],["block",yle],["inline",Tle],["linkify",Ale],["replacements",Cle],["smartquotes",Fle],["text_join",Ole]];function HT(){this.ruler=new jo;for(let e=0;e<y6.length;e++)this.ruler.push(y6[e][0],y6[e][1])}HT.prototype.process=function(e){const r=this.ruler.getRules("");for(let n=0,i=r.length;n<i;n++)r[n](e)},HT.prototype.State=PO;function sl(e,r,n,i){this.src=e,this.md=r,this.env=n,this.tokens=i,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 o=this.src;for(let s=0,a=0,l=0,u=0,c=o.length,d=!1;a<c;a++){const h=o.charCodeAt(a);if(!d)if(_n(h)){l++,h===9?u+=4-u%4:u++;continue}else d=!0;(h===10||a===c-1)&&(h!==10&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),d=!1,l=0,u=0,s=a+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}sl.prototype.push=function(e,r,n){const i=new Jo(e,r,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},sl.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},sl.prototype.skipEmptyLines=function(e){for(let r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},sl.prototype.skipSpaces=function(e){for(let r=this.src.length;e<r;e++){const n=this.src.charCodeAt(e);if(!_n(n))break}return e},sl.prototype.skipSpacesBack=function(e,r){if(e<=r)return e;for(;e>r;)if(!_n(this.src.charCodeAt(--e)))return e+1;return e},sl.prototype.skipChars=function(e,r){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e},sl.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e},sl.prototype.getLines=function(e,r,n,i){if(e>=r)return"";const o=new Array(r-e);for(let s=0,a=e;a<r;a++,s++){let l=0;const u=this.bMarks[a];let c=u,d;for(a+1<r||i?d=this.eMarks[a]+1:d=this.eMarks[a];c<d&&l<n;){const h=this.src.charCodeAt(c);if(_n(h))h===9?l+=4-(l+this.bsCount[a])%4:l++;else if(c-u<this.tShift[a])l++;else break;c++}l>n?o[s]=new Array(l-n+1).join(" ")+this.src.slice(c,d):o[s]=this.src.slice(c,d)}return o.join("")},sl.prototype.Token=Jo;const Mle=65536;function T6(e,r){const n=e.bMarks[r]+e.tShift[r],i=e.eMarks[r];return e.src.slice(n,i)}function H9(e){const r=[],n=e.length;let i=0,o=e.charCodeAt(i),s=!1,a=0,l="";for(;i<n;)o===124&&(s?(l+=e.substring(a,i-1),a=i):(r.push(l+e.substring(a,i)),l="",a=i+1)),s=o===92,i++,o=e.charCodeAt(i);return r.push(l+e.substring(a)),r}function Rle(e,r,n,i){if(r+2>n)return!1;let o=r+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const a=e.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58||s>=e.eMarks[o])return!1;const l=e.src.charCodeAt(s++);if(l!==124&&l!==45&&l!==58&&!_n(l)||a===45&&_n(l))return!1;for(;s<e.eMarks[o];){const O=e.src.charCodeAt(s);if(O!==124&&O!==45&&O!==58&&!_n(O))return!1;s++}let u=T6(e,r+1),c=u.split("|");const d=[];for(let O=0;O<c.length;O++){const P=c[O].trim();if(!P){if(O===0||O===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(P))return!1;P.charCodeAt(P.length-1)===58?d.push(P.charCodeAt(0)===58?"center":"right"):P.charCodeAt(0)===58?d.push("left"):d.push("")}if(u=T6(e,r).trim(),u.indexOf("|")===-1||e.sCount[r]-e.blkIndent>=4)return!1;c=H9(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const h=c.length;if(h===0||h!==d.length)return!1;if(i)return!0;const p=e.parentType;e.parentType="table";const f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),v=[r,0];m.map=v;const w=e.push("thead_open","thead",1);w.map=[r,r+1];const x=e.push("tr_open","tr",1);x.map=[r,r+1];for(let O=0;O<c.length;O++){const P=e.push("th_open","th",1);d[O]&&(P.attrs=[["style","text-align:"+d[O]]]);const V=e.push("inline","",0);V.content=c[O].trim(),V.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,R=0;for(o=r+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let O=!1;for(let V=0,W=f.length;V<W;V++)if(f[V](e,o,n,!0)){O=!0;break}if(O||(u=T6(e,o).trim(),!u)||e.sCount[o]-e.blkIndent>=4||(c=H9(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),R+=h-c.length,R>Mle))break;if(o===r+2){const V=e.push("tbody_open","tbody",1);V.map=k=[r+2,0]}const P=e.push("tr_open","tr",1);P.map=[o,o+1];for(let V=0;V<h;V++){const W=e.push("td_open","td",1);d[V]&&(W.attrs=[["style","text-align:"+d[V]]]);const ie=e.push("inline","",0);ie.content=c[V]?c[V].trim():"",ie.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=o),e.push("table_close","table",-1),v[1]=o,e.parentType=p,e.line=o,!0}function Ble(e,r,n){if(e.sCount[r]-e.blkIndent<4)return!1;let i=r+1,o=i;for(;i<n;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,o=i;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(r,o,4+e.blkIndent,!1)+` `,s.map=[r,e.line],!0}function Ile(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||o+3>s)return!1;const a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let l=o;o=e.skipChars(o,a);let u=o-l;if(u<3)return!1;const c=e.src.slice(l,o),d=e.src.slice(o,s);if(a===96&&d.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let h=r,p=!1;for(;h++,!(h>=n||(o=l=e.bMarks[h]+e.tShift[h],s=e.eMarks[h],o<s&&e.sCount[h]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[h]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-l<u)&&(o=e.skipSpaces(o),!(o<s)))){p=!0;break}u=e.sCount[r],e.line=h+(p?1:0);const f=e.push("fence","code",0);return f.info=d,f.content=e.getLines(r+1,h,u,!0),f.markup=c,f.map=[r,e.line],!0}function Lle(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];const a=e.lineMax;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(i)return!0;const l=[],u=[],c=[],d=[],h=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1,m;for(m=r;m<n;m++){const R=e.sCount[m]<e.blkIndent;if(o=e.bMarks[m]+e.tShift[m],s=e.eMarks[m],o>=s)break;if(e.src.charCodeAt(o++)===62&&!R){let P=e.sCount[m]+1,V,W;e.src.charCodeAt(o)===32?(o++,P++,W=!1,V=!0):e.src.charCodeAt(o)===9?(V=!0,(e.bsCount[m]+P)%4===3?(o++,P++,W=!1):W=!0):V=!1;let ie=P;for(l.push(e.bMarks[m]),e.bMarks[m]=o;o<s;){const ue=e.src.charCodeAt(o);if(_n(ue))ue===9?ie+=4-(ie+e.bsCount[m]+(W?1:0))%4:ie++;else break;o++}f=o>=s,u.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(V?1:0),c.push(e.sCount[m]),e.sCount[m]=ie-P,d.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(f)break;let O=!1;for(let P=0,V=h.length;P<V;P++)if(h[P](e,m,n,!0)){O=!0;break}if(O){e.lineMax=m,e.blkIndent!==0&&(l.push(e.bMarks[m]),u.push(e.bsCount[m]),d.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}l.push(e.bMarks[m]),u.push(e.bsCount[m]),d.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const v=e.blkIndent;e.blkIndent=0;const w=e.push("blockquote_open","blockquote",1);w.markup=">";const x=[r,0];w.map=x,e.md.block.tokenize(e,r,m);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=a,e.parentType=p,x[1]=e.line;for(let R=0;R<d.length;R++)e.bMarks[R+r]=l[R],e.tShift[R+r]=d[R],e.sCount[R+r]=c[R],e.bsCount[R+r]=u[R];return e.blkIndent=v,!0}function zle(e,r,n,i){const o=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4)return!1;let s=e.bMarks[r]+e.tShift[r];const a=e.src.charCodeAt(s++);if(a!==42&&a!==45&&a!==95)return!1;let l=1;for(;s<o;){const c=e.src.charCodeAt(s++);if(c!==a&&!_n(c))return!1;c===a&&l++}if(l<3)return!1;if(i)return!0;e.line=r+1;const u=e.push("hr","hr",0);return u.map=[r,e.line],u.markup=Array(l+1).join(String.fromCharCode(a)),!0}function P9(e,r){const n=e.eMarks[r];let i=e.bMarks[r]+e.tShift[r];const o=e.src.charCodeAt(i++);if(o!==42&&o!==45&&o!==43)return-1;if(i<n){const s=e.src.charCodeAt(i);if(!_n(s))return-1}return i}function Z9(e,r){const n=e.bMarks[r]+e.tShift[r],i=e.eMarks[r];let o=n;if(o+1>=i)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=i)return-1;if(s=e.src.charCodeAt(o++),s>=48&&s<=57){if(o-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return o<i&&(s=e.src.charCodeAt(o),!_n(s))?-1:o}function Yle(e,r){const n=e.level+2;for(let i=r+2,o=e.tokens.length-2;i<o;i++)e.tokens[i].level===n&&e.tokens[i].type==="paragraph_open"&&(e.tokens[i+2].hidden=!0,e.tokens[i].hidden=!0,i+=2)}function Hle(e,r,n,i){let o,s,a,l,u=r,c=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let d=!1;i&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(d=!0);let h,p,f;if((f=Z9(e,u))>=0){if(h=!0,a=e.bMarks[u]+e.tShift[u],p=Number(e.src.slice(a,f-1)),d&&p!==1)return!1}else if((f=P9(e,u))>=0)h=!1;else return!1;if(d&&e.skipSpaces(f)>=e.eMarks[u])return!1;if(i)return!0;const m=e.src.charCodeAt(f-1),v=e.tokens.length;h?(l=e.push("ordered_list_open","ol",1),p!==1&&(l.attrs=[["start",p]])):l=e.push("bullet_list_open","ul",1);const w=[u,0];l.map=w,l.markup=String.fromCharCode(m);let x=!1;const k=e.md.block.ruler.getRules("list"),R=e.parentType;for(e.parentType="list";u<n;){s=f,o=e.eMarks[u];const O=e.sCount[u]+f-(e.bMarks[u]+e.tShift[u]);let P=O;for(;s<o;){const ge=e.src.charCodeAt(s);if(ge===9)P+=4-(P+e.bsCount[u])%4;else if(ge===32)P++;else break;s++}const V=s;let W;V>=o?W=1:W=P-O,W>4&&(W=1);const ie=O+W;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(m);const ue=[u,0];l.map=ue,h&&(l.info=e.src.slice(a,f-1));const I=e.tight,ne=e.tShift[u],he=e.sCount[u],re=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=ie,e.tight=!0,e.tShift[u]=V-e.bMarks[u],e.sCount[u]=P,V>=o&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||x)&&(c=!1),x=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=re,e.tShift[u]=ne,e.sCount[u]=he,e.tight=I,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(m),u=e.line,ue[1]=u,u>=n||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let Ee=!1;for(let ge=0,Oe=k.length;ge<Oe;ge++)if(k[ge](e,u,n,!0)){Ee=!0;break}if(Ee)break;if(h){if(f=Z9(e,u),f<0)break;a=e.bMarks[u]+e.tShift[u]}else if(f=P9(e,u),f<0)break;if(m!==e.src.charCodeAt(f-1))break}return h?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(m),w[1]=u,e.line=u,e.parentType=R,c&&Yle(e,v),!0}function Ple(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r],a=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function l(k){const R=e.lineMax;if(k>=R||e.isEmpty(k))return null;let O=!1;if(e.sCount[k]-e.blkIndent>3&&(O=!0),e.sCount[k]<0&&(O=!0),!O){const W=e.md.block.ruler.getRules("reference"),ie=e.parentType;e.parentType="reference";let ue=!1;for(let I=0,ne=W.length;I<ne;I++)if(W[I](e,k,R,!0)){ue=!0;break}if(e.parentType=ie,ue)return null}const P=e.bMarks[k]+e.tShift[k],V=e.eMarks[k];return e.src.slice(P,V+1)}let u=e.src.slice(o,s+1);s=u.length;let c=-1;for(o=1;o<s;o++){const k=u.charCodeAt(o);if(k===91)return!1;if(k===93){c=o;break}else if(k===10){const R=l(a);R!==null&&(u+=R,s=u.length,a++)}else if(k===92&&(o++,o<s&&u.charCodeAt(o)===10)){const R=l(a);R!==null&&(u+=R,s=u.length,a++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(o=c+2;o<s;o++){const k=u.charCodeAt(o);if(k===10){const R=l(a);R!==null&&(u+=R,s=u.length,a++)}else if(!_n(k))break}const d=e.md.helpers.parseLinkDestination(u,o,s);if(!d.ok)return!1;const h=e.md.normalizeLink(d.str);if(!e.md.validateLink(h))return!1;o=d.pos;const p=o,f=a,m=o;for(;o<s;o++){const k=u.charCodeAt(o);if(k===10){const R=l(a);R!==null&&(u+=R,s=u.length,a++)}else if(!_n(k))break}let v=e.md.helpers.parseLinkTitle(u,o,s);for(;v.can_continue;){const k=l(a);if(k===null)break;u+=k,o=s,s=u.length,a++,v=e.md.helpers.parseLinkTitle(u,o,s,v)}let w;for(o<s&&m!==o&&v.ok?(w=v.str,o=v.pos):(w="",o=p,a=f);o<s;){const k=u.charCodeAt(o);if(!_n(k))break;o++}if(o<s&&u.charCodeAt(o)!==10&&w)for(w="",o=p,a=f;o<s;){const k=u.charCodeAt(o);if(!_n(k))break;o++}if(o<s&&u.charCodeAt(o)!==10)return!1;const x=X3(u.slice(1,c));return x?(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:w,href:h}),e.line=a),!0):!1}const Zle=["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"],$le="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ule="[^\"'=<>`\\x00-\\x20]+",Vle="'[^']*'",jle='"[^"]*"',Gle="(?:"+Ule+"|"+Vle+"|"+jle+")",qle="(?:\\s+"+$le+"(?:\\s*=\\s*"+Gle+")?)",$O="<[A-Za-z][A-Za-z0-9\\-]*"+qle+"*\\s*\\/?>",UO="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Wle="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Kle="<[?][\\s\\S]*?[?]>",Qle="<![A-Za-z][^>]*>",Jle="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Xle=new RegExp("^(?:"+$O+"|"+UO+"|"+Wle+"|"+Kle+"|"+Qle+"|"+Jle+")"),e0e=new RegExp("^(?:"+$O+"|"+UO+")"),Vd=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Zle.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(e0e.source+"\\s*$"),/^$/,!1]];function t0e(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,s),l=0;for(;l<Vd.length&&!Vd[l][0].test(a);l++);if(l===Vd.length)return!1;if(i)return Vd[l][2];let u=r+1;if(!Vd[l][1].test(a)){for(;u<n&&!(e.sCount[u]<e.blkIndent);u++)if(o=e.bMarks[u]+e.tShift[u],s=e.eMarks[u],a=e.src.slice(o,s),Vd[l][1].test(a)){a.length!==0&&u++;break}}e.line=u;const c=e.push("html_block","",0);return c.map=[r,u],c.content=e.getLines(r,u,e.blkIndent,!0),!0}function r0e(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=s)return!1;let l=1;for(a=e.src.charCodeAt(++o);a===35&&o<s&&l<=6;)l++,a=e.src.charCodeAt(++o);if(l>6||o<s&&!_n(a))return!1;if(i)return!0;s=e.skipSpacesBack(s,o);const u=e.skipCharsBack(s,35,o);u>o&&_n(e.src.charCodeAt(u-1))&&(s=u),e.line=r+1;const c=e.push("heading_open","h"+String(l),1);c.markup="########".slice(0,l),c.map=[r,e.line];const d=e.push("inline","",0);d.content=e.src.slice(o,s).trim(),d.map=[r,e.line],d.children=[];const h=e.push("heading_close","h"+String(l),-1);return h.markup="########".slice(0,l),!0}function n0e(e,r,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let s=0,a,l=r+1;for(;l<n&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let f=e.bMarks[l]+e.tShift[l];const m=e.eMarks[l];if(f<m&&(a=e.src.charCodeAt(f),(a===45||a===61)&&(f=e.skipChars(f,a),f=e.skipSpaces(f),f>=m))){s=a===61?1:2;break}}if(e.sCount[l]<0)continue;let p=!1;for(let f=0,m=i.length;f<m;f++)if(i[f](e,l,n,!0)){p=!0;break}if(p)break}if(!s)return!1;const u=e.getLines(r,l,e.blkIndent,!1).trim();e.line=l+1;const c=e.push("heading_open","h"+String(s),1);c.markup=String.fromCharCode(a),c.map=[r,e.line];const d=e.push("inline","",0);d.content=u,d.map=[r,e.line-1],d.children=[];const h=e.push("heading_close","h"+String(s),-1);return h.markup=String.fromCharCode(a),e.parentType=o,!0}function i0e(e,r,n){const i=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let s=r+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let c=!1;for(let d=0,h=i.length;d<h;d++)if(i[d](e,s,n,!0)){c=!0;break}if(c)break}const a=e.getLines(r,s,e.blkIndent,!1).trim();e.line=s;const l=e.push("paragraph_open","p",1);l.map=[r,e.line];const u=e.push("inline","",0);return u.content=a,u.map=[r,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const ag=[["table",Rle,["paragraph","reference"]],["code",Ble],["fence",Ile,["paragraph","reference","blockquote","list"]],["blockquote",Lle,["paragraph","reference","blockquote","list"]],["hr",zle,["paragraph","reference","blockquote","list"]],["list",Hle,["paragraph","reference","blockquote"]],["reference",Ple],["html_block",t0e,["paragraph","reference","blockquote"]],["heading",r0e,["paragraph","reference","blockquote"]],["lheading",n0e],["paragraph",i0e]];function h2(){this.ruler=new jo;for(let e=0;e<ag.length;e++)this.ruler.push(ag[e][0],ag[e][1],{alt:(ag[e][2]||[]).slice()})}h2.prototype.tokenize=function(e,r,n){const i=this.ruler.getRules(""),o=i.length,s=e.md.options.maxNesting;let a=r,l=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=s){e.line=n;break}const u=e.line;let c=!1;for(let d=0;d<o;d++)if(c=i[d](e,a,n,!1),c){if(u>=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=!l,e.isEmpty(e.line-1)&&(l=!0),a=e.line,a<n&&e.isEmpty(a)&&(l=!0,a++,e.line=a)}},h2.prototype.parse=function(e,r,n,i){if(!e)return;const o=new this.State(e,r,n,i);this.tokenize(o,o.line,o.lineMax)},h2.prototype.State=sl;function y1(e,r,n,i){this.src=e,this.env=n,this.md=r,this.tokens=i,this.tokens_meta=Array(i.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}y1.prototype.pushPending=function(){const e=new Jo("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},y1.prototype.push=function(e,r,n){this.pending&&this.pushPending();const i=new Jo(e,r,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},y1.prototype.scanDelims=function(e,r){const n=this.posMax,i=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===i;)s++;const a=s-e,l=s<n?this.src.charCodeAt(s):32,u=Of(o)||Ff(String.fromCharCode(o)),c=Of(l)||Ff(String.fromCharCode(l)),d=Nf(o),h=Nf(l),p=!h&&(!c||d||u),f=!d&&(!u||h||c);return{can_open:p&&(r||!f||u),can_close:f&&(r||!p||c),length:a}},y1.prototype.Token=Jo;function o0e(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 s0e(e,r){let n=e.pos;for(;n<e.posMax&&!o0e(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(r||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const a0e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function l0e(e,r){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(a0e);if(!o)return!1;const s=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!a)return!1;let l=a.url;if(l.length<=s.length)return!1;l=l.replace(/\*+$/,"");const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!r){e.pending=e.pending.slice(0,-s.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(l);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=l.length-s.length,!0}function VO(e,r){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,o=e.posMax;if(!r)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),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<o&&_n(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const x7=[];for(let e=0;e<256;e++)x7.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){x7[e.charCodeAt(0)]=1});function jO(e,r){let n=e.pos;const i=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let o=e.src.charCodeAt(n);if(o===10){for(r||e.push("hardbreak","br",0),n++;n<i&&(o=e.src.charCodeAt(n),!!_n(o));)n++;return e.pos=n,!0}let s=e.src[n];if(o>=55296&&o<=56319&&n+1<i){const l=e.src.charCodeAt(n+1);l>=56320&&l<=57343&&(s+=e.src[n+1],n++)}const a="\\"+s;if(!r){const l=e.push("text_special","",0);o<256&&x7[o]!==0?l.content=s:l.content=a,l.markup=a,l.info="escape"}return e.pos=n+1,!0}function u0e(e,r){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(i,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=i)return r||(e.pending+=s),e.pos+=a,!0;let l=n,u;for(;(u=e.src.indexOf("`",l))!==-1;){for(l=u+1;l<o&&e.src.charCodeAt(l)===96;)l++;const c=l-u;if(c===a){if(!r){const d=e.push("code_inline","code",0);d.markup=s,d.content=e.src.slice(n,u).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[c]=u}return e.backticksScanned=!0,r||(e.pending+=s),e.pos+=a,!0}function c0e(e,r){const n=e.pos,i=e.src.charCodeAt(n);if(r||i!==126)return!1;const o=e.scanDelims(e.pos,!0);let s=o.length;const a=String.fromCharCode(i);if(s<2)return!1;let l;s%2&&(l=e.push("text","",0),l.content=a,s--);for(let u=0;u<s;u+=2)l=e.push("text","",0),l.content=a+a,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function $9(e,r){let n;const i=[],o=r.length;for(let s=0;s<o;s++){const a=r[s];if(a.marker!==126||a.end===-1)continue;const l=r[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&i.push(l.token-1)}for(;i.length;){const s=i.pop();let a=s+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,s!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[s],e.tokens[s]=n)}}function d0e(e){const r=e.tokens_meta,n=e.tokens_meta.length;$9(e,e.delimiters);for(let i=0;i<n;i++)r[i]&&r[i].delimiters&&$9(e,r[i].delimiters)}const GO={tokenize:c0e,postProcess:d0e};function h0e(e,r){const n=e.pos,i=e.src.charCodeAt(n);if(r||i!==95&&i!==42)return!1;const o=e.scanDelims(e.pos,i===42);for(let s=0;s<o.length;s++){const a=e.push("text","",0);a.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function U9(e,r){const n=r.length;for(let i=n-1;i>=0;i--){const o=r[i];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const s=r[o.end],a=i>0&&r[i-1].end===o.end+1&&r[i-1].marker===o.marker&&r[i-1].token===o.token-1&&r[o.end+1].token===s.token+1,l=String.fromCharCode(o.marker),u=e.tokens[o.token];u.type=a?"strong_open":"em_open",u.tag=a?"strong":"em",u.nesting=1,u.markup=a?l+l:l,u.content="";const c=e.tokens[s.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?l+l:l,c.content="",a&&(e.tokens[r[i-1].token].content="",e.tokens[r[o.end+1].token].content="",i--)}}function p0e(e){const r=e.tokens_meta,n=e.tokens_meta.length;U9(e,e.delimiters);for(let i=0;i<n;i++)r[i]&&r[i].delimiters&&U9(e,r[i].delimiters)}const qO={tokenize:h0e,postProcess:p0e};function f0e(e,r){let n,i,o,s,a="",l="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,h=e.posMax,p=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let m=f+1;if(m<h&&e.src.charCodeAt(m)===40){for(c=!1,m++;m<h&&(n=e.src.charCodeAt(m),!(!_n(n)&&n!==10));m++);if(m>=h)return!1;if(u=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?m=o.pos:a="",u=m;m<h&&(n=e.src.charCodeAt(m),!(!_n(n)&&n!==10));m++);if(o=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<h&&u!==m&&o.ok)for(l=o.str,m=o.pos;m<h&&(n=e.src.charCodeAt(m),!(!_n(n)&&n!==10));m++);}(m>=h||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m<h&&e.src.charCodeAt(m)===91?(u=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?i=e.src.slice(u,m++):m=f+1):m=f+1,i||(i=e.src.slice(p,f)),s=e.env.references[X3(i)],!s)return e.pos=d,!1;a=s.href,l=s.title}if(!r){e.pos=p,e.posMax=f;const v=e.push("link_open","a",1),w=[["href",a]];v.attrs=w,l&&w.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=h,!0}function m0e(e,r){let n,i,o,s,a,l,u,c,d="";const h=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const f=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(s=m+1,s<p&&e.src.charCodeAt(s)===40){for(s++;s<p&&(n=e.src.charCodeAt(s),!(!_n(n)&&n!==10));s++);if(s>=p)return!1;for(c=s,l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),l.ok&&(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?s=l.pos:d=""),c=s;s<p&&(n=e.src.charCodeAt(s),!(!_n(n)&&n!==10));s++);if(l=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<p&&c!==s&&l.ok)for(u=l.str,s=l.pos;s<p&&(n=e.src.charCodeAt(s),!(!_n(n)&&n!==10));s++);else u="";if(s>=p||e.src.charCodeAt(s)!==41)return e.pos=h,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<p&&e.src.charCodeAt(s)===91?(c=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?o=e.src.slice(c,s++):s=m+1):s=m+1,o||(o=e.src.slice(f,m)),a=e.env.references[X3(o)],!a)return e.pos=h,!1;d=a.href,u=a.title}if(!r){i=e.src.slice(f,m);const v=[];e.md.inline.parse(i,e.md,e.env,v);const w=e.push("image","img",0),x=[["src",d],["alt",""]];w.attrs=x,w.children=v,w.content=i,u&&x.push(["title",u])}return e.pos=s,e.posMax=p,!0}const g0e=/^([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])?)*)$/,y0e=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function T0e(e,r){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const i=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const s=e.src.slice(i+1,n);if(y0e.test(s)){const a=e.md.normalizeLink(s);if(!e.md.validateLink(a))return!1;if(!r){const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(s);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}if(g0e.test(s)){const a=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(a))return!1;if(!r){const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(s);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}return!1}function b0e(e){return/^<a[>\s]/i.test(e)}function v0e(e){return/^<\/a\s*>/i.test(e)}function A0e(e){const r=e|32;return r>=97&&r<=122}function E0e(e,r){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=n)return!1;const o=e.src.charCodeAt(i+1);if(o!==33&&o!==63&&o!==47&&!A0e(o))return!1;const s=e.src.slice(i).match(Xle);if(!s)return!1;if(!r){const a=e.push("html_inline","",0);a.content=s[0],b0e(a.content)&&e.linkLevel++,v0e(a.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}const w0e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,S0e=/^&([a-z][a-z0-9]{1,31});/i;function D0e(e,r){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(w0e);if(o){if(!r){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=e.push("text_special","",0);a.content=D7(s)?f4(s):f4(65533),a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(S0e);if(o){const s=zO(o[0]);if(s!==o[0]){if(!r){const a=e.push("text_special","",0);a.content=s,a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function V9(e){const r={},n=e.length;if(!n)return;let i=0,o=-2;const s=[];for(let a=0;a<n;a++){const l=e[a];if(s.push(0),(e[i].marker!==l.marker||o!==l.token-1)&&(i=a),o=l.token,l.length=l.length||0,!l.close)continue;r.hasOwnProperty(l.marker)||(r[l.marker]=[-1,-1,-1,-1,-1,-1]);const u=r[l.marker][(l.open?3:0)+l.length%3];let c=i-s[i]-1,d=c;for(;c>u;c-=s[c]+1){const h=e[c];if(h.marker===l.marker&&h.open&&h.end<0){let p=!1;if((h.close||l.open)&&(h.length+l.length)%3===0&&(h.length%3!==0||l.length%3!==0)&&(p=!0),!p){const f=c>0&&!e[c-1].open?s[c-1]+1:0;s[a]=a-c+f,s[c]=f,l.open=!1,h.end=a,h.close=!1,d=-1,o=-2;break}}}d!==-1&&(r[l.marker][(l.open?3:0)+(l.length||0)%3]=d)}}function x0e(e){const r=e.tokens_meta,n=e.tokens_meta.length;V9(e.delimiters);for(let i=0;i<n;i++)r[i]&&r[i].delimiters&&V9(r[i].delimiters)}function k0e(e){let r,n,i=0;const o=e.tokens,s=e.tokens.length;for(r=n=0;r<s;r++)o[r].nesting<0&&i--,o[r].level=i,o[r].nesting>0&&i++,o[r].type==="text"&&r+1<s&&o[r+1].type==="text"?o[r+1].content=o[r].content+o[r+1].content:(r!==n&&(o[n]=o[r]),n++);r!==n&&(o.length=n)}const b6=[["text",s0e],["linkify",l0e],["newline",VO],["escape",jO],["backticks",u0e],["strikethrough",GO.tokenize],["emphasis",qO.tokenize],["link",f0e],["image",m0e],["autolink",T0e],["html_inline",E0e],["entity",D0e]],v6=[["balance_pairs",x0e],["strikethrough",GO.postProcess],["emphasis",qO.postProcess],["fragments_join",k0e]];function T1(){this.ruler=new jo;for(let e=0;e<b6.length;e++)this.ruler.push(b6[e][0],b6[e][1]);this.ruler2=new jo;for(let e=0;e<v6.length;e++)this.ruler2.push(v6[e][0],v6[e][1])}T1.prototype.skipToken=function(e){const r=e.pos,n=this.ruler.getRules(""),i=n.length,o=e.md.options.maxNesting,s=e.cache;if(typeof s[r]<"u"){e.pos=s[r];return}let a=!1;if(e.level<o){for(let l=0;l<i;l++)if(e.level++,a=n[l](e,!0),e.level--,a){if(r>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[r]=e.pos},T1.prototype.tokenize=function(e){const r=this.ruler.getRules(""),n=r.length,i=e.posMax,o=e.md.options.maxNesting;for(;e.pos<i;){const s=e.pos;let a=!1;if(e.level<o){for(let l=0;l<n;l++)if(a=r[l](e,!1),a){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},T1.prototype.parse=function(e,r,n,i){const o=new this.State(e,r,n,i);this.tokenize(o);const s=this.ruler2.getRules(""),a=s.length;for(let l=0;l<a;l++)s[l](o)},T1.prototype.State=y1;function C0e(e){const r={};e=e||{},r.src_Any=MO.source,r.src_Cc=RO.source,r.src_Z=IO.source,r.src_P=w7.source,r.src_ZPCc=[r.src_Z,r.src_P,r.src_Cc].join("|"),r.src_ZCc=[r.src_Z,r.src_Cc].join("|");const n="[><|]";return r.src_pseudo_letter="(?:(?!"+n+"|"+r.src_ZPCc+")"+r.src_Any+")",r.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]?)",r.src_auth="(?:(?:(?!"+r.src_ZCc+"|[@/\\[\\]()]).)+@)?",r.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",r.src_host_terminator="(?=$|"+n+"|"+r.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+r.src_ZPCc+"))",r.src_path="(?:[/?#](?:(?!"+r.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+r.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+r.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+r.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+r.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+r.src_ZCc+"|[']).)+\\'|\\'(?="+r.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+r.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+r.src_ZCc+"|$)|;(?!"+r.src_ZCc+"|$)|\\!+(?!"+r.src_ZCc+"|[!]|$)|\\?(?!"+r.src_ZCc+"|[?]|$))+|\\/)?",r.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',r.src_xn="xn--[a-z0-9\\-]{1,59}",r.src_domain_root="(?:"+r.src_xn+"|"+r.src_pseudo_letter+"{1,63})",r.src_domain="(?:"+r.src_xn+"|(?:"+r.src_pseudo_letter+")|(?:"+r.src_pseudo_letter+"(?:-|"+r.src_pseudo_letter+"){0,61}"+r.src_pseudo_letter+"))",r.src_host="(?:(?:(?:(?:"+r.src_domain+")\\.)*"+r.src_domain+"))",r.tpl_host_fuzzy="(?:"+r.src_ip4+"|(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%)))",r.tpl_host_no_ip_fuzzy="(?:(?:(?:"+r.src_domain+")\\.)+(?:%TLDS%))",r.src_host_strict=r.src_host+r.src_host_terminator,r.tpl_host_fuzzy_strict=r.tpl_host_fuzzy+r.src_host_terminator,r.src_host_port_strict=r.src_host+r.src_port+r.src_host_terminator,r.tpl_host_port_fuzzy_strict=r.tpl_host_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_port_no_ip_fuzzy_strict=r.tpl_host_no_ip_fuzzy+r.src_port+r.src_host_terminator,r.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+r.src_ZPCc+"|>|$))",r.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}function PT(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function e5(e){return Object.prototype.toString.call(e)}function _0e(e){return e5(e)==="[object String]"}function N0e(e){return e5(e)==="[object Object]"}function F0e(e){return e5(e)==="[object RegExp]"}function j9(e){return e5(e)==="[object Function]"}function O0e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const WO={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function M0e(e){return Object.keys(e||{}).reduce(function(r,n){return r||WO.hasOwnProperty(n)},!1)}const R0e={"http:":{validate:function(e,r,n){const i=e.slice(r);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(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,r,n){const i=e.slice(r);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(i)?r>=3&&e[r-3]===":"||r>=3&&e[r-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,r,n){const i=e.slice(r);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},B0e="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]",I0e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function L0e(e){e.__index__=-1,e.__text_cache__=""}function z0e(e){return function(r,n){const i=r.slice(n);return e.test(i)?i.match(e)[0].length:0}}function G9(){return function(e,r){r.normalize(e)}}function p2(e){const r=e.re=C0e(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(B0e),n.push(r.src_xn),r.src_tlds=n.join("|");function i(l){return l.replace("%TLDS%",r.src_tlds)}r.email_fuzzy=RegExp(i(r.tpl_email_fuzzy),"i"),r.link_fuzzy=RegExp(i(r.tpl_link_fuzzy),"i"),r.link_no_ip_fuzzy=RegExp(i(r.tpl_link_no_ip_fuzzy),"i"),r.host_fuzzy_test=RegExp(i(r.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function s(l,u){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+u)}Object.keys(e.__schemas__).forEach(function(l){const u=e.__schemas__[l];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[l]=c,N0e(u)){F0e(u.validate)?c.validate=z0e(u.validate):j9(u.validate)?c.validate=u.validate:s(l,u),j9(u.normalize)?c.normalize=u.normalize:u.normalize?s(l,u):c.normalize=G9();return}if(_0e(u)){o.push(l);return}s(l,u)}),o.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:G9()};const a=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(O0e).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+a+")","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"),L0e(e)}function Y0e(e,r){const n=e.__index__,i=e.__last_index__,o=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+r,this.lastIndex=i+r,this.raw=o,this.text=o,this.url=o}function A6(e,r){const n=new Y0e(e,r);return e.__compiled__[n.schema].normalize(n,e),n}function Es(e,r){if(!(this instanceof Es))return new Es(e,r);r||M0e(e)&&(r=e,e={}),this.__opts__=PT({},WO,r),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=PT({},R0e,e),this.__compiled__={},this.__tlds__=I0e,this.__tlds_replaced__=!1,this.re={},p2(this)}Es.prototype.add=function(e,r){return this.__schemas__[e]=r,p2(this),this},Es.prototype.set=function(e){return this.__opts__=PT(this.__opts__,e),this},Es.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let r,n,i,o,s,a,l,u,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(r=l.exec(e))!==null;)if(o=this.testSchemaAt(e,r[2],l.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0},Es.prototype.pretest=function(e){return this.re.pretest.test(e)},Es.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0},Es.prototype.match=function(e){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(r.push(A6(this,n)),n=this.__last_index__);let i=n?e.slice(n):e;for(;this.test(i);)r.push(A6(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},Es.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const r=this.re.schema_at_start.exec(e);if(!r)return null;const n=this.testSchemaAt(e,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,A6(this,0)):null},Es.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),p2(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p2(this),this)},Es.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Es.prototype.onCompile=function(){};const Ah=2147483647,ml=36,k7=1,Mf=26,H0e=38,P0e=700,KO=72,QO=128,JO="-",Z0e=/^xn--/,$0e=/[^\0-\x7F]/,U0e=/[\x2E\u3002\uFF0E\uFF61]/g,V0e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E6=ml-k7,gl=Math.floor,w6=String.fromCharCode;function su(e){throw new RangeError(V0e[e])}function j0e(e,r){const n=[];let i=e.length;for(;i--;)n[i]=r(e[i]);return n}function XO(e,r){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(U0e,".");const o=e.split("."),s=j0e(o,r).join(".");return i+s}function eM(e){const r=[];let n=0;const i=e.length;for(;n<i;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<i){const s=e.charCodeAt(n++);(s&64512)==56320?r.push(((o&1023)<<10)+(s&1023)+65536):(r.push(o),n--)}else r.push(o)}return r}const G0e=e=>String.fromCodePoint(...e),q0e=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ml},q9=function(e,r){return e+22+75*(e<26)-((r!=0)<<5)},tM=function(e,r,n){let i=0;for(e=n?gl(e/P0e):e>>1,e+=gl(e/r);e>E6*Mf>>1;i+=ml)e=gl(e/E6);return gl(i+(E6+1)*e/(e+H0e))},rM=function(e){const r=[],n=e.length;let i=0,o=QO,s=KO,a=e.lastIndexOf(JO);a<0&&(a=0);for(let l=0;l<a;++l)e.charCodeAt(l)>=128&&su("not-basic"),r.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const u=i;for(let d=1,h=ml;;h+=ml){l>=n&&su("invalid-input");const p=q0e(e.charCodeAt(l++));p>=ml&&su("invalid-input"),p>gl((Ah-i)/d)&&su("overflow"),i+=p*d;const f=h<=s?k7:h>=s+Mf?Mf:h-s;if(p<f)break;const m=ml-f;d>gl(Ah/m)&&su("overflow"),d*=m}const c=r.length+1;s=tM(i-u,c,u==0),gl(i/c)>Ah-o&&su("overflow"),o+=gl(i/c),i%=c,r.splice(i++,0,o)}return String.fromCodePoint(...r)},nM=function(e){const r=[];e=eM(e);const n=e.length;let i=QO,o=0,s=KO;for(const u of e)u<128&&r.push(w6(u));const a=r.length;let l=a;for(a&&r.push(JO);l<n;){let u=Ah;for(const d of e)d>=i&&d<u&&(u=d);const c=l+1;u-i>gl((Ah-o)/c)&&su("overflow"),o+=(u-i)*c,i=u;for(const d of e)if(d<i&&++o>Ah&&su("overflow"),d===i){let h=o;for(let p=ml;;p+=ml){const f=p<=s?k7:p>=s+Mf?Mf:p-s;if(h<f)break;const m=h-f,v=ml-f;r.push(w6(q9(f+m%v,0))),h=gl(m/v)}r.push(w6(q9(h,0))),s=tM(o,c,l===a),o=0,++l}++o,++i}return r.join("")},W0e=function(e){return XO(e,function(r){return Z0e.test(r)?rM(r.slice(4).toLowerCase()):r})},K0e=function(e){return XO(e,function(r){return $0e.test(r)?"xn--"+nM(r):r})},iM={version:"2.3.1",ucs2:{decode:eM,encode:G0e},decode:rM,encode:nM,toASCII:K0e,toUnicode:W0e},Q0e={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},J0e={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"]}}},X0e={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"]}}},eue={default:Q0e,zero:J0e,commonmark:X0e},tue=/^(vbscript|javascript|file|data):/,rue=/^data:image\/(gif|png|jpeg|webp);/;function nue(e){const r=e.trim().toLowerCase();return tue.test(r)?rue.test(r):!0}const oM=["http:","https:","mailto:"];function iue(e){const r=E7(e,!0);if(r.hostname&&(!r.protocol||oM.indexOf(r.protocol)>=0))try{r.hostname=iM.toASCII(r.hostname)}catch{}return _f(A7(r))}function oue(e){const r=E7(e,!0);if(r.hostname&&(!r.protocol||oM.indexOf(r.protocol)>=0))try{r.hostname=iM.toUnicode(r.hostname)}catch{}return Vh(A7(r),Vh.defaultChars+"%")}function ws(e,r){if(!(this instanceof ws))return new ws(e,r);r||S7(e)||(r=e||{},e="default"),this.inline=new T1,this.block=new h2,this.core=new HT,this.renderer=new Jd,this.linkify=new Es,this.validateLink=nue,this.normalizeLink=iue,this.normalizeLinkText=oue,this.utils=ule,this.helpers=J3({},ple),this.options={},this.configure(e),r&&this.set(r)}ws.prototype.set=function(e){return J3(this.options,e),this},ws.prototype.configure=function(e){const r=this;if(S7(e)){const n=e;if(e=eue[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&&r.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&r[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&r[n].ruler2.enableOnly(e.components[n].rules2)}),this},ws.prototype.enable=function(e,r){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(o){return n.indexOf(o)<0});if(i.length&&!r)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},ws.prototype.disable=function(e,r){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(o){return n.indexOf(o)<0});if(i.length&&!r)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},ws.prototype.use=function(e){const r=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,r),this},ws.prototype.parse=function(e,r){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,r);return this.core.process(n),n.tokens},ws.prototype.render=function(e,r){return r=r||{},this.renderer.render(this.parse(e,r),this.options,r)},ws.prototype.parseInline=function(e,r){const n=new this.core.State(e,this,r);return n.inlineMode=!0,this.core.process(n),n.tokens},ws.prototype.renderInline=function(e,r){return r=r||{},this.renderer.render(this.parseInline(e,r),this.options,r)};var W9,K9;function sue(){return K9||(K9=1,W9=function(e,r){var n=3,i="-",o=i.charCodeAt(0),s=i.length;function a(l,u,c,d){var h,p,f,m,v,w,x,k=!1,R=l.bMarks[u]+l.tShift[u],O=l.eMarks[u];if(u!==0||o!==l.src.charCodeAt(0))return!1;for(h=R+1;h<=O;h++)if(i[(h-R)%s]!==l.src[h]){x=h+1;break}if(f=Math.floor((h-R)/s),f<n)return!1;if(h-=(h-R)%s,d)return!0;for(p=u;p++,!(p>=c||l.src.slice(R,O)==="..."||(R=l.bMarks[p]+l.tShift[p],O=l.eMarks[p],R<O&&l.sCount[p]<l.blkIndent));)if(o===l.src.charCodeAt(R)&&!(l.sCount[p]-l.blkIndent>=4)){for(h=R+1;h<=O&&i[(h-R)%s]===l.src[h];h++);if(!(Math.floor((h-R)/s)<f)&&(h-=(h-R)%s,h=l.skipSpaces(h),!(h<O))){k=!0;break}}return v=l.parentType,w=l.lineMax,l.parentType="container",l.lineMax=p,m=l.push("front_matter",null,0),m.hidden=!0,m.markup=l.src.slice(u,h),m.block=!0,m.map=[u,p+(k?1:0)],m.meta=l.src.slice(x,R-1),l.parentType=v,l.lineMax=w,l.line=p+(k?1:0),r(m.meta),!0}e.block.ruler.before("table","front_matter",a,{alt:["paragraph","reference","blockquote","list"]})}),W9}var aue=sue();const lue=D0(aue),Q9=new Set([!0,!1,"alt","title"]);function sM(e,r){return(Array.isArray(e)?e:[]).filter(([n])=>n!==r)}function aM(e,r){e&&e.attrs&&(e.attrs=sM(e.attrs,r))}function uue(e,r){if(!Q9.has(e))throw new TypeError(`figcaption must be one of: ${[...Q9]}.`);if(e==="alt")return r.content;const n=r.attrs.find(([i])=>i==="title");return Array.isArray(n)&&n[1]?(aM(r,"title"),n[1]):void 0}function cue(e,r){r=r||{},e.core.ruler.before("linkify","image_figures",function(n){let i=1;for(let o=1,s=n.tokens.length;o<s-1;++o){const a=n.tokens[o];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[c,d,h]=a.children;if(c.type!=="link_open"||d.type!=="image"||h.type!=="link_close")continue}if(o!==0&&n.tokens[o-1].type!=="paragraph_open"||o!==s-1&&n.tokens[o+1].type!=="paragraph_close")continue;const l=n.tokens[o-1];let u;if(l.type="figure_open",l.tag="figure",n.tokens[o+1].type="figure_close",n.tokens[o+1].tag="figure",r.dataType&&n.tokens[o-1].attrPush(["data-type","image"]),r.link&&a.children.length===1){[u]=a.children;const c=new n.Token("link_open","a",1);c.attrPush(["href",u.attrGet("src")]),a.children.unshift(c),a.children.push(new n.Token("link_close","a",-1))}if(u=a.children.length===1?a.children[0]:a.children[1],r.figcaption){const c=uue(r.figcaption,u);if(c){const[d]=e.parseInline(c,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...d.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),u.attrs&&(u.attrs=sM(u.attrs,"title"))}}if(r.copyAttrs&&u.attrs){const c=r.copyAttrs===!0?"":r.copyAttrs;l.attrs=u.attrs.filter(([d])=>d.match(c)).map(d=>Array.from(d))}if(r.tabindex&&(n.tokens[o-1].attrPush(["tabindex",i]),i++),r.lazy&&(u.attrs.some(([c])=>c==="loading")||u.attrs.push(["loading","lazy"])),r.async&&(u.attrs.some(([c])=>c==="decoding")||u.attrs.push(["decoding","async"])),r.classes&&typeof r.classes=="string"){let c=!1;for(let d=0,h=u.attrs.length;d<h&&!c;d++){const p=u.attrs[d];p[0]==="class"&&(p[1]=`${p[1]} ${r.classes}`,c=!0)}c||u.attrs.push(["class",r.classes])}if(r.removeSrc){const c=u.attrs.find(([d])=>d==="src");u.attrs.push(["data-src",c[1]]),aM(u,"src")}}})}var S6,J9;function due(){if(J9)return S6;J9=1;function e(){this.__highest_alphabet__=0,this.__match_alphabets__={},this.__initial_state__=0,this.__accept_states__={},this.__transitions__={},this.__actions__={}}return e.prototype.set_highest_alphabet=function(r){this.__highest_alphabet__=r},e.prototype.set_match_alphabets=function(r){this.__match_alphabets__=r},e.prototype.set_initial_state=function(r){this.__initial_state__=r},e.prototype.set_accept_states=function(r){for(var n=0;n<r.length;n++)this.__accept_states__[r[n]]=!0},e.prototype.set_transitions=function(r){this.__transitions__=r},e.prototype.set_actions=function(r){this.__actions__=r},e.prototype.update_transition=function(r,n){this.__transitions__[r]=Object.assign(this.__transitions__[r]||Object(),n)},e.prototype.execute=function(r,n){var i,o,s;for(i=this.__initial_state__,o=r;i&&o<n;o++){for(s=this.__highest_alphabet__;s>0&&!(i&s&&this.__match_alphabets__[s].call(this,o,i,s));s>>=4);if(this.__actions__(o,i,s),s===0)break;i=this.__transitions__[i][s]||0}return!!this.__accept_states__[i]},S6=e,S6}var D6,X9;function hue(){if(X9)return D6;X9=1;var e=due();return D6=function(r,n){var i={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};n=r.utils.assign({},i,n||{});function o(d,h){var p=d.bMarks[h]+d.sCount[h],f=d.bMarks[h]+d.blkIndent,m=d.skipSpacesBack(d.eMarks[h],f),v=[],w,x,k=!1,R=!1,O=0;for(w=p;w<m;w++)switch(d.src.charCodeAt(w)){case 92:k=!0;break;case 96:x=d.skipChars(w,96)-1,x>w?(R||(O===0?O=x-w:O===x-w&&(O=0)),w=x):(R||!k&&!O)&&(R=!R),k=!1;break;case 124:!R&&!k&&v.push(w),k=!1;break;default:k=!1;break}return v.length===0||(v[0]>f&&v.unshift(f-1),v[v.length-1]<m-1&&v.push(m)),v}function s(d,h,p){var f={text:null,label:null},m=d.bMarks[p]+d.sCount[p],v=d.eMarks[p],w=/^\[(.+?)\](\[([^\[\]]+)\])?\s*$/,x=d.src.slice(m,v).match(w);return x?h?!0:(f.text=x[1],!n.autolabel&&!x[2]||(f.label=x[2]||x[1],f.label=f.label.toLowerCase().replace(/\W+/g,"")),f):!1}function a(d,h,p){var f={bounds:null,multiline:null},m=o(d,p),v,w,x;return m.length<2?!1:h?!0:(f.bounds=m,n.multiline&&(v=d.bMarks[p]+d.sCount[p],w=d.eMarks[p]-1,f.multiline=d.src.charCodeAt(w)===92,f.multiline&&(x=d.eMarks[p],d.eMarks[p]=d.skipSpacesBack(w,v),f.bounds=o(d,p),d.eMarks[p]=x)),f)}function l(d,h,p){var f={aligns:[],wraps:[]},m=o(d,p),v=/^:?(-+|=+):?\+?$/,w,x,k;if(d.sCount[p]-d.blkIndent>=4||m.length===0)return!1;for(w=0;w<m.length-1;w++){if(x=d.src.slice(m[w]+1,m[w+1]).trim(),!v.test(x))return!1;switch(f.wraps.push(x.charCodeAt(x.length-1)===43),k=(x.charCodeAt(0)===58)<<4|x.charCodeAt(x.length-1-f.wraps[w])===58,k){case 0:f.aligns.push("");break;case 1:f.aligns.push("right");break;case 16:f.aligns.push("left");break;case 17:f.aligns.push("center");break}}return h?!0:f}function u(d,h,p){return d.isEmpty(p)}function c(d,h,p,f){var m=new e,v=16,w=-1,x,k,R,O,P,V,W=[],ie,ue,I,ne,he,re,Ee,ge,Oe,Me;if(h+2>p||(k=new d.Token("table_open","table",1),k.meta={sep:null,cap:null,tr:[]},m.set_highest_alphabet(65536),m.set_initial_state(65792),m.set_accept_states([65552,65553,0]),m.set_match_alphabets({65536:s.bind(this,d,!0),4096:l.bind(this,d,!0),256:a.bind(this,d,!0),16:a.bind(this,d,!0),1:u.bind(this,d,!0)}),m.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),n.headerless&&(m.set_initial_state(69888),m.update_transition(69888,{65536:4352,4096:65552,256:4352}),R=new d.Token("tr_placeholder","tr",0),R.meta=Object()),n.multibody||m.update_transition(65552,{65536:0,16:65552}),m.set_actions(function(ct,Ct,Ye){switch(Ye){case 65536:if(k.meta.cap)break;k.meta.cap=s(d,!1,ct),k.meta.cap.map=[ct,ct+1],k.meta.cap.first=ct===h;break;case 4096:k.meta.sep=l(d,!1,ct),k.meta.sep.map=[ct,ct+1],R.meta.grp|=1,v=16;break;case 256:case 16:R=new d.Token("tr_open","tr",1),R.map=[ct,ct+1],R.meta=a(d,!1,ct),R.meta.type=Ye,R.meta.grp=v,v=0,k.meta.tr.push(R),n.multiline&&(R.meta.multiline&&w<0?w=k.meta.tr.length-1:!R.meta.multiline&&w>=0&&(x=k.meta.tr[w],x.meta.mbounds=k.meta.tr.slice(w).map(function(Kt){return Kt.meta.bounds}),x.map[1]=R.map[1],k.meta.tr=k.meta.tr.slice(0,w+1),w=-1));break;case 1:R.meta.grp|=1,v=16;break}}),m.execute(h,p)===!1)||!k.meta.tr.length)return!1;if(f)return!0;if(k.meta.tr[k.meta.tr.length-1].meta.grp|=1,k.map=ie=[h,0],k.block=!0,k.level=d.level++,d.tokens.push(k),k.meta.cap){x=d.push("caption_open","caption",1),x.map=k.meta.cap.map;var Ve=[],it=k.meta.cap.first?"top":"bottom";k.meta.cap.label!==null&&Ve.push(["id",k.meta.cap.label]),it!=="top"&&Ve.push(["style","caption-side: "+it]),x.attrs=Ve,x=d.push("inline","",0),x.content=k.meta.cap.text,x.map=k.meta.cap.map,x.children=[],x=d.push("caption_close","caption",-1)}for(re=0;re<k.meta.tr.length;re++){for(P=new d.Token("td_th_placeholder","",0),R=k.meta.tr[re],R.meta.grp&16&&(I=R.meta.type===256?"thead":"tbody",x=d.push(I+"_open",I,1),x.map=ue=[R.map[0],0],W=[]),R.block=!0,R.level=d.level++,d.tokens.push(R),Ee=0;Ee<R.meta.bounds.length-1;Ee++){if(he=[R.meta.bounds[Ee]+1,R.meta.bounds[Ee+1]],ne=d.src.slice.apply(d.src,he),ne===""){O=P.attrGet("colspan"),P.attrSet("colspan",O===null?2:O+1);continue}if(n.rowspan&&W[Ee]&&ne.trim()==="^^"){V=W[Ee].attrGet("rowspan"),W[Ee].attrSet("rowspan",V===null?2:V+1),P=new d.Token("td_th_placeholder","",0);continue}if(I=R.meta.type===256?"th":"td",x=d.push(I+"_open",I,1),x.map=R.map,x.attrs=[],k.meta.sep.aligns[Ee]&&x.attrs.push(["style","text-align:"+k.meta.sep.aligns[Ee]]),k.meta.sep.wraps[Ee]&&x.attrs.push(["class","extend"]),P=W[Ee]=x,n.multiline&&R.meta.multiline&&R.meta.mbounds){for(ne=new Array(R.map[0]).fill("").concat([ne.trimRight()]),ge=1;ge<R.meta.mbounds.length;ge++)Ee>R.meta.mbounds[ge].length-2||(he=[R.meta.mbounds[ge][Ee]+1,R.meta.mbounds[ge][Ee+1]],ne.push(d.src.slice.apply(d.src,he).trimRight()));for(Me=new d.md.block.State(ne.join(` `),d.md,d.env,[]),Me.level=R.level+1,d.md.block.tokenize(Me,R.map[0],Me.lineMax),Oe=0;Oe<Me.tokens.length;Oe++)d.tokens.push(Me.tokens[Oe])}else x=d.push("inline","",0),x.content=ne.trim(),x.map=R.map,x.level=R.level+1,x.children=[];x=d.push(I+"_close",I,-1)}d.push("tr_close","tr",-1),R.meta.grp&1&&(I=R.meta.type===256?"thead":"tbody",x=d.push(I+"_close",I,-1),ue[1]=R.map[1])}return ie[1]=Math.max(ue[1],k.meta.sep.map[1],k.meta.cap?k.meta.cap.map[1]:-1),x=d.push("table_close","table",-1),d.line=ie[1],!0}r.block.ruler.at("table",c,{alt:["paragraph","reference"]})},D6}var pue=hue();const fue=D0(pue);function mue(e,r,n){function i(p){return p.trim().split(" ",2)[0]===r}function o(p,f,m,v,w){return p[f].nesting===1&&p[f].attrJoin("class",r),w.renderToken(p,f,m,v,w)}n=n||{};const s=3,a=n.marker||":",l=a.charCodeAt(0),u=a.length,c=n.validate||i,d=n.render||o;function h(p,f,m,v){let w,x=!1,k=p.bMarks[f]+p.tShift[f],R=p.eMarks[f];if(l!==p.src.charCodeAt(k))return!1;for(w=k+1;w<=R&&a[(w-k)%u]===p.src[w];w++);const O=Math.floor((w-k)/u);if(O<s)return!1;w-=(w-k)%u;const P=p.src.slice(k,w),V=p.src.slice(w,R);if(!c(V,P))return!1;if(v)return!0;let W=f;for(;W++,!(W>=m||(k=p.bMarks[W]+p.tShift[W],R=p.eMarks[W],k<R&&p.sCount[W]<p.blkIndent));)if(l===p.src.charCodeAt(k)&&!(p.sCount[W]-p.blkIndent>=4)){for(w=k+1;w<=R&&a[(w-k)%u]===p.src[w];w++);if(!(Math.floor((w-k)/u)<O)&&(w-=(w-k)%u,w=p.skipSpaces(w),!(w<R))){x=!0;break}}const ie=p.parentType,ue=p.lineMax;p.parentType="container",p.lineMax=W;const I=p.push("container_"+r+"_open","div",1);I.markup=P,I.block=!0,I.info=V,I.map=[f,W],p.md.block.tokenize(p,f+1,W);const ne=p.push("container_"+r+"_close","div",-1);return ne.markup=p.src.slice(k,w),ne.block=!0,p.parentType=ie,p.lineMax=ue,p.line=W+(x?1:0),!0}e.block.ruler.before("fence","container_"+r,h,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules["container_"+r+"_open"]=d,e.renderer.rules["container_"+r+"_close"]=d}const ZT=["info","warn","error","success"],gue=e=>(r,n,i,o,s)=>{const a=r[n];return a.nesting===1&&(a.attrSet("data-callout",e),a.attrJoin("class",`callout callout-${e}`)),s.renderToken(r,n,i,o,s)},yue=e=>(ZT.forEach(r=>{e.use(mue,r,{render:gue(r)})}),e),ew=/^<details>\s*$/,Tue=/(?<=^<details>\s*<summary>).*(?=<\/summary>\s*$)/,bue=/^<\/details>\s*$/,vue=/(?<=^<summary>).*(?=<\/summary>\s*$)/;function Aue(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r],a=!1,l=null,u=2;const c=e.src.slice(o,s).match(Tue);if(c)l=c[0].trim(),u=1;else if(!e.src.slice(o,s).match(ew))return!1;if(i)return!0;let d=0,h=r;for(;h++,!(h>=n);){o=e.bMarks[h]+e.tShift[h],s=e.eMarks[h];const w=e.src.slice(o,s).match(vue);if(w&&l===null){l=w[0].trim();continue}if(e.src.slice(o,s).match(ew)&&d++,!!e.src.slice(o,s).match(bue))if(d>0)d--;else{a=!0;break}}if(!a||l===null)return!1;const p=e.parentType,f=e.lineMax;e.parentType="reference",e.lineMax=h;let m=e.push("details_open","details",1);m.block=!0,m.info=l,m.map=[r,h],m=e.push("details_summary","summary",1),m.block=!1;const v=[];e.md.inline.parse(l,e.md,e.env,v);for(const w of v)m=e.push(w.type,w.tag,w.nesting),m.block=w.block,m.markup=w.markup,m.content=w.content;return m=e.push("details_summary","summary",-1),e.md.block.tokenize(e,r+u,h),m=e.push("details_close","details",-1),m.block=!0,e.parentType=p,e.lineMax=f,e.line=h+1,!0}function Eue(e){e.block.ruler.before("fence","details",Aue,{alt:["paragraph","reference","blockquote","list"]})}function wue(e){e.inline.ruler.at("newline",(r,n)=>{const i=VO(r,n);return i&&r.tokens.length&&r.tokens[r.tokens.length-1].type==="hardbreak"&&r.tokens[r.tokens.length-1].attrSet("syntax"," "),i}),e.inline.ruler.at("escape",(r,n)=>{const i=jO(r,n);return i&&r.tokens.length&&r.tokens[r.tokens.length-1].type==="hardbreak"&&r.tokens[r.tokens.length-1].attrSet("syntax","\\"),i}),e.inline.ruler.after("html_inline","html_breaks",r=>{const n=r.src.slice(r.pos).match(/^\s*<br\s*\/?>/);return n?(r.push("hardbreak","br",0).attrPush(["syntax","html"]),r.pos+=n[0].length,!0):!1}),e.renderer.rules.hardbreak=(r,n,i)=>`<br data-syntax="${r[n].attrGet("syntax")}" ${i.xhtmlOut?"/":""}>`}function Sue(e){const r=/(\n(?<linestart>[#\-*+>])|(?<special>[`*\\~[\]]+))/;e.core.ruler.before("text_join","tag-markdown-syntax",n=>{const i=new n.Token("keep_md_open","span",1);i.attrSet("class","keep-md");const o=new n.Token("keep_md_close","span",-1);for(let s=0;s<n.tokens.length;s++){const a=n.tokens[s];if(a.type==="inline")for(let l=0;l<a.children.length;l++){const u=a.children[l];if(u.type==="text"){const c=r.exec(u.content);if(c){const d=c.groups.linestart?c.index+1:c.index,h=c.groups.linestart??c.groups.special,p=d+h.length;a.children.splice(l,1,Object.assign({},u,{content:u.content.slice(0,d)}),Object.assign({},i),Object.assign({},u,{content:u.content.slice(d,p)}),Object.assign({},o),Object.assign({},u,{content:u.content.slice(p)})),l+=3}}}}return!1})}var $T={exports:{}},Due=$T.exports,tw;function xue(){return tw||(tw=1,(function(e,r){(function(n,i){e.exports=i()})(typeof self<"u"?self:Due,function(){return(function(n){var i={};function o(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return n[s].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=i,o.d=function(s,a,l){o.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:l})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,a){if(a&1&&(s=o(s)),a&8||a&4&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),a&2&&typeof s!="string")for(var u in s)o.d(l,u,function(c){return s[c]}.bind(null,u));return l},o.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(a,"a",a),a},o.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},o.p="",o(o.s=1)})([(function(n,i,o){}),(function(n,i,o){o.r(i),o(0);var s=(function(){function g(T,b,A){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=T,this.start=b,this.end=A}return g.range=function(T,b){return b?!T||!T.loc||!b.loc||T.loc.lexer!==b.loc.lexer?null:new g(T.loc.lexer,T.loc.start,b.loc.end):T&&T.loc},g})(),a=(function(){function g(b,A){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=b,this.loc=A}var T=g.prototype;return T.range=function(b,A){return new g(A,s.range(this,b))},g})(),l=function g(T,b){this.position=void 0;var A="KaTeX parse error: "+T,C,L=b&&b.loc;if(L&&L.start<=L.end){var H=L.lexer.input;C=L.start;var K=L.end;C===H.length?A+=" at end of input: ":A+=" at position "+(C+1)+": ";var X=H.slice(C,K).replace(/[^]/g,"$&̲"),Te;C>15?Te="…"+H.slice(C-15,C):Te=H.slice(0,C);var ve;K+15<H.length?ve=H.slice(K,K+15)+"…":ve=H.slice(K),A+=Te+X+ve}var Ne=new Error(A);return Ne.name="ParseError",Ne.__proto__=g.prototype,Ne.position=C,Ne};l.prototype.__proto__=Error.prototype;var u=l,c=function(g,T){return g.indexOf(T)!==-1},d=function(g,T){return g===void 0?T:g},h=/([A-Z])/g,p=function(g){return g.replace(h,"-$1").toLowerCase()},f={"&":"&",">":">","<":"<",'"':""","'":"'"},m=/[&><"']/g;function v(g){return String(g).replace(m,function(T){return f[T]})}var w=function g(T){return T.type==="ordgroup"||T.type==="color"?T.body.length===1?g(T.body[0]):T:T.type==="font"?g(T.body):T},x=function(g){var T=w(g);return T.type==="mathord"||T.type==="textord"||T.type==="atom"},k=function(g){if(!g)throw new Error("Expected non-null, but got "+String(g));return g},R=function(g){var T=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(g);return T!=null?T[1]:"_relative"},O={contains:c,deflt:d,escape:v,hyphenate:p,getBaseElem:w,isCharacterBox:x,protocolFromUrl:R},P=(function(){function g(b){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,b=b||{},this.displayMode=O.deflt(b.displayMode,!1),this.output=O.deflt(b.output,"htmlAndMathml"),this.leqno=O.deflt(b.leqno,!1),this.fleqn=O.deflt(b.fleqn,!1),this.throwOnError=O.deflt(b.throwOnError,!0),this.errorColor=O.deflt(b.errorColor,"#cc0000"),this.macros=b.macros||{},this.minRuleThickness=Math.max(0,O.deflt(b.minRuleThickness,0)),this.colorIsTextColor=O.deflt(b.colorIsTextColor,!1),this.strict=O.deflt(b.strict,"warn"),this.trust=O.deflt(b.trust,!1),this.maxSize=Math.max(0,O.deflt(b.maxSize,1/0)),this.maxExpand=Math.max(0,O.deflt(b.maxExpand,1e3)),this.globalGroup=O.deflt(b.globalGroup,!1)}var T=g.prototype;return T.reportNonstrict=function(b,A,C){var L=this.strict;if(typeof L=="function"&&(L=L(b,A,C)),!(!L||L==="ignore")){if(L===!0||L==="error")throw new u("LaTeX-incompatible input and strict mode is set to 'error': "+(A+" ["+b+"]"),C);L==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(A+" ["+b+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+L+"': "+A+" ["+b+"]"))}},T.useStrictBehavior=function(b,A,C){var L=this.strict;if(typeof L=="function")try{L=L(b,A,C)}catch{L="error"}return!L||L==="ignore"?!1:L===!0||L==="error"?!0:L==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(A+" ["+b+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+L+"': "+A+" ["+b+"]")),!1)},T.isTrusted=function(b){b.url&&!b.protocol&&(b.protocol=O.protocolFromUrl(b.url));var A=typeof this.trust=="function"?this.trust(b):this.trust;return!!A},g})(),V=(function(){function g(b,A,C){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=b,this.size=A,this.cramped=C}var T=g.prototype;return T.sup=function(){return ge[Oe[this.id]]},T.sub=function(){return ge[Me[this.id]]},T.fracNum=function(){return ge[Ve[this.id]]},T.fracDen=function(){return ge[it[this.id]]},T.cramp=function(){return ge[ct[this.id]]},T.text=function(){return ge[Ct[this.id]]},T.isTight=function(){return this.size>=2},g})(),W=0,ie=1,ue=2,I=3,ne=4,he=5,re=6,Ee=7,ge=[new V(W,0,!1),new V(ie,0,!0),new V(ue,1,!1),new V(I,1,!0),new V(ne,2,!1),new V(he,2,!0),new V(re,3,!1),new V(Ee,3,!0)],Oe=[ne,he,ne,he,re,Ee,re,Ee],Me=[he,he,he,he,Ee,Ee,Ee,Ee],Ve=[ue,I,ne,he,re,Ee,re,Ee],it=[I,I,he,he,Ee,Ee,Ee,Ee],ct=[ie,ie,I,I,he,he,Ee,Ee],Ct=[W,ie,ue,I,ue,I,ue,I],Ye={DISPLAY:ge[W],TEXT:ge[ue],SCRIPT:ge[ne],SCRIPTSCRIPT:ge[re]},Kt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Vt(g){for(var T=0;T<Kt.length;T++)for(var b=Kt[T],A=0;A<b.blocks.length;A++){var C=b.blocks[A];if(g>=C[0]&&g<=C[1])return b.name}return null}var Ot=[];Kt.forEach(function(g){return g.blocks.forEach(function(T){return Ot.push.apply(Ot,T)})});function jt(g){for(var T=0;T<Ot.length;T+=2)if(g>=Ot[T]&&g<=Ot[T+1])return!0;return!1}var _t=80,Fr=function(g,T){return"M95,"+(622+g+T)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+g/2.075+" -"+g+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+g)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+g)+" "+T+"h400000v"+(40+g)+"h-400000z"},jr=function(g,T){return"M263,"+(601+g+T)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+g/2.084+" -"+g+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+g)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+g)+" "+T+"h400000v"+(40+g)+"h-400000z"},pt=function(g,T){return"M983 "+(10+g+T)+` l`+g/3.13+" -"+g+` c4,-6.7,10,-10,18,-10 H400000v`+(40+g)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+g)+" "+T+"h400000v"+(40+g)+"h-400000z"},nr=function(g,T){return"M424,"+(2398+g+T)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+g/4.223+" -"+g+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+g)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+g)+" "+T+` h400000v`+(40+g)+"h-400000z"},Yt=function(g,T){return"M473,"+(2713+g+T)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+g/5.298+" -"+g+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+g)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+g)+" "+T+"h400000v"+(40+g)+"H1017.7z"},vr=function(g,T,b){var A=b-54-T-g;return"M702 "+(g+T)+"H400000"+(40+g)+` H742v`+A+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+T+"H400000v"+(40+g)+"H742z"},Gr=function(g,T,b){T=1e3*T;var A="";switch(g){case"sqrtMain":A=Fr(T,_t);break;case"sqrtSize1":A=jr(T,_t);break;case"sqrtSize2":A=pt(T,_t);break;case"sqrtSize3":A=nr(T,_t);break;case"sqrtSize4":A=Yt(T,_t);break;case"sqrtTall":A=vr(T,_t,b)}return A},An={leftParenInner:"M291 0 H417 V300 H291 z",rightParenInner:"M457 0 H583 V300 H457 z",doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ft=(function(){function g(b){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=b,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var T=g.prototype;return T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){for(var b=document.createDocumentFragment(),A=0;A<this.children.length;A++)b.appendChild(this.children[A].toNode());return b},T.toMarkup=function(){for(var b="",A=0;A<this.children.length;A++)b+=this.children[A].toMarkup();return b},T.toText=function(){var b=function(A){return A.toText()};return this.children.map(b).join("")},g})(),ee=function(g){return g.filter(function(T){return T}).join(" ")},ye=function(g,T,b){if(this.classes=g||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=b||{},T){T.style.isTight()&&this.classes.push("mtight");var A=T.getColor();A&&(this.style.color=A)}},se=function(g){var T=document.createElement(g);T.className=ee(this.classes);for(var b in this.style)this.style.hasOwnProperty(b)&&(T.style[b]=this.style[b]);for(var A in this.attributes)this.attributes.hasOwnProperty(A)&&T.setAttribute(A,this.attributes[A]);for(var C=0;C<this.children.length;C++)T.appendChild(this.children[C].toNode());return T},Pe=function(g){var T="<"+g;this.classes.length&&(T+=' class="'+O.escape(ee(this.classes))+'"');var b="";for(var A in this.style)this.style.hasOwnProperty(A)&&(b+=O.hyphenate(A)+":"+this.style[A]+";");b&&(T+=' style="'+O.escape(b)+'"');for(var C in this.attributes)this.attributes.hasOwnProperty(C)&&(T+=" "+C+'="'+O.escape(this.attributes[C])+'"');T+=">";for(var L=0;L<this.children.length;L++)T+=this.children[L].toMarkup();return T+="</"+g+">",T},dt=(function(){function g(b,A,C,L){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ye.call(this,b,C,L),this.children=A||[]}var T=g.prototype;return T.setAttribute=function(b,A){this.attributes[b]=A},T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){return se.call(this,"span")},T.toMarkup=function(){return Pe.call(this,"span")},g})(),ut=(function(){function g(b,A,C,L){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ye.call(this,A,L),this.children=C||[],this.setAttribute("href",b)}var T=g.prototype;return T.setAttribute=function(b,A){this.attributes[b]=A},T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){return se.call(this,"a")},T.toMarkup=function(){return Pe.call(this,"a")},g})(),Be=(function(){function g(b,A,C){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=A,this.src=b,this.classes=["mord"],this.style=C}var T=g.prototype;return T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){var b=document.createElement("img");b.src=this.src,b.alt=this.alt,b.className="mord";for(var A in this.style)this.style.hasOwnProperty(A)&&(b.style[A]=this.style[A]);return b},T.toMarkup=function(){var b="<img src='"+this.src+" 'alt='"+this.alt+"' ",A="";for(var C in this.style)this.style.hasOwnProperty(C)&&(A+=O.hyphenate(C)+":"+this.style[C]+";");return A&&(b+=' style="'+O.escape(A)+'"'),b+="'/>",b},g})(),Le={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"},de=(function(){function g(b,A,C,L,H,K,X,Te){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=b,this.height=A||0,this.depth=C||0,this.italic=L||0,this.skew=H||0,this.width=K||0,this.classes=X||[],this.style=Te||{},this.maxFontSize=0;var ve=Vt(this.text.charCodeAt(0));ve&&this.classes.push(ve+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Le[this.text])}var T=g.prototype;return T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){var b=document.createTextNode(this.text),A=null;this.italic>0&&(A=document.createElement("span"),A.style.marginRight=this.italic+"em"),this.classes.length>0&&(A=A||document.createElement("span"),A.className=ee(this.classes));for(var C in this.style)this.style.hasOwnProperty(C)&&(A=A||document.createElement("span"),A.style[C]=this.style[C]);return A?(A.appendChild(b),A):b},T.toMarkup=function(){var b=!1,A="<span";this.classes.length&&(b=!0,A+=' class="',A+=O.escape(ee(this.classes)),A+='"');var C="";this.italic>0&&(C+="margin-right:"+this.italic+"em;");for(var L in this.style)this.style.hasOwnProperty(L)&&(C+=O.hyphenate(L)+":"+this.style[L]+";");C&&(b=!0,A+=' style="'+O.escape(C)+'"');var H=O.escape(this.text);return b?(A+=">",A+=H,A+="</span>",A):H},g})(),We=(function(){function g(b,A){this.children=void 0,this.attributes=void 0,this.children=b||[],this.attributes=A||{}}var T=g.prototype;return T.toNode=function(){var b="http://www.w3.org/2000/svg",A=document.createElementNS(b,"svg");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&A.setAttribute(C,this.attributes[C]);for(var L=0;L<this.children.length;L++)A.appendChild(this.children[L].toNode());return A},T.toMarkup=function(){var b="<svg";for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&(b+=" "+A+"='"+this.attributes[A]+"'");b+=">";for(var C=0;C<this.children.length;C++)b+=this.children[C].toMarkup();return b+="</svg>",b},g})(),Sr=(function(){function g(b,A){this.pathName=void 0,this.alternate=void 0,this.pathName=b,this.alternate=A}var T=g.prototype;return T.toNode=function(){var b="http://www.w3.org/2000/svg",A=document.createElementNS(b,"path");return this.alternate?A.setAttribute("d",this.alternate):A.setAttribute("d",An[this.pathName]),A},T.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+An[this.pathName]+"'/>"},g})(),kr=(function(){function g(b){this.attributes=void 0,this.attributes=b||{}}var T=g.prototype;return T.toNode=function(){var b="http://www.w3.org/2000/svg",A=document.createElementNS(b,"line");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&A.setAttribute(C,this.attributes[C]);return A},T.toMarkup=function(){var b="<line";for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&(b+=" "+A+"='"+this.attributes[A]+"'");return b+="/>",b},g})();function Wi(g){if(g instanceof de)return g;throw new Error("Expected symbolNode but got "+String(g)+".")}function da(g){if(g instanceof dt)return g;throw new Error("Expected span<HtmlDomNode> but got "+String(g)+".")}var wi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ls={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Wn={Å:"A",Ç:"C",Ð:"D",Þ:"o",å:"a",ç:"c",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Re(g,T){wi[g]=T}function vt(g,T,b){if(!wi[T])throw new Error("Font metrics not found for font: "+T+".");var A=g.charCodeAt(0),C=wi[T][A];if(!C&&g[0]in Wn&&(A=Wn[g[0]].charCodeAt(0),C=wi[T][A]),!C&&b==="text"&&jt(A)&&(C=wi[T][77]),C)return{depth:C[0],height:C[1],italic:C[2],skew:C[3],width:C[4]}}var Mt={};function mr(g){var T;if(g>=5?T=0:g>=3?T=1:T=2,!Mt[T]){var b=Mt[T]={cssEmPerMu:ls.quad[T]/18};for(var A in ls)ls.hasOwnProperty(A)&&(b[A]=ls[A][T])}return Mt[T]}var ur={bin:1,close:1,inner:1,open:1,punct:1,rel:1},On={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Mn={math:{},text:{}},Dr=Mn;function _(g,T,b,A,C,L){Mn[g][C]={font:T,group:b,replace:A},L&&A&&(Mn[g][A]=Mn[g][C])}var D="math",pe="text",z="main",J="ams",Zt="accent-token",je="bin",ft="close",bt="inner",Ge="mathord",sr="op-token",yr="open",Mr="punct",ae="rel",Rr="spacing",be="textord";_(D,z,ae,"≡","\\equiv",!0),_(D,z,ae,"≺","\\prec",!0),_(D,z,ae,"≻","\\succ",!0),_(D,z,ae,"∼","\\sim",!0),_(D,z,ae,"⊥","\\perp"),_(D,z,ae,"⪯","\\preceq",!0),_(D,z,ae,"⪰","\\succeq",!0),_(D,z,ae,"≃","\\simeq",!0),_(D,z,ae,"∣","\\mid",!0),_(D,z,ae,"≪","\\ll",!0),_(D,z,ae,"≫","\\gg",!0),_(D,z,ae,"≍","\\asymp",!0),_(D,z,ae,"∥","\\parallel"),_(D,z,ae,"⋈","\\bowtie",!0),_(D,z,ae,"⌣","\\smile",!0),_(D,z,ae,"⊑","\\sqsubseteq",!0),_(D,z,ae,"⊒","\\sqsupseteq",!0),_(D,z,ae,"≐","\\doteq",!0),_(D,z,ae,"⌢","\\frown",!0),_(D,z,ae,"∋","\\ni",!0),_(D,z,ae,"∝","\\propto",!0),_(D,z,ae,"⊢","\\vdash",!0),_(D,z,ae,"⊣","\\dashv",!0),_(D,z,ae,"∋","\\owns"),_(D,z,Mr,".","\\ldotp"),_(D,z,Mr,"⋅","\\cdotp"),_(D,z,be,"#","\\#"),_(pe,z,be,"#","\\#"),_(D,z,be,"&","\\&"),_(pe,z,be,"&","\\&"),_(D,z,be,"ℵ","\\aleph",!0),_(D,z,be,"∀","\\forall",!0),_(D,z,be,"ℏ","\\hbar",!0),_(D,z,be,"∃","\\exists",!0),_(D,z,be,"∇","\\nabla",!0),_(D,z,be,"♭","\\flat",!0),_(D,z,be,"ℓ","\\ell",!0),_(D,z,be,"♮","\\natural",!0),_(D,z,be,"♣","\\clubsuit",!0),_(D,z,be,"℘","\\wp",!0),_(D,z,be,"♯","\\sharp",!0),_(D,z,be,"♢","\\diamondsuit",!0),_(D,z,be,"ℜ","\\Re",!0),_(D,z,be,"♡","\\heartsuit",!0),_(D,z,be,"ℑ","\\Im",!0),_(D,z,be,"♠","\\spadesuit",!0),_(pe,z,be,"§","\\S",!0),_(pe,z,be,"¶","\\P",!0),_(D,z,be,"†","\\dag"),_(pe,z,be,"†","\\dag"),_(pe,z,be,"†","\\textdagger"),_(D,z,be,"‡","\\ddag"),_(pe,z,be,"‡","\\ddag"),_(pe,z,be,"‡","\\textdaggerdbl"),_(D,z,ft,"⎱","\\rmoustache",!0),_(D,z,yr,"⎰","\\lmoustache",!0),_(D,z,ft,"⟯","\\rgroup",!0),_(D,z,yr,"⟮","\\lgroup",!0),_(D,z,je,"∓","\\mp",!0),_(D,z,je,"⊖","\\ominus",!0),_(D,z,je,"⊎","\\uplus",!0),_(D,z,je,"⊓","\\sqcap",!0),_(D,z,je,"∗","\\ast"),_(D,z,je,"⊔","\\sqcup",!0),_(D,z,je,"◯","\\bigcirc"),_(D,z,je,"∙","\\bullet"),_(D,z,je,"‡","\\ddagger"),_(D,z,je,"≀","\\wr",!0),_(D,z,je,"⨿","\\amalg"),_(D,z,je,"&","\\And"),_(D,z,ae,"⟵","\\longleftarrow",!0),_(D,z,ae,"⇐","\\Leftarrow",!0),_(D,z,ae,"⟸","\\Longleftarrow",!0),_(D,z,ae,"⟶","\\longrightarrow",!0),_(D,z,ae,"⇒","\\Rightarrow",!0),_(D,z,ae,"⟹","\\Longrightarrow",!0),_(D,z,ae,"↔","\\leftrightarrow",!0),_(D,z,ae,"⟷","\\longleftrightarrow",!0),_(D,z,ae,"⇔","\\Leftrightarrow",!0),_(D,z,ae,"⟺","\\Longleftrightarrow",!0),_(D,z,ae,"↦","\\mapsto",!0),_(D,z,ae,"⟼","\\longmapsto",!0),_(D,z,ae,"↗","\\nearrow",!0),_(D,z,ae,"↩","\\hookleftarrow",!0),_(D,z,ae,"↪","\\hookrightarrow",!0),_(D,z,ae,"↘","\\searrow",!0),_(D,z,ae,"↼","\\leftharpoonup",!0),_(D,z,ae,"⇀","\\rightharpoonup",!0),_(D,z,ae,"↙","\\swarrow",!0),_(D,z,ae,"↽","\\leftharpoondown",!0),_(D,z,ae,"⇁","\\rightharpoondown",!0),_(D,z,ae,"↖","\\nwarrow",!0),_(D,z,ae,"⇌","\\rightleftharpoons",!0),_(D,J,ae,"≮","\\nless",!0),_(D,J,ae,"","\\@nleqslant"),_(D,J,ae,"","\\@nleqq"),_(D,J,ae,"⪇","\\lneq",!0),_(D,J,ae,"≨","\\lneqq",!0),_(D,J,ae,"","\\@lvertneqq"),_(D,J,ae,"⋦","\\lnsim",!0),_(D,J,ae,"⪉","\\lnapprox",!0),_(D,J,ae,"⊀","\\nprec",!0),_(D,J,ae,"⋠","\\npreceq",!0),_(D,J,ae,"⋨","\\precnsim",!0),_(D,J,ae,"⪹","\\precnapprox",!0),_(D,J,ae,"≁","\\nsim",!0),_(D,J,ae,"","\\@nshortmid"),_(D,J,ae,"∤","\\nmid",!0),_(D,J,ae,"⊬","\\nvdash",!0),_(D,J,ae,"⊭","\\nvDash",!0),_(D,J,ae,"⋪","\\ntriangleleft"),_(D,J,ae,"⋬","\\ntrianglelefteq",!0),_(D,J,ae,"⊊","\\subsetneq",!0),_(D,J,ae,"","\\@varsubsetneq"),_(D,J,ae,"⫋","\\subsetneqq",!0),_(D,J,ae,"","\\@varsubsetneqq"),_(D,J,ae,"≯","\\ngtr",!0),_(D,J,ae,"","\\@ngeqslant"),_(D,J,ae,"","\\@ngeqq"),_(D,J,ae,"⪈","\\gneq",!0),_(D,J,ae,"≩","\\gneqq",!0),_(D,J,ae,"","\\@gvertneqq"),_(D,J,ae,"⋧","\\gnsim",!0),_(D,J,ae,"⪊","\\gnapprox",!0),_(D,J,ae,"⊁","\\nsucc",!0),_(D,J,ae,"⋡","\\nsucceq",!0),_(D,J,ae,"⋩","\\succnsim",!0),_(D,J,ae,"⪺","\\succnapprox",!0),_(D,J,ae,"≆","\\ncong",!0),_(D,J,ae,"","\\@nshortparallel"),_(D,J,ae,"∦","\\nparallel",!0),_(D,J,ae,"⊯","\\nVDash",!0),_(D,J,ae,"⋫","\\ntriangleright"),_(D,J,ae,"⋭","\\ntrianglerighteq",!0),_(D,J,ae,"","\\@nsupseteqq"),_(D,J,ae,"⊋","\\supsetneq",!0),_(D,J,ae,"","\\@varsupsetneq"),_(D,J,ae,"⫌","\\supsetneqq",!0),_(D,J,ae,"","\\@varsupsetneqq"),_(D,J,ae,"⊮","\\nVdash",!0),_(D,J,ae,"⪵","\\precneqq",!0),_(D,J,ae,"⪶","\\succneqq",!0),_(D,J,ae,"","\\@nsubseteqq"),_(D,J,je,"⊴","\\unlhd"),_(D,J,je,"⊵","\\unrhd"),_(D,J,ae,"↚","\\nleftarrow",!0),_(D,J,ae,"↛","\\nrightarrow",!0),_(D,J,ae,"⇍","\\nLeftarrow",!0),_(D,J,ae,"⇏","\\nRightarrow",!0),_(D,J,ae,"↮","\\nleftrightarrow",!0),_(D,J,ae,"⇎","\\nLeftrightarrow",!0),_(D,J,ae,"△","\\vartriangle"),_(D,J,be,"ℏ","\\hslash"),_(D,J,be,"▽","\\triangledown"),_(D,J,be,"◊","\\lozenge"),_(D,J,be,"Ⓢ","\\circledS"),_(D,J,be,"®","\\circledR"),_(pe,J,be,"®","\\circledR"),_(D,J,be,"∡","\\measuredangle",!0),_(D,J,be,"∄","\\nexists"),_(D,J,be,"℧","\\mho"),_(D,J,be,"Ⅎ","\\Finv",!0),_(D,J,be,"⅁","\\Game",!0),_(D,J,be,"‵","\\backprime"),_(D,J,be,"▲","\\blacktriangle"),_(D,J,be,"▼","\\blacktriangledown"),_(D,J,be,"■","\\blacksquare"),_(D,J,be,"⧫","\\blacklozenge"),_(D,J,be,"★","\\bigstar"),_(D,J,be,"∢","\\sphericalangle",!0),_(D,J,be,"∁","\\complement",!0),_(D,J,be,"ð","\\eth",!0),_(pe,z,be,"ð","ð"),_(D,J,be,"╱","\\diagup"),_(D,J,be,"╲","\\diagdown"),_(D,J,be,"□","\\square"),_(D,J,be,"□","\\Box"),_(D,J,be,"◊","\\Diamond"),_(D,J,be,"¥","\\yen",!0),_(pe,J,be,"¥","\\yen",!0),_(D,J,be,"✓","\\checkmark",!0),_(pe,J,be,"✓","\\checkmark"),_(D,J,be,"ℶ","\\beth",!0),_(D,J,be,"ℸ","\\daleth",!0),_(D,J,be,"ℷ","\\gimel",!0),_(D,J,be,"ϝ","\\digamma",!0),_(D,J,be,"ϰ","\\varkappa"),_(D,J,yr,"┌","\\@ulcorner",!0),_(D,J,ft,"┐","\\@urcorner",!0),_(D,J,yr,"└","\\@llcorner",!0),_(D,J,ft,"┘","\\@lrcorner",!0),_(D,J,ae,"≦","\\leqq",!0),_(D,J,ae,"⩽","\\leqslant",!0),_(D,J,ae,"⪕","\\eqslantless",!0),_(D,J,ae,"≲","\\lesssim",!0),_(D,J,ae,"⪅","\\lessapprox",!0),_(D,J,ae,"≊","\\approxeq",!0),_(D,J,je,"⋖","\\lessdot"),_(D,J,ae,"⋘","\\lll",!0),_(D,J,ae,"≶","\\lessgtr",!0),_(D,J,ae,"⋚","\\lesseqgtr",!0),_(D,J,ae,"⪋","\\lesseqqgtr",!0),_(D,J,ae,"≑","\\doteqdot"),_(D,J,ae,"≓","\\risingdotseq",!0),_(D,J,ae,"≒","\\fallingdotseq",!0),_(D,J,ae,"∽","\\backsim",!0),_(D,J,ae,"⋍","\\backsimeq",!0),_(D,J,ae,"⫅","\\subseteqq",!0),_(D,J,ae,"⋐","\\Subset",!0),_(D,J,ae,"⊏","\\sqsubset",!0),_(D,J,ae,"≼","\\preccurlyeq",!0),_(D,J,ae,"⋞","\\curlyeqprec",!0),_(D,J,ae,"≾","\\precsim",!0),_(D,J,ae,"⪷","\\precapprox",!0),_(D,J,ae,"⊲","\\vartriangleleft"),_(D,J,ae,"⊴","\\trianglelefteq"),_(D,J,ae,"⊨","\\vDash",!0),_(D,J,ae,"⊪","\\Vvdash",!0),_(D,J,ae,"⌣","\\smallsmile"),_(D,J,ae,"⌢","\\smallfrown"),_(D,J,ae,"≏","\\bumpeq",!0),_(D,J,ae,"≎","\\Bumpeq",!0),_(D,J,ae,"≧","\\geqq",!0),_(D,J,ae,"⩾","\\geqslant",!0),_(D,J,ae,"⪖","\\eqslantgtr",!0),_(D,J,ae,"≳","\\gtrsim",!0),_(D,J,ae,"⪆","\\gtrapprox",!0),_(D,J,je,"⋗","\\gtrdot"),_(D,J,ae,"⋙","\\ggg",!0),_(D,J,ae,"≷","\\gtrless",!0),_(D,J,ae,"⋛","\\gtreqless",!0),_(D,J,ae,"⪌","\\gtreqqless",!0),_(D,J,ae,"≖","\\eqcirc",!0),_(D,J,ae,"≗","\\circeq",!0),_(D,J,ae,"≜","\\triangleq",!0),_(D,J,ae,"∼","\\thicksim"),_(D,J,ae,"≈","\\thickapprox"),_(D,J,ae,"⫆","\\supseteqq",!0),_(D,J,ae,"⋑","\\Supset",!0),_(D,J,ae,"⊐","\\sqsupset",!0),_(D,J,ae,"≽","\\succcurlyeq",!0),_(D,J,ae,"⋟","\\curlyeqsucc",!0),_(D,J,ae,"≿","\\succsim",!0),_(D,J,ae,"⪸","\\succapprox",!0),_(D,J,ae,"⊳","\\vartriangleright"),_(D,J,ae,"⊵","\\trianglerighteq"),_(D,J,ae,"⊩","\\Vdash",!0),_(D,J,ae,"∣","\\shortmid"),_(D,J,ae,"∥","\\shortparallel"),_(D,J,ae,"≬","\\between",!0),_(D,J,ae,"⋔","\\pitchfork",!0),_(D,J,ae,"∝","\\varpropto"),_(D,J,ae,"◀","\\blacktriangleleft"),_(D,J,ae,"∴","\\therefore",!0),_(D,J,ae,"∍","\\backepsilon"),_(D,J,ae,"▶","\\blacktriangleright"),_(D,J,ae,"∵","\\because",!0),_(D,J,ae,"⋘","\\llless"),_(D,J,ae,"⋙","\\gggtr"),_(D,J,je,"⊲","\\lhd"),_(D,J,je,"⊳","\\rhd"),_(D,J,ae,"≂","\\eqsim",!0),_(D,z,ae,"⋈","\\Join"),_(D,J,ae,"≑","\\Doteq",!0),_(D,J,je,"∔","\\dotplus",!0),_(D,J,je,"∖","\\smallsetminus"),_(D,J,je,"⋒","\\Cap",!0),_(D,J,je,"⋓","\\Cup",!0),_(D,J,je,"⩞","\\doublebarwedge",!0),_(D,J,je,"⊟","\\boxminus",!0),_(D,J,je,"⊞","\\boxplus",!0),_(D,J,je,"⋇","\\divideontimes",!0),_(D,J,je,"⋉","\\ltimes",!0),_(D,J,je,"⋊","\\rtimes",!0),_(D,J,je,"⋋","\\leftthreetimes",!0),_(D,J,je,"⋌","\\rightthreetimes",!0),_(D,J,je,"⋏","\\curlywedge",!0),_(D,J,je,"⋎","\\curlyvee",!0),_(D,J,je,"⊝","\\circleddash",!0),_(D,J,je,"⊛","\\circledast",!0),_(D,J,je,"⋅","\\centerdot"),_(D,J,je,"⊺","\\intercal",!0),_(D,J,je,"⋒","\\doublecap"),_(D,J,je,"⋓","\\doublecup"),_(D,J,je,"⊠","\\boxtimes",!0),_(D,J,ae,"⇢","\\dashrightarrow",!0),_(D,J,ae,"⇠","\\dashleftarrow",!0),_(D,J,ae,"⇇","\\leftleftarrows",!0),_(D,J,ae,"⇆","\\leftrightarrows",!0),_(D,J,ae,"⇚","\\Lleftarrow",!0),_(D,J,ae,"↞","\\twoheadleftarrow",!0),_(D,J,ae,"↢","\\leftarrowtail",!0),_(D,J,ae,"↫","\\looparrowleft",!0),_(D,J,ae,"⇋","\\leftrightharpoons",!0),_(D,J,ae,"↶","\\curvearrowleft",!0),_(D,J,ae,"↺","\\circlearrowleft",!0),_(D,J,ae,"↰","\\Lsh",!0),_(D,J,ae,"⇈","\\upuparrows",!0),_(D,J,ae,"↿","\\upharpoonleft",!0),_(D,J,ae,"⇃","\\downharpoonleft",!0),_(D,J,ae,"⊸","\\multimap",!0),_(D,J,ae,"↭","\\leftrightsquigarrow",!0),_(D,J,ae,"⇉","\\rightrightarrows",!0),_(D,J,ae,"⇄","\\rightleftarrows",!0),_(D,J,ae,"↠","\\twoheadrightarrow",!0),_(D,J,ae,"↣","\\rightarrowtail",!0),_(D,J,ae,"↬","\\looparrowright",!0),_(D,J,ae,"↷","\\curvearrowright",!0),_(D,J,ae,"↻","\\circlearrowright",!0),_(D,J,ae,"↱","\\Rsh",!0),_(D,J,ae,"⇊","\\downdownarrows",!0),_(D,J,ae,"↾","\\upharpoonright",!0),_(D,J,ae,"⇂","\\downharpoonright",!0),_(D,J,ae,"⇝","\\rightsquigarrow",!0),_(D,J,ae,"⇝","\\leadsto"),_(D,J,ae,"⇛","\\Rrightarrow",!0),_(D,J,ae,"↾","\\restriction"),_(D,z,be,"‘","`"),_(D,z,be,"$","\\$"),_(pe,z,be,"$","\\$"),_(pe,z,be,"$","\\textdollar"),_(D,z,be,"%","\\%"),_(pe,z,be,"%","\\%"),_(D,z,be,"_","\\_"),_(pe,z,be,"_","\\_"),_(pe,z,be,"_","\\textunderscore"),_(D,z,be,"∠","\\angle",!0),_(D,z,be,"∞","\\infty",!0),_(D,z,be,"′","\\prime"),_(D,z,be,"△","\\triangle"),_(D,z,be,"Γ","\\Gamma",!0),_(D,z,be,"Δ","\\Delta",!0),_(D,z,be,"Θ","\\Theta",!0),_(D,z,be,"Λ","\\Lambda",!0),_(D,z,be,"Ξ","\\Xi",!0),_(D,z,be,"Π","\\Pi",!0),_(D,z,be,"Σ","\\Sigma",!0),_(D,z,be,"Υ","\\Upsilon",!0),_(D,z,be,"Φ","\\Phi",!0),_(D,z,be,"Ψ","\\Psi",!0),_(D,z,be,"Ω","\\Omega",!0),_(D,z,be,"A","Α"),_(D,z,be,"B","Β"),_(D,z,be,"E","Ε"),_(D,z,be,"Z","Ζ"),_(D,z,be,"H","Η"),_(D,z,be,"I","Ι"),_(D,z,be,"K","Κ"),_(D,z,be,"M","Μ"),_(D,z,be,"N","Ν"),_(D,z,be,"O","Ο"),_(D,z,be,"P","Ρ"),_(D,z,be,"T","Τ"),_(D,z,be,"X","Χ"),_(D,z,be,"¬","\\neg",!0),_(D,z,be,"¬","\\lnot"),_(D,z,be,"⊤","\\top"),_(D,z,be,"⊥","\\bot"),_(D,z,be,"∅","\\emptyset"),_(D,J,be,"∅","\\varnothing"),_(D,z,Ge,"α","\\alpha",!0),_(D,z,Ge,"β","\\beta",!0),_(D,z,Ge,"γ","\\gamma",!0),_(D,z,Ge,"δ","\\delta",!0),_(D,z,Ge,"ϵ","\\epsilon",!0),_(D,z,Ge,"ζ","\\zeta",!0),_(D,z,Ge,"η","\\eta",!0),_(D,z,Ge,"θ","\\theta",!0),_(D,z,Ge,"ι","\\iota",!0),_(D,z,Ge,"κ","\\kappa",!0),_(D,z,Ge,"λ","\\lambda",!0),_(D,z,Ge,"μ","\\mu",!0),_(D,z,Ge,"ν","\\nu",!0),_(D,z,Ge,"ξ","\\xi",!0),_(D,z,Ge,"ο","\\omicron",!0),_(D,z,Ge,"π","\\pi",!0),_(D,z,Ge,"ρ","\\rho",!0),_(D,z,Ge,"σ","\\sigma",!0),_(D,z,Ge,"τ","\\tau",!0),_(D,z,Ge,"υ","\\upsilon",!0),_(D,z,Ge,"ϕ","\\phi",!0),_(D,z,Ge,"χ","\\chi",!0),_(D,z,Ge,"ψ","\\psi",!0),_(D,z,Ge,"ω","\\omega",!0),_(D,z,Ge,"ε","\\varepsilon",!0),_(D,z,Ge,"ϑ","\\vartheta",!0),_(D,z,Ge,"ϖ","\\varpi",!0),_(D,z,Ge,"ϱ","\\varrho",!0),_(D,z,Ge,"ς","\\varsigma",!0),_(D,z,Ge,"φ","\\varphi",!0),_(D,z,je,"∗","*"),_(D,z,je,"+","+"),_(D,z,je,"−","-"),_(D,z,je,"⋅","\\cdot",!0),_(D,z,je,"∘","\\circ"),_(D,z,je,"÷","\\div",!0),_(D,z,je,"±","\\pm",!0),_(D,z,je,"×","\\times",!0),_(D,z,je,"∩","\\cap",!0),_(D,z,je,"∪","\\cup",!0),_(D,z,je,"∖","\\setminus"),_(D,z,je,"∧","\\land"),_(D,z,je,"∨","\\lor"),_(D,z,je,"∧","\\wedge",!0),_(D,z,je,"∨","\\vee",!0),_(D,z,be,"√","\\surd"),_(D,z,yr,"⟨","\\langle",!0),_(D,z,yr,"∣","\\lvert"),_(D,z,yr,"∥","\\lVert"),_(D,z,ft,"?","?"),_(D,z,ft,"!","!"),_(D,z,ft,"⟩","\\rangle",!0),_(D,z,ft,"∣","\\rvert"),_(D,z,ft,"∥","\\rVert"),_(D,z,ae,"=","="),_(D,z,ae,":",":"),_(D,z,ae,"≈","\\approx",!0),_(D,z,ae,"≅","\\cong",!0),_(D,z,ae,"≥","\\ge"),_(D,z,ae,"≥","\\geq",!0),_(D,z,ae,"←","\\gets"),_(D,z,ae,">","\\gt",!0),_(D,z,ae,"∈","\\in",!0),_(D,z,ae,"","\\@not"),_(D,z,ae,"⊂","\\subset",!0),_(D,z,ae,"⊃","\\supset",!0),_(D,z,ae,"⊆","\\subseteq",!0),_(D,z,ae,"⊇","\\supseteq",!0),_(D,J,ae,"⊈","\\nsubseteq",!0),_(D,J,ae,"⊉","\\nsupseteq",!0),_(D,z,ae,"⊨","\\models"),_(D,z,ae,"←","\\leftarrow",!0),_(D,z,ae,"≤","\\le"),_(D,z,ae,"≤","\\leq",!0),_(D,z,ae,"<","\\lt",!0),_(D,z,ae,"→","\\rightarrow",!0),_(D,z,ae,"→","\\to"),_(D,J,ae,"≱","\\ngeq",!0),_(D,J,ae,"≰","\\nleq",!0),_(D,z,Rr," ","\\ "),_(D,z,Rr," ","~"),_(D,z,Rr," ","\\space"),_(D,z,Rr," ","\\nobreakspace"),_(pe,z,Rr," ","\\ "),_(pe,z,Rr," "," "),_(pe,z,Rr," ","~"),_(pe,z,Rr," ","\\space"),_(pe,z,Rr," ","\\nobreakspace"),_(D,z,Rr,null,"\\nobreak"),_(D,z,Rr,null,"\\allowbreak"),_(D,z,Mr,",",","),_(D,z,Mr,";",";"),_(D,J,je,"⊼","\\barwedge",!0),_(D,J,je,"⊻","\\veebar",!0),_(D,z,je,"⊙","\\odot",!0),_(D,z,je,"⊕","\\oplus",!0),_(D,z,je,"⊗","\\otimes",!0),_(D,z,be,"∂","\\partial",!0),_(D,z,je,"⊘","\\oslash",!0),_(D,J,je,"⊚","\\circledcirc",!0),_(D,J,je,"⊡","\\boxdot",!0),_(D,z,je,"△","\\bigtriangleup"),_(D,z,je,"▽","\\bigtriangledown"),_(D,z,je,"†","\\dagger"),_(D,z,je,"⋄","\\diamond"),_(D,z,je,"⋆","\\star"),_(D,z,je,"◃","\\triangleleft"),_(D,z,je,"▹","\\triangleright"),_(D,z,yr,"{","\\{"),_(pe,z,be,"{","\\{"),_(pe,z,be,"{","\\textbraceleft"),_(D,z,ft,"}","\\}"),_(pe,z,be,"}","\\}"),_(pe,z,be,"}","\\textbraceright"),_(D,z,yr,"{","\\lbrace"),_(D,z,ft,"}","\\rbrace"),_(D,z,yr,"[","\\lbrack",!0),_(pe,z,be,"[","\\lbrack",!0),_(D,z,ft,"]","\\rbrack",!0),_(pe,z,be,"]","\\rbrack",!0),_(D,z,yr,"(","\\lparen",!0),_(D,z,ft,")","\\rparen",!0),_(pe,z,be,"<","\\textless",!0),_(pe,z,be,">","\\textgreater",!0),_(D,z,yr,"⌊","\\lfloor",!0),_(D,z,ft,"⌋","\\rfloor",!0),_(D,z,yr,"⌈","\\lceil",!0),_(D,z,ft,"⌉","\\rceil",!0),_(D,z,be,"\\","\\backslash"),_(D,z,be,"∣","|"),_(D,z,be,"∣","\\vert"),_(pe,z,be,"|","\\textbar",!0),_(D,z,be,"∥","\\|"),_(D,z,be,"∥","\\Vert"),_(pe,z,be,"∥","\\textbardbl"),_(pe,z,be,"~","\\textasciitilde"),_(pe,z,be,"\\","\\textbackslash"),_(pe,z,be,"^","\\textasciicircum"),_(D,z,ae,"↑","\\uparrow",!0),_(D,z,ae,"⇑","\\Uparrow",!0),_(D,z,ae,"↓","\\downarrow",!0),_(D,z,ae,"⇓","\\Downarrow",!0),_(D,z,ae,"↕","\\updownarrow",!0),_(D,z,ae,"⇕","\\Updownarrow",!0),_(D,z,sr,"∐","\\coprod"),_(D,z,sr,"⋁","\\bigvee"),_(D,z,sr,"⋀","\\bigwedge"),_(D,z,sr,"⨄","\\biguplus"),_(D,z,sr,"⋂","\\bigcap"),_(D,z,sr,"⋃","\\bigcup"),_(D,z,sr,"∫","\\int"),_(D,z,sr,"∫","\\intop"),_(D,z,sr,"∬","\\iint"),_(D,z,sr,"∭","\\iiint"),_(D,z,sr,"∏","\\prod"),_(D,z,sr,"∑","\\sum"),_(D,z,sr,"⨂","\\bigotimes"),_(D,z,sr,"⨁","\\bigoplus"),_(D,z,sr,"⨀","\\bigodot"),_(D,z,sr,"∮","\\oint"),_(D,z,sr,"⨆","\\bigsqcup"),_(D,z,sr,"∫","\\smallint"),_(pe,z,bt,"…","\\textellipsis"),_(D,z,bt,"…","\\mathellipsis"),_(pe,z,bt,"…","\\ldots",!0),_(D,z,bt,"…","\\ldots",!0),_(D,z,bt,"⋯","\\@cdots",!0),_(D,z,bt,"⋱","\\ddots",!0),_(D,z,be,"⋮","\\varvdots"),_(D,z,Zt,"ˊ","\\acute"),_(D,z,Zt,"ˋ","\\grave"),_(D,z,Zt,"¨","\\ddot"),_(D,z,Zt,"~","\\tilde"),_(D,z,Zt,"ˉ","\\bar"),_(D,z,Zt,"˘","\\breve"),_(D,z,Zt,"ˇ","\\check"),_(D,z,Zt,"^","\\hat"),_(D,z,Zt,"⃗","\\vec"),_(D,z,Zt,"˙","\\dot"),_(D,z,Zt,"˚","\\mathring"),_(D,z,Ge,"","\\@imath"),_(D,z,Ge,"","\\@jmath"),_(D,z,be,"ı","ı"),_(D,z,be,"ȷ","ȷ"),_(pe,z,be,"ı","\\i",!0),_(pe,z,be,"ȷ","\\j",!0),_(pe,z,be,"ß","\\ss",!0),_(pe,z,be,"æ","\\ae",!0),_(pe,z,be,"œ","\\oe",!0),_(pe,z,be,"ø","\\o",!0),_(pe,z,be,"Æ","\\AE",!0),_(pe,z,be,"Œ","\\OE",!0),_(pe,z,be,"Ø","\\O",!0),_(pe,z,Zt,"ˊ","\\'"),_(pe,z,Zt,"ˋ","\\`"),_(pe,z,Zt,"ˆ","\\^"),_(pe,z,Zt,"˜","\\~"),_(pe,z,Zt,"ˉ","\\="),_(pe,z,Zt,"˘","\\u"),_(pe,z,Zt,"˙","\\."),_(pe,z,Zt,"˚","\\r"),_(pe,z,Zt,"ˇ","\\v"),_(pe,z,Zt,"¨",'\\"'),_(pe,z,Zt,"˝","\\H"),_(pe,z,Zt,"◯","\\textcircled");var Yo={"--":!0,"---":!0,"``":!0,"''":!0};_(pe,z,be,"–","--",!0),_(pe,z,be,"–","\\textendash"),_(pe,z,be,"—","---",!0),_(pe,z,be,"—","\\textemdash"),_(pe,z,be,"‘","`",!0),_(pe,z,be,"‘","\\textquoteleft"),_(pe,z,be,"’","'",!0),_(pe,z,be,"’","\\textquoteright"),_(pe,z,be,"“","``",!0),_(pe,z,be,"“","\\textquotedblleft"),_(pe,z,be,"”","''",!0),_(pe,z,be,"”","\\textquotedblright"),_(D,z,be,"°","\\degree",!0),_(pe,z,be,"°","\\degree"),_(pe,z,be,"°","\\textdegree",!0),_(D,z,be,"£","\\pounds"),_(D,z,be,"£","\\mathsterling",!0),_(pe,z,be,"£","\\pounds"),_(pe,z,be,"£","\\textsterling",!0),_(D,J,be,"✠","\\maltese"),_(pe,J,be,"✠","\\maltese");for(var Ol='0123456789/@."',ha=0;ha<Ol.length;ha++){var La=Ol.charAt(ha);_(D,z,be,La,La)}for(var za='0123456789!@*()-=+";:?/.,',us=0;us<za.length;us++){var Ml=za.charAt(us);_(pe,z,be,Ml,Ml)}for(var Ki="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cs=0;cs<Ki.length;cs++){var Ni=Ki.charAt(cs);_(D,z,Ge,Ni,Ni),_(pe,z,be,Ni,Ni)}_(D,J,be,"C","ℂ"),_(pe,J,be,"C","ℂ"),_(D,J,be,"H","ℍ"),_(pe,J,be,"H","ℍ"),_(D,J,be,"N","ℕ"),_(pe,J,be,"N","ℕ"),_(D,J,be,"P","ℙ"),_(pe,J,be,"P","ℙ"),_(D,J,be,"Q","ℚ"),_(pe,J,be,"Q","ℚ"),_(D,J,be,"R","ℝ"),_(pe,J,be,"R","ℝ"),_(D,J,be,"Z","ℤ"),_(pe,J,be,"Z","ℤ"),_(D,z,Ge,"h","ℎ"),_(pe,z,Ge,"h","ℎ");for(var Qt="",Hn=0;Hn<Ki.length;Hn++){var mn=Ki.charAt(Hn);Qt=String.fromCharCode(55349,56320+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56372+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56424+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56580+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56736+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56788+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56840+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56944+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Hn<26&&(Qt=String.fromCharCode(55349,56632+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt),Qt=String.fromCharCode(55349,56476+Hn),_(D,z,Ge,mn,Qt),_(pe,z,be,mn,Qt))}Qt="𝕜",_(D,z,Ge,"k",Qt),_(pe,z,be,"k",Qt);for(var io=0;io<10;io++){var Zr=io.toString();Qt=String.fromCharCode(55349,57294+io),_(D,z,Ge,Zr,Qt),_(pe,z,be,Zr,Qt),Qt=String.fromCharCode(55349,57314+io),_(D,z,Ge,Zr,Qt),_(pe,z,be,Zr,Qt),Qt=String.fromCharCode(55349,57324+io),_(D,z,Ge,Zr,Qt),_(pe,z,be,Zr,Qt),Qt=String.fromCharCode(55349,57334+io),_(D,z,Ge,Zr,Qt),_(pe,z,be,Zr,Qt)}for(var Pn="ÇÐÞçþ",Rs=0;Rs<Pn.length;Rs++){var Qe=Pn.charAt(Rs);_(D,z,Ge,Qe,Qe),_(pe,z,be,Qe,Qe)}var Dt=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],cr=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Br=function(g,T){var b=g.charCodeAt(0),A=g.charCodeAt(1),C=(b-55296)*1024+(A-56320)+65536,L=T==="math"?0:1;if(119808<=C&&C<120484){var H=Math.floor((C-119808)/26);return[Dt[H][2],Dt[H][L]]}else if(120782<=C&&C<=120831){var K=Math.floor((C-120782)/10);return[cr[K][2],cr[K][L]]}else{if(C===120485||C===120486)return[Dt[0][2],Dt[0][L]];if(120486<C&&C<120782)return["",""];throw new u("Unsupported character: "+g)}},$r=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Fi=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],mi=function(g,T){return T.size<2?g:$r[g-1][T.size-1]},oo=(function(){function g(b){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=b.style,this.color=b.color,this.size=b.size||g.BASESIZE,this.textSize=b.textSize||this.size,this.phantom=!!b.phantom,this.font=b.font||"",this.fontFamily=b.fontFamily||"",this.fontWeight=b.fontWeight||"",this.fontShape=b.fontShape||"",this.sizeMultiplier=Fi[this.size-1],this.maxSize=b.maxSize,this.minRuleThickness=b.minRuleThickness,this._fontMetrics=void 0}var T=g.prototype;return T.extend=function(b){var A={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var C in b)b.hasOwnProperty(C)&&(A[C]=b[C]);return new g(A)},T.havingStyle=function(b){return this.style===b?this:this.extend({style:b,size:mi(this.textSize,b)})},T.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},T.havingSize=function(b){return this.size===b&&this.textSize===b?this:this.extend({style:this.style.text(),size:b,textSize:b,sizeMultiplier:Fi[b-1]})},T.havingBaseStyle=function(b){b=b||this.style.text();var A=mi(g.BASESIZE,b);return this.size===A&&this.textSize===g.BASESIZE&&this.style===b?this:this.extend({style:b,size:A})},T.havingBaseSizing=function(){var b;switch(this.style.id){case 4:case 5:b=3;break;case 6:case 7:b=1;break;default:b=6}return this.extend({style:this.style.text(),size:b})},T.withColor=function(b){return this.extend({color:b})},T.withPhantom=function(){return this.extend({phantom:!0})},T.withFont=function(b){return this.extend({font:b})},T.withTextFontFamily=function(b){return this.extend({fontFamily:b,font:""})},T.withTextFontWeight=function(b){return this.extend({fontWeight:b,font:""})},T.withTextFontShape=function(b){return this.extend({fontShape:b,font:""})},T.sizingClasses=function(b){return b.size!==this.size?["sizing","reset-size"+b.size,"size"+this.size]:[]},T.baseSizingClasses=function(){return this.size!==g.BASESIZE?["sizing","reset-size"+this.size,"size"+g.BASESIZE]:[]},T.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=mr(this.size)),this._fontMetrics},T.getColor=function(){return this.phantom?"transparent":this.color},g})();oo.BASESIZE=6;var si=oo,Oi={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},N0={ex:!0,em:!0,mu:!0},Rl=function(g){return typeof g!="string"&&(g=g.unit),g in Oi||g in N0||g==="ex"},on=function(g,T){var b;if(g.unit in Oi)b=Oi[g.unit]/T.fontMetrics().ptPerEm/T.sizeMultiplier;else if(g.unit==="mu")b=T.fontMetrics().cssEmPerMu;else{var A;if(T.style.isTight()?A=T.havingStyle(T.style.text()):A=T,g.unit==="ex")b=A.fontMetrics().xHeight;else if(g.unit==="em")b=A.fontMetrics().quad;else throw new u("Invalid unit: '"+g.unit+"'");A!==T&&(b*=A.sizeMultiplier/T.sizeMultiplier)}return Math.min(g.number*b,T.maxSize)},pa=function(g,T,b){return Dr[b][g]&&Dr[b][g].replace&&(g=Dr[b][g].replace),{value:g,metrics:vt(g,T,b)}},Mi=function(g,T,b,A,C){var L=pa(g,T,b),H=L.metrics;g=L.value;var K;if(H){var X=H.italic;(b==="text"||A&&A.font==="mathit")&&(X=0),K=new de(g,H.height,H.depth,X,H.skew,H.width,C)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+g+"' in style '"+T+"' and mode '"+b+"'")),K=new de(g,0,0,0,0,0,C);if(A){K.maxFontSize=A.sizeMultiplier,A.style.isTight()&&K.classes.push("mtight");var Te=A.getColor();Te&&(K.style.color=Te)}return K},ds=function(g,T,b,A){return A===void 0&&(A=[]),b.font==="boldsymbol"&&pa(g,"Main-Bold",T).metrics?Mi(g,"Main-Bold",T,b,A.concat(["mathbf"])):g==="\\"||Dr[T][g].font==="main"?Mi(g,"Main-Regular",T,b,A):Mi(g,"AMS-Regular",T,b,A.concat(["amsrm"]))},F0=function(g,T,b,A,C){return C!=="textord"&&pa(g,"Math-BoldItalic",T).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},fa=function(g,T,b){var A=g.mode,C=g.text,L=["mord"],H=A==="math"||A==="text"&&T.font,K=H?T.font:T.fontFamily;if(C.charCodeAt(0)===55349){var X=Br(C,A),Te=X[0],ve=X[1];return Mi(C,Te,A,T,L.concat(ve))}else if(K){var Ne,Ke;if(K==="boldsymbol"){var rt=F0(C,A,T,L,b);Ne=rt.fontName,Ke=[rt.fontClass]}else H?(Ne=xt[K].fontName,Ke=[K]):(Ne=mt(K,T.fontWeight,T.fontShape),Ke=[K,T.fontWeight,T.fontShape]);if(pa(C,Ne,A).metrics)return Mi(C,Ne,A,T,L.concat(Ke));if(Yo.hasOwnProperty(C)&&Ne.substr(0,10)==="Typewriter"){for(var yt=[],Nt=0;Nt<C.length;Nt++)yt.push(Mi(C[Nt],Ne,A,T,L.concat(Ke)));return Ir(yt)}}if(b==="mathord")return Mi(C,"Math-Italic",A,T,L.concat(["mathnormal"]));if(b==="textord"){var Gt=Dr[A][C]&&Dr[A][C].font;if(Gt==="ams"){var Tr=mt("amsrm",T.fontWeight,T.fontShape);return Mi(C,Tr,A,T,L.concat("amsrm",T.fontWeight,T.fontShape))}else if(Gt==="main"||!Gt){var Cr=mt("textrm",T.fontWeight,T.fontShape);return Mi(C,Cr,A,T,L.concat(T.fontWeight,T.fontShape))}else{var rn=mt(Gt,T.fontWeight,T.fontShape);return Mi(C,rn,A,T,L.concat(rn,T.fontWeight,T.fontShape))}}else throw new Error("unexpected type: "+b+" in makeOrd")},Bl=function(g,T){if(ee(g.classes)!==ee(T.classes)||g.skew!==T.skew||g.maxFontSize!==T.maxFontSize)return!1;for(var b in g.style)if(g.style.hasOwnProperty(b)&&g.style[b]!==T.style[b])return!1;for(var A in T.style)if(T.style.hasOwnProperty(A)&&g.style[A]!==T.style[A])return!1;return!0},so=function(g){for(var T=0;T<g.length-1;T++){var b=g[T],A=g[T+1];b instanceof de&&A instanceof de&&Bl(b,A)&&(b.text+=A.text,b.height=Math.max(b.height,A.height),b.depth=Math.max(b.depth,A.depth),b.italic=A.italic,g.splice(T+1,1),T--)}return g},Ya=function(g){for(var T=0,b=0,A=0,C=0;C<g.children.length;C++){var L=g.children[C];L.height>T&&(T=L.height),L.depth>b&&(b=L.depth),L.maxFontSize>A&&(A=L.maxFontSize)}g.height=T,g.depth=b,g.maxFontSize=A},Xn=function(g,T,b,A){var C=new dt(g,T,b,A);return Ya(C),C},tr=function(g,T,b,A){return new dt(g,T,b,A)},Ha=function(g,T,b){var A=Xn([g],[],T);return A.height=Math.max(b||T.fontMetrics().defaultRuleThickness,T.minRuleThickness),A.style.borderBottomWidth=A.height+"em",A.maxFontSize=1,A},sn=function(g,T,b,A){var C=new ut(g,T,b,A);return Ya(C),C},Ir=function(g){var T=new Ft(g);return Ya(T),T},wo=function(g,T){return g instanceof Ft?Xn([],[g],T):g},Ri=function(g){if(g.positionType==="individualShift"){for(var T=g.children,b=[T[0]],A=-T[0].shift-T[0].elem.depth,C=A,L=1;L<T.length;L++){var H=-T[L].shift-C-T[L].elem.depth,K=H-(T[L-1].elem.height+T[L-1].elem.depth);C=C+H,b.push({type:"kern",size:K}),b.push(T[L])}return{children:b,depth:A}}var X;if(g.positionType==="top"){for(var Te=g.positionData,ve=0;ve<g.children.length;ve++){var Ne=g.children[ve];Te-=Ne.type==="kern"?Ne.size:Ne.elem.height+Ne.elem.depth}X=Te}else if(g.positionType==="bottom")X=-g.positionData;else{var Ke=g.children[0];if(Ke.type!=="elem")throw new Error('First child must have type "elem".');if(g.positionType==="shift")X=-Ke.elem.depth-g.positionData;else if(g.positionType==="firstBaseline")X=-Ke.elem.depth;else throw new Error("Invalid positionType "+g.positionType+".")}return{children:g.children,depth:X}},Pa=function(g,T){for(var b=Ri(g),A=b.children,C=b.depth,L=0,H=0;H<A.length;H++){var K=A[H];if(K.type==="elem"){var X=K.elem;L=Math.max(L,X.maxFontSize,X.height)}}L+=2;var Te=Xn(["pstrut"],[]);Te.style.height=L+"em";for(var ve=[],Ne=C,Ke=C,rt=C,yt=0;yt<A.length;yt++){var Nt=A[yt];if(Nt.type==="kern")rt+=Nt.size;else{var Gt=Nt.elem,Tr=Nt.wrapperClasses||[],Cr=Nt.wrapperStyle||{},rn=Xn(Tr,[Te,Gt],void 0,Cr);rn.style.top=-L-rt-Gt.depth+"em",Nt.marginLeft&&(rn.style.marginLeft=Nt.marginLeft),Nt.marginRight&&(rn.style.marginRight=Nt.marginRight),ve.push(rn),rt+=Gt.height+Gt.depth}Ne=Math.min(Ne,rt),Ke=Math.max(Ke,rt)}var Wr=Xn(["vlist"],ve);Wr.style.height=Ke+"em";var gn;if(Ne<0){var yn=Xn([],[]),En=Xn(["vlist"],[yn]);En.style.height=-Ne+"em";var gi=Xn(["vlist-s"],[new de("")]);gn=[Xn(["vlist-r"],[Wr,gi]),Xn(["vlist-r"],[En])]}else gn=[Xn(["vlist-r"],[Wr])];var Si=Xn(["vlist-t"],gn);return gn.length===2&&Si.classes.push("vlist-t2"),Si.height=Ke,Si.depth=-Ne,Si},Il=function(g,T){var b=Xn(["mspace"],[],T),A=on(g,T);return b.style.marginRight=A+"em",b},mt=function(g,T,b){var A="";switch(g){case"amsrm":A="AMS";break;case"textrm":A="Main";break;case"textsf":A="SansSerif";break;case"texttt":A="Typewriter";break;default:A=g}var C;return T==="textbf"&&b==="textit"?C="BoldItalic":T==="textbf"?C="Bold":T==="textit"?C="Italic":C="Regular",A+"-"+C},xt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ir={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659],leftParenInner:["leftParenInner",.875,.3],rightParenInner:["rightParenInner",.875,.3]},Or=function(g,T){var b=ir[g],A=b[0],C=b[1],L=b[2],H=new Sr(A),K=new We([H],{width:C+"em",height:L+"em",style:"width:"+C+"em",viewBox:"0 0 "+1e3*C+" "+1e3*L,preserveAspectRatio:"xMinYMin"}),X=tr(["overlay"],[K],T);return X.height=L,X.style.height=L+"em",X.style.width=C+"em",X},xe={fontMap:xt,makeSymbol:Mi,mathsym:ds,makeSpan:Xn,makeSvgSpan:tr,makeLineSpan:Ha,makeAnchor:sn,makeFragment:Ir,wrapFragment:wo,makeVList:Pa,makeOrd:fa,makeGlue:Il,staticSvg:Or,svgData:ir,tryCombineChars:so},Ar={number:3,unit:"mu"},ao={number:4,unit:"mu"},Bi={number:5,unit:"mu"},md={mord:{mop:Ar,mbin:ao,mrel:Bi,minner:Ar},mop:{mord:Ar,mop:Ar,mrel:Bi,minner:Ar},mbin:{mord:ao,mop:ao,mopen:ao,minner:ao},mrel:{mord:Bi,mop:Bi,mopen:Bi,minner:Bi},mopen:{},mclose:{mop:Ar,mbin:ao,mrel:Bi,minner:Ar},mpunct:{mord:Ar,mop:Ar,mrel:Bi,mopen:Ar,mclose:Ar,mpunct:Ar,minner:Ar},minner:{mord:Ar,mop:Ar,mbin:ao,mrel:Bi,mopen:Ar,mpunct:Ar,minner:Ar}},ic={mord:{mop:Ar},mop:{mord:Ar,mop:Ar},mbin:{},mrel:{},mopen:{},mclose:{mop:Ar},mpunct:{},minner:{mop:Ar}},hs={},Za={},Ho={};function Tt(g){for(var T=g.type,b=g.names,A=g.props,C=g.handler,L=g.htmlBuilder,H=g.mathmlBuilder,K={type:T,numArgs:A.numArgs,argTypes:A.argTypes,greediness:A.greediness===void 0?1:A.greediness,allowedInText:!!A.allowedInText,allowedInMath:A.allowedInMath===void 0?!0:A.allowedInMath,numOptionalArgs:A.numOptionalArgs||0,infix:!!A.infix,handler:C},X=0;X<b.length;++X)hs[b[X]]=K;T&&(L&&(Za[T]=L),H&&(Ho[T]=H))}function ai(g){var T=g.type,b=g.htmlBuilder,A=g.mathmlBuilder;Tt({type:T,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:b,mathmlBuilder:A})}var Rn=function(g){return g.type==="ordgroup"?g.body:[g]},Ii=xe.makeSpan,Ll=["leftmost","mbin","mopen","mrel","mop","mpunct"],O0=["rightmost","mrel","mclose","mpunct"],oc={display:Ye.DISPLAY,text:Ye.TEXT,script:Ye.SCRIPT,scriptscript:Ye.SCRIPTSCRIPT},M0={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Bn=function(g,T,b,A){A===void 0&&(A=[null,null]);for(var C=[],L=0;L<g.length;L++){var H=j(g[L],T);if(H instanceof Ft){var K=H.children;C.push.apply(C,K)}else C.push(H)}if(!b)return C;var X=T;if(g.length===1){var Te=g[0];Te.type==="sizing"?X=T.havingSize(Te.size):Te.type==="styling"&&(X=T.havingStyle(oc[Te.style]))}var ve=Ii([A[0]||"leftmost"],[],T),Ne=Ii([A[1]||"rightmost"],[],T),Ke=b==="root";return Qi(C,function(rt,yt){var Nt=yt.classes[0],Gt=rt.classes[0];Nt==="mbin"&&O.contains(O0,Gt)?yt.classes[0]="mord":Gt==="mbin"&&O.contains(Ll,Nt)&&(rt.classes[0]="mord")},{node:ve},Ne,Ke),Qi(C,function(rt,yt){var Nt=Y(yt),Gt=Y(rt),Tr=Nt&&Gt?rt.hasClass("mtight")?ic[Nt][Gt]:md[Nt][Gt]:null;if(Tr)return xe.makeGlue(Tr,X)},{node:ve},Ne,Ke),C},Qi=function g(T,b,A,C,L){C&&T.push(C);for(var H=0;H<T.length;H++){var K=T[H],X=sc(K);if(X){g(X.children,b,A,null,L);continue}var Te=!K.hasClass("mspace");if(Te){var ve=b(K,A.node);ve&&(A.insertAfter?A.insertAfter(ve):(T.unshift(ve),H++))}Te?A.node=K:L&&K.hasClass("newline")&&(A.node=Ii(["leftmost"])),A.insertAfter=(function(Ne){return function(Ke){T.splice(Ne+1,0,Ke),H++}})(H)}C&&T.pop()},sc=function(g){return g instanceof Ft||g instanceof ut||g instanceof dt&&g.hasClass("enclosing")?g:null},Zn=function g(T,b){var A=sc(T);if(A){var C=A.children;if(C.length){if(b==="right")return g(C[C.length-1],"right");if(b==="left")return g(C[0],"left")}}return T},Y=function(g,T){return g?(T&&(g=Zn(g,T)),M0[g.classes[0]]||null):null},U=function(g,T){var b=["nulldelimiter"].concat(g.baseSizingClasses());return Ii(T.concat(b))},j=function(g,T,b){if(!g)return Ii();if(Za[g.type]){var A=Za[g.type](g,T);if(b&&T.size!==b.size){A=Ii(T.sizingClasses(b),[A],T);var C=T.sizeMultiplier/b.sizeMultiplier;A.height*=C,A.depth*=C}return A}else throw new u("Got group of unknown type: '"+g.type+"'")};function te(g,T){var b=Ii(["base"],g,T),A=Ii(["strut"]);return A.style.height=b.height+b.depth+"em",A.style.verticalAlign=-b.depth+"em",b.children.unshift(A),b}function me(g,T){var b=null;g.length===1&&g[0].type==="tag"&&(b=g[0].tag,g=g[0].body);for(var A=Bn(g,T,"root"),C=[],L=[],H=0;H<A.length;H++)if(L.push(A[H]),A[H].hasClass("mbin")||A[H].hasClass("mrel")||A[H].hasClass("allowbreak")){for(var K=!1;H<A.length-1&&A[H+1].hasClass("mspace")&&!A[H+1].hasClass("newline");)H++,L.push(A[H]),A[H].hasClass("nobreak")&&(K=!0);K||(C.push(te(L,T)),L=[])}else A[H].hasClass("newline")&&(L.pop(),L.length>0&&(C.push(te(L,T)),L=[]),C.push(A[H]));L.length>0&&C.push(te(L,T));var X;b&&(X=te(Bn(b,T,!0)),X.classes=["tag"],C.push(X));var Te=Ii(["katex-html"],C);if(Te.setAttribute("aria-hidden","true"),X){var ve=X.children[0];ve.style.height=Te.height+Te.depth+"em",ve.style.verticalAlign=-Te.depth+"em"}return Te}function De(g){return new Ft(g)}var we=(function(){function g(b,A){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=b,this.attributes={},this.children=A||[]}var T=g.prototype;return T.setAttribute=function(b,A){this.attributes[b]=A},T.getAttribute=function(b){return this.attributes[b]},T.toNode=function(){var b=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&b.setAttribute(A,this.attributes[A]);for(var C=0;C<this.children.length;C++)b.appendChild(this.children[C].toNode());return b},T.toMarkup=function(){var b="<"+this.type;for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&(b+=" "+A+'="',b+=O.escape(this.attributes[A]),b+='"');b+=">";for(var C=0;C<this.children.length;C++)b+=this.children[C].toMarkup();return b+="</"+this.type+">",b},T.toText=function(){return this.children.map(function(b){return b.toText()}).join("")},g})(),$e=(function(){function g(b){this.text=void 0,this.text=b}var T=g.prototype;return T.toNode=function(){return document.createTextNode(this.text)},T.toMarkup=function(){return O.escape(this.toText())},T.toText=function(){return this.text},g})(),Et=(function(){function g(b){this.width=void 0,this.character=void 0,this.width=b,b>=.05555&&b<=.05556?this.character=" ":b>=.1666&&b<=.1667?this.character=" ":b>=.2222&&b<=.2223?this.character=" ":b>=.2777&&b<=.2778?this.character=" ":b>=-.05556&&b<=-.05555?this.character=" ":b>=-.1667&&b<=-.1666?this.character=" ":b>=-.2223&&b<=-.2222?this.character=" ":b>=-.2778&&b<=-.2777?this.character=" ":this.character=null}var T=g.prototype;return T.toNode=function(){if(this.character)return document.createTextNode(this.character);var b=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return b.setAttribute("width",this.width+"em"),b},T.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},T.toText=function(){return this.character?this.character:" "},g})(),Se={MathNode:we,TextNode:$e,SpaceNode:Et,newDocumentFragment:De},ot=function(g,T,b){return Dr[T][g]&&Dr[T][g].replace&&g.charCodeAt(0)!==55349&&!(Yo.hasOwnProperty(g)&&b&&(b.fontFamily&&b.fontFamily.substr(4,2)==="tt"||b.font&&b.font.substr(4,2)==="tt"))&&(g=Dr[T][g].replace),new Se.TextNode(g)},Jt=function(g){return g.length===1?g[0]:new Se.MathNode("mrow",g)},Lr=function(g,T){if(T.fontFamily==="texttt")return"monospace";if(T.fontFamily==="textsf")return T.fontShape==="textit"&&T.fontWeight==="textbf"?"sans-serif-bold-italic":T.fontShape==="textit"?"sans-serif-italic":T.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(T.fontShape==="textit"&&T.fontWeight==="textbf")return"bold-italic";if(T.fontShape==="textit")return"italic";if(T.fontWeight==="textbf")return"bold";var b=T.font;if(!b||b==="mathnormal")return null;var A=g.mode;if(b==="mathit")return"italic";if(b==="boldsymbol")return g.type==="textord"?"bold":"bold-italic";if(b==="mathbf")return"bold";if(b==="mathbb")return"double-struck";if(b==="mathfrak")return"fraktur";if(b==="mathscr"||b==="mathcal")return"script";if(b==="mathsf")return"sans-serif";if(b==="mathtt")return"monospace";var C=g.text;if(O.contains(["\\imath","\\jmath"],C))return null;Dr[A][C]&&Dr[A][C].replace&&(C=Dr[A][C].replace);var L=xe.fontMap[b].fontName;return vt(C,L,A)?xe.fontMap[b].variant:null},Bt=function(g,T,b){if(g.length===1){var A=et(g[0],T);return b&&A instanceof we&&A.type==="mo"&&(A.setAttribute("lspace","0em"),A.setAttribute("rspace","0em")),[A]}for(var C=[],L,H=0;H<g.length;H++){var K=et(g[H],T);if(K instanceof we&&L instanceof we){if(K.type==="mtext"&&L.type==="mtext"&&K.getAttribute("mathvariant")===L.getAttribute("mathvariant")){var X;(X=L.children).push.apply(X,K.children);continue}else if(K.type==="mn"&&L.type==="mn"){var Te;(Te=L.children).push.apply(Te,K.children);continue}else if(K.type==="mi"&&K.children.length===1&&L.type==="mn"){var ve=K.children[0];if(ve instanceof $e&&ve.text==="."){var Ne;(Ne=L.children).push.apply(Ne,K.children);continue}}else if(L.type==="mi"&&L.children.length===1){var Ke=L.children[0];if(Ke instanceof $e&&Ke.text==="̸"&&(K.type==="mo"||K.type==="mi"||K.type==="mn")){var rt=K.children[0];rt instanceof $e&&rt.text.length>0&&(rt.text=rt.text.slice(0,1)+"̸"+rt.text.slice(1),C.pop())}}}C.push(K),L=K}return C},at=function(g,T,b){return Jt(Bt(g,T,b))},et=function(g,T){if(!g)return new Se.MathNode("mrow");if(Ho[g.type]){var b=Ho[g.type](g,T);return b}else throw new u("Got group of unknown type: '"+g.type+"'")};function In(g,T,b,A,C){var L=Bt(g,b),H;L.length===1&&L[0]instanceof we&&O.contains(["mrow","mtable"],L[0].type)?H=L[0]:H=new Se.MathNode("mrow",L);var K=new Se.MathNode("annotation",[new Se.TextNode(T)]);K.setAttribute("encoding","application/x-tex");var X=new Se.MathNode("semantics",[H,K]),Te=new Se.MathNode("math",[X]);Te.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),A&&Te.setAttribute("display","block");var ve=C?"katex":"katex-mathml";return xe.makeSpan([ve],[Te])}var Ln=function(g){return new si({style:g.displayMode?Ye.DISPLAY:Ye.TEXT,maxSize:g.maxSize,minRuleThickness:g.minRuleThickness})},$n=function(g,T){if(T.displayMode){var b=["katex-display"];T.leqno&&b.push("leqno"),T.fleqn&&b.push("fleqn"),g=xe.makeSpan(b,[g])}return g},Po=function(g,T,b){var A=Ln(b),C;if(b.output==="mathml")return In(g,T,A,b.displayMode,!0);if(b.output==="html"){var L=me(g,A);C=xe.makeSpan(["katex"],[L])}else{var H=In(g,T,A,b.displayMode,!1),K=me(g,A);C=xe.makeSpan(["katex"],[H,K])}return $n(C,b)},Bs=function(g,T,b){var A=Ln(b),C=me(g,A),L=xe.makeSpan(["katex"],[C]);return $n(L,b)},R0={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},Is=function(g){var T=new Se.MathNode("mo",[new Se.TextNode(R0[g.substr(1)])]);return T.setAttribute("stretchy","true"),T},ps={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},B0=function(g){return g.type==="ordgroup"?g.body.length:1},$a=function(g,T){function b(){var K=4e5,X=g.label.substr(1);if(O.contains(["widehat","widecheck","widetilde","utilde"],X)){var Te=g,ve=B0(Te.base),Ne,Ke,rt;if(ve>5)X==="widehat"||X==="widecheck"?(Ne=420,K=2364,rt=.42,Ke=X+"4"):(Ne=312,K=2340,rt=.34,Ke="tilde4");else{var yt=[1,1,2,2,3,3][ve];X==="widehat"||X==="widecheck"?(K=[0,1062,2364,2364,2364][yt],Ne=[0,239,300,360,420][yt],rt=[0,.24,.3,.3,.36,.42][yt],Ke=X+yt):(K=[0,600,1033,2339,2340][yt],Ne=[0,260,286,306,312][yt],rt=[0,.26,.286,.3,.306,.34][yt],Ke="tilde"+yt)}var Nt=new Sr(Ke),Gt=new We([Nt],{width:"100%",height:rt+"em",viewBox:"0 0 "+K+" "+Ne,preserveAspectRatio:"none"});return{span:xe.makeSvgSpan([],[Gt],T),minWidth:0,height:rt}}else{var Tr=[],Cr=ps[X],rn=Cr[0],Wr=Cr[1],gn=Cr[2],yn=gn/1e3,En=rn.length,gi,Si;if(En===1){var zr=Cr[3];gi=["hide-tail"],Si=[zr]}else if(En===2)gi=["halfarrow-left","halfarrow-right"],Si=["xMinYMin","xMaxYMin"];else if(En===3)gi=["brace-left","brace-center","brace-right"],Si=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+En+" children.");for(var So=0;So<En;So++){var zs=new Sr(rn[So]),$o=new We([zs],{width:"400em",height:yn+"em",viewBox:"0 0 "+K+" "+gn,preserveAspectRatio:Si[So]+" slice"}),Di=xe.makeSvgSpan([gi[So]],[$o],T);if(En===1)return{span:Di,minWidth:Wr,height:yn};Di.style.height=yn+"em",Tr.push(Di)}return{span:xe.makeSpan(["stretchy"],Tr,T),minWidth:Wr,height:yn}}}var A=b(),C=A.span,L=A.minWidth,H=A.height;return C.height=H,C.style.height=H+"em",L>0&&(C.style.minWidth=L+"em"),C},ac=function(g,T,b,A){var C,L=g.height+g.depth+2*b;if(/fbox|color/.test(T)){if(C=xe.makeSpan(["stretchy",T],[],A),T==="fbox"){var H=A.color&&A.getColor();H&&(C.style.borderColor=H)}}else{var K=[];/^[bx]cancel$/.test(T)&&K.push(new kr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(T)&&K.push(new kr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var X=new We(K,{width:"100%",height:L+"em"});C=xe.makeSvgSpan([],[X],A)}return C.height=L,C.style.height=L+"em",C},Un={encloseSpan:ac,mathMLnode:Is,svgSpan:$a};function Pt(g,T){if(!g||g.type!==T)throw new Error("Expected node of type "+T+", but got "+(g?"node of type "+g.type:String(g)));return g}function Ls(g){var T=Ji(g);if(!T)throw new Error("Expected node of symbol group type, but got "+(g?"node of type "+g.type:String(g)));return T}function Ji(g){return g&&(g.type==="atom"||On.hasOwnProperty(g.type))?g:null}var Ua=function(g,T){var b,A,C;g&&g.type==="supsub"?(A=Pt(g.base,"accent"),b=A.base,g.base=b,C=da(j(g,T)),g.base=A):(A=Pt(g,"accent"),b=A.base);var L=j(b,T.havingCrampedStyle()),H=A.isShifty&&O.isCharacterBox(b),K=0;if(H){var X=O.getBaseElem(b),Te=j(X,T.havingCrampedStyle());K=Wi(Te).skew}var ve=Math.min(L.height,T.fontMetrics().xHeight),Ne;if(A.isStretchy)Ne=Un.svgSpan(A,T),Ne=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"elem",elem:Ne,wrapperClasses:["svg-align"],wrapperStyle:K>0?{width:"calc(100% - "+2*K+"em)",marginLeft:2*K+"em"}:void 0}]},T);else{var Ke,rt;A.label==="\\vec"?(Ke=xe.staticSvg("vec",T),rt=xe.svgData.vec[1]):(Ke=xe.makeOrd({mode:A.mode,text:A.label},T,"textord"),Ke=Wi(Ke),Ke.italic=0,rt=Ke.width),Ne=xe.makeSpan(["accent-body"],[Ke]);var yt=A.label==="\\textcircled";yt&&(Ne.classes.push("accent-full"),ve=L.height);var Nt=K;yt||(Nt-=rt/2),Ne.style.left=Nt+"em",A.label==="\\textcircled"&&(Ne.style.top=".2em"),Ne=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"kern",size:-ve},{type:"elem",elem:Ne}]},T)}var Gt=xe.makeSpan(["mord","accent"],[Ne],T);return C?(C.children[0]=Gt,C.height=Math.max(Gt.height,C.height),C.classes[0]="mord",C):Gt},Xi=function(g,T){var b=g.isStretchy?Un.mathMLnode(g.label):new Se.MathNode("mo",[ot(g.label,g.mode)]),A=new Se.MathNode("mover",[et(g.base,T),b]);return A.setAttribute("accent","true"),A},ma=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(g){return"\\"+g}).join("|"));Tt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(g,T){var b=T[0],A=!ma.test(g.funcName),C=!A||g.funcName==="\\widehat"||g.funcName==="\\widetilde"||g.funcName==="\\widecheck";return{type:"accent",mode:g.parser.mode,label:g.funcName,isStretchy:A,isShifty:C,base:b}},htmlBuilder:Ua,mathmlBuilder:Xi}),Tt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(g,T){var b=T[0];return{type:"accent",mode:g.parser.mode,label:g.funcName,isStretchy:!1,isShifty:!0,base:b}},htmlBuilder:Ua,mathmlBuilder:Xi}),Tt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"accentUnder",mode:b.mode,label:A,base:C}},htmlBuilder:function(g,T){var b=j(g.base,T),A=Un.svgSpan(g,T),C=g.label==="\\utilde"?.12:0,L=xe.makeVList({positionType:"top",positionData:b.height,children:[{type:"elem",elem:A,wrapperClasses:["svg-align"]},{type:"kern",size:C},{type:"elem",elem:b}]},T);return xe.makeSpan(["mord","accentunder"],[L],T)},mathmlBuilder:function(g,T){var b=Un.mathMLnode(g.label),A=new Se.MathNode("munder",[et(g.base,T),b]);return A.setAttribute("accentunder","true"),A}});var lo=function(g){var T=new Se.MathNode("mpadded",g?[g]:[]);return T.setAttribute("width","+0.6em"),T.setAttribute("lspace","0.3em"),T};Tt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(g,T,b){var A=g.parser,C=g.funcName;return{type:"xArrow",mode:A.mode,label:C,body:T[0],below:b[0]}},htmlBuilder:function(g,T){var b=T.style,A=T.havingStyle(b.sup()),C=xe.wrapFragment(j(g.body,A,T),T);C.classes.push("x-arrow-pad");var L;g.below&&(A=T.havingStyle(b.sub()),L=xe.wrapFragment(j(g.below,A,T),T),L.classes.push("x-arrow-pad"));var H=Un.svgSpan(g,T),K=-T.fontMetrics().axisHeight+.5*H.height,X=-T.fontMetrics().axisHeight-.5*H.height-.111;(C.depth>.25||g.label==="\\xleftequilibrium")&&(X-=C.depth);var Te;if(L){var ve=-T.fontMetrics().axisHeight+L.height+.5*H.height+.111;Te=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:X},{type:"elem",elem:H,shift:K},{type:"elem",elem:L,shift:ve}]},T)}else Te=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:X},{type:"elem",elem:H,shift:K}]},T);return Te.children[0].children[0].children[1].classes.push("svg-align"),xe.makeSpan(["mrel","x-arrow"],[Te],T)},mathmlBuilder:function(g,T){var b=Un.mathMLnode(g.label),A;if(g.body){var C=lo(et(g.body,T));if(g.below){var L=lo(et(g.below,T));A=new Se.MathNode("munderover",[b,L,C])}else A=new Se.MathNode("mover",[b,C])}else if(g.below){var H=lo(et(g.below,T));A=new Se.MathNode("munder",[b,H])}else A=lo(),A=new Se.MathNode("mover",[b,A]);return A}}),Tt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){for(var b=g.parser,A=Pt(T[0],"ordgroup"),C=A.body,L="",H=0;H<C.length;H++){var K=Pt(C[H],"textord");L+=K.text}var X=parseInt(L);if(isNaN(X))throw new u("\\@char has non-numeric argument "+L);return{type:"textord",mode:b.mode,text:String.fromCharCode(X)}}});var zl=function(g,T){var b=Bn(g.body,T.withColor(g.color),!1);return xe.makeFragment(b)},gd=function(g,T){var b=Bt(g.body,T.withColor(g.color)),A=new Se.MathNode("mstyle",b);return A.setAttribute("mathcolor",g.color),A};Tt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(g,T){var b=g.parser,A=Pt(T[0],"color-token").color,C=T[1];return{type:"color",mode:b.mode,color:A,body:Rn(C)}},htmlBuilder:zl,mathmlBuilder:gd}),Tt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(g,T){var b=g.parser,A=g.breakOnTokenText,C=Pt(T[0],"color-token").color;b.gullet.macros.set("\\current@color",C);var L=b.parseExpression(!0,A);return{type:"color",mode:b.mode,color:C,body:L}},htmlBuilder:zl,mathmlBuilder:gd}),Tt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(g,T,b){var A=g.parser,C=g.funcName,L=b[0],H=C==="\\cr",K=!1;return H||(A.settings.displayMode&&A.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?K=!1:K=!0),{type:"cr",mode:A.mode,newLine:K,newRow:H,size:L&&Pt(L,"size").value}},htmlBuilder:function(g,T){if(g.newRow)throw new u("\\cr valid only within a tabular/array environment");var b=xe.makeSpan(["mspace"],[],T);return g.newLine&&(b.classes.push("newline"),g.size&&(b.style.marginTop=on(g.size,T)+"em")),b},mathmlBuilder:function(g,T){var b=new Se.MathNode("mspace");return g.newLine&&(b.setAttribute("linebreak","newline"),g.size&&b.setAttribute("height",on(g.size,T)+"em")),b}});var Zo={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},fs=function(g){var T=g.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(T))throw new u("Expected a control sequence",g);return T},I0=function(g){var T=g.gullet.popToken();return T.text==="="&&(T=g.gullet.popToken(),T.text===" "&&(T=g.gullet.popToken())),T},ga=function(g,T,b,A){var C=g.gullet.macros.get(b.text);C==null&&(b.noexpand=!0,C={tokens:[b],numArgs:0,unexpandable:!g.gullet.isExpandable(b.text)}),g.gullet.macros.set(T,C,A)};Tt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(g){var T=g.parser,b=g.funcName;T.consumeSpaces();var A=T.fetch();if(Zo[A.text])return(b==="\\global"||b==="\\\\globallong")&&(A.text=Zo[A.text]),Pt(T.parseFunction(),"internal");throw new u("Invalid token after macro prefix",A)}}),Tt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0},handler:function(g){var T=g.parser,b=g.funcName,A=T.gullet.consumeArgs(1)[0];if(A.length!==1)throw new u("\\gdef's first argument must be a macro name");var C=A[0].text,L=0;for(A=T.gullet.consumeArgs(1)[0];A.length===1&&A[0].text==="#";){if(A=T.gullet.consumeArgs(1)[0],A.length!==1)throw new u('Invalid argument number length "'+A.length+'"');if(!/^[1-9]$/.test(A[0].text))throw new u('Invalid argument number "'+A[0].text+'"');if(L++,parseInt(A[0].text)!==L)throw new u('Argument number "'+A[0].text+'" out of order');A=T.gullet.consumeArgs(1)[0]}return(b==="\\edef"||b==="\\xdef")&&(A=T.gullet.expandTokens(A),A.reverse()),T.gullet.macros.set(C,{tokens:A,numArgs:L},b===Zo[b]),{type:"internal",mode:T.mode}}}),Tt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0},handler:function(g){var T=g.parser,b=g.funcName,A=fs(T.gullet.popToken());T.gullet.consumeSpaces();var C=I0(T);return ga(T,A,C,b==="\\\\globallet"),{type:"internal",mode:T.mode}}}),Tt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0},handler:function(g){var T=g.parser,b=g.funcName,A=fs(T.gullet.popToken()),C=T.gullet.popToken(),L=T.gullet.popToken();return ga(T,A,L,b==="\\\\globalfuture"),T.gullet.pushToken(L),T.gullet.pushToken(C),{type:"internal",mode:T.mode}}});var ya=function(g,T,b){var A=Dr.math[g]&&Dr.math[g].replace,C=vt(A||g,T,b);if(!C)throw new Error("Unsupported symbol "+g+" and font size "+T+".");return C},yd=function(g,T,b,A){var C=b.havingBaseStyle(T),L=xe.makeSpan(A.concat(C.sizingClasses(b)),[g],b),H=C.sizeMultiplier/b.sizeMultiplier;return L.height*=H,L.depth*=H,L.maxFontSize=C.sizeMultiplier,L},lc=function(g,T,b){var A=T.havingBaseStyle(b),C=(1-T.sizeMultiplier/A.sizeMultiplier)*T.fontMetrics().axisHeight;g.classes.push("delimcenter"),g.style.top=C+"em",g.height-=C,g.depth+=C},mp=function(g,T,b,A,C,L){var H=xe.makeSymbol(g,"Main-Regular",C,A),K=yd(H,T,A,L);return b&&lc(K,A,T),K},cm=function(g,T,b,A){return xe.makeSymbol(g,"Size"+T+"-Regular",b,A)},gp=function(g,T,b,A,C,L){var H=cm(g,T,C,A),K=yd(xe.makeSpan(["delimsizing","size"+T],[H],A),Ye.TEXT,A,L);return b&&lc(K,A,Ye.TEXT),K},Va=function(g,T,b){var A;T==="Size1-Regular"?A="delim-size1":A="delim-size4";var C=xe.makeSpan(["delimsizinginner",A],[xe.makeSpan([],[xe.makeSymbol(g,T,b)])]);return{type:"elem",elem:C}},uc={type:"kern",size:-.005},ms=function(g,T,b,A,C,L){var H,K,X,Te;H=X=Te=g,K=null;var ve="Size1-Regular";g==="\\uparrow"?X=Te="⏐":g==="\\Uparrow"?X=Te="‖":g==="\\downarrow"?H=X="⏐":g==="\\Downarrow"?H=X="‖":g==="\\updownarrow"?(H="\\uparrow",X="⏐",Te="\\downarrow"):g==="\\Updownarrow"?(H="\\Uparrow",X="‖",Te="\\Downarrow"):g==="["||g==="\\lbrack"?(H="⎡",X="⎢",Te="⎣",ve="Size4-Regular"):g==="]"||g==="\\rbrack"?(H="⎤",X="⎥",Te="⎦",ve="Size4-Regular"):g==="\\lfloor"||g==="⌊"?(X=H="⎢",Te="⎣",ve="Size4-Regular"):g==="\\lceil"||g==="⌈"?(H="⎡",X=Te="⎢",ve="Size4-Regular"):g==="\\rfloor"||g==="⌋"?(X=H="⎥",Te="⎦",ve="Size4-Regular"):g==="\\rceil"||g==="⌉"?(H="⎤",X=Te="⎥",ve="Size4-Regular"):g==="("||g==="\\lparen"?(H="⎛",X="⎜",Te="⎝",ve="Size4-Regular"):g===")"||g==="\\rparen"?(H="⎞",X="⎟",Te="⎠",ve="Size4-Regular"):g==="\\{"||g==="\\lbrace"?(H="⎧",K="⎨",Te="⎩",X="⎪",ve="Size4-Regular"):g==="\\}"||g==="\\rbrace"?(H="⎫",K="⎬",Te="⎭",X="⎪",ve="Size4-Regular"):g==="\\lgroup"||g==="⟮"?(H="⎧",Te="⎩",X="⎪",ve="Size4-Regular"):g==="\\rgroup"||g==="⟯"?(H="⎫",Te="⎭",X="⎪",ve="Size4-Regular"):g==="\\lmoustache"||g==="⎰"?(H="⎧",Te="⎭",X="⎪",ve="Size4-Regular"):(g==="\\rmoustache"||g==="⎱")&&(H="⎫",Te="⎩",X="⎪",ve="Size4-Regular");var Ne=ya(H,ve,C),Ke=Ne.height+Ne.depth,rt=ya(X,ve,C),yt=rt.height+rt.depth,Nt=ya(Te,ve,C),Gt=Nt.height+Nt.depth,Tr=0,Cr=1;if(K!==null){var rn=ya(K,ve,C);Tr=rn.height+rn.depth,Cr=2}var Wr=Ke+Gt+Tr,gn=Math.max(0,Math.ceil((T-Wr)/(Cr*yt))),yn=Wr+gn*Cr*yt,En=A.fontMetrics().axisHeight;b&&(En*=A.sizeMultiplier);var gi=yn/2-En,Si=(gn+1)*.005-yt,zr=[];if(zr.push(Va(Te,ve,C)),K===null)for(var So=0;So<gn;So++)zr.push(uc),zr.push(Va(X,ve,C));else{for(var zs=0;zs<gn;zs++)zr.push(uc),zr.push(Va(X,ve,C));zr.push({type:"kern",size:Si}),zr.push(Va(X,ve,C)),zr.push(uc),zr.push(Va(K,ve,C));for(var $o=0;$o<gn;$o++)zr.push(uc),zr.push(Va(X,ve,C))}if((X==="⎜"||X==="⎟")&&gn===0){var Di=xe.svgData.leftParenInner[2]/2;zr.push({type:"kern",size:-Di});var Qa=X==="⎜"?"leftParenInner":"rightParenInner",Ts=xe.staticSvg(Qa,A);zr.push({type:"elem",elem:Ts}),zr.push({type:"kern",size:-Di})}else zr.push({type:"kern",size:Si}),zr.push(Va(X,ve,C)),zr.push(uc);zr.push(Va(H,ve,C));var Ac=A.havingBaseStyle(Ye.TEXT),Md=xe.makeVList({positionType:"bottom",positionData:gi,children:zr},Ac);return yd(xe.makeSpan(["delimsizing","mult"],[Md],Ac),Ye.TEXT,A,L)},Yl=80,Td=.08,bd=function(g,T,b,A,C){var L=Gr(g,A,b),H=new Sr(g,L),K=new We([H],{width:"400em",height:T+"em",viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});return xe.makeSvgSpan(["hide-tail"],[K],C)},g5=function(g,T){var b=T.havingBaseSizing(),A=vd("\\surd",g*b.sizeMultiplier,Tp,b),C=b.sizeMultiplier,L=Math.max(0,T.minRuleThickness-T.fontMetrics().sqrtRuleThickness),H,K=0,X=0,Te=0,ve;return A.type==="small"?(Te=1e3+1e3*L+Yl,g<1?C=1:g<1.4&&(C=.7),K=(1+L+Td)/C,X=(1+L)/C,H=bd("sqrtMain",K,Te,L,T),H.style.minWidth="0.853em",ve=.833/C):A.type==="large"?(Te=(1e3+Yl)*L0[A.size],X=(L0[A.size]+L)/C,K=(L0[A.size]+L+Td)/C,H=bd("sqrtSize"+A.size,K,Te,L,T),H.style.minWidth="1.02em",ve=1/C):(K=g+L+Td,X=g+L,Te=Math.floor(1e3*g+L)+Yl,H=bd("sqrtTall",K,Te,L,T),H.style.minWidth="0.742em",ve=1.056),H.height=X,H.style.height=K+"em",{span:H,advanceWidth:ve,ruleWidth:(T.fontMetrics().sqrtRuleThickness+L)*C}},dm=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Hl=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],cc=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],L0=[0,1.2,1.8,2.4,3],y5=function(g,T,b,A,C){if(g==="<"||g==="\\lt"||g==="⟨"?g="\\langle":(g===">"||g==="\\gt"||g==="⟩")&&(g="\\rangle"),O.contains(dm,g)||O.contains(cc,g))return gp(g,T,!1,b,A,C);if(O.contains(Hl,g))return ms(g,L0[T],!1,b,A,C);throw new u("Illegal delimiter: '"+g+"'")},yp=[{type:"small",style:Ye.SCRIPTSCRIPT},{type:"small",style:Ye.SCRIPT},{type:"small",style:Ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hm=[{type:"small",style:Ye.SCRIPTSCRIPT},{type:"small",style:Ye.SCRIPT},{type:"small",style:Ye.TEXT},{type:"stack"}],Tp=[{type:"small",style:Ye.SCRIPTSCRIPT},{type:"small",style:Ye.SCRIPT},{type:"small",style:Ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ja=function(g){if(g.type==="small")return"Main-Regular";if(g.type==="large")return"Size"+g.size+"-Regular";if(g.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+g.type+"' here.")},vd=function(g,T,b,A){for(var C=Math.min(2,3-A.style.size),L=C;L<b.length&&b[L].type!=="stack";L++){var H=ya(g,ja(b[L]),"math"),K=H.height+H.depth;if(b[L].type==="small"){var X=A.havingBaseStyle(b[L].style);K*=X.sizeMultiplier}if(K>T)return b[L]}return b[b.length-1]},pm=function(g,T,b,A,C,L){g==="<"||g==="\\lt"||g==="⟨"?g="\\langle":(g===">"||g==="\\gt"||g==="⟩")&&(g="\\rangle");var H;O.contains(cc,g)?H=yp:O.contains(dm,g)?H=Tp:H=hm;var K=vd(g,T,H,A);return K.type==="small"?mp(g,K.style,b,A,C,L):K.type==="large"?gp(g,K.size,b,A,C,L):ms(g,T,b,A,C,L)},T5=function(g,T,b,A,C,L){var H=A.fontMetrics().axisHeight*A.sizeMultiplier,K=901,X=5/A.fontMetrics().ptPerEm,Te=Math.max(T-H,b+H),ve=Math.max(Te/500*K,2*Te-X);return pm(g,ve,!0,A,C,L)},Ta={sqrtImage:g5,sizedDelim:y5,customSizedDelim:pm,leftRightDelim:T5},bp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},fm=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function z0(g,T){var b=Ji(g);if(b&&O.contains(fm,b.text))return b;throw b?new u("Invalid delimiter '"+b.text+"' after '"+T.funcName+"'",g):new u("Invalid delimiter type '"+g.type+"'",g)}Tt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(g,T){var b=z0(T[0],g);return{type:"delimsizing",mode:g.parser.mode,size:bp[g.funcName].size,mclass:bp[g.funcName].mclass,delim:b.text}},htmlBuilder:function(g,T){return g.delim==="."?xe.makeSpan([g.mclass]):Ta.sizedDelim(g.delim,g.size,T,g.mode,[g.mclass])},mathmlBuilder:function(g){var T=[];g.delim!=="."&&T.push(ot(g.delim,g.mode));var b=new Se.MathNode("mo",T);return g.mclass==="mopen"||g.mclass==="mclose"?b.setAttribute("fence","true"):b.setAttribute("fence","false"),b}});function mm(g){if(!g.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Tt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(g,T){var b=g.parser.gullet.macros.get("\\current@color");if(b&&typeof b!="string")throw new u("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:g.parser.mode,delim:z0(T[0],g).text,color:b}}}),Tt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(g,T){var b=z0(T[0],g),A=g.parser;++A.leftrightDepth;var C=A.parseExpression(!1);--A.leftrightDepth,A.expect("\\right",!1);var L=Pt(A.parseFunction(),"leftright-right");return{type:"leftright",mode:A.mode,body:C,left:b.text,right:L.delim,rightColor:L.color}},htmlBuilder:function(g,T){mm(g);for(var b=Bn(g.body,T,!0,["mopen","mclose"]),A=0,C=0,L=!1,H=0;H<b.length;H++)b[H].isMiddle?L=!0:(A=Math.max(b[H].height,A),C=Math.max(b[H].depth,C));A*=T.sizeMultiplier,C*=T.sizeMultiplier;var K;if(g.left==="."?K=U(T,["mopen"]):K=Ta.leftRightDelim(g.left,A,C,T,g.mode,["mopen"]),b.unshift(K),L)for(var X=1;X<b.length;X++){var Te=b[X],ve=Te.isMiddle;ve&&(b[X]=Ta.leftRightDelim(ve.delim,A,C,ve.options,g.mode,[]))}var Ne;if(g.right===".")Ne=U(T,["mclose"]);else{var Ke=g.rightColor?T.withColor(g.rightColor):T;Ne=Ta.leftRightDelim(g.right,A,C,Ke,g.mode,["mclose"])}return b.push(Ne),xe.makeSpan(["minner"],b,T)},mathmlBuilder:function(g,T){mm(g);var b=Bt(g.body,T);if(g.left!=="."){var A=new Se.MathNode("mo",[ot(g.left,g.mode)]);A.setAttribute("fence","true"),b.unshift(A)}if(g.right!=="."){var C=new Se.MathNode("mo",[ot(g.right,g.mode)]);C.setAttribute("fence","true"),g.rightColor&&C.setAttribute("mathcolor",g.rightColor),b.push(C)}return Jt(b)}}),Tt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(g,T){var b=z0(T[0],g);if(!g.parser.leftrightDepth)throw new u("\\middle without preceding \\left",b);return{type:"middle",mode:g.parser.mode,delim:b.text}},htmlBuilder:function(g,T){var b;if(g.delim===".")b=U(T,[]);else{b=Ta.sizedDelim(g.delim,1,T,g.mode,[]);var A={delim:g.delim,options:T};b.isMiddle=A}return b},mathmlBuilder:function(g,T){var b=g.delim==="\\vert"||g.delim==="|"?ot("|","text"):ot(g.delim,g.mode),A=new Se.MathNode("mo",[b]);return A.setAttribute("fence","true"),A.setAttribute("lspace","0.05em"),A.setAttribute("rspace","0.05em"),A}});var dc=function(g,T){var b=xe.wrapFragment(j(g.body,T),T),A=g.label.substr(1),C=T.sizeMultiplier,L,H=0,K=O.isCharacterBox(g.body);if(A==="sout")L=xe.makeSpan(["stretchy","sout"]),L.height=T.fontMetrics().defaultRuleThickness/C,H=-.5*T.fontMetrics().xHeight;else{/cancel/.test(A)?K||b.classes.push("cancel-pad"):b.classes.push("boxpad");var X=0,Te=0;/box/.test(A)?(Te=Math.max(T.fontMetrics().fboxrule,T.minRuleThickness),X=T.fontMetrics().fboxsep+(A==="colorbox"?0:Te)):X=K?.2:0,L=Un.encloseSpan(b,A,X,T),/fbox|boxed|fcolorbox/.test(A)&&(L.style.borderStyle="solid",L.style.borderWidth=Te+"em"),H=b.depth+X,g.backgroundColor&&(L.style.backgroundColor=g.backgroundColor,g.borderColor&&(L.style.borderColor=g.borderColor))}var ve;return g.backgroundColor?ve=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:L,shift:H},{type:"elem",elem:b,shift:0}]},T):ve=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:0},{type:"elem",elem:L,shift:H,wrapperClasses:/cancel/.test(A)?["svg-align"]:[]}]},T),/cancel/.test(A)&&(ve.height=b.height,ve.depth=b.depth),/cancel/.test(A)&&!K?xe.makeSpan(["mord","cancel-lap"],[ve],T):xe.makeSpan(["mord"],[ve],T)},zn=function(g,T){var b=0,A=new Se.MathNode(g.label.indexOf("colorbox")>-1?"mpadded":"menclose",[et(g.body,T)]);switch(g.label){case"\\cancel":A.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":A.setAttribute("notation","downdiagonalstrike");break;case"\\sout":A.setAttribute("notation","horizontalstrike");break;case"\\fbox":A.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(b=T.fontMetrics().fboxsep*T.fontMetrics().ptPerEm,A.setAttribute("width","+"+2*b+"pt"),A.setAttribute("height","+"+2*b+"pt"),A.setAttribute("lspace",b+"pt"),A.setAttribute("voffset",b+"pt"),g.label==="\\fcolorbox"){var C=Math.max(T.fontMetrics().fboxrule,T.minRuleThickness);A.setAttribute("style","border: "+C+"em solid "+String(g.borderColor))}break;case"\\xcancel":A.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return g.backgroundColor&&A.setAttribute("mathbackground",g.backgroundColor),A};Tt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(g,T,b){var A=g.parser,C=g.funcName,L=Pt(T[0],"color-token").color,H=T[1];return{type:"enclose",mode:A.mode,label:C,backgroundColor:L,body:H}},htmlBuilder:dc,mathmlBuilder:zn}),Tt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(g,T,b){var A=g.parser,C=g.funcName,L=Pt(T[0],"color-token").color,H=Pt(T[1],"color-token").color,K=T[2];return{type:"enclose",mode:A.mode,label:C,backgroundColor:H,borderColor:L,body:K}},htmlBuilder:dc,mathmlBuilder:zn}),Tt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(g,T){var b=g.parser;return{type:"enclose",mode:b.mode,label:"\\fbox",body:T[0]}}}),Tt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(g,T,b){var A=g.parser,C=g.funcName,L=T[0];return{type:"enclose",mode:A.mode,label:C,body:L}},htmlBuilder:dc,mathmlBuilder:zn});var gm={};function ba(g){for(var T=g.type,b=g.names,A=g.props,C=g.handler,L=g.htmlBuilder,H=g.mathmlBuilder,K={type:T,numArgs:A.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:C},X=0;X<b.length;++X)gm[b[X]]=K;L&&(Za[T]=L),H&&(Ho[T]=H)}function hc(g){var T=[];g.consumeSpaces();for(var b=g.fetch().text;b==="\\hline"||b==="\\hdashline";)g.consume(),T.push(b==="\\hdashline"),g.consumeSpaces(),b=g.fetch().text;return T}function Ga(g,T,b){var A=T.hskipBeforeAndAfter,C=T.addJot,L=T.cols,H=T.arraystretch,K=T.colSeparationType;if(g.gullet.beginGroup(),g.gullet.macros.set("\\\\","\\cr"),!H){var X=g.gullet.expandMacroAsText("\\arraystretch");if(X==null)H=1;else if(H=parseFloat(X),!H||H<0)throw new u("Invalid \\arraystretch: "+X)}g.gullet.beginGroup();var Te=[],ve=[Te],Ne=[],Ke=[];for(Ke.push(hc(g));;){var rt=g.parseExpression(!1,"\\cr");g.gullet.endGroup(),g.gullet.beginGroup(),rt={type:"ordgroup",mode:g.mode,body:rt},b&&(rt={type:"styling",mode:g.mode,style:b,body:[rt]}),Te.push(rt);var yt=g.fetch().text;if(yt==="&")g.consume();else if(yt==="\\end"){Te.length===1&&rt.type==="styling"&&rt.body[0].body.length===0&&ve.pop(),Ke.length<ve.length+1&&Ke.push([]);break}else if(yt==="\\cr"){var Nt=Pt(g.parseFunction(),"cr");Ne.push(Nt.size),Ke.push(hc(g)),Te=[],ve.push(Te)}else throw new u("Expected & or \\\\ or \\cr or \\end",g.nextToken)}return g.gullet.endGroup(),g.gullet.endGroup(),{type:"array",mode:g.mode,addJot:C,arraystretch:H,body:ve,cols:L,rowGaps:Ne,hskipBeforeAndAfter:A,hLinesBeforeRow:Ke,colSeparationType:K}}function pc(g){return g.substr(0,1)==="d"?"display":"text"}var va=function(g,T){var b,A,C=g.body.length,L=g.hLinesBeforeRow,H=0,K=new Array(C),X=[],Te=Math.max(T.fontMetrics().arrayRuleWidth,T.minRuleThickness),ve=1/T.fontMetrics().ptPerEm,Ne=5*ve;if(g.colSeparationType&&g.colSeparationType==="small"){var Ke=T.havingStyle(Ye.SCRIPT).sizeMultiplier;Ne=.2778*(Ke/T.sizeMultiplier)}var rt=12*ve,yt=3*ve,Nt=g.arraystretch*rt,Gt=.7*Nt,Tr=.3*Nt,Cr=0;function rn(q){for(var oe=0;oe<q.length;++oe)oe>0&&(Cr+=.25),X.push({pos:Cr,isDashed:q[oe]})}for(rn(L[0]),b=0;b<g.body.length;++b){var Wr=g.body[b],gn=Gt,yn=Tr;H<Wr.length&&(H=Wr.length);var En=new Array(Wr.length);for(A=0;A<Wr.length;++A){var gi=j(Wr[A],T);yn<gi.depth&&(yn=gi.depth),gn<gi.height&&(gn=gi.height),En[A]=gi}var Si=g.rowGaps[b],zr=0;Si&&(zr=on(Si,T),zr>0&&(zr+=Tr,yn<zr&&(yn=zr),zr=0)),g.addJot&&(yn+=yt),En.height=gn,En.depth=yn,Cr+=gn,En.pos=Cr,Cr+=yn+zr,K[b]=En,rn(L[b+1])}var So=Cr/2+T.fontMetrics().axisHeight,zs=g.cols||[],$o=[],Di,Qa;for(A=0,Qa=0;A<H||Qa<zs.length;++A,++Qa){for(var Ts=zs[Qa]||{},Ac=!0;Ts.type==="separator";){if(Ac||(Di=xe.makeSpan(["arraycolsep"],[]),Di.style.width=T.fontMetrics().doubleRuleSep+"em",$o.push(Di)),Ts.separator==="|"||Ts.separator===":"){var Md=Ts.separator==="|"?"solid":"dashed",U0=xe.makeSpan(["vertical-separator"],[],T);U0.style.height=Cr+"em",U0.style.borderRightWidth=Te+"em",U0.style.borderRightStyle=Md,U0.style.margin="0 -"+Te/2+"em",U0.style.verticalAlign=-(Cr-So)+"em",$o.push(U0)}else throw new u("Invalid separator type: "+Ts.separator);Qa++,Ts=zs[Qa]||{},Ac=!1}if(!(A>=H)){var V0=void 0;(A>0||g.hskipBeforeAndAfter)&&(V0=O.deflt(Ts.pregap,Ne),V0!==0&&(Di=xe.makeSpan(["arraycolsep"],[]),Di.style.width=V0+"em",$o.push(Di)));var j0=[];for(b=0;b<C;++b){var Rd=K[b],Bd=Rd[A];if(Bd){var y=Rd.pos-So;Bd.depth=Rd.depth,Bd.height=Rd.height,j0.push({type:"elem",elem:Bd,shift:y})}}j0=xe.makeVList({positionType:"individualShift",children:j0},T),j0=xe.makeSpan(["col-align-"+(Ts.align||"c")],[j0]),$o.push(j0),(A<H-1||g.hskipBeforeAndAfter)&&(V0=O.deflt(Ts.postgap,Ne),V0!==0&&(Di=xe.makeSpan(["arraycolsep"],[]),Di.style.width=V0+"em",$o.push(Di)))}}if(K=xe.makeSpan(["mtable"],$o),X.length>0){for(var E=xe.makeLineSpan("hline",T,Te),S=xe.makeLineSpan("hdashline",T,Te),N=[{type:"elem",elem:K,shift:0}];X.length>0;){var M=X.pop(),Z=M.pos-So;M.isDashed?N.push({type:"elem",elem:S,shift:Z}):N.push({type:"elem",elem:E,shift:Z})}K=xe.makeVList({positionType:"individualShift",children:N},T)}return xe.makeSpan(["mord"],[K],T)},b5={c:"center ",l:"left ",r:"right "},qa=function(g,T){var b=new Se.MathNode("mtable",g.body.map(function(Cr){return new Se.MathNode("mtr",Cr.map(function(rn){return new Se.MathNode("mtd",[et(rn,T)])}))})),A=g.arraystretch===.5?.1:.16+g.arraystretch-1+(g.addJot?.09:0);b.setAttribute("rowspacing",A+"em");var C="",L="";if(g.cols&&g.cols.length>0){var H=g.cols,K="",X=!1,Te=0,ve=H.length;H[0].type==="separator"&&(C+="top ",Te=1),H[H.length-1].type==="separator"&&(C+="bottom ",ve-=1);for(var Ne=Te;Ne<ve;Ne++)H[Ne].type==="align"?(L+=b5[H[Ne].align],X&&(K+="none "),X=!0):H[Ne].type==="separator"&&X&&(K+=H[Ne].separator==="|"?"solid ":"dashed ",X=!1);b.setAttribute("columnalign",L.trim()),/[sd]/.test(K)&&b.setAttribute("columnlines",K.trim())}if(g.colSeparationType==="align"){for(var Ke=g.cols||[],rt="",yt=1;yt<Ke.length;yt++)rt+=yt%2?"0em ":"1em ";b.setAttribute("columnspacing",rt.trim())}else g.colSeparationType==="alignat"?b.setAttribute("columnspacing","0em"):g.colSeparationType==="small"?b.setAttribute("columnspacing","0.2778em"):b.setAttribute("columnspacing","1em");var Nt="",Gt=g.hLinesBeforeRow;C+=Gt[0].length>0?"left ":"",C+=Gt[Gt.length-1].length>0?"right ":"";for(var Tr=1;Tr<Gt.length-1;Tr++)Nt+=Gt[Tr].length===0?"none ":Gt[Tr][0]?"dashed ":"solid ";return/[sd]/.test(Nt)&&b.setAttribute("rowlines",Nt.trim()),C!==""&&(b=new Se.MathNode("menclose",[b]),b.setAttribute("notation",C.trim())),g.arraystretch&&g.arraystretch<1&&(b=new Se.MathNode("mstyle",[b]),b.setAttribute("scriptlevel","1")),b},ym=function(g,T){var b=[],A=Ga(g.parser,{cols:b,addJot:!0},"display"),C,L=0,H={type:"ordgroup",mode:g.mode,body:[]};if(T[0]&&T[0].type==="ordgroup"){for(var K="",X=0;X<T[0].body.length;X++){var Te=Pt(T[0].body[X],"textord");K+=Te.text}C=Number(K),L=C*2}var ve=!L;A.body.forEach(function(yt){for(var Nt=1;Nt<yt.length;Nt+=2){var Gt=Pt(yt[Nt],"styling"),Tr=Pt(Gt.body[0],"ordgroup");Tr.body.unshift(H)}if(ve)L<yt.length&&(L=yt.length);else{var Cr=yt.length/2;if(C<Cr)throw new u("Too many math in a row: "+("expected "+C+", but got "+Cr),yt[0])}});for(var Ne=0;Ne<L;++Ne){var Ke="r",rt=0;Ne%2===1?Ke="l":Ne>0&&ve&&(rt=1),b[Ne]={type:"align",align:Ke,pregap:rt,postgap:0}}return A.colSeparationType=ve?"align":"alignat",A};ba({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(g,T){var b=Ji(T[0]),A=b?[T[0]]:Pt(T[0],"ordgroup").body,C=A.map(function(H){var K=Ls(H),X=K.text;if("lcr".indexOf(X)!==-1)return{type:"align",align:X};if(X==="|")return{type:"separator",separator:"|"};if(X===":")return{type:"separator",separator:":"};throw new u("Unknown column alignment: "+X,H)}),L={cols:C,hskipBeforeAndAfter:!0};return Ga(g.parser,L,pc(g.envName))},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(g){var T={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[g.envName],b={hskipBeforeAndAfter:!1},A=Ga(g.parser,b,pc(g.envName));return T?{type:"leftright",mode:g.mode,body:[A],left:T[0],right:T[1],rightColor:void 0}:A},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(g){var T={arraystretch:.5},b=Ga(g.parser,T,"script");return b.colSeparationType="small",b},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["subarray"],props:{numArgs:1},handler:function(g,T){var b=Ji(T[0]),A=b?[T[0]]:Pt(T[0],"ordgroup").body,C=A.map(function(H){var K=Ls(H),X=K.text;if("lc".indexOf(X)!==-1)return{type:"align",align:X};throw new u("Unknown column alignment: "+X,H)});if(C.length>1)throw new u("{subarray} can contain only one column");var L={cols:C,hskipBeforeAndAfter:!1,arraystretch:.5};if(L=Ga(g.parser,L,"script"),L.body.length>0&&L.body[0].length>1)throw new u("{subarray} can contain only one column");return L},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(g){var T={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},b=Ga(g.parser,T,pc(g.envName));return{type:"leftright",mode:g.mode,body:[b],left:g.envName.indexOf("r")>-1?".":"\\{",right:g.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["aligned"],props:{numArgs:0},handler:ym,htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["gathered"],props:{numArgs:0},handler:function(g){var T={cols:[{type:"align",align:"c"}],addJot:!0};return Ga(g.parser,T,"display")},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["alignedat"],props:{numArgs:1},handler:ym,htmlBuilder:va,mathmlBuilder:qa}),Tt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(g,T){throw new u(g.funcName+" valid only within array environment")}});var Tm=gm,bm=Tm;Tt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];if(C.type!=="ordgroup")throw new u("Invalid environment name",C);for(var L="",H=0;H<C.body.length;++H)L+=Pt(C.body[H],"textord").text;if(A==="\\begin"){if(!bm.hasOwnProperty(L))throw new u("No such environment: "+L,C);var K=bm[L],X=b.parseArguments("\\begin{"+L+"}",K),Te=X.args,ve=X.optArgs,Ne={mode:b.mode,envName:L,parser:b},Ke=K.handler(Ne,Te,ve);b.expect("\\end",!1);var rt=b.nextToken,yt=Pt(b.parseFunction(),"environment");if(yt.name!==L)throw new u("Mismatch: \\begin{"+L+"} matched by \\end{"+yt.name+"}",rt);return Ke}return{type:"environment",mode:b.mode,name:L,nameGroup:C}}});var v5=xe.makeSpan;function vm(g,T){var b=Bn(g.body,T,!0);return v5([g.mclass],b,T)}function Ad(g,T){var b,A=Bt(g.body,T);return g.mclass==="minner"?Se.newDocumentFragment(A):(g.mclass==="mord"?g.isCharacterBox?(b=A[0],b.type="mi"):b=new Se.MathNode("mi",A):(g.isCharacterBox?(b=A[0],b.type="mo"):b=new Se.MathNode("mo",A),g.mclass==="mbin"?(b.attributes.lspace="0.22em",b.attributes.rspace="0.22em"):g.mclass==="mpunct"?(b.attributes.lspace="0em",b.attributes.rspace="0.17em"):(g.mclass==="mopen"||g.mclass==="mclose")&&(b.attributes.lspace="0em",b.attributes.rspace="0em")),b)}Tt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"mclass",mode:b.mode,mclass:"m"+A.substr(5),body:Rn(C),isCharacterBox:O.isCharacterBox(C)}},htmlBuilder:vm,mathmlBuilder:Ad});var fc=function(g){var T=g.type==="ordgroup"&&g.body.length?g.body[0]:g;return T.type==="atom"&&(T.family==="bin"||T.family==="rel")?"m"+T.family:"mord"};Tt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(g,T){var b=g.parser;return{type:"mclass",mode:b.mode,mclass:fc(T[0]),body:[T[1]],isCharacterBox:O.isCharacterBox(T[1])}}}),Tt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[1],L=T[0],H;A!=="\\stackrel"?H=fc(C):H="mrel";var K={type:"op",mode:C.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:A!=="\\stackrel",body:Rn(C)},X={type:"supsub",mode:L.mode,base:K,sup:A==="\\underset"?null:L,sub:A==="\\underset"?L:null};return{type:"mclass",mode:b.mode,mclass:H,body:[X],isCharacterBox:O.isCharacterBox(X)}},htmlBuilder:vm,mathmlBuilder:Ad});var vp=function(g,T){var b=g.font,A=T.withFont(b);return j(g.body,A)},mc=function(g,T){var b=g.font,A=T.withFont(b);return et(g.body,A)},Am={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Tt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0],L=A;return L in Am&&(L=Am[L]),{type:"font",mode:b.mode,font:L.slice(1),body:C}},htmlBuilder:vp,mathmlBuilder:mc}),Tt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(g,T){var b=g.parser,A=T[0],C=O.isCharacterBox(A);return{type:"mclass",mode:b.mode,mclass:fc(A),body:[{type:"font",mode:b.mode,font:"boldsymbol",body:A}],isCharacterBox:C}}}),Tt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName,C=g.breakOnTokenText,L=b.mode,H=b.parseExpression(!0,C),K="math"+A.slice(1);return{type:"font",mode:L,font:K,body:{type:"ordgroup",mode:b.mode,body:H}}},htmlBuilder:vp,mathmlBuilder:mc});var Ap=function(g,T){var b=T;return g==="display"?b=b.id>=Ye.SCRIPT.id?b.text():Ye.DISPLAY:g==="text"&&b.size===Ye.DISPLAY.size?b=Ye.TEXT:g==="script"?b=Ye.SCRIPT:g==="scriptscript"&&(b=Ye.SCRIPTSCRIPT),b},gc=function(g,T){var b=Ap(g.size,T.style),A=b.fracNum(),C=b.fracDen(),L;L=T.havingStyle(A);var H=j(g.numer,L,T);if(g.continued){var K=8.5/T.fontMetrics().ptPerEm,X=3.5/T.fontMetrics().ptPerEm;H.height=H.height<K?K:H.height,H.depth=H.depth<X?X:H.depth}L=T.havingStyle(C);var Te=j(g.denom,L,T),ve,Ne,Ke;g.hasBarLine?(g.barSize?(Ne=on(g.barSize,T),ve=xe.makeLineSpan("frac-line",T,Ne)):ve=xe.makeLineSpan("frac-line",T),Ne=ve.height,Ke=ve.height):(ve=null,Ne=0,Ke=T.fontMetrics().defaultRuleThickness);var rt,yt,Nt;b.size===Ye.DISPLAY.size||g.size==="display"?(rt=T.fontMetrics().num1,Ne>0?yt=3*Ke:yt=7*Ke,Nt=T.fontMetrics().denom1):(Ne>0?(rt=T.fontMetrics().num2,yt=Ke):(rt=T.fontMetrics().num3,yt=3*Ke),Nt=T.fontMetrics().denom2);var Gt;if(ve){var Tr=T.fontMetrics().axisHeight;rt-H.depth-(Tr+.5*Ne)<yt&&(rt+=yt-(rt-H.depth-(Tr+.5*Ne))),Tr-.5*Ne-(Te.height-Nt)<yt&&(Nt+=yt-(Tr-.5*Ne-(Te.height-Nt)));var Cr=-(Tr-.5*Ne);Gt=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Te,shift:Nt},{type:"elem",elem:ve,shift:Cr},{type:"elem",elem:H,shift:-rt}]},T)}else{var rn=rt-H.depth-(Te.height-Nt);rn<yt&&(rt+=.5*(yt-rn),Nt+=.5*(yt-rn)),Gt=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Te,shift:Nt},{type:"elem",elem:H,shift:-rt}]},T)}L=T.havingStyle(b),Gt.height*=L.sizeMultiplier/T.sizeMultiplier,Gt.depth*=L.sizeMultiplier/T.sizeMultiplier;var Wr;b.size===Ye.DISPLAY.size?Wr=T.fontMetrics().delim1:Wr=T.fontMetrics().delim2;var gn,yn;return g.leftDelim==null?gn=U(T,["mopen"]):gn=Ta.customSizedDelim(g.leftDelim,Wr,!0,T.havingStyle(b),g.mode,["mopen"]),g.continued?yn=xe.makeSpan([]):g.rightDelim==null?yn=U(T,["mclose"]):yn=Ta.customSizedDelim(g.rightDelim,Wr,!0,T.havingStyle(b),g.mode,["mclose"]),xe.makeSpan(["mord"].concat(L.sizingClasses(T)),[gn,xe.makeSpan(["mfrac"],[Gt]),yn],T)},yc=function(g,T){var b=new Se.MathNode("mfrac",[et(g.numer,T),et(g.denom,T)]);if(!g.hasBarLine)b.setAttribute("linethickness","0px");else if(g.barSize){var A=on(g.barSize,T);b.setAttribute("linethickness",A+"em")}var C=Ap(g.size,T.style);if(C.size!==T.style.size){b=new Se.MathNode("mstyle",[b]);var L=C.size===Ye.DISPLAY.size?"true":"false";b.setAttribute("displaystyle",L),b.setAttribute("scriptlevel","0")}if(g.leftDelim!=null||g.rightDelim!=null){var H=[];if(g.leftDelim!=null){var K=new Se.MathNode("mo",[new Se.TextNode(g.leftDelim.replace("\\",""))]);K.setAttribute("fence","true"),H.push(K)}if(H.push(b),g.rightDelim!=null){var X=new Se.MathNode("mo",[new Se.TextNode(g.rightDelim.replace("\\",""))]);X.setAttribute("fence","true"),H.push(X)}return Jt(H)}return b};Tt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0],L=T[1],H,K=null,X=null,Te="auto";switch(A){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":H=!0;break;case"\\\\atopfrac":H=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":H=!1,K="(",X=")";break;case"\\\\bracefrac":H=!1,K="\\{",X="\\}";break;case"\\\\brackfrac":H=!1,K="[",X="]";break;default:throw new Error("Unrecognized genfrac command")}switch(A){case"\\cfrac":case"\\dfrac":case"\\dbinom":Te="display";break;case"\\tfrac":case"\\tbinom":Te="text";break}return{type:"genfrac",mode:b.mode,continued:A==="\\cfrac",numer:C,denom:L,hasBarLine:H,leftDelim:K,rightDelim:X,size:Te,barSize:null}},htmlBuilder:gc,mathmlBuilder:yc}),Tt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(g){var T=g.parser,b=g.funcName,A=g.token,C;switch(b){case"\\over":C="\\frac";break;case"\\choose":C="\\binom";break;case"\\atop":C="\\\\atopfrac";break;case"\\brace":C="\\\\bracefrac";break;case"\\brack":C="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:T.mode,replaceWith:C,token:A}}});var Em=["display","text","script","scriptscript"],wm=function(g){var T=null;return g.length>0&&(T=g,T=T==="."?null:T),T};Tt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(g,T){var b=g.parser,A=T[4],C=T[5],L=T[0].type==="atom"&&T[0].family==="open"?wm(T[0].text):null,H=T[1].type==="atom"&&T[1].family==="close"?wm(T[1].text):null,K=Pt(T[2],"size"),X,Te=null;K.isBlank?X=!0:(Te=K.value,X=Te.number>0);var ve="auto",Ne=T[3];if(Ne.type==="ordgroup"){if(Ne.body.length>0){var Ke=Pt(Ne.body[0],"textord");ve=Em[Number(Ke.text)]}}else Ne=Pt(Ne,"textord"),ve=Em[Number(Ne.text)];return{type:"genfrac",mode:b.mode,numer:A,denom:C,continued:!1,hasBarLine:X,barSize:Te,leftDelim:L,rightDelim:H,size:ve}},htmlBuilder:gc,mathmlBuilder:yc}),Tt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(g,T){var b=g.parser;g.funcName;var A=g.token;return{type:"infix",mode:b.mode,replaceWith:"\\\\abovefrac",size:Pt(T[0],"size").value,token:A}}}),Tt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(g,T){var b=g.parser;g.funcName;var A=T[0],C=k(Pt(T[1],"infix").size),L=T[2],H=C.number>0;return{type:"genfrac",mode:b.mode,numer:A,denom:L,continued:!1,hasBarLine:H,barSize:C,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:gc,mathmlBuilder:yc});var Ed=function(g,T){var b=T.style,A,C;g.type==="supsub"?(A=g.sup?j(g.sup,T.havingStyle(b.sup()),T):j(g.sub,T.havingStyle(b.sub()),T),C=Pt(g.base,"horizBrace")):C=Pt(g,"horizBrace");var L=j(C.base,T.havingBaseStyle(Ye.DISPLAY)),H=Un.svgSpan(C,T),K;if(C.isOver?(K=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"kern",size:.1},{type:"elem",elem:H}]},T),K.children[0].children[0].children[1].classes.push("svg-align")):(K=xe.makeVList({positionType:"bottom",positionData:L.depth+.1+H.height,children:[{type:"elem",elem:H},{type:"kern",size:.1},{type:"elem",elem:L}]},T),K.children[0].children[0].children[0].classes.push("svg-align")),A){var X=xe.makeSpan(["mord",C.isOver?"mover":"munder"],[K],T);C.isOver?K=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:X},{type:"kern",size:.2},{type:"elem",elem:A}]},T):K=xe.makeVList({positionType:"bottom",positionData:X.depth+.2+A.height+A.depth,children:[{type:"elem",elem:A},{type:"kern",size:.2},{type:"elem",elem:X}]},T)}return xe.makeSpan(["mord",C.isOver?"mover":"munder"],[K],T)},Sm=function(g,T){var b=Un.mathMLnode(g.label);return new Se.MathNode(g.isOver?"mover":"munder",[et(g.base,T),b])};Tt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=g.funcName;return{type:"horizBrace",mode:b.mode,label:A,isOver:/^\\over/.test(A),base:T[0]}},htmlBuilder:Ed,mathmlBuilder:Sm}),Tt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=T[1],C=Pt(T[0],"url").url;return b.settings.isTrusted({command:"\\href",url:C})?{type:"href",mode:b.mode,href:C,body:Rn(A)}:b.formatUnsupportedCmd("\\href")},htmlBuilder:function(g,T){var b=Bn(g.body,T,!1);return xe.makeAnchor(g.href,[],b,T)},mathmlBuilder:function(g,T){var b=at(g.body,T);return b instanceof we||(b=new we("mrow",[b])),b.setAttribute("href",g.href),b}}),Tt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=Pt(T[0],"url").url;if(!b.settings.isTrusted({command:"\\url",url:A}))return b.formatUnsupportedCmd("\\url");for(var C=[],L=0;L<A.length;L++){var H=A[L];H==="~"&&(H="\\textasciitilde"),C.push({type:"textord",mode:"text",text:H})}var K={type:"text",mode:b.mode,font:"\\texttt",body:C};return{type:"href",mode:b.mode,href:A,body:Rn(K)}}}),Tt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName;g.token;var C=Pt(T[0],"raw").string,L=T[1];b.settings.strict&&b.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var H,K={};switch(A){case"\\htmlClass":K.class=C,H={command:"\\htmlClass",class:C};break;case"\\htmlId":K.id=C,H={command:"\\htmlId",id:C};break;case"\\htmlStyle":K.style=C,H={command:"\\htmlStyle",style:C};break;case"\\htmlData":{for(var X=C.split(","),Te=0;Te<X.length;Te++){var ve=X[Te].split("=");if(ve.length!==2)throw new u("Error parsing key-value for \\htmlData");K["data-"+ve[0].trim()]=ve[1].trim()}H={command:"\\htmlData",attributes:K};break}default:throw new Error("Unrecognized html command")}return b.settings.isTrusted(H)?{type:"html",mode:b.mode,attributes:K,body:Rn(L)}:b.formatUnsupportedCmd(A)},htmlBuilder:function(g,T){var b=Bn(g.body,T,!1),A=["enclosing"];g.attributes.class&&A.push.apply(A,g.attributes.class.trim().split(/\s+/));var C=xe.makeSpan(A,b,T);for(var L in g.attributes)L!=="class"&&g.attributes.hasOwnProperty(L)&&C.setAttribute(L,g.attributes[L]);return C},mathmlBuilder:function(g,T){return at(g.body,T)}}),Tt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(g,T){var b=g.parser;return{type:"htmlmathml",mode:b.mode,html:Rn(T[0]),mathml:Rn(T[1])}},htmlBuilder:function(g,T){var b=Bn(g.html,T,!1);return xe.makeFragment(b)},mathmlBuilder:function(g,T){return at(g.mathml,T)}});var Y0=function(g){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(g))return{number:+g,unit:"bp"};var T=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(g);if(!T)throw new u("Invalid size: '"+g+"' in \\includegraphics");var b={number:+(T[1]+T[2]),unit:T[3]};if(!Rl(b))throw new u("Invalid unit: '"+b.unit+"' in \\includegraphics.");return b};Tt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(g,T,b){var A=g.parser,C={number:0,unit:"em"},L={number:.9,unit:"em"},H={number:0,unit:"em"},K="";if(b[0])for(var X=Pt(b[0],"raw").string,Te=X.split(","),ve=0;ve<Te.length;ve++){var Ne=Te[ve].split("=");if(Ne.length===2){var Ke=Ne[1].trim();switch(Ne[0].trim()){case"alt":K=Ke;break;case"width":C=Y0(Ke);break;case"height":L=Y0(Ke);break;case"totalheight":H=Y0(Ke);break;default:throw new u("Invalid key: '"+Ne[0]+"' in \\includegraphics.")}}}var rt=Pt(T[0],"url").url;return K===""&&(K=rt,K=K.replace(/^.*[\\/]/,""),K=K.substring(0,K.lastIndexOf("."))),A.settings.isTrusted({command:"\\includegraphics",url:rt})?{type:"includegraphics",mode:A.mode,alt:K,width:C,height:L,totalheight:H,src:rt}:A.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(g,T){var b=on(g.height,T),A=0;g.totalheight.number>0&&(A=on(g.totalheight,T)-b,A=Number(A.toFixed(2)));var C=0;g.width.number>0&&(C=on(g.width,T));var L={height:b+A+"em"};C>0&&(L.width=C+"em"),A>0&&(L.verticalAlign=-A+"em");var H=new Be(g.src,g.alt,L);return H.height=b,H.depth=A,H},mathmlBuilder:function(g,T){var b=new Se.MathNode("mglyph",[]);b.setAttribute("alt",g.alt);var A=on(g.height,T),C=0;if(g.totalheight.number>0&&(C=on(g.totalheight,T)-A,C=C.toFixed(2),b.setAttribute("valign","-"+C+"em")),b.setAttribute("height",A+C+"em"),g.width.number>0){var L=on(g.width,T);b.setAttribute("width",L+"em")}return b.setAttribute("src",g.src),b}}),Tt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName,C=Pt(T[0],"size");if(b.settings.strict){var L=A[1]==="m",H=C.value.unit==="mu";L?(H||b.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" supports only mu units, "+("not "+C.value.unit+" units")),b.mode!=="math"&&b.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" works only in math mode")):H&&b.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" doesn't support mu units")}return{type:"kern",mode:b.mode,dimension:C.value}},htmlBuilder:function(g,T){return xe.makeGlue(g.dimension,T)},mathmlBuilder:function(g,T){var b=on(g.dimension,T);return new Se.SpaceNode(b)}}),Tt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"lap",mode:b.mode,alignment:A.slice(5),body:C}},htmlBuilder:function(g,T){var b;g.alignment==="clap"?(b=xe.makeSpan([],[j(g.body,T)]),b=xe.makeSpan(["inner"],[b],T)):b=xe.makeSpan(["inner"],[j(g.body,T)]);var A=xe.makeSpan(["fix"],[]),C=xe.makeSpan([g.alignment],[b,A],T),L=xe.makeSpan(["strut"]);return L.style.height=C.height+C.depth+"em",L.style.verticalAlign=-C.depth+"em",C.children.unshift(L),C=xe.makeSpan(["thinbox"],[C],T),xe.makeSpan(["mord","vbox"],[C],T)},mathmlBuilder:function(g,T){var b=new Se.MathNode("mpadded",[et(g.body,T)]);if(g.alignment!=="rlap"){var A=g.alignment==="llap"?"-1":"-0.5";b.setAttribute("lspace",A+"width")}return b.setAttribute("width","0px"),b}}),Tt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(g,T){var b=g.funcName,A=g.parser,C=A.mode;A.switchMode("math");var L=b==="\\("?"\\)":"$",H=A.parseExpression(!1,L);return A.expect(L),A.switchMode(C),{type:"styling",mode:A.mode,style:"text",body:H}}}),Tt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(g,T){throw new u("Mismatched "+g.funcName)}});var wd=function(g,T){switch(T.style.size){case Ye.DISPLAY.size:return g.display;case Ye.TEXT.size:return g.text;case Ye.SCRIPT.size:return g.script;case Ye.SCRIPTSCRIPT.size:return g.scriptscript;default:return g.text}};Tt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(g,T){var b=g.parser;return{type:"mathchoice",mode:b.mode,display:Rn(T[0]),text:Rn(T[1]),script:Rn(T[2]),scriptscript:Rn(T[3])}},htmlBuilder:function(g,T){var b=wd(g,T),A=Bn(b,T,!1);return xe.makeFragment(A)},mathmlBuilder:function(g,T){var b=wd(g,T);return at(b,T)}});var Dm=function(g,T,b,A,C,L,H){g=xe.makeSpan([],[g]);var K,X;if(T){var Te=j(T,A.havingStyle(C.sup()),A);X={elem:Te,kern:Math.max(A.fontMetrics().bigOpSpacing1,A.fontMetrics().bigOpSpacing3-Te.depth)}}if(b){var ve=j(b,A.havingStyle(C.sub()),A);K={elem:ve,kern:Math.max(A.fontMetrics().bigOpSpacing2,A.fontMetrics().bigOpSpacing4-ve.height)}}var Ne;if(X&&K){var Ke=A.fontMetrics().bigOpSpacing5+K.elem.height+K.elem.depth+K.kern+g.depth+H;Ne=xe.makeVList({positionType:"bottom",positionData:Ke,children:[{type:"kern",size:A.fontMetrics().bigOpSpacing5},{type:"elem",elem:K.elem,marginLeft:-L+"em"},{type:"kern",size:K.kern},{type:"elem",elem:g},{type:"kern",size:X.kern},{type:"elem",elem:X.elem,marginLeft:L+"em"},{type:"kern",size:A.fontMetrics().bigOpSpacing5}]},A)}else if(K){var rt=g.height-H;Ne=xe.makeVList({positionType:"top",positionData:rt,children:[{type:"kern",size:A.fontMetrics().bigOpSpacing5},{type:"elem",elem:K.elem,marginLeft:-L+"em"},{type:"kern",size:K.kern},{type:"elem",elem:g}]},A)}else if(X){var yt=g.depth+H;Ne=xe.makeVList({positionType:"bottom",positionData:yt,children:[{type:"elem",elem:g},{type:"kern",size:X.kern},{type:"elem",elem:X.elem,marginLeft:L+"em"},{type:"kern",size:A.fontMetrics().bigOpSpacing5}]},A)}else return g;return xe.makeSpan(["mop","op-limits"],[Ne],A)},xm=["\\smallint"],gs=function(g,T){var b,A,C=!1,L;g.type==="supsub"?(b=g.sup,A=g.sub,L=Pt(g.base,"op"),C=!0):L=Pt(g,"op");var H=T.style,K=!1;H.size===Ye.DISPLAY.size&&L.symbol&&!O.contains(xm,L.name)&&(K=!0);var X;if(L.symbol){var Te=K?"Size2-Regular":"Size1-Regular",ve="";if((L.name==="\\oiint"||L.name==="\\oiiint")&&(ve=L.name.substr(1),L.name=ve==="oiint"?"\\iint":"\\iiint"),X=xe.makeSymbol(L.name,Te,"math",T,["mop","op-symbol",K?"large-op":"small-op"]),ve.length>0){var Ne=X.italic,Ke=xe.staticSvg(ve+"Size"+(K?"2":"1"),T);X=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:X,shift:0},{type:"elem",elem:Ke,shift:K?.08:0}]},T),L.name="\\"+ve,X.classes.unshift("mop"),X.italic=Ne}}else if(L.body){var rt=Bn(L.body,T,!0);rt.length===1&&rt[0]instanceof de?(X=rt[0],X.classes[0]="mop"):X=xe.makeSpan(["mop"],xe.tryCombineChars(rt),T)}else{for(var yt=[],Nt=1;Nt<L.name.length;Nt++)yt.push(xe.mathsym(L.name[Nt],L.mode,T));X=xe.makeSpan(["mop"],yt,T)}var Gt=0,Tr=0;return(X instanceof de||L.name==="\\oiint"||L.name==="\\oiiint")&&!L.suppressBaseShift&&(Gt=(X.height-X.depth)/2-T.fontMetrics().axisHeight,Tr=X.italic),C?Dm(X,b,A,T,H,Tr,Gt):(Gt&&(X.style.position="relative",X.style.top=Gt+"em"),X)},H0=function(g,T){var b;if(g.symbol)b=new we("mo",[ot(g.name,g.mode)]),O.contains(xm,g.name)&&b.setAttribute("largeop","false");else if(g.body)b=new we("mo",Bt(g.body,T));else{b=new we("mi",[new $e(g.name.slice(1))]);var A=new we("mo",[ot("","text")]);g.parentIsSupSub?b=new we("mo",[b,A]):b=De([b,A])}return b},Wa={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Tt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(g,T){var b=g.parser,A=g.funcName,C=A;return C.length===1&&(C=Wa[C]),{type:"op",mode:b.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:C}},htmlBuilder:gs,mathmlBuilder:H0}),Tt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=T[0];return{type:"op",mode:b.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Rn(A)}},htmlBuilder:gs,mathmlBuilder:H0});var Tc={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Tt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(g){var T=g.parser,b=g.funcName;return{type:"op",mode:T.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:b}},htmlBuilder:gs,mathmlBuilder:H0}),Tt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(g){var T=g.parser,b=g.funcName;return{type:"op",mode:T.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:b}},htmlBuilder:gs,mathmlBuilder:H0}),Tt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(g){var T=g.parser,b=g.funcName,A=b;return A.length===1&&(A=Tc[A]),{type:"op",mode:T.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:A}},htmlBuilder:gs,mathmlBuilder:H0});var Ka=function(g,T){var b,A,C=!1,L;g.type==="supsub"?(b=g.sup,A=g.sub,L=Pt(g.base,"operatorname"),C=!0):L=Pt(g,"operatorname");var H;if(L.body.length>0){for(var K=L.body.map(function(Ne){var Ke=Ne.text;return typeof Ke=="string"?{type:"textord",mode:Ne.mode,text:Ke}:Ne}),X=Bn(K,T.withFont("mathrm"),!0),Te=0;Te<X.length;Te++){var ve=X[Te];ve instanceof de&&(ve.text=ve.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}H=xe.makeSpan(["mop"],X,T)}else H=xe.makeSpan(["mop"],[],T);return C?Dm(H,b,A,T,T.style,0,0):H},A5=function(g,T){for(var b=Bt(g.body,T.withFont("mathrm")),A=!0,C=0;C<b.length;C++){var L=b[C];if(!(L instanceof Se.SpaceNode))if(L instanceof Se.MathNode)switch(L.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var H=L.children[0];L.children.length===1&&H instanceof Se.TextNode?H.text=H.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):A=!1;break}default:A=!1}else A=!1}if(A){var K=b.map(function(ve){return ve.toText()}).join("");b=[new Se.TextNode(K)]}var X=new Se.MathNode("mi",b);X.setAttribute("mathvariant","normal");var Te=new Se.MathNode("mo",[ot("","text")]);return g.parentIsSupSub?new Se.MathNode("mo",[X,Te]):Se.newDocumentFragment([X,Te])};Tt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"operatorname",mode:b.mode,body:Rn(C),alwaysHandleSupSub:A==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ka,mathmlBuilder:A5}),ai({type:"ordgroup",htmlBuilder:function(g,T){return g.semisimple?xe.makeFragment(Bn(g.body,T,!1)):xe.makeSpan(["mord"],Bn(g.body,T,!0),T)},mathmlBuilder:function(g,T){return at(g.body,T,!0)}}),Tt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=T[0];return{type:"overline",mode:b.mode,body:A}},htmlBuilder:function(g,T){var b=j(g.body,T.havingCrampedStyle()),A=xe.makeLineSpan("overline-line",T),C=T.fontMetrics().defaultRuleThickness,L=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:b},{type:"kern",size:3*C},{type:"elem",elem:A},{type:"kern",size:C}]},T);return xe.makeSpan(["mord","overline"],[L],T)},mathmlBuilder:function(g,T){var b=new Se.MathNode("mo",[new Se.TextNode("‾")]);b.setAttribute("stretchy","true");var A=new Se.MathNode("mover",[et(g.body,T),b]);return A.setAttribute("accent","true"),A}}),Tt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){var b=g.parser,A=T[0];return{type:"phantom",mode:b.mode,body:Rn(A)}},htmlBuilder:function(g,T){var b=Bn(g.body,T.withPhantom(),!1);return xe.makeFragment(b)},mathmlBuilder:function(g,T){var b=Bt(g.body,T);return new Se.MathNode("mphantom",b)}}),Tt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){var b=g.parser,A=T[0];return{type:"hphantom",mode:b.mode,body:A}},htmlBuilder:function(g,T){var b=xe.makeSpan([],[j(g.body,T.withPhantom())]);if(b.height=0,b.depth=0,b.children)for(var A=0;A<b.children.length;A++)b.children[A].height=0,b.children[A].depth=0;return b=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:b}]},T),xe.makeSpan(["mord"],[b],T)},mathmlBuilder:function(g,T){var b=Bt(Rn(g.body),T),A=new Se.MathNode("mphantom",b),C=new Se.MathNode("mpadded",[A]);return C.setAttribute("height","0px"),C.setAttribute("depth","0px"),C}}),Tt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){var b=g.parser,A=T[0];return{type:"vphantom",mode:b.mode,body:A}},htmlBuilder:function(g,T){var b=xe.makeSpan(["inner"],[j(g.body,T.withPhantom())]),A=xe.makeSpan(["fix"],[]);return xe.makeSpan(["mord","rlap"],[b,A],T)},mathmlBuilder:function(g,T){var b=Bt(Rn(g.body),T),A=new Se.MathNode("mphantom",b),C=new Se.MathNode("mpadded",[A]);return C.setAttribute("width","0px"),C}}),Tt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=Pt(T[0],"size").value,C=T[1];return{type:"raisebox",mode:b.mode,dy:A,body:C}},htmlBuilder:function(g,T){var b=j(g.body,T),A=on(g.dy,T);return xe.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:b}]},T)},mathmlBuilder:function(g,T){var b=new Se.MathNode("mpadded",[et(g.body,T)]),A=g.dy.number+g.dy.unit;return b.setAttribute("voffset",A),b}}),Tt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(g,T,b){var A=g.parser,C=b[0],L=Pt(T[0],"size"),H=Pt(T[1],"size");return{type:"rule",mode:A.mode,shift:C&&Pt(C,"size").value,width:L.value,height:H.value}},htmlBuilder:function(g,T){var b=xe.makeSpan(["mord","rule"],[],T),A=on(g.width,T),C=on(g.height,T),L=g.shift?on(g.shift,T):0;return b.style.borderRightWidth=A+"em",b.style.borderTopWidth=C+"em",b.style.bottom=L+"em",b.width=A,b.height=C+L,b.depth=-L,b.maxFontSize=C*1.125*T.sizeMultiplier,b},mathmlBuilder:function(g,T){var b=on(g.width,T),A=on(g.height,T),C=g.shift?on(g.shift,T):0,L=T.color&&T.getColor()||"black",H=new Se.MathNode("mspace");H.setAttribute("mathbackground",L),H.setAttribute("width",b+"em"),H.setAttribute("height",A+"em");var K=new Se.MathNode("mpadded",[H]);return C>=0?K.setAttribute("height","+"+C+"em"):(K.setAttribute("height",C+"em"),K.setAttribute("depth","+"+-C+"em")),K.setAttribute("voffset",C+"em"),K}});function km(g,T,b){for(var A=Bn(g,T,!1),C=T.sizeMultiplier/b.sizeMultiplier,L=0;L<A.length;L++){var H=A[L].classes.indexOf("sizing");H<0?Array.prototype.push.apply(A[L].classes,T.sizingClasses(b)):A[L].classes[H+1]==="reset-size"+T.size&&(A[L].classes[H+1]="reset-size"+b.size),A[L].height*=C,A[L].depth*=C}return xe.makeFragment(A)}var Sd=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],E5=function(g,T){var b=T.havingSize(g.size);return km(g.body,b,T)};Tt({type:"sizing",names:Sd,props:{numArgs:0,allowedInText:!0},handler:function(g,T){var b=g.breakOnTokenText,A=g.funcName,C=g.parser,L=C.parseExpression(!1,b);return{type:"sizing",mode:C.mode,size:Sd.indexOf(A)+1,body:L}},htmlBuilder:E5,mathmlBuilder:function(g,T){var b=T.havingSize(g.size),A=Bt(g.body,b),C=new Se.MathNode("mstyle",A);return C.setAttribute("mathsize",b.sizeMultiplier+"em"),C}}),Tt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(g,T,b){var A=g.parser,C=!1,L=!1,H=b[0]&&Pt(b[0],"ordgroup");if(H)for(var K="",X=0;X<H.body.length;++X){var Te=H.body[X];if(K=Te.text,K==="t")C=!0;else if(K==="b")L=!0;else{C=!1,L=!1;break}}else C=!0,L=!0;var ve=T[0];return{type:"smash",mode:A.mode,body:ve,smashHeight:C,smashDepth:L}},htmlBuilder:function(g,T){var b=xe.makeSpan([],[j(g.body,T)]);if(!g.smashHeight&&!g.smashDepth)return b;if(g.smashHeight&&(b.height=0,b.children))for(var A=0;A<b.children.length;A++)b.children[A].height=0;if(g.smashDepth&&(b.depth=0,b.children))for(var C=0;C<b.children.length;C++)b.children[C].depth=0;var L=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:b}]},T);return xe.makeSpan(["mord"],[L],T)},mathmlBuilder:function(g,T){var b=new Se.MathNode("mpadded",[et(g.body,T)]);return g.smashHeight&&b.setAttribute("height","0px"),g.smashDepth&&b.setAttribute("depth","0px"),b}}),Tt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(g,T,b){var A=g.parser,C=b[0],L=T[0];return{type:"sqrt",mode:A.mode,body:L,index:C}},htmlBuilder:function(g,T){var b=j(g.body,T.havingCrampedStyle());b.height===0&&(b.height=T.fontMetrics().xHeight),b=xe.wrapFragment(b,T);var A=T.fontMetrics(),C=A.defaultRuleThickness,L=C;T.style.id<Ye.TEXT.id&&(L=T.fontMetrics().xHeight);var H=C+L/4,K=b.height+b.depth+H+C,X=Ta.sqrtImage(K,T),Te=X.span,ve=X.ruleWidth,Ne=X.advanceWidth,Ke=Te.height-ve;Ke>b.height+b.depth+H&&(H=(H+Ke-b.height-b.depth)/2);var rt=Te.height-b.height-H-ve;b.style.paddingLeft=Ne+"em";var yt=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:b,wrapperClasses:["svg-align"]},{type:"kern",size:-(b.height+rt)},{type:"elem",elem:Te},{type:"kern",size:ve}]},T);if(g.index){var Nt=T.havingStyle(Ye.SCRIPTSCRIPT),Gt=j(g.index,Nt,T),Tr=.6*(yt.height-yt.depth),Cr=xe.makeVList({positionType:"shift",positionData:-Tr,children:[{type:"elem",elem:Gt}]},T),rn=xe.makeSpan(["root"],[Cr]);return xe.makeSpan(["mord","sqrt"],[rn,yt],T)}else return xe.makeSpan(["mord","sqrt"],[yt],T)},mathmlBuilder:function(g,T){var b=g.body,A=g.index;return A?new Se.MathNode("mroot",[et(b,T),et(A,T)]):new Se.MathNode("msqrt",[et(b,T)])}});var Ep={display:Ye.DISPLAY,text:Ye.TEXT,script:Ye.SCRIPT,scriptscript:Ye.SCRIPTSCRIPT};Tt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(g,T){var b=g.breakOnTokenText,A=g.funcName,C=g.parser,L=C.parseExpression(!0,b),H=A.slice(1,A.length-5);return{type:"styling",mode:C.mode,style:H,body:L}},htmlBuilder:function(g,T){var b=Ep[g.style],A=T.havingStyle(b).withFont("");return km(g.body,A,T)},mathmlBuilder:function(g,T){var b=Ep[g.style],A=T.havingStyle(b),C=Bt(g.body,A),L=new Se.MathNode("mstyle",C),H={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},K=H[g.style];return L.setAttribute("scriptlevel",K[0]),L.setAttribute("displaystyle",K[1]),L}});var w5=function(g,T){var b=g.base;if(b)if(b.type==="op"){var A=b.limits&&(T.style.size===Ye.DISPLAY.size||b.alwaysHandleSupSub);return A?gs:null}else if(b.type==="operatorname"){var C=b.alwaysHandleSupSub&&(T.style.size===Ye.DISPLAY.size||b.limits);return C?Ka:null}else{if(b.type==="accent")return O.isCharacterBox(b.base)?Ua:null;if(b.type==="horizBrace"){var L=!g.sub;return L===b.isOver?Ed:null}else return null}else return null};ai({type:"supsub",htmlBuilder:function(g,T){var b=w5(g,T);if(b)return b(g,T);var A=g.base,C=g.sup,L=g.sub,H=j(A,T),K,X,Te=T.fontMetrics(),ve=0,Ne=0,Ke=A&&O.isCharacterBox(A);if(C){var rt=T.havingStyle(T.style.sup());K=j(C,rt,T),Ke||(ve=H.height-rt.fontMetrics().supDrop*rt.sizeMultiplier/T.sizeMultiplier)}if(L){var yt=T.havingStyle(T.style.sub());X=j(L,yt,T),Ke||(Ne=H.depth+yt.fontMetrics().subDrop*yt.sizeMultiplier/T.sizeMultiplier)}var Nt;T.style===Ye.DISPLAY?Nt=Te.sup1:T.style.cramped?Nt=Te.sup3:Nt=Te.sup2;var Gt=T.sizeMultiplier,Tr=.5/Te.ptPerEm/Gt+"em",Cr=null;if(X){var rn=g.base&&g.base.type==="op"&&g.base.name&&(g.base.name==="\\oiint"||g.base.name==="\\oiiint");(H instanceof de||rn)&&(Cr=-H.italic+"em")}var Wr;if(K&&X){ve=Math.max(ve,Nt,K.depth+.25*Te.xHeight),Ne=Math.max(Ne,Te.sub2);var gn=Te.defaultRuleThickness,yn=4*gn;if(ve-K.depth-(X.height-Ne)<yn){Ne=yn-(ve-K.depth)+X.height;var En=.8*Te.xHeight-(ve-K.depth);En>0&&(ve+=En,Ne-=En)}var gi=[{type:"elem",elem:X,shift:Ne,marginRight:Tr,marginLeft:Cr},{type:"elem",elem:K,shift:-ve,marginRight:Tr}];Wr=xe.makeVList({positionType:"individualShift",children:gi},T)}else if(X){Ne=Math.max(Ne,Te.sub1,X.height-.8*Te.xHeight);var Si=[{type:"elem",elem:X,marginLeft:Cr,marginRight:Tr}];Wr=xe.makeVList({positionType:"shift",positionData:Ne,children:Si},T)}else if(K)ve=Math.max(ve,Nt,K.depth+.25*Te.xHeight),Wr=xe.makeVList({positionType:"shift",positionData:-ve,children:[{type:"elem",elem:K,marginRight:Tr}]},T);else throw new Error("supsub must have either sup or sub.");var zr=Y(H,"right")||"mord";return xe.makeSpan([zr],[H,xe.makeSpan(["msupsub"],[Wr])],T)},mathmlBuilder:function(g,T){var b=!1,A,C;g.base&&g.base.type==="horizBrace"&&(C=!!g.sup,C===g.base.isOver&&(b=!0,A=g.base.isOver)),g.base&&(g.base.type==="op"||g.base.type==="operatorname")&&(g.base.parentIsSupSub=!0);var L=[et(g.base,T)];g.sub&&L.push(et(g.sub,T)),g.sup&&L.push(et(g.sup,T));var H;if(b)H=A?"mover":"munder";else if(g.sub)if(g.sup){var K=g.base;K&&K.type==="op"&&K.limits&&T.style===Ye.DISPLAY||K&&K.type==="operatorname"&&K.alwaysHandleSupSub&&(T.style===Ye.DISPLAY||K.limits)?H="munderover":H="msubsup"}else{var X=g.base;X&&X.type==="op"&&X.limits&&(T.style===Ye.DISPLAY||X.alwaysHandleSupSub)||X&&X.type==="operatorname"&&X.alwaysHandleSupSub&&(X.limits||T.style===Ye.DISPLAY)?H="munder":H="msub"}else{var Te=g.base;Te&&Te.type==="op"&&Te.limits&&(T.style===Ye.DISPLAY||Te.alwaysHandleSupSub)||Te&&Te.type==="operatorname"&&Te.alwaysHandleSupSub&&(Te.limits||T.style===Ye.DISPLAY)?H="mover":H="msup"}var ve=new Se.MathNode(H,L);return ve}}),ai({type:"atom",htmlBuilder:function(g,T){return xe.mathsym(g.text,g.mode,T,["m"+g.family])},mathmlBuilder:function(g,T){var b=new Se.MathNode("mo",[ot(g.text,g.mode)]);if(g.family==="bin"){var A=Lr(g,T);A==="bold-italic"&&b.setAttribute("mathvariant",A)}else g.family==="punct"?b.setAttribute("separator","true"):(g.family==="open"||g.family==="close")&&b.setAttribute("stretchy","false");return b}});var P0={mi:"italic",mn:"normal",mtext:"normal"};ai({type:"mathord",htmlBuilder:function(g,T){return xe.makeOrd(g,T,"mathord")},mathmlBuilder:function(g,T){var b=new Se.MathNode("mi",[ot(g.text,g.mode,T)]),A=Lr(g,T)||"italic";return A!==P0[b.type]&&b.setAttribute("mathvariant",A),b}}),ai({type:"textord",htmlBuilder:function(g,T){return xe.makeOrd(g,T,"textord")},mathmlBuilder:function(g,T){var b=ot(g.text,g.mode,T),A=Lr(g,T)||"normal",C;return g.mode==="text"?C=new Se.MathNode("mtext",[b]):/[0-9]/.test(g.text)?C=new Se.MathNode("mn",[b]):g.text==="\\prime"?C=new Se.MathNode("mo",[b]):C=new Se.MathNode("mi",[b]),A!==P0[C.type]&&C.setAttribute("mathvariant",A),C}});var wp={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Dd={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ai({type:"spacing",htmlBuilder:function(g,T){if(Dd.hasOwnProperty(g.text)){var b=Dd[g.text].className||"";if(g.mode==="text"){var A=xe.makeOrd(g,T,"textord");return A.classes.push(b),A}else return xe.makeSpan(["mspace",b],[xe.mathsym(g.text,g.mode,T)],T)}else{if(wp.hasOwnProperty(g.text))return xe.makeSpan(["mspace",wp[g.text]],[],T);throw new u('Unknown type of space "'+g.text+'"')}},mathmlBuilder:function(g,T){var b;if(Dd.hasOwnProperty(g.text))b=new Se.MathNode("mtext",[new Se.TextNode(" ")]);else{if(wp.hasOwnProperty(g.text))return new Se.MathNode("mspace");throw new u('Unknown type of space "'+g.text+'"')}return b}});var Sp=function(){var g=new Se.MathNode("mtd",[]);return g.setAttribute("width","50%"),g};ai({type:"tag",mathmlBuilder:function(g,T){var b=new Se.MathNode("mtable",[new Se.MathNode("mtr",[Sp(),new Se.MathNode("mtd",[at(g.body,T)]),Sp(),new Se.MathNode("mtd",[at(g.tag,T)])])]);return b.setAttribute("width","100%"),b}});var Dp={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Cm={"\\textbf":"textbf","\\textmd":"textmd"},_m={"\\textit":"textit","\\textup":"textup"},Nm=function(g,T){var b=g.font;return b?Dp[b]?T.withTextFontFamily(Dp[b]):Cm[b]?T.withTextFontWeight(Cm[b]):T.withTextFontShape(_m[b]):T};Tt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"text",mode:b.mode,body:Rn(C),font:A}},htmlBuilder:function(g,T){var b=Nm(g,T),A=Bn(g.body,b,!0);return xe.makeSpan(["mord","text"],xe.tryCombineChars(A),b)},mathmlBuilder:function(g,T){var b=Nm(g,T);return at(g.body,b)}}),Tt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){var b=g.parser;return{type:"underline",mode:b.mode,body:T[0]}},htmlBuilder:function(g,T){var b=j(g.body,T),A=xe.makeLineSpan("underline-line",T),C=T.fontMetrics().defaultRuleThickness,L=xe.makeVList({positionType:"top",positionData:b.height,children:[{type:"kern",size:C},{type:"elem",elem:A},{type:"kern",size:3*C},{type:"elem",elem:b}]},T);return xe.makeSpan(["mord","underline"],[L],T)},mathmlBuilder:function(g,T){var b=new Se.MathNode("mo",[new Se.TextNode("‾")]);b.setAttribute("stretchy","true");var A=new Se.MathNode("munder",[et(g.body,T),b]);return A.setAttribute("accentunder","true"),A}}),Tt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(g,T,b){throw new u("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(g,T){for(var b=xd(g),A=[],C=T.havingStyle(T.style.text()),L=0;L<b.length;L++){var H=b[L];H==="~"&&(H="\\textasciitilde"),A.push(xe.makeSymbol(H,"Typewriter-Regular",g.mode,C,["mord","texttt"]))}return xe.makeSpan(["mord","text"].concat(C.sizingClasses(T)),xe.tryCombineChars(A),C)},mathmlBuilder:function(g,T){var b=new Se.TextNode(xd(g)),A=new Se.MathNode("mtext",[b]);return A.setAttribute("mathvariant","monospace"),A}});var xd=function(g){return g.body.replace(/ /g,g.star?"␣":" ")},xp=hs,ys=xp,kp=`[ \r ]`,Fm="\\\\[a-zA-Z@]+",S5="\\\\[^\uD800-\uDFFF]",Om=""+Fm+kp+"*",Cp=new RegExp("^("+Fm+")"+kp+"*$"),_p="[̀-ͯ]",kd=new RegExp(_p+"+$"),Mm="("+kp+"+)|([!-\\[\\]-‧-豈-]"+(_p+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(_p+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Om)+("|"+S5+")"),Rm=(function(){function g(b,A){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=b,this.settings=A,this.tokenRegex=new RegExp(Mm,"g"),this.catcodes={"%":14}}var T=g.prototype;return T.setCatcode=function(b,A){this.catcodes[b]=A},T.lex=function(){var b=this.input,A=this.tokenRegex.lastIndex;if(A===b.length)return new a("EOF",new s(this,A,A));var C=this.tokenRegex.exec(b);if(C===null||C.index!==A)throw new u("Unexpected character: '"+b[A]+"'",new a(b[A],new s(this,A,A+1)));var L=C[2]||" ";if(this.catcodes[L]===14){var H=b.indexOf(` `,this.tokenRegex.lastIndex);return H===-1?(this.tokenRegex.lastIndex=b.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=H+1,this.lex()}var K=L.match(Cp);return K&&(L=K[1]),new a(L,new s(this,A,this.tokenRegex.lastIndex))},g})(),D5=(function(){function g(b,A){b===void 0&&(b={}),A===void 0&&(A={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=A,this.builtins=b,this.undefStack=[]}var T=g.prototype;return T.beginGroup=function(){this.undefStack.push({})},T.endGroup=function(){if(this.undefStack.length===0)throw new u("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var b=this.undefStack.pop();for(var A in b)b.hasOwnProperty(A)&&(b[A]===void 0?delete this.current[A]:this.current[A]=b[A])},T.has=function(b){return this.current.hasOwnProperty(b)||this.builtins.hasOwnProperty(b)},T.get=function(b){return this.current.hasOwnProperty(b)?this.current[b]:this.builtins[b]},T.set=function(b,A,C){if(C===void 0&&(C=!1),C){for(var L=0;L<this.undefStack.length;L++)delete this.undefStack[L][b];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][b]=A)}else{var H=this.undefStack[this.undefStack.length-1];H&&!H.hasOwnProperty(b)&&(H[b]=this.current[b])}this.current[b]=A},g})(),Bm={},Np=Bm;function Q(g,T){Bm[g]=T}Q("\\noexpand",function(g){var T=g.popToken();return g.isExpandable(T.text)&&(T.noexpand=!0,T.treatAsRelax=!0),{tokens:[T],numArgs:0}}),Q("\\expandafter",function(g){var T=g.popToken();return g.expandOnce(!0),{tokens:[T],numArgs:0}}),Q("\\@firstoftwo",function(g){var T=g.consumeArgs(2);return{tokens:T[0],numArgs:0}}),Q("\\@secondoftwo",function(g){var T=g.consumeArgs(2);return{tokens:T[1],numArgs:0}}),Q("\\@ifnextchar",function(g){var T=g.consumeArgs(3);g.consumeSpaces();var b=g.future();return T[0].length===1&&T[0][0].text===b.text?{tokens:T[1],numArgs:0}:{tokens:T[2],numArgs:0}}),Q("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Q("\\TextOrMath",function(g){var T=g.consumeArgs(2);return g.mode==="text"?{tokens:T[0],numArgs:0}:{tokens:T[1],numArgs:0}});var Im={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Q("\\char",function(g){var T=g.popToken(),b,A="";if(T.text==="'")b=8,T=g.popToken();else if(T.text==='"')b=16,T=g.popToken();else if(T.text==="`")if(T=g.popToken(),T.text[0]==="\\")A=T.text.charCodeAt(1);else{if(T.text==="EOF")throw new u("\\char` missing argument");A=T.text.charCodeAt(0)}else b=10;if(b){if(A=Im[T.text],A==null||A>=b)throw new u("Invalid base-"+b+" digit "+T.text);for(var C;(C=Im[g.future().text])!=null&&C<b;)A*=b,A+=C,g.popToken()}return"\\@char{"+A+"}"});var Cd=function(g,T,b){var A=g.consumeArgs(1)[0];if(A.length!==1)throw new u("\\newcommand's first argument must be a macro name");var C=A[0].text,L=g.isDefined(C);if(L&&!T)throw new u("\\newcommand{"+C+"} attempting to redefine "+(C+"; use \\renewcommand"));if(!L&&!b)throw new u("\\renewcommand{"+C+"} when command "+C+" does not yet exist; use \\newcommand");var H=0;if(A=g.consumeArgs(1)[0],A.length===1&&A[0].text==="["){for(var K="",X=g.expandNextToken();X.text!=="]"&&X.text!=="EOF";)K+=X.text,X=g.expandNextToken();if(!K.match(/^\s*[0-9]+\s*$/))throw new u("Invalid number of arguments: "+K);H=parseInt(K),A=g.consumeArgs(1)[0]}return g.macros.set(C,{tokens:A,numArgs:H}),""};Q("\\newcommand",function(g){return Cd(g,!1,!0)}),Q("\\renewcommand",function(g){return Cd(g,!0,!1)}),Q("\\providecommand",function(g){return Cd(g,!0,!0)}),Q("\\message",function(g){var T=g.consumeArgs(1)[0];return console.log(T.reverse().map(function(b){return b.text}).join("")),""}),Q("\\errmessage",function(g){var T=g.consumeArgs(1)[0];return console.error(T.reverse().map(function(b){return b.text}).join("")),""}),Q("\\show",function(g){var T=g.popToken(),b=T.text;return console.log(T,g.macros.get(b),ys[b],Dr.math[b],Dr.text[b]),""}),Q("\\bgroup","{"),Q("\\egroup","}"),Q("\\lq","`"),Q("\\rq","'"),Q("\\aa","\\r a"),Q("\\AA","\\r A"),Q("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Q("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Q("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Q("ℬ","\\mathscr{B}"),Q("ℰ","\\mathscr{E}"),Q("ℱ","\\mathscr{F}"),Q("ℋ","\\mathscr{H}"),Q("ℐ","\\mathscr{I}"),Q("ℒ","\\mathscr{L}"),Q("ℳ","\\mathscr{M}"),Q("ℛ","\\mathscr{R}"),Q("ℭ","\\mathfrak{C}"),Q("ℌ","\\mathfrak{H}"),Q("ℨ","\\mathfrak{Z}"),Q("\\Bbbk","\\Bbb{k}"),Q("·","\\cdotp"),Q("\\llap","\\mathllap{\\textrm{#1}}"),Q("\\rlap","\\mathrlap{\\textrm{#1}}"),Q("\\clap","\\mathclap{\\textrm{#1}}"),Q("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Q("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Q("\\ne","\\neq"),Q("≠","\\neq"),Q("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Q("∉","\\notin"),Q("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Q("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Q("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Q("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Q("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Q("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Q("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Q("⟂","\\perp"),Q("‼","\\mathclose{!\\mkern-0.8mu!}"),Q("∌","\\notni"),Q("⌜","\\ulcorner"),Q("⌝","\\urcorner"),Q("⌞","\\llcorner"),Q("⌟","\\lrcorner"),Q("©","\\copyright"),Q("®","\\textregistered"),Q("️","\\textregistered"),Q("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Q("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Q("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Q("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Q("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Q("⋮","\\vdots"),Q("\\varGamma","\\mathit{\\Gamma}"),Q("\\varDelta","\\mathit{\\Delta}"),Q("\\varTheta","\\mathit{\\Theta}"),Q("\\varLambda","\\mathit{\\Lambda}"),Q("\\varXi","\\mathit{\\Xi}"),Q("\\varPi","\\mathit{\\Pi}"),Q("\\varSigma","\\mathit{\\Sigma}"),Q("\\varUpsilon","\\mathit{\\Upsilon}"),Q("\\varPhi","\\mathit{\\Phi}"),Q("\\varPsi","\\mathit{\\Psi}"),Q("\\varOmega","\\mathit{\\Omega}"),Q("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Q("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Q("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Q("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Q("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Q("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Fp={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Q("\\dots",function(g){var T="\\dotso",b=g.expandAfterFuture().text;return b in Fp?T=Fp[b]:(b.substr(0,4)==="\\not"||b in Dr.math&&O.contains(["bin","rel"],Dr.math[b].group))&&(T="\\dotsb"),T});var _d={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Q("\\dotso",function(g){var T=g.future().text;return T in _d?"\\ldots\\,":"\\ldots"}),Q("\\dotsc",function(g){var T=g.future().text;return T in _d&&T!==","?"\\ldots\\,":"\\ldots"}),Q("\\cdots",function(g){var T=g.future().text;return T in _d?"\\@cdots\\,":"\\@cdots"}),Q("\\dotsb","\\cdots"),Q("\\dotsm","\\cdots"),Q("\\dotsi","\\!\\cdots"),Q("\\dotsx","\\ldots\\,"),Q("\\DOTSI","\\relax"),Q("\\DOTSB","\\relax"),Q("\\DOTSX","\\relax"),Q("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Q("\\,","\\tmspace+{3mu}{.1667em}"),Q("\\thinspace","\\,"),Q("\\>","\\mskip{4mu}"),Q("\\:","\\tmspace+{4mu}{.2222em}"),Q("\\medspace","\\:"),Q("\\;","\\tmspace+{5mu}{.2777em}"),Q("\\thickspace","\\;"),Q("\\!","\\tmspace-{3mu}{.1667em}"),Q("\\negthinspace","\\!"),Q("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Q("\\negthickspace","\\tmspace-{5mu}{.277em}"),Q("\\enspace","\\kern.5em "),Q("\\enskip","\\hskip.5em\\relax"),Q("\\quad","\\hskip1em\\relax"),Q("\\qquad","\\hskip2em\\relax"),Q("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Q("\\tag@paren","\\tag@literal{({#1})}"),Q("\\tag@literal",function(g){if(g.macros.get("\\df@tag"))throw new u("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Q("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Q("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Q("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Q("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Q("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Q("\\\\","\\newline"),Q("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bc=wi["Main-Regular"][84][1]-.7*wi["Main-Regular"][65][1]+"em";Q("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+bc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Q("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+bc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Q("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Q("\\@hspace","\\hskip #1\\relax"),Q("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Q("\\ordinarycolon",":"),Q("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Q("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Q("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Q("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Q("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Q("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Q("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Q("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Q("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Q("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Q("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Q("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Q("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Q("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Q("∷","\\dblcolon"),Q("∹","\\eqcolon"),Q("≔","\\coloneqq"),Q("≕","\\eqqcolon"),Q("⩴","\\Coloneqq"),Q("\\ratio","\\vcentcolon"),Q("\\coloncolon","\\dblcolon"),Q("\\colonequals","\\coloneqq"),Q("\\coloncolonequals","\\Coloneqq"),Q("\\equalscolon","\\eqqcolon"),Q("\\equalscoloncolon","\\Eqqcolon"),Q("\\colonminus","\\coloneq"),Q("\\coloncolonminus","\\Coloneq"),Q("\\minuscolon","\\eqcolon"),Q("\\minuscoloncolon","\\Eqcolon"),Q("\\coloncolonapprox","\\Colonapprox"),Q("\\coloncolonsim","\\Colonsim"),Q("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Q("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Q("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Q("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Q("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Q("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Q("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Q("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Q("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Q("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Q("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Q("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Q("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Q("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Q("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Q("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Q("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Q("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Q("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Q("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Q("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Q("\\imath","\\html@mathml{\\@imath}{ı}"),Q("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Q("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Q("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Q("⟦","\\llbracket"),Q("⟧","\\rrbracket"),Q("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Q("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Q("⦃","\\lBrace"),Q("⦄","\\rBrace"),Q("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Q("⦵","\\minuso"),Q("\\darr","\\downarrow"),Q("\\dArr","\\Downarrow"),Q("\\Darr","\\Downarrow"),Q("\\lang","\\langle"),Q("\\rang","\\rangle"),Q("\\uarr","\\uparrow"),Q("\\uArr","\\Uparrow"),Q("\\Uarr","\\Uparrow"),Q("\\N","\\mathbb{N}"),Q("\\R","\\mathbb{R}"),Q("\\Z","\\mathbb{Z}"),Q("\\alef","\\aleph"),Q("\\alefsym","\\aleph"),Q("\\Alpha","\\mathrm{A}"),Q("\\Beta","\\mathrm{B}"),Q("\\bull","\\bullet"),Q("\\Chi","\\mathrm{X}"),Q("\\clubs","\\clubsuit"),Q("\\cnums","\\mathbb{C}"),Q("\\Complex","\\mathbb{C}"),Q("\\Dagger","\\ddagger"),Q("\\diamonds","\\diamondsuit"),Q("\\empty","\\emptyset"),Q("\\Epsilon","\\mathrm{E}"),Q("\\Eta","\\mathrm{H}"),Q("\\exist","\\exists"),Q("\\harr","\\leftrightarrow"),Q("\\hArr","\\Leftrightarrow"),Q("\\Harr","\\Leftrightarrow"),Q("\\hearts","\\heartsuit"),Q("\\image","\\Im"),Q("\\infin","\\infty"),Q("\\Iota","\\mathrm{I}"),Q("\\isin","\\in"),Q("\\Kappa","\\mathrm{K}"),Q("\\larr","\\leftarrow"),Q("\\lArr","\\Leftarrow"),Q("\\Larr","\\Leftarrow"),Q("\\lrarr","\\leftrightarrow"),Q("\\lrArr","\\Leftrightarrow"),Q("\\Lrarr","\\Leftrightarrow"),Q("\\Mu","\\mathrm{M}"),Q("\\natnums","\\mathbb{N}"),Q("\\Nu","\\mathrm{N}"),Q("\\Omicron","\\mathrm{O}"),Q("\\plusmn","\\pm"),Q("\\rarr","\\rightarrow"),Q("\\rArr","\\Rightarrow"),Q("\\Rarr","\\Rightarrow"),Q("\\real","\\Re"),Q("\\reals","\\mathbb{R}"),Q("\\Reals","\\mathbb{R}"),Q("\\Rho","\\mathrm{P}"),Q("\\sdot","\\cdot"),Q("\\sect","\\S"),Q("\\spades","\\spadesuit"),Q("\\sub","\\subset"),Q("\\sube","\\subseteq"),Q("\\supe","\\supseteq"),Q("\\Tau","\\mathrm{T}"),Q("\\thetasym","\\vartheta"),Q("\\weierp","\\wp"),Q("\\Zeta","\\mathrm{Z}"),Q("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Q("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Q("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Q("\\bra","\\mathinner{\\langle{#1}|}"),Q("\\ket","\\mathinner{|{#1}\\rangle}"),Q("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Q("\\Bra","\\left\\langle#1\\right|"),Q("\\Ket","\\left|#1\\right\\rangle"),Q("\\blue","\\textcolor{##6495ed}{#1}"),Q("\\orange","\\textcolor{##ffa500}{#1}"),Q("\\pink","\\textcolor{##ff00af}{#1}"),Q("\\red","\\textcolor{##df0030}{#1}"),Q("\\green","\\textcolor{##28ae7b}{#1}"),Q("\\gray","\\textcolor{gray}{#1}"),Q("\\purple","\\textcolor{##9d38bd}{#1}"),Q("\\blueA","\\textcolor{##ccfaff}{#1}"),Q("\\blueB","\\textcolor{##80f6ff}{#1}"),Q("\\blueC","\\textcolor{##63d9ea}{#1}"),Q("\\blueD","\\textcolor{##11accd}{#1}"),Q("\\blueE","\\textcolor{##0c7f99}{#1}"),Q("\\tealA","\\textcolor{##94fff5}{#1}"),Q("\\tealB","\\textcolor{##26edd5}{#1}"),Q("\\tealC","\\textcolor{##01d1c1}{#1}"),Q("\\tealD","\\textcolor{##01a995}{#1}"),Q("\\tealE","\\textcolor{##208170}{#1}"),Q("\\greenA","\\textcolor{##b6ffb0}{#1}"),Q("\\greenB","\\textcolor{##8af281}{#1}"),Q("\\greenC","\\textcolor{##74cf70}{#1}"),Q("\\greenD","\\textcolor{##1fab54}{#1}"),Q("\\greenE","\\textcolor{##0d923f}{#1}"),Q("\\goldA","\\textcolor{##ffd0a9}{#1}"),Q("\\goldB","\\textcolor{##ffbb71}{#1}"),Q("\\goldC","\\textcolor{##ff9c39}{#1}"),Q("\\goldD","\\textcolor{##e07d10}{#1}"),Q("\\goldE","\\textcolor{##a75a05}{#1}"),Q("\\redA","\\textcolor{##fca9a9}{#1}"),Q("\\redB","\\textcolor{##ff8482}{#1}"),Q("\\redC","\\textcolor{##f9685d}{#1}"),Q("\\redD","\\textcolor{##e84d39}{#1}"),Q("\\redE","\\textcolor{##bc2612}{#1}"),Q("\\maroonA","\\textcolor{##ffbde0}{#1}"),Q("\\maroonB","\\textcolor{##ff92c6}{#1}"),Q("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Q("\\maroonD","\\textcolor{##ca337c}{#1}"),Q("\\maroonE","\\textcolor{##9e034e}{#1}"),Q("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Q("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Q("\\purpleC","\\textcolor{##aa87ff}{#1}"),Q("\\purpleD","\\textcolor{##7854ab}{#1}"),Q("\\purpleE","\\textcolor{##543b78}{#1}"),Q("\\mintA","\\textcolor{##f5f9e8}{#1}"),Q("\\mintB","\\textcolor{##edf2df}{#1}"),Q("\\mintC","\\textcolor{##e0e5cc}{#1}"),Q("\\grayA","\\textcolor{##f6f7f7}{#1}"),Q("\\grayB","\\textcolor{##f0f1f2}{#1}"),Q("\\grayC","\\textcolor{##e3e5e6}{#1}"),Q("\\grayD","\\textcolor{##d6d8da}{#1}"),Q("\\grayE","\\textcolor{##babec2}{#1}"),Q("\\grayF","\\textcolor{##888d93}{#1}"),Q("\\grayG","\\textcolor{##626569}{#1}"),Q("\\grayH","\\textcolor{##3b3e40}{#1}"),Q("\\grayI","\\textcolor{##21242c}{#1}"),Q("\\kaBlue","\\textcolor{##314453}{#1}"),Q("\\kaGreen","\\textcolor{##71B307}{#1}");var Lm={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},zm=(function(){function g(b,A,C){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=A,this.expansionCount=0,this.feed(b),this.macros=new D5(Np,A.macros),this.mode=C,this.stack=[]}var T=g.prototype;return T.feed=function(b){this.lexer=new Rm(b,this.settings)},T.switchMode=function(b){this.mode=b},T.beginGroup=function(){this.macros.beginGroup()},T.endGroup=function(){this.macros.endGroup()},T.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},T.popToken=function(){return this.future(),this.stack.pop()},T.pushToken=function(b){this.stack.push(b)},T.pushTokens=function(b){var A;(A=this.stack).push.apply(A,b)},T.consumeSpaces=function(){for(;;){var b=this.future();if(b.text===" ")this.stack.pop();else break}},T.consumeArgs=function(b){for(var A=[],C=0;C<b;++C){this.consumeSpaces();var L=this.popToken();if(L.text==="{"){for(var H=[],K=1;K!==0;){var X=this.popToken();if(H.push(X),X.text==="{")++K;else if(X.text==="}")--K;else if(X.text==="EOF")throw new u("End of input in macro argument",L)}H.pop(),H.reverse(),A[C]=H}else{if(L.text==="EOF")throw new u("End of input expecting macro argument");A[C]=[L]}}return A},T.expandOnce=function(b){var A=this.popToken(),C=A.text,L=A.noexpand?null:this._getExpansion(C);if(L==null||b&&L.unexpandable){if(b&&L==null&&C[0]==="\\"&&!this.isDefined(C))throw new u("Undefined control sequence: "+C);return this.pushToken(A),A}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new u("Too many expansions: infinite loop or need to increase maxExpand setting");var H=L.tokens;if(L.numArgs){var K=this.consumeArgs(L.numArgs);H=H.slice();for(var X=H.length-1;X>=0;--X){var Te=H[X];if(Te.text==="#"){if(X===0)throw new u("Incomplete placeholder at end of macro body",Te);if(Te=H[--X],Te.text==="#")H.splice(X+1,1);else if(/^[1-9]$/.test(Te.text)){var ve;(ve=H).splice.apply(ve,[X,2].concat(K[+Te.text-1]))}else throw new u("Not a valid argument number",Te)}}}return this.pushTokens(H),H},T.expandAfterFuture=function(){return this.expandOnce(),this.future()},T.expandNextToken=function(){for(;;){var b=this.expandOnce();if(b instanceof a)if(b.text==="\\relax"||b.treatAsRelax)this.stack.pop();else return this.stack.pop()}throw new Error},T.expandMacro=function(b){return this.macros.has(b)?this.expandTokens([new a(b)]):void 0},T.expandTokens=function(b){var A=[],C=this.stack.length;for(this.pushTokens(b);this.stack.length>C;){var L=this.expandOnce(!0);L instanceof a&&(L.treatAsRelax&&(L.noexpand=!1,L.treatAsRelax=!1),A.push(this.stack.pop()))}return A},T.expandMacroAsText=function(b){var A=this.expandMacro(b);return A&&A.map(function(C){return C.text}).join("")},T._getExpansion=function(b){var A=this.macros.get(b);if(A==null)return A;var C=typeof A=="function"?A(this):A;if(typeof C=="string"){var L=0;if(C.indexOf("#")!==-1)for(var H=C.replace(/##/g,"");H.indexOf("#"+(L+1))!==-1;)++L;for(var K=new Rm(C,this.settings),X=[],Te=K.lex();Te.text!=="EOF";)X.push(Te),Te=K.lex();X.reverse();var ve={tokens:X,numArgs:L};return ve}return C},T.isDefined=function(b){return this.macros.has(b)||ys.hasOwnProperty(b)||Dr.math.hasOwnProperty(b)||Dr.text.hasOwnProperty(b)||Lm.hasOwnProperty(b)},T.isExpandable=function(b){var A=this.macros.get(b);return A!=null?typeof A=="string"||typeof A=="function"||!A.unexpandable:ys.hasOwnProperty(b)},g})(),Ym={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},Op={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",č:"č",ĉ:"ĉ",ċ:"ċ",ď:"ď",ḋ:"ḋ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ĺ:"ĺ",ľ:"ľ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ď:"Ď",Ḋ:"Ḋ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ĺ:"Ĺ",Ľ:"Ľ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ť:"Ť",Ṫ:"Ṫ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},vc=(function(){function g(b,A){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new zm(b,A,this.mode),this.settings=A,this.leftrightDepth=0}var T=g.prototype;return T.expect=function(b,A){if(A===void 0&&(A=!0),this.fetch().text!==b)throw new u("Expected '"+b+"', got '"+this.fetch().text+"'",this.fetch());A&&this.consume()},T.consume=function(){this.nextToken=null},T.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},T.switchMode=function(b){this.mode=b,this.gullet.switchMode(b)},T.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var b=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),b},T.parseExpression=function(b,A){for(var C=[];;){this.mode==="math"&&this.consumeSpaces();var L=this.fetch();if(g.endOfExpression.indexOf(L.text)!==-1||A&&L.text===A||b&&ys[L.text]&&ys[L.text].infix)break;var H=this.parseAtom(A);if(H){if(H.type==="internal")continue}else break;C.push(H)}return this.mode==="text"&&this.formLigatures(C),this.handleInfixNodes(C)},T.handleInfixNodes=function(b){for(var A=-1,C,L=0;L<b.length;L++)if(b[L].type==="infix"){if(A!==-1)throw new u("only one infix operator per group",b[L].token);A=L,C=b[L].replaceWith}if(A!==-1&&C){var H,K,X=b.slice(0,A),Te=b.slice(A+1);X.length===1&&X[0].type==="ordgroup"?H=X[0]:H={type:"ordgroup",mode:this.mode,body:X},Te.length===1&&Te[0].type==="ordgroup"?K=Te[0]:K={type:"ordgroup",mode:this.mode,body:Te};var ve;return C==="\\\\abovefrac"?ve=this.callFunction(C,[H,b[A],K],[]):ve=this.callFunction(C,[H,K],[]),[ve]}else return b},T.handleSupSubscript=function(b){var A=this.fetch(),C=A.text;this.consume();var L=this.parseGroup(b,!1,g.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!L)throw new u("Expected group after '"+C+"'",A);return L},T.formatUnsupportedCmd=function(b){for(var A=[],C=0;C<b.length;C++)A.push({type:"textord",mode:"text",text:b[C]});var L={type:"text",mode:this.mode,body:A},H={type:"color",mode:this.mode,color:this.settings.errorColor,body:[L]};return H},T.parseAtom=function(b){var A=this.parseGroup("atom",!1,null,b);if(this.mode==="text")return A;for(var C,L;;){this.consumeSpaces();var H=this.fetch();if(H.text==="\\limits"||H.text==="\\nolimits"){if(A&&A.type==="op"){var K=H.text==="\\limits";A.limits=K,A.alwaysHandleSupSub=!0}else if(A&&A.type==="operatorname"&&A.alwaysHandleSupSub){var X=H.text==="\\limits";A.limits=X}else throw new u("Limit controls must follow a math operator",H);this.consume()}else if(H.text==="^"){if(C)throw new u("Double superscript",H);C=this.handleSupSubscript("superscript")}else if(H.text==="_"){if(L)throw new u("Double subscript",H);L=this.handleSupSubscript("subscript")}else if(H.text==="'"){if(C)throw new u("Double superscript",H);var Te={type:"textord",mode:this.mode,text:"\\prime"},ve=[Te];for(this.consume();this.fetch().text==="'";)ve.push(Te),this.consume();this.fetch().text==="^"&&ve.push(this.handleSupSubscript("superscript")),C={type:"ordgroup",mode:this.mode,body:ve}}else break}return C||L?{type:"supsub",mode:this.mode,base:A,sup:C,sub:L}:A},T.parseFunction=function(b,A,C){var L=this.fetch(),H=L.text,K=ys[H];if(!K)return null;if(this.consume(),C!=null&&K.greediness<=C)throw new u("Got function '"+H+"' with no arguments"+(A?" as "+A:""),L);if(this.mode==="text"&&!K.allowedInText)throw new u("Can't use function '"+H+"' in text mode",L);if(this.mode==="math"&&K.allowedInMath===!1)throw new u("Can't use function '"+H+"' in math mode",L);var X=this.parseArguments(H,K),Te=X.args,ve=X.optArgs;return this.callFunction(H,Te,ve,L,b)},T.callFunction=function(b,A,C,L,H){var K={funcName:b,parser:this,token:L,breakOnTokenText:H},X=ys[b];if(X&&X.handler)return X.handler(K,A,C);throw new u("No function handler for "+b)},T.parseArguments=function(b,A){var C=A.numArgs+A.numOptionalArgs;if(C===0)return{args:[],optArgs:[]};for(var L=A.greediness,H=[],K=[],X=0;X<C;X++){var Te=A.argTypes&&A.argTypes[X],ve=X<A.numOptionalArgs,Ne=X>0&&!ve||X===0&&!ve&&this.mode==="math",Ke=this.parseGroupOfType("argument to '"+b+"'",Te,ve,L,Ne);if(!Ke){if(ve){K.push(null);continue}throw new u("Expected group after '"+b+"'",this.fetch())}(ve?K:H).push(Ke)}return{args:H,optArgs:K}},T.parseGroupOfType=function(b,A,C,L,H){switch(A){case"color":return H&&this.consumeSpaces(),this.parseColorGroup(C);case"size":return H&&this.consumeSpaces(),this.parseSizeGroup(C);case"url":return this.parseUrlGroup(C,H);case"math":case"text":return this.parseGroup(b,C,L,void 0,A,H);case"hbox":{var K=this.parseGroup(b,C,L,void 0,"text",H);if(!K)return K;var X={type:"styling",mode:K.mode,body:[K],style:"text"};return X}case"raw":{if(H&&this.consumeSpaces(),C&&this.fetch().text==="{")return null;var Te=this.parseStringGroup("raw",C,!0);if(Te)return{type:"raw",mode:"text",string:Te.text};throw new u("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(b,C,L,void 0,void 0,H);default:throw new u("Unknown group type as "+b,this.fetch())}},T.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},T.parseStringGroup=function(b,A,C){var L=A?"[":"{",H=A?"]":"}",K=this.fetch();if(K.text!==L){if(A)return null;if(C&&K.text!=="EOF"&&/[^{}[\]]/.test(K.text))return this.consume(),K}var X=this.mode;this.mode="text",this.expect(L);for(var Te="",ve=this.fetch(),Ne=0,Ke=ve,rt;(rt=this.fetch()).text!==H||C&&Ne>0;){switch(rt.text){case"EOF":throw new u("Unexpected end of input in "+b,ve.range(Ke,Te));case L:Ne++;break;case H:Ne--;break}Ke=rt,Te+=Ke.text,this.consume()}return this.expect(H),this.mode=X,ve.range(Ke,Te)},T.parseRegexGroup=function(b,A){var C=this.mode;this.mode="text";for(var L=this.fetch(),H=L,K="",X;(X=this.fetch()).text!=="EOF"&&b.test(K+X.text);)H=X,K+=H.text,this.consume();if(K==="")throw new u("Invalid "+A+": '"+L.text+"'",L);return this.mode=C,L.range(H,K)},T.parseColorGroup=function(b){var A=this.parseStringGroup("color",b);if(!A)return null;var C=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(A.text);if(!C)throw new u("Invalid color: '"+A.text+"'",A);var L=C[0];return/^[0-9a-f]{6}$/i.test(L)&&(L="#"+L),{type:"color-token",mode:this.mode,color:L}},T.parseSizeGroup=function(b){var A,C=!1;if(!b&&this.fetch().text!=="{"?A=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):A=this.parseStringGroup("size",b),!A)return null;!b&&A.text.length===0&&(A.text="0pt",C=!0);var L=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(A.text);if(!L)throw new u("Invalid size: '"+A.text+"'",A);var H={number:+(L[1]+L[2]),unit:L[3]};if(!Rl(H))throw new u("Invalid unit: '"+H.unit+"'",A);return{type:"size",mode:this.mode,value:H,isBlank:C}},T.parseUrlGroup=function(b,A){this.gullet.lexer.setCatcode("%",13);var C=this.parseStringGroup("url",b,!0);if(this.gullet.lexer.setCatcode("%",14),!C)return null;var L=C.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:L}},T.parseGroup=function(b,A,C,L,H,K){var X=this.mode;H&&this.switchMode(H),K&&this.consumeSpaces();var Te=this.fetch(),ve=Te.text,Ne;if(A?ve==="[":ve==="{"||ve==="\\begingroup"){this.consume();var Ke=g.endOfGroup[ve];this.gullet.beginGroup();var rt=this.parseExpression(!1,Ke),yt=this.fetch();this.expect(Ke),this.gullet.endGroup(),Ne={type:"ordgroup",mode:this.mode,loc:s.range(Te,yt),body:rt,semisimple:ve==="\\begingroup"||void 0}}else if(A)Ne=null;else if(Ne=this.parseFunction(L,b,C)||this.parseSymbol(),Ne==null&&ve[0]==="\\"&&!Lm.hasOwnProperty(ve)){if(this.settings.throwOnError)throw new u("Undefined control sequence: "+ve,Te);Ne=this.formatUnsupportedCmd(ve),this.consume()}return H&&this.switchMode(X),Ne},T.formLigatures=function(b){for(var A=b.length-1,C=0;C<A;++C){var L=b[C],H=L.text;H==="-"&&b[C+1].text==="-"&&(C+1<A&&b[C+2].text==="-"?(b.splice(C,3,{type:"textord",mode:"text",loc:s.range(L,b[C+2]),text:"---"}),A-=2):(b.splice(C,2,{type:"textord",mode:"text",loc:s.range(L,b[C+1]),text:"--"}),A-=1)),(H==="'"||H==="`")&&b[C+1].text===H&&(b.splice(C,2,{type:"textord",mode:"text",loc:s.range(L,b[C+1]),text:H+H}),A-=1)}},T.parseSymbol=function(){var b=this.fetch(),A=b.text;if(/^\\verb[^a-zA-Z]/.test(A)){this.consume();var C=A.slice(5),L=C.charAt(0)==="*";if(L&&(C=C.slice(1)),C.length<2||C.charAt(0)!==C.slice(-1))throw new u(`\\verb assertion failed -- please report what input caused this bug`);return C=C.slice(1,-1),{type:"verb",mode:"text",body:C,star:L}}Op.hasOwnProperty(A[0])&&!Dr[this.mode][A[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+A[0]+'" used in math mode',b),A=Op[A[0]]+A.substr(1));var H=kd.exec(A);H&&(A=A.substring(0,H.index),A==="i"?A="ı":A==="j"&&(A="ȷ"));var K;if(Dr[this.mode][A]){this.settings.strict&&this.mode==="math"&&Pn.indexOf(A)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+A[0]+'" used in math mode',b);var X=Dr[this.mode][A].group,Te=s.range(b),ve;if(ur.hasOwnProperty(X)){var Ne=X;ve={type:"atom",mode:this.mode,family:Ne,loc:Te,text:A}}else ve={type:X,mode:this.mode,loc:Te,text:A};K=ve}else if(A.charCodeAt(0)>=128)this.settings.strict&&(jt(A.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+A[0]+'" used in math mode',b):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+A[0]+'"'+(" ("+A.charCodeAt(0)+")"),b)),K={type:"textord",mode:"text",loc:s.range(b),text:A};else return null;if(this.consume(),H)for(var Ke=0;Ke<H[0].length;Ke++){var rt=H[0][Ke];if(!Ym[rt])throw new u("Unknown accent ' "+rt+"'",b);var yt=Ym[rt][this.mode];if(!yt)throw new u("Accent "+rt+" unsupported in "+this.mode+" mode",b);K={type:"accent",mode:this.mode,loc:s.range(b),label:yt,isStretchy:!1,isShifty:!0,base:K}}return K},g})();vc.endOfExpression=["}","\\endgroup","\\end","\\right","&"],vc.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},vc.SUPSUB_GREEDINESS=1;var Hm=function(g,T){if(!(typeof g=="string"||g instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var b=new vc(g,T);delete b.gullet.macros.current["\\df@tag"];var A=b.parse();if(b.gullet.macros.get("\\df@tag")){if(!T.displayMode)throw new u("\\tag works only in display equations");b.gullet.feed("\\df@tag"),A=[{type:"tag",mode:"text",body:A,tag:b.parse()}]}return A},Nd=Hm,Mp=function(g,T,b){T.textContent="";var A=$0(g,b).toNode();T.appendChild(A)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Mp=function(){throw new u("KaTeX doesn't work in quirks mode.")});var Pm=function(g,T){var b=$0(g,T).toMarkup();return b},Z0=function(g,T){var b=new P(T);return Nd(g,b)},Fd=function(g,T,b){if(b.throwOnError||!(g instanceof u))throw g;var A=xe.makeSpan(["katex-error"],[new de(T)]);return A.setAttribute("title",g.toString()),A.setAttribute("style","color:"+b.errorColor),A},$0=function(g,T){var b=new P(T);try{var A=Nd(g,b);return Po(A,g,b)}catch(C){return Fd(C,g,b)}},Od=function(g,T){var b=new P(T);try{var A=Nd(g,b);return Bs(A,g,b)}catch(C){return Fd(C,g,b)}},Rp={version:"0.12.0",render:Mp,renderToString:Pm,ParseError:u,__parse:Z0,__renderToDomTree:$0,__renderToHTMLTree:Od,__setFontMetrics:Re,__defineSymbol:_,__defineMacro:Q,__domTree:{Span:dt,Anchor:ut,SymbolNode:de,SvgNode:We,PathNode:Sr,LineNode:kr}};i.default=Rp})]).default})})($T)),$T.exports}var x6,rw;function kue(){if(rw)return x6;rw=1;var e=xue();function r(s,a){var l,u,c=s.posMax,d=!0,h=!0;return l=a>0?s.src.charCodeAt(a-1):-1,u=a+1<=c?s.src.charCodeAt(a+1):-1,(l===32||l===9||u>=48&&u<=57)&&(h=!1),(u===32||u===9)&&(d=!1),{can_open:d,can_close:h}}function n(s,a){var l,u,c,d,h;if(s.src[s.pos]!=="$")return!1;if(d=r(s,s.pos),!d.can_open)return a||(s.pending+="$"),s.pos+=1,!0;for(l=s.pos+1,u=l;(u=s.src.indexOf("$",u))!==-1;){for(h=u-1;s.src[h]==="\\";)h-=1;if((u-h)%2==1)break;u+=1}return u===-1?(a||(s.pending+="$"),s.pos=l,!0):u-l===0?(a||(s.pending+="$$"),s.pos=l+1,!0):(d=r(s,u),d.can_close?(a||(c=s.push("math_inline","math",0),c.markup="$",c.content=s.src.slice(l,u)),s.pos=u+1,!0):(a||(s.pending+="$"),s.pos=l,!0))}function i(s,a,l,u){var c,d,h,p,f=!1,m,v=s.bMarks[a]+s.tShift[a],w=s.eMarks[a];if(v+2>w||s.src.slice(v,v+2)!=="$$")return!1;if(v+=2,c=s.src.slice(v,w),u)return!0;for(c.trim().slice(-2)==="$$"&&(c=c.trim().slice(0,-2),f=!0),h=a;!f&&(h++,!(h>=l||(v=s.bMarks[h]+s.tShift[h],w=s.eMarks[h],v<w&&s.tShift[h]<s.blkIndent)));)s.src.slice(v,w).trim().slice(-2)==="$$"&&(p=s.src.slice(0,w).lastIndexOf("$$"),d=s.src.slice(v,p),f=!0);return s.line=h+1,m=s.push("math_block","math",0),m.block=!0,m.content=(c&&c.trim()?c+` `:"")+s.getLines(a+1,h,s.tShift[a],!0)+(d&&d.trim()?d:""),m.map=[a,s.line],m.markup="$$",!0}function o(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}return x6=function(s,a){a=a||{};var l=function(h){a.displayMode=!1;try{return e.renderToString(h,a)}catch(p){return a.throwOnError&&console.log(p),`<span class='katex-error' title='${o(p.toString())}'>${o(h)}</span>`}},u=function(h,p){return l(h[p].content)},c=function(h){a.displayMode=!0;try{return"<p class='katex-block'>"+e.renderToString(h,a)+"</p>"}catch(p){return a.throwOnError&&console.log(p),`<p class='katex-block katex-error' title='${o(p.toString())}'>${o(h)}</p>`}},d=function(h,p){return c(h[p].content)+` `};s.inline.ruler.after("escape","math_inline",n),s.block.ruler.after("blockquote","math_block",i,{alt:["paragraph","reference","blockquote","list"]}),s.renderer.rules.math_inline=u,s.renderer.rules.math_block=d},x6}var Cue=kue();const _ue=D0(Cue),Nue=e=>e.use(_ue);function Fue(e,r){const[n,i,o]=e.slice(r-1,r+2);return n?.type==="paragraph_open"&&i.type==="inline"&&i.children&&i.children.length===3&&i.children[0].type==="link_open"&&i.children[0].attrGet("title")==="preview"&&i.children[1].type==="text"&&i.children[2].type==="link_close"&&o.type==="paragraph_close"}function Oue(e,r){e.splice(r+1,1),e.splice(r-1,1)}const Mue=e=>{function r({tokens:n}){for(let i=1,o=n.length;i<o-1;++i)Fue(n,i)&&Oue(n,i)}e.core.ruler.before("linkify","link_previews",r)};function Rue(e){e.core.ruler.after("task-lists","split-mixed-task-lists",r=>{const n=r.tokens;for(let i=0;i<n.length;i++){const o=n[i];if(!k6(o,"contains-task-list"))continue;const s=n[i+1],a=k6(s,"task-list-item");a||(o.attrs.splice(o.attrIndex("class")),o.attrs.length===0&&(o.attrs=null));const l=Iue(n,i,u=>u.nesting===1&&k6(u,"task-list-item")!==a);l>i&&Bue(n,l,r.Token)}return!1})}function k6(e,r){return e.attrGet("class")?.split(" ").includes(r)||!1}function Bue(e,r,n){const i=new n("bullet_list_close","ul",-1);i.block=!0;const o=new n("bullet_list_open","ul",1);o.attrSet("class","contains-task-list"),o.block=!0,o.markup=e[r].markup,e.splice(r,0,i,o)}function Iue(e,r,n){const i=e[r].level+1;for(let o=r+1;o<e.length;o++){const s=e[o];if(s.level<i)return-1;if(s.level===i&&n(e[o]))return o}return-1}const C7=/^ *\[([\sx])] /i;function Lue(e,r={enabled:!1,label:!1,lineNumber:!1}){e.core.ruler.after("inline","task-lists",n=>zue(n,r)),e.renderer.rules.taskListItemCheckbox=n=>{const i=n[0],o=i.attrGet("checked")?'checked="" ':"",s=i.attrGet("disabled")?'disabled="" ':"",a=i.attrGet("line"),l=`id="${i.attrGet("id")}" `,u=a&&r.lineNumber?`data-line="${a}" `:"";return`<input class="task-list-item-checkbox" type="checkbox" ${o}${s}${u}${l}/>`},e.renderer.rules.taskListItemLabel_close=()=>"</label>",e.renderer.rules.taskListItemLabel_open=n=>`<label for="${n[0].attrGet("id")}">`}function zue(e,r){const n=e.tokens;for(let i=2;i<n.length;i++){if(!Hue(n,i))continue;Pue(n[i],r),n[i-2].attrJoin("class",`task-list-item ${r.enabled?" enabled":""}`);const o=Yue(n,i-2);o&&((o.attrGet("class")??"").match(/(^| )contains-task-list/)||o.attrJoin("class","contains-task-list"))}return!1}function Yue(e,r){const n=e[r].level-1;for(let i=r-1;i>=0;i--)if(e[i].level===n)return e[i]}function Hue(e,r){return jue(e[r])&&Gue(e[r-1])&&que(e[r-2])&&Wue(e[r])}function Pue(e,r){if(e.children==null)return;const n=Zue(e);e.children.splice(0,0,$ue(e,r.enabled,n)),e.children[1].content=e.children[1].content.replace(C7,""),r.label&&(e.children.splice(1,0,Uue(n)),e.children.push(Vue()))}function Zue(e){return e.map?`task-item-${e.map[0]}`:`task-item-${Math.ceil(Math.random()*(1e4*1e3)-1e3)}`}function $ue(e,r,n){const i=new Jo("taskListItemCheckbox","",0);return r||i.attrSet("disabled","true"),e.map&&i.attrSet("line",e.map[0].toString()),i.attrSet("id",n),C7.exec(e.content)?.[1].toLowerCase()==="x"&&i.attrSet("checked","true"),i}function Uue(e){const r=new Jo("taskListItemLabel_open","",1);return r.attrSet("id",e),r}function Vue(){return new Jo("taskListItemLabel_close","",-1)}function jue(e){return e.type==="inline"}function Gue(e){return e.type==="paragraph_open"}function que(e){return e.type==="list_item_open"}function Wue(e){return C7.test(e.content)}function Kue(e){e.inline.ruler2.after("emphasis","underline",r=>{const n=r.tokens;for(let i=n.length-1;i>0;i--){const o=n[i];o.markup==="__"&&(o.type==="strong_open"&&(n[i].tag="u",n[i].type="u_open"),o.type==="strong_close"&&(n[i].tag="u",n[i].type="u_close"))}return!1})}const Bu=ws("commonmark",{html:!1,breaks:!1}).enable("strikethrough").enable("table").use(Lue,{enable:!0,labelAfter:!0}).use(lue,e=>{}).use(Rue).use(Kue).use(wue).use(yue).use(Eue).use(Mue).use(Sue).use(Eae).use(cue).use(Nue).use(fue,{multiline:!0,rowspan:!1,multibody:!1});Bu.renderer.rules.front_matter=(e,r,n)=>`<pre id="frontmatter"><code>${t0(e[r].meta)}</code></pre>`,Bu.renderer.rules.bullet_list_open=(e,r,n)=>(e[r].attrs=[...e[r].attrs||[],["data-bullet",e[r].markup]],Bu.renderer.renderToken(e,r,n));function Que(e){return[/\*\*.*?\*\*/,/\*.*?\*/,/\[.*?\(.*?\)/,/^#{1,6}\s.*$/,/^\s*[-+*]\s.*/m,/^\s\d\..*/m,/^>+\s.*/,/`.*?`/].some(r=>r.test(e))}function Jue(e){try{return Bu.parse(e),!0}catch{return!1}}function lM(e){return Que(e)&&Jue(e)}const nw="STATUS_FAILED",iw="STATUS_SUCCESSFUL",ow="STATUS_RUNNING",sw="STATUS_SCHEDULED",Xue="STATUS_UNKNOWN",ece={name:"AssistantAction",components:{ErrorOutlineIcon:w9,NcAssistantIcon:Ese,ClockOutline:D9,CheckCircleOutlineIcon:S9,DeleteOutlineIcon:e7,TextBoxPlusOutlineIcon:dae,PencilOutlineIcon:Xv,TextShort:gae,FormatHeader1:eF,Shuffle:sae,TranslateVariant:NJ,ClipboardTextOutlineIcon:Qse,NcActions:Nl,NcActionButton:_0,NcActionSeparator:I3,NcListItem:zse,NcLoadingIcon:np,NcModal:Vf},extends:Yh,mixins:[Bb,z3],setup(){const{editor:e}=hd();return{editor:e}},data(){return{menuOpen:!1,taskTypes:zu("text","taskprocessing",[]),selection:"",tasks:[],loading:!1,STATUS_FAILED:nw,STATUS_RUNNING:ow,STATUS_SCHEDULED:sw,STATUS_SUCCESSFUL:iw,STATUS_UNKNOWN:Xue,showTaskList:!1,canTranslate:zu("text","translation_languages",[]).from?.length>0}},computed:{identifier(){return"text-file:"+this.$file.fileId},badgeStateIcon(){return this.tasks.filter(e=>e.status===sw||e.status===ow).length>0?D9:this.tasks.filter(e=>e.status===nw).length>0?w9:this.tasks.filter(e=>e.status===iw).length>0?S9:null},taskTypeIds(){return this.taskTypes.map(e=>e.id)}},watch:{async menuOpen(e){e&&this.tasks.length===0&&(this.loading=!0,await this.fetchTasks(),this.loading=!1)}},beforeMount(){this.editor.on("selectionUpdate",this.onSelection),xu("notifications:notification:received",this.checkNotification)},beforeDestroy(){this.editor.off("selectionUpdate",this.onSelection),jg("notifications:notification:received",this.checkNotification)},methods:{async fetchTasks(){const e=(await qn.get(_s("/taskprocessing/tasks/app/text")+"?customId="+this.identifier)).data.ocs.data.tasks.filter(r=>this.taskTypeIds.includes(r.type));this.tasks=e.map(r=>({...r,title:this.taskTypes.find(n=>n.id===r.type).name})).sort((r,n)=>n.id-r.id)},async checkNotification(e){e.notification.app!=="assistant"||e.notification.actions[0].type!=="WEB"||await this.fetchTasks()},onSelection(){const{selection:e,doc:r}=this.editor.state;this.selection=r.textBetween(e.from,e.to," ")},async openAssistantForm(e=null){await window.OCA.Assistant.openAssistantForm({appId:"text",customId:this.identifier,taskType:e,inputs:{input:this.selection},isInsideViewer:!0,closeOnResult:!1,actionButtons:[{variant:"primary",title:lt("text","Insert result"),label:lt("text","Insert result"),onClick:r=>{this.insertResult(r)}}]}).finally(()=>{this.fetchTasks()})},openTranslateDialog(){let e=!1;this.selection.trim().length||(this.editor.commands.selectAll(),e=!0),Io("text:translate-modal:show",{content:this.selection||""}),e&&this.editor.commands.setTextSelection(0)},async openResult(e){window.OCA.Assistant.openAssistantTask(e,{isInsideViewer:!0,actionButtons:[{variant:"primary",title:lt("text","Insert result"),label:lt("text","Insert result"),onClick:r=>{this.insertResult(r)}}]})},async insertResult(e){const r=lM(e.output.output)?Bu.render(e.output.output):e.output.output;this.editor.commands.insertContent(r),this.showTaskList=!1},async copyResult(e){try{await navigator.clipboard.writeText(e.output.output),gk(lt("text","Nextcloud Assistant result copied")),this.showTaskList=!1}catch(r){console.error(r),uu(lt("text","Could not copy result to clipboard"))}},async deleteTask(e){try{await qn.delete(_s(`/taskprocessing/task/${e.id}`))}catch(n){console.error("Failed to delete task",n)}const r=this.tasks.findIndex(n=>n.id===e.id);r>-1&&this.$delete(this.tasks,r)},t:lt}};var tce=function(){var e=this,r=e._self._c;return r("div",{staticClass:"assistant-action"},[r("NcActions",{staticClass:"entry-action entry-action__assistant",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,"force-menu":""},on:{"update:open":n=>{e.menuOpen=e.menuOpen||n}},scopedSlots:e._u([{key:"icon",fn:function(){return[r("NcAssistantIcon",{staticClass:"assistant-icon",attrs:{size:20}})]},proxy:!0}])},[e._l(e.taskTypes,function(n){return r("NcActionButton",{key:n.id,attrs:{"close-after-click":""},on:{click:function(i){return e.openAssistantForm(n.id)}},scopedSlots:e._u([{key:"icon",fn:function(){return[n.id=="core:text2text"?r("PencilOutlineIcon",{attrs:{size:20}}):n.id=="core:text2text:headline"?r("FormatHeader1",{attrs:{size:20}}):n.id=="core:text2text:reformulation"?r("Shuffle",{attrs:{size:20}}):n.id=="core:text2text:summary"?r("TextShort",{attrs:{size:20}}):r("NcAssistantIcon")]},proxy:!0}],null,!0)},[e._v(" "+e._s(n.name)+" ")])}),e.canTranslate?r("NcActionButton",{attrs:{"data-cy":"open-translate","close-after-click":""},on:{click:e.openTranslateDialog},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TranslateVariant",{attrs:{size:20}})]},proxy:!0}],null,!1,722262457)},[e._v(" "+e._s(e.t("text","Translate"))+" ")]):e._e(),r("NcActionSeparator"),r("NcActionButton",{attrs:{disabled:e.tasks.length<1,"close-after-click":""},on:{click:function(n){e.showTaskList=!0}},scopedSlots:e._u([{key:"icon",fn:function(){return[e.loading?r("NcLoadingIcon",{attrs:{size:20}}):r("NcAssistantIcon",{staticClass:"assistant-icon",attrs:{size:20}})]},proxy:!0}])},[e._v(" "+e._s(e.t("text","Show assistant results"))+" ")])],2),e.badgeStateIcon?r(e.badgeStateIcon,{tag:"component",staticClass:"assistant-action--badge",attrs:{"fill-color":"var(--color-text-maxcontrast)",size:16}}):e._e(),r("NcModal",{attrs:{show:e.showTaskList,name:e.t("text","Assistant results")},on:{"update:show":function(n){e.showTaskList=n}}},[r("div",{staticClass:"task-list"},[e.tasks.length>0?r("h4",[r("span",{staticClass:"assistant-bubble"},[r("NcAssistantIcon",{staticClass:"assistant-icon",attrs:{size:20}}),r("span",[e._v(e._s(e.t("text","Nextcloud Assistant")))])],1)]):e._e(),e.tasks.length>0?r("ul",e._l(e.tasks,function(n){return r("NcListItem",{key:n.id,attrs:{name:n.title,bold:!1,"force-display-actions":!0},on:{click:()=>e.openResult(n)},scopedSlots:e._u([{key:"subname",fn:function(){return[e._v(" "+e._s(n.input.input)+" ")]},proxy:!0},{key:"icon",fn:function(){return[n.status===e.STATUS_SUCCESSFUL?r("CheckCircleOutlineIcon",{staticClass:"icon-status--success",attrs:{size:20}}):n.status===e.STATUS_FAILED?r("ErrorOutlineIcon",{staticClass:"icon-status--failed",attrs:{size:20}}):r("ClockOutline",{attrs:{size:20}})]},proxy:!0},{key:"indicator",fn:function(){return[r("NcActions",{attrs:{inline:2}},[n.status===e.STATUS_SUCCESSFUL?r("NcActionButton",{attrs:{title:n.output.output},on:{click:function(i){return i.stopPropagation(),(()=>e.copyResult(n)).apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[r("ClipboardTextOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.t("text","Insert result"))+" ")]):e._e()],1)]},proxy:!0},{key:"actions",fn:function(){return[n.status===e.STATUS_SUCCESSFUL?r("NcActionButton",{attrs:{title:n.output.output},on:{click:function(i){return i.stopPropagation(),(()=>e.openResult(n)).apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[r("NcAssistantIcon",{staticClass:"assistant-icon",attrs:{size:20}})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.t("text","Show result"))+" ")]):e._e(),n.status===e.STATUS_SUCCESSFUL?r("NcActionButton",{attrs:{title:n.output.output},on:{click:()=>e.insertResult(n)},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TextBoxPlusOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.t("text","Insert result"))+" ")]):e._e(),r("NcActionButton",{on:{click:()=>e.deleteTask(n)},scopedSlots:e._u([{key:"icon",fn:function(){return[r("DeleteOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.t("text","Delete task"))+" ")])]},proxy:!0}],null,!0)})}),1):e._e()])])],1)},rce=[],nce=Ze(ece,tce,rce,!1,null,"a76d1257");const ice=nce.exports;var UT={exports:{}},oce=UT.exports,aw;function sce(){return aw||(aw=1,(function(e,r){(function(n,i){e.exports=i()})(typeof self<"u"?self:oce,function(){return(function(n){function i(s){if(o[s])return o[s].exports;var a=o[s]={i:s,l:!1,exports:{}};return n[s].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var o={};return i.m=n,i.c=o,i.d=function(s,a,l){i.o(s,a)||Object.defineProperty(s,a,{configurable:!1,enumerable:!0,get:l})},i.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return i.d(a,"a",a),a},i.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},i.p="",i(i.s=59)})([function(n,i){function o(a,l){var u=a[1]||"",c=a[3];if(!c)return u;if(l&&typeof btoa=="function"){var d=s(c);return[u].concat(c.sources.map(function(h){return"/*# sourceURL="+c.sourceRoot+h+" */"})).concat([d]).join(` `)}return[u].join(` `)}function s(a){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"}n.exports=function(a){var l=[];return l.toString=function(){return this.map(function(u){var c=o(u,a);return u[2]?"@media "+u[2]+"{"+c+"}":c}).join("")},l.i=function(u,c){typeof u=="string"&&(u=[[null,u,""]]);for(var d={},h=0;h<this.length;h++){var p=this[h][0];typeof p=="number"&&(d[p]=!0)}for(h=0;h<u.length;h++){var f=u[h];typeof f[0]=="number"&&d[f[0]]||(c&&!f[2]?f[2]=c:c&&(f[2]="("+f[2]+") and ("+c+")"),l.push(f))}},l}},function(n,i,o){function s(V){for(var W=0;W<V.length;W++){var ie=V[W],ue=p[ie.id];if(ue){ue.refs++;for(var I=0;I<ue.parts.length;I++)ue.parts[I](ie.parts[I]);for(;I<ie.parts.length;I++)ue.parts.push(l(ie.parts[I]));ue.parts.length>ie.parts.length&&(ue.parts.length=ie.parts.length)}else{for(var ne=[],I=0;I<ie.parts.length;I++)ne.push(l(ie.parts[I]));p[ie.id]={id:ie.id,refs:1,parts:ne}}}}function a(){var V=document.createElement("style");return V.type="text/css",f.appendChild(V),V}function l(V){var W,ie,ue=document.querySelector("style["+R+'~="'+V.id+'"]');if(ue){if(w)return x;ue.parentNode.removeChild(ue)}if(O){var I=v++;ue=m||(m=a()),W=u.bind(null,ue,I,!1),ie=u.bind(null,ue,I,!0)}else ue=a(),W=c.bind(null,ue),ie=function(){ue.parentNode.removeChild(ue)};return W(V),function(ne){if(ne){if(ne.css===V.css&&ne.media===V.media&&ne.sourceMap===V.sourceMap)return;W(V=ne)}else ie()}}function u(V,W,ie,ue){var I=ie?"":ue.css;if(V.styleSheet)V.styleSheet.cssText=P(W,I);else{var ne=document.createTextNode(I),he=V.childNodes;he[W]&&V.removeChild(he[W]),he.length?V.insertBefore(ne,he[W]):V.appendChild(ne)}}function c(V,W){var ie=W.css,ue=W.media,I=W.sourceMap;if(ue&&V.setAttribute("media",ue),k.ssrId&&V.setAttribute(R,W.id),I&&(ie+=` /*# sourceURL=`+I.sources[0]+" */",ie+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(I))))+" */"),V.styleSheet)V.styleSheet.cssText=ie;else{for(;V.firstChild;)V.removeChild(V.firstChild);V.appendChild(document.createTextNode(ie))}}var d=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!d)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 h=o(63),p={},f=d&&(document.head||document.getElementsByTagName("head")[0]),m=null,v=0,w=!1,x=function(){},k=null,R="data-vue-ssr-id",O=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());n.exports=function(V,W,ie,ue){w=ie,k=ue||{};var I=h(V,W);return s(I),function(ne){for(var he=[],re=0;re<I.length;re++){var Ee=I[re],ge=p[Ee.id];ge.refs--,he.push(ge)}ne?(I=h(V,ne),s(I)):I=[];for(var re=0;re<he.length;re++){var ge=he[re];if(ge.refs===0){for(var Oe=0;Oe<ge.parts.length;Oe++)ge.parts[Oe]();delete p[ge.id]}}}};var P=(function(){var V=[];return function(W,ie){return V[W]=ie,V.filter(Boolean).join(` `)}})()},function(n,i){n.exports=function(o,s,a,l,u,c){var d,h=o=o||{},p=typeof o.default;p!=="object"&&p!=="function"||(d=o,h=o.default);var f=typeof h=="function"?h.options:h;s&&(f.render=s.render,f.staticRenderFns=s.staticRenderFns,f._compiled=!0),a&&(f.functional=!0),u&&(f._scopeId=u);var m;if(c?(m=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,x||typeof __VUE_SSR_CONTEXT__>"u"||(x=__VUE_SSR_CONTEXT__),l&&l.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(c)},f._ssrRegister=m):l&&(m=l),m){var v=f.functional,w=v?f.render:f.beforeCreate;v?(f._injectStyles=m,f.render=function(x,k){return m.call(k),w(x,k)}):f.beforeCreate=w?[].concat(w,m):[m]}return{esModule:d,exports:h,options:f}}},function(n,i,o){function s(u,c){var d,h=u&&u.a;!(d=u&&u.hsl?(0,l.default)(u.hsl):u&&u.hex&&u.hex.length>0?(0,l.default)(u.hex):u&&u.hsv?(0,l.default)(u.hsv):u&&u.rgba?(0,l.default)(u.rgba):u&&u.rgb?(0,l.default)(u.rgb):(0,l.default)(u))||d._a!==void 0&&d._a!==null||d.setAlpha(h||1);var p=d.toHsl(),f=d.toHsv();return p.s===0&&(f.h=p.h=u.h||u.hsl&&u.hsl.h||c||0),{hsl:p,hex:d.toHexString().toUpperCase(),hex8:d.toHex8String().toUpperCase(),rgba:d.toRgb(),hsv:f,oldHue:u.h||c||p.h,source:u.source,a:u.a||d.getAlpha()}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(64),l=(function(u){return u&&u.__esModule?u:{default:u}})(a);i.default={props:["value"],data:function(){return{val:s(this.value)}},computed:{colors:{get:function(){return this.val},set:function(u){this.val=u,this.$emit("input",u)}}},watch:{value:function(u){this.val=s(u)}},methods:{colorChange:function(u,c){this.oldHue=this.colors.hsl.h,this.colors=s(u,c||this.oldHue)},isValidHex:function(u){return(0,l.default)(u).isValid()},simpleCheckForValidColor:function(u){for(var c=["r","g","b","a","h","s","l","v"],d=0,h=0,p=0;p<c.length;p++){var f=c[p];u[f]&&(d++,isNaN(u[f])||h++)}if(d===h)return u},paletteUpperCase:function(u){return u.map(function(c){return c.toUpperCase()})},isTransparent:function(u){return(0,l.default)(u).getAlpha()===0}}}},function(n,i){var o=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=o)},function(n,i,o){function s(f){o(65)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(36),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(67),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/common/EditableInput.vue",i.default=p.exports},function(n,i){var o={}.hasOwnProperty;n.exports=function(s,a){return o.call(s,a)}},function(n,i,o){var s=o(8),a=o(16);n.exports=o(9)?function(l,u,c){return s.f(l,u,a(1,c))}:function(l,u,c){return l[u]=c,l}},function(n,i,o){var s=o(13),a=o(42),l=o(25),u=Object.defineProperty;i.f=o(9)?Object.defineProperty:function(c,d,h){if(s(c),d=l(d,!0),s(h),a)try{return u(c,d,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported!");return"value"in h&&(c[d]=h.value),c}},function(n,i,o){n.exports=!o(15)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(n,i,o){var s=o(89),a=o(22);n.exports=function(l){return s(a(l))}},function(n,i,o){var s=o(29)("wks"),a=o(17),l=o(4).Symbol,u=typeof l=="function";(n.exports=function(c){return s[c]||(s[c]=u&&l[c]||(u?l:a)("Symbol."+c))}).store=s},function(n,i,o){function s(f){o(111)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(50),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(113),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/common/Hue.vue",i.default=p.exports},function(n,i,o){var s=o(14);n.exports=function(a){if(!s(a))throw TypeError(a+" is not an object!");return a}},function(n,i){n.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},function(n,i){n.exports=function(o){try{return!!o()}catch{return!0}}},function(n,i){n.exports=function(o,s){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:s}}},function(n,i){var o=0,s=Math.random();n.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++o+s).toString(36))}},function(n,i,o){function s(f){o(123)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(53),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(127),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/common/Saturation.vue",i.default=p.exports},function(n,i,o){function s(f){o(128)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(54),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(133),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/common/Alpha.vue",i.default=p.exports},function(n,i,o){function s(f){o(130)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(55),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(132),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/common/Checkboard.vue",i.default=p.exports},function(n,i){var o=Math.ceil,s=Math.floor;n.exports=function(a){return isNaN(a=+a)?0:(a>0?s:o)(a)}},function(n,i){n.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},function(n,i){n.exports=!0},function(n,i){var o=n.exports={version:"2.5.1"};typeof __e=="number"&&(__e=o)},function(n,i,o){var s=o(14);n.exports=function(a,l){if(!s(a))return a;var u,c;if(l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a))||typeof(u=a.valueOf)=="function"&&!s(c=u.call(a))||!l&&typeof(u=a.toString)=="function"&&!s(c=u.call(a)))return c;throw TypeError("Can't convert object to primitive value")}},function(n,i){n.exports={}},function(n,i,o){var s=o(46),a=o(30);n.exports=Object.keys||function(l){return s(l,a)}},function(n,i,o){var s=o(29)("keys"),a=o(17);n.exports=function(l){return s[l]||(s[l]=a(l))}},function(n,i,o){var s=o(4),a=s["__core-js_shared__"]||(s["__core-js_shared__"]={});n.exports=function(l){return a[l]||(a[l]={})}},function(n,i){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,i,o){var s=o(8).f,a=o(6),l=o(11)("toStringTag");n.exports=function(u,c,d){u&&!a(u=d?u:u.prototype,l)&&s(u,l,{configurable:!0,value:c})}},function(n,i,o){i.f=o(11)},function(n,i,o){var s=o(4),a=o(24),l=o(23),u=o(32),c=o(8).f;n.exports=function(d){var h=a.Symbol||(a.Symbol=l?{}:s.Symbol||{});d.charAt(0)=="_"||d in h||c(h,d,{value:u.f(d)})}},function(n,i){i.f={}.propertyIsEnumerable},function(n,i,o){function s(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(3),l=s(a),u=o(5),c=s(u),d=["#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"];i.default={name:"Compact",mixins:[l.default],props:{palette:{type:Array,default:function(){return d}}},components:{"ed-in":c.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(h){this.colorChange({hex:h,source:"hex"})}}}},function(n,i,o){Object.defineProperty(i,"__esModule",{value:!0}),i.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(s){if(!(this.max!==void 0&&+s>this.max))return s;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(s){this.handleChange(s.target.value)},handleChange:function(s){var a={};a[this.label]=s,a.hex===void 0&&a["#"]===void 0?this.$emit("change",a):s.length>5&&this.$emit("change",a)},handleKeyDown:function(s){var a=this.val,l=Number(a);if(l){var u=this.arrowOffset||1;s.keyCode===38&&(a=l+u,this.handleChange(a),s.preventDefault()),s.keyCode===40&&(a=l-u,this.handleChange(a),s.preventDefault())}}}}},function(n,i,o){Object.defineProperty(i,"__esModule",{value:!0});var s=o(3),a=(function(u){return u&&u.__esModule?u:{default:u}})(s),l=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];i.default={name:"Grayscale",mixins:[a.default],props:{palette:{type:Array,default:function(){return l}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(u){this.colorChange({hex:u,source:"hex"})}}}},function(n,i,o){function s(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(5),l=s(a),u=o(3),c=s(u);i.default={name:"Material",mixins:[c.default],components:{"ed-in":l.default},methods:{onChange:function(d){d&&(d.hex?this.isValidHex(d.hex)&&this.colorChange({hex:d.hex,source:"hex"}):(d.r||d.g||d.b)&&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"}))}}}},function(n,i,o){function s(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(80),l=s(a),u=o(3),c=s(u),d=o(12),h=s(d);i.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:h.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(p){return(p===void 0?"undefined":(0,l.default)(p))!=="object"?{s:.5,l:p}:p})}},methods:{isActive:function(p,f){var m=this.colors.hsl;return m.l===1&&p.l===1||m.l===0&&p.l===0||Math.abs(m.l-p.l)<.01&&Math.abs(m.s-p.s)<.01},hueChange:function(p){this.colorChange(p)},handleSwClick:function(p,f){this.colorChange({h:this.colors.hsl.h,s:f.s,l:f.l,source:"hsl"})}}}},function(n,i,o){var s=o(23),a=o(41),l=o(44),u=o(7),c=o(6),d=o(26),h=o(87),p=o(31),f=o(94),m=o(11)("iterator"),v=!([].keys&&"next"in[].keys()),w=function(){return this};n.exports=function(x,k,R,O,P,V,W){h(R,k,O);var ie,ue,I,ne=function(ct){if(!v&&ct in ge)return ge[ct];switch(ct){case"keys":case"values":return function(){return new R(this,ct)}}return function(){return new R(this,ct)}},he=k+" Iterator",re=P=="values",Ee=!1,ge=x.prototype,Oe=ge[m]||ge["@@iterator"]||P&&ge[P],Me=Oe||ne(P),Ve=P?re?ne("entries"):Me:void 0,it=k=="Array"&&ge.entries||Oe;if(it&&(I=f(it.call(new x)))!==Object.prototype&&I.next&&(p(I,he,!0),s||c(I,m)||u(I,m,w)),re&&Oe&&Oe.name!=="values"&&(Ee=!0,Me=function(){return Oe.call(this)}),s&&!W||!v&&!Ee&&ge[m]||u(ge,m,Me),d[k]=Me,d[he]=w,P)if(ie={values:re?Me:ne("values"),keys:V?Me:ne("keys"),entries:Ve},W)for(ue in ie)ue in ge||l(ge,ue,ie[ue]);else a(a.P+a.F*(v||Ee),k,ie);return ie}},function(n,i,o){var s=o(4),a=o(24),l=o(85),u=o(7),c=function(d,h,p){var f,m,v,w=d&c.F,x=d&c.G,k=d&c.S,R=d&c.P,O=d&c.B,P=d&c.W,V=x?a:a[h]||(a[h]={}),W=V.prototype,ie=x?s:k?s[h]:(s[h]||{}).prototype;x&&(p=h);for(f in p)(m=!w&&ie&&ie[f]!==void 0)&&f in V||(v=m?ie[f]:p[f],V[f]=x&&typeof ie[f]!="function"?p[f]:O&&m?l(v,s):P&&ie[f]==v?(function(ue){var I=function(ne,he,re){if(this instanceof ue){switch(arguments.length){case 0:return new ue;case 1:return new ue(ne);case 2:return new ue(ne,he)}return new ue(ne,he,re)}return ue.apply(this,arguments)};return I.prototype=ue.prototype,I})(v):R&&typeof v=="function"?l(Function.call,v):v,R&&((V.virtual||(V.virtual={}))[f]=v,d&c.R&&W&&!W[f]&&u(W,f,v)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,n.exports=c},function(n,i,o){n.exports=!o(9)&&!o(15)(function(){return Object.defineProperty(o(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(n,i,o){var s=o(14),a=o(4).document,l=s(a)&&s(a.createElement);n.exports=function(u){return l?a.createElement(u):{}}},function(n,i,o){n.exports=o(7)},function(n,i,o){var s=o(13),a=o(88),l=o(30),u=o(28)("IE_PROTO"),c=function(){},d=function(){var h,p=o(43)("iframe"),f=l.length;for(p.style.display="none",o(93).appendChild(p),p.src="javascript:",h=p.contentWindow.document,h.open(),h.write("<script>document.F=Object<\/script>"),h.close(),d=h.F;f--;)delete d.prototype[l[f]];return d()};n.exports=Object.create||function(h,p){var f;return h!==null?(c.prototype=s(h),f=new c,c.prototype=null,f[u]=h):f=d(),p===void 0?f:a(f,p)}},function(n,i,o){var s=o(6),a=o(10),l=o(90)(!1),u=o(28)("IE_PROTO");n.exports=function(c,d){var h,p=a(c),f=0,m=[];for(h in p)h!=u&&s(p,h)&&m.push(h);for(;d.length>f;)s(p,h=d[f++])&&(~l(m,h)||m.push(h));return m}},function(n,i){var o={}.toString;n.exports=function(s){return o.call(s).slice(8,-1)}},function(n,i){i.f=Object.getOwnPropertySymbols},function(n,i,o){var s=o(46),a=o(30).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(l){return s(l,a)}},function(n,i,o){Object.defineProperty(i,"__esModule",{value:!0}),i.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var s=this.value.hsl.h;return s!==0&&s-this.oldHue>0&&(this.pullDirection="right"),s!==0&&s-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=s,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(s,a){!a&&s.preventDefault();var l=this.$refs.container;if(l){var u,c,d=l.clientWidth,h=l.clientHeight,p=l.getBoundingClientRect().left+window.pageXOffset,f=l.getBoundingClientRect().top+window.pageYOffset,m=s.pageX||(s.touches?s.touches[0].pageX:0),v=s.pageY||(s.touches?s.touches[0].pageY:0),w=m-p,x=v-f;this.direction==="vertical"?(x<0?u=360:x>h?u=0:(c=-100*x/h+100,u=360*c/100),this.colors.hsl.h!==u&&this.$emit("change",{h:u,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(w<0?u=0:w>d?u=360:(c=100*w/d,u=360*c/100),this.colors.hsl.h!==u&&this.$emit("change",{h:u,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown:function(s){this.handleChange(s,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(s){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(n,i,o){function s(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(118),l=s(a),u=o(3),c=s(u),d=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],h=["900","700","500","300","100"],p=(function(){var f=[];return d.forEach(function(m){var v=[];m.toLowerCase()==="black"||m.toLowerCase()==="white"?v=v.concat(["#000000","#FFFFFF"]):h.forEach(function(w){var x=l.default[m][w];v.push(x.toUpperCase())}),f.push(v)}),f})();i.default={name:"Swatches",mixins:[c.default],props:{palette:{type:Array,default:function(){return p}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(f){return f.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(f){this.colorChange({hex:f,source:"hex"})}}}},function(n,i,o){function s(w){return w&&w.__esModule?w:{default:w}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(3),l=s(a),u=o(5),c=s(u),d=o(18),h=s(d),p=o(12),f=s(p),m=o(19),v=s(m);i.default={name:"Photoshop",mixins:[l.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:h.default,hue:f.default,alpha:v.default,"ed-in":c.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var w=this.colors.hsv;return{h:w.h.toFixed(),s:(100*w.s).toFixed(),v:(100*w.v).toFixed()}},hex:function(){var w=this.colors.hex;return w&&w.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(w){this.colorChange(w)},inputChange:function(w){w&&(w["#"]?this.isValidHex(w["#"])&&this.colorChange({hex:w["#"],source:"hex"}):w.r||w.g||w.b||w.a?this.colorChange({r:w.r||this.colors.rgba.r,g:w.g||this.colors.rgba.g,b:w.b||this.colors.rgba.b,a:w.a||this.colors.rgba.a,source:"rgba"}):(w.h||w.s||w.v)&&this.colorChange({h:w.h||this.colors.hsv.h,s:w.s/100||this.colors.hsv.s,v:w.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,i,o){function s(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(125),l=s(a),u=o(126),c=s(u);i.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+"%"}},beforeDestroy:function(){this.unbindEventListeners()},methods:{throttle:(0,c.default)(function(d,h){d(h)},20,{leading:!0,trailing:!1}),handleChange:function(d,h){!h&&d.preventDefault();var p=this.$refs.container;if(p){var f=p.clientWidth,m=p.clientHeight,v=p.getBoundingClientRect().left+window.pageXOffset,w=p.getBoundingClientRect().top+window.pageYOffset,x=d.pageX||(d.touches?d.touches[0].pageX:0),k=d.pageY||(d.touches?d.touches[0].pageY:0),R=(0,l.default)(x-v,0,f),O=(0,l.default)(k-w,0,m),P=R/f,V=(0,l.default)(-O/m+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:P,v:V,a:this.colors.hsv.a,source:"hsva"})}},onChange:function(d){this.$emit("change",d)},handleMouseDown:function(d){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(d){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(n,i,o){Object.defineProperty(i,"__esModule",{value:!0});var s=o(20),a=(function(l){return l&&l.__esModule?l:{default:l}})(s);i.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:a.default},computed:{colors:function(){return this.value},gradientColor:function(){var l=this.colors.rgba,u=[l.r,l.g,l.b].join(",");return"linear-gradient(to right, rgba("+u+", 0) 0%, rgba("+u+", 1) 100%)"}},methods:{handleChange:function(l,u){!u&&l.preventDefault();var c=this.$refs.container;if(c){var d,h=c.clientWidth,p=c.getBoundingClientRect().left+window.pageXOffset,f=l.pageX||(l.touches?l.touches[0].pageX:0),m=f-p;d=m<0?0:m>h?1:Math.round(100*m/h)/100,this.colors.a!==d&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:d,source:"rgba"})}},handleMouseDown:function(l){this.handleChange(l,!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,i,o){function s(u,c,d){if(typeof document>"u")return null;var h=document.createElement("canvas");h.width=h.height=2*d;var p=h.getContext("2d");return p?(p.fillStyle=u,p.fillRect(0,0,h.width,h.height),p.fillStyle=c,p.fillRect(0,0,d,d),p.translate(d,d),p.fillRect(0,0,d,d),h.toDataURL()):null}function a(u,c,d){var h=u+","+c+","+d;if(l[h])return l[h];var p=s(u,c,d);return l[h]=p,p}Object.defineProperty(i,"__esModule",{value:!0});var l={};i.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("+a(this.white,this.grey,this.size)+")"}}}}},function(n,i,o){function s(R){return R&&R.__esModule?R:{default:R}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(3),l=s(a),u=o(5),c=s(u),d=o(18),h=s(d),p=o(12),f=s(p),m=o(19),v=s(m),w=o(20),x=s(w),k=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];i.default={name:"Sketch",mixins:[l.default],components:{saturation:h.default,hue:f.default,alpha:v.default,"ed-in":c.default,checkboard:x.default},props:{presetColors:{type:Array,default:function(){return k}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){var R=void 0;return R=this.colors.a<1?this.colors.hex8:this.colors.hex,R.replace("#","")},activeColor:function(){var R=this.colors.rgba;return"rgba("+[R.r,R.g,R.b,R.a].join(",")+")"}},methods:{handlePreset:function(R){this.colorChange({hex:R,source:"hex"})},childChange:function(R){this.colorChange(R)},inputChange:function(R){R&&(R.hex?this.isValidHex(R.hex)&&this.colorChange({hex:R.hex,source:"hex"}):(R.r||R.g||R.b||R.a)&&this.colorChange({r:R.r||this.colors.rgba.r,g:R.g||this.colors.rgba.g,b:R.b||this.colors.rgba.b,a:R.a||this.colors.rgba.a,source:"rgba"}))}}}},function(n,i,o){function s(k){return k&&k.__esModule?k:{default:k}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(3),l=s(a),u=o(5),c=s(u),d=o(18),h=s(d),p=o(12),f=s(p),m=o(19),v=s(m),w=o(20),x=s(w);i.default={name:"Chrome",mixins:[l.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:h.default,hue:f.default,alpha:v.default,"ed-in":c.default,checkboard:x.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var k=this.colors.hsl,R=k.h,O=k.s,P=k.l;return{h:R.toFixed(),s:(100*O).toFixed()+"%",l:(100*P).toFixed()+"%"}},activeColor:function(){var k=this.colors.rgba;return"rgba("+[k.r,k.g,k.b,k.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(k){this.colorChange(k)},inputChange:function(k){if(k){if(k.hex)this.isValidHex(k.hex)&&this.colorChange({hex:k.hex,source:"hex"});else if(k.r||k.g||k.b||k.a)this.colorChange({r:k.r||this.colors.rgba.r,g:k.g||this.colors.rgba.g,b:k.b||this.colors.rgba.b,a:k.a||this.colors.rgba.a,source:"rgba"});else if(k.h||k.s||k.l){var R=k.s?k.s.replace("%","")/100:this.colors.hsl.s,O=k.l?k.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:k.h||this.colors.hsl.h,s:R,l:O,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,i,o){function s(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(i,"__esModule",{value:!0});var a=o(5),l=s(a),u=o(3),c=s(u),d=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];i.default={name:"Twitter",mixins:[c.default],components:{editableInput:l.default},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default:function(){return d}},triangle:{default:"top-left",validator:function(h){return["hide","top-left","top-right"].includes(h)}}},computed:{hsv:function(){var h=this.colors.hsv;return{h:h.h.toFixed(),s:(100*h.s).toFixed(),v:(100*h.v).toFixed()}},hex:function(){var h=this.colors.hex;return h&&h.replace("#","")}},methods:{equal:function(h){return h.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(h){this.colorChange({hex:h,source:"hex"})},inputChange:function(h){h&&(h["#"]?this.isValidHex(h["#"])&&this.colorChange({hex:h["#"],source:"hex"}):h.r||h.g||h.b||h.a?this.colorChange({r:h.r||this.colors.rgba.r,g:h.g||this.colors.rgba.g,b:h.b||this.colors.rgba.b,a:h.a||this.colors.rgba.a,source:"rgba"}):(h.h||h.s||h.v)&&this.colorChange({h:h.h||this.colors.hsv.h,s:h.s/100||this.colors.hsv.s,v:h.v/100||this.colors.hsv.v,source:"hsv"}))}}}},function(n,i,o){function s(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}var a=o(60),l=s(a),u=o(69),c=s(u),d=o(73),h=s(d),p=o(77),f=s(p),m=o(115),v=s(m),w=o(120),x=s(w),k=o(135),R=s(k),O=o(139),P=s(O),V=o(143),W=s(V),ie=o(19),ue=s(ie),I=o(20),ne=s(I),he=o(5),re=s(he),Ee=o(12),ge=s(Ee),Oe=o(18),Me=s(Oe),Ve=o(3),it=s(Ve),ct={version:"2.8.2",Compact:l.default,Grayscale:c.default,Twitter:W.default,Material:h.default,Slider:f.default,Swatches:v.default,Photoshop:x.default,Sketch:R.default,Chrome:P.default,Alpha:ue.default,Checkboard:ne.default,EditableInput:re.default,Hue:ge.default,Saturation:Me.default,ColorMixin:it.default};n.exports=ct},function(n,i,o){function s(f){o(61)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(35),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(68),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Compact.vue",i.default=p.exports},function(n,i,o){var s=o(62);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("6ce8a5a8",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i){n.exports=function(o,s){for(var a=[],l={},u=0;u<s.length;u++){var c=s[u],d=c[0],h=c[1],p=c[2],f=c[3],m={id:o+":"+u,css:h,media:p,sourceMap:f};l[d]?l[d].parts.push(m):a.push(l[d]={id:d,parts:[m]})}return a}},function(n,i,o){var s;(function(a){function l(ee,ye){if(ee=ee||"",ye=ye||{},ee instanceof l)return ee;if(!(this instanceof l))return new l(ee,ye);var se=u(ee);this._originalInput=ee,this._r=se.r,this._g=se.g,this._b=se.b,this._a=se.a,this._roundA=pt(100*this._a)/100,this._format=ye.format||se.format,this._gradientType=ye.gradientType,this._r<1&&(this._r=pt(this._r)),this._g<1&&(this._g=pt(this._g)),this._b<1&&(this._b=pt(this._b)),this._ok=se.ok,this._tc_id=jr++}function u(ee){var ye={r:0,g:0,b:0},se=1,Pe=null,dt=null,ut=null,Be=!1,Le=!1;return typeof ee=="string"&&(ee=Ot(ee)),typeof ee=="object"&&(Vt(ee.r)&&Vt(ee.g)&&Vt(ee.b)?(ye=c(ee.r,ee.g,ee.b),Be=!0,Le=String(ee.r).substr(-1)==="%"?"prgb":"rgb"):Vt(ee.h)&&Vt(ee.s)&&Vt(ee.v)?(Pe=Ct(ee.s),dt=Ct(ee.v),ye=f(ee.h,Pe,dt),Be=!0,Le="hsv"):Vt(ee.h)&&Vt(ee.s)&&Vt(ee.l)&&(Pe=Ct(ee.s),ut=Ct(ee.l),ye=h(ee.h,Pe,ut),Be=!0,Le="hsl"),ee.hasOwnProperty("a")&&(se=ee.a)),se=Ee(se),{ok:Be,format:ee.format||Le,r:nr(255,Yt(ye.r,0)),g:nr(255,Yt(ye.g,0)),b:nr(255,Yt(ye.b,0)),a:se}}function c(ee,ye,se){return{r:255*ge(ee,255),g:255*ge(ye,255),b:255*ge(se,255)}}function d(ee,ye,se){ee=ge(ee,255),ye=ge(ye,255),se=ge(se,255);var Pe,dt,ut=Yt(ee,ye,se),Be=nr(ee,ye,se),Le=(ut+Be)/2;if(ut==Be)Pe=dt=0;else{var de=ut-Be;switch(dt=Le>.5?de/(2-ut-Be):de/(ut+Be),ut){case ee:Pe=(ye-se)/de+(ye<se?6:0);break;case ye:Pe=(se-ee)/de+2;break;case se:Pe=(ee-ye)/de+4}Pe/=6}return{h:Pe,s:dt,l:Le}}function h(ee,ye,se){function Pe(We,Sr,kr){return kr<0&&(kr+=1),kr>1&&(kr-=1),kr<1/6?We+6*(Sr-We)*kr:kr<.5?Sr:kr<2/3?We+(Sr-We)*(2/3-kr)*6:We}var dt,ut,Be;if(ee=ge(ee,360),ye=ge(ye,100),se=ge(se,100),ye===0)dt=ut=Be=se;else{var Le=se<.5?se*(1+ye):se+ye-se*ye,de=2*se-Le;dt=Pe(de,Le,ee+1/3),ut=Pe(de,Le,ee),Be=Pe(de,Le,ee-1/3)}return{r:255*dt,g:255*ut,b:255*Be}}function p(ee,ye,se){ee=ge(ee,255),ye=ge(ye,255),se=ge(se,255);var Pe,dt,ut=Yt(ee,ye,se),Be=nr(ee,ye,se),Le=ut,de=ut-Be;if(dt=ut===0?0:de/ut,ut==Be)Pe=0;else{switch(ut){case ee:Pe=(ye-se)/de+(ye<se?6:0);break;case ye:Pe=(se-ee)/de+2;break;case se:Pe=(ee-ye)/de+4}Pe/=6}return{h:Pe,s:dt,v:Le}}function f(ee,ye,se){ee=6*ge(ee,360),ye=ge(ye,100),se=ge(se,100);var Pe=a.floor(ee),dt=ee-Pe,ut=se*(1-ye),Be=se*(1-dt*ye),Le=se*(1-(1-dt)*ye),de=Pe%6;return{r:255*[se,Be,ut,ut,Le,se][de],g:255*[Le,se,se,Be,ut,ut][de],b:255*[ut,ut,Le,se,se,Be][de]}}function m(ee,ye,se,Pe){var dt=[ct(pt(ee).toString(16)),ct(pt(ye).toString(16)),ct(pt(se).toString(16))];return Pe&&dt[0].charAt(0)==dt[0].charAt(1)&&dt[1].charAt(0)==dt[1].charAt(1)&&dt[2].charAt(0)==dt[2].charAt(1)?dt[0].charAt(0)+dt[1].charAt(0)+dt[2].charAt(0):dt.join("")}function v(ee,ye,se,Pe,dt){var ut=[ct(pt(ee).toString(16)),ct(pt(ye).toString(16)),ct(pt(se).toString(16)),ct(Ye(Pe))];return dt&&ut[0].charAt(0)==ut[0].charAt(1)&&ut[1].charAt(0)==ut[1].charAt(1)&&ut[2].charAt(0)==ut[2].charAt(1)&&ut[3].charAt(0)==ut[3].charAt(1)?ut[0].charAt(0)+ut[1].charAt(0)+ut[2].charAt(0)+ut[3].charAt(0):ut.join("")}function w(ee,ye,se,Pe){return[ct(Ye(Pe)),ct(pt(ee).toString(16)),ct(pt(ye).toString(16)),ct(pt(se).toString(16))].join("")}function x(ee,ye){ye=ye===0?0:ye||10;var se=l(ee).toHsl();return se.s-=ye/100,se.s=Oe(se.s),l(se)}function k(ee,ye){ye=ye===0?0:ye||10;var se=l(ee).toHsl();return se.s+=ye/100,se.s=Oe(se.s),l(se)}function R(ee){return l(ee).desaturate(100)}function O(ee,ye){ye=ye===0?0:ye||10;var se=l(ee).toHsl();return se.l+=ye/100,se.l=Oe(se.l),l(se)}function P(ee,ye){ye=ye===0?0:ye||10;var se=l(ee).toRgb();return se.r=Yt(0,nr(255,se.r-pt(-ye/100*255))),se.g=Yt(0,nr(255,se.g-pt(-ye/100*255))),se.b=Yt(0,nr(255,se.b-pt(-ye/100*255))),l(se)}function V(ee,ye){ye=ye===0?0:ye||10;var se=l(ee).toHsl();return se.l-=ye/100,se.l=Oe(se.l),l(se)}function W(ee,ye){var se=l(ee).toHsl(),Pe=(se.h+ye)%360;return se.h=Pe<0?360+Pe:Pe,l(se)}function ie(ee){var ye=l(ee).toHsl();return ye.h=(ye.h+180)%360,l(ye)}function ue(ee){var ye=l(ee).toHsl(),se=ye.h;return[l(ee),l({h:(se+120)%360,s:ye.s,l:ye.l}),l({h:(se+240)%360,s:ye.s,l:ye.l})]}function I(ee){var ye=l(ee).toHsl(),se=ye.h;return[l(ee),l({h:(se+90)%360,s:ye.s,l:ye.l}),l({h:(se+180)%360,s:ye.s,l:ye.l}),l({h:(se+270)%360,s:ye.s,l:ye.l})]}function ne(ee){var ye=l(ee).toHsl(),se=ye.h;return[l(ee),l({h:(se+72)%360,s:ye.s,l:ye.l}),l({h:(se+216)%360,s:ye.s,l:ye.l})]}function he(ee,ye,se){ye=ye||6,se=se||30;var Pe=l(ee).toHsl(),dt=360/se,ut=[l(ee)];for(Pe.h=(Pe.h-(dt*ye>>1)+720)%360;--ye;)Pe.h=(Pe.h+dt)%360,ut.push(l(Pe));return ut}function re(ee,ye){ye=ye||6;for(var se=l(ee).toHsv(),Pe=se.h,dt=se.s,ut=se.v,Be=[],Le=1/ye;ye--;)Be.push(l({h:Pe,s:dt,v:ut})),ut=(ut+Le)%1;return Be}function Ee(ee){return ee=parseFloat(ee),(isNaN(ee)||ee<0||ee>1)&&(ee=1),ee}function ge(ee,ye){Ve(ee)&&(ee="100%");var se=it(ee);return ee=nr(ye,Yt(0,parseFloat(ee))),se&&(ee=parseInt(ee*ye,10)/100),a.abs(ee-ye)<1e-6?1:ee%ye/parseFloat(ye)}function Oe(ee){return nr(1,Yt(0,ee))}function Me(ee){return parseInt(ee,16)}function Ve(ee){return typeof ee=="string"&&ee.indexOf(".")!=-1&&parseFloat(ee)===1}function it(ee){return typeof ee=="string"&&ee.indexOf("%")!=-1}function ct(ee){return ee.length==1?"0"+ee:""+ee}function Ct(ee){return ee<=1&&(ee=100*ee+"%"),ee}function Ye(ee){return a.round(255*parseFloat(ee)).toString(16)}function Kt(ee){return Me(ee)/255}function Vt(ee){return!!Ft.CSS_UNIT.exec(ee)}function Ot(ee){ee=ee.replace(_t,"").replace(Fr,"").toLowerCase();var ye=!1;if(Gr[ee])ee=Gr[ee],ye=!0;else if(ee=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var se;return(se=Ft.rgb.exec(ee))?{r:se[1],g:se[2],b:se[3]}:(se=Ft.rgba.exec(ee))?{r:se[1],g:se[2],b:se[3],a:se[4]}:(se=Ft.hsl.exec(ee))?{h:se[1],s:se[2],l:se[3]}:(se=Ft.hsla.exec(ee))?{h:se[1],s:se[2],l:se[3],a:se[4]}:(se=Ft.hsv.exec(ee))?{h:se[1],s:se[2],v:se[3]}:(se=Ft.hsva.exec(ee))?{h:se[1],s:se[2],v:se[3],a:se[4]}:(se=Ft.hex8.exec(ee))?{r:Me(se[1]),g:Me(se[2]),b:Me(se[3]),a:Kt(se[4]),format:ye?"name":"hex8"}:(se=Ft.hex6.exec(ee))?{r:Me(se[1]),g:Me(se[2]),b:Me(se[3]),format:ye?"name":"hex"}:(se=Ft.hex4.exec(ee))?{r:Me(se[1]+""+se[1]),g:Me(se[2]+""+se[2]),b:Me(se[3]+""+se[3]),a:Kt(se[4]+""+se[4]),format:ye?"name":"hex8"}:!!(se=Ft.hex3.exec(ee))&&{r:Me(se[1]+""+se[1]),g:Me(se[2]+""+se[2]),b:Me(se[3]+""+se[3]),format:ye?"name":"hex"}}function jt(ee){var ye,se;return ee=ee||{level:"AA",size:"small"},ye=(ee.level||"AA").toUpperCase(),se=(ee.size||"small").toLowerCase(),ye!=="AA"&&ye!=="AAA"&&(ye="AA"),se!=="small"&&se!=="large"&&(se="small"),{level:ye,size:se}}var _t=/^\s+/,Fr=/\s+$/,jr=0,pt=a.round,nr=a.min,Yt=a.max,vr=a.random;l.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 ee=this.toRgb();return(299*ee.r+587*ee.g+114*ee.b)/1e3},getLuminance:function(){var ee,ye,se,Pe,dt,ut,Be=this.toRgb();return ee=Be.r/255,ye=Be.g/255,se=Be.b/255,Pe=ee<=.03928?ee/12.92:a.pow((ee+.055)/1.055,2.4),dt=ye<=.03928?ye/12.92:a.pow((ye+.055)/1.055,2.4),ut=se<=.03928?se/12.92:a.pow((se+.055)/1.055,2.4),.2126*Pe+.7152*dt+.0722*ut},setAlpha:function(ee){return this._a=Ee(ee),this._roundA=pt(100*this._a)/100,this},toHsv:function(){var ee=p(this._r,this._g,this._b);return{h:360*ee.h,s:ee.s,v:ee.v,a:this._a}},toHsvString:function(){var ee=p(this._r,this._g,this._b),ye=pt(360*ee.h),se=pt(100*ee.s),Pe=pt(100*ee.v);return this._a==1?"hsv("+ye+", "+se+"%, "+Pe+"%)":"hsva("+ye+", "+se+"%, "+Pe+"%, "+this._roundA+")"},toHsl:function(){var ee=d(this._r,this._g,this._b);return{h:360*ee.h,s:ee.s,l:ee.l,a:this._a}},toHslString:function(){var ee=d(this._r,this._g,this._b),ye=pt(360*ee.h),se=pt(100*ee.s),Pe=pt(100*ee.l);return this._a==1?"hsl("+ye+", "+se+"%, "+Pe+"%)":"hsla("+ye+", "+se+"%, "+Pe+"%, "+this._roundA+")"},toHex:function(ee){return m(this._r,this._g,this._b,ee)},toHexString:function(ee){return"#"+this.toHex(ee)},toHex8:function(ee){return v(this._r,this._g,this._b,this._a,ee)},toHex8String:function(ee){return"#"+this.toHex8(ee)},toRgb:function(){return{r:pt(this._r),g:pt(this._g),b:pt(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+pt(this._r)+", "+pt(this._g)+", "+pt(this._b)+")":"rgba("+pt(this._r)+", "+pt(this._g)+", "+pt(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:pt(100*ge(this._r,255))+"%",g:pt(100*ge(this._g,255))+"%",b:pt(100*ge(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+pt(100*ge(this._r,255))+"%, "+pt(100*ge(this._g,255))+"%, "+pt(100*ge(this._b,255))+"%)":"rgba("+pt(100*ge(this._r,255))+"%, "+pt(100*ge(this._g,255))+"%, "+pt(100*ge(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(An[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(ee){var ye="#"+w(this._r,this._g,this._b,this._a),se=ye,Pe=this._gradientType?"GradientType = 1, ":"";if(ee){var dt=l(ee);se="#"+w(dt._r,dt._g,dt._b,dt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Pe+"startColorstr="+ye+",endColorstr="+se+")"},toString:function(ee){var ye=!!ee;ee=ee||this._format;var se=!1,Pe=this._a<1&&this._a>=0;return ye||!Pe||ee!=="hex"&&ee!=="hex6"&&ee!=="hex3"&&ee!=="hex4"&&ee!=="hex8"&&ee!=="name"?(ee==="rgb"&&(se=this.toRgbString()),ee==="prgb"&&(se=this.toPercentageRgbString()),ee!=="hex"&&ee!=="hex6"||(se=this.toHexString()),ee==="hex3"&&(se=this.toHexString(!0)),ee==="hex4"&&(se=this.toHex8String(!0)),ee==="hex8"&&(se=this.toHex8String()),ee==="name"&&(se=this.toName()),ee==="hsl"&&(se=this.toHslString()),ee==="hsv"&&(se=this.toHsvString()),se||this.toHexString()):ee==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return l(this.toString())},_applyModification:function(ee,ye){var se=ee.apply(null,[this].concat([].slice.call(ye)));return this._r=se._r,this._g=se._g,this._b=se._b,this.setAlpha(se._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(V,arguments)},desaturate:function(){return this._applyModification(x,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(R,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(ee,ye){return ee.apply(null,[this].concat([].slice.call(ye)))},analogous:function(){return this._applyCombination(he,arguments)},complement:function(){return this._applyCombination(ie,arguments)},monochromatic:function(){return this._applyCombination(re,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(ue,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},l.fromRatio=function(ee,ye){if(typeof ee=="object"){var se={};for(var Pe in ee)ee.hasOwnProperty(Pe)&&(se[Pe]=Pe==="a"?ee[Pe]:Ct(ee[Pe]));ee=se}return l(ee,ye)},l.equals=function(ee,ye){return!(!ee||!ye)&&l(ee).toRgbString()==l(ye).toRgbString()},l.random=function(){return l.fromRatio({r:vr(),g:vr(),b:vr()})},l.mix=function(ee,ye,se){se=se===0?0:se||50;var Pe=l(ee).toRgb(),dt=l(ye).toRgb(),ut=se/100;return l({r:(dt.r-Pe.r)*ut+Pe.r,g:(dt.g-Pe.g)*ut+Pe.g,b:(dt.b-Pe.b)*ut+Pe.b,a:(dt.a-Pe.a)*ut+Pe.a})},l.readability=function(ee,ye){var se=l(ee),Pe=l(ye);return(a.max(se.getLuminance(),Pe.getLuminance())+.05)/(a.min(se.getLuminance(),Pe.getLuminance())+.05)},l.isReadable=function(ee,ye,se){var Pe,dt,ut=l.readability(ee,ye);switch(dt=!1,Pe=jt(se),Pe.level+Pe.size){case"AAsmall":case"AAAlarge":dt=ut>=4.5;break;case"AAlarge":dt=ut>=3;break;case"AAAsmall":dt=ut>=7}return dt},l.mostReadable=function(ee,ye,se){var Pe,dt,ut,Be,Le=null,de=0;se=se||{},dt=se.includeFallbackColors,ut=se.level,Be=se.size;for(var We=0;We<ye.length;We++)(Pe=l.readability(ee,ye[We]))>de&&(de=Pe,Le=l(ye[We]));return l.isReadable(ee,Le,{level:ut,size:Be})||!dt?Le:(se.includeFallbackColors=!1,l.mostReadable(ee,["#fff","#000"],se))};var Gr=l.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"},An=l.hexNames=(function(ee){var ye={};for(var se in ee)ee.hasOwnProperty(se)&&(ye[ee[se]]=se);return ye})(Gr),Ft=(function(){var ee="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",ye="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?",se="[\\s|\\(]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")[,|\\s]+("+ee+")\\s*\\)?";return{CSS_UNIT:new RegExp(ee),rgb:new RegExp("rgb"+ye),rgba:new RegExp("rgba"+se),hsl:new RegExp("hsl"+ye),hsla:new RegExp("hsla"+se),hsv:new RegExp("hsv"+ye),hsva:new RegExp("hsva"+se),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=l:(s=function(){return l}.call(i,o,i,n))!==void 0&&(n.exports=s)})(Math)},function(n,i,o){var s=o(66);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("0f73e73c",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-editable-input"},[d("input",{directives:[{name:"model",rawName:"v-model",value:u.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":u.labelId},domProps:{value:u.val},on:{keydown:u.handleKeyDown,input:[function(h){h.target.composing||(u.val=h.target.value)},u.update]}}),u._v(" "),d("span",{staticClass:"vc-input__label",attrs:{for:u.label,id:u.labelId}},[u._v(u._s(u.labelSpanText))]),u._v(" "),d("span",{staticClass:"vc-input__desc"},[u._v(u._s(u.desc))])])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[d("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},u._l(u.paletteUpperCase(u.palette),function(h){return d("li",{key:h,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":h==="#FFFFFF"},style:{background:h},attrs:{role:"option","aria-label":"color:"+h,"aria-selected":h===u.pick},on:{click:function(p){u.handlerClick(h)}}},[d("div",{directives:[{name:"show",rawName:"v-show",value:h===u.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])}))])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(70)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(37),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(72),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Grayscale.vue",i.default=p.exports},function(n,i,o){var s=o(71);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("21ddbb74",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[d("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},u._l(u.paletteUpperCase(u.palette),function(h){return d("li",{key:h,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":h=="#FFFFFF"},style:{background:h},attrs:{role:"option","aria-label":"Color:"+h,"aria-selected":h===u.pick},on:{click:function(p){u.handlerClick(h)}}},[d("div",{directives:[{name:"show",rawName:"v-show",value:h===u.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])}))])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(74)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(38),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(76),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Material.vue",i.default=p.exports},function(n,i,o){var s=o(75);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("1ff3af73",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[d("ed-in",{staticClass:"vc-material-hex",style:{borderColor:u.colors.hex},attrs:{label:"hex"},on:{change:u.onChange},model:{value:u.colors.hex,callback:function(h){u.$set(u.colors,"hex",h)},expression:"colors.hex"}}),u._v(" "),d("div",{staticClass:"vc-material-split"},[d("div",{staticClass:"vc-material-third"},[d("ed-in",{attrs:{label:"r"},on:{change:u.onChange},model:{value:u.colors.rgba.r,callback:function(h){u.$set(u.colors.rgba,"r",h)},expression:"colors.rgba.r"}})],1),u._v(" "),d("div",{staticClass:"vc-material-third"},[d("ed-in",{attrs:{label:"g"},on:{change:u.onChange},model:{value:u.colors.rgba.g,callback:function(h){u.$set(u.colors.rgba,"g",h)},expression:"colors.rgba.g"}})],1),u._v(" "),d("div",{staticClass:"vc-material-third"},[d("ed-in",{attrs:{label:"b"},on:{change:u.onChange},model:{value:u.colors.rgba.b,callback:function(h){u.$set(u.colors.rgba,"b",h)},expression:"colors.rgba.b"}})],1)])],1)},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(78)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(39),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(114),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Slider.vue",i.default=p.exports},function(n,i,o){var s=o(79);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("7982aa43",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){function s(h){return h&&h.__esModule?h:{default:h}}i.__esModule=!0;var a=o(81),l=s(a),u=o(100),c=s(u),d=typeof c.default=="function"&&typeof l.default=="symbol"?function(h){return typeof h}:function(h){return h&&typeof c.default=="function"&&h.constructor===c.default&&h!==c.default.prototype?"symbol":typeof h};i.default=typeof c.default=="function"&&d(l.default)==="symbol"?function(h){return h===void 0?"undefined":d(h)}:function(h){return h&&typeof c.default=="function"&&h.constructor===c.default&&h!==c.default.prototype?"symbol":h===void 0?"undefined":d(h)}},function(n,i,o){n.exports={default:o(82),__esModule:!0}},function(n,i,o){o(83),o(96),n.exports=o(32).f("iterator")},function(n,i,o){var s=o(84)(!0);o(40)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,l=this._t,u=this._i;return u>=l.length?{value:void 0,done:!0}:(a=s(l,u),this._i+=a.length,{value:a,done:!1})})},function(n,i,o){var s=o(21),a=o(22);n.exports=function(l){return function(u,c){var d,h,p=String(a(u)),f=s(c),m=p.length;return f<0||f>=m?l?"":void 0:(d=p.charCodeAt(f),d<55296||d>56319||f+1===m||(h=p.charCodeAt(f+1))<56320||h>57343?l?p.charAt(f):d:l?p.slice(f,f+2):h-56320+(d-55296<<10)+65536)}}},function(n,i,o){var s=o(86);n.exports=function(a,l,u){if(s(a),l===void 0)return a;switch(u){case 1:return function(c){return a.call(l,c)};case 2:return function(c,d){return a.call(l,c,d)};case 3:return function(c,d,h){return a.call(l,c,d,h)}}return function(){return a.apply(l,arguments)}}},function(n,i){n.exports=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o}},function(n,i,o){var s=o(45),a=o(16),l=o(31),u={};o(7)(u,o(11)("iterator"),function(){return this}),n.exports=function(c,d,h){c.prototype=s(u,{next:a(1,h)}),l(c,d+" Iterator")}},function(n,i,o){var s=o(8),a=o(13),l=o(27);n.exports=o(9)?Object.defineProperties:function(u,c){a(u);for(var d,h=l(c),p=h.length,f=0;p>f;)s.f(u,d=h[f++],c[d]);return u}},function(n,i,o){var s=o(47);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return s(a)=="String"?a.split(""):Object(a)}},function(n,i,o){var s=o(10),a=o(91),l=o(92);n.exports=function(u){return function(c,d,h){var p,f=s(c),m=a(f.length),v=l(h,m);if(u&&d!=d){for(;m>v;)if((p=f[v++])!=p)return!0}else for(;m>v;v++)if((u||v in f)&&f[v]===d)return u||v||0;return!u&&-1}}},function(n,i,o){var s=o(21),a=Math.min;n.exports=function(l){return l>0?a(s(l),9007199254740991):0}},function(n,i,o){var s=o(21),a=Math.max,l=Math.min;n.exports=function(u,c){return u=s(u),u<0?a(u+c,0):l(u,c)}},function(n,i,o){var s=o(4).document;n.exports=s&&s.documentElement},function(n,i,o){var s=o(6),a=o(95),l=o(28)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(c){return c=a(c),s(c,l)?c[l]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?u:null}},function(n,i,o){var s=o(22);n.exports=function(a){return Object(s(a))}},function(n,i,o){o(97);for(var s=o(4),a=o(7),l=o(26),u=o(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(","),d=0;d<c.length;d++){var h=c[d],p=s[h],f=p&&p.prototype;f&&!f[u]&&a(f,u,h),l[h]=l.Array}},function(n,i,o){var s=o(98),a=o(99),l=o(26),u=o(10);n.exports=o(40)(Array,"Array",function(c,d){this._t=u(c),this._i=0,this._k=d},function(){var c=this._t,d=this._k,h=this._i++;return!c||h>=c.length?(this._t=void 0,a(1)):d=="keys"?a(0,h):d=="values"?a(0,c[h]):a(0,[h,c[h]])},"values"),l.Arguments=l.Array,s("keys"),s("values"),s("entries")},function(n,i){n.exports=function(){}},function(n,i){n.exports=function(o,s){return{value:s,done:!!o}}},function(n,i,o){n.exports={default:o(101),__esModule:!0}},function(n,i,o){o(102),o(108),o(109),o(110),n.exports=o(24).Symbol},function(n,i,o){var s=o(4),a=o(6),l=o(9),u=o(41),c=o(44),d=o(103).KEY,h=o(15),p=o(29),f=o(31),m=o(17),v=o(11),w=o(32),x=o(33),k=o(104),R=o(105),O=o(13),P=o(10),V=o(25),W=o(16),ie=o(45),ue=o(106),I=o(107),ne=o(8),he=o(27),re=I.f,Ee=ne.f,ge=ue.f,Oe=s.Symbol,Me=s.JSON,Ve=Me&&Me.stringify,it=v("_hidden"),ct=v("toPrimitive"),Ct={}.propertyIsEnumerable,Ye=p("symbol-registry"),Kt=p("symbols"),Vt=p("op-symbols"),Ot=Object.prototype,jt=typeof Oe=="function",_t=s.QObject,Fr=!_t||!_t.prototype||!_t.prototype.findChild,jr=l&&h(function(){return ie(Ee({},"a",{get:function(){return Ee(this,"a",{value:7}).a}})).a!=7})?function(Be,Le,de){var We=re(Ot,Le);We&&delete Ot[Le],Ee(Be,Le,de),We&&Be!==Ot&&Ee(Ot,Le,We)}:Ee,pt=function(Be){var Le=Kt[Be]=ie(Oe.prototype);return Le._k=Be,Le},nr=jt&&typeof Oe.iterator=="symbol"?function(Be){return typeof Be=="symbol"}:function(Be){return Be instanceof Oe},Yt=function(Be,Le,de){return Be===Ot&&Yt(Vt,Le,de),O(Be),Le=V(Le,!0),O(de),a(Kt,Le)?(de.enumerable?(a(Be,it)&&Be[it][Le]&&(Be[it][Le]=!1),de=ie(de,{enumerable:W(0,!1)})):(a(Be,it)||Ee(Be,it,W(1,{})),Be[it][Le]=!0),jr(Be,Le,de)):Ee(Be,Le,de)},vr=function(Be,Le){O(Be);for(var de,We=k(Le=P(Le)),Sr=0,kr=We.length;kr>Sr;)Yt(Be,de=We[Sr++],Le[de]);return Be},Gr=function(Be,Le){return Le===void 0?ie(Be):vr(ie(Be),Le)},An=function(Be){var Le=Ct.call(this,Be=V(Be,!0));return!(this===Ot&&a(Kt,Be)&&!a(Vt,Be))&&(!(Le||!a(this,Be)||!a(Kt,Be)||a(this,it)&&this[it][Be])||Le)},Ft=function(Be,Le){if(Be=P(Be),Le=V(Le,!0),Be!==Ot||!a(Kt,Le)||a(Vt,Le)){var de=re(Be,Le);return!de||!a(Kt,Le)||a(Be,it)&&Be[it][Le]||(de.enumerable=!0),de}},ee=function(Be){for(var Le,de=ge(P(Be)),We=[],Sr=0;de.length>Sr;)a(Kt,Le=de[Sr++])||Le==it||Le==d||We.push(Le);return We},ye=function(Be){for(var Le,de=Be===Ot,We=ge(de?Vt:P(Be)),Sr=[],kr=0;We.length>kr;)!a(Kt,Le=We[kr++])||de&&!a(Ot,Le)||Sr.push(Kt[Le]);return Sr};jt||(Oe=function(){if(this instanceof Oe)throw TypeError("Symbol is not a constructor!");var Be=m(arguments.length>0?arguments[0]:void 0),Le=function(de){this===Ot&&Le.call(Vt,de),a(this,it)&&a(this[it],Be)&&(this[it][Be]=!1),jr(this,Be,W(1,de))};return l&&Fr&&jr(Ot,Be,{configurable:!0,set:Le}),pt(Be)},c(Oe.prototype,"toString",function(){return this._k}),I.f=Ft,ne.f=Yt,o(49).f=ue.f=ee,o(34).f=An,o(48).f=ye,l&&!o(23)&&c(Ot,"propertyIsEnumerable",An,!0),w.f=function(Be){return pt(v(Be))}),u(u.G+u.W+u.F*!jt,{Symbol:Oe});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Pe=0;se.length>Pe;)v(se[Pe++]);for(var dt=he(v.store),ut=0;dt.length>ut;)x(dt[ut++]);u(u.S+u.F*!jt,"Symbol",{for:function(Be){return a(Ye,Be+="")?Ye[Be]:Ye[Be]=Oe(Be)},keyFor:function(Be){if(!nr(Be))throw TypeError(Be+" is not a symbol!");for(var Le in Ye)if(Ye[Le]===Be)return Le},useSetter:function(){Fr=!0},useSimple:function(){Fr=!1}}),u(u.S+u.F*!jt,"Object",{create:Gr,defineProperty:Yt,defineProperties:vr,getOwnPropertyDescriptor:Ft,getOwnPropertyNames:ee,getOwnPropertySymbols:ye}),Me&&u(u.S+u.F*(!jt||h(function(){var Be=Oe();return Ve([Be])!="[null]"||Ve({a:Be})!="{}"||Ve(Object(Be))!="{}"})),"JSON",{stringify:function(Be){if(Be!==void 0&&!nr(Be)){for(var Le,de,We=[Be],Sr=1;arguments.length>Sr;)We.push(arguments[Sr++]);return Le=We[1],typeof Le=="function"&&(de=Le),!de&&R(Le)||(Le=function(kr,Wi){if(de&&(Wi=de.call(this,kr,Wi)),!nr(Wi))return Wi}),We[1]=Le,Ve.apply(Me,We)}}}),Oe.prototype[ct]||o(7)(Oe.prototype,ct,Oe.prototype.valueOf),f(Oe,"Symbol"),f(Math,"Math",!0),f(s.JSON,"JSON",!0)},function(n,i,o){var s=o(17)("meta"),a=o(14),l=o(6),u=o(8).f,c=0,d=Object.isExtensible||function(){return!0},h=!o(15)(function(){return d(Object.preventExtensions({}))}),p=function(x){u(x,s,{value:{i:"O"+ ++c,w:{}}})},f=function(x,k){if(!a(x))return typeof x=="symbol"?x:(typeof x=="string"?"S":"P")+x;if(!l(x,s)){if(!d(x))return"F";if(!k)return"E";p(x)}return x[s].i},m=function(x,k){if(!l(x,s)){if(!d(x))return!0;if(!k)return!1;p(x)}return x[s].w},v=function(x){return h&&w.NEED&&d(x)&&!l(x,s)&&p(x),x},w=n.exports={KEY:s,NEED:!1,fastKey:f,getWeak:m,onFreeze:v}},function(n,i,o){var s=o(27),a=o(48),l=o(34);n.exports=function(u){var c=s(u),d=a.f;if(d)for(var h,p=d(u),f=l.f,m=0;p.length>m;)f.call(u,h=p[m++])&&c.push(h);return c}},function(n,i,o){var s=o(47);n.exports=Array.isArray||function(a){return s(a)=="Array"}},function(n,i,o){var s=o(10),a=o(49).f,l={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(d){try{return a(d)}catch{return u.slice()}};n.exports.f=function(d){return u&&l.call(d)=="[object Window]"?c(d):a(s(d))}},function(n,i,o){var s=o(34),a=o(16),l=o(10),u=o(25),c=o(6),d=o(42),h=Object.getOwnPropertyDescriptor;i.f=o(9)?h:function(p,f){if(p=l(p),f=u(f,!0),d)try{return h(p,f)}catch{}if(c(p,f))return a(!s.f.call(p,f),p[f])}},function(n,i){},function(n,i,o){o(33)("asyncIterator")},function(n,i,o){o(33)("observable")},function(n,i,o){var s=o(112);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("7c5f1a1c",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{class:["vc-hue",u.directionClass]},[d("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":u.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:u.handleMouseDown,touchmove:u.handleChange,touchstart:u.handleChange}},[d("div",{staticClass:"vc-hue-pointer",style:{top:u.pointerTop,left:u.pointerLeft},attrs:{role:"presentation"}},[d("div",{staticClass:"vc-hue-picker"})])])])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[d("div",{staticClass:"vc-slider-hue-warp"},[d("hue",{on:{change:u.hueChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1),u._v(" "),d("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},u._l(u.normalizedSwatches,function(h,p){return d("div",{key:p,staticClass:"vc-slider-swatch",attrs:{"data-index":p,"aria-label":"color:"+u.colors.hex,role:"button"},on:{click:function(f){u.handleSwClick(p,h)}}},[d("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":u.isActive(h,p),"vc-slider-swatch-picker--white":h.l===1},style:{background:"hsl("+u.colors.hsl.h+", "+100*h.s+"%, "+100*h.l+"%)"}})])}))])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(116)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(51),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(119),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Swatches.vue",i.default=p.exports},function(n,i,o){var s=o(117);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("10f839a2",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){Object.defineProperty(i,"__esModule",{value:!0}),o.d(i,"red",function(){return s}),o.d(i,"pink",function(){return a}),o.d(i,"purple",function(){return l}),o.d(i,"deepPurple",function(){return u}),o.d(i,"indigo",function(){return c}),o.d(i,"blue",function(){return d}),o.d(i,"lightBlue",function(){return h}),o.d(i,"cyan",function(){return p}),o.d(i,"teal",function(){return f}),o.d(i,"green",function(){return m}),o.d(i,"lightGreen",function(){return v}),o.d(i,"lime",function(){return w}),o.d(i,"yellow",function(){return x}),o.d(i,"amber",function(){return k}),o.d(i,"orange",function(){return R}),o.d(i,"deepOrange",function(){return O}),o.d(i,"brown",function(){return P}),o.d(i,"grey",function(){return V}),o.d(i,"blueGrey",function(){return W}),o.d(i,"darkText",function(){return ie}),o.d(i,"lightText",function(){return ue}),o.d(i,"darkIcons",function(){return I}),o.d(i,"lightIcons",function(){return ne}),o.d(i,"white",function(){return he}),o.d(i,"black",function(){return re});var s={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"},a={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"},l={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"},u={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"},d={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"},h={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"},p={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"},f={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"},v={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"},w={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"},x={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"},k={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"},R={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"},O={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"},P={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},V={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},W={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},ie={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)"},ue={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)"},I={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},ne={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},he="#ffffff",re="#000000";i.default={red:s,pink:a,purple:l,deepPurple:u,indigo:c,blue:d,lightBlue:h,cyan:p,teal:f,green:m,lightGreen:v,lime:w,yellow:x,amber:k,orange:R,deepOrange:O,brown:P,grey:V,blueGrey:W,darkText:ie,lightText:ue,darkIcons:I,lightIcons:ne,white:he,black:re}},function(n,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":u.pick}},[d("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},u._l(u.palette,function(h,p){return d("div",{key:p,staticClass:"vc-swatches-color-group"},u._l(h,function(f){return d("div",{key:f,class:["vc-swatches-color-it",{"vc-swatches-color--white":f==="#FFFFFF"}],style:{background:f},attrs:{role:"option","aria-label":"Color:"+f,"aria-selected":u.equal(f),"data-color":f},on:{click:function(m){u.handlerClick(f)}}},[d("div",{directives:[{name:"show",rawName:"v-show",value:u.equal(f),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[d("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[d("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])}))}))])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(121)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(52),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(134),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Photoshop.vue",i.default=p.exports},function(n,i,o){var s=o(122);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("080365d4",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=o(124);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("b5380e52",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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: pointer; width: 4px; height: 4px; box-shadow: 0 0 0 1.6px #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,i){function o(s,a,l){return a<l?s<a?a:s>l?l:s:s<l?l:s>a?a:s}n.exports=o},function(n,i){function o(I,ne,he){function re(Yt){var vr=Ye,Gr=Kt;return Ye=Kt=void 0,Fr=Yt,Ot=I.apply(Gr,vr)}function Ee(Yt){return Fr=Yt,jt=setTimeout(Me,ne),jr?re(Yt):Ot}function ge(Yt){var vr=Yt-_t,Gr=Yt-Fr,An=ne-vr;return pt?ie(An,Vt-Gr):An}function Oe(Yt){var vr=Yt-_t,Gr=Yt-Fr;return _t===void 0||vr>=ne||vr<0||pt&&Gr>=Vt}function Me(){var Yt=ue();if(Oe(Yt))return Ve(Yt);jt=setTimeout(Me,ge(Yt))}function Ve(Yt){return jt=void 0,nr&&Ye?re(Yt):(Ye=Kt=void 0,Ot)}function it(){jt!==void 0&&clearTimeout(jt),Fr=0,Ye=_t=Kt=jt=void 0}function ct(){return jt===void 0?Ot:Ve(ue())}function Ct(){var Yt=ue(),vr=Oe(Yt);if(Ye=arguments,Kt=this,_t=Yt,vr){if(jt===void 0)return Ee(_t);if(pt)return jt=setTimeout(Me,ne),re(_t)}return jt===void 0&&(jt=setTimeout(Me,ne)),Ot}var Ye,Kt,Vt,Ot,jt,_t,Fr=0,jr=!1,pt=!1,nr=!0;if(typeof I!="function")throw new TypeError(d);return ne=c(ne)||0,a(he)&&(jr=!!he.leading,pt="maxWait"in he,Vt=pt?W(c(he.maxWait)||0,ne):Vt,nr="trailing"in he?!!he.trailing:nr),Ct.cancel=it,Ct.flush=ct,Ct}function s(I,ne,he){var re=!0,Ee=!0;if(typeof I!="function")throw new TypeError(d);return a(he)&&(re="leading"in he?!!he.leading:re,Ee="trailing"in he?!!he.trailing:Ee),o(I,ne,{leading:re,maxWait:ne,trailing:Ee})}function a(I){var ne=typeof I;return!!I&&(ne=="object"||ne=="function")}function l(I){return!!I&&typeof I=="object"}function u(I){return typeof I=="symbol"||l(I)&&V.call(I)==p}function c(I){if(typeof I=="number")return I;if(u(I))return h;if(a(I)){var ne=typeof I.valueOf=="function"?I.valueOf():I;I=a(ne)?ne+"":ne}if(typeof I!="string")return I===0?I:+I;I=I.replace(f,"");var he=v.test(I);return he||w.test(I)?x(I.slice(2),he?2:8):m.test(I)?h:+I}var d="Expected a function",h=NaN,p="[object Symbol]",f=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,w=/^0o[0-7]+$/i,x=parseInt,k=typeof i0=="object"&&i0&&i0.Object===Object&&i0,R=typeof self=="object"&&self&&self.Object===Object&&self,O=k||R||Function("return this")(),P=Object.prototype,V=P.toString,W=Math.max,ie=Math.min,ue=function(){return O.Date.now()};n.exports=s},function(n,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{ref:"container",staticClass:"vc-saturation",style:{background:u.bgColor},on:{mousedown:u.handleMouseDown,touchmove:u.handleChange,touchstart:u.handleChange}},[d("div",{staticClass:"vc-saturation--white"}),u._v(" "),d("div",{staticClass:"vc-saturation--black"}),u._v(" "),d("div",{staticClass:"vc-saturation-pointer",style:{top:u.pointerTop,left:u.pointerLeft}},[d("div",{staticClass:"vc-saturation-circle"})])])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){var s=o(129);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("4dc1b086",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=o(131);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("7e15c05b",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.push([n.i,` .vc-checkerboard { position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; background-size: contain; } `,""])},function(n,i,o){var s=function(){var u=this,c=u.$createElement;return(u._self._c||c)("div",{staticClass:"vc-checkerboard",style:u.bgStyle})},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-alpha"},[d("div",{staticClass:"vc-alpha-checkboard-wrap"},[d("checkboard")],1),u._v(" "),d("div",{staticClass:"vc-alpha-gradient",style:{background:u.gradientColor}}),u._v(" "),d("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:u.handleMouseDown,touchmove:u.handleChange,touchstart:u.handleChange}},[d("div",{staticClass:"vc-alpha-pointer",style:{left:100*u.colors.a+"%"}},[d("div",{staticClass:"vc-alpha-picker"})])])])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{class:["vc-photoshop",u.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[d("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[u._v(u._s(u.head))]),u._v(" "),d("div",{staticClass:"vc-ps-body"},[d("div",{staticClass:"vc-ps-saturation-wrap"},[d("saturation",{on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1),u._v(" "),d("div",{staticClass:"vc-ps-hue-wrap"},[d("hue",{attrs:{direction:"vertical"},on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}},[d("div",{staticClass:"vc-ps-hue-pointer"},[d("i",{staticClass:"vc-ps-hue-pointer--left"}),d("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),u._v(" "),d("div",{class:["vc-ps-controls",u.disableFields?"vc-ps-controls__disable-fields":""]},[d("div",{staticClass:"vc-ps-previews"},[d("div",{staticClass:"vc-ps-previews__label"},[u._v(u._s(u.newLabel))]),u._v(" "),d("div",{staticClass:"vc-ps-previews__swatches"},[d("div",{staticClass:"vc-ps-previews__pr-color",style:{background:u.colors.hex},attrs:{"aria-label":"New color is "+u.colors.hex}}),u._v(" "),d("div",{staticClass:"vc-ps-previews__pr-color",style:{background:u.currentColor},attrs:{"aria-label":"Current color is "+u.currentColor},on:{click:u.clickCurrentColor}})]),u._v(" "),d("div",{staticClass:"vc-ps-previews__label"},[u._v(u._s(u.currentLabel))])]),u._v(" "),u.disableFields?u._e():d("div",{staticClass:"vc-ps-actions"},[d("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":u.acceptLabel},on:{click:u.handleAccept}},[u._v(u._s(u.acceptLabel))]),u._v(" "),d("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":u.cancelLabel},on:{click:u.handleCancel}},[u._v(u._s(u.cancelLabel))]),u._v(" "),d("div",{staticClass:"vc-ps-fields"},[d("ed-in",{attrs:{label:"h",desc:"°",value:u.hsv.h},on:{change:u.inputChange}}),u._v(" "),d("ed-in",{attrs:{label:"s",desc:"%",value:u.hsv.s,max:100},on:{change:u.inputChange}}),u._v(" "),d("ed-in",{attrs:{label:"v",desc:"%",value:u.hsv.v,max:100},on:{change:u.inputChange}}),u._v(" "),d("div",{staticClass:"vc-ps-fields__divider"}),u._v(" "),d("ed-in",{attrs:{label:"r",value:u.colors.rgba.r},on:{change:u.inputChange}}),u._v(" "),d("ed-in",{attrs:{label:"g",value:u.colors.rgba.g},on:{change:u.inputChange}}),u._v(" "),d("ed-in",{attrs:{label:"b",value:u.colors.rgba.b},on:{change:u.inputChange}}),u._v(" "),d("div",{staticClass:"vc-ps-fields__divider"}),u._v(" "),d("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:u.hex},on:{change:u.inputChange}})],1),u._v(" "),u.hasResetButton?d("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:u.handleReset}},[u._v(u._s(u.resetLabel))]):u._e()])])])])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(136)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(56),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(138),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Sketch.vue",i.default=p.exports},function(n,i,o){var s=o(137);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("612c6604",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{class:["vc-sketch",u.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[d("div",{staticClass:"vc-sketch-saturation-wrap"},[d("saturation",{on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1),u._v(" "),d("div",{staticClass:"vc-sketch-controls"},[d("div",{staticClass:"vc-sketch-sliders"},[d("div",{staticClass:"vc-sketch-hue-wrap"},[d("hue",{on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1),u._v(" "),u.disableAlpha?u._e():d("div",{staticClass:"vc-sketch-alpha-wrap"},[d("alpha",{on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1)]),u._v(" "),d("div",{staticClass:"vc-sketch-color-wrap"},[d("div",{staticClass:"vc-sketch-active-color",style:{background:u.activeColor},attrs:{"aria-label":"Current color is "+u.activeColor}}),u._v(" "),d("checkboard")],1)]),u._v(" "),u.disableFields?u._e():d("div",{staticClass:"vc-sketch-field"},[d("div",{staticClass:"vc-sketch-field--double"},[d("ed-in",{attrs:{label:"hex",value:u.hex},on:{change:u.inputChange}})],1),u._v(" "),d("div",{staticClass:"vc-sketch-field--single"},[d("ed-in",{attrs:{label:"r",value:u.colors.rgba.r},on:{change:u.inputChange}})],1),u._v(" "),d("div",{staticClass:"vc-sketch-field--single"},[d("ed-in",{attrs:{label:"g",value:u.colors.rgba.g},on:{change:u.inputChange}})],1),u._v(" "),d("div",{staticClass:"vc-sketch-field--single"},[d("ed-in",{attrs:{label:"b",value:u.colors.rgba.b},on:{change:u.inputChange}})],1),u._v(" "),u.disableAlpha?u._e():d("div",{staticClass:"vc-sketch-field--single"},[d("ed-in",{attrs:{label:"a",value:u.colors.a,"arrow-offset":.01,max:1},on:{change:u.inputChange}})],1)]),u._v(" "),d("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[u._l(u.presetColors,function(h){return[u.isTransparent(h)?d("div",{key:h,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+h},on:{click:function(p){u.handlePreset(h)}}},[d("checkboard")],1):d("div",{key:h,staticClass:"vc-sketch-presets-color",style:{background:h},attrs:{"aria-label":"Color:"+h},on:{click:function(p){u.handlePreset(h)}}})]})],2)])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(140)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(57),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(142),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Chrome.vue",i.default=p.exports},function(n,i,o){var s=o(141);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("1cd16048",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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, monospace; 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,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{class:["vc-chrome",u.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[d("div",{staticClass:"vc-chrome-saturation-wrap"},[d("saturation",{on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1),u._v(" "),d("div",{staticClass:"vc-chrome-body"},[d("div",{staticClass:"vc-chrome-controls"},[d("div",{staticClass:"vc-chrome-color-wrap"},[d("div",{staticClass:"vc-chrome-active-color",style:{background:u.activeColor},attrs:{"aria-label":"current color is "+u.colors.hex}}),u._v(" "),u.disableAlpha?u._e():d("checkboard")],1),u._v(" "),d("div",{staticClass:"vc-chrome-sliders"},[d("div",{staticClass:"vc-chrome-hue-wrap"},[d("hue",{on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1),u._v(" "),u.disableAlpha?u._e():d("div",{staticClass:"vc-chrome-alpha-wrap"},[d("alpha",{on:{change:u.childChange},model:{value:u.colors,callback:function(h){u.colors=h},expression:"colors"}})],1)])]),u._v(" "),u.disableFields?u._e():d("div",{staticClass:"vc-chrome-fields-wrap"},[d("div",{directives:[{name:"show",rawName:"v-show",value:u.fieldsIndex===0,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[d("div",{staticClass:"vc-chrome-field"},[u.hasAlpha?u._e():d("ed-in",{attrs:{label:"hex",value:u.colors.hex},on:{change:u.inputChange}}),u._v(" "),u.hasAlpha?d("ed-in",{attrs:{label:"hex",value:u.colors.hex8},on:{change:u.inputChange}}):u._e()],1)]),u._v(" "),d("div",{directives:[{name:"show",rawName:"v-show",value:u.fieldsIndex===1,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"r",value:u.colors.rgba.r},on:{change:u.inputChange}})],1),u._v(" "),d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"g",value:u.colors.rgba.g},on:{change:u.inputChange}})],1),u._v(" "),d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"b",value:u.colors.rgba.b},on:{change:u.inputChange}})],1),u._v(" "),u.disableAlpha?u._e():d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"a",value:u.colors.a,"arrow-offset":.01,max:1},on:{change:u.inputChange}})],1)]),u._v(" "),d("div",{directives:[{name:"show",rawName:"v-show",value:u.fieldsIndex===2,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"h",value:u.hsl.h},on:{change:u.inputChange}})],1),u._v(" "),d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"s",value:u.hsl.s},on:{change:u.inputChange}})],1),u._v(" "),d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"l",value:u.hsl.l},on:{change:u.inputChange}})],1),u._v(" "),u.disableAlpha?u._e():d("div",{staticClass:"vc-chrome-field"},[d("ed-in",{attrs:{label:"a",value:u.colors.a,"arrow-offset":.01,max:1},on:{change:u.inputChange}})],1)]),u._v(" "),d("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:u.toggleViews}},[d("div",{staticClass:"vc-chrome-toggle-icon"},[d("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:u.showHighlight,mouseenter:u.showHighlight,mouseout:u.hideHighlight}},[d("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"}})])]),u._v(" "),d("div",{directives:[{name:"show",rawName:"v-show",value:u.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l},function(n,i,o){function s(f){o(144)}Object.defineProperty(i,"__esModule",{value:!0});var a=o(58),l=o.n(a);for(var u in a)u!=="default"&&(function(f){o.d(i,f,function(){return a[f]})})(u);var c=o(146),d=o(2),h=s,p=d(l.a,c.a,!1,h,null,null);p.options.__file="src/components/Twitter.vue",i.default=p.exports},function(n,i,o){var s=o(145);typeof s=="string"&&(s=[[n.i,s,""]]),s.locals&&(n.exports=s.locals),o(1)("669a48a5",s,!1,{})},function(n,i,o){i=n.exports=o(0)(!1),i.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,i,o){var s=function(){var u=this,c=u.$createElement,d=u._self._c||c;return d("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":u.triangle==="hide","vc-twitter-top-left-triangle ":u.triangle==="top-left","vc-twitter-top-right-triangle ":u.triangle==="top-right"},style:{width:typeof u.width=="number"?u.width+"px":u.width}},[d("div",{staticClass:"vc-twitter-triangle-shadow"}),u._v(" "),d("div",{staticClass:"vc-twitter-triangle"}),u._v(" "),d("div",{staticClass:"vc-twitter-body"},[u._l(u.defaultColors,function(h,p){return d("span",{key:p,staticClass:"vc-twitter-swatch",style:{background:h,boxShadow:"0 0 4px "+(u.equal(h)?h:"transparent")},on:{click:function(f){u.handlerClick(h)}}})}),u._v(" "),d("div",{staticClass:"vc-twitter-hash"},[u._v("#")]),u._v(" "),d("editable-input",{attrs:{label:"#",value:u.hex},on:{change:u.inputChange}}),u._v(" "),d("div",{staticClass:"vc-twitter-clear"})],2)])},a=[];s._withStripped=!0;var l={render:s,staticRenderFns:a};i.a=l}])})})(UT)),UT.exports}var ace=sce();ar(sL);const lce={model:{event:"update:modelValue",prop:"modelValue"}},uce=Uf({...lce,__name:"NcColorPicker",props:{advancedFields:{type:Boolean},clearable:{type:Boolean},container:{default:"body"},modelValue:{default:""},value:{default:void 0},open:{type:Boolean},palette:{default:()=>[]},paletteOnly:{type:Boolean}},emits:["submit","close","update:modelValue","update:value"],setup(e,{emit:r}){const n=e,i=Ra("value","update:value",!0),o=dk(n,"open",r,{passive:!0,eventName:"update:open"}),s=/^#([a-f0-9]{3}|[a-f0-9]{6})$/i,a=d7(),l=_i(!1),u=ri(()=>{let v=n.palette;for(const w of v)if(typeof w=="string"&&!w.match(s)||typeof w=="object"&&!w.color?.match(s)){pi.error("[NcColorPicker] Invalid palette passed",{color:w}),v=[];break}return v.length===0&&(v=n.clearable?[...c9,l9,u9]:[...c9]),v.map(w=>({color:typeof w=="object"?w.color:w,name:typeof w=="object"&&w.name?w.name:Xe("A color with a HEX value {hex}",{hex:typeof w=="string"?w:w.color})}))});function c(v){r("submit",i.value),v(),l.value=!1}function d(v){v=typeof v=="string"?v:v.color,n.clearable&&i.value===v?i.value=void 0:i.value=v}function h(v){i.value=v.hex}function p(v){return f(v)>.5?l9.color:u9.color}function f(v){const[w,x,k]=m(v);return(.2126*w+.7152*x+.0722*k)/255}function m(v){const w=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(v);return w?[parseInt(w[1],16),parseInt(w[2],16),parseInt(w[3],16)]:[0,0,0]}return{__sfc:!0,props:n,emit:r,currentColor:i,modelOpen:o,HEX_REGEX:s,id:a,advanced:l,normalizedPalette:u,handleConfirm:c,toggleColor:d,pickCustomColor:h,getContrastColor:p,calculateLuma:f,hexToRGB:m,mdiArrowLeft:az,mdiCheck:uk,mdiCloseCircleOutline:sz,mdiDotsHorizontal:oz,Chrome:ace.Chrome,NcButton:as,NcIconSvgWrapper:rp,NcPopover:l3,t:Xe}}});var cce=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r(n.NcPopover,e._g(e._b({attrs:{shown:n.modelOpen,container:e.container,"popup-role":"dialog"},on:{"update:shown":function(i){n.modelOpen=i},"apply-hide":function(i){return n.emit("close")}},scopedSlots:e._u([{key:"trigger",fn:function(i){return[e._t("default",null,null,i)]}},{key:"default",fn:function(i){return[r("div",{staticClass:"color-picker",class:{"color-picker--advanced-fields":n.advanced&&e.advancedFields,"color-picker--clearable":e.clearable},attrs:{role:"dialog","aria-modal":"true","aria-label":n.t("Color picker")}},[r("Transition",{attrs:{name:"slide",mode:"out-in"}},[n.advanced?r(n.Chrome,{staticClass:"color-picker__advanced",attrs:{"disable-alpha":!0,"disable-fields":!e.advancedFields,value:n.currentColor??"#000000"},on:{input:n.pickCustomColor}}):r("div",{staticClass:"color-picker__simple"},[e._l(n.normalizedPalette,function({color:o,name:s},a){return r("label",{key:a,staticClass:"color-picker__simple-color-circle",class:{"color-picker__simple-color-circle--active":o===n.currentColor},style:{backgroundColor:o,color:n.getContrastColor(o)}},[r("span",{staticClass:"hidden-visually"},[e._v(" "+e._s(o)+" -- "+e._s(n.currentColor)+" ")]),o===n.currentColor?r(n.NcIconSvgWrapper,{attrs:{path:n.mdiCheck}}):e._e(),r("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":s,name:`color-picker-${n.id}`},domProps:{checked:o===n.currentColor},on:{click:function(l){return n.toggleColor(o)}}})],1)}),e.clearable?r("label",{staticClass:"color-picker__clear",attrs:{title:n.t("No color")}},[r(n.NcIconSvgWrapper,{attrs:{size:n.currentColor?28:34,path:n.mdiCloseCircleOutline}}),r("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":n.t("No color"),name:`color-picker-${n.id}`},domProps:{checked:!n.currentColor},on:{click:function(o){n.currentColor=void 0}}})],1):e._e()],2)],1),e.paletteOnly?e._e():r("div",{staticClass:"color-picker__navigation"},[n.advanced?r(n.NcButton,{attrs:{"aria-label":n.t("Back"),title:n.t("Back"),variant:"tertiary"},on:{click:function(o){n.advanced=!1}},scopedSlots:e._u([{key:"icon",fn:function(){return[r(n.NcIconSvgWrapper,{attrs:{directional:"",path:n.mdiArrowLeft}})]},proxy:!0}],null,!0)}):r(n.NcButton,{attrs:{"aria-label":n.t("More options"),title:n.t("More options"),variant:"tertiary"},on:{click:function(o){n.advanced=!0}},scopedSlots:e._u([{key:"icon",fn:function(){return[r(n.NcIconSvgWrapper,{attrs:{path:n.mdiDotsHorizontal}})]},proxy:!0}],null,!0)}),r(n.NcButton,{attrs:{variant:"primary"},on:{click:function(o){return n.handleConfirm(i.hide)}}},[e._v(" "+e._s(n.t("Choose"))+" ")])],1)],1)]}}],null,!0)},"NcPopover",e.$attrs,!1),e.$listeners))},dce=[],hce=qt(uce,cce,dce,!1,null,"01d41e75");const pce=hce.exports,uM=Rb("nextcloud-vue").persist(!0).build();let Lp;function fce(e,r=10){Lp||(Lp=new dh.EmojiIndex(ak));const n=cM();let i;return e?(i=Lp.search(`:${e}`,r),i.length<r&&(i=i.concat(Lp.search(e,r-i.length)))):i=dh.frequently.get(r).map(o=>Lp.emoji(o))||[],i.map(o=>o.getSkin(n))}function mce(e){dh.frequently.add(e)}function cM(){const e=Number.parseInt(uM.getItem("NcEmojiPicker::currentSkinTone")??"1");return Math.min(Math.max(e,1),6)}function gce(e){e=Math.min(Math.max(e,1),6),uM.setItem("NcEmojiPicker::currentSkinTone",e.toString())}const yce={name:"CircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Tce=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},bce=[],vce=qt(yce,Tce,bce,!1,null,null);const Ace=vce.exports;ar(aL,nk,rk,tk);let C6;const Ece={search:Xe("Search emoji"),notfound:Xe("No emoji found"),categories:{search:Xe("Search results"),recent:Xe("Frequently used"),smileys:Xe("Smileys & Emotion"),people:Xe("People & Body"),nature:Xe("Animals & Nature"),foods:Xe("Food & Drink"),activity:Xe("Activities"),places:Xe("Travel & Places"),objects:Xe("Objects"),symbols:Xe("Symbols"),flags:Xe("Flags"),custom:Xe("Custom")}},lw=[new ci(255,222,52,Xe("Neutral skin color")),new ci(228,205,166,Xe("Light skin tone")),new ci(250,221,192,Xe("Medium light skin tone")),new ci(174,129,87,Xe("Medium skin tone")),new ci(158,113,88,Xe("Medium dark skin tone")),new ci(96,79,69,Xe("Dark skin tone"))],wce={name:"NcEmojiPicker",components:{Emoji:dh.Emoji,IconCircle:Ace,NcButton:as,NcColorPicker:pce,NcPopover:l3,NcTextField:Y3,Picker:dh.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:Xe("Pick an emoji")},closeOnSelect:{type:Boolean,default:!0},container:{type:[Boolean,String,Object,Element],default:"body"}},emits:["select","select-data","unselect"],setup(){return C6||(C6=new dh.EmojiIndex(ak)),{emojiIndex:C6,skinTonePalette:lw,i18n:Ece}},data(){const e=cM();return{currentColor:lw[e-1],currentSkinTone:e,search:"",open:!1}},computed:{native(){return this.activeSet==="native"}},created(){uz(()=>this.open)},methods:{t:Xe,clearSearch(){this.search="",this.$refs.search.focus()},onChangeSkinTone(e){const r=this.skinTonePalette.findIndex(n=>n.color.toLowerCase()===e.toLowerCase());r>-1&&(this.currentSkinTone=r+1,this.currentColor=this.skinTonePalette[r],gce(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)||!lz(document.activeElement))&&this.$refs.popover.$el.querySelector('button, [role="button"]')?.focus()},handleTabNavigationSkippingEmojis(e){const r=e.target,n=Array.from(this.$refs.picker.$el.querySelectorAll("button:not(.emoji-mart-emoji), input"));e.shiftKey?(n.findLast(i=>r.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING)||n.at(-1)).focus():(n.find(i=>r.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING)||n[0]).focus()},async callPickerArrowHandlerWithScrollFix(e,r){this.$refs.picker[e](r),await this.$nextTick(),this.$refs.picker.$el.querySelector(".emoji-mart-emoji-selected")?.scrollIntoView({block:"center",inline:"center"})}}};var Sce=function(){var e=this,r=e._self._c;return r("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),[r("div",{staticClass:"nc-emoji-picker-container"},[r("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[r("div",{staticClass:"search__wrapper"},[r("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(i){e.search=i},function(i){return n(e.search)}],keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.callPickerArrowHandlerWithScrollFix("onArrowLeft",i)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.callPickerArrowHandlerWithScrollFix("onArrowRight",i)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:e.callPickerArrowHandlerWithScrollFix("onArrowDown",i)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:e.callPickerArrowHandlerWithScrollFix("onArrowUp",i)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.$refs.picker.onEnter.apply(null,arguments)}],"trailing-button-click":function(i){e.clearSearch(),n("")}}}),r("NcColorPicker",{attrs:{"palette-only":"",container:e.container,palette:e.skinTonePalette,value:e.currentColor.color},on:{"update:value":e.onChangeSkinTone}},[r("NcButton",{attrs:{"aria-label":e.t("Skin tone"),variant:"tertiary-no-background"},scopedSlots:e._u([{key:"icon",fn:function(){return[r("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[r("div",{staticClass:"emoji-mart-category-label"},[r("h3",{staticClass:"emoji-mart-category-label"},[e._v(" "+e._s(e.t("Selected"))+" ")])]),r("Emoji",{staticClass:"emoji-selected",attrs:{data:e.emojiIndex,emoji:e.selectedEmoji,native:!0,size:32},on:{click:e.unselect}}),r("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)])},Dce=[],xce=qt(wce,Sce,Dce,!1,null,"a3ed576d");const kce=xce.exports,Cce={name:"EmojiPickerAction",components:{NcEmojiPicker:kce,NcButton:as},extends:Yh,mixins:[z3],methods:{addEmoji({id:e,native:r}){this.actionEntry.action(this.editor?.chain(),{id:e,native:r}).focus().run()}}};var _ce=function(){var e=this,r=e._self._c;return r("NcEmojiPicker",{staticClass:"entry-action entry-action__emoji",attrs:{"data-text-action-entry":e.actionEntry.key,container:e.menuIDSelector},on:{"select-data":e.addEmoji}},[r("div",[r("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[r(e.icon,{tag:"component"})]},proxy:!0}])})],1)])},Nce=[],Fce=Ze(Cce,_ce,Nce,!1,null,null);const Oce=Fce.exports,Mce=/Android|iPhone|iPad|iPod/i.test(navigator.userAgent),R9e=[{key:"outline",forceLabel:!0,icon:i2,click:()=>Io("text:toc:toggle"),label:({displayToc:e})=>e?lt("text","Hide outline"):lt("text","Show outline")}],B9e=[{key:"edit",label:lt("text","Edit"),forceLabel:!0,icon:SX,click:({$readOnlyActions:e}={})=>e?.toggle()}],I9e=[{key:"done",label:lt("text","Done"),icon:DX,click:({$readOnlyActions:e}={})=>e?.toggle()}],L9e=()=>{const e={key:"assistant",label:lt("text","Nextcloud Assistant"),component:ice,priority:7};return zu("text","taskprocessing",[]).length>0?[e]:[]},Rce=e=>{const r=[{key:"undo",label:lt("text","Undo"),keyChar:"z",keyModifiers:[wr.Mod],icon:OX,action:n=>n.undo(),priority:8},{key:"redo",label:lt("text","Redo"),keyChar:"y",keyModifiers:[wr.Mod],icon:xX,action:n=>n.redo(),priority:11},{key:"headings",label:lt("text","Headings"),keyChar:"1…6",keyModifiers:[wr.Mod,wr.Shift],icon:oX,isActive:"heading",children:[{key:"headings-h1",label:lt("text","Heading 1"),keyChar:"1",keyModifiers:[wr.Mod,wr.Shift],icon:sX,isActive:{name:"heading",attributes:{level:1}},action:n=>n.toggleHeading({level:1})},{key:"headings-h2",label:lt("text","Heading 2"),keyChar:"2",keyModifiers:[wr.Mod,wr.Shift],icon:aX,isActive:{name:"heading",attributes:{level:2}},action:n=>n.toggleHeading({level:2})},{key:"headings-h3",label:lt("text","Heading 3"),keyChar:"3",keyModifiers:[wr.Mod,wr.Shift],icon:lX,isActive:{name:"heading",attributes:{level:3}},action:n=>n.toggleHeading({level:3})},{key:"headings-h4",label:lt("text","Heading 4"),keyChar:"4",keyModifiers:[wr.Mod,wr.Shift],isActive:{name:"heading",attributes:{level:4}},icon:uX,action:n=>n.toggleHeading({level:4})},{key:"headings-h5",label:lt("text","Heading 5"),keyChar:"5",keyModifiers:[wr.Mod,wr.Shift],isActive:{name:"heading",attributes:{level:5}},icon:cX,action:n=>n.toggleHeading({level:5})},{key:"headings-h6",label:lt("text","Heading 6"),keyChar:"6",keyModifiers:[wr.Mod,wr.Shift],isActive:{name:"heading",attributes:{level:6}},icon:dX,action:n=>n.toggleHeading({level:6})},{key:"headings-separator",isSeparator:!0,visible:!e},{key:"outline",icon:i2,click:()=>Io("text:toc:toggle"),visible:!e,label:({displayToc:n})=>n?lt("text","Hide outline"):lt("text","Show outline")}],priority:1},{key:"bold",label:lt("text","Bold"),keyChar:"b",keyModifiers:[wr.Mod],icon:iX,isActive:"strong",action:n=>n.toggleBold(),priority:9},{key:"italic",label:lt("text","Italic"),keyChar:"i",keyModifiers:[wr.Mod],icon:fX,isActive:"em",action:n=>n.toggleItalic(),priority:10},{key:"underline",label:lt("text","Underline"),keyChar:"u",keyModifiers:[wr.Mod],icon:bX,isActive:"underline",action:n=>n.toggleUnderline(),priority:12},{key:"strikethrough",label:lt("text","Strikethrough"),keyChar:"s",keyModifiers:[wr.Mod,wr.Shift],icon:TX,isActive:"strike",action:n=>n.toggleStrike(),priority:13},{key:"lists",label:lt("text","Lists"),keyChar:"7…9",keyModifiers:[wr.Mod,wr.Shift],isActive:["bulletList","orderedList","taskList"],icon:i2,children:[{key:"unordered-list",label:lt("text","Unordered list"),keyChar:"8",keyModifiers:[wr.Mod,wr.Shift],isActive:"bulletList",icon:i2,action:n=>n.toggleBulletList()},{key:"ordered-list",label:lt("text","Ordered list"),keyChar:"7",keyModifiers:[wr.Mod,wr.Shift],isActive:"orderedList",icon:gX,action:n=>n.toggleOrderedList()},{key:"task-list",label:lt("text","To-Do list"),keyChar:"9",keyModifiers:[wr.Mod,wr.Shift],isActive:"taskList",icon:mX,action:n=>n.toggleTaskList()},{key:"lists-separator",isSeparator:!0},{key:"list-indent-increase",label:lt("text","Increase indentation"),keyChar:"Tab",icon:pX,action:(n,i)=>i&&i.isActive("taskItem")?n.sinkListItem("taskItem"):n.sinkListItem("listItem")},{key:"list-indent-decrease",label:lt("text","Decrease indentation"),keyChar:"Tab",keyModifiers:[wr.Shift],icon:hX,action:(n,i)=>i&&i.isActive("taskItem")?n.liftListItem("taskItem"):n.liftListItem("listItem")}],priority:2},{key:"blocks",label:lt("text","Blocks"),visible:!1,icon:XJ,isActive:["blockquote","codeBlock","callout","inlineMath","blockMath"],children:[{key:"blockquote",label:lt("text","Blockquote"),keyChar:"b",keyModifiers:[wr.Mod,wr.Shift],isActive:"blockquote",icon:yX,action:n=>n.toggleBlockquote()},{key:"code-block",label:lt("text","Code block"),keyChar:"c",keyModifiers:[wr.Mod,wr.Alt],isActive:"codeBlock",icon:eX,action:n=>n.toggleCodeBlock()},{key:"blocks-separator",isSeparator:!0},{key:"math-inline",label:lt("text","Inline math"),icon:mE,isActive:"inlineMath",action:(n,i)=>{let o="";if(i){const{from:s,to:a,empty:l}=i.state.selection;o=l?"":i.state.doc.textBetween(s,a)}return n.insertInlineMath({latex:o})}},{key:"math-block",label:lt("text","Block math"),icon:mE,isActive:"blockMath",action:(n,i)=>{let o="";if(i){const{from:s,to:a,empty:l}=i.state.selection;o=l?"":i.state.doc.textBetween(s,a)}return n.insertBlockMath({latex:o})}},{key:"math-separator",isSeparator:!0},{key:"callout-info",label:lt("text","Info callout"),isActive:{name:"callout",attributes:{type:"info"}},icon:t7,action:n=>n.toggleCallout({type:"info"})},{key:"callout-success",label:lt("text","Success callout"),isActive:{name:"callout",attributes:{type:"success"}},icon:oF,action:n=>n.toggleCallout({type:"success"})},{key:"callout-warn",label:lt("text","Warning callout"),isActive:{name:"callout",attributes:{type:"warn"}},icon:lF,action:n=>n.toggleCallout({type:"warn"})},{key:"callout-error",label:lt("text","Danger callout"),isActive:{name:"callout",attributes:{type:"error"}},icon:iF,action:n=>n.toggleCallout({type:"error"})}],priority:3},{key:"table",label:lt("text","Table"),isActive:"table",icon:CX,action:n=>n.insertTable(),priority:14},{key:"details",label:lt("text","Details"),isActive:"details",icon:MX,action:n=>n.toggleDetails(),priority:15},{key:"insert-link",label:lt("text","Insert link"),keyChar:"k",keyModifiers:[wr.Mod],isActive:"link",icon:AX,component:hse,priority:4},{key:"insert-attachment",label:lt("text","Insert attachment"),icon:wX,component:mee,priority:5}];return Mce||r.push({key:"emoji-picker",label:lt("text","Insert emoji"),icon:rX,component:Oce,action:(n,i={})=>n.emoji(i),priority:6}),r},Bce=new zb({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 Ice(e,r){if(e.isText&&r.isText&&en.sameSet(e.marks,r.marks))return e.withText(e.text+r.text)}class Lce{constructor(r,n){this.schema=r,this.tokenHandlers=n,this.stack=[{type:r.topNodeType,attrs:null,content:[],marks:en.none}]}top(){return this.stack[this.stack.length-1]}push(r){this.stack.length&&this.top().content.push(r)}addText(r){if(!r)return;let n=this.top(),i=n.content,o=i[i.length-1],s=this.schema.text(r,n.marks),a;o&&(a=Ice(o,s))?i[i.length-1]=a:i.push(s)}openMark(r){let n=this.top();n.marks=r.addToSet(n.marks)}closeMark(r){let n=this.top();n.marks=r.removeFromSet(n.marks)}parseTokens(r){for(let n=0;n<r.length;n++){let i=r[n],o=this.tokenHandlers[i.type];if(!o)throw new Error("Token type `"+i.type+"` not supported by Markdown parser");o(this,i,r,n)}}addNode(r,n,i){let o=this.top(),s=r.createAndFill(n,i,o?o.marks:[]);return s?(this.push(s),s):null}openNode(r,n){this.stack.push({type:r,attrs:n,content:[],marks:en.none})}closeNode(){let r=this.stack.pop();return this.addNode(r.type,r.attrs,r.content)}}function zp(e,r,n,i){return e.getAttrs?e.getAttrs(r,n,i):e.attrs instanceof Function?e.attrs(r):e.attrs}function _6(e,r){return e.noCloseToken||r=="code_inline"||r=="code_block"||r=="fence"}function uw(e){return e[e.length-1]==` `?e.slice(0,e.length-1):e}function N6(){}function zce(e,r){let n=Object.create(null);for(let i in r){let o=r[i];if(o.block){let s=e.nodeType(o.block);_6(o,i)?n[i]=(a,l,u,c)=>{a.openNode(s,zp(o,l,u,c)),a.addText(uw(l.content)),a.closeNode()}:(n[i+"_open"]=(a,l,u,c)=>a.openNode(s,zp(o,l,u,c)),n[i+"_close"]=a=>a.closeNode())}else if(o.node){let s=e.nodeType(o.node);n[i]=(a,l,u,c)=>a.addNode(s,zp(o,l,u,c))}else if(o.mark){let s=e.marks[o.mark];_6(o,i)?n[i]=(a,l,u,c)=>{a.openMark(s.create(zp(o,l,u,c))),a.addText(uw(l.content)),a.closeMark(s)}:(n[i+"_open"]=(a,l,u,c)=>a.openMark(s.create(zp(o,l,u,c))),n[i+"_close"]=a=>a.closeMark(s))}else if(o.ignore)_6(o,i)?n[i]=N6:(n[i+"_open"]=N6,n[i+"_close"]=N6);else throw new RangeError("Unrecognized parsing spec "+JSON.stringify(o))}return n.text=(i,o)=>i.addText(o.content),n.inline=(i,o)=>i.parseTokens(o.children),n.softbreak=n.softbreak||(i=>i.addText(" ")),n}class Yce{constructor(r,n,i){this.schema=r,this.tokenizer=n,this.tokens=i,this.tokenHandlers=zce(r,i)}parse(r,n={}){let i=new Lce(this.schema,this.tokenHandlers),o;i.parseTokens(this.tokenizer.parse(r,n));do o=i.closeNode();while(i.stack.length);return o||this.schema.topNodeType.createAndFill()}}function cw(e,r){for(;++r<e.length;)if(e[r].type!="list_item_open")return e[r].hidden;return!1}new Yce(Bce,ws("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,r,n)=>({tight:cw(r,n)})},ordered_list:{block:"ordered_list",getAttrs:(e,r,n)=>({order:+e.attrGet("start")||1,tight:cw(r,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 Hce={open:"",close:"",mixable:!0};class _7{constructor(r,n,i={}){this.nodes=r,this.marks=n,this.options=i}serialize(r,n={}){n=Object.assign({},this.options,n);let i=new Zce(this.nodes,this.marks,n);return i.renderContent(r),i.out}}const nm=new _7({blockquote(e,r){e.wrapBlock("> ",null,r,()=>e.renderContent(r))},code_block(e,r){const n=r.textContent.match(/`{3,}/gm),i=n?n.sort().slice(-1)[0]+"`":"```";e.write(i+(r.attrs.params||"")+` `),e.text(r.textContent,!1),e.write(` `),e.write(i),e.closeBlock(r)},heading(e,r){e.write(e.repeat("#",r.attrs.level)+" "),e.renderInline(r,!1),e.closeBlock(r)},horizontal_rule(e,r){e.write(r.attrs.markup||"---"),e.closeBlock(r)},bullet_list(e,r){e.renderList(r," ",()=>(r.attrs.bullet||"*")+" ")},ordered_list(e,r){let n=r.attrs.order||1,i=String(n+r.childCount-1).length,o=e.repeat(" ",i+2);e.renderList(r,o,s=>{let a=String(n+s);return e.repeat(" ",i-a.length)+a+". "})},list_item(e,r){e.renderContent(r)},paragraph(e,r){e.renderInline(r),e.closeBlock(r)},image(e,r){e.write("]/g,"\\$&")+(r.attrs.title?' "'+r.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,r,n,i){for(let o=i+1;o<n.childCount;o++)if(n.child(o).type!=r.type){e.write(`\\ `);return}},text(e,r){e.text(r.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open(e,r,n,i){return e.inAutolink=Pce(r,n,i),e.inAutolink?"<":"["},close(e,r,n,i){let{inAutolink:o}=e;return e.inAutolink=void 0,o?">":"]("+r.attrs.href.replace(/[\(\)"]/g,"\\$&")+(r.attrs.title?` "${r.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open(e,r,n,i){return dw(n.child(i),-1)},close(e,r,n,i){return dw(n.child(i-1),1)},escape:!1}});function dw(e,r){let n=/`+/g,i,o=0;if(e.isText)for(;i=n.exec(e.text);)o=Math.max(o,i[0].length);let s=o>0&&r>0?" `":"`";for(let a=0;a<o;a++)s+="`";return o>0&&r<0&&(s+=" "),s}function Pce(e,r,n){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let i=r.child(n);return!i.isText||i.text!=e.attrs.href||i.marks[i.marks.length-1]!=e?!1:n==r.childCount-1||!e.isInSet(r.child(n+1).marks)}class Zce{constructor(r,n,i){this.nodes=r,this.marks=n,this.options=i,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(r=2){if(this.closed){if(this.atBlank()||(this.out+=` `),r>1){let n=this.delim,i=/\s+$/.exec(n);i&&(n=n.slice(0,n.length-i[0].length));for(let o=1;o<r;o++)this.out+=n+` `}this.closed=null}}getMark(r){let n=this.marks[r];if(!n){if(this.options.strict!==!1)throw new Error(`Mark type \`${r}\` not supported by Markdown renderer`);n=Hce}return n}wrapBlock(r,n,i,o){let s=this.delim;this.write(n??r),this.delim+=r,o(),this.delim=s,this.closeBlock(i)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+=` `)}write(r){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),r&&(this.out+=r)}closeBlock(r){this.closed=r}text(r,n=!0){let i=r.split(` `);for(let o=0;o<i.length;o++)this.write(),!n&&i[o][0]=="["&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=n?this.esc(i[o],this.atBlockStart):i[o],o!=i.length-1&&(this.out+=` `)}render(r,n,i){if(this.nodes[r.type.name])this.nodes[r.type.name](this,r,n,i);else{if(this.options.strict!==!1)throw new Error("Token type `"+r.type.name+"` not supported by Markdown renderer");r.type.isLeaf||(r.type.inlineContent?this.renderInline(r):this.renderContent(r),r.isBlock&&this.closeBlock(r))}}renderContent(r){r.forEach((n,i,o)=>this.render(n,r,o))}renderInline(r,n=!0){this.atBlockStart=n;let i=[],o="",s=(a,l,u)=>{let c=a?a.marks:[];a&&a.type.name===this.options.hardBreakNodeName&&(c=c.filter(v=>{if(u+1==r.childCount)return!1;let w=r.child(u+1);return v.isInSet(w.marks)&&(!w.isText||/\S/.test(w.text))}));let d=o;if(o="",a&&a.isText&&c.some(v=>{let w=this.getMark(v.type.name);return w&&w.expelEnclosingWhitespace&&!v.isInSet(i)})){let[v,w,x]=/^(\s*)(.*)$/m.exec(a.text);w&&(d+=w,a=x?a.withText(x):null,a||(c=i))}if(a&&a.isText&&c.some(v=>{let w=this.getMark(v.type.name);return w&&w.expelEnclosingWhitespace&&(u==r.childCount-1||!v.isInSet(r.child(u+1).marks))})){let[v,w,x]=/^(.*?)(\s*)$/m.exec(a.text);x&&(o=x,a=w?a.withText(w):null,a||(c=i))}let h=c.length?c[c.length-1]:null,p=h&&this.getMark(h.type.name).escape===!1,f=c.length-(p?1:0);e:for(let v=0;v<f;v++){let w=c[v];if(!this.getMark(w.type.name).mixable)break;for(let x=0;x<i.length;x++){let k=i[x];if(!this.getMark(k.type.name).mixable)break;if(w.eq(k)){v>x?c=c.slice(0,x).concat(w).concat(c.slice(x,v)).concat(c.slice(v+1,f)):x>v&&(c=c.slice(0,v).concat(c.slice(v+1,x)).concat(w).concat(c.slice(x,f)));continue e}}}let m=0;for(;m<Math.min(i.length,f)&&c[m].eq(i[m]);)++m;for(;m<i.length;)this.text(this.markString(i.pop(),!1,r,u),!1);if(d&&this.text(d),a){for(;i.length<f;){let v=c[i.length];i.push(v),this.text(this.markString(v,!0,r,u),!1),this.atBlockStart=!1}p&&a.isText?this.text(this.markString(h,!0,r,u)+a.text+this.markString(h,!1,r,u+1),!1):this.render(a,r,u),this.atBlockStart=!1}a?.isText&&a.nodeSize>0&&(this.atBlockStart=!1)};r.forEach(s),s(null,0,r.childCount),this.atBlockStart=!1}renderList(r,n,i){this.closed&&this.closed.type==r.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let o=typeof r.attrs.tight<"u"?r.attrs.tight:this.options.tightLists,s=this.inTightList;this.inTightList=o,r.forEach((a,l,u)=>{u&&o&&this.flushClose(1),this.wrapBlock(n,i(u),r,()=>this.render(a,r,u))}),this.inTightList=s}esc(r,n=!1){return r=r.replace(/[`*\\~\[\]_]/g,(i,o)=>i=="_"&&o>0&&o+1<r.length&&r[o-1].match(/\w/)&&r[o+1].match(/\w/)?i:"\\"+i),n&&(r=r.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(r=r.replace(this.options.escapeExtraCharacters,"\\$&")),r}quote(r){let n=r.indexOf('"')==-1?'""':r.indexOf("'")==-1?"''":"()";return n[0]+r+n[1]}repeat(r,n){let i="";for(let o=0;o<n;o++)i+=r;return i}markString(r,n,i,o){let s=this.getMark(r.type.name),a=n?s.open:s.close;return typeof a=="string"?a:a(this,r,i,o)}getEnclosingWhitespace(r){return{leading:(r.match(/^(\s+)/)||[void 0])[0],trailing:(r.match(/(\s+)$/)||[void 0])[0]}}}function $ce(e){const r=new DOMParser().parseFromString(e,"text/html");return Uce(r,n=>{Vce(n)&&(n.textContent=n.textContent.replaceAll(` `," "))}),r.body.innerHTML}function Uce(e,r){const n=e.createNodeIterator(e.body,NodeFilter.SHOW_TEXT);let i=n.nextNode();for(;i;)r(i),i=n.nextNode()}function Vce(e){const r=["normal","nowrap"];let n=e.parentElement;for(;n;){const i=getComputedStyle(n)?.getPropertyValue("white-space");if(i)return r.includes(i);if(n.tagName==="PRE")return!1;n=n.parentElement}return!0}const N7=xr.create({name:"markdown",extendMarkSchema(e){const r={name:e.name,options:e.options,storage:e.storage};return{toMarkdown:zt(e,"toMarkdown",r)}},extendNodeSchema(e){const r={name:e.name,options:e.options,storage:e.storage};return{toMarkdown:zt(e,"toMarkdown",r)}},addProseMirrorPlugins(){let e=!1;return[new lr({key:new hr("pasteEventHandler"),props:{handleDOMEvents:{mouseup(r,n){return e=n.shiftKey,!1}},handleKeyDown(r,n){return e=n.shiftKey,!1},clipboardTextParser(r,n,i,o){const s=hh.fromSchema(o.state.schema),a=document.cloneNode(!1),l=a.createElement("div");if(e)for(const u of r.split(` `)){const c=a.createElement("p");c.innerText=u,l.append(c)}else l.innerHTML=Bu.render(r);return s.parseSlice(l,{preserveWhitespace:!0,context:n})},clipboardTextSerializer:r=>{const n=i=>i.content.childCount>1||i.content.firstChild?.childCount>1?Gce(this.editor.schema).serialize(i.content):i.isLeaf?i.textContent:n(i.content.firstChild);return n(r)},transformPastedHTML:$ce}})]}}),jce=({nodes:e,marks:r})=>({serializer:new _7(hM(e),Wce(r)),serialize(n,i){return this.serializer.serialize(n,{...i,tightLists:!0})}}),Gce=({nodes:e,marks:r})=>({serializer:new _7(hM(e),qce(r)),serialize(n,i){return this.serializer.serialize(n,{...i,tightLists:!0})}}),qce=e=>{const r={open:"",close:"",mixable:!0,expelEnclosingWhitespace:!0},n=F7(nm.marks),i=Object.entries({...n,...e}).map(([o,s])=>[o,r]);return Object.fromEntries(i)},dM=e=>{const r=Object.entries(e).map(([n,i])=>[n,i.spec.toMarkdown]).filter(([,n])=>n);return Object.fromEntries(r)},hM=e=>{const r=F7(nm.nodes),n=dM(e);return{...r,...n}},Wce=e=>{const r=F7(nm.marks),n=dM(e);return{...r,...n}},F7=e=>{const r=n=>n.replace(/_(\w)/g,(i,o)=>o.toUpperCase());return Object.fromEntries(Object.entries(e).map(([n,i])=>[r(n),i]))};function pM(e){return{all:e=e||new Map,on:function(r,n){var i=e.get(r);i?i.push(n):e.set(r,[n])},off:function(r,n){var i=e.get(r);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(r,[]))},emit:function(r,n){var i=e.get(r);i&&i.slice().map(function(o){o(n)}),(i=e.get("*"))&&i.slice().map(function(o){o(r,n)})}}}function Kce(e,r){const n=ud(e),i=n.shareToken?"/public":"",o=bo(`apps/text${i}/session/${n.documentId}/push`);return qn.post(o,{documentId:n.documentId,sessionId:n.sessionId,sessionToken:n.sessionToken,token:n.shareToken,baseVersionEtag:n.baseVersionEtag,version:r.version,steps:r.steps.filter(s=>s),awareness:r.awareness,recoveryAttempt:r.recoveryAttempt})}function Qce(e,r){const n=ud(e),i=n.shareToken?"/public":"",o=bo(`apps/text${i}/session/${n.documentId}/sync`);return qn.post(o,{documentId:n.documentId,sessionId:n.sessionId,sessionToken:n.sessionToken,token:n.shareToken,filePath:n.filePath,baseVersionEtag:n.baseVersionEtag,version:r.version})}function Jce(e){const r=Math.floor(Date.now()/1e3)-Nde;return e.filter(n=>n.lastContact>r).filter(n=>!!n.lastAwarenessMessage).map(n=>({data:[n.lastAwarenessMessage],sessionId:n.id,version:0}))}const fM=0,m4=1,O7=2,VT=(e,r)=>{Ut(e,fM);const n=gN(r);ui(e,n)},mM=(e,r,n)=>{Ut(e,m4),ui(e,Yv(r,n))},Xce=(e,r,n)=>mM(r,n,ho(e)),gM=(e,r,n,i)=>{try{YV(r,ho(e),n)}catch(o){i?.(o),console.error("Caught error while handling a Yjs update",o)}},yM=(e,r)=>{Ut(e,O7),ui(e,r)},ede=gM,hw=(e,r,n,i,o)=>{const s=pr(e);switch(s){case fM:Xce(e,r,n);break;case m4:gM(e,n,i,o);break;case O7:ede(e,n,i,o);break;default:throw new Error("Unknown message type")}return s},TM=new Map;class tde{constructor(r){this.room=r,this.onmessage=null,this._onChange=n=>n.key===r&&this.onmessage!==null&&this.onmessage({data:L_(n.newValue||"")}),gU(this._onChange)}postMessage(r){N_.setItem(this.room,kv(OU(r)))}close(){yU(this._onChange)}}const rde=typeof BroadcastChannel>"u"?tde:BroadcastChannel,M7=e=>aa(TM,e,()=>{const r=T0(),n=new rde(e);return n.onmessage=i=>r.forEach(o=>o(i.data,"broadcastchannel")),{bc:n,subs:r}}),nde=(e,r)=>(M7(e).subs.add(r),r),ide=(e,r)=>{const n=M7(e),i=n.subs.delete(r);return i&&n.subs.size===0&&(n.bc.close(),TM.delete(e)),i},Xd=(e,r,n=null)=>{const i=M7(e);i.bc.postMessage(r),i.subs.forEach(o=>o(r,n))},ode=e=>AU(e,(r,n)=>`${encodeURIComponent(n)}=${encodeURIComponent(r)}`).join("&"),sde=0,ade=(e,r,n)=>{pr(e)===sde&&n(r,Nu(e))},Eu=0,bM=3,Eh=1,lde=2,b1=[];b1[Eu]=(e,r,n,i,o)=>{Ut(e,Eu);const s=eU(r),a=n.doc.store.pendingStructs,l=hw(r,e,n.doc,n);!a&&n.doc.store.pendingStructs&&!e.hasContent&&(console.error("Failed to integrate yjs message. Trying to resync."),Ut(e,Eu),VT(e,n.doc)),i&&((l===m4||l===O7)&&hw(s,$i(),n.remote,n),l===m4&&!n.synced&&(n.synced=!0))},b1[bM]=(e,r,n,i,o)=>{Ut(e,Eh),ui(e,O1(n.awareness,[n.doc.clientID]))},b1[Eh]=(e,r,n,i,o)=>{Qj(n.awareness,ho(r),n)},b1[lde]=(e,r,n,i,o)=>{ade(r,n.doc,(s,a)=>ude(n,a))};const pw=7e4,ude=(e,r)=>console.warn(`Permission denied to access ${e.url}. ${r}`),vM=(e,r,n)=>{const i=k0(r),o=$i(),s=pr(i),a=e.messageHandlers[s];return a?a(o,i,e,n,s):console.error("Unable to compute message"),o},AM=e=>{if(e.shouldConnect&&e.ws===null){const r=new e._WS(e.url,e.protocols);r.binaryType="arraybuffer",e.ws=r,e.wsconnecting=!0,e.wsconnected=!1,e.synced=!1,r.onmessage=n=>{e.wsLastMessageReceived=Pu();const i=vM(e,new Uint8Array(n.data),!0);Tv(i)>1&&r.send(Gn(i))},r.onerror=n=>{e.emit("connection-error",[n,e])},r.onclose=n=>{e.emit("connection-close",[n,e]),e.ws=null,e.wsconnecting=!1,e.wsconnected?(e.wsconnected=!1,e.synced=!1,Wv(e.awareness,Array.from(e.awareness.getStates().keys()).filter(i=>i!==e.doc.clientID),e),e.emit("status",[{status:"disconnected"}])):e.wsUnsuccessfulReconnects++,setTimeout(AM,bl(F$(2,e.wsUnsuccessfulReconnects)*100,e.maxBackoffTime),e)},r.onopen=()=>{if(e.wsLastMessageReceived=Pu(),e.wsconnecting=!1,e.wsconnected=!0,e.wsUnsuccessfulReconnects=0,e.emit("status",[{status:"connected"}]),e.awareness.getLocalState()!==null){const n=$i();Ut(n,Eh),ui(n,O1(e.awareness,[e.doc.clientID])),r.send(Gn(n))}},e.emit("status",[{status:"connecting"}])}},F6=(e,r)=>{const n=e.ws;e.wsconnected&&n&&n.readyState===n.OPEN&&n.send(r),e.bcconnected&&Xd(e.bcChannel,r,e)};class z9e extends w_{constructor(r,n,i,{connect:o=!0,awareness:s=new Kj(i),params:a={},protocols:l=[],WebSocketPolyfill:u=WebSocket,resyncInterval:c=3e4,maxBackoffTime:d=2500,disableBc:h=!1}={}){for(super();r[r.length-1]==="/";)r=r.slice(0,r.length-1);this.serverUrl=r,this.bcChannel=r+"/"+n,this.maxBackoffTime=d,this.params=a,this.protocols=l,this.roomname=n,this.doc=i,this._WS=u,this.awareness=s,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=h,this.wsUnsuccessfulReconnects=0,this.messageHandlers=b1.slice(),this.remote=new tc,this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=o,this._resyncInterval=0,c>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN&&i.store.pendingStructs){const p=$i();Ut(p,Eu),VT(p,i),this.ws.send(Gn(p))}},c)),this._bcSubscriber=(p,f)=>{if(f!==this){const m=vM(this,new Uint8Array(p),!1);Tv(m)>1&&Xd(this.bcChannel,Gn(m),this)}},this._updateHandler=(p,f,m)=>{if(f!==this){const v=gN(this.remote),w=Yv(m,v),x=$i();Ut(x,Eu),yM(x,w),F6(this,Gn(x))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:p,updated:f,removed:m},v)=>{const w=$i();Ut(w,Eh),ui(w,O1(s,[this.doc.clientID])),F6(this,Gn(w))},this._exitHandler=()=>{Wv(this.awareness,[i.clientID],"app closed")},Zu&&typeof Ds<"u"&&Ds.on("exit",this._exitHandler),s.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&pw<Pu()-this.wsLastMessageReceived&&this.ws.close()},pw/10),o&&this.connect()}get url(){const r=ode(this.params);return this.serverUrl+"/"+this.roomname+(r.length===0?"":"?"+r)}get synced(){return this._synced}set synced(r){this._synced!==r&&(this._synced=r,this.emit("synced",[r]),this.emit("sync",[r]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),Zu&&typeof Ds<"u"&&Ds.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||(nde(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const r=$i();Ut(r,Eu),VT(r,this.doc),Xd(this.bcChannel,Gn(r),this);const n=$i();Ut(n,Eu),mM(n,this.doc),Xd(this.bcChannel,Gn(n),this);const i=$i();Ut(i,bM),Xd(this.bcChannel,Gn(i),this);const o=$i();Ut(o,Eh),ui(o,O1(this.awareness,[this.doc.clientID])),Xd(this.bcChannel,Gn(o),this)}disconnectBc(){const r=$i();Ut(r,Eh),ui(r,O1(this.awareness,[this.doc.clientID],new Map)),F6(this,Gn(r)),this.bcconnected&&(ide(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&&(AM(this),this.connectBc())}}function R7(e){const r=new Uint8Array(e);return kv(r)}function cde(e){return L_(e)}function Y9e(e){const r=Yv(e);return R7(r)}function dde(e,r){const n=hde(e);return{data:[R7(n)],sessionId:0,version:r}}function hde(e){const r=cde(e),n=$i();return Ut(n,Eu),yM(n,r),Gn(n)}class pde{#e="";#t="";#i="";#s=0;#r=!1;storeStep(r){const n=R7(r);if(n<"AAA"||n>"Ag"){bi.warn("Unexpected step type:",{step:r,encoded:n});return}if(n<"AAE"){this.#i=n;return}if(n<"AQ"){this.#t=n;return}this.#e=n}setRecoveringSync(){this.#r=!0,this.#s++}getDataToSend(){return{steps:[this.#t,this.#i].filter(r=>r),awareness:this.#e,...this.recoveryData}}get recoveryData(){return this.#r?{recoveryAttempt:this.#s}:{}}get hasUpdate(){return!!this.#t}clearSentData({steps:r,awareness:n}){r.includes(this.#t)&&(this.#t=""),r.includes(this.#i)&&(this.#i="",this.#r=!1),this.#e===n&&(this.#e="")}}var Sc={},fw={};const fde=lk($L);var mw;function mde(){return mw||(mw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const r=fde;function n(){try{return r.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})(fw)),fw}var gw={},yw={},Tw={},bw;function EM(){return bw||(bw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const r=HL(),n=PL(),i=f=>f&&f.__esModule?f:{default:f},o=i(r),s=i(n);class a{bus;constructor(m){typeof m.getVersion!="function"||!s.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.3"}subscribe(m,v){this.bus.subscribe(m,v)}unsubscribe(m,v){this.bus.unsubscribe(m,v)}emit(m,...v){this.bus.emit(m,...v)}}class l{handlers=new Map;getVersion(){return"3.3.3"}subscribe(m,v){this.handlers.set(m,(this.handlers.get(m)||[]).concat(v))}unsubscribe(m,v){this.handlers.set(m,(this.handlers.get(m)||[]).filter(w=>w!==v))}emit(m,...v){(this.handlers.get(m)||[]).forEach(w=>{try{w(v[0])}catch(x){console.error("could not invoke event listener",x)}})}}let u=null;function c(){return u!==null?u: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"?u=new a(window._nc_event_bus):u=window._nc_event_bus=new l,u)}function d(f,m){c().subscribe(f,m)}function h(f,m){c().unsubscribe(f,m)}function p(f,...m){c().emit(f,...m)}e.ProxyBus=a,e.SimpleBus=l,e.emit=p,e.subscribe=d,e.unsubscribe=h})(Tw)),Tw}const gde=lk(ZL);var vw;function yde(){return vw||(vw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const r=EM(),n=gde;let i;const o=[];function s(){return i===void 0&&(i=document.head.dataset.requesttoken??null),i}function a(k){o.push(k)}r.subscribe("csrf-token-update",k=>{i=k.token,o.forEach(R=>{try{R(i)}catch(O){console.error("Error updating CSRF token observer",O)}})});function l(){const k=document?.querySelector('meta[name="csp-nonce"]');if(!k){const R=s();return R?btoa(R):void 0}return k.nonce}const u=n.getBuilder("public").persist().build();class c{_displayName;uid;isAdmin;constructor(){u.getItem("guestUid")||u.setItem("guestUid",m()),this._displayName=u.getItem("guestNickname")||"",this.uid=u.getItem("guestUid")||m(),this.isAdmin=!1,r.subscribe("user:info:changed",R=>{this._displayName=R.displayName,u.setItem("guestNickname",R.displayName||"")})}get displayName(){return this._displayName}set displayName(R){this._displayName=R,u.setItem("guestNickname",R),r.emit("user:info:changed",this)}}let d;function h(){return d||(d=new c),d}function p(){return h()?.displayName||null}function f(k){if(!k||k.trim().length===0)throw new Error("Nickname cannot be empty");h().displayName=k}function m(){return globalThis.crypto?.randomUUID?globalThis.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,k=>{const R=Math.random()*16|0;return(k==="x"?R:R&3|8).toString(16)})}let v;function w(k,R){return k?k.getAttribute(R):null}function x(){if(v!==void 0)return v;const k=document?.getElementsByTagName("head")[0];if(!k)return null;const R=w(k,"data-user");return R===null?(v=null,v):(v={uid:R,displayName:w(k,"data-user-displayname"),isAdmin:!!window._oc_isadmin},v)}e.getCSPNonce=l,e.getCurrentUser=x,e.getGuestNickname=p,e.getGuestUser=h,e.getRequestToken=s,e.onRequestTokenUpdate=a,e.setGuestNickname=f})(yw)),yw}var O6,Aw;function Tde(){if(Aw)return O6;Aw=1;function e(Y,U){return function(){return Y.apply(U,arguments)}}const{toString:r}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:i,toStringTag:o}=Symbol,s=(Y=>U=>{const j=r.call(U);return Y[j]||(Y[j]=j.slice(8,-1).toLowerCase())})(Object.create(null)),a=Y=>(Y=Y.toLowerCase(),U=>s(U)===Y),l=Y=>U=>typeof U===Y,{isArray:u}=Array,c=l("undefined");function d(Y){return Y!==null&&!c(Y)&&Y.constructor!==null&&!c(Y.constructor)&&m(Y.constructor.isBuffer)&&Y.constructor.isBuffer(Y)}const h=a("ArrayBuffer");function p(Y){let U;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?U=ArrayBuffer.isView(Y):U=Y&&Y.buffer&&h(Y.buffer),U}const f=l("string"),m=l("function"),v=l("number"),w=Y=>Y!==null&&typeof Y=="object",x=Y=>Y===!0||Y===!1,k=Y=>{if(s(Y)!=="object")return!1;const U=n(Y);return(U===null||U===Object.prototype||Object.getPrototypeOf(U)===null)&&!(o in Y)&&!(i in Y)},R=Y=>{if(!w(Y)||d(Y))return!1;try{return Object.keys(Y).length===0&&Object.getPrototypeOf(Y)===Object.prototype}catch{return!1}},O=a("Date"),P=a("File"),V=a("Blob"),W=a("FileList"),ie=Y=>w(Y)&&m(Y.pipe),ue=Y=>{let U;return Y&&(typeof FormData=="function"&&Y instanceof FormData||m(Y.append)&&((U=s(Y))==="formdata"||U==="object"&&m(Y.toString)&&Y.toString()==="[object FormData]"))},I=a("URLSearchParams"),[ne,he,re,Ee]=["ReadableStream","Request","Response","Headers"].map(a),ge=Y=>Y.trim?Y.trim():Y.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oe(Y,U,{allOwnKeys:j=!1}={}){if(Y===null||typeof Y>"u")return;let te,me;if(typeof Y!="object"&&(Y=[Y]),u(Y))for(te=0,me=Y.length;te<me;te++)U.call(null,Y[te],te,Y);else{if(d(Y))return;const De=j?Object.getOwnPropertyNames(Y):Object.keys(Y),we=De.length;let $e;for(te=0;te<we;te++)$e=De[te],U.call(null,Y[$e],$e,Y)}}function Me(Y,U){if(d(Y))return null;U=U.toLowerCase();const j=Object.keys(Y);let te=j.length,me;for(;te-- >0;)if(me=j[te],U===me.toLowerCase())return me;return null}const Ve=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:i0,it=Y=>!c(Y)&&Y!==Ve;function ct(){const{caseless:Y,skipUndefined:U}=it(this)&&this||{},j={},te=(me,De)=>{const we=Y&&Me(j,De)||De;k(j[we])&&k(me)?j[we]=ct(j[we],me):k(me)?j[we]=ct({},me):u(me)?j[we]=me.slice():(!U||!c(me))&&(j[we]=me)};for(let me=0,De=arguments.length;me<De;me++)arguments[me]&&Oe(arguments[me],te);return j}const Ct=(Y,U,j,{allOwnKeys:te}={})=>(Oe(U,(me,De)=>{j&&m(me)?Y[De]=e(me,j):Y[De]=me},{allOwnKeys:te}),Y),Ye=Y=>(Y.charCodeAt(0)===65279&&(Y=Y.slice(1)),Y),Kt=(Y,U,j,te)=>{Y.prototype=Object.create(U.prototype,te),Y.prototype.constructor=Y,Object.defineProperty(Y,"super",{value:U.prototype}),j&&Object.assign(Y.prototype,j)},Vt=(Y,U,j,te)=>{let me,De,we;const $e={};if(U=U||{},Y==null)return U;do{for(me=Object.getOwnPropertyNames(Y),De=me.length;De-- >0;)we=me[De],(!te||te(we,Y,U))&&!$e[we]&&(U[we]=Y[we],$e[we]=!0);Y=j!==!1&&n(Y)}while(Y&&(!j||j(Y,U))&&Y!==Object.prototype);return U},Ot=(Y,U,j)=>{Y=String(Y),(j===void 0||j>Y.length)&&(j=Y.length),j-=U.length;const te=Y.indexOf(U,j);return te!==-1&&te===j},jt=Y=>{if(!Y)return null;if(u(Y))return Y;let U=Y.length;if(!v(U))return null;const j=new Array(U);for(;U-- >0;)j[U]=Y[U];return j},_t=(Y=>U=>Y&&U instanceof Y)(typeof Uint8Array<"u"&&n(Uint8Array)),Fr=(Y,U)=>{const j=(Y&&Y[i]).call(Y);let te;for(;(te=j.next())&&!te.done;){const me=te.value;U.call(Y,me[0],me[1])}},jr=(Y,U)=>{let j;const te=[];for(;(j=Y.exec(U))!==null;)te.push(j);return te},pt=a("HTMLFormElement"),nr=Y=>Y.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(U,j,te){return j.toUpperCase()+te}),Yt=(({hasOwnProperty:Y})=>(U,j)=>Y.call(U,j))(Object.prototype),vr=a("RegExp"),Gr=(Y,U)=>{const j=Object.getOwnPropertyDescriptors(Y),te={};Oe(j,(me,De)=>{let we;(we=U(me,De,Y))!==!1&&(te[De]=we||me)}),Object.defineProperties(Y,te)},An=Y=>{Gr(Y,(U,j)=>{if(m(Y)&&["arguments","caller","callee"].indexOf(j)!==-1)return!1;const te=Y[j];if(m(te)){if(U.enumerable=!1,"writable"in U){U.writable=!1;return}U.set||(U.set=()=>{throw Error("Can not rewrite read-only method '"+j+"'")})}})},Ft=(Y,U)=>{const j={},te=me=>{me.forEach(De=>{j[De]=!0})};return u(Y)?te(Y):te(String(Y).split(U)),j},ee=()=>{},ye=(Y,U)=>Y!=null&&Number.isFinite(Y=+Y)?Y:U;function se(Y){return!!(Y&&m(Y.append)&&Y[o]==="FormData"&&Y[i])}const Pe=Y=>{const U=new Array(10),j=(te,me)=>{if(w(te)){if(U.indexOf(te)>=0)return;if(d(te))return te;if(!("toJSON"in te)){U[me]=te;const De=u(te)?[]:{};return Oe(te,(we,$e)=>{const Et=j(we,me+1);!c(Et)&&(De[$e]=Et)}),U[me]=void 0,De}}return te};return j(Y,0)},dt=a("AsyncFunction"),ut=Y=>Y&&(w(Y)||m(Y))&&m(Y.then)&&m(Y.catch),Be=((Y,U)=>Y?setImmediate:U?((j,te)=>(Ve.addEventListener("message",({source:me,data:De})=>{me===Ve&&De===j&&te.length&&te.shift()()},!1),me=>{te.push(me),Ve.postMessage(j,"*")}))(`axios@${Math.random()}`,[]):j=>setTimeout(j))(typeof setImmediate=="function",m(Ve.postMessage)),Le=typeof queueMicrotask<"u"?queueMicrotask.bind(Ve):typeof Ds<"u"&&Ds.nextTick||Be;var de={isArray:u,isArrayBuffer:h,isBuffer:d,isFormData:ue,isArrayBufferView:p,isString:f,isNumber:v,isBoolean:x,isObject:w,isPlainObject:k,isEmptyObject:R,isReadableStream:ne,isRequest:he,isResponse:re,isHeaders:Ee,isUndefined:c,isDate:O,isFile:P,isBlob:V,isRegExp:vr,isFunction:m,isStream:ie,isURLSearchParams:I,isTypedArray:_t,isFileList:W,forEach:Oe,merge:ct,extend:Ct,trim:ge,stripBOM:Ye,inherits:Kt,toFlatObject:Vt,kindOf:s,kindOfTest:a,endsWith:Ot,toArray:jt,forEachEntry:Fr,matchAll:jr,isHTMLForm:pt,hasOwnProperty:Yt,hasOwnProp:Yt,reduceDescriptors:Gr,freezeMethods:An,toObjectSet:Ft,toCamelCase:nr,noop:ee,toFiniteNumber:ye,findKey:Me,global:Ve,isContextDefined:it,isSpecCompliantForm:se,toJSONObject:Pe,isAsyncFn:dt,isThenable:ut,setImmediate:Be,asap:Le,isIterable:Y=>Y!=null&&m(Y[i])};function We(Y,U,j,te,me){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=Y,this.name="AxiosError",U&&(this.code=U),j&&(this.config=j),te&&(this.request=te),me&&(this.response=me,this.status=me.status?me.status:null)}de.inherits(We,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:de.toJSONObject(this.config),code:this.code,status:this.status}}});const Sr=We.prototype,kr={};["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(Y=>{kr[Y]={value:Y}}),Object.defineProperties(We,kr),Object.defineProperty(Sr,"isAxiosError",{value:!0}),We.from=(Y,U,j,te,me,De)=>{const we=Object.create(Sr);de.toFlatObject(Y,we,function(Se){return Se!==Error.prototype},Se=>Se!=="isAxiosError");const $e=Y&&Y.message?Y.message:"Error",Et=U==null&&Y?Y.code:U;return We.call(we,$e,Et,j,te,me),Y&&we.cause==null&&Object.defineProperty(we,"cause",{value:Y,configurable:!0}),we.name=Y&&Y.name||"Error",De&&Object.assign(we,De),we};var Wi=null;function da(Y){return de.isPlainObject(Y)||de.isArray(Y)}function wi(Y){return de.endsWith(Y,"[]")?Y.slice(0,-2):Y}function ls(Y,U,j){return Y?Y.concat(U).map(function(te,me){return te=wi(te),!j&&me?"["+te+"]":te}).join(j?".":""):U}function Wn(Y){return de.isArray(Y)&&!Y.some(da)}const Re=de.toFlatObject(de,{},null,function(Y){return/^is[A-Z]/.test(Y)});function vt(Y,U,j){if(!de.isObject(Y))throw new TypeError("target must be an object");U=U||new FormData,j=de.toFlatObject(j,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Bt,at){return!de.isUndefined(at[Bt])});const te=j.metaTokens,me=j.visitor||Se,De=j.dots,we=j.indexes,$e=(j.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(U);if(!de.isFunction(me))throw new TypeError("visitor must be a function");function Et(Bt){if(Bt===null)return"";if(de.isDate(Bt))return Bt.toISOString();if(de.isBoolean(Bt))return Bt.toString();if(!$e&&de.isBlob(Bt))throw new We("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(Bt)||de.isTypedArray(Bt)?$e&&typeof Blob=="function"?new Blob([Bt]):o3.from(Bt):Bt}function Se(Bt,at,et){let In=Bt;if(Bt&&!et&&typeof Bt=="object"){if(de.endsWith(at,"{}"))at=te?at:at.slice(0,-2),Bt=JSON.stringify(Bt);else if(de.isArray(Bt)&&Wn(Bt)||(de.isFileList(Bt)||de.endsWith(at,"[]"))&&(In=de.toArray(Bt)))return at=wi(at),In.forEach(function(Ln,$n){!(de.isUndefined(Ln)||Ln===null)&&U.append(we===!0?ls([at],$n,De):we===null?at:at+"[]",Et(Ln))}),!1}return da(Bt)?!0:(U.append(ls(et,at,De),Et(Bt)),!1)}const ot=[],Jt=Object.assign(Re,{defaultVisitor:Se,convertValue:Et,isVisitable:da});function Lr(Bt,at){if(!de.isUndefined(Bt)){if(ot.indexOf(Bt)!==-1)throw Error("Circular reference detected in "+at.join("."));ot.push(Bt),de.forEach(Bt,function(et,In){(!(de.isUndefined(et)||et===null)&&me.call(U,et,de.isString(In)?In.trim():In,at,Jt))===!0&&Lr(et,at?at.concat(In):[In])}),ot.pop()}}if(!de.isObject(Y))throw new TypeError("data must be an object");return Lr(Y),U}function Mt(Y){const U={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(Y).replace(/[!'()~]|%20|%00/g,function(j){return U[j]})}function mr(Y,U){this._pairs=[],Y&&vt(Y,this,U)}const ur=mr.prototype;ur.append=function(Y,U){this._pairs.push([Y,U])},ur.toString=function(Y){const U=Y?function(j){return Y.call(this,j,Mt)}:Mt;return this._pairs.map(function(j){return U(j[0])+"="+U(j[1])},"").join("&")};function On(Y){return encodeURIComponent(Y).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Mn(Y,U,j){if(!U)return Y;const te=j&&j.encode||On;de.isFunction(j)&&(j={serialize:j});const me=j&&j.serialize;let De;if(me?De=me(U,j):De=de.isURLSearchParams(U)?U.toString():new mr(U,j).toString(te),De){const we=Y.indexOf("#");we!==-1&&(Y=Y.slice(0,we)),Y+=(Y.indexOf("?")===-1?"?":"&")+De}return Y}class Dr{constructor(){this.handlers=[]}use(U,j,te){return this.handlers.push({fulfilled:U,rejected:j,synchronous:te?te.synchronous:!1,runWhen:te?te.runWhen:null}),this.handlers.length-1}eject(U){this.handlers[U]&&(this.handlers[U]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(U){de.forEach(this.handlers,function(j){j!==null&&U(j)})}}var _=Dr,D={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pe=typeof URLSearchParams<"u"?URLSearchParams:mr,z=typeof FormData<"u"?FormData:null,J=typeof Blob<"u"?Blob:null,Zt={isBrowser:!0,classes:{URLSearchParams:pe,FormData:z,Blob:J},protocols:["http","https","file","blob","url","data"]};const je=typeof window<"u"&&typeof document<"u",ft=typeof navigator=="object"&&navigator||void 0,bt=je&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),Ge=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sr=je&&window.location.href||"http://localhost";var yr=Object.freeze({__proto__:null,hasBrowserEnv:je,hasStandardBrowserWebWorkerEnv:Ge,hasStandardBrowserEnv:bt,navigator:ft,origin:sr}),Mr={...yr,...Zt};function ae(Y,U){return vt(Y,new Mr.classes.URLSearchParams,{visitor:function(j,te,me,De){return Mr.isNode&&de.isBuffer(j)?(this.append(te,j.toString("base64")),!1):De.defaultVisitor.apply(this,arguments)},...U})}function Rr(Y){return de.matchAll(/\w+|\[(\w*)]/g,Y).map(U=>U[0]==="[]"?"":U[1]||U[0])}function be(Y){const U={},j=Object.keys(Y);let te;const me=j.length;let De;for(te=0;te<me;te++)De=j[te],U[De]=Y[De];return U}function Yo(Y){function U(j,te,me,De){let we=j[De++];if(we==="__proto__")return!0;const $e=Number.isFinite(+we),Et=De>=j.length;return we=!we&&de.isArray(me)?me.length:we,Et?(de.hasOwnProp(me,we)?me[we]=[me[we],te]:me[we]=te,!$e):((!me[we]||!de.isObject(me[we]))&&(me[we]=[]),U(j,te,me[we],De)&&de.isArray(me[we])&&(me[we]=be(me[we])),!$e)}if(de.isFormData(Y)&&de.isFunction(Y.entries)){const j={};return de.forEachEntry(Y,(te,me)=>{U(Rr(te),me,j,0)}),j}return null}function Ol(Y,U,j){if(de.isString(Y))try{return(U||JSON.parse)(Y),de.trim(Y)}catch(te){if(te.name!=="SyntaxError")throw te}return(j||JSON.stringify)(Y)}const ha={transitional:D,adapter:["xhr","http","fetch"],transformRequest:[function(Y,U){const j=U.getContentType()||"",te=j.indexOf("application/json")>-1,me=de.isObject(Y);if(me&&de.isHTMLForm(Y)&&(Y=new FormData(Y)),de.isFormData(Y))return te?JSON.stringify(Yo(Y)):Y;if(de.isArrayBuffer(Y)||de.isBuffer(Y)||de.isStream(Y)||de.isFile(Y)||de.isBlob(Y)||de.isReadableStream(Y))return Y;if(de.isArrayBufferView(Y))return Y.buffer;if(de.isURLSearchParams(Y))return U.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Y.toString();let De;if(me){if(j.indexOf("application/x-www-form-urlencoded")>-1)return ae(Y,this.formSerializer).toString();if((De=de.isFileList(Y))||j.indexOf("multipart/form-data")>-1){const we=this.env&&this.env.FormData;return vt(De?{"files[]":Y}:Y,we&&new we,this.formSerializer)}}return me||te?(U.setContentType("application/json",!1),Ol(Y)):Y}],transformResponse:[function(Y){const U=this.transitional||ha.transitional,j=U&&U.forcedJSONParsing,te=this.responseType==="json";if(de.isResponse(Y)||de.isReadableStream(Y))return Y;if(Y&&de.isString(Y)&&(j&&!this.responseType||te)){const me=!(U&&U.silentJSONParsing)&&te;try{return JSON.parse(Y,this.parseReviver)}catch(De){if(me)throw De.name==="SyntaxError"?We.from(De,We.ERR_BAD_RESPONSE,this,null,this.response):De}}return Y}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mr.classes.FormData,Blob:Mr.classes.Blob},validateStatus:function(Y){return Y>=200&&Y<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],Y=>{ha.headers[Y]={}});var La=ha;const za=de.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 us=Y=>{const U={};let j,te,me;return Y&&Y.split(` `).forEach(function(De){me=De.indexOf(":"),j=De.substring(0,me).trim().toLowerCase(),te=De.substring(me+1).trim(),!(!j||U[j]&&za[j])&&(j==="set-cookie"?U[j]?U[j].push(te):U[j]=[te]:U[j]=U[j]?U[j]+", "+te:te)}),U};const Ml=Symbol("internals");function Ki(Y){return Y&&String(Y).trim().toLowerCase()}function cs(Y){return Y===!1||Y==null?Y:de.isArray(Y)?Y.map(cs):String(Y)}function Ni(Y){const U=Object.create(null),j=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let te;for(;te=j.exec(Y);)U[te[1]]=te[2];return U}const Qt=Y=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Y.trim());function Hn(Y,U,j,te,me){if(de.isFunction(te))return te.call(this,U,j);if(me&&(U=j),!!de.isString(U)){if(de.isString(te))return U.indexOf(te)!==-1;if(de.isRegExp(te))return te.test(U)}}function mn(Y){return Y.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(U,j,te)=>j.toUpperCase()+te)}function io(Y,U){const j=de.toCamelCase(" "+U);["get","set","has"].forEach(te=>{Object.defineProperty(Y,te+j,{value:function(me,De,we){return this[te].call(this,U,me,De,we)},configurable:!0})})}class Zr{constructor(U){U&&this.set(U)}set(U,j,te){const me=this;function De($e,Et,Se){const ot=Ki(Et);if(!ot)throw new Error("header name must be a non-empty string");const Jt=de.findKey(me,ot);(!Jt||me[Jt]===void 0||Se===!0||Se===void 0&&me[Jt]!==!1)&&(me[Jt||Et]=cs($e))}const we=($e,Et)=>de.forEach($e,(Se,ot)=>De(Se,ot,Et));if(de.isPlainObject(U)||U instanceof this.constructor)we(U,j);else if(de.isString(U)&&(U=U.trim())&&!Qt(U))we(us(U),j);else if(de.isObject(U)&&de.isIterable(U)){let $e={},Et,Se;for(const ot of U){if(!de.isArray(ot))throw TypeError("Object iterator must return a key-value pair");$e[Se=ot[0]]=(Et=$e[Se])?de.isArray(Et)?[...Et,ot[1]]:[Et,ot[1]]:ot[1]}we($e,j)}else U!=null&&De(j,U,te);return this}get(U,j){if(U=Ki(U),U){const te=de.findKey(this,U);if(te){const me=this[te];if(!j)return me;if(j===!0)return Ni(me);if(de.isFunction(j))return j.call(this,me,te);if(de.isRegExp(j))return j.exec(me);throw new TypeError("parser must be boolean|regexp|function")}}}has(U,j){if(U=Ki(U),U){const te=de.findKey(this,U);return!!(te&&this[te]!==void 0&&(!j||Hn(this,this[te],te,j)))}return!1}delete(U,j){const te=this;let me=!1;function De(we){if(we=Ki(we),we){const $e=de.findKey(te,we);$e&&(!j||Hn(te,te[$e],$e,j))&&(delete te[$e],me=!0)}}return de.isArray(U)?U.forEach(De):De(U),me}clear(U){const j=Object.keys(this);let te=j.length,me=!1;for(;te--;){const De=j[te];(!U||Hn(this,this[De],De,U,!0))&&(delete this[De],me=!0)}return me}normalize(U){const j=this,te={};return de.forEach(this,(me,De)=>{const we=de.findKey(te,De);if(we){j[we]=cs(me),delete j[De];return}const $e=U?mn(De):String(De).trim();$e!==De&&delete j[De],j[$e]=cs(me),te[$e]=!0}),this}concat(...U){return this.constructor.concat(this,...U)}toJSON(U){const j=Object.create(null);return de.forEach(this,(te,me)=>{te!=null&&te!==!1&&(j[me]=U&&de.isArray(te)?te.join(", "):te)}),j}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([U,j])=>U+": "+j).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(U){return U instanceof this?U:new this(U)}static concat(U,...j){const te=new this(U);return j.forEach(me=>te.set(me)),te}static accessor(U){const j=(this[Ml]=this[Ml]={accessors:{}}).accessors,te=this.prototype;function me(De){const we=Ki(De);j[we]||(io(te,De),j[we]=!0)}return de.isArray(U)?U.forEach(me):me(U),this}}Zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(Zr.prototype,({value:Y},U)=>{let j=U[0].toUpperCase()+U.slice(1);return{get:()=>Y,set(te){this[j]=te}}}),de.freezeMethods(Zr);var Pn=Zr;function Rs(Y,U){const j=this||La,te=U||j,me=Pn.from(te.headers);let De=te.data;return de.forEach(Y,function(we){De=we.call(j,De,me.normalize(),U?U.status:void 0)}),me.normalize(),De}function Qe(Y){return!!(Y&&Y.__CANCEL__)}function Dt(Y,U,j){We.call(this,Y??"canceled",We.ERR_CANCELED,U,j),this.name="CanceledError"}de.inherits(Dt,We,{__CANCEL__:!0});function cr(Y,U,j){const te=j.config.validateStatus;!j.status||!te||te(j.status)?Y(j):U(new We("Request failed with status code "+j.status,[We.ERR_BAD_REQUEST,We.ERR_BAD_RESPONSE][Math.floor(j.status/100)-4],j.config,j.request,j))}function Br(Y){const U=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Y);return U&&U[1]||""}function $r(Y,U){Y=Y||10;const j=new Array(Y),te=new Array(Y);let me=0,De=0,we;return U=U!==void 0?U:1e3,function($e){const Et=Date.now(),Se=te[De];we||(we=Et),j[me]=$e,te[me]=Et;let ot=De,Jt=0;for(;ot!==me;)Jt+=j[ot++],ot=ot%Y;if(me=(me+1)%Y,me===De&&(De=(De+1)%Y),Et-we<U)return;const Lr=Se&&Et-Se;return Lr?Math.round(Jt*1e3/Lr):void 0}}function Fi(Y,U){let j=0,te=1e3/U,me,De;const we=($e,Et=Date.now())=>{j=Et,me=null,De&&(clearTimeout(De),De=null),Y(...$e)};return[(...$e)=>{const Et=Date.now(),Se=Et-j;Se>=te?we($e,Et):(me=$e,De||(De=setTimeout(()=>{De=null,we(me)},te-Se)))},()=>me&&we(me)]}const mi=(Y,U,j=3)=>{let te=0;const me=$r(50,250);return Fi(De=>{const we=De.loaded,$e=De.lengthComputable?De.total:void 0,Et=we-te,Se=me(Et),ot=we<=$e;te=we;const Jt={loaded:we,total:$e,progress:$e?we/$e:void 0,bytes:Et,rate:Se||void 0,estimated:Se&&$e&&ot?($e-we)/Se:void 0,event:De,lengthComputable:$e!=null,[U?"download":"upload"]:!0};Y(Jt)},j)},oo=(Y,U)=>{const j=Y!=null;return[te=>U[0]({lengthComputable:j,total:Y,loaded:te}),U[1]]},si=Y=>(...U)=>de.asap(()=>Y(...U));var Oi=Mr.hasStandardBrowserEnv?((Y,U)=>j=>(j=new URL(j,Mr.origin),Y.protocol===j.protocol&&Y.host===j.host&&(U||Y.port===j.port)))(new URL(Mr.origin),Mr.navigator&&/(msie|trident)/i.test(Mr.navigator.userAgent)):()=>!0,N0=Mr.hasStandardBrowserEnv?{write(Y,U,j,te,me,De,we){if(typeof document>"u")return;const $e=[`${Y}=${encodeURIComponent(U)}`];de.isNumber(j)&&$e.push(`expires=${new Date(j).toUTCString()}`),de.isString(te)&&$e.push(`path=${te}`),de.isString(me)&&$e.push(`domain=${me}`),De===!0&&$e.push("secure"),de.isString(we)&&$e.push(`SameSite=${we}`),document.cookie=$e.join("; ")},read(Y){if(typeof document>"u")return null;const U=document.cookie.match(new RegExp("(?:^|; )"+Y+"=([^;]*)"));return U?decodeURIComponent(U[1]):null},remove(Y){this.write(Y,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Rl(Y){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Y)}function on(Y,U){return U?Y.replace(/\/?\/$/,"")+"/"+U.replace(/^\/+/,""):Y}function pa(Y,U,j){let te=!Rl(U);return Y&&(te||j==!1)?on(Y,U):U}const Mi=Y=>Y instanceof Pn?{...Y}:Y;function ds(Y,U){U=U||{};const j={};function te(Se,ot,Jt,Lr){return de.isPlainObject(Se)&&de.isPlainObject(ot)?de.merge.call({caseless:Lr},Se,ot):de.isPlainObject(ot)?de.merge({},ot):de.isArray(ot)?ot.slice():ot}function me(Se,ot,Jt,Lr){if(de.isUndefined(ot)){if(!de.isUndefined(Se))return te(void 0,Se,Jt,Lr)}else return te(Se,ot,Jt,Lr)}function De(Se,ot){if(!de.isUndefined(ot))return te(void 0,ot)}function we(Se,ot){if(de.isUndefined(ot)){if(!de.isUndefined(Se))return te(void 0,Se)}else return te(void 0,ot)}function $e(Se,ot,Jt){if(Jt in U)return te(Se,ot);if(Jt in Y)return te(void 0,Se)}const Et={url:De,method:De,data:De,baseURL:we,transformRequest:we,transformResponse:we,paramsSerializer:we,timeout:we,timeoutMessage:we,withCredentials:we,withXSRFToken:we,adapter:we,responseType:we,xsrfCookieName:we,xsrfHeaderName:we,onUploadProgress:we,onDownloadProgress:we,decompress:we,maxContentLength:we,maxBodyLength:we,beforeRedirect:we,transport:we,httpAgent:we,httpsAgent:we,cancelToken:we,socketPath:we,responseEncoding:we,validateStatus:$e,headers:(Se,ot,Jt)=>me(Mi(Se),Mi(ot),Jt,!0)};return de.forEach(Object.keys({...Y,...U}),function(Se){const ot=Et[Se]||me,Jt=ot(Y[Se],U[Se],Se);de.isUndefined(Jt)&&ot!==$e||(j[Se]=Jt)}),j}var F0=Y=>{const U=ds({},Y);let{data:j,withXSRFToken:te,xsrfHeaderName:me,xsrfCookieName:De,headers:we,auth:$e}=U;if(U.headers=we=Pn.from(we),U.url=Mn(pa(U.baseURL,U.url,U.allowAbsoluteUrls),Y.params,Y.paramsSerializer),$e&&we.set("Authorization","Basic "+btoa(($e.username||"")+":"+($e.password?unescape(encodeURIComponent($e.password)):""))),de.isFormData(j)){if(Mr.hasStandardBrowserEnv||Mr.hasStandardBrowserWebWorkerEnv)we.setContentType(void 0);else if(de.isFunction(j.getHeaders)){const Et=j.getHeaders(),Se=["content-type","content-length"];Object.entries(Et).forEach(([ot,Jt])=>{Se.includes(ot.toLowerCase())&&we.set(ot,Jt)})}}if(Mr.hasStandardBrowserEnv&&(te&&de.isFunction(te)&&(te=te(U)),te||te!==!1&&Oi(U.url))){const Et=me&&De&&N0.read(De);Et&&we.set(me,Et)}return U},fa=typeof XMLHttpRequest<"u"&&function(Y){return new Promise(function(U,j){const te=F0(Y);let me=te.data;const De=Pn.from(te.headers).normalize();let{responseType:we,onUploadProgress:$e,onDownloadProgress:Et}=te,Se,ot,Jt,Lr,Bt;function at(){Lr&&Lr(),Bt&&Bt(),te.cancelToken&&te.cancelToken.unsubscribe(Se),te.signal&&te.signal.removeEventListener("abort",Se)}let et=new XMLHttpRequest;et.open(te.method.toUpperCase(),te.url,!0),et.timeout=te.timeout;function In(){if(!et)return;const $n=Pn.from("getAllResponseHeaders"in et&&et.getAllResponseHeaders()),Po={data:!we||we==="text"||we==="json"?et.responseText:et.response,status:et.status,statusText:et.statusText,headers:$n,config:Y,request:et};cr(function(Bs){U(Bs),at()},function(Bs){j(Bs),at()},Po),et=null}"onloadend"in et?et.onloadend=In:et.onreadystatechange=function(){!et||et.readyState!==4||et.status===0&&!(et.responseURL&&et.responseURL.indexOf("file:")===0)||setTimeout(In)},et.onabort=function(){et&&(j(new We("Request aborted",We.ECONNABORTED,Y,et)),et=null)},et.onerror=function($n){const Po=$n&&$n.message?$n.message:"Network Error",Bs=new We(Po,We.ERR_NETWORK,Y,et);Bs.event=$n||null,j(Bs),et=null},et.ontimeout=function(){let $n=te.timeout?"timeout of "+te.timeout+"ms exceeded":"timeout exceeded";const Po=te.transitional||D;te.timeoutErrorMessage&&($n=te.timeoutErrorMessage),j(new We($n,Po.clarifyTimeoutError?We.ETIMEDOUT:We.ECONNABORTED,Y,et)),et=null},me===void 0&&De.setContentType(null),"setRequestHeader"in et&&de.forEach(De.toJSON(),function($n,Po){et.setRequestHeader(Po,$n)}),de.isUndefined(te.withCredentials)||(et.withCredentials=!!te.withCredentials),we&&we!=="json"&&(et.responseType=te.responseType),Et&&([Jt,Bt]=mi(Et,!0),et.addEventListener("progress",Jt)),$e&&et.upload&&([ot,Lr]=mi($e),et.upload.addEventListener("progress",ot),et.upload.addEventListener("loadend",Lr)),(te.cancelToken||te.signal)&&(Se=$n=>{et&&(j(!$n||$n.type?new Dt(null,Y,et):$n),et.abort(),et=null)},te.cancelToken&&te.cancelToken.subscribe(Se),te.signal&&(te.signal.aborted?Se():te.signal.addEventListener("abort",Se)));const Ln=Br(te.url);if(Ln&&Mr.protocols.indexOf(Ln)===-1){j(new We("Unsupported protocol "+Ln+":",We.ERR_BAD_REQUEST,Y));return}et.send(me||null)})},Bl=(Y,U)=>{const{length:j}=Y=Y?Y.filter(Boolean):[];if(U||j){let te=new AbortController,me;const De=function(Se){if(!me){me=!0,$e();const ot=Se instanceof Error?Se:this.reason;te.abort(ot instanceof We?ot:new Dt(ot instanceof Error?ot.message:ot))}};let we=U&&setTimeout(()=>{we=null,De(new We(`timeout ${U} of ms exceeded`,We.ETIMEDOUT))},U);const $e=()=>{Y&&(we&&clearTimeout(we),we=null,Y.forEach(Se=>{Se.unsubscribe?Se.unsubscribe(De):Se.removeEventListener("abort",De)}),Y=null)};Y.forEach(Se=>Se.addEventListener("abort",De));const{signal:Et}=te;return Et.unsubscribe=()=>de.asap($e),Et}};const so=function*(Y,U){let j=Y.byteLength;if(j<U){yield Y;return}let te=0,me;for(;te<j;)me=te+U,yield Y.slice(te,me),te=me},Ya=async function*(Y,U){for await(const j of Xn(Y))yield*so(j,U)},Xn=async function*(Y){if(Y[Symbol.asyncIterator]){yield*Y;return}const U=Y.getReader();try{for(;;){const{done:j,value:te}=await U.read();if(j)break;yield te}}finally{await U.cancel()}},tr=(Y,U,j,te)=>{const me=Ya(Y,U);let De=0,we,$e=Et=>{we||(we=!0,te&&te(Et))};return new ReadableStream({async pull(Et){try{const{done:Se,value:ot}=await me.next();if(Se){$e(),Et.close();return}let Jt=ot.byteLength;if(j){let Lr=De+=Jt;j(Lr)}Et.enqueue(new Uint8Array(ot))}catch(Se){throw $e(Se),Se}},cancel(Et){return $e(Et),me.return()}},{highWaterMark:2})},Ha=64*1024,{isFunction:sn}=de,Ir=(({Request:Y,Response:U})=>({Request:Y,Response:U}))(de.global),{ReadableStream:wo,TextEncoder:Ri}=de.global,Pa=(Y,...U)=>{try{return!!Y(...U)}catch{return!1}},Il=Y=>{Y=de.merge.call({skipUndefined:!0},Ir,Y);const{fetch:U,Request:j,Response:te}=Y,me=U?sn(U):typeof fetch=="function",De=sn(j),we=sn(te);if(!me)return!1;const $e=me&&sn(wo),Et=me&&(typeof Ri=="function"?(at=>et=>at.encode(et))(new Ri):async at=>new Uint8Array(await new j(at).arrayBuffer())),Se=De&&$e&&Pa(()=>{let at=!1;const et=new j(Mr.origin,{body:new wo,method:"POST",get duplex(){return at=!0,"half"}}).headers.has("Content-Type");return at&&!et}),ot=we&&$e&&Pa(()=>de.isReadableStream(new te("").body)),Jt={stream:ot&&(at=>at.body)};me&&["text","arrayBuffer","blob","formData","stream"].forEach(at=>{!Jt[at]&&(Jt[at]=(et,In)=>{let Ln=et&&et[at];if(Ln)return Ln.call(et);throw new We(`Response type '${at}' is not supported`,We.ERR_NOT_SUPPORT,In)})});const Lr=async at=>{if(at==null)return 0;if(de.isBlob(at))return at.size;if(de.isSpecCompliantForm(at))return(await new j(Mr.origin,{method:"POST",body:at}).arrayBuffer()).byteLength;if(de.isArrayBufferView(at)||de.isArrayBuffer(at))return at.byteLength;if(de.isURLSearchParams(at)&&(at=at+""),de.isString(at))return(await Et(at)).byteLength},Bt=async(at,et)=>de.toFiniteNumber(at.getContentLength())??Lr(et);return async at=>{let{url:et,method:In,data:Ln,signal:$n,cancelToken:Po,timeout:Bs,onDownloadProgress:R0,onUploadProgress:Is,responseType:ps,headers:B0,withCredentials:$a="same-origin",fetchOptions:ac}=F0(at),Un=U||fetch;ps=ps?(ps+"").toLowerCase():"text";let Pt=Bl([$n,Po&&Po.toAbortSignal()],Bs),Ls=null;const Ji=Pt&&Pt.unsubscribe&&(()=>{Pt.unsubscribe()});let Ua;try{if(Is&&Se&&In!=="get"&&In!=="head"&&(Ua=await Bt(B0,Ln))!==0){let Zo=new j(et,{method:"POST",body:Ln,duplex:"half"}),fs;if(de.isFormData(Ln)&&(fs=Zo.headers.get("content-type"))&&B0.setContentType(fs),Zo.body){const[I0,ga]=oo(Ua,mi(si(Is)));Ln=tr(Zo.body,Ha,I0,ga)}}de.isString($a)||($a=$a?"include":"omit");const Xi=De&&"credentials"in j.prototype,ma={...ac,signal:Pt,method:In.toUpperCase(),headers:B0.normalize().toJSON(),body:Ln,duplex:"half",credentials:Xi?$a:void 0};Ls=De&&new j(et,ma);let lo=await(De?Un(Ls,ac):Un(et,ma));const zl=ot&&(ps==="stream"||ps==="response");if(ot&&(R0||zl&&Ji)){const Zo={};["status","statusText","headers"].forEach(ya=>{Zo[ya]=lo[ya]});const fs=de.toFiniteNumber(lo.headers.get("content-length")),[I0,ga]=R0&&oo(fs,mi(si(R0),!0))||[];lo=new te(tr(lo.body,Ha,I0,()=>{ga&&ga(),Ji&&Ji()}),Zo)}ps=ps||"text";let gd=await Jt[de.findKey(Jt,ps)||"text"](lo,at);return!zl&&Ji&&Ji(),await new Promise((Zo,fs)=>{cr(Zo,fs,{data:gd,headers:Pn.from(lo.headers),status:lo.status,statusText:lo.statusText,config:at,request:Ls})})}catch(Xi){throw Ji&&Ji(),Xi&&Xi.name==="TypeError"&&/Load failed|fetch/i.test(Xi.message)?Object.assign(new We("Network Error",We.ERR_NETWORK,at,Ls),{cause:Xi.cause||Xi}):We.from(Xi,Xi&&Xi.code,at,Ls)}}},mt=new Map,xt=Y=>{let U=Y&&Y.env||{};const{fetch:j,Request:te,Response:me}=U,De=[te,me,j];let we=De.length,$e=we,Et,Se,ot=mt;for(;$e--;)Et=De[$e],Se=ot.get(Et),Se===void 0&&ot.set(Et,Se=$e?new Map:Il(U)),ot=Se;return Se};xt();const ir={http:Wi,xhr:fa,fetch:{get:xt}};de.forEach(ir,(Y,U)=>{if(Y){try{Object.defineProperty(Y,"name",{value:U})}catch{}Object.defineProperty(Y,"adapterName",{value:U})}});const Or=Y=>`- ${Y}`,xe=Y=>de.isFunction(Y)||Y===null||Y===!1;function Ar(Y,U){Y=de.isArray(Y)?Y:[Y];const{length:j}=Y;let te,me;const De={};for(let we=0;we<j;we++){te=Y[we];let $e;if(me=te,!xe(te)&&(me=ir[($e=String(te)).toLowerCase()],me===void 0))throw new We(`Unknown adapter '${$e}'`);if(me&&(de.isFunction(me)||(me=me.get(U))))break;De[$e||"#"+we]=me}if(!me){const we=Object.entries(De).map(([Et,Se])=>`adapter ${Et} `+(Se===!1?"is not supported by the environment":"is not available in the build"));let $e=j?we.length>1?`since : `+we.map(Or).join(` `):" "+Or(we[0]):"as no adapter specified";throw new We("There is no suitable adapter to dispatch the request "+$e,"ERR_NOT_SUPPORT")}return me}var ao={getAdapter:Ar,adapters:ir};function Bi(Y){if(Y.cancelToken&&Y.cancelToken.throwIfRequested(),Y.signal&&Y.signal.aborted)throw new Dt(null,Y)}function md(Y){return Bi(Y),Y.headers=Pn.from(Y.headers),Y.data=Rs.call(Y,Y.transformRequest),["post","put","patch"].indexOf(Y.method)!==-1&&Y.headers.setContentType("application/x-www-form-urlencoded",!1),ao.getAdapter(Y.adapter||La.adapter,Y)(Y).then(function(U){return Bi(Y),U.data=Rs.call(Y,Y.transformResponse,U),U.headers=Pn.from(U.headers),U},function(U){return Qe(U)||(Bi(Y),U&&U.response&&(U.response.data=Rs.call(Y,Y.transformResponse,U.response),U.response.headers=Pn.from(U.response.headers))),Promise.reject(U)})}const ic="1.13.2",hs={};["object","boolean","number","function","string","symbol"].forEach((Y,U)=>{hs[Y]=function(j){return typeof j===Y||"a"+(U<1?"n ":" ")+Y}});const Za={};hs.transitional=function(Y,U,j){function te(me,De){return"[Axios v"+ic+"] Transitional option '"+me+"'"+De+(j?". "+j:"")}return(me,De,we)=>{if(Y===!1)throw new We(te(De," has been removed"+(U?" in "+U:"")),We.ERR_DEPRECATED);return U&&!Za[De]&&(Za[De]=!0,console.warn(te(De," has been deprecated since v"+U+" and will be removed in the near future"))),Y?Y(me,De,we):!0}},hs.spelling=function(Y){return(U,j)=>(console.warn(`${j} is likely a misspelling of ${Y}`),!0)};function Ho(Y,U,j){if(typeof Y!="object")throw new We("options must be an object",We.ERR_BAD_OPTION_VALUE);const te=Object.keys(Y);let me=te.length;for(;me-- >0;){const De=te[me],we=U[De];if(we){const $e=Y[De],Et=$e===void 0||we($e,De,Y);if(Et!==!0)throw new We("option "+De+" must be "+Et,We.ERR_BAD_OPTION_VALUE);continue}if(j!==!0)throw new We("Unknown option "+De,We.ERR_BAD_OPTION)}}var Tt={assertOptions:Ho,validators:hs};const ai=Tt.validators;class Rn{constructor(U){this.defaults=U||{},this.interceptors={request:new _,response:new _}}async request(U,j){try{return await this._request(U,j)}catch(te){if(te instanceof Error){let me={};Error.captureStackTrace?Error.captureStackTrace(me):me=new Error;const De=me.stack?me.stack.replace(/^.+\n/,""):"";try{te.stack?De&&!String(te.stack).endsWith(De.replace(/^.+\n.+\n/,""))&&(te.stack+=` `+De):te.stack=De}catch{}}throw te}}_request(U,j){typeof U=="string"?(j=j||{},j.url=U):j=U||{},j=ds(this.defaults,j);const{transitional:te,paramsSerializer:me,headers:De}=j;te!==void 0&&Tt.assertOptions(te,{silentJSONParsing:ai.transitional(ai.boolean),forcedJSONParsing:ai.transitional(ai.boolean),clarifyTimeoutError:ai.transitional(ai.boolean)},!1),me!=null&&(de.isFunction(me)?j.paramsSerializer={serialize:me}:Tt.assertOptions(me,{encode:ai.function,serialize:ai.function},!0)),j.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?j.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:j.allowAbsoluteUrls=!0),Tt.assertOptions(j,{baseUrl:ai.spelling("baseURL"),withXsrfToken:ai.spelling("withXSRFToken")},!0),j.method=(j.method||this.defaults.method||"get").toLowerCase();let we=De&&de.merge(De.common,De[j.method]);De&&de.forEach(["delete","get","head","post","put","patch","common"],at=>{delete De[at]}),j.headers=Pn.concat(we,De);const $e=[];let Et=!0;this.interceptors.request.forEach(function(at){typeof at.runWhen=="function"&&at.runWhen(j)===!1||(Et=Et&&at.synchronous,$e.unshift(at.fulfilled,at.rejected))});const Se=[];this.interceptors.response.forEach(function(at){Se.push(at.fulfilled,at.rejected)});let ot,Jt=0,Lr;if(!Et){const at=[md.bind(this),void 0];for(at.unshift(...$e),at.push(...Se),Lr=at.length,ot=Promise.resolve(j);Jt<Lr;)ot=ot.then(at[Jt++],at[Jt++]);return ot}Lr=$e.length;let Bt=j;for(;Jt<Lr;){const at=$e[Jt++],et=$e[Jt++];try{Bt=at(Bt)}catch(In){et.call(this,In);break}}try{ot=md.call(this,Bt)}catch(at){return Promise.reject(at)}for(Jt=0,Lr=Se.length;Jt<Lr;)ot=ot.then(Se[Jt++],Se[Jt++]);return ot}getUri(U){U=ds(this.defaults,U);const j=pa(U.baseURL,U.url,U.allowAbsoluteUrls);return Mn(j,U.params,U.paramsSerializer)}}de.forEach(["delete","get","head","options"],function(Y){Rn.prototype[Y]=function(U,j){return this.request(ds(j||{},{method:Y,url:U,data:(j||{}).data}))}}),de.forEach(["post","put","patch"],function(Y){function U(j){return function(te,me,De){return this.request(ds(De||{},{method:Y,headers:j?{"Content-Type":"multipart/form-data"}:{},url:te,data:me}))}}Rn.prototype[Y]=U(),Rn.prototype[Y+"Form"]=U(!0)});var Ii=Rn;class Ll{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let j;this.promise=new Promise(function(me){j=me});const te=this;this.promise.then(me=>{if(!te._listeners)return;let De=te._listeners.length;for(;De-- >0;)te._listeners[De](me);te._listeners=null}),this.promise.then=me=>{let De;const we=new Promise($e=>{te.subscribe($e),De=$e}).then(me);return we.cancel=function(){te.unsubscribe(De)},we},U(function(me,De,we){te.reason||(te.reason=new Dt(me,De,we),j(te.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){if(this.reason){U(this.reason);return}this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const j=this._listeners.indexOf(U);j!==-1&&this._listeners.splice(j,1)}toAbortSignal(){const U=new AbortController,j=te=>{U.abort(te)};return this.subscribe(j),U.signal.unsubscribe=()=>this.unsubscribe(j),U.signal}static source(){let U;return{token:new Ll(function(j){U=j}),cancel:U}}}var O0=Ll;function oc(Y){return function(U){return Y.apply(null,U)}}function M0(Y){return de.isObject(Y)&&Y.isAxiosError===!0}const Bn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Bn).forEach(([Y,U])=>{Bn[U]=Y});var Qi=Bn;function sc(Y){const U=new Ii(Y),j=e(Ii.prototype.request,U);return de.extend(j,Ii.prototype,U,{allOwnKeys:!0}),de.extend(j,U,null,{allOwnKeys:!0}),j.create=function(te){return sc(ds(Y,te))},j}const Zn=sc(La);return Zn.Axios=Ii,Zn.CanceledError=Dt,Zn.CancelToken=O0,Zn.isCancel=Qe,Zn.VERSION=ic,Zn.toFormData=vt,Zn.AxiosError=We,Zn.Cancel=Zn.CanceledError,Zn.all=function(Y){return Promise.all(Y)},Zn.spread=oc,Zn.isAxiosError=M0,Zn.mergeConfig=ds,Zn.AxiosHeaders=Pn,Zn.formToJSON=Y=>Yo(de.isHTMLForm(Y)?new FormData(Y):Y),Zn.getAdapter=ao.getAdapter,Zn.HttpStatusCode=Qi,Zn.default=Zn,O6=Zn,O6}var Ew={},ww;function bde(){return ww||(ww=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function r(f,m){return u(f,"",m)}const n=f=>"/remote.php/"+f,i=(f,m)=>(m?.baseURL??c())+n(f),o=(f,m,v)=>{const w=Object.assign({ocsVersion:2},v||{}).ocsVersion===1?1:2;return(v?.baseURL??c())+"/ocs/v"+w+".php"+s(f,m,v)},s=(f,m,v)=>{const w=Object.assign({escape:!0},v||{}),x=function(k,R){return R=R||{},k.replace(/{([^{}]*)}/g,function(O,P){const V=R[P];return w.escape?encodeURIComponent(typeof V=="string"||typeof V=="number"?V.toString():O):typeof V=="string"||typeof V=="number"?V.toString():O})};return f.charAt(0)!=="/"&&(f="/"+f),x(f,m||{})},a=(f,m,v)=>{const w=Object.assign({noRewrite:!1},v||{}),x=v?.baseURL??d();return window?.OC?.config?.modRewriteWorking===!0&&!w.noRewrite?x+s(f,m,v):x+"/index.php"+s(f,m,v)},l=(f,m)=>m.includes(".")?u(f,"img",m):u(f,"img",`${m}.svg`),u=(f,m,v)=>{const w=window?.OC?.coreApps?.includes(f)??!1,x=v.slice(-3)==="php";let k=d();return x&&!w?(k+=`/index.php/apps/${f}`,m&&(k+=`/${encodeURI(m)}`),v!=="index.php"&&(k+=`/${v}`)):!x&&!w?(k=h(f),m&&(k+=`/${m}/`),k.at(-1)!=="/"&&(k+="/"),k+=v):((f==="settings"||f==="core"||f==="search")&&m==="ajax"&&(k+="/index.php"),f&&(k+=`/${f}`),m&&(k+=`/${m}`),k+=`/${v}`),k},c=()=>window.location.protocol+"//"+window.location.host+d();function d(){let f=window._oc_webroot;if(typeof f>"u"){f=location.pathname;const m=f.indexOf("/index.php/");if(m!==-1)f=f.slice(0,m);else{const v=f.indexOf("/",1);f=f.slice(0,v>0?v:void 0)}}return f}function h(f){return(window._oc_appswebroots??{})[f]??""}function p(f,m){const v=(m?.size||64)<=64?64:512,w=m?.isGuestUser?"/guest":"",x=m?.isDarkTheme?"/dark":"";return a(`/avatar${w}/{user}/{size}${x}`,{user:f,size:v})}e.generateAvatarUrl=p,e.generateFilePath=u,e.generateOcsUrl=o,e.generateRemoteUrl=i,e.generateUrl=a,e.getAppRootUrl=h,e.getBaseUrl=c,e.getRootUrl=d,e.imagePath=l,e.linkTo=r})(Ew)),Ew}var Sw;function vde(){return Sw||(Sw=1,(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=yde(),n=Tde(),i=bde(),o=(p=>p&&p.__esModule?p:{default:p})(n),s=o.default.create({headers:{requesttoken:r.getRequestToken()??"","X-Requested-With":"XMLHttpRequest"}});r.onRequestTokenUpdate(p=>{s.defaults.headers.requesttoken=p});const a=Object.assign(s,{CancelToken:o.default.CancelToken,isCancel:o.default.isCancel}),l=Symbol("csrf-retry");function u(p){return async f=>{if(!n.isAxiosError(f))throw f;const{config:m,response:v,request:w}=f,x=w?.responseURL;if(m&&!m[l]&&v?.status===412&&v?.data?.message==="CSRF check failed"){console.warn(`Request to ${x} failed because of a CSRF mismatch. Fetching a new token`);const{data:{token:k}}=await p.get(i.generateUrl("/csrftoken"));return console.debug(`New request token ${k} fetched`),p.defaults.headers.requesttoken=k,p({...m,headers:{...m.headers,requesttoken:k},[l]:!0})}throw f}}const c=Symbol("retryDelay");function d(p){return async f=>{if(!n.isAxiosError(f))throw f;const{config:m,response:v,request:w}=f,x=w?.responseURL,k=v?.status,R=v?.headers;let O=typeof m?.[c]=="number"?m?.[c]:1;if(k===503&&R?.["x-nextcloud-maintenance-mode"]==="1"&&m?.retryIfMaintenanceMode){if(O*=2,O>32)throw console.error("Retry delay exceeded one minute, giving up.",{responseURL:x}),f;return console.warn(`Request to ${x} failed because of maintenance mode. Retrying in ${O}s`),await new Promise(P=>{setTimeout(P,O*1e3)}),p({...m,[c]:O})}throw f}}async function h(p){if(n.isAxiosError(p)){const{config:f,response:m,request:v}=p,w=v?.responseURL;m?.status===401&&m?.data?.message==="Current user is not logged in"&&f?.reloadExpiredSession&&window?.location&&(console.error(`Request to ${w} failed because the user session expired. Reloading the page …`),window.location.reload())}throw p}a.interceptors.response.use(p=>p,u(a)),a.interceptors.response.use(p=>p,d(a)),a.interceptors.response.use(p=>p,h),Object.defineProperty(e,"isAxiosError",{enumerable:!0,get:()=>n.isAxiosError}),Object.defineProperty(e,"isCancel",{enumerable:!0,get:()=>n.isCancel}),e.default=a})(gw)),gw}var Dw;function Ade(){if(Dw)return Sc;Dw=1;var e=Sc&&Sc.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.getSupportedTypes=o,Sc.listen=s;const r=mde(),n=e(vde()),i=EM();function o(){const u=(0,r.getCapabilities)();return u.notify_push?u.notify_push.type:[]}function s(u,c,d={}){return a(d),window._notify_push_listeners[u]||(window._notify_push_listeners[u]=[]),window._notify_push_listeners[u].push(c),window._notify_push_ws!==null&&typeof window._notify_push_ws=="object"&&window._notify_push_ready?window._notify_push_ws.send("listen "+u):l(d),window._notify_push_available}function a(u={}){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,window._notify_push_ready=!1,(0,i.subscribe)("networkOffline",()=>{window._notify_push_online=!1,window._notify_push_ws=null,window._notify_push_ready=!1}),(0,i.subscribe)("networkOnline",()=>{window._notify_push_error_count=0,window._notify_push_online=!0,l(u)}))}async function l(u={}){if(window._notify_push_ws)return!0;window._notify_push_ws=!0;const c=(0,r.getCapabilities)();if(!c.notify_push)return window._notify_push_available=!1,window._notify_push_ws=null,!1;window._notify_push_available=!0;let d;return u.credentials||(d=(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){d?(window._notify_push_ws.send(""),window._notify_push_ws.send(d)):u.credentials&&(window._notify_push_ws.send(u.credentials.username),window._notify_push_ws.send(u.credentials.password)),window._notify_push_ready=!0;for(let h in window._notify_push_listeners)window._notify_push_ws.send("listen "+h)}},window._notify_push_ws.onmessage=h=>{if(h.data==="authenticated")window._notify_push_error_count=0;else{const p=h.data.indexOf(" ");let[f,m]=p>0?[h.data.slice(0,p),h.data.slice(p+1)]:[h.data,null];if(m&&(m=JSON.parse(m)),window._notify_push_listeners[f])for(let v of window._notify_push_listeners[f])v(f,m)}},window._notify_push_ws.onerror=window._notify_push_ws.onclose=()=>{window._notify_push_ws=null,window._notify_push_error_count+=1,window._notify_push_ready=!1,setTimeout(()=>{window._notify_push_online&&l(u)},1e3*window._notify_push_error_count)},!0}return Sc}var Ede=Ade();if(!window._nc_text_notify){const e=zu("text","notify_push",!0)?Ede.listen("text_steps",(r,n)=>{window._nc_text_notify?.emit("notify_push",{messageType:r,messageBody:n})}):void 0;window._nc_text_notify=e?pM():void 0}const wde=()=>window._nc_text_notify,xw=300,Sde=5e3,Dde=5e3,xde=3e4,wM=2e4,M6=3e4,kde=5,Cde=wM*1.5;class _de{#e;#t;#i;#s;#r;#u;fetcher;#o=!1;#a=!1;#n;visibilitychange=()=>{document.visibilityState==="hidden"?this.#r=wM:this.resetRefetchTimer()};constructor(r,n,{readOnly:i}){this.#e=r,this.#t=n,this.#r=xw,this.#u=0,this.#s=0,this.#i=i}connect(){if(this.fetcher){console.error("Trying to connect, but already connected");return}this.#a=!1,this.fetcher=setInterval(this._fetchSteps.bind(this),50),document.addEventListener("visibilitychange",this.visibilitychange),this.#n=wde()}async _fetchSteps(){if(this.#o)return;const r=Date.now();if(!(this.#s>r-this.#r)){if(!this.fetcher){console.error("No inverval but triggered");return}this.#o=!0,bi.debug("[PollingBackend] Fetching steps",{version:this.#e.version}),await Qce(this.#t,{version:this.#e.version}).then(this._handleResponse.bind(this),this._handleError.bind(this)),this.#s=Date.now(),this.#o=!1}}_handleResponse({data:r}){const{document:n,sessions:i}=r;if(this.#u=0,this.#e.bus.emit("change",{document:n,sessions:i}),this.#e.receiveSteps(r),r.steps.length===0){if(this.#a||(this.#a=!0),this.#e.checkIdle())return;const o=Date.now()-Cde,s=i.filter(a=>a.lastContact*1e3>o);this.#i?this.maximumReadOnlyTimer():s.length<2?this.maximumRefetchTimer():this.increaseRefetchTimer(),this.#e.bus.emit("stateChange",{initialLoading:!0});return}this.#a&&this.resetRefetchTimer()}_handleError(r){!r.response||r.code==="ECONNABORTED"?this.#u++>=kde?(bi.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),this.#e.bus.emit("error",{type:$s.CONNECTION_FAILED,data:{}})):bi.error(`[PollingBackend:fetchSteps] Network error when fetching steps, retry ${this.#u}`):r.response.status===409?(this._handleResponse(r.response),bi.error("Conflict during file save, please resolve"),this.#e.bus.emit("error",{type:$s.SAVE_COLLISSION,data:{outsideChange:r.response.data.outsideChange}})):r.response.status===412?(this.#e.bus.emit("error",{type:$s.LOAD_ERROR,data:r.response}),this.disconnect()):[403,404].includes(r.response.status)?(this.#e.bus.emit("error",{type:$s.SOURCE_NOT_FOUND,data:{}}),this.disconnect()):[502,503].includes(r.response.status)?(this.increaseRefetchTimer(),this.#e.bus.emit("error",{type:$s.CONNECTION_FAILED,data:{}}),bi.error("Failed to fetch steps due to unavailable service",{error:r})):(this.disconnect(),this.#e.bus.emit("error",{type:$s.CONNECTION_FAILED,data:{}}),bi.error("Failed to fetch steps due to other reason",{error:r}))}disconnect(){clearInterval(this.fetcher),this.fetcher=void 0,document.removeEventListener("visibilitychange",this.visibilitychange)}resetRefetchTimer(){if(this.#n&&this.#a){this.#r=M6;return}this.#r=xw}increaseRefetchTimer(){if(this.#n&&this.#a){this.#r=M6;return}this.#r=Math.min(this.#r*2,Sde)}maximumRefetchTimer(){if(this.#n&&this.#a){this.#r=M6;return}this.#r=Dde}maximumReadOnlyTimer(){this.#r=xde}}const kw=1440,H9e=60,Nde=90,$s={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4,PUSH_FORBIDDEN:5};function P9e(e){return"guestName"in e&&typeof e.guestName=="string"}function Fde(e){return"userId"in e&&typeof e.userId=="string"}class Z9e{connection;version=-1;pushError=0;backend;#e;#t=new pde;bus=pM();#i;#s=Date.now();#r=!1;constructor({connection:r,openConnection:n}){this.connection=r,this.#i=n}hasActiveConnection(){return!!this.connection.value}async open(){if(this.hasActiveConnection())return;const r=await this.#i().catch(n=>this._emitError(n));if(r){if(!this.connection.value){console.error("Opened the connection but now it is undefined");return}this.backend=new _de(this,this.connection.value,r),this.bus.emit("opened",r),r.documentState&&this._emitDocumentStateStep(r.documentState,r.document.lastSavedVersion)}}startSync(){this.backend?.connect()}syncUp(){this.backend?.resetRefetchTimer()}_emitError(r){!r.response||r.code==="ECONNABORTED"?this.bus.emit("error",{type:$s.CONNECTION_FAILED,data:{}}):this.bus.emit("error",{type:$s.LOAD_ERROR,data:r.response})}_emitDocumentStateStep(r,n){const i=dde(r,n);this.bus.emit("sync",{steps:[i]})}sendStep(r){this.#t.storeStep(r),this.sendSteps()}sendRecoveryStep(r){this.#t.setRecoveringSync(),this.#t.storeStep(r),this.sendSteps()}sendSteps(){this.#e||(this.#e=setInterval(()=>{this.connection.value&&!this.#r&&this.sendStepsNow().catch(r=>bi.error(r))},200))}async sendStepsNow(){if(this.#r=!0,clearInterval(this.#e),this.#e=void 0,this.#t.hasUpdate&&this.bus.emit("stateChange",{dirty:!0}),!this.hasActiveConnection())return;const r=this.#t.getDataToSend();return Kce(this.connection,{version:this.version,...r}).then(n=>{this.#t.clearSentData(r);const{steps:i,documentState:o,version:s}=n.data;o&&this._emitDocumentStateStep(o,s),this.pushError=0,this.#r=!1,i?.length>0&&this.receiveSteps({steps:i})}).catch(n=>{const{response:i,code:o}=n;throw this.#r=!1,this.pushError++,bi.error("Failed to push the steps to the server",n),(!i||o==="ECONNABORTED")&&this.bus.emit("error",{type:$s.CONNECTION_FAILED,data:{}}),i?.status===412?this.bus.emit("error",{type:$s.LOAD_ERROR,data:i}):i?.status===403?(bi.error("failed to write to document - not allowed"),this.bus.emit("error",{type:$s.PUSH_FORBIDDEN,data:{}})):this.bus.emit("error",{type:$s.PUSH_FAILURE,data:{}}),new Error("Failed to apply steps. Retry!",{cause:n})})}receiveSteps({steps:r,document:n,sessions:i=[]}){const o=Math.max(this.version,...r.map(s=>s.version));this.bus.emit("sync",{steps:[...Jce(i),...r],document:n}),this.version<o&&console.warn(`Failed to process steps leading up to version ${o}.`),this.#s=Date.now()}checkIdle(){return(Date.now()-this.#s)/1e3/60>kw?(bi.debug(`[SyncService] Document is idle for ${kw} minutes, suspending connection`),this.bus.emit("idle"),!0):!1}async sendRemainingSteps(){if(this.#t.hasUpdate)return bi.debug("sending final steps"),this.sendStepsNow().catch(r=>bi.error(r))}async close(){this.backend?.disconnect(),this.hasActiveConnection()&&GX(this.connection.value).catch(r=>{bi.info("Failed to close connection.",{e:r})}),this.connection.value=void 0,this.bus.emit("close")}}const $9e=e=>({setContent:(r,{addToHistory:n=!0}={})=>{const i=e.extensionManager.extensions.includes(N7)?Bu.render(r)+"<p/>":`<pre>${lL(r)}</pre>`;e.chain().setContent(i,{emitUpdate:n}).command(({tr:o})=>(o.setMeta("addToHistory",n),!0)).run()},setEditable:r=>{e&&e.isEditable!==r&&e.setEditable(r)},updateUser:r=>{const n={name:Fde(r)?r.displayName:r?.guestName||"",color:r?.color};e.commands.updateUser(n)}});let Cw=zu("text","is_full_width_editor",!1);const jT=Symbol("text:editor:width"),Ode="min(80ch, 100%)",Mde="min(80ch, (100% - 2 * 40px))",Rde="100%",Bde="calc(100% - 2 * 40px)",Ide="min(80ch, 100%)",Lde="100%";function zde(){const e=getComputedStyle(document.body).getPropertyValue("--text-editor-max-width"),r=document.documentElement.style.getPropertyValue("--text-editor-max-width");return!!e&&e!==r}const U9e=(e=!0)=>{const r=dp();if(zde())return Sl(jT,null),{applyEditorWidth:()=>{}};const n=_i(Cw);Sl(jT,ld(n)),xu("text:editor:full-width",({value:c})=>{Cw=c,n.value=c});const i=e?Mde:Ode,o=e?Bde:Rde,s=ri(()=>r.value?Ide:i),a=ri(()=>r.value?Lde:o),l=ri(()=>n.value?a.value:s.value),u=()=>{document.documentElement.style.setProperty("--text-editor-max-width",l.value)};return u0(l,u),{applyEditorWidth:u}},V9e=()=>{const e=dp(),{isRichWorkspace:r}=M3(),n=wl(jT);return n===null||r||e.value?{canToggleWidth:!1}:{canToggleWidth:!0,isFullWidth:n,setFullWidth:i=>{qn.post(bo("/apps/text/settings"),{key:"is_full_width_editor",value:i?"1":"0"}),Io("text:editor:full-width",{value:i})}}};var R6,_w;function Yde(){if(_w)return R6;_w=1;function e(D){return D instanceof Map?D.clear=D.delete=D.set=function(){throw new Error("map is read-only")}:D instanceof Set&&(D.add=D.clear=D.delete=function(){throw new Error("set is read-only")}),Object.freeze(D),Object.getOwnPropertyNames(D).forEach(pe=>{const z=D[pe],J=typeof z;(J==="object"||J==="function")&&!Object.isFrozen(z)&&e(z)}),D}class r{constructor(pe){pe.data===void 0&&(pe.data={}),this.data=pe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(D){return D.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(D,...pe){const z=Object.create(null);for(const J in D)z[J]=D[J];return pe.forEach(function(J){for(const Zt in J)z[Zt]=J[Zt]}),z}const o="</span>",s=D=>!!D.scope,a=(D,{prefix:pe})=>{if(D.startsWith("language:"))return D.replace("language:","language-");if(D.includes(".")){const z=D.split(".");return[`${pe}${z.shift()}`,...z.map((J,Zt)=>`${J}${"_".repeat(Zt+1)}`)].join(" ")}return`${pe}${D}`};class l{constructor(pe,z){this.buffer="",this.classPrefix=z.classPrefix,pe.walk(this)}addText(pe){this.buffer+=n(pe)}openNode(pe){if(!s(pe))return;const z=a(pe.scope,{prefix:this.classPrefix});this.span(z)}closeNode(pe){s(pe)&&(this.buffer+=o)}value(){return this.buffer}span(pe){this.buffer+=`<span class="${pe}">`}}const u=(D={})=>{const pe={children:[]};return Object.assign(pe,D),pe};class c{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(pe){this.top.children.push(pe)}openNode(pe){const z=u({scope:pe});this.add(z),this.stack.push(z)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(pe){return this.constructor._walk(pe,this.rootNode)}static _walk(pe,z){return typeof z=="string"?pe.addText(z):z.children&&(pe.openNode(z),z.children.forEach(J=>this._walk(pe,J)),pe.closeNode(z)),pe}static _collapse(pe){typeof pe!="string"&&pe.children&&(pe.children.every(z=>typeof z=="string")?pe.children=[pe.children.join("")]:pe.children.forEach(z=>{c._collapse(z)}))}}class d extends c{constructor(pe){super(),this.options=pe}addText(pe){pe!==""&&this.add(pe)}startScope(pe){this.openNode(pe)}endScope(){this.closeNode()}__addSublanguage(pe,z){const J=pe.root;z&&(J.scope=`language:${z}`),this.add(J)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(D){return D?typeof D=="string"?D:D.source:null}function p(D){return v("(?=",D,")")}function f(D){return v("(?:",D,")*")}function m(D){return v("(?:",D,")?")}function v(...D){return D.map(pe=>h(pe)).join("")}function w(D){const pe=D[D.length-1];return typeof pe=="object"&&pe.constructor===Object?(D.splice(D.length-1,1),pe):{}}function x(...D){return"("+(w(D).capture?"":"?:")+D.map(pe=>h(pe)).join("|")+")"}function k(D){return new RegExp(D.toString()+"|").exec("").length-1}function R(D,pe){const z=D&&D.exec(pe);return z&&z.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function P(D,{joinWith:pe}){let z=0;return D.map(J=>{z+=1;const Zt=z;let je=h(J),ft="";for(;je.length>0;){const bt=O.exec(je);if(!bt){ft+=je;break}ft+=je.substring(0,bt.index),je=je.substring(bt.index+bt[0].length),bt[0][0]==="\\"&&bt[1]?ft+="\\"+String(Number(bt[1])+Zt):(ft+=bt[0],bt[0]==="("&&z++)}return ft}).map(J=>`(${J})`).join(pe)}const V=/\b\B/,W="[a-zA-Z]\\w*",ie="[a-zA-Z_]\\w*",ue="\\b\\d+(\\.\\d+)?",I="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ne="\\b(0b[01]+)",he="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",re=(D={})=>{const pe=/^#![ ]*\//;return D.binary&&(D.begin=v(pe,/.*\b/,D.binary,/\b.*/)),i({scope:"meta",begin:pe,end:/$/,relevance:0,"on:begin":(z,J)=>{z.index!==0&&J.ignoreMatch()}},D)},Ee={begin:"\\\\[\\s\\S]",relevance:0},ge={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ee]},Oe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ee]},Me={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/},Ve=function(D,pe,z={}){const J=i({scope:"comment",begin:D,end:pe,contains:[]},z);J.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 Zt=x("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 J.contains.push({begin:v(/[ ]+/,"(",Zt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),J},it=Ve("//","$"),ct=Ve("/\\*","\\*/"),Ct=Ve("#","$"),Ye={scope:"number",begin:ue,relevance:0},Kt={scope:"number",begin:I,relevance:0},Vt={scope:"number",begin:ne,relevance:0},Ot={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ee,{begin:/\[/,end:/\]/,relevance:0,contains:[Ee]}]},jt={scope:"title",begin:W,relevance:0},_t={scope:"title",begin:ie,relevance:0},Fr={begin:"\\.\\s*"+ie,relevance:0};var jr=Object.freeze({__proto__:null,APOS_STRING_MODE:ge,BACKSLASH_ESCAPE:Ee,BINARY_NUMBER_MODE:Vt,BINARY_NUMBER_RE:ne,COMMENT:Ve,C_BLOCK_COMMENT_MODE:ct,C_LINE_COMMENT_MODE:it,C_NUMBER_MODE:Kt,C_NUMBER_RE:I,END_SAME_AS_BEGIN:function(D){return Object.assign(D,{"on:begin":(pe,z)=>{z.data._beginMatch=pe[1]},"on:end":(pe,z)=>{z.data._beginMatch!==pe[1]&&z.ignoreMatch()}})},HASH_COMMENT_MODE:Ct,IDENT_RE:W,MATCH_NOTHING_RE:V,METHOD_GUARD:Fr,NUMBER_MODE:Ye,NUMBER_RE:ue,PHRASAL_WORDS_MODE:Me,QUOTE_STRING_MODE:Oe,REGEXP_MODE:Ot,RE_STARTERS_RE:he,SHEBANG:re,TITLE_MODE:jt,UNDERSCORE_IDENT_RE:ie,UNDERSCORE_TITLE_MODE:_t});function pt(D,pe){D.input[D.index-1]==="."&&pe.ignoreMatch()}function nr(D,pe){D.className!==void 0&&(D.scope=D.className,delete D.className)}function Yt(D,pe){pe&&D.beginKeywords&&(D.begin="\\b("+D.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",D.__beforeBegin=pt,D.keywords=D.keywords||D.beginKeywords,delete D.beginKeywords,D.relevance===void 0&&(D.relevance=0))}function vr(D,pe){Array.isArray(D.illegal)&&(D.illegal=x(...D.illegal))}function Gr(D,pe){if(D.match){if(D.begin||D.end)throw new Error("begin & end are not supported with match");D.begin=D.match,delete D.match}}function An(D,pe){D.relevance===void 0&&(D.relevance=1)}const Ft=(D,pe)=>{if(!D.beforeMatch)return;if(D.starts)throw new Error("beforeMatch cannot be used with starts");const z=Object.assign({},D);Object.keys(D).forEach(J=>{delete D[J]}),D.keywords=z.keywords,D.begin=v(z.beforeMatch,p(z.begin)),D.starts={relevance:0,contains:[Object.assign(z,{endsParent:!0})]},D.relevance=0,delete z.beforeMatch},ee=["of","and","for","in","not","or","if","then","parent","list","value"],ye="keyword";function se(D,pe,z=ye){const J=Object.create(null);return typeof D=="string"?Zt(z,D.split(" ")):Array.isArray(D)?Zt(z,D):Object.keys(D).forEach(function(je){Object.assign(J,se(D[je],pe,je))}),J;function Zt(je,ft){pe&&(ft=ft.map(bt=>bt.toLowerCase())),ft.forEach(function(bt){const Ge=bt.split("|");J[Ge[0]]=[je,Pe(Ge[0],Ge[1])]})}}function Pe(D,pe){return pe?Number(pe):dt(D)?0:1}function dt(D){return ee.includes(D.toLowerCase())}const ut={},Be=D=>{console.error(D)},Le=(D,...pe)=>{console.log(`WARN: ${D}`,...pe)},de=(D,pe)=>{ut[`${D}/${pe}`]||(console.log(`Deprecated as of ${D}. ${pe}`),ut[`${D}/${pe}`]=!0)},We=new Error;function Sr(D,pe,{key:z}){let J=0;const Zt=D[z],je={},ft={};for(let bt=1;bt<=pe.length;bt++)ft[bt+J]=Zt[bt],je[bt+J]=!0,J+=k(pe[bt-1]);D[z]=ft,D[z]._emit=je,D[z]._multi=!0}function kr(D){if(Array.isArray(D.begin)){if(D.skip||D.excludeBegin||D.returnBegin)throw Be("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),We;if(typeof D.beginScope!="object"||D.beginScope===null)throw Be("beginScope must be object"),We;Sr(D,D.begin,{key:"beginScope"}),D.begin=P(D.begin,{joinWith:""})}}function Wi(D){if(Array.isArray(D.end)){if(D.skip||D.excludeEnd||D.returnEnd)throw Be("skip, excludeEnd, returnEnd not compatible with endScope: {}"),We;if(typeof D.endScope!="object"||D.endScope===null)throw Be("endScope must be object"),We;Sr(D,D.end,{key:"endScope"}),D.end=P(D.end,{joinWith:""})}}function da(D){D.scope&&typeof D.scope=="object"&&D.scope!==null&&(D.beginScope=D.scope,delete D.scope)}function wi(D){da(D),typeof D.beginScope=="string"&&(D.beginScope={_wrap:D.beginScope}),typeof D.endScope=="string"&&(D.endScope={_wrap:D.endScope}),kr(D),Wi(D)}function ls(D){function pe(ft,bt){return new RegExp(h(ft),"m"+(D.case_insensitive?"i":"")+(D.unicodeRegex?"u":"")+(bt?"g":""))}class z{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(bt,Ge){Ge.position=this.position++,this.matchIndexes[this.matchAt]=Ge,this.regexes.push([Ge,bt]),this.matchAt+=k(bt)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const bt=this.regexes.map(Ge=>Ge[1]);this.matcherRe=pe(P(bt,{joinWith:"|"}),!0),this.lastIndex=0}exec(bt){this.matcherRe.lastIndex=this.lastIndex;const Ge=this.matcherRe.exec(bt);if(!Ge)return null;const sr=Ge.findIndex((Mr,ae)=>ae>0&&Mr!==void 0),yr=this.matchIndexes[sr];return Ge.splice(0,sr),Object.assign(Ge,yr)}}class J{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(bt){if(this.multiRegexes[bt])return this.multiRegexes[bt];const Ge=new z;return this.rules.slice(bt).forEach(([sr,yr])=>Ge.addRule(sr,yr)),Ge.compile(),this.multiRegexes[bt]=Ge,Ge}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(bt,Ge){this.rules.push([bt,Ge]),Ge.type==="begin"&&this.count++}exec(bt){const Ge=this.getMatcher(this.regexIndex);Ge.lastIndex=this.lastIndex;let sr=Ge.exec(bt);if(this.resumingScanAtSamePosition()&&!(sr&&sr.index===this.lastIndex)){const yr=this.getMatcher(0);yr.lastIndex=this.lastIndex+1,sr=yr.exec(bt)}return sr&&(this.regexIndex+=sr.position+1,this.regexIndex===this.count&&this.considerAll()),sr}}function Zt(ft){const bt=new J;return ft.contains.forEach(Ge=>bt.addRule(Ge.begin,{rule:Ge,type:"begin"})),ft.terminatorEnd&&bt.addRule(ft.terminatorEnd,{type:"end"}),ft.illegal&&bt.addRule(ft.illegal,{type:"illegal"}),bt}function je(ft,bt){const Ge=ft;if(ft.isCompiled)return Ge;[nr,Gr,wi,Ft].forEach(yr=>yr(ft,bt)),D.compilerExtensions.forEach(yr=>yr(ft,bt)),ft.__beforeBegin=null,[Yt,vr,An].forEach(yr=>yr(ft,bt)),ft.isCompiled=!0;let sr=null;return typeof ft.keywords=="object"&&ft.keywords.$pattern&&(ft.keywords=Object.assign({},ft.keywords),sr=ft.keywords.$pattern,delete ft.keywords.$pattern),sr=sr||/\w+/,ft.keywords&&(ft.keywords=se(ft.keywords,D.case_insensitive)),Ge.keywordPatternRe=pe(sr,!0),bt&&(ft.begin||(ft.begin=/\B|\b/),Ge.beginRe=pe(Ge.begin),!ft.end&&!ft.endsWithParent&&(ft.end=/\B|\b/),ft.end&&(Ge.endRe=pe(Ge.end)),Ge.terminatorEnd=h(Ge.end)||"",ft.endsWithParent&&bt.terminatorEnd&&(Ge.terminatorEnd+=(ft.end?"|":"")+bt.terminatorEnd)),ft.illegal&&(Ge.illegalRe=pe(ft.illegal)),ft.contains||(ft.contains=[]),ft.contains=[].concat(...ft.contains.map(function(yr){return Re(yr==="self"?ft:yr)})),ft.contains.forEach(function(yr){je(yr,Ge)}),ft.starts&&je(ft.starts,bt),Ge.matcher=Zt(Ge),Ge}if(D.compilerExtensions||(D.compilerExtensions=[]),D.contains&&D.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return D.classNameAliases=i(D.classNameAliases||{}),je(D)}function Wn(D){return D?D.endsWithParent||Wn(D.starts):!1}function Re(D){return D.variants&&!D.cachedVariants&&(D.cachedVariants=D.variants.map(function(pe){return i(D,{variants:null},pe)})),D.cachedVariants?D.cachedVariants:Wn(D)?i(D,{starts:D.starts?i(D.starts):null}):Object.isFrozen(D)?i(D):D}var vt="11.11.1";class Mt extends Error{constructor(pe,z){super(pe),this.name="HTMLInjectionError",this.html=z}}const mr=n,ur=i,On=Symbol("nomatch"),Mn=7,Dr=function(D){const pe=Object.create(null),z=Object.create(null),J=[];let Zt=!0;const je="Could not find the language '{}', did you forget to load/include a language module?",ft={disableAutodetect:!0,name:"Plain text",contains:[]};let bt={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Ge(Qe){return bt.noHighlightRe.test(Qe)}function sr(Qe){let Dt=Qe.className+" ";Dt+=Qe.parentNode?Qe.parentNode.className:"";const cr=bt.languageDetectRe.exec(Dt);if(cr){const Br=Ni(cr[1]);return Br||(Le(je.replace("{}",cr[1])),Le("Falling back to no-highlight mode for this block.",Qe)),Br?cr[1]:"no-highlight"}return Dt.split(/\s+/).find(Br=>Ge(Br)||Ni(Br))}function yr(Qe,Dt,cr){let Br="",$r="";typeof Dt=="object"?(Br=Qe,cr=Dt.ignoreIllegals,$r=Dt.language):(de("10.7.0","highlight(lang, code, ...args) has been deprecated."),de("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),$r=Qe,Br=Dt),cr===void 0&&(cr=!0);const Fi={code:Br,language:$r};Pn("before:highlight",Fi);const mi=Fi.result?Fi.result:Mr(Fi.language,Fi.code,cr);return mi.code=Fi.code,Pn("after:highlight",mi),mi}function Mr(Qe,Dt,cr,Br){const $r=Object.create(null);function Fi(mt,xt){return mt.keywords[xt]}function mi(){if(!tr.keywords){sn.addText(Ir);return}let mt=0;tr.keywordPatternRe.lastIndex=0;let xt=tr.keywordPatternRe.exec(Ir),ir="";for(;xt;){ir+=Ir.substring(mt,xt.index);const Or=so.case_insensitive?xt[0].toLowerCase():xt[0],xe=Fi(tr,Or);if(xe){const[Ar,ao]=xe;if(sn.addText(ir),ir="",$r[Or]=($r[Or]||0)+1,$r[Or]<=Mn&&(wo+=ao),Ar.startsWith("_"))ir+=xt[0];else{const Bi=so.classNameAliases[Ar]||Ar;Oi(xt[0],Bi)}}else ir+=xt[0];mt=tr.keywordPatternRe.lastIndex,xt=tr.keywordPatternRe.exec(Ir)}ir+=Ir.substring(mt),sn.addText(ir)}function oo(){if(Ir==="")return;let mt=null;if(typeof tr.subLanguage=="string"){if(!pe[tr.subLanguage]){sn.addText(Ir);return}mt=Mr(tr.subLanguage,Ir,!0,Ha[tr.subLanguage]),Ha[tr.subLanguage]=mt._top}else mt=Rr(Ir,tr.subLanguage.length?tr.subLanguage:null);tr.relevance>0&&(wo+=mt.relevance),sn.__addSublanguage(mt._emitter,mt.language)}function si(){tr.subLanguage!=null?oo():mi(),Ir=""}function Oi(mt,xt){mt!==""&&(sn.startScope(xt),sn.addText(mt),sn.endScope())}function N0(mt,xt){let ir=1;const Or=xt.length-1;for(;ir<=Or;){if(!mt._emit[ir]){ir++;continue}const xe=so.classNameAliases[mt[ir]]||mt[ir],Ar=xt[ir];xe?Oi(Ar,xe):(Ir=Ar,mi(),Ir=""),ir++}}function Rl(mt,xt){return mt.scope&&typeof mt.scope=="string"&&sn.openNode(so.classNameAliases[mt.scope]||mt.scope),mt.beginScope&&(mt.beginScope._wrap?(Oi(Ir,so.classNameAliases[mt.beginScope._wrap]||mt.beginScope._wrap),Ir=""):mt.beginScope._multi&&(N0(mt.beginScope,xt),Ir="")),tr=Object.create(mt,{parent:{value:tr}}),tr}function on(mt,xt,ir){let Or=R(mt.endRe,ir);if(Or){if(mt["on:end"]){const xe=new r(mt);mt["on:end"](xt,xe),xe.isMatchIgnored&&(Or=!1)}if(Or){for(;mt.endsParent&&mt.parent;)mt=mt.parent;return mt}}if(mt.endsWithParent)return on(mt.parent,xt,ir)}function pa(mt){return tr.matcher.regexIndex===0?(Ir+=mt[0],1):(Il=!0,0)}function Mi(mt){const xt=mt[0],ir=mt.rule,Or=new r(ir),xe=[ir.__beforeBegin,ir["on:begin"]];for(const Ar of xe)if(Ar&&(Ar(mt,Or),Or.isMatchIgnored))return pa(xt);return ir.skip?Ir+=xt:(ir.excludeBegin&&(Ir+=xt),si(),!ir.returnBegin&&!ir.excludeBegin&&(Ir=xt)),Rl(ir,mt),ir.returnBegin?0:xt.length}function ds(mt){const xt=mt[0],ir=Dt.substring(mt.index),Or=on(tr,mt,ir);if(!Or)return On;const xe=tr;tr.endScope&&tr.endScope._wrap?(si(),Oi(xt,tr.endScope._wrap)):tr.endScope&&tr.endScope._multi?(si(),N0(tr.endScope,mt)):xe.skip?Ir+=xt:(xe.returnEnd||xe.excludeEnd||(Ir+=xt),si(),xe.excludeEnd&&(Ir=xt));do tr.scope&&sn.closeNode(),!tr.skip&&!tr.subLanguage&&(wo+=tr.relevance),tr=tr.parent;while(tr!==Or.parent);return Or.starts&&Rl(Or.starts,mt),xe.returnEnd?0:xt.length}function F0(){const mt=[];for(let xt=tr;xt!==so;xt=xt.parent)xt.scope&&mt.unshift(xt.scope);mt.forEach(xt=>sn.openNode(xt))}let fa={};function Bl(mt,xt){const ir=xt&&xt[0];if(Ir+=mt,ir==null)return si(),0;if(fa.type==="begin"&&xt.type==="end"&&fa.index===xt.index&&ir===""){if(Ir+=Dt.slice(xt.index,xt.index+1),!Zt){const Or=new Error(`0 width match regex (${Qe})`);throw Or.languageName=Qe,Or.badRule=fa.rule,Or}return 1}if(fa=xt,xt.type==="begin")return Mi(xt);if(xt.type==="illegal"&&!cr){const Or=new Error('Illegal lexeme "'+ir+'" for mode "'+(tr.scope||"<unnamed>")+'"');throw Or.mode=tr,Or}else if(xt.type==="end"){const Or=ds(xt);if(Or!==On)return Or}if(xt.type==="illegal"&&ir==="")return Ir+=` `,1;if(Pa>1e5&&Pa>xt.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ir+=ir,ir.length}const so=Ni(Qe);if(!so)throw Be(je.replace("{}",Qe)),new Error('Unknown language: "'+Qe+'"');const Ya=ls(so);let Xn="",tr=Br||Ya;const Ha={},sn=new bt.__emitter(bt);F0();let Ir="",wo=0,Ri=0,Pa=0,Il=!1;try{if(so.__emitTokens)so.__emitTokens(Dt,sn);else{for(tr.matcher.considerAll();;){Pa++,Il?Il=!1:tr.matcher.considerAll(),tr.matcher.lastIndex=Ri;const mt=tr.matcher.exec(Dt);if(!mt)break;const xt=Dt.substring(Ri,mt.index),ir=Bl(xt,mt);Ri=mt.index+ir}Bl(Dt.substring(Ri))}return sn.finalize(),Xn=sn.toHTML(),{language:Qe,value:Xn,relevance:wo,illegal:!1,_emitter:sn,_top:tr}}catch(mt){if(mt.message&&mt.message.includes("Illegal"))return{language:Qe,value:mr(Dt),illegal:!0,relevance:0,_illegalBy:{message:mt.message,index:Ri,context:Dt.slice(Ri-100,Ri+100),mode:mt.mode,resultSoFar:Xn},_emitter:sn};if(Zt)return{language:Qe,value:mr(Dt),illegal:!1,relevance:0,errorRaised:mt,_emitter:sn,_top:tr};throw mt}}function ae(Qe){const Dt={value:mr(Qe),illegal:!1,relevance:0,_top:ft,_emitter:new bt.__emitter(bt)};return Dt._emitter.addText(Qe),Dt}function Rr(Qe,Dt){Dt=Dt||bt.languages||Object.keys(pe);const cr=ae(Qe),Br=Dt.filter(Ni).filter(Hn).map(si=>Mr(si,Qe,!1));Br.unshift(cr);const $r=Br.sort((si,Oi)=>{if(si.relevance!==Oi.relevance)return Oi.relevance-si.relevance;if(si.language&&Oi.language){if(Ni(si.language).supersetOf===Oi.language)return 1;if(Ni(Oi.language).supersetOf===si.language)return-1}return 0}),[Fi,mi]=$r,oo=Fi;return oo.secondBest=mi,oo}function be(Qe,Dt,cr){const Br=Dt&&z[Dt]||cr;Qe.classList.add("hljs"),Qe.classList.add(`language-${Br}`)}function Yo(Qe){let Dt=null;const cr=sr(Qe);if(Ge(cr))return;if(Pn("before:highlightElement",{el:Qe,language:cr}),Qe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Qe);return}if(Qe.children.length>0&&(bt.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(Qe)),bt.throwUnescapedHTML))throw new Mt("One of your code blocks includes unescaped HTML.",Qe.innerHTML);Dt=Qe;const Br=Dt.textContent,$r=cr?yr(Br,{language:cr,ignoreIllegals:!0}):Rr(Br);Qe.innerHTML=$r.value,Qe.dataset.highlighted="yes",be(Qe,cr,$r.language),Qe.result={language:$r.language,re:$r.relevance,relevance:$r.relevance},$r.secondBest&&(Qe.secondBest={language:$r.secondBest.language,relevance:$r.secondBest.relevance}),Pn("after:highlightElement",{el:Qe,result:$r,text:Br})}function Ol(Qe){bt=ur(bt,Qe)}const ha=()=>{us(),de("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function La(){us(),de("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let za=!1;function us(){function Qe(){us()}if(document.readyState==="loading"){za||window.addEventListener("DOMContentLoaded",Qe,!1),za=!0;return}document.querySelectorAll(bt.cssSelector).forEach(Yo)}function Ml(Qe,Dt){let cr=null;try{cr=Dt(D)}catch(Br){if(Be("Language definition for '{}' could not be registered.".replace("{}",Qe)),Zt)Be(Br);else throw Br;cr=ft}cr.name||(cr.name=Qe),pe[Qe]=cr,cr.rawDefinition=Dt.bind(null,D),cr.aliases&&Qt(cr.aliases,{languageName:Qe})}function Ki(Qe){delete pe[Qe];for(const Dt of Object.keys(z))z[Dt]===Qe&&delete z[Dt]}function cs(){return Object.keys(pe)}function Ni(Qe){return Qe=(Qe||"").toLowerCase(),pe[Qe]||pe[z[Qe]]}function Qt(Qe,{languageName:Dt}){typeof Qe=="string"&&(Qe=[Qe]),Qe.forEach(cr=>{z[cr.toLowerCase()]=Dt})}function Hn(Qe){const Dt=Ni(Qe);return Dt&&!Dt.disableAutodetect}function mn(Qe){Qe["before:highlightBlock"]&&!Qe["before:highlightElement"]&&(Qe["before:highlightElement"]=Dt=>{Qe["before:highlightBlock"](Object.assign({block:Dt.el},Dt))}),Qe["after:highlightBlock"]&&!Qe["after:highlightElement"]&&(Qe["after:highlightElement"]=Dt=>{Qe["after:highlightBlock"](Object.assign({block:Dt.el},Dt))})}function io(Qe){mn(Qe),J.push(Qe)}function Zr(Qe){const Dt=J.indexOf(Qe);Dt!==-1&&J.splice(Dt,1)}function Pn(Qe,Dt){const cr=Qe;J.forEach(function(Br){Br[cr]&&Br[cr](Dt)})}function Rs(Qe){return de("10.7.0","highlightBlock will be removed entirely in v12.0"),de("10.7.0","Please use highlightElement now."),Yo(Qe)}Object.assign(D,{highlight:yr,highlightAuto:Rr,highlightAll:us,highlightElement:Yo,highlightBlock:Rs,configure:Ol,initHighlighting:ha,initHighlightingOnLoad:La,registerLanguage:Ml,unregisterLanguage:Ki,listLanguages:cs,getLanguage:Ni,registerAliases:Qt,autoDetection:Hn,inherit:ur,addPlugin:io,removePlugin:Zr}),D.debugMode=function(){Zt=!1},D.safeMode=function(){Zt=!0},D.versionString=vt,D.regex={concat:v,lookahead:p,either:x,optional:m,anyNumberOfTimes:f};for(const Qe in jr)typeof jr[Qe]=="object"&&e(jr[Qe]);return Object.assign(D,jr),D},_=Dr({});return _.newInstance=()=>Dr({}),R6=_,_.HighlightJS=_,_.default=_,R6}var Hde=Yde();const SM=D0(Hde);function Pde(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",s="(?!struct)("+i+"|"+r.optional(o)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={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})"/})]},u={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(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:r.optional(o)+e.IDENT_RE,relevance:0},h=r.optional(o)+e.IDENT_RE+"\\s*\\(",p=["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"],f=["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"],v=["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"],w={type:f,keyword:p,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:m},x={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},k=[x,c,a,n,e.C_BLOCK_COMMENT_MODE,u,l],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:k.concat([{begin:/\(/,end:/\)/,keywords:w,contains:k.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+s+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:w,relevance:0},{begin:h,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,u,a,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(R,O,x,k,[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:w,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Zde(e){const r={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=Pde(e),i=n.keywords;return i.type=[...i.type,...r.type],i.literal=[...i.literal,...r.literal],i.built_in=[...i.built_in,...r.built_in],i._hints=r._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function $de(e){const r=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:r.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},s=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},l={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,o]};o.contains.push(l);const u={match:/\\"/},c={className:"string",begin:/'/,end:/'/},d={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${p.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},v=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],w=["true","false"],x={match:/(\/[a-z._-]+)+/},k=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],R=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],O=["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"],P=["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:v,literal:w,built_in:[...k,...R,"set","shopt",...O,...P]},contains:[f,e.SHEBANG(),m,h,s,a,x,l,u,c,d,n]}}function Ude(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",s="("+i+"|"+r.optional(o)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={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})"/})]},u={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(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:r.optional(o)+e.IDENT_RE,relevance:0},h=r.optional(o)+e.IDENT_RE+"\\s*\\(",p={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"},f=[c,a,n,e.C_BLOCK_COMMENT_MODE,u,l],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:p,contains:f.concat([{begin:/\(/,end:/\)/,keywords:p,contains:f.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+s+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:p,relevance:0},{begin:h,returnBegin:!0,contains:[e.inherit(d,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,u,a,{begin:/\(/,end:/\)/,keywords:p,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:p,disableAutodetect:!0,illegal:"</",contains:[].concat(m,v,f,[c,{begin:e.IDENT_RE+"::",keywords:p},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,strings:l,keywords:p}}}function Vde(e){const r=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",s="(?!struct)("+i+"|"+r.optional(o)+"[a-zA-Z_]\\w*"+r.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={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})"/})]},u={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(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},d={className:"title",begin:r.optional(o)+e.IDENT_RE,relevance:0},h=r.optional(o)+e.IDENT_RE+"\\s*\\(",p=["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"],f=["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"],v=["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"],w={type:f,keyword:p,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:m},x={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:r.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,r.lookahead(/(<[^<>]+>|)\s*\(/))},k=[x,c,a,n,e.C_BLOCK_COMMENT_MODE,u,l],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:k.concat([{begin:/\(/,end:/\)/,keywords:w,contains:k.concat(["self"]),relevance:0}]),relevance:0},O={className:"function",begin:"("+s+"[\\*&\\s]+)+"+h,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:w,relevance:0},{begin:h,returnBegin:!0,contains:[d],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,u,a,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,u,a]}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:w,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(R,O,x,k,[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:w,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:w},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function jde(e){const r=["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"],i=["default","false","null","true"],o=["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"],s=["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"],a={keyword:o.concat(s),built_in:r,literal:i},l=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={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},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},h=e.inherit(d,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(p,{illegal:/\n/}),m={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},v={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},w=e.inherit(v,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});p.contains=[v,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],f.contains=[w,m,h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const x={variants:[c,v,m,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},k={begin:"<",end:">",contains:[{beginKeywords:"in out"},l]},R=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",O={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,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"}},x,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},l,k,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[l,k,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:"("+R+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,k],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[x,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},O]}}const Gde=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_-]*/}}),qde=["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"],Wde=["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"],Kde=[...qde,...Wde],Qde=["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(),Jde=["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(),Xde=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ehe=["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 the(e){const r=e.regex,n=Gde(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",s=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",l=[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,i,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Jde.join("|")+")"},{begin:":(:)?("+Xde.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ehe.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:r.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:Qde.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Kde.join("|")+")\\b"}]}}function rhe(e){const r=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:r.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:r.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 nhe(e){const r={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:r,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:r,illegal:/["']/}]}]}}function ihe(e){const r=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:r.concat(n,r.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function ohe(e){const r=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const o={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},l={begin:/\[/,end:/\]/,contains:[i,s,o,a,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,h=r.either(u,c,d),p=r.concat(h,"(\\s*\\.\\s*",h,")*",r.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[i,l,s,o,a,n]}}]}}var eh="[0-9](_*[0-9])*",lg=`\\.(${eh})`,ug="[0-9a-fA-F](_*[0-9a-fA-F])*",Nw={className:"number",variants:[{begin:`(\\b(${eh})((${lg})|\\.)?|(${lg}))[eE][+-]?(${eh})[fFdD]?\\b`},{begin:`\\b(${eh})((${lg})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${lg})[fFdD]?\\b`},{begin:`\\b(${eh})[fFdD]\\b`},{begin:`\\b0[xX]((${ug})\\.?|(${ug})?\\.(${ug}))[pP][+-]?(${eh})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ug})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function DM(e,r,n){return n===-1?"":e.replace(r,i=>DM(e,r,n-1))}function she(e){const r=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=n+DM("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),o={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"]},s={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},a={className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:o,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:[r.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:o,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:o,relevance:0,contains:[s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Nw,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Nw,s]}}const Fw="[A-Za-z$_][0-9A-Za-z$_]*",ahe=["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"],lhe=["true","false","null","undefined","NaN","Infinity"],xM=["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"],kM=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],CM=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],uhe=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],che=[].concat(CM,xM,kM);function dhe(e){const r=e.regex,n=(Me,{after:Ve})=>{const it="</"+Me[0].slice(1);return Me.input.indexOf(it,Ve)!==-1},i=Fw,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Me,Ve)=>{const it=Me[0].length+Me.index,ct=Me.input[it];if(ct==="<"||ct===","){Ve.ignoreMatch();return}ct===">"&&(n(Me,{after:it})||Ve.ignoreMatch());let Ct;const Ye=Me.input.substring(it);if(Ct=Ye.match(/^\s*=/)){Ve.ignoreMatch();return}if((Ct=Ye.match(/^\s+extends\s+/))&&Ct.index===0){Ve.ignoreMatch();return}}},l={$pattern:Fw,keyword:ahe,literal:lhe,built_in:che,"variable.language":uhe},u="[0-9](_?[0-9])*",c=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},x={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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,m,v,w,{match:/\$\d+/},h];p.contains=k.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(k)});const R=[].concat(x,p.contains),O=R.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(R)}]),P={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:O},V={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,r.concat(i,"(",r.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},W={relevance:0,match:r.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:{_:[...xM,...kM]}},ie={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ue={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[P],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(Me){return r.concat("(?!",Me.join("|"),")")}const he={match:r.concat(/\b/,ne([...CM,"super","import"].map(Me=>`${Me}\\s*\\(`)),i,r.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:r.concat(/\./,r.lookahead(r.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ee={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},P]},ge="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Oe={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(ge)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[P]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:W},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ie,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,m,v,w,x,{match:/\$\d+/},h,W,{scope:"attr",match:i+r.lookahead(":"),relevance:0},Oe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:ge,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:l,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},ue,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[P,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[P]},he,I,V,Ee,{match:/\$[(.]/}]}}function hhe(e){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],o={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[r,n,e.QUOTE_STRING_MODE,o,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var th="[0-9](_*[0-9])*",cg=`\\.(${th})`,dg="[0-9a-fA-F](_*[0-9a-fA-F])*",phe={className:"number",variants:[{begin:`(\\b(${th})((${cg})|\\.)?|(${cg}))[eE][+-]?(${th})[fFdD]?\\b`},{begin:`\\b(${th})((${cg})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${cg})[fFdD]?\\b`},{begin:`\\b(${th})[fFdD]\\b`},{begin:`\\b0[xX]((${dg})\\.?|(${dg})?\\.(${dg}))[pP][+-]?(${th})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${dg})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function fhe(e){const r={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+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,o]}]};o.contains.push(a);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"string"}),"self"]}]},c=phe,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=h;return p.variants[1].contains=[h],h.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:r,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,i,l,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:r,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:r,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,l,u,a,e.C_NUMBER_MODE]},d]},{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},l,u]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},c]}}const mhe=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_-]*/}}),ghe=["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"],yhe=["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"],The=[...ghe,...yhe],bhe=["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(),_M=["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(),NM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),vhe=["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(),Ahe=_M.concat(NM).sort().reverse();function Ehe(e){const r=mhe(e),n=Ahe,i="and or not only",o="[\\w-]+",s="("+o+"|@\\{"+o+"\\})",a=[],l=[],u=function(R){return{className:"string",begin:"~?"+R+".*?"+R}},c=function(R,O,P){return{className:R,begin:O,relevance:P}},d={$pattern:/[a-z-]+/,keyword:i,attribute:bhe.join(" ")},h={begin:"\\(",end:"\\)",contains:l,keywords:d,relevance:0};l.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u("'"),u('"'),r.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r.HEXCOLOR,h,c("variable","@@?"+o,10),c("variable","@\\{"+o+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},r.IMPORTANT,{beginKeywords:"and not"},r.FUNCTION_DISPATCH);const p=l.concat({begin:/\{/,end:/\}/,contains:a}),f={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(l)},m={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+vhe.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:l}}]},v={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:l,relevance:0}},w={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:p}},x={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,c("keyword","all\\b"),c("variable","@\\{"+o+"\\}"),{begin:"\\b("+The.join("|")+")\\b",className:"selector-tag"},r.CSS_NUMBER_MODE,c("selector-tag",s,0),c("selector-id","#"+s),c("selector-class","\\."+s,0),c("selector-tag","&",0),r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+_M.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+NM.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},r.FUNCTION_DISPATCH]},k={begin:o+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[x]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,v,w,k,m,x,f,r.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:a}}function whe(e){const r="\\[=*\\[",n="\\]=*\\]",i={begin:r,end:n,contains:["self"]},o=[e.COMMENT("--(?!"+r+")","$"),e.COMMENT("--"+r,n,{contains:[i],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:o.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:o}].concat(o)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:r,end:n,contains:[i],relevance:5}])}}function She(e){const r={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]},i={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:[r,n]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};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,r,n,i,o,s,a]}}function Dhe(e){const r=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},o={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}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:r.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),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}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},h=e.inherit(c,{contains:[]}),p=e.inherit(d,{contains:[]});c.contains.push(p),d.contains.push(h);let f=[n,u];return[c,d,h,p].forEach(m=>{m.contains=m.contains.concat(f)}),f=f.concat(c,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},n,s,c,d,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},o,i,u,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function xhe(e){const r={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_]*/,i={"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"]},o={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:i,illegal:"</",contains:[r,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:"("+o.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:o,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function khe(e){const r=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"],i=/[dualxmsipngr]{0,12}/,o={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},a={begin:/->\{/,end:/\}/},l={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:r.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[l]},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},d=[e.BACKSLASH_ESCAPE,s,u],h=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(v,w,x="\\1")=>{const k=x==="\\1"?x:r.concat(x,w);return r.concat(r.concat("(?:",v,")"),w,/(?:\\.|[^\\\/])*?/,k,/(?:\\.|[^\\\/])*?/,x,i)},f=(v,w,x)=>r.concat(r.concat("(?:",v,")"),w,/(?:\\.|[^\\\/])*?/,x,i),m=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:d,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:p("s|tr|y",r.either(...h,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",r.either(...h,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,l,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=m,a.contains=m,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:m}}function Che(e){const r=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=r.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),o=r.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s=r.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+i},l={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),h={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(re,Ee)=>{Ee.data._beginMatch=re[1]||re[2]},"on:end":(re,Ee)=>{Ee.data._beginMatch!==re[1]&&Ee.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ ]`,m={scope:"string",variants:[d,c,h,p]},v={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},w=["false","null","true"],x=["__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"],k=["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"],R={keyword:x,literal:(re=>{const Ee=[];return re.forEach(ge=>{Ee.push(ge),ge.toLowerCase()===ge?Ee.push(ge.toUpperCase()):Ee.push(ge.toLowerCase())}),Ee})(w),built_in:k},O=re=>re.map(Ee=>Ee.replace(/\|\d+$/,"")),P={variants:[{match:[/new/,r.concat(f,"+"),r.concat("(?!",O(k).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},V=r.concat(i,"\\b(?!\\()"),W={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),V],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,r.concat(/::/,r.lookahead(/(?!class\b)/)),V],scope:{1:"title.class",3:"variable.constant"}},{match:[o,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ie={scope:"attr",match:r.concat(i,r.lookahead(":"),r.lookahead(/(?!::)/))},ue={relevance:0,begin:/\(/,end:/\)/,keywords:R,contains:[ie,a,W,e.C_BLOCK_COMMENT_MODE,m,v,P]},I={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",O(x).join("\\b|"),"|",O(k).join("\\b|"),"\\b)"),i,r.concat(f,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ue]};ue.contains.push(I);const ne=[ie,W,e.C_BLOCK_COMMENT_MODE,m,v,P],he={begin:r.concat(/#\[\s*\\?/,r.either(o,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:w,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:w,keyword:["new","array"]},contains:["self",...ne]},...ne,{scope:"meta",variants:[{match:o},{match:s}]}]};return{case_insensitive:!1,keywords:R,contains:[he,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}]}},l,{scope:"variable.language",match:/\$this\b/},a,I,W,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},P,{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:R,contains:["self",he,a,W,e.C_BLOCK_COMMENT_MODE,m,v]}]},{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,v]}}function _he(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 Nhe(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Fhe(e){const r=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["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"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,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"]},s={className:"meta",begin:/^(>>>|\.\.\.) /},a={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},l={begin:/\{\{/,relevance:0},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,s,l,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,l,a]},{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,l,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,l,a]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",d=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,h=`\\b|${i.join("|")}`,p={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${h})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${c})[jJ](?=${h})`}]},f={className:"comment",begin:r.lookahead(/# type:/),end:/$/,keywords:o,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:o,contains:["self",s,p,u,e.HASH_COMMENT_MODE]}]};return a.contains=[u,p,s],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[s,p,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},u,f,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:[p,m,u]}]}}function Ohe(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Mhe(e){const r=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=r.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]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=r.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:r.lookahead(r.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:[o,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[s,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Rhe(e){const r=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=r.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=r.concat(i,/(::\w+)*/),s={"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"]},a={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[a]}),e.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={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:r.concat(/<<[-~]?'?/,r.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]})]}]},h="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",f={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${p}))?([eE][+-]?(${p})|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:s}]},v=[d,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,o],scope:{2:"title.class"},keywords:s},{relevance:0,match:[o,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,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:[d,{begin:n}],relevance:0},f,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{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(l,u),relevance:0}].concat(l,u);c.contains=v,m.contains=v;const w=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta.prompt",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",keywords:s,contains:v}}];return u.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(w).concat(u).concat(v)}}function Bhe(e){const r=e.regex,n=/(r#)?/,i=r.concat(n,e.UNDERSCORE_IDENT_RE),o=r.concat(n,e.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:r.concat(/\b/,/(?!let|for|while|if|else|match\b)/,o,r.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",l=["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"],u=["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!"],d=["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:d,keyword:l,literal:u,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_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:d}},{className:"punctuation",begin:"->"},s]}}const Ihe=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_-]*/}}),Lhe=["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"],zhe=["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"],Yhe=[...Lhe,...zhe],Hhe=["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(),Phe=["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(),Zhe=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),$he=["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 Uhe(e){const r=Ihe(e),n=Zhe,i=Phe,o="@[a-z-]+",s="and or not only",a={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,r.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+Yhe.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[r.CSS_NUMBER_MODE]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$he.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:[r.BLOCK_COMMENT,a,r.HEXCOLOR,r.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r.IMPORTANT,r.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:Hhe.join(" ")},contains:[{begin:o,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r.HEXCOLOR,r.CSS_NUMBER_MODE]},r.FUNCTION_DISPATCH]}}function Vhe(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function jhe(e){const r=e.regex,n=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},o={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],l=["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"],u=["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"],d=["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"],h=["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"],p=["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"],f=d,m=[...c,...u].filter(P=>!d.includes(P)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},x={match:r.concat(/\b/,r.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function k(P){return r.concat(/\b/,r.either(...P.map(V=>V.replace(/\s+/,"\\s+"))),/\b/)}const R={scope:"keyword",match:k(p),relevance:0};function O(P,{exceptions:V,when:W}={}){const ie=W;return V=V||[],P.map(ue=>ue.match(/\|\d+$/)||V.includes(ue)?ue:ie(ue)?`${ue}|0`:ue)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:O(m,{when:P=>P.length<3}),literal:s,type:l,built_in:h},contains:[{scope:"type",match:k(a)},R,x,v,i,o,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,w]}}function FM(e){return e?typeof e=="string"?e:e.source:null}function Yp(e){return dn("(?=",e,")")}function dn(...e){return e.map(r=>FM(r)).join("")}function Ghe(e){const r=e[e.length-1];return typeof r=="object"&&r.constructor===Object?(e.splice(e.length-1,1),r):{}}function Co(...e){return"("+(Ghe(e).capture?"":"?:")+e.map(r=>FM(r)).join("|")+")"}const B7=e=>dn(/\b/,e,/\w$/.test(e)?/\b/:/\B/),qhe=["Protocol","Type"].map(B7),Ow=["init","self"].map(B7),Whe=["Any","Self"],B6=["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"],Mw=["false","nil","true"],Khe=["assignment","associativity","higherThan","left","lowerThan","none","right"],Qhe=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Rw=["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"],OM=Co(/[/=\-+!*%<>&|^~?]/,/[\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]/),MM=Co(OM,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),I6=dn(OM,MM,"*"),RM=Co(/[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]/),g4=Co(RM,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),al=dn(RM,g4,"*"),hg=dn(/[A-Z]/,g4,"*"),Jhe=["attached","autoclosure",dn(/convention\(/,Co("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",dn(/objc\(/,al,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Xhe=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function epe(e){const r={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,n],o={match:[/\./,Co(...qhe,...Ow)],className:{2:"keyword"}},s={match:dn(/\./,Co(...B6)),relevance:0},a=B6.filter(Ft=>typeof Ft=="string").concat(["_|0"]),l=B6.filter(Ft=>typeof Ft!="string").concat(Whe).map(B7),u={variants:[{className:"keyword",match:Co(...l,...Ow)}]},c={$pattern:Co(/\b\w+/,/#\w+/),keyword:a.concat(Qhe),literal:Mw},d=[o,s,u],h={match:dn(/\./,Co(...Rw)),relevance:0},p={className:"built_in",match:dn(/\b/,Co(...Rw),/(?=\()/)},f=[h,p],m={match:/->/,relevance:0},v={className:"operator",relevance:0,variants:[{match:I6},{match:`\\.(\\.|${MM})+`}]},w=[m,v],x="([0-9]_*)+",k="([0-9a-fA-F]_*)+",R={className:"number",relevance:0,variants:[{match:`\\b(${x})(\\.(${x}))?([eE][+-]?(${x}))?\\b`},{match:`\\b0x(${k})(\\.(${k}))?([pP][+-]?(${x}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},O=(Ft="")=>({className:"subst",variants:[{match:dn(/\\/,Ft,/[0\\tnr"']/)},{match:dn(/\\/,Ft,/u\{[0-9a-fA-F]{1,8}\}/)}]}),P=(Ft="")=>({className:"subst",match:dn(/\\/,Ft,/[\t ]*(?:[\r\n]|\r\n)/)}),V=(Ft="")=>({className:"subst",label:"interpol",begin:dn(/\\/,Ft,/\(/),end:/\)/}),W=(Ft="")=>({begin:dn(Ft,/"""/),end:dn(/"""/,Ft),contains:[O(Ft),P(Ft),V(Ft)]}),ie=(Ft="")=>({begin:dn(Ft,/"/),end:dn(/"/,Ft),contains:[O(Ft),V(Ft)]}),ue={className:"string",variants:[W(),W("#"),W("##"),W("###"),ie(),ie("#"),ie("##"),ie("###")]},I=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],ne={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:I},he=Ft=>{const ee=dn(Ft,/\//),ye=dn(/\//,Ft);return{begin:ee,end:ye,contains:[...I,{scope:"comment",begin:`#(?!.*${ye})`,end:/$/}]}},re={scope:"regexp",variants:[he("###"),he("##"),he("#"),ne]},Ee={match:dn(/`/,al,/`/)},ge={className:"variable",match:/\$\d+/},Oe={className:"variable",match:`\\$${g4}+`},Me=[Ee,ge,Oe],Ve={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Xhe,contains:[...w,R,ue]}]}},it={scope:"keyword",match:dn(/@/,Co(...Jhe),Yp(Co(/\(/,/\s+/)))},ct={scope:"meta",match:dn(/@/,al)},Ct=[Ve,it,ct],Ye={match:Yp(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:dn(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,g4,"+")},{className:"type",match:hg,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:dn(/\s+&\s+/,Yp(hg)),relevance:0}]},Kt={begin:/</,end:/>/,keywords:c,contains:[...i,...d,...Ct,m,Ye]};Ye.contains.push(Kt);const Vt={match:dn(al,/\s*:/),keywords:"_|0",relevance:0},Ot={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",Vt,...i,re,...d,...f,...w,R,ue,...Me,...Ct,Ye]},jt={begin:/</,end:/>/,keywords:"repeat each",contains:[...i,Ye]},_t={begin:Co(Yp(dn(al,/\s*:/)),Yp(dn(al,/\s+/,al,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:al}]},Fr={begin:/\(/,end:/\)/,keywords:c,contains:[_t,...i,...d,...w,R,ue,...Ct,Ye,Ot],endsParent:!0,illegal:/["']/},jr={match:[/(func|macro)/,/\s+/,Co(Ee.match,al,I6)],className:{1:"keyword",3:"title.function"},contains:[jt,Fr,r],illegal:[/\[/,/%/]},pt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[jt,Fr,r],illegal:/\[|%/},nr={match:[/operator/,/\s+/,I6],className:{1:"keyword",3:"title"}},Yt={begin:[/precedencegroup/,/\s+/,hg],className:{1:"keyword",3:"title"},contains:[Ye],keywords:[...Khe,...Mw],end:/}/},vr={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Gr={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},An={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,al,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[jt,...d,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:hg},...d],relevance:0}]};for(const Ft of ue.variants){const ee=Ft.contains.find(se=>se.label==="interpol");ee.keywords=c;const ye=[...d,...f,...w,R,ue,...Me];ee.contains=[...ye,{begin:/\(/,end:/\)/,contains:["self",...ye]}]}return{name:"Swift",keywords:c,contains:[...i,jr,pt,vr,Gr,An,nr,Yt,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},re,...d,...f,...w,R,ue,...Me,...Ct,Ye,Ot]}}const y4="[A-Za-z$_][0-9A-Za-z$_]*",BM=["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"],IM=["true","false","null","undefined","NaN","Infinity"],LM=["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"],zM=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],YM=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],HM=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],PM=[].concat(YM,LM,zM);function tpe(e){const r=e.regex,n=(Me,{after:Ve})=>{const it="</"+Me[0].slice(1);return Me.input.indexOf(it,Ve)!==-1},i=y4,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Me,Ve)=>{const it=Me[0].length+Me.index,ct=Me.input[it];if(ct==="<"||ct===","){Ve.ignoreMatch();return}ct===">"&&(n(Me,{after:it})||Ve.ignoreMatch());let Ct;const Ye=Me.input.substring(it);if(Ct=Ye.match(/^\s*=/)){Ve.ignoreMatch();return}if((Ct=Ye.match(/^\s+extends\s+/))&&Ct.index===0){Ve.ignoreMatch();return}}},l={$pattern:y4,keyword:BM,literal:IM,built_in:PM,"variable.language":HM},u="[0-9](_?[0-9])*",c=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},x={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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},k=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,m,v,w,{match:/\$\d+/},h];p.contains=k.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(k)});const R=[].concat(x,p.contains),O=R.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(R)}]),P={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:O},V={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,r.concat(i,"(",r.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},W={relevance:0,match:r.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:{_:[...LM,...zM]}},ie={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ue={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[P],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ne(Me){return r.concat("(?!",Me.join("|"),")")}const he={match:r.concat(/\b/,ne([...YM,"super","import"].map(Me=>`${Me}\\s*\\(`)),i,r.lookahead(/\s*\(/)),className:"title.function",relevance:0},re={begin:r.concat(/\./,r.lookahead(r.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ee={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},P]},ge="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Oe={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(ge)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[P]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:W},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ie,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,m,v,w,x,{match:/\$\d+/},h,W,{scope:"attr",match:i+r.lookahead(":"),relevance:0},Oe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:ge,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:l,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},ue,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[P,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},re,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[P]},he,I,V,Ee,{match:/\$[(.]/}]}}function rpe(e){const r=e.regex,n=tpe(e),i=y4,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[n.exports.CLASS_REFERENCE]},l={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},u=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:y4,keyword:BM.concat(u),literal:IM,built_in:PM.concat(o),"variable.language":HM},d={className:"meta",begin:"@"+i},h=(v,w,x)=>{const k=v.contains.findIndex(R=>R.label===w);if(k===-1)throw new Error("can not find mode to replace");v.contains.splice(k,1,x)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(d);const p=n.contains.find(v=>v.scope==="attr"),f=Object.assign({},p,{match:r.concat(i,r.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,p,f]),n.contains=n.contains.concat([d,s,a,f]),h(n,"shebang",e.SHEBANG()),h(n,"use_strict",l);const m=n.contains.find(v=>v.label==="func.def");return m.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function npe(e){const r=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},o=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,l=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:r.concat(/# */,r.either(s,o),/ *#/)},{begin:r.concat(/# */,l,/ *#/)},{begin:r.concat(/# */,a,/ *#/)},{begin:r.concat(/# */,r.either(s,o),/ +/,r.either(a,l),/ *#/)}]},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])|[%&])?/}]},d={className:"label",begin:/^\w+:/},h=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=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,i,u,c,d,h,p,{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:[p]}]}}function ipe(e){e.regex;const r=e.COMMENT(/\(;/,/;\)/);r.contains.push("self");const n=e.COMMENT(/;;/,/$/),i=["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"],o={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},l={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/},u={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:i},contains:[n,r,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,a,o,e.QUOTE_STRING_MODE,u,c,l]}}function ope(e){const r=e.regex,n=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(s,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{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:[s,u,l,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,u,l]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{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:r.concat(/</,r.lookahead(r.concat(n,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function spe(e){const r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},o={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,o]},l=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),u={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:r,relevance:0},d={begin:/\{/,end:/\}/,contains:[c],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[c],illegal:"\\n",relevance:0},p=[i,{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:r,keywords:{literal:r}},u,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},d,h,s,a],f=[...p];return f.pop(),f.push(l),c.contains=f,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:p}}const ape={arduino:Zde,bash:$de,c:Ude,cpp:Vde,csharp:jde,css:the,diff:rhe,go:nhe,graphql:ihe,ini:ohe,java:she,javascript:dhe,json:hhe,kotlin:fhe,less:Ehe,lua:whe,makefile:She,markdown:Dhe,objectivec:xhe,perl:khe,php:Che,"php-template":_he,plaintext:Nhe,python:Fhe,"python-repl":Ohe,r:Mhe,ruby:Rhe,rust:Bhe,scss:Uhe,shell:Vhe,sql:jhe,swift:epe,typescript:rpe,vbnet:npe,wasm:ipe,xml:ope,yaml:spe},Bw={},lpe="hljs-";function upe(e){const r=SM.newInstance();return e&&s(e),{highlight:n,highlightAuto:i,listLanguages:o,register:s,registerAlias:a,registered:l};function n(u,c,d){const h=d||Bw,p=typeof h.prefix=="string"?h.prefix:lpe;if(!r.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");r.configure({__emitter:cpe,classPrefix:p});const f=r.highlight(c,{ignoreIllegals:!0,language:u});if(f.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:f.errorRaised});const m=f._emitter.root,v=m.data;return v.language=f.language,v.relevance=f.relevance,m}function i(u,c){const d=(c||Bw).subset||o();let h=-1,p=0,f;for(;++h<d.length;){const m=d[h];if(!r.getLanguage(m))continue;const v=n(m,u,c);v.data&&v.data.relevance!==void 0&&v.data.relevance>p&&(p=v.data.relevance,f=v)}return f||{type:"root",children:[],data:{language:void 0,relevance:p}}}function o(){return r.listLanguages()}function s(u,c){if(typeof u=="string")r.registerLanguage(u,c);else{let d;for(d in u)Object.hasOwn(u,d)&&r.registerLanguage(d,u[d])}}function a(u,c){if(typeof u=="string")r.registerAliases(typeof c=="string"?c:[...c],{languageName:u});else{let d;for(d in u)if(Object.hasOwn(u,d)){const h=u[d];r.registerAliases(typeof h=="string"?h:[...h],{languageName:d})}}}function l(u){return!!r.getLanguage(u)}}class cpe{constructor(r){this.options=r,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(r){if(r==="")return;const n=this.stack[this.stack.length-1],i=n.children[n.children.length-1];i&&i.type==="text"?i.value+=r:n.children.push({type:"text",value:r})}startScope(r){this.openNode(String(r))}endScope(){this.closeNode()}__addSublanguage(r,n){const i=this.stack[this.stack.length-1],o=r.root.children;n?i.children.push({type:"element",tagName:"span",properties:{className:[n]},children:o}):i.children.push(...o)}openNode(r){const n=this,i=r.split(".").map(function(a,l){return l?a+"_".repeat(l):n.options.classPrefix+a}),o=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:i},children:[]};o.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}var Iw=e=>Array.from(e.entries()).map(([r,n])=>({clientId:r,...n.user})),Lw=()=>null,dpe=xr.create({name:"collaborationCaret",priority:999,addOptions(){return{provider:null,user:{name:null,color:null},render:e=>{const r=document.createElement("span");r.classList.add("collaboration-carets__caret"),r.setAttribute("style",`border-color: ${e.color}`);const n=document.createElement("div");return n.classList.add("collaboration-carets__label"),n.setAttribute("style",`background-color: ${e.color}`),n.insertBefore(document.createTextNode(e.name),null),r.insertBefore(n,null),r},selectionRender:GN,onUpdate:Lw}},onCreate(){if(this.options.onUpdate!==Lw&&console.warn('[tiptap warn]: DEPRECATED: The "onUpdate" option is deprecated. Please use `editor.storage.collaborationCaret.users` instead. Read more: https://tiptap.dev/api/extensions/collaboration-caret'),!this.options.provider)throw new Error('The "provider" option is required for the CollaborationCaret extension')},addStorage(){return{users:[]}},addCommands(){return{updateUser:e=>()=>(this.options.provider.awareness.setLocalStateField("user",e),!0),user:e=>({editor:r})=>(console.warn('[tiptap warn]: DEPRECATED: The "user" command is deprecated. Please use "updateUser" instead. Read more: https://tiptap.dev/api/extensions/collaboration-caret'),r.commands.updateUser(e))}},addProseMirrorPlugins(){return[MG((this.options.provider.awareness.setLocalStateField("user",this.options.user),this.storage.users=Iw(this.options.provider.awareness.states),this.options.provider.awareness.on("update",()=>{this.storage.users=Iw(this.options.provider.awareness.states)}),this.options.provider.awareness),{cursorBuilder:this.options.render,selectionBuilder:this.options.selectionRender})]}});function hpe(e){setTimeout(()=>{const r=document.getElementById(`collaboration-carets__label__${e}`);r&&(r.classList.add("collaboration-carets__label__active"),setTimeout(()=>{r?.classList.remove("collaboration-carets__label__active")},50))},50)}function ppe(){return Math.floor(Date.now()/1e3)}function fpe(e,r){const n=document.createElement("span");n.classList.add("collaboration-carets__caret"),n.setAttribute("style",`border-color: ${e.color}`);const i=document.createElement("div");i.id=`collaboration-carets__label__${r}`,i.classList.add("collaboration-carets__label"),i.setAttribute("style",`background-color: ${e.color}`);const o=document.createTextNode(e.name||lt("text","Guest"));return i.insertBefore(o,null),n.insertBefore(i,null),n}const j9e=dpe.extend({addOptions(){return{...this.parent?.(),render:fpe}},onCreate(){this.options.provider.awareness.on("change",({added:e,updated:r},n)=>{if(n!=="local")for(const i of[...e,...r])i!==this.options.provider.awareness.clientID&&hpe(i)})},onTransaction({transaction:e,editor:r}){const n=e.getMeta("addToHistory")??!0,i=e.getMeta("pointer");e.docChanged&&n&&!i&&r.commands.updateUser({...this.options.provider.awareness.getLocalState().user,lastUpdate:ppe()})}});function mpe(e){var r;const{char:n,allowSpaces:i,allowToIncludeChar:o,allowedPrefixes:s,startOfLine:a,$position:l}=e,u=i&&!o,c=b$(n),d=new RegExp(`\\s${c}$`),h=a?"^":"",p=o?"":c,f=u?new RegExp(`${h}${c}.*?(?=\\s${p}|$)`,"gm"):new RegExp(`${h}(?:^)?${c}[^\\s${p}]*`,"gm"),m=((r=l.nodeBefore)==null?void 0:r.isText)&&l.nodeBefore.text;if(!m)return null;const v=l.pos-m.length,w=Array.from(m.matchAll(f)).pop();if(!w||w.input===void 0||w.index===void 0)return null;const x=w.input.slice(Math.max(0,w.index-1),w.index),k=new RegExp(`^[${s?.join("")}\0]?$`).test(x);if(s!==null&&!k)return null;const R=v+w.index;let O=R+w[0].length;return u&&d.test(m.slice(O-1,O+1))&&(w[0]+=" ",O+=1),R<l.pos&&O>=l.pos?{range:{from:R,to:O},query:w[0].slice(n.length),text:w[0]}:null}var gpe=new hr("suggestion");function I7({pluginKey:e=gpe,editor:r,char:n="@",allowSpaces:i=!1,allowToIncludeChar:o=!1,allowedPrefixes:s=[" "],startOfLine:a=!1,decorationTag:l="span",decorationClass:u="suggestion",decorationContent:c="",decorationEmptyClass:d="is-empty",command:h=()=>null,items:p=()=>[],render:f=()=>({}),allow:m=()=>!0,findSuggestionMatch:v=mpe,shouldShow:w}){let x;const k=f?.(),R=()=>{const W=r.state.selection.$anchor.pos,ie=r.view.coordsAtPos(W),{top:ue,right:I,bottom:ne,left:he}=ie;try{return new DOMRect(he,ue,I-he,ne-ue)}catch{return null}},O=(W,ie)=>ie?()=>{const ue=e.getState(r.state),I=ue?.decorationId;return W.dom.querySelector(`[data-decoration-id="${I}"]`)?.getBoundingClientRect()||null}:R;function P(W,ie){var ue;try{const ne=e.getState(W.state),he=ne?.decorationId?W.dom.querySelector(`[data-decoration-id="${ne.decorationId}"]`):null,re={editor:r,range:ne?.range||{from:0,to:0},query:ne?.query||null,text:ne?.text||null,items:[],command:Ee=>h({editor:r,range:ne?.range||{from:0,to:0},props:Ee}),decorationNode:he,clientRect:O(W,he)};(ue=k?.onExit)==null||ue.call(k,re)}catch{}const I=W.state.tr.setMeta(ie,{exit:!0});W.dispatch(I)}const V=new lr({key:e,view(){return{update:async(W,ie)=>{var ue,I,ne,he,re,Ee,ge;const Oe=(ue=this.key)==null?void 0:ue.getState(ie),Me=(I=this.key)==null?void 0:I.getState(W.state),Ve=Oe.active&&Me.active&&Oe.range.from!==Me.range.from,it=!Oe.active&&Me.active,ct=Oe.active&&!Me.active,Ct=!it&&!ct&&Oe.query!==Me.query,Ye=it||Ve&&Ct,Kt=Ct||Ve,Vt=ct||Ve&&Ct;if(!Ye&&!Kt&&!Vt)return;const Ot=Vt&&!Ye?Oe:Me,jt=W.dom.querySelector(`[data-decoration-id="${Ot.decorationId}"]`);x={editor:r,range:Ot.range,query:Ot.query,text:Ot.text,items:[],command:_t=>h({editor:r,range:Ot.range,props:_t}),decorationNode:jt,clientRect:O(W,jt)},Ye&&((ne=k?.onBeforeStart)==null||ne.call(k,x)),Kt&&((he=k?.onBeforeUpdate)==null||he.call(k,x)),(Kt||Ye)&&(x.items=await p({editor:r,query:Ot.query})),Vt&&((re=k?.onExit)==null||re.call(k,x)),Kt&&((Ee=k?.onUpdate)==null||Ee.call(k,x)),Ye&&((ge=k?.onStart)==null||ge.call(k,x))},destroy:()=>{var W;x&&((W=k?.onExit)==null||W.call(k,x))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(W,ie,ue,I){const{isEditable:ne}=r,{composing:he}=r.view,{selection:re}=W,{empty:Ee,from:ge}=re,Oe={...ie},Me=W.getMeta(e);if(Me&&Me.exit)return Oe.active=!1,Oe.decorationId=null,Oe.range={from:0,to:0},Oe.query=null,Oe.text=null,Oe;if(Oe.composing=he,ne&&(Ee||r.view.composing)){(ge<ie.range.from||ge>ie.range.to)&&!he&&!ie.composing&&(Oe.active=!1);const Ve=v({char:n,allowSpaces:i,allowToIncludeChar:o,allowedPrefixes:s,startOfLine:a,$position:re.$from}),it=`id_${Math.floor(Math.random()*4294967295)}`;Ve&&m({editor:r,state:I,range:Ve.range,isActive:ie.active})&&(!w||w({editor:r,range:Ve.range,query:Ve.query,text:Ve.text,transaction:W}))?(Oe.active=!0,Oe.decorationId=ie.decorationId?ie.decorationId:it,Oe.range=Ve.range,Oe.query=Ve.query,Oe.text=Ve.text):Oe.active=!1}else Oe.active=!1;return Oe.active||(Oe.decorationId=null,Oe.range={from:0,to:0},Oe.query=null,Oe.text=null),Oe}},props:{handleKeyDown(W,ie){var ue,I,ne,he;const{active:re,range:Ee}=V.getState(W.state);if(!re)return!1;if(ie.key==="Escape"||ie.key==="Esc"){const ge=V.getState(W.state),Oe=(ue=x?.decorationNode)!=null?ue:null,Me=Oe??(ge?.decorationId?W.dom.querySelector(`[data-decoration-id="${ge.decorationId}"]`):null);if((I=k?.onKeyDown)!=null&&I.call(k,{view:W,event:ie,range:ge.range}))return!0;const Ve={editor:r,range:ge.range,query:ge.query,text:ge.text,items:[],command:it=>h({editor:r,range:ge.range,props:it}),decorationNode:Me,clientRect:Me?()=>Me.getBoundingClientRect()||null:null};return(ne=k?.onExit)==null||ne.call(k,Ve),P(W,e),!0}return((he=k?.onKeyDown)==null?void 0:he.call(k,{view:W,event:ie,range:Ee}))||!1},decorations(W){const{active:ie,range:ue,decorationId:I,query:ne}=V.getState(W);if(!ie)return null;const he=!ne?.length,re=[u];return he&&re.push(d),Nr.create(W.doc,[kn.inline(ue.from,ue.to,{nodeName:l,class:re.join(" "),"data-decoration-id":I,"data-decoration-content":c})])}}});return V}var ype=I7;const Tpe=new hr("emoji"),bpe=tn.create({name:"emoji",addOptions(){return{HTMLAttributes:{},suggestion:{char:":",allowedPrefixes:[" "],pluginKey:Tpe}}},content:"text*",addCommands(){return{emoji:e=>({commands:r})=>r.insertContent(e.native+" ")}},addProseMirrorPlugins(){return[ype({editor:this.editor,...this.options.suggestion})]}});let L6=!1;const wh=(e,r)=>e.extensionManager.extensions.some(n=>n.name===r),vpe=e=>wh(e,"bulletList")||wh(e,"orderedList")||wh(e,"taskList"),pg=({editor:e})=>{const r=window._nc_focus_trap??[],n=r[r.length-1];vpe(e)&&e.can().sinkListItem("listItem")||wh(e,"table")&&e.can().goToNextCell()||wh(e,"table")&&e.can().goToPreviousCell()||wh(e,"codeBlock")&&e.isActive("codeBlock")?(n?.pause(),L6=!0):L6&&(L6=!1,n?.unpause())},Ape=({editor:e})=>{const r=window._nc_focus_trap??[];r[r.length-1]?.unpause()},G9e=xr.create({name:"focustrap",onFocus:pg,onBlur:Ape,onSelectionUpdate:pg,onTransaction:pg,onUpdate:pg}),Epe=ec.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((r,n,i,o)=>{r.marks.findIndex(s=>s.type.name===this.name)!==-1&&(r.type.name!=="text"||r.text.length!==1)&&e.removeMark(n,n+r.nodeSize,this.type)}),e.docChanged&&(e.setMeta("addToHistory",!1),e.setMeta("preventUpdate",!0),this.editor.view.dispatch(e))}});function wpe({editor:e,overrideSuggestionOptions:r,extensionName:n,char:i="@"}){const o=new hr;return{editor:e,char:i,pluginKey:o,command:({editor:s,range:a,props:l})=>{var u,c,d;(u=s.view.state.selection.$to.nodeAfter?.text)!=null&&u.startsWith(" ")&&(a.to+=1),s.chain().focus().insertContentAt(a,[{type:n,attrs:{...l,mentionSuggestionChar:i}},{type:"text",text:" "}]).run(),(d=(c=s.view.dom.ownerDocument.defaultView)==null?void 0:c.getSelection())==null||d.collapseToEnd()},allow:({state:s,range:a})=>{const l=s.doc.resolve(a.from),u=s.schema.nodes[n];return!!l.parent.type.contentMatch.matchType(u)},...r}}function ZM(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(r=>wpe({editor:e.editor,overrideSuggestionOptions:r,extensionName:e.name,char:r.char}))}function zw(e,r){const n=ZM(e);return n.find(o=>o.char===r)||(n.length?n[0]:null)}var Spe=tn.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:e,suggestion:r}){var n,i;return`${(n=r?.char)!=null?n:"@"}${(i=e.attrs.label)!=null?i:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:r,suggestion:n}){var i,o;return["span",gr(this.HTMLAttributes,e.HTMLAttributes),`${(i=n?.char)!=null?i:"@"}${(o=r.attrs.label)!=null?o:r.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:r}){const n=zw(this,e.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",gr({"data-type":this.name},this.options.HTMLAttributes,r),this.options.renderLabel({options:this.options,node:e,suggestion:n})];const i={...this.options};i.HTMLAttributes=gr({"data-type":this.name},this.options.HTMLAttributes,r);const o=this.options.renderHTML({options:i,node:e,suggestion:n});return typeof o=="string"?["span",gr({"data-type":this.name},this.options.HTMLAttributes,r),o]:o},...v_({nodeName:"mention",name:"@",selfClosing:!0,allowedAttributes:["id","label",{name:"mentionSuggestionChar",skipIfDefault:"@"}],parseAttributes:e=>{const r={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let i=n.exec(e);for(;i!==null;){const[,o,s,a]=i,l=s??a;r[o==="char"?"mentionSuggestionChar":o]=l,i=n.exec(e)}return r},serializeAttributes:e=>Object.entries(e).filter(([,r])=>r!=null).map(([r,n])=>`${r==="mentionSuggestionChar"?"char":r}="${n}"`).join(" ")}),renderText({node:e}){const r={options:this.options,node:e,suggestion:zw(this,e.attrs.mentionSuggestionChar)};return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(r)):this.options.renderText(r)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:r})=>{let n=!1;const{selection:i}=r,{empty:o,anchor:s}=i;if(!o)return!1;let a=new c0,l=0;return r.doc.nodesBetween(s-1,s,(u,c)=>{if(u.type.name===this.name)return n=!0,a=u,l=c,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?"":a.attrs.mentionSuggestionChar,l,l+a.nodeSize),n})}},addProseMirrorPlugins(){return ZM(this).map(I7)}}),Dpe=Spe,Yw={},Hp={},Pp={},fg={},Hw={exports:{}},z6={exports:{}},Pw;function xpe(){if(Pw)return z6.exports;Pw=1;var e={};const r=Object.freeze({}),n=Array.isArray;function i(y){return y==null}function o(y){return y!=null}function s(y){return y===!0}function a(y){return typeof y=="string"||typeof y=="number"||typeof y=="symbol"||typeof y=="boolean"}function l(y){return typeof y=="function"}function u(y){return y!==null&&typeof y=="object"}const c=Object.prototype.toString;function d(y){return c.call(y)==="[object Object]"}function h(y){const E=parseFloat(String(y));return E>=0&&Math.floor(E)===E&&isFinite(y)}function p(y){return o(y)&&typeof y.then=="function"&&typeof y.catch=="function"}function f(y){return y==null?"":Array.isArray(y)||d(y)&&y.toString===c?JSON.stringify(y,m,2):String(y)}function m(y,E){return E&&E.__v_isRef?E.value:E}function v(y){const E=parseFloat(y);return isNaN(E)?y:E}function w(y,E){const S=Object.create(null),N=y.split(",");for(let M=0;M<N.length;M++)S[N[M]]=!0;return E?M=>S[M.toLowerCase()]:M=>S[M]}const x=w("key,ref,slot,slot-scope,is");function k(y,E){const S=y.length;if(S){if(E===y[S-1])return void(y.length=S-1);const N=y.indexOf(E);if(N>-1)return y.splice(N,1)}}const R=Object.prototype.hasOwnProperty;function O(y,E){return R.call(y,E)}function P(y){const E=Object.create(null);return function(S){return E[S]||(E[S]=y(S))}}const V=/-(\w)/g,W=P((y=>y.replace(V,((E,S)=>S?S.toUpperCase():"")))),ie=P((y=>y.charAt(0).toUpperCase()+y.slice(1))),ue=/\B([A-Z])/g,I=P((y=>y.replace(ue,"-$1").toLowerCase())),ne=Function.prototype.bind?function(y,E){return y.bind(E)}:function(y,E){function S(N){const M=arguments.length;return M?M>1?y.apply(E,arguments):y.call(E,N):y.call(E)}return S._length=y.length,S};function he(y,E){E=E||0;let S=y.length-E;const N=new Array(S);for(;S--;)N[S]=y[S+E];return N}function re(y,E){for(const S in E)y[S]=E[S];return y}function Ee(y){const E={};for(let S=0;S<y.length;S++)y[S]&&re(E,y[S]);return E}function ge(y,E,S){}const Oe=(y,E,S)=>!1,Me=y=>y;function Ve(y,E){if(y===E)return!0;const S=u(y),N=u(E);if(!S||!N)return!S&&!N&&String(y)===String(E);try{const M=Array.isArray(y),Z=Array.isArray(E);if(M&&Z)return y.length===E.length&&y.every(((q,oe)=>Ve(q,E[oe])));if(y instanceof Date&&E instanceof Date)return y.getTime()===E.getTime();if(M||Z)return!1;{const q=Object.keys(y),oe=Object.keys(E);return q.length===oe.length&&q.every((fe=>Ve(y[fe],E[fe])))}}catch{return!1}}function it(y,E){for(let S=0;S<y.length;S++)if(Ve(y[S],E))return S;return-1}function ct(y){let E=!1;return function(){E||(E=!0,y.apply(this,arguments))}}function Ct(y,E){return y===E?y===0&&1/y!=1/E:y==y||E==E}const Ye="data-server-rendered",Kt=["component","directive","filter"],Vt=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var Ot={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Oe,isReservedAttr:Oe,isUnknownElement:Oe,getTagNamespace:ge,parsePlatformTagName:Me,mustUseProp:Oe,async:!0,_lifecycleHooks:Vt};function jt(y){const E=(y+"").charCodeAt(0);return E===36||E===95}function _t(y,E,S,N){Object.defineProperty(y,E,{value:S,enumerable:!1,writable:!0,configurable:!0})}const Fr=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]`),jr="__proto__"in{},pt=typeof window<"u",nr=pt&&window.navigator.userAgent.toLowerCase(),Yt=nr&&/msie|trident/.test(nr),vr=nr&&nr.indexOf("msie 9.0")>0,Gr=nr&&nr.indexOf("edge/")>0;nr&&nr.indexOf("android");const An=nr&&/iphone|ipad|ipod|ios/.test(nr),Ft=nr&&nr.match(/firefox\/(\d+)/),ee={}.watch;let ye,se=!1;if(pt)try{const y={};Object.defineProperty(y,"passive",{get(){se=!0}}),window.addEventListener("test-passive",null,y)}catch{}const Pe=()=>(ye===void 0&&(ye=!pt&&typeof i0<"u"&&i0.process&&e.VUE_ENV==="server"),ye);function dt(y){return typeof y=="function"&&/native code/.test(y.toString())}const ut=typeof Symbol<"u"&&dt(Symbol)&&typeof Reflect<"u"&&dt(Reflect.ownKeys);let Be;Be=typeof Set<"u"&&dt(Set)?Set:class{constructor(){this.set=Object.create(null)}has(y){return this.set[y]===!0}add(y){this.set[y]=!0}clear(){this.set=Object.create(null)}};let Le=null;function de(y=null){y||Le&&Le._scope.off(),Le=y,y&&y._scope.on()}class We{constructor(E,S,N,M,Z,q,oe,fe){this.tag=E,this.data=S,this.children=N,this.text=M,this.elm=Z,this.ns=void 0,this.context=q,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=S&&S.key,this.componentOptions=oe,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=fe,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}const Sr=(y="")=>{const E=new We;return E.text=y,E.isComment=!0,E};function kr(y){return new We(void 0,void 0,void 0,String(y))}function Wi(y){const E=new We(y.tag,y.data,y.children&&y.children.slice(),y.text,y.elm,y.context,y.componentOptions,y.asyncFactory);return E.ns=y.ns,E.isStatic=y.isStatic,E.key=y.key,E.isComment=y.isComment,E.fnContext=y.fnContext,E.fnOptions=y.fnOptions,E.fnScopeId=y.fnScopeId,E.asyncMeta=y.asyncMeta,E.isCloned=!0,E}let da=0;const wi=[],ls=()=>{for(let y=0;y<wi.length;y++){const E=wi[y];E.subs=E.subs.filter((S=>S)),E._pending=!1}wi.length=0};class Wn{constructor(){this._pending=!1,this.id=da++,this.subs=[]}addSub(E){this.subs.push(E)}removeSub(E){this.subs[this.subs.indexOf(E)]=null,this._pending||(this._pending=!0,wi.push(this))}depend(E){Wn.target&&Wn.target.addDep(this)}notify(E){const S=this.subs.filter((N=>N));for(let N=0,M=S.length;N<M;N++)S[N].update()}}Wn.target=null;const Re=[];function vt(y){Re.push(y),Wn.target=y}function Mt(){Re.pop(),Wn.target=Re[Re.length-1]}const mr=Array.prototype,ur=Object.create(mr);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(y){const E=mr[y];_t(ur,y,(function(...S){const N=E.apply(this,S),M=this.__ob__;let Z;switch(y){case"push":case"unshift":Z=S;break;case"splice":Z=S.slice(2)}return Z&&M.observeArray(Z),M.dep.notify(),N}))}));const On=Object.getOwnPropertyNames(ur),Mn={};let Dr=!0;function _(y){Dr=y}const D={notify:ge,depend:ge,addSub:ge,removeSub:ge};class pe{constructor(E,S=!1,N=!1){if(this.value=E,this.shallow=S,this.mock=N,this.dep=N?D:new Wn,this.vmCount=0,_t(E,"__ob__",this),n(E)){if(!N)if(jr)E.__proto__=ur;else for(let M=0,Z=On.length;M<Z;M++){const q=On[M];_t(E,q,ur[q])}S||this.observeArray(E)}else{const M=Object.keys(E);for(let Z=0;Z<M.length;Z++)J(E,M[Z],Mn,void 0,S,N)}}observeArray(E){for(let S=0,N=E.length;S<N;S++)z(E[S],!1,this.mock)}}function z(y,E,S){return y&&O(y,"__ob__")&&y.__ob__ instanceof pe?y.__ob__:!Dr||!S&&Pe()||!n(y)&&!d(y)||!Object.isExtensible(y)||y.__v_skip||Rr(y)||y instanceof We?void 0:new pe(y,E,S)}function J(y,E,S,N,M,Z,q=!1){const oe=new Wn,fe=Object.getOwnPropertyDescriptor(y,E);if(fe&&fe.configurable===!1)return;const Ce=fe&&fe.get,_e=fe&&fe.set;Ce&&!_e||S!==Mn&&arguments.length!==2||(S=y[E]);let Je=M?S&&S.__ob__:z(S,!1,Z);return Object.defineProperty(y,E,{enumerable:!0,configurable:!0,get:function(){const Ue=Ce?Ce.call(y):S;return Wn.target&&(oe.depend(),Je&&(Je.dep.depend(),n(Ue)&&ft(Ue))),Rr(Ue)&&!M?Ue.value:Ue},set:function(Ue){const wt=Ce?Ce.call(y):S;if(Ct(wt,Ue)){if(_e)_e.call(y,Ue);else{if(Ce)return;if(!M&&Rr(wt)&&!Rr(Ue))return void(wt.value=Ue);S=Ue}Je=M?Ue&&Ue.__ob__:z(Ue,!1,Z),oe.notify()}}}),oe}function Zt(y,E,S){if(Mr(y))return;const N=y.__ob__;return n(y)&&h(E)?(y.length=Math.max(y.length,E),y.splice(E,1,S),N&&!N.shallow&&N.mock&&z(S,!1,!0),S):E in y&&!(E in Object.prototype)?(y[E]=S,S):y._isVue||N&&N.vmCount?S:N?(J(N.value,E,S,void 0,N.shallow,N.mock),N.dep.notify(),S):(y[E]=S,S)}function je(y,E){if(n(y)&&h(E))return void y.splice(E,1);const S=y.__ob__;y._isVue||S&&S.vmCount||Mr(y)||O(y,E)&&(delete y[E],S&&S.dep.notify())}function ft(y){for(let E,S=0,N=y.length;S<N;S++)E=y[S],E&&E.__ob__&&E.__ob__.dep.depend(),n(E)&&ft(E)}function bt(y){return Ge(y,!0),_t(y,"__v_isShallow",!0),y}function Ge(y,E){Mr(y)||z(y,E,Pe())}function sr(y){return Mr(y)?sr(y.__v_raw):!(!y||!y.__ob__)}function yr(y){return!(!y||!y.__v_isShallow)}function Mr(y){return!(!y||!y.__v_isReadonly)}const ae="__v_isRef";function Rr(y){return!(!y||y.__v_isRef!==!0)}function be(y,E){if(Rr(y))return y;const S={};return _t(S,ae,!0),_t(S,"__v_isShallow",E),_t(S,"dep",J(S,"value",y,null,E,Pe())),S}function Yo(y,E,S){Object.defineProperty(y,S,{enumerable:!0,configurable:!0,get:()=>{const N=E[S];if(Rr(N))return N.value;{const M=N&&N.__ob__;return M&&M.dep.depend(),N}},set:N=>{const M=E[S];Rr(M)&&!Rr(N)?M.value=N:E[S]=N}})}function Ol(y,E,S){const N=y[E];if(Rr(N))return N;const M={get value(){const Z=y[E];return Z===void 0?S:Z},set value(Z){y[E]=Z}};return _t(M,ae,!0),M}const ha="__v_rawToReadonly",La="__v_rawToShallowReadonly";function za(y){return us(y,!1)}function us(y,E){if(!d(y)||Mr(y))return y;const S=E?La:ha,N=y[S];if(N)return N;const M=Object.create(Object.getPrototypeOf(y));_t(y,S,M),_t(M,"__v_isReadonly",!0),_t(M,"__v_raw",y),Rr(y)&&_t(M,ae,!0),(E||yr(y))&&_t(M,"__v_isShallow",!0);const Z=Object.keys(y);for(let q=0;q<Z.length;q++)Ml(M,y,Z[q],E);return M}function Ml(y,E,S,N){Object.defineProperty(y,S,{enumerable:!0,configurable:!0,get(){const M=E[S];return N||!d(M)?M:za(M)},set(){}})}const Ki="watcher",cs=`${Ki} callback`,Ni=`${Ki} getter`,Qt=`${Ki} cleanup`;function Hn(y,E){return io(y,null,{flush:"post"})}const mn={};function io(y,E,{immediate:S,deep:N,flush:M="pre",onTrack:Z,onTrigger:q}=r){const oe=Le,fe=(It,_r,Kr=null)=>{const an=Tt(It,null,Kr,oe,_r);return N&&an&&an.__ob__&&an.__ob__.dep.depend(),an};let Ce,_e,Je=!1,Ue=!1;if(Rr(y)?(Ce=()=>y.value,Je=yr(y)):sr(y)?(Ce=()=>(y.__ob__.dep.depend(),y),N=!0):n(y)?(Ue=!0,Je=y.some((It=>sr(It)||yr(It))),Ce=()=>y.map((It=>Rr(It)?It.value:sr(It)?(It.__ob__.dep.depend(),Bt(It)):l(It)?fe(It,Ni):void 0))):Ce=l(y)?E?()=>fe(y,Ni):()=>{if(!oe||!oe._isDestroyed)return _e&&_e(),fe(y,Ki,[wt])}:ge,E&&N){const It=Ce;Ce=()=>Bt(It())}let wt=It=>{_e=kt.onStop=()=>{fe(It,Qt)}};if(Pe())return wt=ge,E?S&&fe(E,cs,[Ce(),Ue?[]:void 0,wt]):Ce(),ge;const kt=new Ln(Le,Ce,ge,{lazy:!0});kt.noRecurse=!E;let $t=Ue?[]:mn;return kt.run=()=>{if(kt.active)if(E){const It=kt.get();(N||Je||(Ue?It.some(((_r,Kr)=>Ct(_r,$t[Kr]))):Ct(It,$t)))&&(_e&&_e(),fe(E,cs,[It,$t===mn?void 0:$t,wt]),$t=It)}else kt.get()},M==="sync"?kt.update=kt.run:M==="post"?(kt.post=!0,kt.update=()=>fs(kt)):kt.update=()=>{if(oe&&oe===Le&&!oe._isMounted){const It=oe._preWatchers||(oe._preWatchers=[]);It.indexOf(kt)<0&&It.push(kt)}else fs(kt)},E?S?kt.run():$t=kt.get():M==="post"&&oe?oe.$once("hook:mounted",(()=>kt.get())):kt.get(),()=>{kt.teardown()}}let Zr;class Pn{constructor(E=!1){this.detached=E,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Zr,!E&&Zr&&(this.index=(Zr.scopes||(Zr.scopes=[])).push(this)-1)}run(E){if(this.active){const S=Zr;try{return Zr=this,E()}finally{Zr=S}}}on(){Zr=this}off(){Zr=this.parent}stop(E){if(this.active){let S,N;for(S=0,N=this.effects.length;S<N;S++)this.effects[S].teardown();for(S=0,N=this.cleanups.length;S<N;S++)this.cleanups[S]();if(this.scopes)for(S=0,N=this.scopes.length;S<N;S++)this.scopes[S].stop(!0);if(!this.detached&&this.parent&&!E){const M=this.parent.scopes.pop();M&&M!==this&&(this.parent.scopes[this.index]=M,M.index=this.index)}this.parent=void 0,this.active=!1}}}function Rs(){return Zr}function Qe(y){const E=y._provided,S=y.$parent&&y.$parent._provided;return S===E?y._provided=Object.create(S):E}const Dt=P((y=>{const E=y.charAt(0)==="&",S=(y=E?y.slice(1):y).charAt(0)==="~",N=(y=S?y.slice(1):y).charAt(0)==="!";return{name:y=N?y.slice(1):y,once:S,capture:N,passive:E}}));function cr(y,E){function S(){const N=S.fns;if(!n(N))return Tt(N,null,arguments,E,"v-on handler");{const M=N.slice();for(let Z=0;Z<M.length;Z++)Tt(M[Z],null,arguments,E,"v-on handler")}}return S.fns=y,S}function Br(y,E,S,N,M,Z){let q,oe,fe,Ce;for(q in y)oe=y[q],fe=E[q],Ce=Dt(q),i(oe)||(i(fe)?(i(oe.fns)&&(oe=y[q]=cr(oe,Z)),s(Ce.once)&&(oe=y[q]=M(Ce.name,oe,Ce.capture)),S(Ce.name,oe,Ce.capture,Ce.passive,Ce.params)):oe!==fe&&(fe.fns=oe,y[q]=fe));for(q in E)i(y[q])&&(Ce=Dt(q),N(Ce.name,E[q],Ce.capture))}function $r(y,E,S){let N;y instanceof We&&(y=y.data.hook||(y.data.hook={}));const M=y[E];function Z(){S.apply(this,arguments),k(N.fns,Z)}i(M)?N=cr([Z]):o(M.fns)&&s(M.merged)?(N=M,N.fns.push(Z)):N=cr([M,Z]),N.merged=!0,y[E]=N}function Fi(y,E,S,N,M){if(o(E)){if(O(E,S))return y[S]=E[S],M||delete E[S],!0;if(O(E,N))return y[S]=E[N],M||delete E[N],!0}return!1}function mi(y){return a(y)?[kr(y)]:n(y)?si(y):void 0}function oo(y){return o(y)&&o(y.text)&&y.isComment===!1}function si(y,E){const S=[];let N,M,Z,q;for(N=0;N<y.length;N++)M=y[N],i(M)||typeof M=="boolean"||(Z=S.length-1,q=S[Z],n(M)?M.length>0&&(M=si(M,`${E||""}_${N}`),oo(M[0])&&oo(q)&&(S[Z]=kr(q.text+M[0].text),M.shift()),S.push.apply(S,M)):a(M)?oo(q)?S[Z]=kr(q.text+M):M!==""&&S.push(kr(M)):oo(M)&&oo(q)?S[Z]=kr(q.text+M.text):(s(y._isVList)&&o(M.tag)&&i(M.key)&&o(E)&&(M.key=`__vlist${E}_${N}__`),S.push(M)));return S}function Oi(y,E){let S,N,M,Z,q=null;if(n(y)||typeof y=="string")for(q=new Array(y.length),S=0,N=y.length;S<N;S++)q[S]=E(y[S],S);else if(typeof y=="number")for(q=new Array(y),S=0;S<y;S++)q[S]=E(S+1,S);else if(u(y))if(ut&&y[Symbol.iterator]){q=[];const oe=y[Symbol.iterator]();let fe=oe.next();for(;!fe.done;)q.push(E(fe.value,q.length)),fe=oe.next()}else for(M=Object.keys(y),q=new Array(M.length),S=0,N=M.length;S<N;S++)Z=M[S],q[S]=E(y[Z],Z,S);return o(q)||(q=[]),q._isVList=!0,q}function N0(y,E,S,N){const M=this.$scopedSlots[y];let Z;M?(S=S||{},N&&(S=re(re({},N),S)),Z=M(S)||(l(E)?E():E)):Z=this.$slots[y]||(l(E)?E():E);const q=S&&S.slot;return q?this.$createElement("template",{slot:q},Z):Z}function Rl(y){return cc(this.$options,"filters",y)||Me}function on(y,E){return n(y)?y.indexOf(E)===-1:y!==E}function pa(y,E,S,N,M){const Z=Ot.keyCodes[E]||S;return M&&N&&!Ot.keyCodes[E]?on(M,N):Z?on(Z,y):N?I(N)!==E:y===void 0}function Mi(y,E,S,N,M){if(S&&u(S)){let Z;n(S)&&(S=Ee(S));for(const q in S){if(q==="class"||q==="style"||x(q))Z=y;else{const Ce=y.attrs&&y.attrs.type;Z=N||Ot.mustUseProp(E,Ce,q)?y.domProps||(y.domProps={}):y.attrs||(y.attrs={})}const oe=W(q),fe=I(q);!(oe in Z)&&!(fe in Z)&&(Z[q]=S[q],M)&&((y.on||(y.on={}))[`update:${q}`]=function(Ce){S[q]=Ce})}}return y}function ds(y,E){const S=this._staticTrees||(this._staticTrees=[]);let N=S[y];return N&&!E||(N=S[y]=this.$options.staticRenderFns[y].call(this._renderProxy,this._c,this),fa(N,`__static__${y}`,!1)),N}function F0(y,E,S){return fa(y,`__once__${E}${S?`_${S}`:""}`,!0),y}function fa(y,E,S){if(n(y))for(let N=0;N<y.length;N++)y[N]&&typeof y[N]!="string"&&Bl(y[N],`${E}_${N}`,S);else Bl(y,E,S)}function Bl(y,E,S){y.isStatic=!0,y.key=E,y.isOnce=S}function so(y,E){if(E&&d(E)){const S=y.on=y.on?re({},y.on):{};for(const N in E){const M=S[N],Z=E[N];S[N]=M?[].concat(M,Z):Z}}return y}function Ya(y,E,S,N){E=E||{$stable:!S};for(let M=0;M<y.length;M++){const Z=y[M];n(Z)?Ya(Z,E,S):Z&&(Z.proxy&&(Z.fn.proxy=!0),E[Z.key]=Z.fn)}return N&&(E.$key=N),E}function Xn(y,E){for(let S=0;S<E.length;S+=2){const N=E[S];typeof N=="string"&&N&&(y[E[S]]=E[S+1])}return y}function tr(y,E){return typeof y=="string"?E+y:y}function Ha(y){y._o=F0,y._n=v,y._s=f,y._l=Oi,y._t=N0,y._q=Ve,y._i=it,y._m=ds,y._f=Rl,y._k=pa,y._b=Mi,y._v=kr,y._e=Sr,y._u=Ya,y._g=so,y._d=Xn,y._p=tr}function sn(y,E){if(!y||!y.length)return{};const S={};for(let N=0,M=y.length;N<M;N++){const Z=y[N],q=Z.data;if(q&&q.attrs&&q.attrs.slot&&delete q.attrs.slot,Z.context!==E&&Z.fnContext!==E||!q||q.slot==null)(S.default||(S.default=[])).push(Z);else{const oe=q.slot,fe=S[oe]||(S[oe]=[]);Z.tag==="template"?fe.push.apply(fe,Z.children||[]):fe.push(Z)}}for(const N in S)S[N].every(Ir)&&delete S[N];return S}function Ir(y){return y.isComment&&!y.asyncFactory||y.text===" "}function wo(y){return y.isComment&&y.asyncFactory}function Ri(y,E,S,N){let M;const Z=Object.keys(S).length>0,q=E?!!E.$stable:!Z,oe=E&&E.$key;if(E){if(E._normalized)return E._normalized;if(q&&N&&N!==r&&oe===N.$key&&!Z&&!N.$hasNormal)return N;M={};for(const fe in E)E[fe]&&fe[0]!=="$"&&(M[fe]=Pa(y,S,fe,E[fe]))}else M={};for(const fe in S)fe in M||(M[fe]=Il(S,fe));return E&&Object.isExtensible(E)&&(E._normalized=M),_t(M,"$stable",q),_t(M,"$key",oe),_t(M,"$hasNormal",Z),M}function Pa(y,E,S,N){const M=function(){const Z=Le;de(y);let q=arguments.length?N.apply(null,arguments):N({});q=q&&typeof q=="object"&&!n(q)?[q]:mi(q);const oe=q&&q[0];return de(Z),q&&(!oe||q.length===1&&oe.isComment&&!wo(oe))?void 0:q};return N.proxy&&Object.defineProperty(E,S,{get:M,enumerable:!0,configurable:!0}),M}function Il(y,E){return()=>y[E]}function mt(y){return{get attrs(){if(!y._attrsProxy){const E=y._attrsProxy={};_t(E,"_v_attr_proxy",!0),xt(E,y.$attrs,r,y,"$attrs")}return y._attrsProxy},get listeners(){return y._listenersProxy||xt(y._listenersProxy={},y.$listeners,r,y,"$listeners"),y._listenersProxy},get slots(){return(function(E){return E._slotsProxy||Or(E._slotsProxy={},E.$scopedSlots),E._slotsProxy})(y)},emit:ne(y.$emit,y),expose(E){E&&Object.keys(E).forEach((S=>Yo(y,E,S)))}}}function xt(y,E,S,N,M){let Z=!1;for(const q in E)q in y?E[q]!==S[q]&&(Z=!0):(Z=!0,ir(y,q,N,M));for(const q in y)q in E||(Z=!0,delete y[q]);return Z}function ir(y,E,S,N){Object.defineProperty(y,E,{enumerable:!0,configurable:!0,get:()=>S[N][E]})}function Or(y,E){for(const S in E)y[S]=E[S];for(const S in y)S in E||delete y[S]}function xe(){const y=Le;return y._setupContext||(y._setupContext=mt(y))}let Ar=null;function ao(y,E){return(y.__esModule||ut&&y[Symbol.toStringTag]==="Module")&&(y=y.default),u(y)?E.extend(y):y}function Bi(y){if(n(y))for(let E=0;E<y.length;E++){const S=y[E];if(o(S)&&(o(S.componentOptions)||wo(S)))return S}}const md=1,ic=2;function hs(y,E,S,N,M,Z){return(n(S)||a(S))&&(M=N,N=S,S=void 0),s(Z)&&(M=ic),(function(q,oe,fe,Ce,_e){if(o(fe)&&o(fe.__ob__)||(o(fe)&&o(fe.is)&&(oe=fe.is),!oe))return Sr();n(Ce)&&l(Ce[0])&&((fe=fe||{}).scopedSlots={default:Ce[0]},Ce.length=0),_e===ic?Ce=mi(Ce):_e===md&&(Ce=(function(wt){for(let kt=0;kt<wt.length;kt++)if(n(wt[kt]))return Array.prototype.concat.apply([],wt);return wt})(Ce));let Je,Ue;if(typeof oe=="string"){let wt;Ue=q.$vnode&&q.$vnode.ns||Ot.getTagNamespace(oe),Je=fe&&fe.pre||!o(wt=cc(q.$options,"components",oe))?new We(oe,fe,Ce,void 0,void 0,q):gp(wt,fe,q,Ce,oe)}else Je=gp(oe,fe,q,Ce);return n(Je)?Je:o(Je)?(o(Ue)&&Za(Je,Ue),o(fe)&&(function(wt){u(wt.style)&&Bt(wt.style),u(wt.class)&&Bt(wt.class)})(fe),Je):Sr()})(y,E,S,N,M)}function Za(y,E,S){if(y.ns=E,y.tag==="foreignObject"&&(E=void 0,S=!0),o(y.children))for(let N=0,M=y.children.length;N<M;N++){const Z=y.children[N];o(Z.tag)&&(i(Z.ns)||s(S)&&Z.tag!=="svg")&&Za(Z,E,S)}}function Ho(y,E,S){vt();try{if(E){let N=E;for(;N=N.$parent;){const M=N.$options.errorCaptured;if(M)for(let Z=0;Z<M.length;Z++)try{if(M[Z].call(N,y,E,S)===!1)return}catch(q){ai(q,N,"errorCaptured hook")}}}ai(y,E,S)}finally{Mt()}}function Tt(y,E,S,N,M){let Z;try{Z=S?y.apply(E,S):y.call(E),Z&&!Z._isVue&&p(Z)&&!Z._handled&&(Z.catch((q=>Ho(q,N,M+" (Promise/async)"))),Z._handled=!0)}catch(q){Ho(q,N,M)}return Z}function ai(y,E,S){Rn(y)}function Rn(y,E,S){if(!pt||typeof console>"u")throw y;console.error(y)}let Ii=!1;const Ll=[];let O0,oc=!1;function M0(){oc=!1;const y=Ll.slice(0);Ll.length=0;for(let E=0;E<y.length;E++)y[E]()}if(typeof Promise<"u"&&dt(Promise)){const y=Promise.resolve();O0=()=>{y.then(M0),An&&setTimeout(ge)},Ii=!0}else if(Yt||typeof MutationObserver>"u"||!dt(MutationObserver)&&MutationObserver.toString()!=="[object MutationObserverConstructor]")O0=typeof setImmediate<"u"&&dt(setImmediate)?()=>{setImmediate(M0)}:()=>{setTimeout(M0,0)};else{let y=1;const E=new MutationObserver(M0),S=document.createTextNode(String(y));E.observe(S,{characterData:!0}),O0=()=>{y=(y+1)%2,S.data=String(y)},Ii=!0}function Bn(y,E){let S;if(Ll.push((()=>{if(y)try{y.call(E)}catch(N){Ho(N,E,"nextTick")}else S&&S(E)})),oc||(oc=!0,O0()),!y&&typeof Promise<"u")return new Promise((N=>{S=N}))}function Qi(y){return(E,S=Le)=>{if(S)return(function(N,M,Z){const q=N.$options;q[M]=bd(q[M],Z)})(S,y,E)}}const sc=Qi("beforeMount"),Zn=Qi("mounted"),Y=Qi("beforeUpdate"),U=Qi("updated"),j=Qi("beforeDestroy"),te=Qi("destroyed"),me=Qi("activated"),De=Qi("deactivated"),we=Qi("serverPrefetch"),$e=Qi("renderTracked"),Et=Qi("renderTriggered"),Se=Qi("errorCaptured"),ot="2.7.16";var Jt=Object.freeze({__proto__:null,version:ot,defineComponent:function(y){return y},ref:function(y){return be(y,!1)},shallowRef:function(y){return be(y,!0)},isRef:Rr,toRef:Ol,toRefs:function(y){const E=n(y)?new Array(y.length):{};for(const S in y)E[S]=Ol(y,S);return E},unref:function(y){return Rr(y)?y.value:y},proxyRefs:function(y){if(sr(y))return y;const E={},S=Object.keys(y);for(let N=0;N<S.length;N++)Yo(E,y,S[N]);return E},customRef:function(y){const E=new Wn,{get:S,set:N}=y((()=>{E.depend()}),(()=>{E.notify()})),M={get value(){return S()},set value(Z){N(Z)}};return _t(M,ae,!0),M},triggerRef:function(y){y.dep&&y.dep.notify()},reactive:function(y){return Ge(y,!1),y},isReactive:sr,isReadonly:Mr,isShallow:yr,isProxy:function(y){return sr(y)||Mr(y)},shallowReactive:bt,markRaw:function(y){return Object.isExtensible(y)&&_t(y,"__v_skip",!0),y},toRaw:function y(E){const S=E&&E.__v_raw;return S?y(S):E},readonly:za,shallowReadonly:function(y){return us(y,!0)},computed:function(y,E){let S,N;const M=l(y);M?(S=y,N=ge):(S=y.get,N=y.set);const Z=Pe()?null:new Ln(Le,S,ge,{lazy:!0}),q={effect:Z,get value(){return Z?(Z.dirty&&Z.evaluate(),Wn.target&&Z.depend(),Z.value):S()},set value(oe){N(oe)}};return _t(q,ae,!0),_t(q,"__v_isReadonly",M),q},watch:function(y,E,S){return io(y,E,S)},watchEffect:function(y,E){return io(y,null,E)},watchPostEffect:Hn,watchSyncEffect:function(y,E){return io(y,null,{flush:"sync"})},EffectScope:Pn,effectScope:function(y){return new Pn(y)},onScopeDispose:function(y){Zr&&Zr.cleanups.push(y)},getCurrentScope:Rs,provide:function(y,E){Le&&(Qe(Le)[y]=E)},inject:function(y,E,S=!1){const N=Le;if(N){const M=N.$parent&&N.$parent._provided;if(M&&y in M)return M[y];if(arguments.length>1)return S&&l(E)?E.call(N):E}},h:function(y,E,S){return hs(Le,y,E,S,2,!0)},getCurrentInstance:function(){return Le&&{proxy:Le}},useSlots:function(){return xe().slots},useAttrs:function(){return xe().attrs},useListeners:function(){return xe().listeners},mergeDefaults:function(y,E){const S=n(y)?y.reduce(((N,M)=>(N[M]={},N)),{}):y;for(const N in E){const M=S[N];M?n(M)||l(M)?S[N]={type:M,default:E[N]}:M.default=E[N]:M===null&&(S[N]={default:E[N]})}return S},nextTick:Bn,set:Zt,del:je,useCssModule:function(y="$style"){return Le&&Le[y]||r},useCssVars:function(y){if(!pt)return;const E=Le;E&&Hn((()=>{const S=E.$el,N=y(E,E._setupProxy);if(S&&S.nodeType===1){const M=S.style;for(const Z in N)M.setProperty(`--${Z}`,N[Z])}}))},defineAsyncComponent:function(y){l(y)&&(y={loader:y});const{loader:E,loadingComponent:S,errorComponent:N,delay:M=200,timeout:Z,suspensible:q=!1,onError:oe}=y;let fe=null,Ce=0;const _e=()=>{let Je;return fe||(Je=fe=E().catch((Ue=>{if(Ue=Ue instanceof Error?Ue:new Error(String(Ue)),oe)return new Promise(((wt,kt)=>{oe(Ue,(()=>wt((Ce++,fe=null,_e()))),(()=>kt(Ue)),Ce+1)}));throw Ue})).then((Ue=>Je!==fe&&fe?fe:(Ue&&(Ue.__esModule||Ue[Symbol.toStringTag]==="Module")&&(Ue=Ue.default),Ue))))};return()=>({component:_e(),delay:M,timeout:Z,error:N,loading:S})},onBeforeMount:sc,onMounted:Zn,onBeforeUpdate:Y,onUpdated:U,onBeforeUnmount:j,onUnmounted:te,onActivated:me,onDeactivated:De,onServerPrefetch:we,onRenderTracked:$e,onRenderTriggered:Et,onErrorCaptured:function(y,E=Le){Se(y,E)}});const Lr=new Be;function Bt(y){return at(y,Lr),Lr.clear(),y}function at(y,E){let S,N;const M=n(y);if(!(!M&&!u(y)||y.__v_skip||Object.isFrozen(y)||y instanceof We)){if(y.__ob__){const Z=y.__ob__.dep.id;if(E.has(Z))return;E.add(Z)}if(M)for(S=y.length;S--;)at(y[S],E);else if(Rr(y))at(y.value,E);else for(N=Object.keys(y),S=N.length;S--;)at(y[N[S]],E)}}let et,In=0;class Ln{constructor(E,S,N,M,Z){(function(q,oe=Zr){oe&&oe.active&&oe.effects.push(q)})(this,Zr&&!Zr._vm?Zr:E?E._scope:void 0),(this.vm=E)&&Z&&(E._watcher=this),M?(this.deep=!!M.deep,this.user=!!M.user,this.lazy=!!M.lazy,this.sync=!!M.sync,this.before=M.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=N,this.id=++In,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Be,this.newDepIds=new Be,this.expression="",l(S)?this.getter=S:(this.getter=(function(q){if(Fr.test(q))return;const oe=q.split(".");return function(fe){for(let Ce=0;Ce<oe.length;Ce++){if(!fe)return;fe=fe[oe[Ce]]}return fe}})(S),this.getter||(this.getter=ge)),this.value=this.lazy?void 0:this.get()}get(){let E;vt(this);const S=this.vm;try{E=this.getter.call(S,S)}catch(N){if(!this.user)throw N;Ho(N,S,`getter for watcher "${this.expression}"`)}finally{this.deep&&Bt(E),Mt(),this.cleanupDeps()}return E}addDep(E){const S=E.id;this.newDepIds.has(S)||(this.newDepIds.add(S),this.newDeps.push(E),this.depIds.has(S)||E.addSub(this))}cleanupDeps(){let E=this.deps.length;for(;E--;){const N=this.deps[E];this.newDepIds.has(N.id)||N.removeSub(this)}let S=this.depIds;this.depIds=this.newDepIds,this.newDepIds=S,this.newDepIds.clear(),S=this.deps,this.deps=this.newDeps,this.newDeps=S,this.newDeps.length=0}update(){this.lazy?this.dirty=!0:this.sync?this.run():fs(this)}run(){if(this.active){const E=this.get();if(E!==this.value||u(E)||this.deep){const S=this.value;if(this.value=E,this.user){const N=`callback for watcher "${this.expression}"`;Tt(this.cb,this.vm,[E,S],this.vm,N)}else this.cb.call(this.vm,E,S)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let E=this.deps.length;for(;E--;)this.deps[E].depend()}teardown(){if(this.vm&&!this.vm._isBeingDestroyed&&k(this.vm._scope.effects,this),this.active){let E=this.deps.length;for(;E--;)this.deps[E].removeSub(this);this.active=!1,this.onStop&&this.onStop()}}}function $n(y,E){et.$on(y,E)}function Po(y,E){et.$off(y,E)}function Bs(y,E){const S=et;return function N(){E.apply(null,arguments)!==null&&S.$off(y,N)}}function R0(y,E,S){et=y,Br(E,S||{},$n,Po,Bs,y),et=void 0}let Is=null;function ps(y){const E=Is;return Is=y,()=>{Is=E}}function B0(y){for(;y&&(y=y.$parent);)if(y._inactive)return!0;return!1}function $a(y,E){if(E){if(y._directInactive=!1,B0(y))return}else if(y._directInactive)return;if(y._inactive||y._inactive===null){y._inactive=!1;for(let S=0;S<y.$children.length;S++)$a(y.$children[S]);Un(y,"activated")}}function ac(y,E){if(!(E&&(y._directInactive=!0,B0(y))||y._inactive)){y._inactive=!0;for(let S=0;S<y.$children.length;S++)ac(y.$children[S]);Un(y,"deactivated")}}function Un(y,E,S,N=!0){vt();const M=Le,Z=Rs();N&&de(y);const q=y.$options[E],oe=`${E} hook`;if(q)for(let fe=0,Ce=q.length;fe<Ce;fe++)Tt(q[fe],y,null,y,oe);y._hasHookEvent&&y.$emit("hook:"+E),N&&(de(M),Z&&Z.on()),Mt()}const Pt=[],Ls=[];let Ji={},Ua=!1,Xi=!1,ma=0,lo=0,zl=Date.now;if(pt&&!Yt){const y=window.performance;y&&typeof y.now=="function"&&zl()>document.createEvent("Event").timeStamp&&(zl=()=>y.now())}const gd=(y,E)=>{if(y.post){if(!E.post)return 1}else if(E.post)return-1;return y.id-E.id};function Zo(){let y,E;for(lo=zl(),Xi=!0,Pt.sort(gd),ma=0;ma<Pt.length;ma++)y=Pt[ma],y.before&&y.before(),E=y.id,Ji[E]=null,y.run();const S=Ls.slice(),N=Pt.slice();ma=Pt.length=Ls.length=0,Ji={},Ua=Xi=!1,(function(M){for(let Z=0;Z<M.length;Z++)M[Z]._inactive=!0,$a(M[Z],!0)})(S),(function(M){let Z=M.length;for(;Z--;){const q=M[Z],oe=q.vm;oe&&oe._watcher===q&&oe._isMounted&&!oe._isDestroyed&&Un(oe,"updated")}})(N),ls()}function fs(y){const E=y.id;if(Ji[E]==null&&(y!==Wn.target||!y.noRecurse)){if(Ji[E]=!0,Xi){let S=Pt.length-1;for(;S>ma&&Pt[S].id>y.id;)S--;Pt.splice(S+1,0,y)}else Pt.push(y);Ua||(Ua=!0,Bn(Zo))}}function I0(y,E){if(y){const S=Object.create(null),N=ut?Reflect.ownKeys(y):Object.keys(y);for(let M=0;M<N.length;M++){const Z=N[M];if(Z==="__ob__")continue;const q=y[Z].from;if(q in E._provided)S[Z]=E._provided[q];else if("default"in y[Z]){const oe=y[Z].default;S[Z]=l(oe)?oe.call(E):oe}}return S}}function ga(y,E,S,N,M){const Z=M.options;let q;O(N,"_uid")?(q=Object.create(N),q._original=N):(q=N,N=N._original);const oe=s(Z._compiled),fe=!oe;this.data=y,this.props=E,this.children=S,this.parent=N,this.listeners=y.on||r,this.injections=I0(Z.inject,N),this.slots=()=>(this.$slots||Ri(N,y.scopedSlots,this.$slots=sn(S,N)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return Ri(N,y.scopedSlots,this.slots())}}),oe&&(this.$options=Z,this.$slots=this.slots(),this.$scopedSlots=Ri(N,y.scopedSlots,this.$slots)),Z._scopeId?this._c=(Ce,_e,Je,Ue)=>{const wt=hs(q,Ce,_e,Je,Ue,fe);return wt&&!n(wt)&&(wt.fnScopeId=Z._scopeId,wt.fnContext=N),wt}:this._c=(Ce,_e,Je,Ue)=>hs(q,Ce,_e,Je,Ue,fe)}function ya(y,E,S,N,M){const Z=Wi(y);return Z.fnContext=S,Z.fnOptions=N,E.slot&&((Z.data||(Z.data={})).slot=E.slot),Z}function yd(y,E){for(const S in E)y[W(S)]=E[S]}function lc(y){return y.name||y.__name||y._componentTag}Ha(ga.prototype);const mp={init(y,E){if(y.componentInstance&&!y.componentInstance._isDestroyed&&y.data.keepAlive){const S=y;mp.prepatch(S,S)}else(y.componentInstance=(function(S,N){const M={_isComponent:!0,_parentVnode:S,parent:N},Z=S.data.inlineTemplate;return o(Z)&&(M.render=Z.render,M.staticRenderFns=Z.staticRenderFns),new S.componentOptions.Ctor(M)})(y,Is)).$mount(E?y.elm:void 0,E)},prepatch(y,E){const S=E.componentOptions;(function(N,M,Z,q,oe){const fe=q.data.scopedSlots,Ce=N.$scopedSlots,_e=!!(fe&&!fe.$stable||Ce!==r&&!Ce.$stable||fe&&N.$scopedSlots.$key!==fe.$key||!fe&&N.$scopedSlots.$key);let Je=!!(oe||N.$options._renderChildren||_e);const Ue=N.$vnode;N.$options._parentVnode=q,N.$vnode=q,N._vnode&&(N._vnode.parent=q),N.$options._renderChildren=oe;const wt=q.data.attrs||r;N._attrsProxy&&xt(N._attrsProxy,wt,Ue.data&&Ue.data.attrs||r,N,"$attrs")&&(Je=!0),N.$attrs=wt,Z=Z||r;const kt=N.$options._parentListeners;if(N._listenersProxy&&xt(N._listenersProxy,Z,kt||r,N,"$listeners"),N.$listeners=N.$options._parentListeners=Z,R0(N,Z,kt),M&&N.$options.props){_(!1);const $t=N._props,It=N.$options._propKeys||[];for(let _r=0;_r<It.length;_r++){const Kr=It[_r],an=N.$options.props;$t[Kr]=L0(Kr,an,M,N)}_(!0),N.$options.propsData=M}Je&&(N.$slots=sn(oe,q.context),N.$forceUpdate())})(E.componentInstance=y.componentInstance,S.propsData,S.listeners,E,S.children)},insert(y){const{context:E,componentInstance:S}=y;var N;S._isMounted||(S._isMounted=!0,Un(S,"mounted")),y.data.keepAlive&&(E._isMounted?((N=S)._inactive=!1,Ls.push(N)):$a(S,!0))},destroy(y){const{componentInstance:E}=y;E._isDestroyed||(y.data.keepAlive?ac(E,!0):E.$destroy())}},cm=Object.keys(mp);function gp(y,E,S,N,M){if(i(y))return;const Z=S.$options._base;if(u(y)&&(y=Z.extend(y)),typeof y!="function")return;let q;if(i(y.cid)&&(q=y,y=(function(_e,Je){if(s(_e.error)&&o(_e.errorComp))return _e.errorComp;if(o(_e.resolved))return _e.resolved;const Ue=Ar;if(Ue&&o(_e.owners)&&_e.owners.indexOf(Ue)===-1&&_e.owners.push(Ue),s(_e.loading)&&o(_e.loadingComp))return _e.loadingComp;if(Ue&&!o(_e.owners)){const wt=_e.owners=[Ue];let kt=!0,$t=null,It=null;Ue.$on("hook:destroyed",(()=>k(wt,Ue)));const _r=Ys=>{for(let Li=0,Fe=wt.length;Li<Fe;Li++)wt[Li].$forceUpdate();Ys&&(wt.length=0,$t!==null&&(clearTimeout($t),$t=null),It!==null&&(clearTimeout(It),It=null))},Kr=ct((Ys=>{_e.resolved=ao(Ys,Je),kt?wt.length=0:_r(!0)})),an=ct((Ys=>{o(_e.errorComp)&&(_e.error=!0,_r(!0))})),Tn=_e(Kr,an);return u(Tn)&&(p(Tn)?i(_e.resolved)&&Tn.then(Kr,an):p(Tn.component)&&(Tn.component.then(Kr,an),o(Tn.error)&&(_e.errorComp=ao(Tn.error,Je)),o(Tn.loading)&&(_e.loadingComp=ao(Tn.loading,Je),Tn.delay===0?_e.loading=!0:$t=setTimeout((()=>{$t=null,i(_e.resolved)&&i(_e.error)&&(_e.loading=!0,_r(!1))}),Tn.delay||200)),o(Tn.timeout)&&(It=setTimeout((()=>{It=null,i(_e.resolved)&&an(null)}),Tn.timeout)))),kt=!1,_e.loading?_e.loadingComp:_e.resolved}})(q,Z),y===void 0))return(function(_e,Je,Ue,wt,kt){const $t=Sr();return $t.asyncFactory=_e,$t.asyncMeta={data:Je,context:Ue,children:wt,tag:kt},$t})(q,E,S,N,M);E=E||{},dc(y),o(E.model)&&(function(_e,Je){const Ue=_e.model&&_e.model.prop||"value",wt=_e.model&&_e.model.event||"input";(Je.attrs||(Je.attrs={}))[Ue]=Je.model.value;const kt=Je.on||(Je.on={}),$t=kt[wt],It=Je.model.callback;o($t)?(n($t)?$t.indexOf(It)===-1:$t!==It)&&(kt[wt]=[It].concat($t)):kt[wt]=It})(y.options,E);const oe=(function(_e,Je,Ue){const wt=Je.options.props;if(i(wt))return;const kt={},{attrs:$t,props:It}=_e;if(o($t)||o(It))for(const _r in wt){const Kr=I(_r);Fi(kt,It,_r,Kr,!0)||Fi(kt,$t,_r,Kr,!1)}return kt})(E,y);if(s(y.options.functional))return(function(_e,Je,Ue,wt,kt){const $t=_e.options,It={},_r=$t.props;if(o(_r))for(const Tn in _r)It[Tn]=L0(Tn,_r,Je||r);else o(Ue.attrs)&&yd(It,Ue.attrs),o(Ue.props)&&yd(It,Ue.props);const Kr=new ga(Ue,It,kt,wt,_e),an=$t.render.call(null,Kr._c,Kr);if(an instanceof We)return ya(an,Ue,Kr.parent,$t);if(n(an)){const Tn=mi(an)||[],Ys=new Array(Tn.length);for(let Li=0;Li<Tn.length;Li++)Ys[Li]=ya(Tn[Li],Ue,Kr.parent,$t);return Ys}})(y,oe,E,S,N);const fe=E.on;if(E.on=E.nativeOn,s(y.options.abstract)){const _e=E.slot;E={},_e&&(E.slot=_e)}(function(_e){const Je=_e.hook||(_e.hook={});for(let Ue=0;Ue<cm.length;Ue++){const wt=cm[Ue],kt=Je[wt],$t=mp[wt];kt===$t||kt&&kt._merged||(Je[wt]=kt?Va($t,kt):$t)}})(E);const Ce=lc(y.options)||M;return new We(`vue-component-${y.cid}${Ce?`-${Ce}`:""}`,E,void 0,void 0,void 0,S,{Ctor:y,propsData:oe,listeners:fe,tag:M,children:N},q)}function Va(y,E){const S=(N,M)=>{y(N,M),E(N,M)};return S._merged=!0,S}let uc=ge;const ms=Ot.optionMergeStrategies;function Yl(y,E,S=!0){if(!E)return y;let N,M,Z;const q=ut?Reflect.ownKeys(E):Object.keys(E);for(let oe=0;oe<q.length;oe++)N=q[oe],N!=="__ob__"&&(M=y[N],Z=E[N],S&&O(y,N)?M!==Z&&d(M)&&d(Z)&&Yl(M,Z):Zt(y,N,Z));return y}function Td(y,E,S){return S?function(){const N=l(E)?E.call(S,S):E,M=l(y)?y.call(S,S):y;return N?Yl(N,M):M}:E?y?function(){return Yl(l(E)?E.call(this,this):E,l(y)?y.call(this,this):y)}:E:y}function bd(y,E){const S=E?y?y.concat(E):n(E)?E:[E]:y;return S&&(function(N){const M=[];for(let Z=0;Z<N.length;Z++)M.indexOf(N[Z])===-1&&M.push(N[Z]);return M})(S)}function g5(y,E,S,N){const M=Object.create(y||null);return E?re(M,E):M}ms.data=function(y,E,S){return S?Td(y,E,S):E&&typeof E!="function"?y:Td(y,E)},Vt.forEach((y=>{ms[y]=bd})),Kt.forEach((function(y){ms[y+"s"]=g5})),ms.watch=function(y,E,S,N){if(y===ee&&(y=void 0),E===ee&&(E=void 0),!E)return Object.create(y||null);if(!y)return E;const M={};re(M,y);for(const Z in E){let q=M[Z];const oe=E[Z];q&&!n(q)&&(q=[q]),M[Z]=q?q.concat(oe):n(oe)?oe:[oe]}return M},ms.props=ms.methods=ms.inject=ms.computed=function(y,E,S,N){if(!y)return E;const M=Object.create(null);return re(M,y),E&&re(M,E),M},ms.provide=function(y,E){return y?function(){const S=Object.create(null);return Yl(S,l(y)?y.call(this):y),E&&Yl(S,l(E)?E.call(this):E,!1),S}:E};const dm=function(y,E){return E===void 0?y:E};function Hl(y,E,S){if(l(E)&&(E=E.options),(function(q,oe){const fe=q.props;if(!fe)return;const Ce={};let _e,Je,Ue;if(n(fe))for(_e=fe.length;_e--;)Je=fe[_e],typeof Je=="string"&&(Ue=W(Je),Ce[Ue]={type:null});else if(d(fe))for(const wt in fe)Je=fe[wt],Ue=W(wt),Ce[Ue]=d(Je)?Je:{type:Je};q.props=Ce})(E),(function(q,oe){const fe=q.inject;if(!fe)return;const Ce=q.inject={};if(n(fe))for(let _e=0;_e<fe.length;_e++)Ce[fe[_e]]={from:fe[_e]};else if(d(fe))for(const _e in fe){const Je=fe[_e];Ce[_e]=d(Je)?re({from:_e},Je):{from:Je}}})(E),(function(q){const oe=q.directives;if(oe)for(const fe in oe){const Ce=oe[fe];l(Ce)&&(oe[fe]={bind:Ce,update:Ce})}})(E),!E._base&&(E.extends&&(y=Hl(y,E.extends,S)),E.mixins))for(let q=0,oe=E.mixins.length;q<oe;q++)y=Hl(y,E.mixins[q],S);const N={};let M;for(M in y)Z(M);for(M in E)O(y,M)||Z(M);function Z(q){const oe=ms[q]||dm;N[q]=oe(y[q],E[q],S,q)}return N}function cc(y,E,S,N){if(typeof S!="string")return;const M=y[E];if(O(M,S))return M[S];const Z=W(S);if(O(M,Z))return M[Z];const q=ie(Z);return O(M,q)?M[q]:M[S]||M[Z]||M[q]}function L0(y,E,S,N){const M=E[y],Z=!O(S,y);let q=S[y];const oe=Tp(Boolean,M.type);if(oe>-1){if(Z&&!O(M,"default"))q=!1;else if(q===""||q===I(y)){const fe=Tp(String,M.type);(fe<0||oe<fe)&&(q=!0)}}if(q===void 0){q=(function(Ce,_e,Je){if(!O(_e,"default"))return;const Ue=_e.default;return Ce&&Ce.$options.propsData&&Ce.$options.propsData[Je]===void 0&&Ce._props[Je]!==void 0?Ce._props[Je]:l(Ue)&&yp(_e.type)!=="Function"?Ue.call(Ce):Ue})(N,M,y);const fe=Dr;_(!0),z(q),_(fe)}return q}const y5=/^\s*function (\w+)/;function yp(y){const E=y&&y.toString().match(y5);return E?E[1]:""}function hm(y,E){return yp(y)===yp(E)}function Tp(y,E){if(!n(E))return hm(E,y)?0:-1;for(let S=0,N=E.length;S<N;S++)if(hm(E[S],y))return S;return-1}const ja={enumerable:!0,configurable:!0,get:ge,set:ge};function vd(y,E,S){ja.get=function(){return this[E][S]},ja.set=function(N){this[E][S]=N},Object.defineProperty(y,S,ja)}function pm(y){const E=y.$options;if(E.props&&(function(S,N){const M=S.$options.propsData||{},Z=S._props=bt({}),q=S.$options._propKeys=[];!S.$parent||_(!1);for(const oe in N)q.push(oe),J(Z,oe,L0(oe,N,M,S),void 0,!0),oe in S||vd(S,"_props",oe);_(!0)})(y,E.props),(function(S){const N=S.$options,M=N.setup;if(M){const Z=S._setupContext=mt(S);de(S),vt();const q=Tt(M,null,[S._props||bt({}),Z],S,"setup");if(Mt(),de(),l(q))N.render=q;else if(u(q))if(S._setupState=q,q.__sfc){const oe=S._setupProxy={};for(const fe in q)fe!=="__sfc"&&Yo(oe,q,fe)}else for(const oe in q)jt(oe)||Yo(S,q,oe)}})(y),E.methods&&(function(S,N){S.$options.props;for(const M in N)S[M]=typeof N[M]!="function"?ge:ne(N[M],S)})(y,E.methods),E.data)(function(S){let N=S.$options.data;N=S._data=l(N)?(function(fe,Ce){vt();try{return fe.call(Ce,Ce)}catch(_e){return Ho(_e,Ce,"data()"),{}}finally{Mt()}})(N,S):N||{},d(N)||(N={});const M=Object.keys(N),Z=S.$options.props;S.$options.methods;let q=M.length;for(;q--;){const fe=M[q];Z&&O(Z,fe)||jt(fe)||vd(S,"_data",fe)}const oe=z(N);oe&&oe.vmCount++})(y);else{const S=z(y._data={});S&&S.vmCount++}E.computed&&(function(S,N){const M=S._computedWatchers=Object.create(null),Z=Pe();for(const q in N){const oe=N[q],fe=l(oe)?oe:oe.get;Z||(M[q]=new Ln(S,fe||ge,ge,T5)),q in S||Ta(S,q,oe)}})(y,E.computed),E.watch&&E.watch!==ee&&(function(S,N){for(const M in N){const Z=N[M];if(n(Z))for(let q=0;q<Z.length;q++)z0(S,M,Z[q]);else z0(S,M,Z)}})(y,E.watch)}const T5={lazy:!0};function Ta(y,E,S){const N=!Pe();l(S)?(ja.get=N?bp(E):fm(S),ja.set=ge):(ja.get=S.get?N&&S.cache!==!1?bp(E):fm(S.get):ge,ja.set=S.set||ge),Object.defineProperty(y,E,ja)}function bp(y){return function(){const E=this._computedWatchers&&this._computedWatchers[y];if(E)return E.dirty&&E.evaluate(),Wn.target&&E.depend(),E.value}}function fm(y){return function(){return y.call(this,this)}}function z0(y,E,S,N){return d(S)&&(N=S,S=S.handler),typeof S=="string"&&(S=y[S]),y.$watch(E,S,N)}let mm=0;function dc(y){let E=y.options;if(y.super){const S=dc(y.super);if(S!==y.superOptions){y.superOptions=S;const N=(function(M){let Z;const q=M.options,oe=M.sealedOptions;for(const fe in q)q[fe]!==oe[fe]&&(Z||(Z={}),Z[fe]=q[fe]);return Z})(y);N&&re(y.extendOptions,N),E=y.options=Hl(S,y.extendOptions),E.name&&(E.components[E.name]=y)}}return E}function zn(y){this._init(y)}function gm(y){y.cid=0;let E=1;y.extend=function(S){S=S||{};const N=this,M=N.cid,Z=S._Ctor||(S._Ctor={});if(Z[M])return Z[M];const q=lc(S)||lc(N.options),oe=function(fe){this._init(fe)};return(oe.prototype=Object.create(N.prototype)).constructor=oe,oe.cid=E++,oe.options=Hl(N.options,S),oe.super=N,oe.options.props&&(function(fe){const Ce=fe.options.props;for(const _e in Ce)vd(fe.prototype,"_props",_e)})(oe),oe.options.computed&&(function(fe){const Ce=fe.options.computed;for(const _e in Ce)Ta(fe.prototype,_e,Ce[_e])})(oe),oe.extend=N.extend,oe.mixin=N.mixin,oe.use=N.use,Kt.forEach((function(fe){oe[fe]=N[fe]})),q&&(oe.options.components[q]=oe),oe.superOptions=N.options,oe.extendOptions=S,oe.sealedOptions=re({},oe.options),Z[M]=oe,oe}}function ba(y){return y&&(lc(y.Ctor.options)||y.tag)}function hc(y,E){return n(y)?y.indexOf(E)>-1:typeof y=="string"?y.split(",").indexOf(E)>-1:(S=y,c.call(S)==="[object RegExp]"&&y.test(E));var S}function Ga(y,E){const{cache:S,keys:N,_vnode:M,$vnode:Z}=y;for(const q in S){const oe=S[q];if(oe){const fe=oe.name;fe&&!E(fe)&&pc(S,q,N,M)}}Z.componentOptions.children=void 0}function pc(y,E,S,N){const M=y[E];!M||N&&M.tag===N.tag||M.componentInstance.$destroy(),y[E]=null,k(S,E)}(function(y){y.prototype._init=function(E){const S=this;S._uid=mm++,S._isVue=!0,S.__v_skip=!0,S._scope=new Pn(!0),S._scope.parent=void 0,S._scope._vm=!0,E&&E._isComponent?(function(N,M){const Z=N.$options=Object.create(N.constructor.options),q=M._parentVnode;Z.parent=M.parent,Z._parentVnode=q;const oe=q.componentOptions;Z.propsData=oe.propsData,Z._parentListeners=oe.listeners,Z._renderChildren=oe.children,Z._componentTag=oe.tag,M.render&&(Z.render=M.render,Z.staticRenderFns=M.staticRenderFns)})(S,E):S.$options=Hl(dc(S.constructor),E||{},S),S._renderProxy=S,S._self=S,(function(N){const M=N.$options;let Z=M.parent;if(Z&&!M.abstract){for(;Z.$options.abstract&&Z.$parent;)Z=Z.$parent;Z.$children.push(N)}N.$parent=Z,N.$root=Z?Z.$root:N,N.$children=[],N.$refs={},N._provided=Z?Z._provided:Object.create(null),N._watcher=null,N._inactive=null,N._directInactive=!1,N._isMounted=!1,N._isDestroyed=!1,N._isBeingDestroyed=!1})(S),(function(N){N._events=Object.create(null),N._hasHookEvent=!1;const M=N.$options._parentListeners;M&&R0(N,M)})(S),(function(N){N._vnode=null,N._staticTrees=null;const M=N.$options,Z=N.$vnode=M._parentVnode,q=Z&&Z.context;N.$slots=sn(M._renderChildren,q),N.$scopedSlots=Z?Ri(N.$parent,Z.data.scopedSlots,N.$slots):r,N._c=(fe,Ce,_e,Je)=>hs(N,fe,Ce,_e,Je,!1),N.$createElement=(fe,Ce,_e,Je)=>hs(N,fe,Ce,_e,Je,!0);const oe=Z&&Z.data;J(N,"$attrs",oe&&oe.attrs||r,null,!0),J(N,"$listeners",M._parentListeners||r,null,!0)})(S),Un(S,"beforeCreate",void 0,!1),(function(N){const M=I0(N.$options.inject,N);M&&(_(!1),Object.keys(M).forEach((Z=>{J(N,Z,M[Z])})),_(!0))})(S),pm(S),(function(N){const M=N.$options.provide;if(M){const Z=l(M)?M.call(N):M;if(!u(Z))return;const q=Qe(N),oe=ut?Reflect.ownKeys(Z):Object.keys(Z);for(let fe=0;fe<oe.length;fe++){const Ce=oe[fe];Object.defineProperty(q,Ce,Object.getOwnPropertyDescriptor(Z,Ce))}}})(S),Un(S,"created"),S.$options.el&&S.$mount(S.$options.el)}})(zn),(function(y){const E={get:function(){return this._data}},S={get:function(){return this._props}};Object.defineProperty(y.prototype,"$data",E),Object.defineProperty(y.prototype,"$props",S),y.prototype.$set=Zt,y.prototype.$delete=je,y.prototype.$watch=function(N,M,Z){const q=this;if(d(M))return z0(q,N,M,Z);(Z=Z||{}).user=!0;const oe=new Ln(q,N,M,Z);if(Z.immediate){const fe=`callback for immediate watcher "${oe.expression}"`;vt(),Tt(M,q,[oe.value],q,fe),Mt()}return function(){oe.teardown()}}})(zn),(function(y){const E=/^hook:/;y.prototype.$on=function(S,N){const M=this;if(n(S))for(let Z=0,q=S.length;Z<q;Z++)M.$on(S[Z],N);else(M._events[S]||(M._events[S]=[])).push(N),E.test(S)&&(M._hasHookEvent=!0);return M},y.prototype.$once=function(S,N){const M=this;function Z(){M.$off(S,Z),N.apply(M,arguments)}return Z.fn=N,M.$on(S,Z),M},y.prototype.$off=function(S,N){const M=this;if(!arguments.length)return M._events=Object.create(null),M;if(n(S)){for(let fe=0,Ce=S.length;fe<Ce;fe++)M.$off(S[fe],N);return M}const Z=M._events[S];if(!Z)return M;if(!N)return M._events[S]=null,M;let q,oe=Z.length;for(;oe--;)if(q=Z[oe],q===N||q.fn===N){Z.splice(oe,1);break}return M},y.prototype.$emit=function(S){const N=this;let M=N._events[S];if(M){M=M.length>1?he(M):M;const Z=he(arguments,1),q=`event handler for "${S}"`;for(let oe=0,fe=M.length;oe<fe;oe++)Tt(M[oe],N,Z,N,q)}return N}})(zn),(function(y){y.prototype._update=function(E,S){const N=this,M=N.$el,Z=N._vnode,q=ps(N);N._vnode=E,N.$el=Z?N.__patch__(Z,E):N.__patch__(N.$el,E,S,!1),q(),M&&(M.__vue__=null),N.$el&&(N.$el.__vue__=N);let oe=N;for(;oe&&oe.$vnode&&oe.$parent&&oe.$vnode===oe.$parent._vnode;)oe.$parent.$el=oe.$el,oe=oe.$parent},y.prototype.$forceUpdate=function(){const E=this;E._watcher&&E._watcher.update()},y.prototype.$destroy=function(){const E=this;if(E._isBeingDestroyed)return;Un(E,"beforeDestroy"),E._isBeingDestroyed=!0;const S=E.$parent;!S||S._isBeingDestroyed||E.$options.abstract||k(S.$children,E),E._scope.stop(),E._data.__ob__&&E._data.__ob__.vmCount--,E._isDestroyed=!0,E.__patch__(E._vnode,null),Un(E,"destroyed"),E.$off(),E.$el&&(E.$el.__vue__=null),E.$vnode&&(E.$vnode.parent=null)}})(zn),(function(y){Ha(y.prototype),y.prototype.$nextTick=function(E){return Bn(E,this)},y.prototype._render=function(){const E=this,{render:S,_parentVnode:N}=E.$options;N&&E._isMounted&&(E.$scopedSlots=Ri(E.$parent,N.data.scopedSlots,E.$slots,E.$scopedSlots),E._slotsProxy&&Or(E._slotsProxy,E.$scopedSlots)),E.$vnode=N;const M=Le,Z=Ar;let q;try{de(E),Ar=E,q=S.call(E._renderProxy,E.$createElement)}catch(oe){Ho(oe,E,"render"),q=E._vnode}finally{Ar=Z,de(M)}return n(q)&&q.length===1&&(q=q[0]),q instanceof We||(q=Sr()),q.parent=N,q}})(zn);const va=[String,RegExp,Array];var b5={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:va,exclude:va,max:[String,Number]},methods:{cacheVNode(){const{cache:y,keys:E,vnodeToCache:S,keyToCache:N}=this;if(S){const{tag:M,componentInstance:Z,componentOptions:q}=S;y[N]={name:ba(q),tag:M,componentInstance:Z},E.push(N),this.max&&E.length>parseInt(this.max)&&pc(y,E[0],E,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const y in this.cache)pc(this.cache,y,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",(y=>{Ga(this,(E=>hc(y,E)))})),this.$watch("exclude",(y=>{Ga(this,(E=>!hc(y,E)))}))},updated(){this.cacheVNode()},render(){const y=this.$slots.default,E=Bi(y),S=E&&E.componentOptions;if(S){const N=ba(S),{include:M,exclude:Z}=this;if(M&&(!N||!hc(M,N))||Z&&N&&hc(Z,N))return E;const{cache:q,keys:oe}=this,fe=E.key==null?S.Ctor.cid+(S.tag?`::${S.tag}`:""):E.key;q[fe]?(E.componentInstance=q[fe].componentInstance,k(oe,fe),oe.push(fe)):(this.vnodeToCache=E,this.keyToCache=fe),E.data.keepAlive=!0}return E||y&&y[0]}}};(function(y){Object.defineProperty(y,"config",{get:()=>Ot}),y.util={warn:uc,extend:re,mergeOptions:Hl,defineReactive:J},y.set=Zt,y.delete=je,y.nextTick=Bn,y.observable=E=>(z(E),E),y.options=Object.create(null),Kt.forEach((E=>{y.options[E+"s"]=Object.create(null)})),y.options._base=y,re(y.options.components,b5),(function(E){E.use=function(S){const N=this._installedPlugins||(this._installedPlugins=[]);if(N.indexOf(S)>-1)return this;const M=he(arguments,1);return M.unshift(this),l(S.install)?S.install.apply(S,M):l(S)&&S.apply(null,M),N.push(S),this}})(y),(function(E){E.mixin=function(S){return this.options=Hl(this.options,S),this}})(y),gm(y),(function(E){Kt.forEach((S=>{E[S]=function(N,M){return M?(S==="component"&&d(M)&&(M.name=M.name||N,M=this.options._base.extend(M)),S==="directive"&&l(M)&&(M={bind:M,update:M}),this.options[S+"s"][N]=M,M):this.options[S+"s"][N]}}))})(y)})(zn),Object.defineProperty(zn.prototype,"$isServer",{get:Pe}),Object.defineProperty(zn.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(zn,"FunctionalRenderContext",{value:ga}),zn.version=ot;const qa=w("style,class"),ym=w("input,textarea,option,select,progress"),Tm=w("contenteditable,draggable,spellcheck"),bm=w("events,caret,typing,plaintext-only"),v5=(y,E)=>mc(E)||E==="false"?"false":y==="contenteditable"&&bm(E)?E:"true",vm=w("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"),Ad="http://www.w3.org/1999/xlink",fc=y=>y.charAt(5)===":"&&y.slice(0,5)==="xlink",vp=y=>fc(y)?y.slice(6,y.length):"",mc=y=>y==null||y===!1;function Am(y){let E=y.data,S=y,N=y;for(;o(N.componentInstance);)N=N.componentInstance._vnode,N&&N.data&&(E=Ap(N.data,E));for(;o(S=S.parent);)S&&S.data&&(E=Ap(E,S.data));return(function(M,Z){return o(M)||o(Z)?gc(M,yc(Z)):""})(E.staticClass,E.class)}function Ap(y,E){return{staticClass:gc(y.staticClass,E.staticClass),class:o(y.class)?[y.class,E.class]:E.class}}function gc(y,E){return y?E?y+" "+E:y:E||""}function yc(y){return Array.isArray(y)?(function(E){let S,N="";for(let M=0,Z=E.length;M<Z;M++)o(S=yc(E[M]))&&S!==""&&(N&&(N+=" "),N+=S);return N})(y):u(y)?(function(E){let S="";for(const N in E)E[N]&&(S&&(S+=" "),S+=N);return S})(y):typeof y=="string"?y:""}const Em={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},wm=w("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"),Ed=w("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),Sm=y=>wm(y)||Ed(y),Y0=Object.create(null),wd=w("text,number,password,search,email,tel,url");var Dm=Object.freeze({__proto__:null,createElement:function(y,E){const S=document.createElement(y);return y!=="select"||E.data&&E.data.attrs&&E.data.attrs.multiple!==void 0&&S.setAttribute("multiple","multiple"),S},createElementNS:function(y,E){return document.createElementNS(Em[y],E)},createTextNode:function(y){return document.createTextNode(y)},createComment:function(y){return document.createComment(y)},insertBefore:function(y,E,S){y.insertBefore(E,S)},removeChild:function(y,E){y.removeChild(E)},appendChild:function(y,E){y.appendChild(E)},parentNode:function(y){return y.parentNode},nextSibling:function(y){return y.nextSibling},tagName:function(y){return y.tagName},setTextContent:function(y,E){y.textContent=E},setStyleScope:function(y,E){y.setAttribute(E,"")}}),xm={create(y,E){gs(E)},update(y,E){y.data.ref!==E.data.ref&&(gs(y,!0),gs(E))},destroy(y){gs(y,!0)}};function gs(y,E){const S=y.data.ref;if(!o(S))return;const N=y.context,M=y.componentInstance||y.elm,Z=E?null:M,q=E?void 0:M;if(l(S))return void Tt(S,N,[Z],N,"template ref function");const oe=y.data.refInFor,fe=typeof S=="string"||typeof S=="number",Ce=Rr(S),_e=N.$refs;if(fe||Ce){if(oe){const Je=fe?_e[S]:S.value;E?n(Je)&&k(Je,M):n(Je)?Je.includes(M)||Je.push(M):fe?(_e[S]=[M],H0(N,S,_e[S])):S.value=[M]}else if(fe){if(E&&_e[S]!==M)return;_e[S]=q,H0(N,S,Z)}else if(Ce){if(E&&S.value!==M)return;S.value=Z}}}function H0({_setupState:y},E,S){y&&O(y,E)&&(Rr(y[E])?y[E].value=S:y[E]=S)}const Wa=new We("",{},[]),Tc=["create","activate","update","remove","destroy"];function Ka(y,E){return y.key===E.key&&y.asyncFactory===E.asyncFactory&&(y.tag===E.tag&&y.isComment===E.isComment&&o(y.data)===o(E.data)&&(function(S,N){if(S.tag!=="input")return!0;let M;const Z=o(M=S.data)&&o(M=M.attrs)&&M.type,q=o(M=N.data)&&o(M=M.attrs)&&M.type;return Z===q||wd(Z)&&wd(q)})(y,E)||s(y.isAsyncPlaceholder)&&i(E.asyncFactory.error))}function A5(y,E,S){let N,M;const Z={};for(N=E;N<=S;++N)M=y[N].key,o(M)&&(Z[M]=N);return Z}var km={create:Sd,update:Sd,destroy:function(y){Sd(y,Wa)}};function Sd(y,E){(y.data.directives||E.data.directives)&&(function(S,N){const M=S===Wa,Z=N===Wa,q=Ep(S.data.directives,S.context),oe=Ep(N.data.directives,N.context),fe=[],Ce=[];let _e,Je,Ue;for(_e in oe)Je=q[_e],Ue=oe[_e],Je?(Ue.oldValue=Je.value,Ue.oldArg=Je.arg,P0(Ue,"update",N,S),Ue.def&&Ue.def.componentUpdated&&Ce.push(Ue)):(P0(Ue,"bind",N,S),Ue.def&&Ue.def.inserted&&fe.push(Ue));if(fe.length){const wt=()=>{for(let kt=0;kt<fe.length;kt++)P0(fe[kt],"inserted",N,S)};M?$r(N,"insert",wt):wt()}if(Ce.length&&$r(N,"postpatch",(()=>{for(let wt=0;wt<Ce.length;wt++)P0(Ce[wt],"componentUpdated",N,S)})),!M)for(_e in q)oe[_e]||P0(q[_e],"unbind",S,S,Z)})(y,E)}const E5=Object.create(null);function Ep(y,E){const S=Object.create(null);if(!y)return S;let N,M;for(N=0;N<y.length;N++){if(M=y[N],M.modifiers||(M.modifiers=E5),S[w5(M)]=M,E._setupState&&E._setupState.__sfc){const Z=M.def||cc(E,"_setupState","v-"+M.name);M.def=typeof Z=="function"?{bind:Z,update:Z}:Z}M.def=M.def||cc(E.$options,"directives",M.name)}return S}function w5(y){return y.rawName||`${y.name}.${Object.keys(y.modifiers||{}).join(".")}`}function P0(y,E,S,N,M){const Z=y.def&&y.def[E];if(Z)try{Z(S.elm,y,S,N,M)}catch(q){Ho(q,S.context,`directive ${y.name} ${E} hook`)}}var wp=[xm,km];function Dd(y,E){const S=E.componentOptions;if(o(S)&&S.Ctor.options.inheritAttrs===!1||i(y.data.attrs)&&i(E.data.attrs))return;let N,M,Z;const q=E.elm,oe=y.data.attrs||{};let fe=E.data.attrs||{};for(N in(o(fe.__ob__)||s(fe._v_attr_proxy))&&(fe=E.data.attrs=re({},fe)),fe)M=fe[N],Z=oe[N],Z!==M&&Sp(q,N,M,E.data.pre);for(N in(Yt||Gr)&&fe.value!==oe.value&&Sp(q,"value",fe.value),oe)i(fe[N])&&(fc(N)?q.removeAttributeNS(Ad,vp(N)):Tm(N)||q.removeAttribute(N))}function Sp(y,E,S,N){N||y.tagName.indexOf("-")>-1?Dp(y,E,S):vm(E)?mc(S)?y.removeAttribute(E):(S=E==="allowfullscreen"&&y.tagName==="EMBED"?"true":E,y.setAttribute(E,S)):Tm(E)?y.setAttribute(E,v5(E,S)):fc(E)?mc(S)?y.removeAttributeNS(Ad,vp(E)):y.setAttributeNS(Ad,E,S):Dp(y,E,S)}function Dp(y,E,S){if(mc(S))y.removeAttribute(E);else{if(Yt&&!vr&&y.tagName==="TEXTAREA"&&E==="placeholder"&&S!==""&&!y.__ieph){const N=M=>{M.stopImmediatePropagation(),y.removeEventListener("input",N)};y.addEventListener("input",N),y.__ieph=!0}y.setAttribute(E,S)}}var Cm={create:Dd,update:Dd};function _m(y,E){const S=E.elm,N=E.data,M=y.data;if(i(N.staticClass)&&i(N.class)&&(i(M)||i(M.staticClass)&&i(M.class)))return;let Z=Am(E);const q=S._transitionClasses;o(q)&&(Z=gc(Z,yc(q))),Z!==S._prevClass&&(S.setAttribute("class",Z),S._prevClass=Z)}var Nm={create:_m,update:_m};const xd="__r",xp="__c";let ys;function kp(y,E,S){const N=ys;return function M(){E.apply(null,arguments)!==null&&Om(y,M,S,N)}}const Fm=Ii&&!(Ft&&Number(Ft[1])<=53);function S5(y,E,S,N){if(Fm){const M=lo,Z=E;E=Z._wrapper=function(q){if(q.target===q.currentTarget||q.timeStamp>=M||q.timeStamp<=0||q.target.ownerDocument!==document)return Z.apply(this,arguments)}}ys.addEventListener(y,E,se?{capture:S,passive:N}:S)}function Om(y,E,S,N){(N||ys).removeEventListener(y,E._wrapper||E,S)}function Cp(y,E){if(i(y.data.on)&&i(E.data.on))return;const S=E.data.on||{},N=y.data.on||{};ys=E.elm||y.elm,(function(M){if(o(M[xd])){const Z=Yt?"change":"input";M[Z]=[].concat(M[xd],M[Z]||[]),delete M[xd]}o(M[xp])&&(M.change=[].concat(M[xp],M.change||[]),delete M[xp])})(S),Br(S,N,S5,Om,kp,E.context),ys=void 0}var _p={create:Cp,update:Cp,destroy:y=>Cp(y,Wa)};let kd;function Mm(y,E){if(i(y.data.domProps)&&i(E.data.domProps))return;let S,N;const M=E.elm,Z=y.data.domProps||{};let q=E.data.domProps||{};for(S in(o(q.__ob__)||s(q._v_attr_proxy))&&(q=E.data.domProps=re({},q)),Z)S in q||(M[S]="");for(S in q){if(N=q[S],S==="textContent"||S==="innerHTML"){if(E.children&&(E.children.length=0),N===Z[S])continue;M.childNodes.length===1&&M.removeChild(M.childNodes[0])}if(S==="value"&&M.tagName!=="PROGRESS"){M._value=N;const oe=i(N)?"":String(N);Rm(M,oe)&&(M.value=oe)}else if(S==="innerHTML"&&Ed(M.tagName)&&i(M.innerHTML)){kd=kd||document.createElement("div"),kd.innerHTML=`<svg>${N}</svg>`;const oe=kd.firstChild;for(;M.firstChild;)M.removeChild(M.firstChild);for(;oe.firstChild;)M.appendChild(oe.firstChild)}else if(N!==Z[S])try{M[S]=N}catch{}}}function Rm(y,E){return!y.composing&&(y.tagName==="OPTION"||(function(S,N){let M=!0;try{M=document.activeElement!==S}catch{}return M&&S.value!==N})(y,E)||(function(S,N){const M=S.value,Z=S._vModifiers;if(o(Z)){if(Z.number)return v(M)!==v(N);if(Z.trim)return M.trim()!==N.trim()}return M!==N})(y,E))}var D5={create:Mm,update:Mm};const Bm=P((function(y){const E={},S=/:(.+)/;return y.split(/;(?![^(]*\))/g).forEach((function(N){if(N){const M=N.split(S);M.length>1&&(E[M[0].trim()]=M[1].trim())}})),E}));function Np(y){const E=Q(y.style);return y.staticStyle?re(y.staticStyle,E):E}function Q(y){return Array.isArray(y)?Ee(y):typeof y=="string"?Bm(y):y}const Im=/^--/,Cd=/\s*!important$/,Fp=(y,E,S)=>{if(Im.test(E))y.style.setProperty(E,S);else if(Cd.test(S))y.style.setProperty(I(E),S.replace(Cd,""),"important");else{const N=Lm(E);if(Array.isArray(S))for(let M=0,Z=S.length;M<Z;M++)y.style[N]=S[M];else y.style[N]=S}},_d=["Webkit","Moz","ms"];let bc;const Lm=P((function(y){if(bc=bc||document.createElement("div").style,(y=W(y))!=="filter"&&y in bc)return y;const E=y.charAt(0).toUpperCase()+y.slice(1);for(let S=0;S<_d.length;S++){const N=_d[S]+E;if(N in bc)return N}}));function zm(y,E){const S=E.data,N=y.data;if(i(S.staticStyle)&&i(S.style)&&i(N.staticStyle)&&i(N.style))return;let M,Z;const q=E.elm,oe=N.staticStyle,fe=N.normalizedStyle||N.style||{},Ce=oe||fe,_e=Q(E.data.style)||{};E.data.normalizedStyle=o(_e.__ob__)?re({},_e):_e;const Je=(function(Ue,wt){const kt={};let $t;{let _r=Ue;for(;_r.componentInstance;)_r=_r.componentInstance._vnode,_r&&_r.data&&($t=Np(_r.data))&&re(kt,$t)}($t=Np(Ue.data))&&re(kt,$t);let It=Ue;for(;It=It.parent;)It.data&&($t=Np(It.data))&&re(kt,$t);return kt})(E);for(Z in Ce)i(Je[Z])&&Fp(q,Z,"");for(Z in Je)M=Je[Z],Fp(q,Z,M??"")}var Ym={create:zm,update:zm};const Op=/\s+/;function vc(y,E){if(E&&(E=E.trim()))if(y.classList)E.indexOf(" ")>-1?E.split(Op).forEach((S=>y.classList.add(S))):y.classList.add(E);else{const S=` ${y.getAttribute("class")||""} `;S.indexOf(" "+E+" ")<0&&y.setAttribute("class",(S+E).trim())}}function Hm(y,E){if(E&&(E=E.trim()))if(y.classList)E.indexOf(" ")>-1?E.split(Op).forEach((S=>y.classList.remove(S))):y.classList.remove(E),y.classList.length||y.removeAttribute("class");else{let S=` ${y.getAttribute("class")||""} `;const N=" "+E+" ";for(;S.indexOf(N)>=0;)S=S.replace(N," ");S=S.trim(),S?y.setAttribute("class",S):y.removeAttribute("class")}}function Nd(y){if(y){if(typeof y=="object"){const E={};return y.css!==!1&&re(E,Mp(y.name||"v")),re(E,y),E}return typeof y=="string"?Mp(y):void 0}}const Mp=P((y=>({enterClass:`${y}-enter`,enterToClass:`${y}-enter-to`,enterActiveClass:`${y}-enter-active`,leaveClass:`${y}-leave`,leaveToClass:`${y}-leave-to`,leaveActiveClass:`${y}-leave-active`}))),Pm=pt&&!vr,Z0="transition",Fd="animation";let $0="transition",Od="transitionend",Rp="animation",g="animationend";Pm&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&($0="WebkitTransition",Od="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(Rp="WebkitAnimation",g="webkitAnimationEnd"));const T=pt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:y=>y();function b(y){T((()=>{T(y)}))}function A(y,E){const S=y._transitionClasses||(y._transitionClasses=[]);S.indexOf(E)<0&&(S.push(E),vc(y,E))}function C(y,E){y._transitionClasses&&k(y._transitionClasses,E),Hm(y,E)}function L(y,E,S){const{type:N,timeout:M,propCount:Z}=K(y,E);if(!N)return S();const q=N===Z0?Od:g;let oe=0;const fe=()=>{y.removeEventListener(q,Ce),S()},Ce=_e=>{_e.target===y&&++oe>=Z&&fe()};setTimeout((()=>{oe<Z&&fe()}),M+1),y.addEventListener(q,Ce)}const H=/\b(transform|all)(,|$)/;function K(y,E){const S=window.getComputedStyle(y),N=(S[$0+"Delay"]||"").split(", "),M=(S[$0+"Duration"]||"").split(", "),Z=X(N,M),q=(S[Rp+"Delay"]||"").split(", "),oe=(S[Rp+"Duration"]||"").split(", "),fe=X(q,oe);let Ce,_e=0,Je=0;return E===Z0?Z>0&&(Ce=Z0,_e=Z,Je=M.length):E===Fd?fe>0&&(Ce=Fd,_e=fe,Je=oe.length):(_e=Math.max(Z,fe),Ce=_e>0?Z>fe?Z0:Fd:null,Je=Ce?Ce===Z0?M.length:oe.length:0),{type:Ce,timeout:_e,propCount:Je,hasTransform:Ce===Z0&&H.test(S[$0+"Property"])}}function X(y,E){for(;y.length<E.length;)y=y.concat(y);return Math.max.apply(null,E.map(((S,N)=>Te(S)+Te(y[N]))))}function Te(y){return 1e3*Number(y.slice(0,-1).replace(",","."))}function ve(y,E){const S=y.elm;o(S._leaveCb)&&(S._leaveCb.cancelled=!0,S._leaveCb());const N=Nd(y.data.transition);if(i(N)||o(S._enterCb)||S.nodeType!==1)return;const{css:M,type:Z,enterClass:q,enterToClass:oe,enterActiveClass:fe,appearClass:Ce,appearToClass:_e,appearActiveClass:Je,beforeEnter:Ue,enter:wt,afterEnter:kt,enterCancelled:$t,beforeAppear:It,appear:_r,afterAppear:Kr,appearCancelled:an,duration:Tn}=N;let Ys=Is,Li=Is.$vnode;for(;Li&&Li.parent;)Ys=Li.context,Li=Li.parent;const Fe=!Ys._isMounted||!y.isRootInsert;if(Fe&&!_r&&_r!=="")return;const Ie=Fe&&Ce?Ce:q,Rt=Fe&&Je?Je:fe,dr=Fe&&_e?_e:oe,Qr=Fe&&It||Ue,wn=Fe&&l(_r)?_r:wt,ln=Fe&&Kr||kt,nn=Fe&&an||$t,li=v(u(Tn)?Tn.enter:Tn),Sn=M!==!1&&!vr,Jr=rt(wn),xi=S._enterCb=ct((()=>{Sn&&(C(S,dr),C(S,Rt)),xi.cancelled?(Sn&&C(S,Ie),nn&&nn(S)):ln&&ln(S),S._enterCb=null}));y.data.show||$r(y,"insert",(()=>{const un=S.parentNode,Yr=un&&un._pending&&un._pending[y.key];Yr&&Yr.tag===y.tag&&Yr.elm._leaveCb&&Yr.elm._leaveCb(),wn&&wn(S,xi)})),Qr&&Qr(S),Sn&&(A(S,Ie),A(S,Rt),b((()=>{C(S,Ie),xi.cancelled||(A(S,dr),Jr||(Ke(li)?setTimeout(xi,li):L(S,Z,xi)))}))),y.data.show&&(E&&E(),wn&&wn(S,xi)),Sn||Jr||xi()}function Ne(y,E){const S=y.elm;o(S._enterCb)&&(S._enterCb.cancelled=!0,S._enterCb());const N=Nd(y.data.transition);if(i(N)||S.nodeType!==1)return E();if(o(S._leaveCb))return;const{css:M,type:Z,leaveClass:q,leaveToClass:oe,leaveActiveClass:fe,beforeLeave:Ce,leave:_e,afterLeave:Je,leaveCancelled:Ue,delayLeave:wt,duration:kt}=N,$t=M!==!1&&!vr,It=rt(_e),_r=v(u(kt)?kt.leave:kt),Kr=S._leaveCb=ct((()=>{S.parentNode&&S.parentNode._pending&&(S.parentNode._pending[y.key]=null),$t&&(C(S,oe),C(S,fe)),Kr.cancelled?($t&&C(S,q),Ue&&Ue(S)):(E(),Je&&Je(S)),S._leaveCb=null}));function an(){Kr.cancelled||(!y.data.show&&S.parentNode&&((S.parentNode._pending||(S.parentNode._pending={}))[y.key]=y),Ce&&Ce(S),$t&&(A(S,q),A(S,fe),b((()=>{C(S,q),Kr.cancelled||(A(S,oe),It||(Ke(_r)?setTimeout(Kr,_r):L(S,Z,Kr)))}))),_e&&_e(S,Kr),$t||It||Kr())}wt?wt(an):an()}function Ke(y){return typeof y=="number"&&!isNaN(y)}function rt(y){if(i(y))return!1;const E=y.fns;return o(E)?rt(Array.isArray(E)?E[0]:E):(y._length||y.length)>1}function yt(y,E){E.data.show!==!0&&ve(E)}const Nt=(function(y){let E,S;const N={},{modules:M,nodeOps:Z}=y;for(E=0;E<Tc.length;++E)for(N[Tc[E]]=[],S=0;S<M.length;++S)o(M[S][Tc[E]])&&N[Tc[E]].push(M[S][Tc[E]]);function q(Fe){const Ie=Z.parentNode(Fe);o(Ie)&&Z.removeChild(Ie,Fe)}function oe(Fe,Ie,Rt,dr,Qr,wn,ln){if(o(Fe.elm)&&o(wn)&&(Fe=wn[ln]=Wi(Fe)),Fe.isRootInsert=!Qr,(function(Jr,xi,un,Yr){let yi=Jr.data;if(o(yi)){const x5=o(Jr.componentInstance)&&yi.keepAlive;if(o(yi=yi.hook)&&o(yi=yi.init)&&yi(Jr,!1),o(Jr.componentInstance))return fe(Jr,xi),Ce(un,Jr.elm,Yr),s(x5)&&(function(Id,Ld,zd,Zm){let uo,zi=Id;for(;zi.componentInstance;)if(zi=zi.componentInstance._vnode,o(uo=zi.data)&&o(uo=uo.transition)){for(uo=0;uo<N.activate.length;++uo)N.activate[uo](Wa,zi);Ld.push(zi);break}Ce(zd,Id.elm,Zm)})(Jr,xi,un,Yr),!0}})(Fe,Ie,Rt,dr))return;const nn=Fe.data,li=Fe.children,Sn=Fe.tag;o(Sn)?(Fe.elm=Fe.ns?Z.createElementNS(Fe.ns,Sn):Z.createElement(Sn,Fe),wt(Fe),_e(Fe,li,Ie),o(nn)&&Ue(Fe,Ie),Ce(Rt,Fe.elm,dr)):s(Fe.isComment)?(Fe.elm=Z.createComment(Fe.text),Ce(Rt,Fe.elm,dr)):(Fe.elm=Z.createTextNode(Fe.text),Ce(Rt,Fe.elm,dr))}function fe(Fe,Ie){o(Fe.data.pendingInsert)&&(Ie.push.apply(Ie,Fe.data.pendingInsert),Fe.data.pendingInsert=null),Fe.elm=Fe.componentInstance.$el,Je(Fe)?(Ue(Fe,Ie),wt(Fe)):(gs(Fe),Ie.push(Fe))}function Ce(Fe,Ie,Rt){o(Fe)&&(o(Rt)?Z.parentNode(Rt)===Fe&&Z.insertBefore(Fe,Ie,Rt):Z.appendChild(Fe,Ie))}function _e(Fe,Ie,Rt){if(n(Ie))for(let dr=0;dr<Ie.length;++dr)oe(Ie[dr],Rt,Fe.elm,null,!0,Ie,dr);else a(Fe.text)&&Z.appendChild(Fe.elm,Z.createTextNode(String(Fe.text)))}function Je(Fe){for(;Fe.componentInstance;)Fe=Fe.componentInstance._vnode;return o(Fe.tag)}function Ue(Fe,Ie){for(let Rt=0;Rt<N.create.length;++Rt)N.create[Rt](Wa,Fe);E=Fe.data.hook,o(E)&&(o(E.create)&&E.create(Wa,Fe),o(E.insert)&&Ie.push(Fe))}function wt(Fe){let Ie;if(o(Ie=Fe.fnScopeId))Z.setStyleScope(Fe.elm,Ie);else{let Rt=Fe;for(;Rt;)o(Ie=Rt.context)&&o(Ie=Ie.$options._scopeId)&&Z.setStyleScope(Fe.elm,Ie),Rt=Rt.parent}o(Ie=Is)&&Ie!==Fe.context&&Ie!==Fe.fnContext&&o(Ie=Ie.$options._scopeId)&&Z.setStyleScope(Fe.elm,Ie)}function kt(Fe,Ie,Rt,dr,Qr,wn){for(;dr<=Qr;++dr)oe(Rt[dr],wn,Fe,Ie,!1,Rt,dr)}function $t(Fe){let Ie,Rt;const dr=Fe.data;if(o(dr))for(o(Ie=dr.hook)&&o(Ie=Ie.destroy)&&Ie(Fe),Ie=0;Ie<N.destroy.length;++Ie)N.destroy[Ie](Fe);if(o(Ie=Fe.children))for(Rt=0;Rt<Fe.children.length;++Rt)$t(Fe.children[Rt])}function It(Fe,Ie,Rt){for(;Ie<=Rt;++Ie){const dr=Fe[Ie];o(dr)&&(o(dr.tag)?(_r(dr),$t(dr)):q(dr.elm))}}function _r(Fe,Ie){if(o(Ie)||o(Fe.data)){let Rt;const dr=N.remove.length+1;for(o(Ie)?Ie.listeners+=dr:Ie=(function(Qr,wn){function ln(){--ln.listeners==0&&q(Qr)}return ln.listeners=wn,ln})(Fe.elm,dr),o(Rt=Fe.componentInstance)&&o(Rt=Rt._vnode)&&o(Rt.data)&&_r(Rt,Ie),Rt=0;Rt<N.remove.length;++Rt)N.remove[Rt](Fe,Ie);o(Rt=Fe.data.hook)&&o(Rt=Rt.remove)?Rt(Fe,Ie):Ie()}else q(Fe.elm)}function Kr(Fe,Ie,Rt,dr){for(let Qr=Rt;Qr<dr;Qr++){const wn=Ie[Qr];if(o(wn)&&Ka(Fe,wn))return Qr}}function an(Fe,Ie,Rt,dr,Qr,wn){if(Fe===Ie)return;o(Ie.elm)&&o(dr)&&(Ie=dr[Qr]=Wi(Ie));const ln=Ie.elm=Fe.elm;if(s(Fe.isAsyncPlaceholder))return void(o(Ie.asyncFactory.resolved)?Li(Fe.elm,Ie,Rt):Ie.isAsyncPlaceholder=!0);if(s(Ie.isStatic)&&s(Fe.isStatic)&&Ie.key===Fe.key&&(s(Ie.isCloned)||s(Ie.isOnce)))return void(Ie.componentInstance=Fe.componentInstance);let nn;const li=Ie.data;o(li)&&o(nn=li.hook)&&o(nn=nn.prepatch)&&nn(Fe,Ie);const Sn=Fe.children,Jr=Ie.children;if(o(li)&&Je(Ie)){for(nn=0;nn<N.update.length;++nn)N.update[nn](Fe,Ie);o(nn=li.hook)&&o(nn=nn.update)&&nn(Fe,Ie)}i(Ie.text)?o(Sn)&&o(Jr)?Sn!==Jr&&(function(xi,un,Yr,yi,x5){let Id,Ld,zd,Zm,uo=0,zi=0,Pl=un.length-1,bs=un[0],Ja=un[Pl],Xa=Yr.length-1,Uo=Yr[0],Yd=Yr[Xa];const k5=!x5;for(;uo<=Pl&&zi<=Xa;)i(bs)?bs=un[++uo]:i(Ja)?Ja=un[--Pl]:Ka(bs,Uo)?(an(bs,Uo,yi,Yr,zi),bs=un[++uo],Uo=Yr[++zi]):Ka(Ja,Yd)?(an(Ja,Yd,yi,Yr,Xa),Ja=un[--Pl],Yd=Yr[--Xa]):Ka(bs,Yd)?(an(bs,Yd,yi,Yr,Xa),k5&&Z.insertBefore(xi,bs.elm,Z.nextSibling(Ja.elm)),bs=un[++uo],Yd=Yr[--Xa]):Ka(Ja,Uo)?(an(Ja,Uo,yi,Yr,zi),k5&&Z.insertBefore(xi,Ja.elm,bs.elm),Ja=un[--Pl],Uo=Yr[++zi]):(i(Id)&&(Id=A5(un,uo,Pl)),Ld=o(Uo.key)?Id[Uo.key]:Kr(Uo,un,uo,Pl),i(Ld)?oe(Uo,yi,xi,bs.elm,!1,Yr,zi):(zd=un[Ld],Ka(zd,Uo)?(an(zd,Uo,yi,Yr,zi),un[Ld]=void 0,k5&&Z.insertBefore(xi,zd.elm,bs.elm)):oe(Uo,yi,xi,bs.elm,!1,Yr,zi)),Uo=Yr[++zi]);uo>Pl?(Zm=i(Yr[Xa+1])?null:Yr[Xa+1].elm,kt(xi,Zm,Yr,zi,Xa,yi)):zi>Xa&&It(un,uo,Pl)})(ln,Sn,Jr,Rt,wn):o(Jr)?(o(Fe.text)&&Z.setTextContent(ln,""),kt(ln,null,Jr,0,Jr.length-1,Rt)):o(Sn)?It(Sn,0,Sn.length-1):o(Fe.text)&&Z.setTextContent(ln,""):Fe.text!==Ie.text&&Z.setTextContent(ln,Ie.text),o(li)&&o(nn=li.hook)&&o(nn=nn.postpatch)&&nn(Fe,Ie)}function Tn(Fe,Ie,Rt){if(s(Rt)&&o(Fe.parent))Fe.parent.data.pendingInsert=Ie;else for(let dr=0;dr<Ie.length;++dr)Ie[dr].data.hook.insert(Ie[dr])}const Ys=w("attrs,class,staticClass,staticStyle,key");function Li(Fe,Ie,Rt,dr){let Qr;const{tag:wn,data:ln,children:nn}=Ie;if(dr=dr||ln&&ln.pre,Ie.elm=Fe,s(Ie.isComment)&&o(Ie.asyncFactory))return Ie.isAsyncPlaceholder=!0,!0;if(o(ln)&&(o(Qr=ln.hook)&&o(Qr=Qr.init)&&Qr(Ie,!0),o(Qr=Ie.componentInstance)))return fe(Ie,Rt),!0;if(o(wn)){if(o(nn))if(Fe.hasChildNodes())if(o(Qr=ln)&&o(Qr=Qr.domProps)&&o(Qr=Qr.innerHTML)){if(Qr!==Fe.innerHTML)return!1}else{let li=!0,Sn=Fe.firstChild;for(let Jr=0;Jr<nn.length;Jr++){if(!Sn||!Li(Sn,nn[Jr],Rt,dr)){li=!1;break}Sn=Sn.nextSibling}if(!li||Sn)return!1}else _e(Ie,nn,Rt);if(o(ln)){let li=!1;for(const Sn in ln)if(!Ys(Sn)){li=!0,Ue(Ie,Rt);break}!li&&ln.class&&Bt(ln.class)}}else Fe.data!==Ie.text&&(Fe.data=Ie.text);return!0}return function(Fe,Ie,Rt,dr){if(i(Ie))return void(o(Fe)&&$t(Fe));let Qr=!1;const wn=[];if(i(Fe))Qr=!0,oe(Ie,wn);else{const nn=o(Fe.nodeType);if(!nn&&Ka(Fe,Ie))an(Fe,Ie,wn,null,null,dr);else{if(nn){if(Fe.nodeType===1&&Fe.hasAttribute(Ye)&&(Fe.removeAttribute(Ye),Rt=!0),s(Rt)&&Li(Fe,Ie,wn))return Tn(Ie,wn,!0),Fe;ln=Fe,Fe=new We(Z.tagName(ln).toLowerCase(),{},[],void 0,ln)}const li=Fe.elm,Sn=Z.parentNode(li);if(oe(Ie,wn,li._leaveCb?null:Sn,Z.nextSibling(li)),o(Ie.parent)){let Jr=Ie.parent;const xi=Je(Ie);for(;Jr;){for(let un=0;un<N.destroy.length;++un)N.destroy[un](Jr);if(Jr.elm=Ie.elm,xi){for(let Yr=0;Yr<N.create.length;++Yr)N.create[Yr](Wa,Jr);const un=Jr.data.hook.insert;if(un.merged){const Yr=un.fns.slice(1);for(let yi=0;yi<Yr.length;yi++)Yr[yi]()}}else gs(Jr);Jr=Jr.parent}}o(Sn)?It([Fe],0,0):o(Fe.tag)&&$t(Fe)}}var ln;return Tn(Ie,wn,Qr),Ie.elm}})({nodeOps:Dm,modules:[Cm,Nm,_p,D5,Ym,pt?{create:yt,activate:yt,remove(y,E){y.data.show!==!0?Ne(y,E):E()}}:{}].concat(wp)});vr&&document.addEventListener("selectionchange",(()=>{const y=document.activeElement;y&&y.vmodel&&En(y,"input")}));const Gt={inserted(y,E,S,N){S.tag==="select"?(N.elm&&!N.elm._vOptions?$r(S,"postpatch",(()=>{Gt.componentUpdated(y,E,S)})):Tr(y,E,S.context),y._vOptions=[].map.call(y.options,Wr)):(S.tag==="textarea"||wd(y.type))&&(y._vModifiers=E.modifiers,E.modifiers.lazy||(y.addEventListener("compositionstart",gn),y.addEventListener("compositionend",yn),y.addEventListener("change",yn),vr&&(y.vmodel=!0)))},componentUpdated(y,E,S){if(S.tag==="select"){Tr(y,E,S.context);const N=y._vOptions,M=y._vOptions=[].map.call(y.options,Wr);M.some(((Z,q)=>!Ve(Z,N[q])))&&(y.multiple?E.value.some((Z=>rn(Z,M))):E.value!==E.oldValue&&rn(E.value,M))&&En(y,"change")}}};function Tr(y,E,S){Cr(y,E),(Yt||Gr)&&setTimeout((()=>{Cr(y,E)}),0)}function Cr(y,E,S){const N=E.value,M=y.multiple;if(M&&!Array.isArray(N))return;let Z,q;for(let oe=0,fe=y.options.length;oe<fe;oe++)if(q=y.options[oe],M)Z=it(N,Wr(q))>-1,q.selected!==Z&&(q.selected=Z);else if(Ve(Wr(q),N))return void(y.selectedIndex!==oe&&(y.selectedIndex=oe));M||(y.selectedIndex=-1)}function rn(y,E){return E.every((S=>!Ve(S,y)))}function Wr(y){return"_value"in y?y._value:y.value}function gn(y){y.target.composing=!0}function yn(y){y.target.composing&&(y.target.composing=!1,En(y.target,"input"))}function En(y,E){const S=document.createEvent("HTMLEvents");S.initEvent(E,!0,!0),y.dispatchEvent(S)}function gi(y){return!y.componentInstance||y.data&&y.data.transition?y:gi(y.componentInstance._vnode)}var Si={bind(y,{value:E},S){const N=(S=gi(S)).data&&S.data.transition,M=y.__vOriginalDisplay=y.style.display==="none"?"":y.style.display;E&&N?(S.data.show=!0,ve(S,(()=>{y.style.display=M}))):y.style.display=E?M:"none"},update(y,{value:E,oldValue:S},N){!E!=!S&&((N=gi(N)).data&&N.data.transition?(N.data.show=!0,E?ve(N,(()=>{y.style.display=y.__vOriginalDisplay})):Ne(N,(()=>{y.style.display="none"}))):y.style.display=E?y.__vOriginalDisplay:"none")},unbind(y,E,S,N,M){M||(y.style.display=y.__vOriginalDisplay)}},zr={model:Gt,show:Si};const So={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 zs(y){const E=y&&y.componentOptions;return E&&E.Ctor.options.abstract?zs(Bi(E.children)):y}function $o(y){const E={},S=y.$options;for(const M in S.propsData)E[M]=y[M];const N=S._parentListeners;for(const M in N)E[W(M)]=N[M];return E}function Di(y,E){if(/\d-keep-alive$/.test(E.tag))return y("keep-alive",{props:E.componentOptions.propsData})}const Qa=y=>y.tag||wo(y),Ts=y=>y.name==="show";var Ac={name:"transition",props:So,abstract:!0,render(y){let E=this.$slots.default;if(!E||(E=E.filter(Qa),!E.length))return;const S=this.mode,N=E[0];if((function(Ce){for(;Ce=Ce.parent;)if(Ce.data.transition)return!0})(this.$vnode))return N;const M=zs(N);if(!M)return N;if(this._leaving)return Di(y,N);const Z=`__transition-${this._uid}-`;M.key=M.key==null?M.isComment?Z+"comment":Z+M.tag:a(M.key)?String(M.key).indexOf(Z)===0?M.key:Z+M.key:M.key;const q=(M.data||(M.data={})).transition=$o(this),oe=this._vnode,fe=zs(oe);if(M.data.directives&&M.data.directives.some(Ts)&&(M.data.show=!0),fe&&fe.data&&!(function(Ce,_e){return _e.key===Ce.key&&_e.tag===Ce.tag})(M,fe)&&!wo(fe)&&(!fe.componentInstance||!fe.componentInstance._vnode.isComment)){const Ce=fe.data.transition=re({},q);if(S==="out-in")return this._leaving=!0,$r(Ce,"afterLeave",(()=>{this._leaving=!1,this.$forceUpdate()})),Di(y,N);if(S==="in-out"){if(wo(M))return oe;let _e;const Je=()=>{_e()};$r(q,"afterEnter",Je),$r(q,"enterCancelled",Je),$r(Ce,"delayLeave",(Ue=>{_e=Ue}))}}return N}};const Md=re({tag:String,moveClass:String},So);delete Md.mode;var U0={props:Md,beforeMount(){const y=this._update;this._update=(E,S)=>{const N=ps(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,N(),y.call(this,E,S)}},render(y){const E=this.tag||this.$vnode.data.tag||"span",S=Object.create(null),N=this.prevChildren=this.children,M=this.$slots.default||[],Z=this.children=[],q=$o(this);for(let oe=0;oe<M.length;oe++){const fe=M[oe];fe.tag&&fe.key!=null&&String(fe.key).indexOf("__vlist")!==0&&(Z.push(fe),S[fe.key]=fe,(fe.data||(fe.data={})).transition=q)}if(N){const oe=[],fe=[];for(let Ce=0;Ce<N.length;Ce++){const _e=N[Ce];_e.data.transition=q,_e.data.pos=_e.elm.getBoundingClientRect(),S[_e.key]?oe.push(_e):fe.push(_e)}this.kept=y(E,null,oe),this.removed=fe}return y(E,null,Z)},updated(){const y=this.prevChildren,E=this.moveClass||(this.name||"v")+"-move";y.length&&this.hasMove(y[0].elm,E)&&(y.forEach(V0),y.forEach(j0),y.forEach(Rd),this._reflow=document.body.offsetHeight,y.forEach((S=>{if(S.data.moved){const N=S.elm,M=N.style;A(N,E),M.transform=M.WebkitTransform=M.transitionDuration="",N.addEventListener(Od,N._moveCb=function Z(q){q&&q.target!==N||q&&!/transform$/.test(q.propertyName)||(N.removeEventListener(Od,Z),N._moveCb=null,C(N,E))})}})))},methods:{hasMove(y,E){if(!Pm)return!1;if(this._hasMove)return this._hasMove;const S=y.cloneNode();y._transitionClasses&&y._transitionClasses.forEach((M=>{Hm(S,M)})),vc(S,E),S.style.display="none",this.$el.appendChild(S);const N=K(S);return this.$el.removeChild(S),this._hasMove=N.hasTransform}}};function V0(y){y.elm._moveCb&&y.elm._moveCb(),y.elm._enterCb&&y.elm._enterCb()}function j0(y){y.data.newPos=y.elm.getBoundingClientRect()}function Rd(y){const E=y.data.pos,S=y.data.newPos,N=E.left-S.left,M=E.top-S.top;if(N||M){y.data.moved=!0;const Z=y.elm.style;Z.transform=Z.WebkitTransform=`translate(${N}px,${M}px)`,Z.transitionDuration="0s"}}var Bd={Transition:Ac,TransitionGroup:U0};return zn.config.mustUseProp=(y,E,S)=>S==="value"&&ym(y)&&E!=="button"||S==="selected"&&y==="option"||S==="checked"&&y==="input"||S==="muted"&&y==="video",zn.config.isReservedTag=Sm,zn.config.isReservedAttr=qa,zn.config.getTagNamespace=function(y){return Ed(y)?"svg":y==="math"?"math":void 0},zn.config.isUnknownElement=function(y){if(!pt)return!0;if(Sm(y))return!1;if(y=y.toLowerCase(),Y0[y]!=null)return Y0[y];const E=document.createElement(y);return y.indexOf("-")>-1?Y0[y]=E.constructor===window.HTMLUnknownElement||E.constructor===window.HTMLElement:Y0[y]=/HTMLUnknownElement/.test(E.toString())},re(zn.options.directives,zr),re(zn.options.components,Bd),zn.prototype.__patch__=pt?Nt:ge,zn.prototype.$mount=function(y,E){return(function(S,N,M){let Z;S.$el=N,S.$options.render||(S.$options.render=Sr),Un(S,"beforeMount"),Z=()=>{S._update(S._render(),M)},new Ln(S,Z,ge,{before(){S._isMounted&&!S._isDestroyed&&Un(S,"beforeUpdate")}},!0),M=!1;const q=S._preWatchers;if(q)for(let oe=0;oe<q.length;oe++)q[oe].run();return S.$vnode==null&&(S._isMounted=!0,Un(S,"mounted")),S})(this,y=y&&pt?(function(S){return typeof S=="string"?document.querySelector(S)||document.createElement("div"):S})(y):void 0,E)},pt&&setTimeout((()=>{}),0),re(zn,Jt),z6.exports=zn,z6.exports}var Zw;function kpe(){return Zw||(Zw=1,Hw.exports=xpe()),Hw.exports}var Zp={},$w;function Cpe(){if($w)return Zp;$w=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.isInstanceOf=void 0;const e=r=>n=>{if(!(n instanceof r))return`value should be an instance of ${r.name}`};return Zp.isInstanceOf=e,Zp}var $p={},Uw;function _pe(){if(Uw)return $p;Uw=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.isInteger=void 0;const e=r=>{if(typeof r!="number"||!Number.isInteger(r))return"value should be an integer"};return $p.isInteger=e,$p}var Up={},Vw;function Npe(){if(Vw)return Up;Vw=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.isOneOf=void 0;const e=r=>n=>{if(!r.includes(n))return`value should be one of "${r.join('", "')}"`};return Up.isOneOf=e,Up}var Vp={},jw;function Fpe(){if(jw)return Vp;jw=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.isSymbol=void 0;const e=r=>{if(typeof r!="symbol")return"value should be a symbol"};return Vp.isSymbol=e,Vp}var Gw;function pp(){return Gw||(Gw=1,(function(e){var r=fg&&fg.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.isSymbol=e.isOneOf=e.isInteger=e.isInstanceOf=e.vuePropValidator=void 0;const n=r(kpe());function i(u,...c){const d=u?[...c,u]:c;if(d.length!==0)return h=>{for(const p of d){const f=p(h);if(f)return typeof n.default=="object"&&"util"in n.default?n.default.util.warn(`${f} (received: '${String(h)}')`):console.warn(`${f} (received: '${String(h)}')`),!1}return!0}}e.vuePropValidator=i;var o=Cpe();Object.defineProperty(e,"isInstanceOf",{enumerable:!0,get:function(){return o.isInstanceOf}});var s=_pe();Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return s.isInteger}});var a=Npe();Object.defineProperty(e,"isOneOf",{enumerable:!0,get:function(){return a.isOneOf}});var l=Fpe();Object.defineProperty(e,"isSymbol",{enumerable:!0,get:function(){return l.isSymbol}})})(fg)),fg}var qw;function la(){if(qw)return Pp;qw=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.propOptionsGenerator=void 0;const e=pp(),r=(n,i,...o)=>({optional:{type:n,required:!1,default:void 0,validator:(0,e.vuePropValidator)(i,...o)},nullable:{type:n,required:!1,default:null,validator:(0,e.vuePropValidator)(i,...o)},withDefault:s=>({type:n,required:!1,default:s,validator:(0,e.vuePropValidator)(i,...o)}),required:{type:n,required:!0,validator:(0,e.vuePropValidator)(i,...o)}});return Pp.propOptionsGenerator=r,Pp}var Ww;function Ope(){if(Ww)return Hp;Ww=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.stringProp=void 0;const e=la(),r=n=>(0,e.propOptionsGenerator)(String,n);return Hp.stringProp=r,Hp}var jp={},Kw;function Mpe(){if(Kw)return jp;Kw=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.booleanProp=void 0;const e=la(),r=n=>(0,e.propOptionsGenerator)(Boolean,n);return jp.booleanProp=r,jp}var Gp={},Qw;function Rpe(){if(Qw)return Gp;Qw=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.numberProp=void 0;const e=la(),r=n=>(0,e.propOptionsGenerator)(Number,n);return Gp.numberProp=r,Gp}var qp={},Jw;function Bpe(){if(Jw)return qp;Jw=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.integerProp=void 0;const e=la(),r=pp(),n=i=>(0,e.propOptionsGenerator)(Number,i,r.isInteger);return qp.integerProp=n,qp}var Wp={},Xw;function Ipe(){if(Xw)return Wp;Xw=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.symbolProp=void 0;const e=la(),r=pp(),n=i=>(0,e.propOptionsGenerator)(void 0,i,r.isSymbol);return Wp.symbolProp=n,Wp}var Kp={},eS;function Lpe(){if(eS)return Kp;eS=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.vueComponentProp=void 0;const e=la(),r=n=>(0,e.propOptionsGenerator)([Object,String],n);return Kp.vueComponentProp=r,Kp}var Qp={},tS;function zpe(){if(tS)return Qp;tS=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.anyProp=void 0;const e=la(),r=n=>(0,e.propOptionsGenerator)(void 0,n);return Qp.anyProp=r,Qp}var Jp={},rS;function Ype(){if(rS)return Jp;rS=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.arrayProp=void 0;const e=la(),r=n=>(0,e.propOptionsGenerator)(Array,n);return Jp.arrayProp=r,Jp}var Xp={},nS;function Hpe(){if(nS)return Xp;nS=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.objectProp=void 0;const e=la(),r=n=>(0,e.propOptionsGenerator)(Object,n);return Xp.objectProp=r,Xp}var e1={},iS;function Ppe(){if(iS)return e1;iS=1,Object.defineProperty(e1,"__esModule",{value:!0}),e1.functionProp=void 0;const e=pp(),r=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 e1.functionProp=r,e1}var t1={},oS;function $M(){if(oS)return t1;oS=1,Object.defineProperty(t1,"__esModule",{value:!0}),t1.oneOfProp=void 0;const e=la(),r=pp(),n=o=>{const s=[...new Set(o.flatMap(a=>{var l;return a==null?[]:(l=a.constructor)!==null&&l!==void 0?l:[]}))];if(s.length!==0)return s.length===1?s[0]:s},i=(o,s)=>(0,e.propOptionsGenerator)(n(o),s,(0,r.isOneOf)(o));return t1.oneOfProp=i,t1}var r1={},sS;function Zpe(){if(sS)return r1;sS=1,Object.defineProperty(r1,"__esModule",{value:!0}),r1.oneOfObjectKeysProp=void 0;const e=$M(),r=(n,i)=>(0,e.oneOfProp)(Object.keys(n),i);return r1.oneOfObjectKeysProp=r,r1}var n1={},aS;function $pe(){if(aS)return n1;aS=1,Object.defineProperty(n1,"__esModule",{value:!0}),n1.oneOfTypesProp=void 0;const e=la(),r=(n,i)=>(0,e.propOptionsGenerator)(n,i);return n1.oneOfTypesProp=r,n1}var i1={},lS;function Upe(){if(lS)return i1;lS=1,Object.defineProperty(i1,"__esModule",{value:!0}),i1.instanceOfProp=void 0;const e=la(),r=pp(),n=(i,o)=>(0,e.propOptionsGenerator)(i,o,(0,r.isInstanceOf)(i));return i1.instanceOfProp=n,i1}var o1={},uS;function Vpe(){if(uS)return o1;uS=1,Object.defineProperty(o1,"__esModule",{value:!0}),o1.isNegative=void 0;const e=r=>{if(typeof r!="number"||r>=0||Number.isNaN(r))return"value should be a negative number"};return o1.isNegative=e,o1}var s1={},cS;function jpe(){if(cS)return s1;cS=1,Object.defineProperty(s1,"__esModule",{value:!0}),s1.isPositive=void 0;const e=r=>{if(typeof r!="number"||r<=0||Number.isNaN(r))return"value should be a positive number"};return s1.isPositive=e,s1}var a1={},dS;function Gpe(){if(dS)return a1;dS=1,Object.defineProperty(a1,"__esModule",{value:!0}),a1.isNonNegative=void 0;const e=r=>{if(typeof r!="number"||r<0||Number.isNaN(r))return"value should be a non-negative number"};return a1.isNonNegative=e,a1}var l1={},hS;function qpe(){if(hS)return l1;hS=1,Object.defineProperty(l1,"__esModule",{value:!0}),l1.isNonPositive=void 0;const e=r=>{if(typeof r!="number"||r>0||Number.isNaN(r))return"value should be a non-positive number"};return l1.isNonPositive=e,l1}var pS;function Wpe(){return pS||(pS=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 r=Ope();Object.defineProperty(e,"stringProp",{enumerable:!0,get:function(){return r.stringProp}});var n=Mpe();Object.defineProperty(e,"booleanProp",{enumerable:!0,get:function(){return n.booleanProp}});var i=Rpe();Object.defineProperty(e,"numberProp",{enumerable:!0,get:function(){return i.numberProp}});var o=Bpe();Object.defineProperty(e,"integerProp",{enumerable:!0,get:function(){return o.integerProp}});var s=Ipe();Object.defineProperty(e,"symbolProp",{enumerable:!0,get:function(){return s.symbolProp}});var a=Lpe();Object.defineProperty(e,"vueComponentProp",{enumerable:!0,get:function(){return a.vueComponentProp}});var l=zpe();Object.defineProperty(e,"anyProp",{enumerable:!0,get:function(){return l.anyProp}});var u=Ype();Object.defineProperty(e,"arrayProp",{enumerable:!0,get:function(){return u.arrayProp}});var c=Hpe();Object.defineProperty(e,"objectProp",{enumerable:!0,get:function(){return c.objectProp}});var d=Ppe();Object.defineProperty(e,"functionProp",{enumerable:!0,get:function(){return d.functionProp}});var h=$M();Object.defineProperty(e,"oneOfProp",{enumerable:!0,get:function(){return h.oneOfProp}});var p=Zpe();Object.defineProperty(e,"oneOfObjectKeysProp",{enumerable:!0,get:function(){return p.oneOfObjectKeysProp}});var f=$pe();Object.defineProperty(e,"oneOfTypesProp",{enumerable:!0,get:function(){return f.oneOfTypesProp}});var m=Upe();Object.defineProperty(e,"instanceOfProp",{enumerable:!0,get:function(){return m.instanceOfProp}});var v=Vpe();Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return v.isNegative}});var w=jpe();Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return w.isPositive}});var x=Gpe();Object.defineProperty(e,"isNonNegative",{enumerable:!0,get:function(){return x.isNonNegative}});var k=qpe();Object.defineProperty(e,"isNonPositive",{enumerable:!0,get:function(){return k.isNonPositive}})})(Yw)),Yw}var G0=Wpe(),Kpe={name:"EditorContent",props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(e){e&&e.options.element&&this.$nextTick(()=>{var r;const n=this.$el;!n||!((r=e.view.dom)!=null&&r.parentNode)||(n.append(...e.view.dom.parentNode.childNodes),e.contentComponent=this,e.setOptions({element:n}),e.createNodeViews())})}}},render(e){return e("div")},beforeDestroy(){var e;const{editor:r}=this;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!((e=r.view.dom)!=null&&e.parentNode)))return;const n=document.createElement("div");n.append(...r.view.dom.parentNode.childNodes),r.setOptions({element:n})}},rc={props:{as:{type:String,default:"div"}},render(e){return e(this.as,{style:{whiteSpace:"pre-wrap"},attrs:{"data-node-view-content":""}})}},Ia={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)}},T4=ea,L7=class{constructor(e,r){const n=typeof e=="function"?e:T4.extend(e);this.ref=new n(r).$mount()}get element(){return this.ref.$el}updateProps(e={}){var r,n,i;if(!this.ref.$props)return;const o=(i=(n=(r=this.ref.$props.editor)==null?void 0:r.contentComponent)==null?void 0:n.$options._base)!=null?i:T4,s=o.config.silent;o.config.silent=!0,Object.entries(e).forEach(([a,l])=>{this.ref.$props[a]=l}),o.config.silent=s}destroy(){this.ref.$destroy()}},Qpe={editor:G0.objectProp().required,node:G0.objectProp().required,decorations:G0.objectProp().required,selected:G0.booleanProp().required,extension:G0.objectProp().required,getPos:G0.functionProp().required,updateAttributes:G0.functionProp().required,deleteNode:G0.functionProp().required},Jpe=class extends x${mount(){var e,r;const n={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=T4.observable({value:this.getDecorationClasses()});const o=((r=(e=this.editor.contentComponent)==null?void 0:e.$options._base)!=null?r:T4).extend(this.component).extend({props:Object.keys(n),provide:()=>({onDragStart:i,decorationClasses:this.decorationClasses})});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new L7(o,{parent:this.editor.contentComponent,propsData:n})}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]")}handleSelectionUpdate(){const{from:e,to:r}=this.editor.state.selection,n=this.getPos();if(typeof n=="number")if(e<=n&&r>=n+this.node.nodeSize){if(this.renderer.ref.$props.selected)return;this.selectNode()}else{if(!this.renderer.ref.$props.selected)return;this.deselectNode()}}update(e,r,n){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=e,this.decorations=r,this.innerDecorations=n,this.options.update({oldNode:o,oldDecorations:s,newNode:e,newDecorations:r,oldInnerDecorations:a,innerDecorations:n,updateProps:()=>i({node:e,decorations:r,innerDecorations:n})})}return e.type!==this.node.type?!1:(e===this.node&&this.decorations===r&&this.innerDecorations===n||(this.node=e,this.decorations=r,this.innerDecorations=n,i({node:e,decorations:r,innerDecorations:n})),!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.flatMap(e=>e.type.attrs.class).join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}};function ua(e,r){return n=>n.editor.contentComponent?new Jpe(e,n,r):{}}const Xpe={name:"NcUserBubbleDiv"};var e1e=function(){var e=this,r=e._self._c;return r("div",[e._t("trigger")],2)},t1e=[],r1e=qt(Xpe,e1e,t1e,!1,null,null);const n1e=r1e.exports,i1e={name:"NcUserBubble",components:{NcAvatar:mO,NcPopover:l3,NcUserBubbleDiv:n1e},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 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?u7:"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&&ea.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 o1e=function(){var e=this,r=e._self._c;return r(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[r(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),[r("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}}),r("span",{staticClass:"user-bubble__name"},[e._v(" "+e._s(e.displayName||e.user)+" ")]),e.$slots.name?r("span",{staticClass:"user-bubble__secondary"},[e._t("name")],2):e._e()],1)]}}],null,!0)},[e._t("default")],2)},s1e=[],a1e=qt(i1e,o1e,s1e,!1,null,"7942d6b6");const l1e=a1e.exports,u1e={name:"Mention",components:{NcUserBubble:l1e,NodeViewWrapper:Ia},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===kh()?.uid}}};var c1e=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{staticClass:"mention",attrs:{as:"span",contenteditable:"false"}},[r("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)},d1e=[],h1e=Ze(u1e,c1e,d1e,!1,null,"094c3bbc");const p1e=h1e.exports,f1e=Dpe.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:r}){return["span",gr({"data-type":"user",class:"mention"},this.options.HTMLAttributes,r),this.options.renderHTML({options:this.options,node:e})]},addNodeView(){return ua(p1e)},toMarkdown(e,r){e.write(`@[${r.attrs.label}](mention://user/${encodeURIComponent(r.attrs.id)})`)}});var GT,qT;if(typeof WeakMap<"u"){let e=new WeakMap;GT=r=>e.get(r),qT=(r,n)=>(e.set(r,n),n)}else{const e=[];let r=0;GT=n=>{for(let i=0;i<e.length;i+=2)if(e[i]==n)return e[i+1]},qT=(n,i)=>(r==10&&(r=0),e[r++]=n,e[r++]=i)}var ii=class{constructor(e,r,n,i){this.width=e,this.height=r,this.map=n,this.problems=i}findCell(e){for(let r=0;r<this.map.length;r++){const n=this.map[r];if(n!=e)continue;const i=r%this.width,o=r/this.width|0;let s=i+1,a=o+1;for(let l=1;s<this.width&&this.map[r+l]==n;l++)s++;for(let l=1;a<this.height&&this.map[r+this.width*l]==n;l++)a++;return{left:i,top:o,right:s,bottom:a}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let r=0;r<this.map.length;r++)if(this.map[r]==e)return r%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,r,n){const{left:i,right:o,top:s,bottom:a}=this.findCell(e);return r=="horiz"?(n<0?i==0:o==this.width)?null:this.map[s*this.width+(n<0?i-1:o)]:(n<0?s==0:a==this.height)?null:this.map[i+this.width*(n<0?s-1:a)]}rectBetween(e,r){const{left:n,right:i,top:o,bottom:s}=this.findCell(e),{left:a,right:l,top:u,bottom:c}=this.findCell(r);return{left:Math.min(n,a),top:Math.min(o,u),right:Math.max(i,l),bottom:Math.max(s,c)}}cellsInRect(e){const r=[],n={};for(let i=e.top;i<e.bottom;i++)for(let o=e.left;o<e.right;o++){const s=i*this.width+o,a=this.map[s];n[a]||(n[a]=!0,!(o==e.left&&o&&this.map[s-1]==a||i==e.top&&i&&this.map[s-this.width]==a)&&r.push(a))}return r}positionAt(e,r,n){for(let i=0,o=0;;i++){const s=o+n.child(i).nodeSize;if(i==e){let a=r+e*this.width;const l=(e+1)*this.width;for(;a<l&&this.map[a]<o;)a++;return a==l?s-1:this.map[a]}o=s}}static get(e){return GT(e)||qT(e,m1e(e))}};function m1e(e){if(e.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+e.type.name);const r=g1e(e),n=e.childCount,i=[];let o=0,s=null;const a=[];for(let c=0,d=r*n;c<d;c++)i[c]=0;for(let c=0,d=0;c<n;c++){const h=e.child(c);d++;for(let m=0;;m++){for(;o<i.length&&i[o]!=0;)o++;if(m==h.childCount)break;const v=h.child(m),{colspan:w,rowspan:x,colwidth:k}=v.attrs;for(let R=0;R<x;R++){if(R+c>=n){(s||(s=[])).push({type:"overlong_rowspan",pos:d,n:x-R});break}const O=o+R*r;for(let P=0;P<w;P++){i[O+P]==0?i[O+P]=d:(s||(s=[])).push({type:"collision",row:c,pos:d,n:w-P});const V=k&&k[P];if(V){const W=(O+P)%r*2,ie=a[W];ie==null||ie!=V&&a[W+1]==1?(a[W]=V,a[W+1]=1):ie==V&&a[W+1]++}}}o+=w,d+=v.nodeSize}const p=(c+1)*r;let f=0;for(;o<p;)i[o++]==0&&f++;f&&(s||(s=[])).push({type:"missing",row:c,n:f}),d++}(r===0||n===0)&&(s||(s=[])).push({type:"zero_sized"});const l=new ii(r,n,i,s);let u=!1;for(let c=0;!u&&c<a.length;c+=2)a[c]!=null&&a[c+1]<n&&(u=!0);return u&&y1e(l,a,e),l}function g1e(e){let r=-1,n=!1;for(let i=0;i<e.childCount;i++){const o=e.child(i);let s=0;if(n)for(let a=0;a<i;a++){const l=e.child(a);for(let u=0;u<l.childCount;u++){const c=l.child(u);a+c.attrs.rowspan>i&&(s+=c.attrs.colspan)}}for(let a=0;a<o.childCount;a++){const l=o.child(a);s+=l.attrs.colspan,l.attrs.rowspan>1&&(n=!0)}r==-1?r=s:r!=s&&(r=Math.max(r,s))}return r}function y1e(e,r,n){e.problems||(e.problems=[]);const i={};for(let o=0;o<e.map.length;o++){const s=e.map[o];if(i[s])continue;i[s]=!0;const a=n.nodeAt(s);if(!a)throw new RangeError(`No cell with offset ${s} found`);let l=null;const u=a.attrs;for(let c=0;c<u.colspan;c++){const d=(o+c)%e.width,h=r[d*2];h!=null&&(!u.colwidth||u.colwidth[c]!=h)&&((l||(l=T1e(u)))[c]=h)}l&&e.problems.unshift({type:"colwidth mismatch",pos:s,colwidth:l})}}function T1e(e){if(e.colwidth)return e.colwidth.slice();const r=[];for(let n=0;n<e.colspan;n++)r.push(0);return r}function Ao(e){let r=e.cached.tableNodeTypes;if(!r){r=e.cached.tableNodeTypes={};for(const n in e.nodes){const i=e.nodes[n],o=i.spec.tableRole;o&&(r[o]=i)}}return r}var pu=new hr("selectingCells");function fp(e){for(let r=e.depth-1;r>0;r--)if(e.node(r).type.spec.tableRole=="row")return e.node(0).resolve(e.before(r+1));return null}function b1e(e){for(let r=e.depth;r>0;r--){const n=e.node(r).type.spec.tableRole;if(n==="cell"||n==="header_cell")return e.node(r)}return null}function rs(e){const r=e.selection.$head;for(let n=r.depth;n>0;n--)if(r.node(n).type.spec.tableRole=="row")return!0;return!1}function im(e){const r=e.selection;if("$anchorCell"in r&&r.$anchorCell)return r.$anchorCell.pos>r.$headCell.pos?r.$anchorCell:r.$headCell;if("node"in r&&r.node&&r.node.type.spec.tableRole=="cell")return r.$anchor;const n=fp(r.$head)||v1e(r.$head);if(n)return n;throw new RangeError(`No cell found around position ${r.head}`)}function v1e(e){for(let r=e.nodeAfter,n=e.pos;r;r=r.firstChild,n++){const i=r.type.spec.tableRole;if(i=="cell"||i=="header_cell")return e.doc.resolve(n)}for(let r=e.nodeBefore,n=e.pos;r;r=r.lastChild,n--){const i=r.type.spec.tableRole;if(i=="cell"||i=="header_cell")return e.doc.resolve(n-r.nodeSize)}}function WT(e){return e.parent.type.spec.tableRole=="row"&&!!e.nodeAfter}function UM(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function z7(e,r){return e.depth==r.depth&&e.pos>=r.start(-1)&&e.pos<=r.end(-1)}function VM(e,r,n){const i=e.node(-1),o=ii.get(i),s=e.start(-1),a=o.nextCell(e.pos-s,r,n);return a==null?null:e.node(0).resolve(s+a)}function id(e,r,n=1){const i={...e,colspan:e.colspan-n};return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(r,n),i.colwidth.some(o=>o>0)||(i.colwidth=null)),i}function jM(e,r,n=1){const i={...e,colspan:e.colspan+n};if(i.colwidth){i.colwidth=i.colwidth.slice();for(let o=0;o<n;o++)i.colwidth.splice(r,0,0)}return i}function A1e(e,r,n){const i=Ao(r.type.schema).header_cell;for(let o=0;o<e.height;o++)if(r.nodeAt(e.map[n+o*e.width]).type!=i)return!1;return!0}var Nn=class Ql extends rr{constructor(r,n=r){const i=r.node(-1),o=ii.get(i),s=r.start(-1),a=o.rectBetween(r.pos-s,n.pos-s),l=r.node(0),u=o.cellsInRect(a).filter(d=>d!=n.pos-s);u.unshift(n.pos-s);const c=u.map(d=>{const h=i.nodeAt(d);if(!h)throw RangeError(`No cell with offset ${d} found`);const p=s+d+1;return new $b(l.resolve(p),l.resolve(p+h.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=r,this.$headCell=n}map(r,n){const i=r.resolve(n.map(this.$anchorCell.pos)),o=r.resolve(n.map(this.$headCell.pos));if(WT(i)&&WT(o)&&z7(i,o)){const s=this.$anchorCell.node(-1)!=i.node(-1);return s&&this.isRowSelection()?Ql.rowSelection(i,o):s&&this.isColSelection()?Ql.colSelection(i,o):new Ql(i,o)}return Lt.between(i,o)}content(){const r=this.$anchorCell.node(-1),n=ii.get(r),i=this.$anchorCell.start(-1),o=n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),s={},a=[];for(let u=o.top;u<o.bottom;u++){const c=[];for(let d=u*n.width+o.left,h=o.left;h<o.right;h++,d++){const p=n.map[d];if(s[p])continue;s[p]=!0;const f=n.findCell(p);let m=r.nodeAt(p);if(!m)throw RangeError(`No cell with offset ${p} found`);const v=o.left-f.left,w=f.right-o.right;if(v>0||w>0){let x=m.attrs;if(v>0&&(x=id(x,0,v)),w>0&&(x=id(x,x.colspan-w,w)),f.left<o.left){if(m=m.type.createAndFill(x),!m)throw RangeError(`Could not create cell with attrs ${JSON.stringify(x)}`)}else m=m.type.create(x,m.content)}if(f.top<o.top||f.bottom>o.bottom){const x={...m.attrs,rowspan:Math.min(f.bottom,o.bottom)-Math.max(f.top,o.top)};f.top<o.top?m=m.type.createAndFill(x):m=m.type.create(x,m.content)}c.push(m)}a.push(r.child(u).copy(ze.from(c)))}const l=this.isColSelection()&&this.isRowSelection()?r:a;return new ht(ze.from(l),1,1)}replace(r,n=ht.empty){const i=r.steps.length,o=this.ranges;for(let a=0;a<o.length;a++){const{$from:l,$to:u}=o[a],c=r.mapping.slice(i);r.replace(c.map(l.pos),c.map(u.pos),a?ht.empty:n)}const s=rr.findFrom(r.doc.resolve(r.mapping.slice(i).map(this.to)),-1);s&&r.setSelection(s)}replaceWith(r,n){this.replace(r,new ht(ze.from(n),0,0))}forEachCell(r){const n=this.$anchorCell.node(-1),i=ii.get(n),o=this.$anchorCell.start(-1),s=i.cellsInRect(i.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o));for(let a=0;a<s.length;a++)r(n.nodeAt(s[a]),o+s[a])}isColSelection(){const r=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(r,n)>0)return!1;const i=r+this.$anchorCell.nodeAfter.attrs.rowspan,o=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(i,o)==this.$headCell.node(-1).childCount}static colSelection(r,n=r){const i=r.node(-1),o=ii.get(i),s=r.start(-1),a=o.findCell(r.pos-s),l=o.findCell(n.pos-s),u=r.node(0);return a.top<=l.top?(a.top>0&&(r=u.resolve(s+o.map[a.left])),l.bottom<o.height&&(n=u.resolve(s+o.map[o.width*(o.height-1)+l.right-1]))):(l.top>0&&(n=u.resolve(s+o.map[l.left])),a.bottom<o.height&&(r=u.resolve(s+o.map[o.width*(o.height-1)+a.right-1]))),new Ql(r,n)}isRowSelection(){const r=this.$anchorCell.node(-1),n=ii.get(r),i=this.$anchorCell.start(-1),o=n.colCount(this.$anchorCell.pos-i),s=n.colCount(this.$headCell.pos-i);if(Math.min(o,s)>0)return!1;const a=o+this.$anchorCell.nodeAfter.attrs.colspan,l=s+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,l)==n.width}eq(r){return r instanceof Ql&&r.$anchorCell.pos==this.$anchorCell.pos&&r.$headCell.pos==this.$headCell.pos}static rowSelection(r,n=r){const i=r.node(-1),o=ii.get(i),s=r.start(-1),a=o.findCell(r.pos-s),l=o.findCell(n.pos-s),u=r.node(0);return a.left<=l.left?(a.left>0&&(r=u.resolve(s+o.map[a.top*o.width])),l.right<o.width&&(n=u.resolve(s+o.map[o.width*(l.top+1)-1]))):(l.left>0&&(n=u.resolve(s+o.map[l.top*o.width])),a.right<o.width&&(r=u.resolve(s+o.map[o.width*(a.top+1)-1]))),new Ql(r,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(r,n){return new Ql(r.resolve(n.anchor),r.resolve(n.head))}static create(r,n,i=n){return new Ql(r.resolve(n),r.resolve(i))}getBookmark(){return new E1e(this.$anchorCell.pos,this.$headCell.pos)}};Nn.prototype.visible=!1,rr.jsonID("cell",Nn);var E1e=class GM{constructor(r,n){this.anchor=r,this.head=n}map(r){return new GM(r.map(this.anchor),r.map(this.head))}resolve(r){const n=r.resolve(this.anchor),i=r.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&i.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&i.index()<i.parent.childCount&&z7(n,i)?new Nn(n,i):rr.near(i,1)}};function w1e(e){if(!(e.selection instanceof Nn))return null;const r=[];return e.selection.forEachCell((n,i)=>{r.push(kn.node(i,i+n.nodeSize,{class:"selectedCell"}))}),Nr.create(e.doc,r)}function S1e({$from:e,$to:r}){if(e.pos==r.pos||e.pos<r.pos-6)return!1;let n=e.pos,i=r.pos,o=e.depth;for(;o>=0&&!(e.after(o+1)<e.end(o));o--,n++);for(let s=r.depth;s>=0&&!(r.before(s+1)>r.start(s));s--,i--);return n==i&&/row|table/.test(e.node(o).type.spec.tableRole)}function D1e({$from:e,$to:r}){let n,i;for(let o=e.depth;o>0;o--){const s=e.node(o);if(s.type.spec.tableRole==="cell"||s.type.spec.tableRole==="header_cell"){n=s;break}}for(let o=r.depth;o>0;o--){const s=r.node(o);if(s.type.spec.tableRole==="cell"||s.type.spec.tableRole==="header_cell"){i=s;break}}return n!==i&&r.parentOffset===0}function x1e(e,r,n){const i=(r||e).selection,o=(r||e).doc;let s,a;if(i instanceof Ht&&(a=i.node.type.spec.tableRole)){if(a=="cell"||a=="header_cell")s=Nn.create(o,i.from);else if(a=="row"){const l=o.resolve(i.from+1);s=Nn.rowSelection(l,l)}else if(!n){const l=ii.get(i.node),u=i.from+1,c=u+l.map[l.width*l.height-1];s=Nn.create(o,u+1,c)}}else i instanceof Lt&&S1e(i)?s=Lt.create(o,i.from):i instanceof Lt&&D1e(i)&&(s=Lt.create(o,i.$from.start(),i.$from.end()));return s&&(r||(r=e.tr)).setSelection(s),r}var k1e=new hr("fix-tables");function qM(e,r,n,i){const o=e.childCount,s=r.childCount;e:for(let a=0,l=0;a<s;a++){const u=r.child(a);for(let c=l,d=Math.min(o,a+3);c<d;c++)if(e.child(c)==u){l=c+1,n+=u.nodeSize;continue e}i(u,n),l<o&&e.child(l).sameMarkup(u)?qM(e.child(l),u,n+1,i):u.nodesBetween(0,u.content.size,i,n+1),n+=u.nodeSize}}function WM(e,r){let n;const i=(o,s)=>{o.type.spec.tableRole=="table"&&(n=C1e(e,o,s,n))};return r?r.doc!=e.doc&&qM(r.doc,e.doc,0,i):e.doc.descendants(i),n}function C1e(e,r,n,i){const o=ii.get(r);if(!o.problems)return i;i||(i=e.tr);const s=[];for(let u=0;u<o.height;u++)s.push(0);for(let u=0;u<o.problems.length;u++){const c=o.problems[u];if(c.type=="collision"){const d=r.nodeAt(c.pos);if(!d)continue;const h=d.attrs;for(let p=0;p<h.rowspan;p++)s[c.row+p]+=c.n;i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,id(h,h.colspan-c.n,c.n))}else if(c.type=="missing")s[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const d=r.nodeAt(c.pos);if(!d)continue;i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,{...d.attrs,rowspan:d.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const d=r.nodeAt(c.pos);if(!d)continue;i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,{...d.attrs,colwidth:c.colwidth})}else if(c.type=="zero_sized"){const d=i.mapping.map(n);i.delete(d,d+r.nodeSize)}}let a,l;for(let u=0;u<s.length;u++)s[u]&&(a==null&&(a=u),l=u);for(let u=0,c=n+1;u<o.height;u++){const d=r.child(u),h=c+d.nodeSize,p=s[u];if(p>0){let f="cell";d.firstChild&&(f=d.firstChild.type.spec.tableRole);const m=[];for(let w=0;w<p;w++){const x=Ao(e.schema)[f].createAndFill();x&&m.push(x)}const v=(u==0||a==u-1)&&l==u?c+1:h-1;i.insert(i.mapping.map(v),m)}c=h}return i.setMeta(k1e,{fixTables:!0})}function na(e){const r=e.selection,n=im(e),i=n.node(-1),o=n.start(-1),s=ii.get(i);return{...r instanceof Nn?s.rectBetween(r.$anchorCell.pos-o,r.$headCell.pos-o):s.findCell(n.pos-o),tableStart:o,map:s,table:i}}function KM(e,{map:r,tableStart:n,table:i},o){let s=o>0?-1:0;A1e(r,i,o+s)&&(s=o==0||o==r.width?null:0);for(let a=0;a<r.height;a++){const l=a*r.width+o;if(o>0&&o<r.width&&r.map[l-1]==r.map[l]){const u=r.map[l],c=i.nodeAt(u);e.setNodeMarkup(e.mapping.map(n+u),null,jM(c.attrs,o-r.colCount(u))),a+=c.attrs.rowspan-1}else{const u=s==null?Ao(i.type.schema).cell:i.nodeAt(r.map[l+s]).type,c=r.positionAt(a,o,i);e.insert(e.mapping.map(n+c),u.createAndFill())}}return e}function _1e(e,r){if(!rs(e))return!1;if(r){const n=na(e);r(KM(e.tr,n,n.left))}return!0}function N1e(e,r){if(!rs(e))return!1;if(r){const n=na(e);r(KM(e.tr,n,n.right))}return!0}function F1e(e,{map:r,table:n,tableStart:i},o){const s=e.mapping.maps.length;for(let a=0;a<r.height;){const l=a*r.width+o,u=r.map[l],c=n.nodeAt(u),d=c.attrs;if(o>0&&r.map[l-1]==u||o<r.width-1&&r.map[l+1]==u)e.setNodeMarkup(e.mapping.slice(s).map(i+u),null,id(d,o-r.colCount(u)));else{const h=e.mapping.slice(s).map(i+u);e.delete(h,h+c.nodeSize)}a+=d.rowspan}}function O1e(e,r){if(!rs(e))return!1;if(r){const n=na(e),i=e.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let o=n.right-1;F1e(i,n,o),o!=n.left;o--){const s=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc;if(!s)throw RangeError("No table found");n.table=s,n.map=ii.get(s)}r(i)}return!0}function M1e(e,r,n){var i;const o=Ao(r.type.schema).header_cell;for(let s=0;s<e.width;s++)if(((i=r.nodeAt(e.map[s+n*e.width]))==null?void 0:i.type)!=o)return!1;return!0}function QM(e,{map:r,tableStart:n,table:i},o){var s;let a=n;for(let c=0;c<o;c++)a+=i.child(c).nodeSize;const l=[];let u=o>0?-1:0;M1e(r,i,o+u)&&(u=o==0||o==r.height?null:0);for(let c=0,d=r.width*o;c<r.width;c++,d++)if(o>0&&o<r.height&&r.map[d]==r.map[d-r.width]){const h=r.map[d],p=i.nodeAt(h).attrs;e.setNodeMarkup(n+h,null,{...p,rowspan:p.rowspan+1}),c+=p.colspan-1}else{const h=u==null?Ao(i.type.schema).cell:(s=i.nodeAt(r.map[d+u*r.width]))==null?void 0:s.type,p=h?.createAndFill();p&&l.push(p)}return e.insert(a,Ao(i.type.schema).row.create(null,l)),e}function JM(e,r){if(!rs(e))return!1;if(r){const n=na(e);r(QM(e.tr,n,n.top))}return!0}function XM(e,r){if(!rs(e))return!1;if(r){const n=na(e);r(QM(e.tr,n,n.bottom))}return!0}function R1e(e,{map:r,table:n,tableStart:i},o){let s=0;for(let c=0;c<o;c++)s+=n.child(c).nodeSize;const a=s+n.child(o).nodeSize,l=e.mapping.maps.length;e.delete(s+i,a+i);const u=new Set;for(let c=0,d=o*r.width;c<r.width;c++,d++){const h=r.map[d];if(!u.has(h)){if(u.add(h),o>0&&h==r.map[d-r.width]){const p=n.nodeAt(h).attrs;e.setNodeMarkup(e.mapping.slice(l).map(h+i),null,{...p,rowspan:p.rowspan-1}),c+=p.colspan-1}else if(o<r.height&&h==r.map[d+r.width]){const p=n.nodeAt(h),f=p.attrs,m=p.type.create({...f,rowspan:p.attrs.rowspan-1},p.content),v=r.positionAt(o+1,c,n);e.insert(e.mapping.slice(l).map(i+v),m),c+=f.colspan-1}}}}function B1e(e,r){if(!rs(e))return!1;if(r){const n=na(e),i=e.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let o=n.bottom-1;R1e(i,n,o),o!=n.top;o--){const s=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc;if(!s)throw RangeError("No table found");n.table=s,n.map=ii.get(n.table)}r(i)}return!0}function fS(e){const r=e.content;return r.childCount==1&&r.child(0).isTextblock&&r.child(0).childCount==0}function I1e({width:e,height:r,map:n},i){let o=i.top*e+i.left,s=o,a=(i.bottom-1)*e+i.left,l=o+(i.right-i.left-1);for(let u=i.top;u<i.bottom;u++){if(i.left>0&&n[s]==n[s-1]||i.right<e&&n[l]==n[l+1])return!0;s+=e,l+=e}for(let u=i.left;u<i.right;u++){if(i.top>0&&n[o]==n[o-e]||i.bottom<r&&n[a]==n[a+e])return!0;o++,a++}return!1}function mS(e,r){const n=e.selection;if(!(n instanceof Nn)||n.$anchorCell.pos==n.$headCell.pos)return!1;const i=na(e),{map:o}=i;if(I1e(o,i))return!1;if(r){const s=e.tr,a={};let l=ze.empty,u,c;for(let d=i.top;d<i.bottom;d++)for(let h=i.left;h<i.right;h++){const p=o.map[d*o.width+h],f=i.table.nodeAt(p);if(!(a[p]||!f))if(a[p]=!0,u==null)u=p,c=f;else{fS(f)||(l=l.append(f.content));const m=s.mapping.map(p+i.tableStart);s.delete(m,m+f.nodeSize)}}if(u==null||c==null)return!0;if(s.setNodeMarkup(u+i.tableStart,null,{...jM(c.attrs,c.attrs.colspan,i.right-i.left-c.attrs.colspan),rowspan:i.bottom-i.top}),l.size){const d=u+1+c.content.size,h=fS(c)?u+1:d;s.replaceWith(h+i.tableStart,d+i.tableStart,l)}s.setSelection(new Nn(s.doc.resolve(u+i.tableStart))),r(s)}return!0}function gS(e,r){const n=Ao(e.schema);return L1e(({node:i})=>n[i.type.spec.tableRole])(e,r)}function L1e(e){return(r,n)=>{var i;const o=r.selection;let s,a;if(o instanceof Nn){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;s=o.$anchorCell.nodeAfter,a=o.$anchorCell.pos}else{if(s=b1e(o.$from),!s)return!1;a=(i=fp(o.$from))==null?void 0:i.pos}if(s==null||a==null||s.attrs.colspan==1&&s.attrs.rowspan==1)return!1;if(n){let l=s.attrs;const u=[],c=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});const d=na(r),h=r.tr;for(let f=0;f<d.right-d.left;f++)u.push(c?{...l,colwidth:c&&c[f]?[c[f]]:null}:l);let p;for(let f=d.top;f<d.bottom;f++){let m=d.map.positionAt(f,d.left,d.table);f==d.top&&(m+=s.nodeSize);for(let v=d.left,w=0;v<d.right;v++,w++)v==d.left&&f==d.top||h.insert(p=h.mapping.map(m+d.tableStart,1),e({node:s,row:f,col:v}).createAndFill(u[w]))}h.setNodeMarkup(a,e({node:s,row:d.top,col:d.left}),u[0]),o instanceof Nn&&h.setSelection(new Nn(h.doc.resolve(o.$anchorCell.pos),p?h.doc.resolve(p):void 0)),n(h)}return!0}}function z1e(e,r){return function(n,i){if(!rs(n))return!1;const o=im(n);if(o.nodeAfter.attrs[e]===r)return!1;if(i){const s=n.tr;n.selection instanceof Nn?n.selection.forEachCell((a,l)=>{a.attrs[e]!==r&&s.setNodeMarkup(l,null,{...a.attrs,[e]:r})}):s.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[e]:r}),i(s)}return!0}}function Y1e(e){return function(r,n){if(!rs(r))return!1;if(n){const i=Ao(r.schema),o=na(r),s=r.tr,a=o.map.cellsInRect(e=="column"?{left:o.left,top:0,right:o.right,bottom:o.map.height}:e=="row"?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),l=a.map(u=>o.table.nodeAt(u));for(let u=0;u<a.length;u++)l[u].type==i.header_cell&&s.setNodeMarkup(o.tableStart+a[u],i.cell,l[u].attrs);if(s.steps.length==0)for(let u=0;u<a.length;u++)s.setNodeMarkup(o.tableStart+a[u],i.header_cell,l[u].attrs);n(s)}return!0}}function yS(e,r,n){const i=r.map.cellsInRect({left:0,top:0,right:e=="row"?r.map.width:1,bottom:e=="column"?r.map.height:1});for(let o=0;o<i.length;o++){const s=r.table.nodeAt(i[o]);if(s&&s.type!==n.header_cell)return!1}return!0}function Rf(e,r){return r=r||{useDeprecatedLogic:!1},r.useDeprecatedLogic?Y1e(e):function(n,i){if(!rs(n))return!1;if(i){const o=Ao(n.schema),s=na(n),a=n.tr,l=yS("row",s,o),u=yS("column",s,o),c=(e==="column"?l:e==="row"&&u)?1:0,d=e=="column"?{left:0,top:c,right:1,bottom:s.map.height}:e=="row"?{left:c,top:0,right:s.map.width,bottom:1}:s,h=e=="column"?u?o.cell:o.header_cell:e=="row"?l?o.cell:o.header_cell:o.cell;s.map.cellsInRect(d).forEach(p=>{const f=p+s.tableStart,m=a.doc.nodeAt(f);m&&a.setNodeMarkup(f,h,m.attrs)}),i(a)}return!0}}Rf("row",{useDeprecatedLogic:!0}),Rf("column",{useDeprecatedLogic:!0});var H1e=Rf("cell",{useDeprecatedLogic:!0});function P1e(e,r){if(r<0){const n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(let i=e.index(-1)-1,o=e.before();i>=0;i--){const s=e.node(-1).child(i),a=s.lastChild;if(a)return o-1-a.nodeSize;o-=s.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const n=e.node(-1);for(let i=e.indexAfter(-1),o=e.after();i<n.childCount;i++){const s=n.child(i);if(s.childCount)return o+1;o+=s.nodeSize}}return null}function TS(e){return function(r,n){if(!rs(r))return!1;const i=P1e(im(r),e);if(i==null)return!1;if(n){const o=r.doc.resolve(i);n(r.tr.setSelection(Lt.between(o,UM(o))).scrollIntoView())}return!0}}function Z1e(e,r){const n=e.selection.$anchor;for(let i=n.depth;i>0;i--)if(n.node(i).type.spec.tableRole=="table")return r&&r(e.tr.delete(n.before(i),n.after(i)).scrollIntoView()),!0;return!1}function mg(e,r){const n=e.selection;if(!(n instanceof Nn))return!1;if(r){const i=e.tr,o=Ao(e.schema).cell.createAndFill().content;n.forEachCell((s,a)=>{s.content.eq(o)||i.replace(i.mapping.map(a+1),i.mapping.map(a+s.nodeSize-1),new ht(o,0,0))}),i.docChanged&&r(i)}return!0}function $1e(e){if(!e.size)return null;let{content:r,openStart:n,openEnd:i}=e;for(;r.childCount==1&&(n>0&&i>0||r.child(0).type.spec.tableRole=="table");)n--,i--,r=r.child(0).content;const o=r.child(0),s=o.type.spec.tableRole,a=o.type.schema,l=[];if(s=="row")for(let u=0;u<r.childCount;u++){let c=r.child(u).content;const d=u?0:Math.max(0,n-1),h=u<r.childCount-1?0:Math.max(0,i-1);(d||h)&&(c=KT(Ao(a).row,new ht(c,d,h)).content),l.push(c)}else if(s=="cell"||s=="header_cell")l.push(n||i?KT(Ao(a).row,new ht(r,n,i)).content:r);else return null;return U1e(a,l)}function U1e(e,r){const n=[];for(let o=0;o<r.length;o++){const s=r[o];for(let a=s.childCount-1;a>=0;a--){const{rowspan:l,colspan:u}=s.child(a).attrs;for(let c=o;c<o+l;c++)n[c]=(n[c]||0)+u}}let i=0;for(let o=0;o<n.length;o++)i=Math.max(i,n[o]);for(let o=0;o<n.length;o++)if(o>=r.length&&r.push(ze.empty),n[o]<i){const s=Ao(e).cell.createAndFill(),a=[];for(let l=n[o];l<i;l++)a.push(s);r[o]=r[o].append(ze.from(a))}return{height:r.length,width:i,rows:r}}function KT(e,r){const n=e.createAndFill();return new Zb(n).replace(0,n.content.size,r).doc}function V1e({width:e,height:r,rows:n},i,o){if(e!=i){const s=[],a=[];for(let l=0;l<n.length;l++){const u=n[l],c=[];for(let d=s[l]||0,h=0;d<i;h++){let p=u.child(h%u.childCount);d+p.attrs.colspan>i&&(p=p.type.createChecked(id(p.attrs,p.attrs.colspan,d+p.attrs.colspan-i),p.content)),c.push(p),d+=p.attrs.colspan;for(let f=1;f<p.attrs.rowspan;f++)s[l+f]=(s[l+f]||0)+p.attrs.colspan}a.push(ze.from(c))}n=a,e=i}if(r!=o){const s=[];for(let a=0,l=0;a<o;a++,l++){const u=[],c=n[l%r];for(let d=0;d<c.childCount;d++){let h=c.child(d);a+h.attrs.rowspan>o&&(h=h.type.create({...h.attrs,rowspan:Math.max(1,o-h.attrs.rowspan)},h.content)),u.push(h)}s.push(ze.from(u))}n=s,r=o}return{width:e,height:r,rows:n}}function j1e(e,r,n,i,o,s,a){const l=e.doc.type.schema,u=Ao(l);let c,d;if(o>r.width)for(let h=0,p=0;h<r.height;h++){const f=n.child(h);p+=f.nodeSize;const m=[];let v;f.lastChild==null||f.lastChild.type==u.cell?v=c||(c=u.cell.createAndFill()):v=d||(d=u.header_cell.createAndFill());for(let w=r.width;w<o;w++)m.push(v);e.insert(e.mapping.slice(a).map(p-1+i),m)}if(s>r.height){const h=[];for(let m=0,v=(r.height-1)*r.width;m<Math.max(r.width,o);m++){const w=m>=r.width?!1:n.nodeAt(r.map[v+m]).type==u.header_cell;h.push(w?d||(d=u.header_cell.createAndFill()):c||(c=u.cell.createAndFill()))}const p=u.row.create(null,ze.from(h)),f=[];for(let m=r.height;m<s;m++)f.push(p);e.insert(e.mapping.slice(a).map(i+n.nodeSize-2),f)}return!!(c||d)}function bS(e,r,n,i,o,s,a,l){if(a==0||a==r.height)return!1;let u=!1;for(let c=o;c<s;c++){const d=a*r.width+c,h=r.map[d];if(r.map[d-r.width]==h){u=!0;const p=n.nodeAt(h),{top:f,left:m}=r.findCell(h);e.setNodeMarkup(e.mapping.slice(l).map(h+i),null,{...p.attrs,rowspan:a-f}),e.insert(e.mapping.slice(l).map(r.positionAt(a,m,n)),p.type.createAndFill({...p.attrs,rowspan:f+p.attrs.rowspan-a})),c+=p.attrs.colspan-1}}return u}function vS(e,r,n,i,o,s,a,l){if(a==0||a==r.width)return!1;let u=!1;for(let c=o;c<s;c++){const d=c*r.width+a,h=r.map[d];if(r.map[d-1]==h){u=!0;const p=n.nodeAt(h),f=r.colCount(h),m=e.mapping.slice(l).map(h+i);e.setNodeMarkup(m,null,id(p.attrs,a-f,p.attrs.colspan-(a-f))),e.insert(m+p.nodeSize,p.type.createAndFill(id(p.attrs,0,a-f))),c+=p.attrs.rowspan-1}}return u}function AS(e,r,n,i,o){let s=n?e.doc.nodeAt(n-1):e.doc;if(!s)throw new Error("No table found");let a=ii.get(s);const{top:l,left:u}=i,c=u+o.width,d=l+o.height,h=e.tr;let p=0;function f(){if(s=n?h.doc.nodeAt(n-1):h.doc,!s)throw new Error("No table found");a=ii.get(s),p=h.mapping.maps.length}j1e(h,a,s,n,c,d,p)&&f(),bS(h,a,s,n,u,c,l,p)&&f(),bS(h,a,s,n,u,c,d,p)&&f(),vS(h,a,s,n,l,d,u,p)&&f(),vS(h,a,s,n,l,d,c,p)&&f();for(let m=l;m<d;m++){const v=a.positionAt(m,u,s),w=a.positionAt(m,c,s);h.replace(h.mapping.slice(p).map(v+n),h.mapping.slice(p).map(w+n),new ht(o.rows[m-l],0,0))}f(),h.setSelection(new Nn(h.doc.resolve(n+a.positionAt(l,u,s)),h.doc.resolve(n+a.positionAt(d-1,c-1,s)))),r(h)}var G1e=rv({ArrowLeft:gg("horiz",-1),ArrowRight:gg("horiz",1),ArrowUp:gg("vert",-1),ArrowDown:gg("vert",1),"Shift-ArrowLeft":yg("horiz",-1),"Shift-ArrowRight":yg("horiz",1),"Shift-ArrowUp":yg("vert",-1),"Shift-ArrowDown":yg("vert",1),Backspace:mg,"Mod-Backspace":mg,Delete:mg,"Mod-Delete":mg});function f2(e,r,n){return n.eq(e.selection)?!1:(r&&r(e.tr.setSelection(n).scrollIntoView()),!0)}function gg(e,r){return(n,i,o)=>{if(!o)return!1;const s=n.selection;if(s instanceof Nn)return f2(n,i,rr.near(s.$headCell,r));if(e!="horiz"&&!s.empty)return!1;const a=eR(o,e,r);if(a==null)return!1;if(e=="horiz")return f2(n,i,rr.near(n.doc.resolve(s.head+r),r));{const l=n.doc.resolve(a),u=VM(l,e,r);let c;return u?c=rr.near(u,1):r<0?c=rr.near(n.doc.resolve(l.before(-1)),-1):c=rr.near(n.doc.resolve(l.after(-1)),1),f2(n,i,c)}}}function yg(e,r){return(n,i,o)=>{if(!o)return!1;const s=n.selection;let a;if(s instanceof Nn)a=s;else{const u=eR(o,e,r);if(u==null)return!1;a=new Nn(n.doc.resolve(u))}const l=VM(a.$headCell,e,r);return l?f2(n,i,new Nn(a.$anchorCell,l)):!1}}function q1e(e,r){const n=e.state.doc,i=fp(n.resolve(r));return i?(e.dispatch(e.state.tr.setSelection(new Nn(i))),!0):!1}function W1e(e,r,n){if(!rs(e.state))return!1;let i=$1e(n);const o=e.state.selection;if(o instanceof Nn){i||(i={width:1,height:1,rows:[ze.from(KT(Ao(e.state.schema).cell,n))]});const s=o.$anchorCell.node(-1),a=o.$anchorCell.start(-1),l=ii.get(s).rectBetween(o.$anchorCell.pos-a,o.$headCell.pos-a);return i=V1e(i,l.right-l.left,l.bottom-l.top),AS(e.state,e.dispatch,a,l,i),!0}else if(i){const s=im(e.state),a=s.start(-1);return AS(e.state,e.dispatch,a,ii.get(s.node(-1)).findCell(s.pos-a),i),!0}else return!1}function K1e(e,r){var n;if(r.ctrlKey||r.metaKey)return;const i=ES(e,r.target);let o;if(r.shiftKey&&e.state.selection instanceof Nn)s(e.state.selection.$anchorCell,r),r.preventDefault();else if(r.shiftKey&&i&&(o=fp(e.state.selection.$anchor))!=null&&((n=Y6(e,r))==null?void 0:n.pos)!=o.pos)s(o,r),r.preventDefault();else if(!i)return;function s(u,c){let d=Y6(e,c);const h=pu.getState(e.state)==null;if(!d||!z7(u,d))if(h)d=u;else return;const p=new Nn(u,d);if(h||!e.state.selection.eq(p)){const f=e.state.tr.setSelection(p);h&&f.setMeta(pu,u.pos),e.dispatch(f)}}function a(){e.root.removeEventListener("mouseup",a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",l),pu.getState(e.state)!=null&&e.dispatch(e.state.tr.setMeta(pu,-1))}function l(u){const c=u,d=pu.getState(e.state);let h;if(d!=null)h=e.state.doc.resolve(d);else if(ES(e,c.target)!=i&&(h=Y6(e,r),!h))return a();h&&s(h,c)}e.root.addEventListener("mouseup",a),e.root.addEventListener("dragstart",a),e.root.addEventListener("mousemove",l)}function eR(e,r,n){if(!(e.state.selection instanceof Lt))return null;const{$head:i}=e.state.selection;for(let o=i.depth-1;o>=0;o--){const s=i.node(o);if((n<0?i.index(o):i.indexAfter(o))!=(n<0?0:s.childCount))return null;if(s.type.spec.tableRole=="cell"||s.type.spec.tableRole=="header_cell"){const a=i.before(o),l=r=="vert"?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(l)?a:null}}return null}function ES(e,r){for(;r&&r!=e.dom;r=r.parentNode)if(r.nodeName=="TD"||r.nodeName=="TH")return r;return null}function Y6(e,r){const n=e.posAtCoords({left:r.clientX,top:r.clientY});return n&&n?fp(e.state.doc.resolve(n.pos)):null}var Q1e=class{constructor(e,r){this.node=e,this.defaultCellMinWidth=r,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",`${r}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),QT(e,this.colgroup,this.table,r),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,QT(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function QT(e,r,n,i,o,s){var a;let l=0,u=!0,c=r.firstChild;const d=e.firstChild;if(d){for(let h=0,p=0;h<d.childCount;h++){const{colspan:f,colwidth:m}=d.child(h).attrs;for(let v=0;v<f;v++,p++){const w=o==p?s:m&&m[v],x=w?w+"px":"";if(l+=w||i,w||(u=!1),c)c.style.width!=x&&(c.style.width=x),c=c.nextSibling;else{const k=document.createElement("col");k.style.width=x,r.appendChild(k)}}}for(;c;){const h=c.nextSibling;(a=c.parentNode)==null||a.removeChild(c),c=h}u?(n.style.width=l+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=l+"px")}}var ks=new hr("tableColumnResizing");function J1e({handleWidth:e=5,cellMinWidth:r=25,defaultCellMinWidth:n=100,View:i=Q1e,lastColumnResizable:o=!0}={}){const s=new lr({key:ks,state:{init(a,l){var u,c;const d=(c=(u=s.spec)==null?void 0:u.props)==null?void 0:c.nodeViews,h=Ao(l.schema).table.name;return i&&d&&(d[h]=(p,f)=>new i(p,n,f)),new X1e(-1,!1)},apply(a,l){return l.apply(a)}},props:{attributes:a=>{const l=ks.getState(a);return l&&l.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(a,l)=>{efe(a,l,e,o)},mouseleave:a=>{tfe(a)},mousedown:(a,l)=>{rfe(a,l,r,n)}},decorations:a=>{const l=ks.getState(a);if(l&&l.activeHandle>-1)return afe(a,l.activeHandle)},nodeViews:{}}});return s}var X1e=class m2{constructor(r,n){this.activeHandle=r,this.dragging=n}apply(r){const n=this,i=r.getMeta(ks);if(i&&i.setHandle!=null)return new m2(i.setHandle,!1);if(i&&i.setDragging!==void 0)return new m2(n.activeHandle,i.setDragging);if(n.activeHandle>-1&&r.docChanged){let o=r.mapping.map(n.activeHandle,-1);return WT(r.doc.resolve(o))||(o=-1),new m2(o,n.dragging)}return n}};function efe(e,r,n,i){if(!e.editable)return;const o=ks.getState(e.state);if(o&&!o.dragging){const s=ife(r.target);let a=-1;if(s){const{left:l,right:u}=s.getBoundingClientRect();r.clientX-l<=n?a=wS(e,r,"left",n):u-r.clientX<=n&&(a=wS(e,r,"right",n))}if(a!=o.activeHandle){if(!i&&a!==-1){const l=e.state.doc.resolve(a),u=l.node(-1),c=ii.get(u),d=l.start(-1);if(c.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==c.width-1)return}tR(e,a)}}}function tfe(e){if(!e.editable)return;const r=ks.getState(e.state);r&&r.activeHandle>-1&&!r.dragging&&tR(e,-1)}function rfe(e,r,n,i){var o;if(!e.editable)return!1;const s=(o=e.dom.ownerDocument.defaultView)!=null?o:window,a=ks.getState(e.state);if(!a||a.activeHandle==-1||a.dragging)return!1;const l=e.state.doc.nodeAt(a.activeHandle),u=nfe(e,a.activeHandle,l.attrs);e.dispatch(e.state.tr.setMeta(ks,{setDragging:{startX:r.clientX,startWidth:u}}));function c(h){s.removeEventListener("mouseup",c),s.removeEventListener("mousemove",d);const p=ks.getState(e.state);p?.dragging&&(ofe(e,p.activeHandle,SS(p.dragging,h,n)),e.dispatch(e.state.tr.setMeta(ks,{setDragging:null})))}function d(h){if(!h.which)return c(h);const p=ks.getState(e.state);if(p&&p.dragging){const f=SS(p.dragging,h,n);DS(e,p.activeHandle,f,i)}}return DS(e,a.activeHandle,u,i),s.addEventListener("mouseup",c),s.addEventListener("mousemove",d),r.preventDefault(),!0}function nfe(e,r,{colspan:n,colwidth:i}){const o=i&&i[i.length-1];if(o)return o;const s=e.domAtPos(r);let a=s.node.childNodes[s.offset].offsetWidth,l=n;if(i)for(let u=0;u<n;u++)i[u]&&(a-=i[u],l--);return a/l}function ife(e){for(;e&&e.nodeName!="TD"&&e.nodeName!="TH";)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}function wS(e,r,n,i){const o=n=="right"?-i:i,s=e.posAtCoords({left:r.clientX+o,top:r.clientY});if(!s)return-1;const{pos:a}=s,l=fp(e.state.doc.resolve(a));if(!l)return-1;if(n=="right")return l.pos;const u=ii.get(l.node(-1)),c=l.start(-1),d=u.map.indexOf(l.pos-c);return d%u.width==0?-1:c+u.map[d-1]}function SS(e,r,n){const i=r.clientX-e.startX;return Math.max(n,e.startWidth+i)}function tR(e,r){e.dispatch(e.state.tr.setMeta(ks,{setHandle:r}))}function ofe(e,r,n){const i=e.state.doc.resolve(r),o=i.node(-1),s=ii.get(o),a=i.start(-1),l=s.colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1,u=e.state.tr;for(let c=0;c<s.height;c++){const d=c*s.width+l;if(c&&s.map[d]==s.map[d-s.width])continue;const h=s.map[d],p=o.nodeAt(h).attrs,f=p.colspan==1?0:l-s.colCount(h);if(p.colwidth&&p.colwidth[f]==n)continue;const m=p.colwidth?p.colwidth.slice():sfe(p.colspan);m[f]=n,u.setNodeMarkup(a+h,null,{...p,colwidth:m})}u.docChanged&&e.dispatch(u)}function DS(e,r,n,i){const o=e.state.doc.resolve(r),s=o.node(-1),a=o.start(-1),l=ii.get(s).colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1;let u=e.domAtPos(o.start(-1)).node;for(;u&&u.nodeName!="TABLE";)u=u.parentNode;u&&QT(s,u.firstChild,u,i,l,n)}function sfe(e){return Array(e).fill(0)}function afe(e,r){var n;const i=[],o=e.doc.resolve(r),s=o.node(-1);if(!s)return Nr.empty;const a=ii.get(s),l=o.start(-1),u=a.colCount(o.pos-l)+o.nodeAfter.attrs.colspan-1;for(let c=0;c<a.height;c++){const d=u+c*a.width;if((u==a.width-1||a.map[d]!=a.map[d+1])&&(c==0||a.map[d]!=a.map[d-a.width])){const h=a.map[d],p=l+h+s.nodeAt(h).nodeSize-1,f=document.createElement("div");f.className="column-resize-handle",(n=ks.getState(e))!=null&&n.dragging&&i.push(kn.node(l+h,l+h+s.nodeAt(h).nodeSize,{class:"column-resize-dragging"})),i.push(kn.widget(p,f))}}return Nr.create(e.doc,i)}function lfe({allowTableNodeSelection:e=!1}={}){return new lr({key:pu,state:{init(){return null},apply(r,n){const i=r.getMeta(pu);if(i!=null)return i==-1?null:i;if(n==null||!r.docChanged)return n;const{deleted:o,pos:s}=r.mapping.mapResult(n);return o?null:s}},props:{decorations:w1e,handleDOMEvents:{mousedown:K1e},createSelectionBetween(r){return pu.getState(r.state)!=null?r.state.selection:null},handleTripleClick:q1e,handleKeyDown:G1e,handlePaste:W1e},appendTransaction(r,n,i){return x1e(i,WM(i,n),e)}})}var rR=tn.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{var r,n;const i=e.getAttribute("colwidth"),o=i?i.split(",").map(s=>parseInt(s,10)):null;if(!o){const s=(r=e.closest("table"))==null?void 0:r.querySelectorAll("colgroup > col"),a=Array.from(((n=e.parentElement)==null?void 0:n.children)||[]).indexOf(e);if(a&&a>-1&&s&&s[a]){const l=s[a].getAttribute("width");return l?[parseInt(l,10)]:null}}return o}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:e}){return["td",gr(this.options.HTMLAttributes,e),0]}}),nR=tn.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const r=e.getAttribute("colwidth");return r?r.split(",").map(n=>parseInt(n,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:e}){return["th",gr(this.options.HTMLAttributes,e),0]}}),iR=tn.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:e}){return["tr",gr(this.options.HTMLAttributes,e),0]}});function JT(e,r){return r?["width",`${Math.max(r,e)}px`]:["min-width",`${e}px`]}function xS(e,r,n,i,o,s){var a;let l=0,u=!0,c=r.firstChild;const d=e.firstChild;if(d!==null)for(let p=0,f=0;p<d.childCount;p+=1){const{colspan:m,colwidth:v}=d.child(p).attrs;for(let w=0;w<m;w+=1,f+=1){const x=o===f?s:v&&v[w],k=x?`${x}px`:"";if(l+=x||i,x||(u=!1),c){if(c.style.width!==k){const[R,O]=JT(i,x);c.style.setProperty(R,O)}c=c.nextSibling}else{const R=document.createElement("col"),[O,P]=JT(i,x);R.style.setProperty(O,P),r.appendChild(R)}}}for(;c;){const p=c.nextSibling;(a=c.parentNode)==null||a.removeChild(c),c=p}const h=e.attrs.style&&typeof e.attrs.style=="string"&&/\bwidth\s*:/i.test(e.attrs.style);u&&!h?(n.style.width=`${l}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${l}px`)}var ufe=class{constructor(e,r){this.node=e,this.cellMinWidth=r,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),e.attrs.style&&(this.table.style.cssText=e.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),xS(e,this.colgroup,this.table,r),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!==this.node.type?!1:(this.node=e,xS(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){const r=e.target,n=this.dom.contains(r),i=this.contentDOM.contains(r);return!!(n&&!i&&(e.type==="attributes"||e.type==="childList"||e.type==="characterData"))}};function cfe(e,r,n,i){let o=0,s=!0;const a=[],l=e.firstChild;if(!l)return{};for(let d=0,h=0;d<l.childCount;d+=1){const{colspan:p,colwidth:f}=l.child(d).attrs;for(let m=0;m<p;m+=1,h+=1){const v=n===h?i:f&&f[m];o+=v||r,v||(s=!1);const[w,x]=JT(r,v);a.push(["col",{style:`${w}: ${x}`}])}}const u=s?`${o}px`:"",c=s?"":`${o}px`;return{colgroup:["colgroup",{},...a],tableWidth:u,tableMinWidth:c}}function kS(e,r){return e.createAndFill()}function dfe(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;const r={};return Object.keys(e.nodes).forEach(n=>{const i=e.nodes[n];i.spec.tableRole&&(r[i.spec.tableRole]=i)}),e.cached.tableNodeTypes=r,r}function hfe(e,r,n,i,o){const s=dfe(e),a=[],l=[];for(let c=0;c<n;c+=1){const d=kS(s.cell);if(d&&l.push(d),i){const h=kS(s.header_cell);h&&a.push(h)}}const u=[];for(let c=0;c<r;c+=1)u.push(s.row.createChecked(null,i&&c===0?a:l));return s.table.createChecked(null,u)}function pfe(e){return e instanceof Nn}var Tg=({editor:e})=>{const{selection:r}=e.state;if(!pfe(r))return!1;let n=0;return qC(r.ranges[0].$from,o=>o.type.name==="table")?.node.descendants(o=>{if(o.type.name==="table")return!1;["tableCell","tableHeader"].includes(o.type.name)&&(n+=1)}),n===r.ranges.length?(e.commands.deleteTable(),!0):!1},ffe="";function mfe(e){return(e||"").replace(/\s+/g," ").trim()}function gfe(e,r,n={}){var i;const o=(i=n.cellLineSeparator)!=null?i:ffe;if(!e||!e.content||e.content.length===0)return"";const s=[];e.content.forEach(f=>{const m=[];f.content&&f.content.forEach(v=>{let w="";v.content&&Array.isArray(v.content)&&v.content.length>1?w=v.content.map(R=>r.renderChildren(R)).join(o):w=v.content?r.renderChildren(v.content):"";const x=mfe(w),k=v.type==="tableHeader";m.push({text:x,isHeader:k})}),s.push(m)});const a=s.reduce((f,m)=>Math.max(f,m.length),0);if(a===0)return"";const l=new Array(a).fill(0);s.forEach(f=>{var m;for(let v=0;v<a;v+=1){const w=(((m=f[v])==null?void 0:m.text)||"").length;w>l[v]&&(l[v]=w),l[v]<3&&(l[v]=3)}});const u=(f,m)=>f+" ".repeat(Math.max(0,m-f.length)),c=s[0],d=c.some(f=>f.isHeader);let h=` `;const p=new Array(a).fill(0).map((f,m)=>d&&c[m]&&c[m].text||"");return h+=`| ${p.map((f,m)=>u(f,l[m])).join(" | ")} | `,h+=`| ${l.map(f=>"-".repeat(Math.max(3,f))).join(" | ")} | `,(d?s.slice(1):s).forEach(f=>{h+=`| ${new Array(a).fill(0).map((m,v)=>u(f[v]&&f[v].text||"",l[v])).join(" | ")} | `}),h}var yfe=gfe,oR=tn.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:ufe,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:e,HTMLAttributes:r}){const{colgroup:n,tableWidth:i,tableMinWidth:o}=cfe(e,this.options.cellMinWidth),s=r.style;function a(){return s||(i?`width: ${i}`:`min-width: ${o}`)}const l=["table",gr(this.options.HTMLAttributes,r,{style:a()}),n,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},l]:l},parseMarkdown:(e,r)=>{const n=[];if(e.header){const i=[];e.header.forEach(o=>{i.push(r.createNode("tableHeader",{},[{type:"paragraph",content:r.parseInline(o.tokens)}]))}),n.push(r.createNode("tableRow",{},i))}return e.rows&&e.rows.forEach(i=>{const o=[];i.forEach(s=>{o.push(r.createNode("tableCell",{},[{type:"paragraph",content:r.parseInline(s.tokens)}]))}),n.push(r.createNode("tableRow",{},o))}),r.createNode("table",void 0,n)},renderMarkdown:(e,r)=>yfe(e,r),addCommands(){return{insertTable:({rows:e=3,cols:r=3,withHeaderRow:n=!0}={})=>({tr:i,dispatch:o,editor:s})=>{const a=hfe(s.schema,e,r,n);if(o){const l=i.selection.from+1;i.replaceSelectionWith(a).scrollIntoView().setSelection(Lt.near(i.doc.resolve(l)))}return!0},addColumnBefore:()=>({state:e,dispatch:r})=>_1e(e,r),addColumnAfter:()=>({state:e,dispatch:r})=>N1e(e,r),deleteColumn:()=>({state:e,dispatch:r})=>O1e(e,r),addRowBefore:()=>({state:e,dispatch:r})=>JM(e,r),addRowAfter:()=>({state:e,dispatch:r})=>XM(e,r),deleteRow:()=>({state:e,dispatch:r})=>B1e(e,r),deleteTable:()=>({state:e,dispatch:r})=>Z1e(e,r),mergeCells:()=>({state:e,dispatch:r})=>mS(e,r),splitCell:()=>({state:e,dispatch:r})=>gS(e,r),toggleHeaderColumn:()=>({state:e,dispatch:r})=>Rf("column")(e,r),toggleHeaderRow:()=>({state:e,dispatch:r})=>Rf("row")(e,r),toggleHeaderCell:()=>({state:e,dispatch:r})=>H1e(e,r),mergeOrSplit:()=>({state:e,dispatch:r})=>mS(e,r)?!0:gS(e,r),setCellAttribute:(e,r)=>({state:n,dispatch:i})=>z1e(e,r)(n,i),goToNextCell:()=>({state:e,dispatch:r})=>TS(1)(e,r),goToPreviousCell:()=>({state:e,dispatch:r})=>TS(-1)(e,r),fixTables:()=>({state:e,dispatch:r})=>(r&&WM(e),!0),setCellSelection:e=>({tr:r,dispatch:n})=>{if(n){const i=Nn.create(r.doc,e.anchorCell,e.headCell);r.setSelection(i)}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:Tg,"Mod-Backspace":Tg,Delete:Tg,"Mod-Delete":Tg}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[J1e({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],lfe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){const r={name:e.name,options:e.options,storage:e.storage};return{tableRole:Xr(zt(e,"tableRole",r))}}});xr.create({name:"tableKit",addExtensions(){const e=[];return this.options.table!==!1&&e.push(oR.configure(this.options.table)),this.options.tableCell!==!1&&e.push(rR.configure(this.options.tableCell)),this.options.tableHeader!==!1&&e.push(nR.configure(this.options.tableHeader)),this.options.tableRow!==!1&&e.push(iR.configure(this.options.tableRow)),e}});const Tfe=new Set(["text","paragraph","image"]),bfe=new Set(["blockquote","bulletList","heading","orderedList","taskList"]);function vfe(e,r){return e.cells.map((n,i)=>{const o={...n};for(o.lines.length===1&&[...o.nodeTypes].some(s=>bfe.has(s))&&(o.lines.push(""),e.length=Math.max(e.length,2));o.lines.length<e.length;)o.lines.push("");return o.lines.forEach((s,a)=>{if([...o.nodeTypes].some(l=>!Tfe.has(l))){o.lines[a]=s.padEnd(r[i]);return}if(o.align==="center"){const l=Math.max(r[i]-s.length,0),u=s.length+Math.floor(l/2),c=s.length+Math.ceil(l/2);o.lines[a]=s.padStart(u).padEnd(c)}else o.align==="right"?o.lines[a]=s.padStart(r[i]):o.lines[a]=s.padEnd(r[i])}),o})}function sR(e,r,n){for(let i=0;i<r.length;i++){e.write("| ");const o=vfe(r,n);o.forEach((s,a)=>{e.write(s.lines[i]),a<o.length-1?e.write(" | "):e.write(" |")}),i<r.length-1&&e.write(" \\"),e.write(` `)}}function Afe(e,r,n){sR(e,r,n),e.write("|"),r.cells.forEach((i,o)=>{const s=n[o]+2;let a="";switch(i.align){case"center":a=":"+e.repeat("-",s-2)+":";break;case"right":a=e.repeat("-",s-1)+":";break;default:a=e.repeat("-",s);break}e.write(a),e.write("|")}),e.write(` `)}function Efe(e,r){const n=jce(r.type.schema),i=r.content.content.map(a=>({node:a,header:a.type.name==="tableHeadRow",cells:[],length:0})),o=[];i.forEach(a=>{a.node.content.content.forEach((l,u)=>{o[u]=o[u]??0;const c=n.serialize(l),d=new Set;l.descendants(m=>{d.add(m.type.name)});const h=c.split(/\r?\n/).map(m=>m.replace(/\|/,"\\$&"));a.length=Math.max(a.length,h.length);const p=Math.max(...h.map(m=>m.length));o[u]=Math.max(o[u],p);const f=l.attrs?.textAlign??"";a.cells.push({md:c,lines:h,nodeTypes:d,align:f})})});const s=i.find(a=>a.header);s&&(Afe(e,s,o),i.filter(a=>!a.header).forEach(a=>{sR(e,a,o)}),e.closeBlock(r))}const aR=tn.create({name:"tableCaption",content:"inline*",allowGapCursor:!1,addAttributes(){return{}},renderHTML(){return["caption"]},toMarkdown(){},parseHTML(){return[{tag:"table caption",priority:90}]}}),lR=rR.extend({content:"block+",toMarkdown(){},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:!0,default:null,renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{},parseHTML:e=>e.style.textAlign||null}}},renderHTML({HTMLAttributes:e}){const r=gr(this.options.HTMLAttributes,e);return r.colspan===1&&delete r.colspan,r.rowspan===1&&delete r.rowspan,["td",r,0]},addProseMirrorPlugins(){return[new lr({key:new hr("preventNestedTables"),filterTransaction:e=>{if(!e.docChanged)return!0;let r=!1;return e.doc.descendants((n,i)=>{if(n.type.name.startsWith("table")){const o=e.doc.resolve(i);for(let s=o.depth;s>=0;s--)o.node(s).type.name==="tableCell"&&(console.warn("Detected nested table, filtering out transaction"),r=!0)}}),!r},props:{transformPasted:e=>{if(!this.editor.isActive(this.type.name))return e;let r=!1;if(e.content.descendants(n=>{n.type.name.startsWith("table")&&(r=!0)}),!r)return e;if(e.content.childCount===1&&e.content.firstChild?.type.name==="table"){const n=e.content.firstChild.firstChild;if(n.childCount===1&&n.type.name==="tableRow"||n.type.name==="tableHeadRow"){const i=n.firstChild;if(i.childCount===1&&i.type.name==="tableCell"||i.type.name==="tableHeader")return new ht(i.content,0,0)}}return console.warn("Nested tables are not supported"),alert(lt("text","A table was pasted into a table. Nested tables are not supported.")),new ht(ze.empty,0,0)}}})]}}),uR=nR.extend({content:"inline*",toMarkdown(){},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 r=gr(this.options.HTMLAttributes,e);return r.colspan===1&&delete r.colspan,r.rowspan===1&&delete r.rowspan,["th",r,0]},addAttributes(){return{...this.parent?.(),textAlign:{rendered:!0,default:null,renderHTML:e=>e.textAlign?{style:`text-align: ${e.textAlign}`}:{},parseHTML:e=>e.style.textAlign||null}}}}),Y7=iR.extend({content:"tableCell*",allowGapCursor:!1,toMarkdown(){},parseHTML(){return[{tag:"tr",priority:70}]}}),cR=Y7.extend({name:"tableHeadRow",content:"tableHeader+",allowGapCursor:!1,toMarkdown(){},parseHTML(){return[{tag:"table thead:empty ~ tbody tr:first-of-type",priority:80},{tag:"table thead tr:first-of-type",priority:80},{tag:"table:not(:has(> thead:not(:empty))) tbody tr:first-of-type",priority:80},{tag:"table > tr:first-of-type",priority:80}]}});function wfe(e,r,n,i){const o=[],s=[];for(let u=0;u<n;u+=1){const c=e.nodes.tableCell.createAndFill();c&&s.push(c);const d=e.nodes.tableHeader.createAndFill();d&&o.push(d)}const a=e.nodes.tableHeadRow.createChecked(null,o),l=[];for(let u=1;u<r;u+=1)l.push(e.nodes.tableRow.createChecked(null,s));return e.nodes.table.createChecked(null,[a,...l])}function Sfe(e){if(e.index(-1)===e.node(-1).childCount-1)return null;let r=e.after();const n=e.node(-1);for(let i=e.indexAfter(-1);i<n.childCount;i++){const o=n.child(i);if(o.childCount>=e.index()){for(let s=0;s<e.index();s++){const a=o.child(s);r+=a.nodeSize}return r+1}r+=o.nodeSize}}const dR=oR.extend({content:"tableCaption? tableHeadRow tableRow*",addExtensions(){return[aR,lR,uR,cR,Y7]},addCommands(){return{...this.parent(),addRowAfter:()=>({chain:e,dispatch:r})=>e().command(({state:n})=>XM(n,r)).command(({state:n,tr:i})=>{const{tableStart:o,table:s,bottom:a}=na(n);if(r){const l=s.child(a-1),u=s.child(a);let c=o+1;for(let d=0;d<a;d++)c+=s.child(d).nodeSize;for(let d=0;d<l.childCount;d++)i.setNodeAttribute(c,"textAlign",l.child(d).attrs.textAlign),c+=u.child(d).nodeSize}return!0}).run(),addRowBefore:()=>({chain:e,dispatch:r})=>e().command(({state:n})=>JM(n,r)).command(({state:n,tr:i})=>{const{tableStart:o,table:s,top:a}=na(n);if(r){const l=s.child(a),u=s.child(a-1);let c=o+1;for(let d=0;d<a-1;d++)c+=s.child(d).nodeSize;for(let d=0;d<l.childCount;d++)i.setNodeAttribute(c,"textAlign",l.child(d).attrs.textAlign),c+=u.child(d).nodeSize}return!0}).run(),insertTable:()=>({tr:e,dispatch:r,editor:n})=>{if(rs(e))return!1;const i=wfe(n.schema,3,3);if(r){const o=e.selection.anchor+1;e.replaceSelectionWith(i).scrollIntoView().setSelection(Lt.near(e.doc.resolve(o)))}return!0},leaveTable:()=>({tr:e,dispatch:r,editor:n})=>{if(!rs(e))return!1;const{$head:i,empty:o}=e.selection;if(!o)return!1;const s=i.depth<3?1:i.depth-2;if(r){const a=e.doc.resolve(i.after(s)+1),l=Lt.near(a);r(e.setSelection(l).scrollIntoView())}return!0},goToNextRow:()=>({tr:e,dispatch:r,editor:n})=>{if(!rs(e))return!1;const i=Sfe(im(e));if(i!=null){if(r){const o=e.doc.resolve(i),s=Lt.between(o,UM(o));r(e.setSelection(s).scrollIntoView())}return!0}}}},renderHTML({HTMLAttributes:e}){return["div",{class:"table-wrapper",style:"overflow-x: auto;"},["table",gr(this.options.HTMLAttributes,e),0]]},toMarkdown(e,r){Efe(e,r)},addKeyboardShortcuts(){return{...this.parent(),Tab:()=>this.editor.commands.goToNextCell()||this.editor.commands.leaveTable()}}}),Dfe={name:"TableCellView",components:{NcActionButton:_0,NcActions:Nl,NodeViewWrapper:Ia,NodeViewContent:rc,TableAddRowBefore:NX,TableAddRowAfter:aF,TrashCan:R3},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:lt}};var xfe=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{style:e.textAlign,attrs:{"data-text-el":"table-cell",as:"td",dir:e.dir}},[r("div",{staticClass:"container"},[r("NodeViewContent",{staticClass:"content"}),e.isEditable?r("NcActions",{attrs:{"data-text-table-actions":"row",size:"small"}},[r("NcActionButton",{attrs:{"data-text-table-action":"add-row-before","close-after-click":""},on:{click:e.addRowBefore},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TableAddRowBefore")]},proxy:!0}],null,!1,1805502767)},[e._v(" "+e._s(e.t("text","Add row before"))+" ")]),r("NcActionButton",{attrs:{"data-text-table-action":"add-row-after","close-after-click":""},on:{click:e.addRowAfter},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TableAddRowAfter")]},proxy:!0}],null,!1,3179199218)},[e._v(" "+e._s(e.t("text","Add row after"))+" ")]),r("NcActionButton",{attrs:{"data-text-table-action":"remove-row","close-after-click":""},on:{click:e.deleteRow},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TrashCan")]},proxy:!0}],null,!1,2019846067)},[e._v(" "+e._s(e.t("text","Delete this row"))+" ")])],1):e._e()],1)])},kfe=[],Cfe=Ze(Dfe,xfe,kfe,!1,null,"e247fd0d");const _fe=Cfe.exports;ar();const Nfe=Uf({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-${Xs()}`}},methods:{t:Xe}});var Ffe=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("li",{staticClass:"nc-button-group-base",attrs:{role:e.isInSemanticMenu&&"presentation"}},[e.name?r("div",{attrs:{id:e.labelId}},[e._v(" "+e._s(e.name)+" ")]):e._e(),r("ul",{staticClass:"nc-button-group-content",attrs:{role:"group","aria-labelledby":e.name?e.labelId:void 0}},[e._t("default")],2)])},Ofe=[],Mfe=qt(Nfe,Ffe,Ofe,!1,null,"d81f7625");const Rfe=Mfe.exports,Bfe={name:"TableHeaderView",components:{AlignHorizontalCenter:KJ,AlignHorizontalLeft:QJ,AlignHorizontalRight:JJ,TrashCan:R3,NcActionButton:_0,NcActionButtonGroup:Rfe,NcActions:Nl,NodeViewWrapper:Ia,NodeViewContent:rc,TableAddColumnBefore:_X,TableAddColumnAfter:sF},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:lt}};var Ife=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{style:e.textAlign,attrs:{"data-text-el":"table-header",as:"th",dir:e.dir}},[r("div",[r("NodeViewContent",{staticClass:"content"}),e.isEditable?r("NcActions",{ref:"menu",attrs:{size:"small",variant:"tertiary-no-background","data-text-table-actions":"header"}},[r("NcActionButtonGroup",[r("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[r("AlignHorizontalLeft")]},proxy:!0}],null,!1,2968467243)}),r("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[r("AlignHorizontalCenter")]},proxy:!0}],null,!1,536750267)}),r("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[r("AlignHorizontalRight")]},proxy:!0}],null,!1,3861151024)})],1),r("NcActionButton",{attrs:{"data-text-table-action":"add-column-before","close-after-click":""},on:{click:e.addColumnBefore},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TableAddColumnBefore")]},proxy:!0}],null,!1,3782681875)},[e._v(" "+e._s(e.t("text","Add column before"))+" ")]),r("NcActionButton",{attrs:{"data-text-table-action":"add-column-after","close-after-click":""},on:{click:e.addColumnAfter},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TableAddColumnAfter")]},proxy:!0}],null,!1,1608287598)},[e._v(" "+e._s(e.t("text","Add column after"))+" ")]),r("NcActionButton",{attrs:{"data-text-table-action":"remove-column","close-after-click":""},on:{click:e.deleteColumn},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TrashCan")]},proxy:!0}],null,!1,2019846067)},[e._v(" "+e._s(e.t("text","Delete this column"))+" ")])],1):e._e()],1)])},Lfe=[],zfe=Ze(Bfe,Ife,Lfe,!1,null,"784f2a8f");const Yfe=zfe.exports,Hfe={name:"TableView",components:{TableAddColumnAfter:sF,TableAddRowAfter:aF,NcActionButton:_0,NcActions:Nl,NcButton:as,NodeViewWrapper:Ia,NodeViewContent:rc,TableSettings:FX,TrashCan:R3},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 r=this.getPos(),n=r+this.node.nodeSize,{from:i,to:o}=e.state.selection;this.isFocused=i>=r&&o<=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:lt}};var Pfe=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{staticClass:"table-wrapper",class:{focused:e.isFocused},attrs:{"data-text-el":"table-view"}},[e.isEditable?r("NcActions",{staticClass:"table-settings",attrs:{"force-menu":"",size:"small","data-text-table-actions":"settings"},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TableSettings")]},proxy:!0}],null,!1,1699550424)},[r("NcActionButton",{attrs:{"data-text-table-action":"delete","close-after-click":""},on:{click:e.deleteNode},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TrashCan")]},proxy:!0}],null,!1,2019846067)},[e._v(" "+e._s(e.t("text","Delete this table"))+" ")])],1):e._e(),r("NodeViewContent",{staticClass:"content",attrs:{as:"table"}}),e.isEditable?r("NcButton",{staticClass:"table-add-column",attrs:{size:"small","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[r("TableAddColumnAfter")]},proxy:!0}],null,!1,1608287598)}):e._e(),e.isEditable?r("NcButton",{staticClass:"table-add-row",attrs:{size:"small","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[r("TableAddRowAfter")]},proxy:!0}],null,!1,3179199218)}):e._e(),r("div",{staticClass:"clearfix"})],1)},Zfe=[],$fe=Ze(Hfe,Pfe,Zfe,!1,null,"5c61416e");const Ufe=$fe.exports;function CS(e,r){return e.extend({addNodeView(){return ua(r)}})}const hR=dR.extend({addNodeView(){return ua(Ufe)},addExtensions(){return[aR,CS(lR,_fe),CS(uR,Yfe),cR,Y7]}});var Vfe=tn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",gr(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,r)=>{const n=e.tokens||[];return n.length===1&&n[0].type==="image"?r.parseChildren([n[0]]):r.createNode("paragraph",void 0,r.parseInline(n))},renderMarkdown:(e,r)=>!e||!Array.isArray(e.content)?"":r.renderChildren(e.content),addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),jfe=Vfe;const pR=jfe.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 r=e.$from.parent,n=e.$from.index(e.$from.depth-1);if(n===0)return!1;const i=e.$from.node(e.$from.depth-1).child(n-1);return r.type.name===this.name&&i.type.name===this.name?this.editor.chain().joinBackward().setHardBreak().run():!1}}}}),Gfe=tn.create({name:"doc",content:"table"}),H7=xr.create({name:"CustomKeymap",addKeyboardShortcuts(){return{"Mod-Alt-h":()=>(Io("text:toc:toggle"),!0),Backspace:()=>this.editor.commands.undoInputRule()}},addProseMirrorPlugins(){return[new lr({props:{handleKeyDown(e,r){if((r.ctrlKey||r.metaKey)&&!r.altKey&&!r.shiftKey&&r.key==="s")return r.preventDefault(),r.stopPropagation(),Io("text:keyboard:save"),!0;if(!r.ctrlKey&&!r.metaKey&&!r.altKey&&!r.shiftKey&&r.key==="Escape")return r.preventDefault(),r.stopPropagation(),!0;(r.ctrlKey||r.metaKey)&&!r.altKey&&!r.shiftKey&&r.key==="Delete"&&r.stopPropagation()}}})]}});var qfe=tn.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),P7=qfe;const q9e=xr.create({name:"PlainTable",addExtensions(){return[N7,pR,Gfe,hR,H7,P7]}});var H6=4,Wfe=/^```([a-z]+)?[\s\n]$/,Kfe=/^~~~([a-z]+)?[\s\n]$/,Qfe=tn.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:H6,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var r;const{languageClassPrefix:n}=this.options;return n&&[...((r=e.firstElementChild)==null?void 0:r.classList)||[]].filter(o=>o.startsWith(n)).map(o=>o.replace(n,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:r}){return["pre",gr(this.options.HTMLAttributes,r),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,r)=>{var n;return((n=e.raw)==null?void 0:n.startsWith("```"))===!1&&e.codeBlockStyle!=="indented"?[]:r.createNode("codeBlock",{language:e.lang||null},e.text?[r.createTextNode(e.text)]:[])},renderMarkdown:(e,r)=>{var n;let i="";const o=((n=e.attrs)==null?void 0:n.language)||"";return e.content?i=[`\`\`\`${o}`,r.renderChildren(e.content),"```"].join(` `):i=`\`\`\`${o} \`\`\``,i},addCommands(){return{setCodeBlock:e=>({commands:r})=>r.setNode(this.name,e),toggleCodeBlock:e=>({commands:r})=>r.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:r}=this.editor.state.selection,n=r.pos===1;return!e||r.parent.type.name!==this.name?!1:n||!r.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{var r;if(!this.options.enableTabIndentation)return!1;const n=(r=this.options.tabSize)!=null?r:H6,{state:i}=e,{selection:o}=i,{$from:s,empty:a}=o;if(s.parent.type!==this.type)return!1;const l=" ".repeat(n);return a?e.commands.insertContent(l):e.commands.command(({tr:u})=>{const{from:c,to:d}=o,h=i.doc.textBetween(c,d,` `,` `).split(` `).map(p=>l+p).join(` `);return u.replaceWith(c,d,i.schema.text(h)),!0})},"Shift-Tab":({editor:e})=>{var r;if(!this.options.enableTabIndentation)return!1;const n=(r=this.options.tabSize)!=null?r:H6,{state:i}=e,{selection:o}=i,{$from:s,empty:a}=o;return s.parent.type!==this.type?!1:a?e.commands.command(({tr:l})=>{var u;const{pos:c}=s,d=s.start(),h=s.end(),p=i.doc.textBetween(d,h,` `,` `).split(` `);let f=0,m=0;const v=c-d;for(let R=0;R<p.length;R+=1){if(m+p[R].length>=v){f=R;break}m+=p[R].length+1}const w=((u=p[f].match(/^ */))==null?void 0:u[0])||"",x=Math.min(w.length,n);if(x===0)return!0;let k=d;for(let R=0;R<f;R+=1)k+=p[R].length+1;return l.delete(k,k+x),c-k<=x&&l.setSelection(Lt.create(l.doc,k)),!0}):e.commands.command(({tr:l})=>{const{from:u,to:c}=o,d=i.doc.textBetween(u,c,` `,` `).split(` `).map(h=>{var p;const f=((p=h.match(/^ */))==null?void 0:p[0])||"",m=Math.min(f.length,n);return h.slice(m)}).join(` `);return l.replaceWith(u,c,i.schema.text(d)),!0})},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:r}=e,{selection:n}=r,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type)return!1;const s=i.parentOffset===i.parent.nodeSize-2,a=i.parent.textContent.endsWith(` `);return!s||!a?!1:e.chain().command(({tr:l})=>(l.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:r}=e,{selection:n,doc:i}=r,{$from:o,empty:s}=n;if(!s||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;const a=o.after();return a===void 0?!1:i.nodeAt(a)?e.commands.command(({tr:l})=>(l.setSelection(rr.near(i.resolve(a))),!0)):e.commands.exitCode()}}},addInputRules(){return[iT({find:Wfe,type:this.type,getAttributes:e=>({language:e[1]})}),iT({find:Kfe,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new lr({key:new hr("codeBlockVSCodeHandler"),props:{handlePaste:(e,r)=>{if(!r.clipboardData||this.editor.isActive(this.type.name))return!1;const n=r.clipboardData.getData("text/plain"),i=r.clipboardData.getData("vscode-editor-data"),o=i?JSON.parse(i):void 0,s=o?.mode;if(!n||!s)return!1;const{tr:a,schema:l}=e.state,u=l.text(n.replace(/\r\n?/g,` `));return a.replaceSelectionWith(this.type.create({language:s},u)),a.selection.$from.parent.type!==this.type&&a.setSelection(Lt.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),Z7=Qfe;const fR={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 r=e.state.selection.$from.node().nodeSize;e.commands.selectParentNode();const n=e.state.selection.$from.pos,i=n+r;return e.commands.setTextSelection({from:n,to:i}),!0}},Jfe=Z7.extend({addKeyboardShortcuts(){return fR}}),Xfe=tn.create({name:"doc",content:"block"}),W9e=xr.create({name:"PlainText",addOptions(){return{...this.parent?.(),lowlight:void 0,defaultLanguage:"plaintext"}},addExtensions(){return[Jfe.configure({lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage,exitOnTripleEnter:!1}),H7,Xfe,P7]}});var b4=(e,r)=>{if(e==="slot")return 0;if(e instanceof Function)return e(r);const{children:n,...i}=r??{};if(e==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,i,n]},eme=/^\s*>\s$/,tme=tn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return b4("blockquote",{...gr(this.options.HTMLAttributes,e),children:b4("slot",{})})},parseMarkdown:(e,r)=>r.createNode("blockquote",void 0,r.parseChildren(e.tokens||[])),renderMarkdown:(e,r)=>{if(!e.content)return"";const n=">",i=[];return e.content.forEach(o=>{const s=r.renderChildren([o]).split(` `).map(a=>a.trim()===""?n:`${n} ${a}`);i.push(s.join(` `))}),i.join(` ${n} `)},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[Hu({find:eme,type:this.type})]}}),rme=tme,nme=/(^|[^`])`([^`]+)`(?!`)$/,ime=/(^|[^`])`([^`]+)`(?!`)/g,ome=ec.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",gr(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(e,r)=>r.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,r)=>e.content?`\`${r.renderChildren(e.content)}\``:"",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[g0({find:nme,type:this.type})]},addPasteRules(){return[y0({find:ime,type:this.type})]}}),sme=ome,ame=tn.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,r)=>e.content?r.renderChildren(e.content,` `):""}),lme=ame,ume=tn.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{},nextNodeType:"paragraph"}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",gr(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(e,r)=>r.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>({chain:e,state:r})=>{if(!T$(r,r.schema.nodes[this.name]))return!1;const{selection:n}=r,{$to:i}=n,o=e();return r_(n)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({state:s,tr:a,dispatch:l})=>{if(l){const{$to:u}=a.selection,c=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?a.setSelection(Lt.create(a.doc,u.pos+1)):u.nodeAfter.isBlock?a.setSelection(Ht.create(a.doc,u.pos)):a.setSelection(Lt.create(a.doc,u.pos));else{const d=s.schema.nodes[this.options.nextNodeType]||u.parent.type.contentMatch.defaultType,h=d?.create();h&&(a.insert(c,h),a.setSelection(Lt.create(a.doc,c+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[b_({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),cme=ume,dme=Object.defineProperty,hme=(e,r)=>{for(var n in r)dme(e,n,{get:r[n],enumerable:!0})},pme="listItem",_S="textStyle",NS=/^\s*([-+*])\s$/,mR=tn.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",gr(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,r)=>e.type!=="list"||e.ordered?[]:{type:"bulletList",content:e.items?r.parseChildren(e.items):[]},renderMarkdown:(e,r)=>e.content?r.renderChildren(e.content,` `):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:r})=>this.options.keepAttributes?r().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(pme,this.editor.getAttributes(_S)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=Hu({find:NS,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Hu({find:NS,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(_S),editor:this.editor})),[e]}}),gR=tn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",gr(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(e,r)=>{if(e.type!=="list_item")return[];let n=[];if(e.tokens&&e.tokens.length>0)if(e.tokens.some(i=>i.type==="paragraph"))n=r.parseChildren(e.tokens);else{const i=e.tokens[0];if(i&&i.type==="text"&&i.tokens&&i.tokens.length>0){if(n=[{type:"paragraph",content:r.parseInline(i.tokens)}],e.tokens.length>1){const o=e.tokens.slice(1),s=r.parseChildren(o);n.push(...s)}}else n=r.parseChildren(e.tokens)}return n.length===0&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(e,r,n)=>mv(e,r,i=>i.parentType==="bulletList"?"- ":i.parentType==="orderedList"?`${i.index+1}. `:"- ",n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),fme={};hme(fme,{findListItemPos:()=>om,getNextListDepth:()=>$7,handleBackspace:()=>XT,handleDelete:()=>eb,hasListBefore:()=>yR,hasListItemAfter:()=>mme,hasListItemBefore:()=>TR,listItemHasSubList:()=>bR,nextListIsDeeper:()=>vR,nextListIsHigher:()=>AR});var om=(e,r)=>{const{$from:n}=r.selection,i=fi(e,r.schema);let o=null,s=n.depth,a=n.pos,l=null;for(;s>0&&l===null;)o=n.node(s),o.type===i?l=s:(s-=1,a-=1);return l===null?null:{$pos:r.doc.resolve(a),depth:l}},$7=(e,r)=>{const n=om(e,r);if(!n)return!1;const[,i]=NZ(r,e,n.$pos.pos+4);return i},yR=(e,r,n)=>{const{$anchor:i}=e.selection,o=Math.max(0,i.pos-2),s=e.doc.resolve(o).node();return!(!s||!n.includes(s.type.name))},TR=(e,r)=>{var n;const{$anchor:i}=r.selection,o=r.doc.resolve(i.pos-2);return!(o.index()===0||((n=o.nodeBefore)==null?void 0:n.type.name)!==e)},bR=(e,r,n)=>{if(!n)return!1;const i=fi(e,r.schema);let o=!1;return n.descendants(s=>{s.type===i&&(o=!0)}),o},XT=(e,r,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!ta(e.state,r)&&yR(e.state,r,n)){const{$anchor:a}=e.state.selection,l=e.state.doc.resolve(a.before()-1),u=[];l.node().descendants((h,p)=>{h.type.name===r&&u.push({node:h,pos:p})});const c=u.at(-1);if(!c)return!1;const d=e.state.doc.resolve(l.start()+c.pos+1);return e.chain().cut({from:a.start()-1,to:a.end()+1},d.end()).joinForward().run()}if(!ta(e.state,r)||!MZ(e.state))return!1;const i=om(r,e.state);if(!i)return!1;const o=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),s=bR(r,e.state,o);return TR(r,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(r).run()},vR=(e,r)=>{const n=$7(e,r),i=om(e,r);return!i||!n?!1:n>i.depth},AR=(e,r)=>{const n=$7(e,r),i=om(e,r);return!i||!n?!1:n<i.depth},eb=(e,r)=>{if(!ta(e.state,r)||!OZ(e.state,r))return!1;const{selection:n}=e.state,{$from:i,$to:o}=n;return!n.empty&&i.sameParent(o)?!1:vR(r,e.state)?e.chain().focus(e.state.selection.from+4).lift(r).joinBackward().run():AR(r,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},mme=(e,r)=>{var n;const{$anchor:i}=r.selection,o=r.doc.resolve(i.pos-i.parentOffset-2);return!(o.index()===o.parent.childCount-1||((n=o.nodeAfter)==null?void 0:n.type.name)!==e)},gme=xr.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let r=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&eb(e,n)&&(r=!0)}),r},"Mod-Delete":({editor:e})=>{let r=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&eb(e,n)&&(r=!0)}),r},Backspace:({editor:e})=>{let r=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{e.state.schema.nodes[n]!==void 0&&XT(e,n,i)&&(r=!0)}),r},"Mod-Backspace":({editor:e})=>{let r=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:i})=>{e.state.schema.nodes[n]!==void 0&&XT(e,n,i)&&(r=!0)}),r}}}}),FS=/^(\s*)(\d+)\.\s+(.*)$/,yme=/^\s/;function Tme(e){const r=[];let n=0,i=0;for(;n<e.length;){const o=e[n],s=o.match(FS);if(!s)break;const[,a,l,u]=s,c=a.length;let d=u,h=n+1;const p=[o];for(;h<e.length;){const f=e[h];if(f.match(FS))break;if(f.trim()==="")p.push(f),d+=` `,h+=1;else if(f.match(yme))p.push(f),d+=` ${f.slice(c+2)}`,h+=1;else break}r.push({indent:c,number:parseInt(l,10),content:d.trim(),raw:p.join(` `)}),i=h,n=h}return[r,i]}function ER(e,r,n){var i;const o=[];let s=0;for(;s<e.length;){const a=e[s];if(a.indent===r){const l=a.content.split(` `),u=((i=l[0])==null?void 0:i.trim())||"",c=[];u&&c.push({type:"paragraph",raw:u,tokens:n.inlineTokens(u)});const d=l.slice(1).join(` `).trim();if(d){const f=n.blockTokens(d);c.push(...f)}let h=s+1;const p=[];for(;h<e.length&&e[h].indent>r;)p.push(e[h]),h+=1;if(p.length>0){const f=Math.min(...p.map(v=>v.indent)),m=ER(p,f,n);c.push({type:"list",ordered:!0,start:p[0].number,items:m,raw:p.map(v=>v.raw).join(` `)})}o.push({type:"list_item",raw:a.raw,tokens:c}),s=h}else s+=1}return o}function bme(e,r){return e.map(n=>{if(n.type!=="list_item")return r.parseChildren([n])[0];const i=[];return n.tokens&&n.tokens.length>0&&n.tokens.forEach(o=>{if(o.type==="paragraph"||o.type==="list"||o.type==="blockquote"||o.type==="code")i.push(...r.parseChildren([o]));else if(o.type==="text"&&o.tokens){const s=r.parseChildren([o]);i.push({type:"paragraph",content:s})}else{const s=r.parseChildren([o]);s.length>0&&i.push(...s)}}),{type:"listItem",content:i}})}var vme="listItem",OS="textStyle",MS=/^(\d+)\.\s$/,wR=tn.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:r,...n}=e;return r===1?["ol",gr(this.options.HTMLAttributes,n),0]:["ol",gr(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(e,r)=>{if(e.type!=="list"||!e.ordered)return[];const n=e.start||1,i=e.items?bme(e.items,r):[];return n!==1?{type:"orderedList",attrs:{start:n},content:i}:{type:"orderedList",content:i}},renderMarkdown:(e,r)=>e.content?r.renderChildren(e.content,` `):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{const r=e.match(/^(\s*)(\d+)\.\s+/),n=r?.index;return n!==void 0?n:-1},tokenize:(e,r,n)=>{var i;const o=e.split(` `),[s,a]=Tme(o);if(s.length===0)return;const l=ER(s,0,n);return l.length===0?void 0:{type:"list",ordered:!0,start:((i=s[0])==null?void 0:i.number)||1,items:l,raw:o.slice(0,a).join(` `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:r})=>this.options.keepAttributes?r().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(vme,this.editor.getAttributes(OS)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=Hu({find:MS,type:this.type,getAttributes:r=>({start:+r[1]}),joinPredicate:(r,n)=>n.childCount+n.attrs.start===+r[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Hu({find:MS,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:r=>({start:+r[1],...this.editor.getAttributes(OS)}),joinPredicate:(r,n)=>n.childCount+n.attrs.start===+r[1],editor:this.editor})),[e]}}),Ame=/^\s*(\[([( |x])?\])\s$/,SR=tn.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 r=e.getAttribute("data-checked");return r===""||r==="true"},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:r}){return["li",gr(this.options.HTMLAttributes,r,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,r)=>{const n=[];if(e.tokens&&e.tokens.length>0?n.push(r.createNode("paragraph",{},r.parseInline(e.tokens))):e.text?n.push(r.createNode("paragraph",{},[r.createNode("text",{text:e.text})])):n.push(r.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const i=r.parseChildren(e.nestedTokens);n.push(...i)}return r.createNode("taskItem",{checked:e.checked||!1},n)},renderMarkdown:(e,r)=>{var n;const i=`- [${(n=e.attrs)!=null&&n.checked?"x":" "}] `;return mv(e,r,i)},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:r,getPos:n,editor:i})=>{const o=document.createElement("li"),s=document.createElement("label"),a=document.createElement("span"),l=document.createElement("input"),u=document.createElement("div"),c=h=>{var p,f;l.ariaLabel=((f=(p=this.options.a11y)==null?void 0:p.checkboxLabel)==null?void 0:f.call(p,h,l.checked))||`Task item checkbox for ${h.textContent||"empty task item"}`};c(e),s.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",h=>h.preventDefault()),l.addEventListener("change",h=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}const{checked:p}=h.target;i.isEditable&&typeof n=="function"&&i.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:f})=>{const m=n();if(typeof m!="number")return!1;const v=f.doc.nodeAt(m);return f.setNodeMarkup(m,void 0,{...v?.attrs,checked:p}),!0}).run(),!i.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,p)||(l.checked=!l.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([h,p])=>{o.setAttribute(h,p)}),o.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,s.append(l,a),o.append(s,u),Object.entries(r).forEach(([h,p])=>{o.setAttribute(h,p)});let d=new Set(Object.keys(r));return{dom:o,contentDOM:u,update:h=>{if(h.type!==this.type)return!1;o.dataset.checked=h.attrs.checked,l.checked=h.attrs.checked,c(h);const p=i.extensionManager.attributes,f=cf(h,p),m=new Set(Object.keys(f)),v=this.options.HTMLAttributes;return d.forEach(w=>{m.has(w)||(w in v?o.setAttribute(w,v[w]):o.removeAttribute(w))}),Object.entries(f).forEach(([w,x])=>{x==null?w in v?o.setAttribute(w,v[w]):o.removeAttribute(w):o.setAttribute(w,x)}),d=m,!0}}}},addInputRules(){return[Hu({find:Ame,type:this.type,getAttributes:e=>({checked:e[e.length-1]==="x"})})]}}),DR=tn.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",gr(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,r)=>r.createNode("taskList",{},r.parseChildren(e.items||[])),renderMarkdown:(e,r)=>e.content?r.renderChildren(e.content,` `):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var r;const n=(r=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:r.index;return n!==void 0?n:-1},tokenize(e,r,n){const i=s=>{const a=oT(s,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:l=>({indentLevel:l[1].length,mainContent:l[4],checked:l[3].toLowerCase()==="x"}),createToken:(l,u)=>({type:"taskItem",raw:"",mainContent:l.mainContent,indentLevel:l.indentLevel,checked:l.checked,text:l.mainContent,tokens:n.inlineTokens(l.mainContent),nestedTokens:u}),customNestedParser:i},n);return a?[{type:"taskList",raw:a.raw,items:a.items}]:n.blockTokens(s)},o=oT(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:s=>({indentLevel:s[1].length,mainContent:s[4],checked:s[3].toLowerCase()==="x"}),createToken:(s,a)=>({type:"taskItem",raw:"",mainContent:s.mainContent,indentLevel:s.indentLevel,checked:s.checked,text:s.mainContent,tokens:n.inlineTokens(s.mainContent),nestedTokens:a}),customNestedParser:i},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});xr.create({name:"listKit",addExtensions(){const e=[];return this.options.bulletList!==!1&&e.push(mR.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(gR.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(gme.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(wR.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(SR.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(DR.configure(this.options.taskList)),e}});function Eme(e={}){return new lr({view(r){return new wme(r,e)}})}class wme{constructor(r,n){var i;this.editorView=r,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(i=n.width)!==null&&i!==void 0?i:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let s=a=>{this[o](a)};return r.dom.addEventListener(o,s),{name:o,handler:s}})}destroy(){this.handlers.forEach(({name:r,handler:n})=>this.editorView.dom.removeEventListener(r,n))}update(r,n){this.cursorPos!=null&&n.doc!=r.state.doc&&(this.cursorPos>r.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(r){r!=this.cursorPos&&(this.cursorPos=r,r==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,o=this.editorView.dom,s=o.getBoundingClientRect(),a=s.width/o.offsetWidth,l=s.height/o.offsetHeight;if(n){let h=r.nodeBefore,p=r.nodeAfter;if(h||p){let f=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(f){let m=f.getBoundingClientRect(),v=h?m.bottom:m.top;h&&p&&(v=(v+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let w=this.width/2*l;i={left:m.left,right:m.right,top:v-w,bottom:v+w}}}}if(!i){let h=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*a;i={left:h.left-p,right:h.left+p,top:h.top,bottom:h.bottom}}let u=this.editorView.dom.offsetParent;this.element||(this.element=u.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 c,d;if(!u||u==document.body&&getComputedStyle(u).position=="static")c=-pageXOffset,d=-pageYOffset;else{let h=u.getBoundingClientRect(),p=h.width/u.offsetWidth,f=h.height/u.offsetHeight;c=h.left-u.scrollLeft*p,d=h.top-u.scrollTop*f}this.element.style.left=(i.left-c)/a+"px",this.element.style.top=(i.top-d)/l+"px",this.element.style.width=(i.right-i.left)/a+"px",this.element.style.height=(i.bottom-i.top)/l+"px"}scheduleRemoval(r){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),r)}dragover(r){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:r.clientX,top:r.clientY}),i=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=i&&i.type.spec.disableDropCursor,s=typeof o=="function"?o(this.editorView,n,r):o;if(n&&!s){let a=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Uk(this.editorView.state.doc,a,this.editorView.dragging.slice);l!=null&&(a=l)}this.setCursor(a),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(r){this.editorView.dom.contains(r.relatedTarget)||this.setCursor(null)}}class ni extends rr{constructor(r){super(r,r)}map(r,n){let i=r.resolve(n.map(this.head));return ni.valid(i)?new ni(i):rr.near(i)}content(){return ht.empty}eq(r){return r instanceof ni&&r.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(r,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ni(r.resolve(n.pos))}getBookmark(){return new U7(this.anchor)}static valid(r){let n=r.parent;if(n.isTextblock||!Sme(r)||!Dme(r))return!1;let i=n.type.spec.allowGapCursor;if(i!=null)return i;let o=n.contentMatchAt(r.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(r,n,i=!1){e:for(;;){if(!i&&ni.valid(r))return r;let o=r.pos,s=null;for(let a=r.depth;;a--){let l=r.node(a);if(n>0?r.indexAfter(a)<l.childCount:r.index(a)>0){s=l.child(n>0?r.indexAfter(a):r.index(a)-1);break}else if(a==0)return null;o+=n;let u=r.doc.resolve(o);if(ni.valid(u))return u}for(;;){let a=n>0?s.firstChild:s.lastChild;if(!a){if(s.isAtom&&!s.isText&&!Ht.isSelectable(s)){r=r.doc.resolve(o+s.nodeSize*n),i=!1;continue e}break}s=a,o+=n;let l=r.doc.resolve(o);if(ni.valid(l))return l}return null}}}ni.prototype.visible=!1,ni.findFrom=ni.findGapCursorFrom,rr.jsonID("gapcursor",ni);class U7{constructor(r){this.pos=r}map(r){return new U7(r.map(this.pos))}resolve(r){let n=r.resolve(this.pos);return ni.valid(n)?new ni(n):rr.near(n)}}function xR(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function Sme(e){for(let r=e.depth;r>=0;r--){let n=e.index(r),i=e.node(r);if(n==0){if(i.type.spec.isolating)return!0;continue}for(let o=i.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||xR(o.type))return!0;if(o.inlineContent)return!1}}return!0}function Dme(e){for(let r=e.depth;r>=0;r--){let n=e.indexAfter(r),i=e.node(r);if(n==i.childCount){if(i.type.spec.isolating)return!0;continue}for(let o=i.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||xR(o.type))return!0;if(o.inlineContent)return!1}}return!0}function xme(){return new lr({props:{decorations:Nme,createSelectionBetween(e,r,n){return r.pos==n.pos&&ni.valid(n)?new ni(n):null},handleClick:Cme,handleKeyDown:kme,handleDOMEvents:{beforeinput:_me}}})}const kme=rv({ArrowLeft:bg("horiz",-1),ArrowRight:bg("horiz",1),ArrowUp:bg("vert",-1),ArrowDown:bg("vert",1)});function bg(e,r){const n=e=="vert"?r>0?"down":"up":r>0?"right":"left";return function(i,o,s){let a=i.selection,l=r>0?a.$to:a.$from,u=a.empty;if(a instanceof Lt){if(!s.endOfTextblock(n)||l.depth==0)return!1;u=!1,l=i.doc.resolve(r>0?l.after():l.before())}let c=ni.findGapCursorFrom(l,r,u);return c?(o&&o(i.tr.setSelection(new ni(c))),!0):!1}}function Cme(e,r,n){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(r);if(!ni.valid(i))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Ht.isSelectable(e.state.doc.nodeAt(o.inside))?!1:(e.dispatch(e.state.tr.setSelection(new ni(i))),!0)}function _me(e,r){if(r.inputType!="insertCompositionText"||!(e.state.selection instanceof ni))return!1;let{$from:n}=e.state.selection,i=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!i)return!1;let o=ze.empty;for(let a=i.length-1;a>=0;a--)o=ze.from(i[a].createAndFill(null,o));let s=e.state.tr.replace(n.pos,n.pos,new ht(o,0,0));return s.setSelection(Lt.near(s.doc.resolve(n.pos+1))),e.dispatch(s),!1}function Nme(e){if(!(e.selection instanceof ni))return null;let r=document.createElement("div");return r.className="ProseMirror-gapcursor",Nr.create(e.doc,[kn.widget(e.selection.head,r,{key:"gapcursor"})])}var v4=200,Hi=function(){};Hi.prototype.append=function(e){return e.length?(e=Hi.from(e),!this.length&&e||e.length<v4&&this.leafAppend(e)||this.length<v4&&e.leafPrepend(this)||this.appendInner(e)):this},Hi.prototype.prepend=function(e){return e.length?Hi.from(e).append(this):this},Hi.prototype.appendInner=function(e){return new Fme(this,e)},Hi.prototype.slice=function(e,r){return e===void 0&&(e=0),r===void 0&&(r=this.length),e>=r?Hi.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,r))},Hi.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Hi.prototype.forEach=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length),r<=n?this.forEachInner(e,r,n,0):this.forEachInvertedInner(e,r,n,0)},Hi.prototype.map=function(e,r,n){r===void 0&&(r=0),n===void 0&&(n=this.length);var i=[];return this.forEach(function(o,s){return i.push(e(o,s))},r,n),i},Hi.from=function(e){return e instanceof Hi?e:e&&e.length?new kR(e):Hi.empty};var kR=(function(e){function r(i){e.call(this),this.values=i}e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r;var n={length:{configurable:!0},depth:{configurable:!0}};return r.prototype.flatten=function(){return this.values},r.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new r(this.values.slice(i,o))},r.prototype.getInner=function(i){return this.values[i]},r.prototype.forEachInner=function(i,o,s,a){for(var l=o;l<s;l++)if(i(this.values[l],a+l)===!1)return!1},r.prototype.forEachInvertedInner=function(i,o,s,a){for(var l=o-1;l>=s;l--)if(i(this.values[l],a+l)===!1)return!1},r.prototype.leafAppend=function(i){if(this.length+i.length<=v4)return new r(this.values.concat(i.flatten()))},r.prototype.leafPrepend=function(i){if(this.length+i.length<=v4)return new r(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(r.prototype,n),r})(Hi);Hi.empty=new kR([]);var Fme=(function(e){function r(n,i){e.call(this),this.left=n,this.right=i,this.length=n.length+i.length,this.depth=Math.max(n.depth,i.depth)+1}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},r.prototype.getInner=function(n){return n<this.left.length?this.left.get(n):this.right.get(n-this.left.length)},r.prototype.forEachInner=function(n,i,o,s){var a=this.left.length;if(i<a&&this.left.forEachInner(n,i,Math.min(o,a),s)===!1||o>a&&this.right.forEachInner(n,Math.max(i-a,0),Math.min(this.length,o)-a,s+a)===!1)return!1},r.prototype.forEachInvertedInner=function(n,i,o,s){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(n,i-a,Math.max(o,a)-a,s+a)===!1||o<a&&this.left.forEachInvertedInner(n,Math.min(i,a),o,s)===!1)return!1},r.prototype.sliceInner=function(n,i){if(n==0&&i==this.length)return this;var o=this.left.length;return i<=o?this.left.slice(n,i):n>=o?this.right.slice(n-o,i-o):this.left.slice(n,o).append(this.right.slice(0,i-o))},r.prototype.leafAppend=function(n){var i=this.right.leafAppend(n);if(i)return new r(this.left,i)},r.prototype.leafPrepend=function(n){var i=this.left.leafPrepend(n);if(i)return new r(i,this.right)},r.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new r(this.left,new r(this.right,n)):new r(this,n)},r})(Hi);const Ome=500;class Da{constructor(r,n){this.items=r,this.eventCount=n}popEvent(r,n){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let o,s;n&&(o=this.remapping(i,this.items.length),s=o.maps.length);let a=r.tr,l,u,c=[],d=[];return this.items.forEach((h,p)=>{if(!h.step){o||(o=this.remapping(i,p+1),s=o.maps.length),s--,d.push(h);return}if(o){d.push(new ll(h.map));let f=h.step.map(o.slice(s)),m;f&&a.maybeStep(f).doc&&(m=a.mapping.maps[a.mapping.maps.length-1],c.push(new ll(m,void 0,void 0,c.length+d.length))),s--,m&&o.appendMap(m,s)}else a.maybeStep(h.step);if(h.selection)return l=o?h.selection.map(o.slice(s)):h.selection,u=new Da(this.items.slice(0,i).append(d.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:a,selection:l}}addTransform(r,n,i,o){let s=[],a=this.eventCount,l=this.items,u=!o&&l.length?l.get(l.length-1):null;for(let d=0;d<r.steps.length;d++){let h=r.steps[d].invert(r.docs[d]),p=new ll(r.mapping.maps[d],h,n),f;(f=u&&u.merge(p))&&(p=f,d?s.pop():l=l.slice(0,l.length-1)),s.push(p),n&&(a++,n=void 0),o||(u=p)}let c=a-i.depth;return c>Rme&&(l=Mme(l,c),a-=c),new Da(l.append(s),a)}remapping(r,n){let i=new nf;return this.items.forEach((o,s)=>{let a=o.mirrorOffset!=null&&s-o.mirrorOffset>=r?i.maps.length-o.mirrorOffset:void 0;i.appendMap(o.map,a)},r,n),i}addMaps(r){return this.eventCount==0?this:new Da(this.items.append(r.map(n=>new ll(n))),this.eventCount)}rebased(r,n){if(!this.eventCount)return this;let i=[],o=Math.max(0,this.items.length-n),s=r.mapping,a=r.steps.length,l=this.eventCount;this.items.forEach(p=>{p.selection&&l--},o);let u=n;this.items.forEach(p=>{let f=s.getMirror(--u);if(f==null)return;a=Math.min(a,f);let m=s.maps[f];if(p.step){let v=r.steps[f].invert(r.docs[f]),w=p.selection&&p.selection.map(s.slice(u+1,f));w&&l++,i.push(new ll(m,v,w))}else i.push(new ll(m))},o);let c=[];for(let p=n;p<a;p++)c.push(new ll(s.maps[p]));let d=this.items.slice(0,o).append(c).append(i),h=new Da(d,l);return h.emptyItemCount()>Ome&&(h=h.compress(this.items.length-i.length)),h}emptyItemCount(){let r=0;return this.items.forEach(n=>{n.step||r++}),r}compress(r=this.items.length){let n=this.remapping(0,r),i=n.maps.length,o=[],s=0;return this.items.forEach((a,l)=>{if(l>=r)o.push(a),a.selection&&s++;else if(a.step){let u=a.step.map(n.slice(i)),c=u&&u.getMap();if(i--,c&&n.appendMap(c,i),u){let d=a.selection&&a.selection.map(n.slice(i));d&&s++;let h=new ll(c.invert(),u,d),p,f=o.length-1;(p=o.length&&o[f].merge(h))?o[f]=p:o.push(h)}}else a.map&&i--},this.items.length,0),new Da(Hi.from(o.reverse()),s)}}Da.empty=new Da(Hi.empty,0);function Mme(e,r){let n;return e.forEach((i,o)=>{if(i.selection&&r--==0)return n=o,!1}),e.slice(n)}class ll{constructor(r,n,i,o){this.map=r,this.step=n,this.selection=i,this.mirrorOffset=o}merge(r){if(this.step&&r.step&&!r.selection){let n=r.step.merge(this.step);if(n)return new ll(n.getMap().invert(),n,this.selection)}}}class au{constructor(r,n,i,o,s){this.done=r,this.undone=n,this.prevRanges=i,this.prevTime=o,this.prevComposition=s}}const Rme=20;function Bme(e,r,n,i){let o=n.getMeta(Vc),s;if(o)return o.historyState;n.getMeta(zme)&&(e=new au(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(a&&a.getMeta(Vc))return a.getMeta(Vc).redo?new au(e.done.addTransform(n,void 0,i,g2(r)),e.undone,RS(n.mapping.maps),e.prevTime,e.prevComposition):new au(e.done,e.undone.addTransform(n,void 0,i,g2(r)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),u=e.prevTime==0||!a&&e.prevComposition!=l&&(e.prevTime<(n.time||0)-i.newGroupDelay||!Ime(n,e.prevRanges)),c=a?P6(e.prevRanges,n.mapping):RS(n.mapping.maps);return new au(e.done.addTransform(n,u?r.selection.getBookmark():void 0,i,g2(r)),Da.empty,c,n.time,l??e.prevComposition)}else return(s=n.getMeta("rebased"))?new au(e.done.rebased(n,s),e.undone.rebased(n,s),P6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new au(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),P6(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Ime(e,r){if(!r)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((i,o)=>{for(let s=0;s<r.length;s+=2)i<=r[s+1]&&o>=r[s]&&(n=!0)}),n}function RS(e){let r=[];for(let n=e.length-1;n>=0&&r.length==0;n--)e[n].forEach((i,o,s,a)=>r.push(s,a));return r}function P6(e,r){if(!e)return null;let n=[];for(let i=0;i<e.length;i+=2){let o=r.map(e[i],1),s=r.map(e[i+1],-1);o<=s&&n.push(o,s)}return n}function Lme(e,r,n){let i=g2(r),o=Vc.get(r).spec.config,s=(n?e.undone:e.done).popEvent(r,i);if(!s)return null;let a=s.selection.resolve(s.transform.doc),l=(n?e.done:e.undone).addTransform(s.transform,r.selection.getBookmark(),o,i),u=new au(n?l:s.remaining,n?s.remaining:l,null,0,-1);return s.transform.setSelection(a).setMeta(Vc,{redo:n,historyState:u})}let Z6=!1,BS=null;function g2(e){let r=e.plugins;if(BS!=r){Z6=!1,BS=r;for(let n=0;n<r.length;n++)if(r[n].spec.historyPreserveItems){Z6=!0;break}}return Z6}const Vc=new hr("history"),zme=new hr("closeHistory");function Yme(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new lr({key:Vc,state:{init(){return new au(Da.empty,Da.empty,null,0,-1)},apply(r,n,i){return Bme(n,i,r,e)}},config:e,props:{handleDOMEvents:{beforeinput(r,n){let i=n.inputType,o=i=="historyUndo"?_R:i=="historyRedo"?NR:null;return!o||!r.editable?!1:(n.preventDefault(),o(r.state,r.dispatch))}}}})}function CR(e,r){return(n,i)=>{let o=Vc.getState(n);if(!o||(e?o.undone:o.done).eventCount==0)return!1;if(i){let s=Lme(o,n,e);s&&i(r?s.scrollIntoView():s)}return!0}}const _R=CR(!1,!0),NR=CR(!0,!0);var Hme=xr.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(r=>r!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const r=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=r.textBetween(0,r.content.size,void 0," ");return this.options.textCounter(n)}return r.nodeSize},this.storage.words=e=>{const r=e?.node||this.editor.state.doc,n=r.textBetween(0,r.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new lr({key:new hr("characterCount"),appendTransaction:(r,n,i)=>{if(e)return;const o=this.options.limit;if(o==null||o===0){e=!0;return}const s=this.storage.characters({node:i.doc});if(s>o){const a=s-o,l=0,u=a;console.warn(`[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`);const c=i.tr.deleteRange(l,u);return e=!0,c}e=!0},filterTransaction:(r,n)=>{const i=this.options.limit;if(!r.docChanged||i===0||i===null||i===void 0)return!0;const o=this.storage.characters({node:n.doc}),s=this.storage.characters({node:r.doc});if(s<=i||o>i&&s>i&&s<=o)return!0;if(o>i&&s>i&&s>o||!r.getMeta("paste"))return!1;const a=r.selection.$head.pos,l=s-i,u=a-l,c=a;return r.deleteRange(u,c),!(this.storage.characters({node:r.doc})>i)}})]}}),Pme=xr.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Eme(this.options)]}});xr.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new lr({key:new hr("focus"),props:{decorations:({doc:e,selection:r})=>{const{isEditable:n,isFocused:i}=this.editor,{anchor:o}=r,s=[];if(!n||!i)return Nr.create(e,[]);let a=0;this.options.mode==="deepest"&&e.descendants((u,c)=>{if(!u.isText){if(!(o>=c&&o<=c+u.nodeSize-1))return!1;a+=1}});let l=0;return e.descendants((u,c)=>{if(u.isText||!(o>=c&&o<=c+u.nodeSize-1))return!1;if(l+=1,this.options.mode==="deepest"&&a-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";s.push(kn.node(c,c+u.nodeSize,{class:this.options.className}))}),Nr.create(e,s)}}})]}});var Zme=xr.create({name:"gapCursor",addProseMirrorPlugins(){return[xme()]},extendNodeSchema(e){var r;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(r=Xr(zt(e,"allowGapCursor",n)))!=null?r:null}}}),$me=xr.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new lr({key:new hr("placeholder"),props:{decorations:({doc:e,selection:r})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=r,o=[];if(!n)return null;const s=this.editor.isEmpty;return e.descendants((a,l)=>{const u=i>=l&&i<=l+a.nodeSize,c=!a.isLeaf&&v3(a);if((u||!this.options.showOnlyCurrent)&&c){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=kn.node(l,l+a.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:u}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Nr.create(e,o)}}})]}});xr.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:e,options:r}=this;return[new lr({key:new hr("selection"),props:{decorations(n){return n.selection.empty||e.isFocused||!e.isEditable||r_(n.selection)||e.view.dragging?null:Nr.create(n.doc,[kn.inline(n.selection.from,n.selection.to,{class:r.className})])}}})]}});function IS({types:e,node:r}){return r&&Array.isArray(e)&&e.includes(r.type)||r?.type===e}xr.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var e;const r=new hr(this.name),n=this.options.node||((e=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:e.name)||"paragraph",i=Object.entries(this.editor.schema.nodes).map(([,o])=>o).filter(o=>(this.options.notAfter||[]).concat(n).includes(o.name));return[new lr({key:r,appendTransaction:(o,s,a)=>{const{doc:l,tr:u,schema:c}=a,d=r.getState(a),h=l.content.size,p=c.nodes[n];if(d)return u.insert(h,p.create())},state:{init:(o,s)=>{const a=s.tr.doc.lastChild;return!IS({node:a,types:i})},apply:(o,s)=>{if(!o.docChanged||o.getMeta("__uniqueIDTransaction"))return s;const a=o.doc.lastChild;return!IS({node:a,types:i})}}})]}});var K9e=xr.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:r})=>_R(e,r),redo:()=>({state:e,dispatch:r})=>NR(e,r)}},addProseMirrorPlugins(){return[Yme(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Ume=$me;function Vme(e,r,{connection:n}){const i=ud(n);if(!i){const s=new Error("Disconnected. Could not notify user about mention.");return console.warn(s.message,{err:s,mention:e}),Promise.resolve()}const o=bo(`apps/text/session/${i.documentId}/mention`);return qn.put(o,{documentId:i.documentId,sessionId:i.sessionId,sessionToken:i.sessionToken,mention:e,scope:r})}const jme=bo("apps/text/api/v1/users");async function Gme(e,{connection:r}){const n=ud(r);if(!n){const o=new Error("Disconnected. Could not lookup users to mention.");return console.warn(o.message,{err:o}),Promise.resolve({})}const i=await qn.post(jme,{...n,filter:e});return JSON.parse(JSON.stringify(i.data))}var ns="top",ia="bottom",oa="right",is="left",V7="auto",sm=[ns,ia,oa,is],Gh="start",Bf="end",qme="clippingParents",FR="viewport",u1="popper",Wme="reference",LS=sm.reduce(function(e,r){return e.concat([r+"-"+Gh,r+"-"+Bf])},[]),OR=[].concat(sm,[V7]).reduce(function(e,r){return e.concat([r,r+"-"+Gh,r+"-"+Bf])},[]),Kme="beforeRead",Qme="read",Jme="afterRead",Xme="beforeMain",ege="main",tge="afterMain",rge="beforeWrite",nge="write",ige="afterWrite",oge=[Kme,Qme,Jme,Xme,ege,tge,rge,nge,ige];function _l(e){return e?(e.nodeName||"").toLowerCase():null}function Ms(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function od(e){var r=Ms(e).Element;return e instanceof r||e instanceof Element}function Js(e){var r=Ms(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function j7(e){if(typeof ShadowRoot>"u")return!1;var r=Ms(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function sge(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var i=r.styles[n]||{},o=r.attributes[n]||{},s=r.elements[n];!Js(s)||!_l(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function age(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(i){var o=r.elements[i],s=r.attributes[i]||{},a=Object.keys(r.styles.hasOwnProperty(i)?r.styles[i]:n[i]),l=a.reduce(function(u,c){return u[c]="",u},{});!Js(o)||!_l(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}const MR={name:"applyStyles",enabled:!0,phase:"write",fn:sge,effect:age,requires:["computeStyles"]};function El(e){return e.split("-")[0]}var jc=Math.max,A4=Math.min,qh=Math.round;function tb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function RR(){return!/^((?!chrome|android).)*safari/i.test(tb())}function Wh(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;r&&Js(e)&&(o=e.offsetWidth>0&&qh(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&qh(i.height)/e.offsetHeight||1);var a=od(e)?Ms(e):window,l=a.visualViewport,u=!RR()&&n,c=(i.left+(u&&l?l.offsetLeft:0))/o,d=(i.top+(u&&l?l.offsetTop:0))/s,h=i.width/o,p=i.height/s;return{width:h,height:p,top:d,right:c+h,bottom:d+p,left:c,x:c,y:d}}function G7(e){var r=Wh(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-i)<=1&&(i=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function BR(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&j7(n)){var i=r;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function v0(e){return Ms(e).getComputedStyle(e)}function lge(e){return["table","td","th"].indexOf(_l(e))>=0}function nc(e){return((od(e)?e.ownerDocument:e.document)||window.document).documentElement}function t5(e){return _l(e)==="html"?e:e.assignedSlot||e.parentNode||(j7(e)?e.host:null)||nc(e)}function zS(e){return!Js(e)||v0(e).position==="fixed"?null:e.offsetParent}function uge(e){var r=/firefox/i.test(tb()),n=/Trident/i.test(tb());if(n&&Js(e)){var i=v0(e);if(i.position==="fixed")return null}var o=t5(e);for(j7(o)&&(o=o.host);Js(o)&&["html","body"].indexOf(_l(o))<0;){var s=v0(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||r&&s.willChange==="filter"||r&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function am(e){for(var r=Ms(e),n=zS(e);n&&lge(n)&&v0(n).position==="static";)n=zS(n);return n&&(_l(n)==="html"||_l(n)==="body"&&v0(n).position==="static")?r:n||uge(e)||r}function q7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function R1(e,r,n){return jc(e,A4(r,n))}function cge(e,r,n){var i=R1(e,r,n);return i>n?n:i}function IR(){return{top:0,right:0,bottom:0,left:0}}function LR(e){return Object.assign({},IR(),e)}function zR(e,r){return r.reduce(function(n,i){return n[i]=e,n},{})}var dge=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,LR(typeof e!="number"?e:zR(e,sm))};function hge(e){var r,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=El(n.placement),u=q7(l),c=[is,oa].indexOf(l)>=0,d=c?"height":"width";if(!(!s||!a)){var h=dge(o.padding,n),p=G7(s),f=u==="y"?ns:is,m=u==="y"?ia:oa,v=n.rects.reference[d]+n.rects.reference[u]-a[u]-n.rects.popper[d],w=a[u]-n.rects.reference[u],x=am(s),k=x?u==="y"?x.clientHeight||0:x.clientWidth||0:0,R=v/2-w/2,O=h[f],P=k-p[d]-h[m],V=k/2-p[d]/2+R,W=R1(O,V,P),ie=u;n.modifiersData[i]=(r={},r[ie]=W,r.centerOffset=W-V,r)}}function pge(e){var r=e.state,n=e.options,i=n.element,o=i===void 0?"[data-popper-arrow]":i;o!=null&&(typeof o=="string"&&(o=r.elements.popper.querySelector(o),!o)||BR(r.elements.popper,o)&&(r.elements.arrow=o))}const fge={name:"arrow",enabled:!0,phase:"main",fn:hge,effect:pge,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kh(e){return e.split("-")[1]}var mge={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gge(e,r){var n=e.x,i=e.y,o=r.devicePixelRatio||1;return{x:qh(n*o)/o||0,y:qh(i*o)/o||0}}function YS(e){var r,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=a.x,f=p===void 0?0:p,m=a.y,v=m===void 0?0:m,w=typeof d=="function"?d({x:f,y:v}):{x:f,y:v};f=w.x,v=w.y;var x=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),R=is,O=ns,P=window;if(c){var V=am(n),W="clientHeight",ie="clientWidth";if(V===Ms(n)&&(V=nc(n),v0(V).position!=="static"&&l==="absolute"&&(W="scrollHeight",ie="scrollWidth")),V=V,o===ns||(o===is||o===oa)&&s===Bf){O=ia;var ue=h&&V===P&&P.visualViewport?P.visualViewport.height:V[W];v-=ue-i.height,v*=u?1:-1}if(o===is||(o===ns||o===ia)&&s===Bf){R=oa;var I=h&&V===P&&P.visualViewport?P.visualViewport.width:V[ie];f-=I-i.width,f*=u?1:-1}}var ne=Object.assign({position:l},c&&mge),he=d===!0?gge({x:f,y:v},Ms(n)):{x:f,y:v};if(f=he.x,v=he.y,u){var re;return Object.assign({},ne,(re={},re[O]=k?"0":"",re[R]=x?"0":"",re.transform=(P.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",re))}return Object.assign({},ne,(r={},r[O]=k?v+"px":"",r[R]=x?f+"px":"",r.transform="",r))}function yge(e){var r=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:El(r.placement),variation:Kh(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:o,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,YS(Object.assign({},c,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:a,roundOffsets:u})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,YS(Object.assign({},c,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const Tge={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yge,data:{}};var vg={passive:!0};function bge(e){var r=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,a=i.resize,l=a===void 0?!0:a,u=Ms(r.elements.popper),c=[].concat(r.scrollParents.reference,r.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,vg)}),l&&u.addEventListener("resize",n.update,vg),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,vg)}),l&&u.removeEventListener("resize",n.update,vg)}}const vge={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bge,data:{}};var Age={left:"right",right:"left",bottom:"top",top:"bottom"};function y2(e){return e.replace(/left|right|bottom|top/g,function(r){return Age[r]})}var Ege={start:"end",end:"start"};function HS(e){return e.replace(/start|end/g,function(r){return Ege[r]})}function W7(e){var r=Ms(e),n=r.pageXOffset,i=r.pageYOffset;return{scrollLeft:n,scrollTop:i}}function K7(e){return Wh(nc(e)).left+W7(e).scrollLeft}function wge(e,r){var n=Ms(e),i=nc(e),o=n.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;var c=RR();(c||!c&&r==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:l+K7(e),y:u}}function Sge(e){var r,n=nc(e),i=W7(e),o=(r=e.ownerDocument)==null?void 0:r.body,s=jc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-i.scrollLeft+K7(e),u=-i.scrollTop;return v0(o||n).direction==="rtl"&&(l+=jc(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:u}}function Q7(e){var r=v0(e),n=r.overflow,i=r.overflowX,o=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function YR(e){return["html","body","#document"].indexOf(_l(e))>=0?e.ownerDocument.body:Js(e)&&Q7(e)?e:YR(t5(e))}function B1(e,r){var n;r===void 0&&(r=[]);var i=YR(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Ms(i),a=o?[s].concat(s.visualViewport||[],Q7(i)?i:[]):i,l=r.concat(a);return o?l:l.concat(B1(t5(a)))}function rb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dge(e,r){var n=Wh(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function PS(e,r,n){return r===FR?rb(wge(e,n)):od(r)?Dge(r,n):rb(Sge(nc(e)))}function xge(e){var r=B1(t5(e)),n=["absolute","fixed"].indexOf(v0(e).position)>=0,i=n&&Js(e)?am(e):e;return od(i)?r.filter(function(o){return od(o)&&BR(o,i)&&_l(o)!=="body"}):[]}function kge(e,r,n,i){var o=r==="clippingParents"?xge(e):[].concat(r),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(u,c){var d=PS(e,c,i);return u.top=jc(d.top,u.top),u.right=A4(d.right,u.right),u.bottom=A4(d.bottom,u.bottom),u.left=jc(d.left,u.left),u},PS(e,a,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function HR(e){var r=e.reference,n=e.element,i=e.placement,o=i?El(i):null,s=i?Kh(i):null,a=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2,u;switch(o){case ns:u={x:a,y:r.y-n.height};break;case ia:u={x:a,y:r.y+r.height};break;case oa:u={x:r.x+r.width,y:l};break;case is:u={x:r.x-n.width,y:l};break;default:u={x:r.x,y:r.y}}var c=o?q7(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case Gh:u[c]=u[c]-(r[d]/2-n[d]/2);break;case Bf:u[c]=u[c]+(r[d]/2-n[d]/2);break}}return u}function If(e,r){r===void 0&&(r={});var n=r,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,u=l===void 0?qme:l,c=n.rootBoundary,d=c===void 0?FR:c,h=n.elementContext,p=h===void 0?u1:h,f=n.altBoundary,m=f===void 0?!1:f,v=n.padding,w=v===void 0?0:v,x=LR(typeof w!="number"?w:zR(w,sm)),k=p===u1?Wme:u1,R=e.rects.popper,O=e.elements[m?k:p],P=kge(od(O)?O:O.contextElement||nc(e.elements.popper),u,d,a),V=Wh(e.elements.reference),W=HR({reference:V,element:R,placement:o}),ie=rb(Object.assign({},R,W)),ue=p===u1?ie:V,I={top:P.top-ue.top+x.top,bottom:ue.bottom-P.bottom+x.bottom,left:P.left-ue.left+x.left,right:ue.right-P.right+x.right},ne=e.modifiersData.offset;if(p===u1&&ne){var he=ne[o];Object.keys(I).forEach(function(re){var Ee=[oa,ia].indexOf(re)>=0?1:-1,ge=[ns,ia].indexOf(re)>=0?"y":"x";I[re]+=he[ge]*Ee})}return I}function Cge(e,r){r===void 0&&(r={});var n=r,i=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?OR:u,d=Kh(i),h=d?l?LS:LS.filter(function(m){return Kh(m)===d}):sm,p=h.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=h);var f=p.reduce(function(m,v){return m[v]=If(e,{placement:v,boundary:o,rootBoundary:s,padding:a})[El(v)],m},{});return Object.keys(f).sort(function(m,v){return f[m]-f[v]})}function _ge(e){if(El(e)===V7)return[];var r=y2(e);return[HS(e),r,HS(r)]}function Nge(e){var r=e.state,n=e.options,i=e.name;if(!r.modifiersData[i]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,u=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,v=n.allowedAutoPlacements,w=r.options.placement,x=El(w),k=x===w,R=u||(k||!m?[y2(w)]:_ge(w)),O=[w].concat(R).reduce(function(Vt,Ot){return Vt.concat(El(Ot)===V7?Cge(r,{placement:Ot,boundary:d,rootBoundary:h,padding:c,flipVariations:m,allowedAutoPlacements:v}):Ot)},[]),P=r.rects.reference,V=r.rects.popper,W=new Map,ie=!0,ue=O[0],I=0;I<O.length;I++){var ne=O[I],he=El(ne),re=Kh(ne)===Gh,Ee=[ns,ia].indexOf(he)>=0,ge=Ee?"width":"height",Oe=If(r,{placement:ne,boundary:d,rootBoundary:h,altBoundary:p,padding:c}),Me=Ee?re?oa:is:re?ia:ns;P[ge]>V[ge]&&(Me=y2(Me));var Ve=y2(Me),it=[];if(s&&it.push(Oe[he]<=0),l&&it.push(Oe[Me]<=0,Oe[Ve]<=0),it.every(function(Vt){return Vt})){ue=ne,ie=!1;break}W.set(ne,it)}if(ie)for(var ct=m?3:1,Ct=function(Vt){var Ot=O.find(function(jt){var _t=W.get(jt);if(_t)return _t.slice(0,Vt).every(function(Fr){return Fr})});if(Ot)return ue=Ot,"break"},Ye=ct;Ye>0;Ye--){var Kt=Ct(Ye);if(Kt==="break")break}r.placement!==ue&&(r.modifiersData[i]._skip=!0,r.placement=ue,r.reset=!0)}}const Fge={name:"flip",enabled:!0,phase:"main",fn:Nge,requiresIfExists:["offset"],data:{_skip:!1}};function ZS(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function $S(e){return[ns,oa,ia,is].some(function(r){return e[r]>=0})}function Oge(e){var r=e.state,n=e.name,i=r.rects.reference,o=r.rects.popper,s=r.modifiersData.preventOverflow,a=If(r,{elementContext:"reference"}),l=If(r,{altBoundary:!0}),u=ZS(a,i),c=ZS(l,o,s),d=$S(u),h=$S(c);r.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const Mge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oge};function Rge(e,r,n){var i=El(e),o=[is,ns].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[is,oa].indexOf(i)>=0?{x:l,y:a}:{x:a,y:l}}function Bge(e){var r=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=OR.reduce(function(d,h){return d[h]=Rge(h,r.rects,s),d},{}),l=a[r.placement],u=l.x,c=l.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=u,r.modifiersData.popperOffsets.y+=c),r.modifiersData[i]=a}const Ige={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bge};function Lge(e){var r=e.state,n=e.name;r.modifiersData[n]=HR({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const zge={name:"popperOffsets",enabled:!0,phase:"read",fn:Lge,data:{}};function Yge(e){return e==="x"?"y":"x"}function Hge(e){var r=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,p=n.tether,f=p===void 0?!0:p,m=n.tetherOffset,v=m===void 0?0:m,w=If(r,{boundary:u,rootBoundary:c,padding:h,altBoundary:d}),x=El(r.placement),k=Kh(r.placement),R=!k,O=q7(x),P=Yge(O),V=r.modifiersData.popperOffsets,W=r.rects.reference,ie=r.rects.popper,ue=typeof v=="function"?v(Object.assign({},r.rects,{placement:r.placement})):v,I=typeof ue=="number"?{mainAxis:ue,altAxis:ue}:Object.assign({mainAxis:0,altAxis:0},ue),ne=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,he={x:0,y:0};if(V){if(s){var re,Ee=O==="y"?ns:is,ge=O==="y"?ia:oa,Oe=O==="y"?"height":"width",Me=V[O],Ve=Me+w[Ee],it=Me-w[ge],ct=f?-ie[Oe]/2:0,Ct=k===Gh?W[Oe]:ie[Oe],Ye=k===Gh?-ie[Oe]:-W[Oe],Kt=r.elements.arrow,Vt=f&&Kt?G7(Kt):{width:0,height:0},Ot=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:IR(),jt=Ot[Ee],_t=Ot[ge],Fr=R1(0,W[Oe],Vt[Oe]),jr=R?W[Oe]/2-ct-Fr-jt-I.mainAxis:Ct-Fr-jt-I.mainAxis,pt=R?-W[Oe]/2+ct+Fr+_t+I.mainAxis:Ye+Fr+_t+I.mainAxis,nr=r.elements.arrow&&am(r.elements.arrow),Yt=nr?O==="y"?nr.clientTop||0:nr.clientLeft||0:0,vr=(re=ne?.[O])!=null?re:0,Gr=Me+jr-vr-Yt,An=Me+pt-vr,Ft=R1(f?A4(Ve,Gr):Ve,Me,f?jc(it,An):it);V[O]=Ft,he[O]=Ft-Me}if(l){var ee,ye=O==="x"?ns:is,se=O==="x"?ia:oa,Pe=V[P],dt=P==="y"?"height":"width",ut=Pe+w[ye],Be=Pe-w[se],Le=[ns,is].indexOf(x)!==-1,de=(ee=ne?.[P])!=null?ee:0,We=Le?ut:Pe-W[dt]-ie[dt]-de+I.altAxis,Sr=Le?Pe+W[dt]+ie[dt]-de-I.altAxis:Be,kr=f&&Le?cge(We,Pe,Sr):R1(f?We:ut,Pe,f?Sr:Be);V[P]=kr,he[P]=kr-Pe}r.modifiersData[i]=he}}const Pge={name:"preventOverflow",enabled:!0,phase:"main",fn:Hge,requiresIfExists:["offset"]};function Zge(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $ge(e){return e===Ms(e)||!Js(e)?W7(e):Zge(e)}function Uge(e){var r=e.getBoundingClientRect(),n=qh(r.width)/e.offsetWidth||1,i=qh(r.height)/e.offsetHeight||1;return n!==1||i!==1}function Vge(e,r,n){n===void 0&&(n=!1);var i=Js(r),o=Js(r)&&Uge(r),s=nc(r),a=Wh(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((_l(r)!=="body"||Q7(s))&&(l=$ge(r)),Js(r)?(u=Wh(r,!0),u.x+=r.clientLeft,u.y+=r.clientTop):s&&(u.x=K7(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function jge(e){var r=new Map,n=new Set,i=[];e.forEach(function(s){r.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var u=r.get(l);u&&o(u)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),i}function Gge(e){var r=jge(e);return oge.reduce(function(n,i){return n.concat(r.filter(function(o){return o.phase===i}))},[])}function qge(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function Wge(e){var r=e.reduce(function(n,i){var o=n[i.name];return n[i.name]=o?Object.assign({},o,i,{options:Object.assign({},o.options,i.options),data:Object.assign({},o.data,i.data)}):i,n},{});return Object.keys(r).map(function(n){return r[n]})}var US={placement:"bottom",modifiers:[],strategy:"absolute"};function VS(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Kge(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,i=n===void 0?[]:n,o=r.defaultOptions,s=o===void 0?US:o;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},US,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,p={state:c,setOptions:function(v){var w=typeof v=="function"?v(c.options):v;m(),c.options=Object.assign({},s,c.options,w),c.scrollParents={reference:od(a)?B1(a):a.contextElement?B1(a.contextElement):[],popper:B1(l)};var x=Gge(Wge([].concat(i,c.options.modifiers)));return c.orderedModifiers=x.filter(function(k){return k.enabled}),f(),p.update()},forceUpdate:function(){if(!h){var v=c.elements,w=v.reference,x=v.popper;if(VS(w,x)){c.rects={reference:Vge(w,am(x),c.options.strategy==="fixed"),popper:G7(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(ie){return c.modifiersData[ie.name]=Object.assign({},ie.data)});for(var k=0;k<c.orderedModifiers.length;k++){if(c.reset===!0){c.reset=!1,k=-1;continue}var R=c.orderedModifiers[k],O=R.fn,P=R.options,V=P===void 0?{}:P,W=R.name;typeof O=="function"&&(c=O({state:c,options:V,name:W,instance:p})||c)}}}},update:qge(function(){return new Promise(function(v){p.forceUpdate(),v(c)})}),destroy:function(){m(),h=!0}};if(!VS(a,l))return p;p.setOptions(u).then(function(v){!h&&u.onFirstUpdate&&u.onFirstUpdate(v)});function f(){c.orderedModifiers.forEach(function(v){var w=v.name,x=v.options,k=x===void 0?{}:x,R=v.effect;if(typeof R=="function"){var O=R({state:c,name:w,instance:p,options:k}),P=function(){};d.push(O||P)}})}function m(){d.forEach(function(v){return v()}),d=[]}return p}}var Qge=[vge,zge,Tge,MR,Ige,Fge,Pge,fge,Mge],Jge=Kge({defaultModifiers:Qge}),Xge="tippy-box",PR="tippy-content",e2e="tippy-backdrop",ZR="tippy-arrow",$R="tippy-svg-arrow",Cc={passive:!0,capture:!0},UR=function(){return document.body};function $6(e,r,n){if(Array.isArray(e)){var i=e[r];return i??(Array.isArray(n)?n[r]:n)}return e}function J7(e,r){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(r+"]")>-1}function VR(e,r){return typeof e=="function"?e.apply(void 0,r):e}function jS(e,r){if(r===0)return e;var n;return function(i){clearTimeout(n),n=setTimeout(function(){e(i)},r)}}function t2e(e){return e.split(/\s+/).filter(Boolean)}function rh(e){return[].concat(e)}function GS(e,r){e.indexOf(r)===-1&&e.push(r)}function r2e(e){return e.filter(function(r,n){return e.indexOf(r)===n})}function n2e(e){return e.split("-")[0]}function E4(e){return[].slice.call(e)}function qS(e){return Object.keys(e).reduce(function(r,n){return e[n]!==void 0&&(r[n]=e[n]),r},{})}function I1(){return document.createElement("div")}function r5(e){return["Element","Fragment"].some(function(r){return J7(e,r)})}function i2e(e){return J7(e,"NodeList")}function o2e(e){return J7(e,"MouseEvent")}function s2e(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function a2e(e){return r5(e)?[e]:i2e(e)?E4(e):Array.isArray(e)?e:E4(document.querySelectorAll(e))}function U6(e,r){e.forEach(function(n){n&&(n.style.transitionDuration=r+"ms")})}function WS(e,r){e.forEach(function(n){n&&n.setAttribute("data-state",r)})}function l2e(e){var r,n=rh(e),i=n[0];return i!=null&&(r=i.ownerDocument)!=null&&r.body?i.ownerDocument:document}function u2e(e,r){var n=r.clientX,i=r.clientY;return e.every(function(o){var s=o.popperRect,a=o.popperState,l=o.props,u=l.interactiveBorder,c=n2e(a.placement),d=a.modifiersData.offset;if(!d)return!0;var h=c==="bottom"?d.top.y:0,p=c==="top"?d.bottom.y:0,f=c==="right"?d.left.x:0,m=c==="left"?d.right.x:0,v=s.top-i+h>u,w=i-s.bottom-p>u,x=s.left-n+f>u,k=n-s.right-m>u;return v||w||x||k})}function V6(e,r,n){var i=r+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[i](o,n)})}function KS(e,r){for(var n=r;n;){var i;if(e.contains(n))return!0;n=n.getRootNode==null||(i=n.getRootNode())==null?void 0:i.host}return!1}var dl={isTouch:!1},QS=0;function c2e(){dl.isTouch||(dl.isTouch=!0,window.performance&&document.addEventListener("mousemove",jR))}function jR(){var e=performance.now();e-QS<20&&(dl.isTouch=!1,document.removeEventListener("mousemove",jR)),QS=e}function d2e(){var e=document.activeElement;if(s2e(e)){var r=e._tippy;e.blur&&!r.state.isVisible&&e.blur()}}function h2e(){document.addEventListener("touchstart",c2e,Cc),window.addEventListener("blur",d2e)}var p2e=typeof window<"u"&&typeof document<"u",f2e=p2e?!!window.msCrypto:!1,m2e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},g2e={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ka=Object.assign({appendTo:UR,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},m2e,g2e),y2e=Object.keys(ka),T2e=function(e){var r=Object.keys(e);r.forEach(function(n){ka[n]=e[n]})};function GR(e){var r=e.plugins||[],n=r.reduce(function(i,o){var s=o.name,a=o.defaultValue;if(s){var l;i[s]=e[s]!==void 0?e[s]:(l=ka[s])!=null?l:a}return i},{});return Object.assign({},e,n)}function b2e(e,r){var n=r?Object.keys(GR(Object.assign({},ka,{plugins:r}))):y2e,i=n.reduce(function(o,s){var a=(e.getAttribute("data-tippy-"+s)||"").trim();if(!a)return o;if(s==="content")o[s]=a;else try{o[s]=JSON.parse(a)}catch{o[s]=a}return o},{});return i}function JS(e,r){var n=Object.assign({},r,{content:VR(r.content,[e])},r.ignoreAttributes?{}:b2e(e,r.plugins));return n.aria=Object.assign({},ka.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?r.interactive:n.aria.expanded,content:n.aria.content==="auto"?r.interactive?null:"describedby":n.aria.content},n}var v2e=function(){return"innerHTML"};function nb(e,r){e[v2e()]=r}function XS(e){var r=I1();return e===!0?r.className=ZR:(r.className=$R,r5(e)?r.appendChild(e):nb(r,e)),r}function eD(e,r){r5(r.content)?(nb(e,""),e.appendChild(r.content)):typeof r.content!="function"&&(r.allowHTML?nb(e,r.content):e.textContent=r.content)}function ib(e){var r=e.firstElementChild,n=E4(r.children);return{box:r,content:n.find(function(i){return i.classList.contains(PR)}),arrow:n.find(function(i){return i.classList.contains(ZR)||i.classList.contains($R)}),backdrop:n.find(function(i){return i.classList.contains(e2e)})}}function qR(e){var r=I1(),n=I1();n.className=Xge,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=I1();i.className=PR,i.setAttribute("data-state","hidden"),eD(i,e.props),r.appendChild(n),n.appendChild(i),o(e.props,e.props);function o(s,a){var l=ib(r),u=l.box,c=l.content,d=l.arrow;a.theme?u.setAttribute("data-theme",a.theme):u.removeAttribute("data-theme"),typeof a.animation=="string"?u.setAttribute("data-animation",a.animation):u.removeAttribute("data-animation"),a.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?u.setAttribute("role",a.role):u.removeAttribute("role"),(s.content!==a.content||s.allowHTML!==a.allowHTML)&&eD(c,e.props),a.arrow?d?s.arrow!==a.arrow&&(u.removeChild(d),u.appendChild(XS(a.arrow))):u.appendChild(XS(a.arrow)):d&&u.removeChild(d)}return{popper:r,onUpdate:o}}qR.$$tippy=!0;var A2e=1,Ag=[],j6=[];function E2e(e,r){var n=JS(e,Object.assign({},ka,GR(qS(r)))),i,o,s,a=!1,l=!1,u=!1,c=!1,d,h,p,f=[],m=jS(Gr,n.interactiveDebounce),v,w=A2e++,x=null,k=r2e(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},O={id:w,reference:e,popper:I1(),popperInstance:x,props:n,state:R,plugins:k,clearDelayTimeouts:We,setProps:Sr,setContent:kr,show:Wi,hide:da,hideWithInteractivity:wi,enable:Le,disable:de,unmount:ls,destroy:Wn};if(!n.render)return O;var P=n.render(O),V=P.popper,W=P.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+O.id,O.popper=V,e._tippy=O,V._tippy=O;var ie=k.map(function(Re){return Re.fn(O)}),ue=e.hasAttribute("aria-expanded");return nr(),ct(),Me(),Ve("onCreate",[O]),n.showOnCreate&&ut(),V.addEventListener("mouseenter",function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()}),V.addEventListener("mouseleave",function(){O.props.interactive&&O.props.trigger.indexOf("mouseenter")>=0&&Ee().addEventListener("mousemove",m)}),O;function I(){var Re=O.props.touch;return Array.isArray(Re)?Re:[Re,0]}function ne(){return I()[0]==="hold"}function he(){var Re;return!!((Re=O.props.render)!=null&&Re.$$tippy)}function re(){return v||e}function Ee(){var Re=re().parentNode;return Re?l2e(Re):document}function ge(){return ib(V)}function Oe(Re){return O.state.isMounted&&!O.state.isVisible||dl.isTouch||d&&d.type==="focus"?0:$6(O.props.delay,Re?0:1,ka.delay)}function Me(Re){Re===void 0&&(Re=!1),V.style.pointerEvents=O.props.interactive&&!Re?"":"none",V.style.zIndex=""+O.props.zIndex}function Ve(Re,vt,Mt){if(Mt===void 0&&(Mt=!0),ie.forEach(function(ur){ur[Re]&&ur[Re].apply(ur,vt)}),Mt){var mr;(mr=O.props)[Re].apply(mr,vt)}}function it(){var Re=O.props.aria;if(Re.content){var vt="aria-"+Re.content,Mt=V.id,mr=rh(O.props.triggerTarget||e);mr.forEach(function(ur){var On=ur.getAttribute(vt);if(O.state.isVisible)ur.setAttribute(vt,On?On+" "+Mt:Mt);else{var Mn=On&&On.replace(Mt,"").trim();Mn?ur.setAttribute(vt,Mn):ur.removeAttribute(vt)}})}}function ct(){if(!(ue||!O.props.aria.expanded)){var Re=rh(O.props.triggerTarget||e);Re.forEach(function(vt){O.props.interactive?vt.setAttribute("aria-expanded",O.state.isVisible&&vt===re()?"true":"false"):vt.removeAttribute("aria-expanded")})}}function Ct(){Ee().removeEventListener("mousemove",m),Ag=Ag.filter(function(Re){return Re!==m})}function Ye(Re){if(!(dl.isTouch&&(u||Re.type==="mousedown"))){var vt=Re.composedPath&&Re.composedPath()[0]||Re.target;if(!(O.props.interactive&&KS(V,vt))){if(rh(O.props.triggerTarget||e).some(function(Mt){return KS(Mt,vt)})){if(dl.isTouch||O.state.isVisible&&O.props.trigger.indexOf("click")>=0)return}else Ve("onClickOutside",[O,Re]);O.props.hideOnClick===!0&&(O.clearDelayTimeouts(),O.hide(),l=!0,setTimeout(function(){l=!1}),O.state.isMounted||jt())}}}function Kt(){u=!0}function Vt(){u=!1}function Ot(){var Re=Ee();Re.addEventListener("mousedown",Ye,!0),Re.addEventListener("touchend",Ye,Cc),Re.addEventListener("touchstart",Vt,Cc),Re.addEventListener("touchmove",Kt,Cc)}function jt(){var Re=Ee();Re.removeEventListener("mousedown",Ye,!0),Re.removeEventListener("touchend",Ye,Cc),Re.removeEventListener("touchstart",Vt,Cc),Re.removeEventListener("touchmove",Kt,Cc)}function _t(Re,vt){jr(Re,function(){!O.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&vt()})}function Fr(Re,vt){jr(Re,vt)}function jr(Re,vt){var Mt=ge().box;function mr(ur){ur.target===Mt&&(V6(Mt,"remove",mr),vt())}if(Re===0)return vt();V6(Mt,"remove",h),V6(Mt,"add",mr),h=mr}function pt(Re,vt,Mt){Mt===void 0&&(Mt=!1);var mr=rh(O.props.triggerTarget||e);mr.forEach(function(ur){ur.addEventListener(Re,vt,Mt),f.push({node:ur,eventType:Re,handler:vt,options:Mt})})}function nr(){ne()&&(pt("touchstart",vr,{passive:!0}),pt("touchend",An,{passive:!0})),t2e(O.props.trigger).forEach(function(Re){if(Re!=="manual")switch(pt(Re,vr),Re){case"mouseenter":pt("mouseleave",An);break;case"focus":pt(f2e?"focusout":"blur",Ft);break;case"focusin":pt("focusout",Ft);break}})}function Yt(){f.forEach(function(Re){var vt=Re.node,Mt=Re.eventType,mr=Re.handler,ur=Re.options;vt.removeEventListener(Mt,mr,ur)}),f=[]}function vr(Re){var vt,Mt=!1;if(!(!O.state.isEnabled||ee(Re)||l)){var mr=((vt=d)==null?void 0:vt.type)==="focus";d=Re,v=Re.currentTarget,ct(),!O.state.isVisible&&o2e(Re)&&Ag.forEach(function(ur){return ur(Re)}),Re.type==="click"&&(O.props.trigger.indexOf("mouseenter")<0||a)&&O.props.hideOnClick!==!1&&O.state.isVisible?Mt=!0:ut(Re),Re.type==="click"&&(a=!Mt),Mt&&!mr&&Be(Re)}}function Gr(Re){var vt=Re.target,Mt=re().contains(vt)||V.contains(vt);if(!(Re.type==="mousemove"&&Mt)){var mr=dt().concat(V).map(function(ur){var On,Mn=ur._tippy,Dr=(On=Mn.popperInstance)==null?void 0:On.state;return Dr?{popperRect:ur.getBoundingClientRect(),popperState:Dr,props:n}:null}).filter(Boolean);u2e(mr,Re)&&(Ct(),Be(Re))}}function An(Re){var vt=ee(Re)||O.props.trigger.indexOf("click")>=0&&a;if(!vt){if(O.props.interactive){O.hideWithInteractivity(Re);return}Be(Re)}}function Ft(Re){O.props.trigger.indexOf("focusin")<0&&Re.target!==re()||O.props.interactive&&Re.relatedTarget&&V.contains(Re.relatedTarget)||Be(Re)}function ee(Re){return dl.isTouch?ne()!==Re.type.indexOf("touch")>=0:!1}function ye(){se();var Re=O.props,vt=Re.popperOptions,Mt=Re.placement,mr=Re.offset,ur=Re.getReferenceClientRect,On=Re.moveTransition,Mn=he()?ib(V).arrow:null,Dr=ur?{getBoundingClientRect:ur,contextElement:ur.contextElement||re()}:e,_={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(pe){var z=pe.state;if(he()){var J=ge(),Zt=J.box;["placement","reference-hidden","escaped"].forEach(function(je){je==="placement"?Zt.setAttribute("data-placement",z.placement):z.attributes.popper["data-popper-"+je]?Zt.setAttribute("data-"+je,""):Zt.removeAttribute("data-"+je)}),z.attributes.popper={}}}},D=[{name:"offset",options:{offset:mr}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!On}},_];he()&&Mn&&D.push({name:"arrow",options:{element:Mn,padding:3}}),D.push.apply(D,vt?.modifiers||[]),O.popperInstance=Jge(Dr,V,Object.assign({},vt,{placement:Mt,onFirstUpdate:p,modifiers:D}))}function se(){O.popperInstance&&(O.popperInstance.destroy(),O.popperInstance=null)}function Pe(){var Re=O.props.appendTo,vt,Mt=re();O.props.interactive&&Re===UR||Re==="parent"?vt=Mt.parentNode:vt=VR(Re,[Mt]),vt.contains(V)||vt.appendChild(V),O.state.isMounted=!0,ye()}function dt(){return E4(V.querySelectorAll("[data-tippy-root]"))}function ut(Re){O.clearDelayTimeouts(),Re&&Ve("onTrigger",[O,Re]),Ot();var vt=Oe(!0),Mt=I(),mr=Mt[0],ur=Mt[1];dl.isTouch&&mr==="hold"&&ur&&(vt=ur),vt?i=setTimeout(function(){O.show()},vt):O.show()}function Be(Re){if(O.clearDelayTimeouts(),Ve("onUntrigger",[O,Re]),!O.state.isVisible){jt();return}if(!(O.props.trigger.indexOf("mouseenter")>=0&&O.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Re.type)>=0&&a)){var vt=Oe(!1);vt?o=setTimeout(function(){O.state.isVisible&&O.hide()},vt):s=requestAnimationFrame(function(){O.hide()})}}function Le(){O.state.isEnabled=!0}function de(){O.hide(),O.state.isEnabled=!1}function We(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(s)}function Sr(Re){if(!O.state.isDestroyed){Ve("onBeforeUpdate",[O,Re]),Yt();var vt=O.props,Mt=JS(e,Object.assign({},vt,qS(Re),{ignoreAttributes:!0}));O.props=Mt,nr(),vt.interactiveDebounce!==Mt.interactiveDebounce&&(Ct(),m=jS(Gr,Mt.interactiveDebounce)),vt.triggerTarget&&!Mt.triggerTarget?rh(vt.triggerTarget).forEach(function(mr){mr.removeAttribute("aria-expanded")}):Mt.triggerTarget&&e.removeAttribute("aria-expanded"),ct(),Me(),W&&W(vt,Mt),O.popperInstance&&(ye(),dt().forEach(function(mr){requestAnimationFrame(mr._tippy.popperInstance.forceUpdate)})),Ve("onAfterUpdate",[O,Re])}}function kr(Re){O.setProps({content:Re})}function Wi(){var Re=O.state.isVisible,vt=O.state.isDestroyed,Mt=!O.state.isEnabled,mr=dl.isTouch&&!O.props.touch,ur=$6(O.props.duration,0,ka.duration);if(!(Re||vt||Mt||mr)&&!re().hasAttribute("disabled")&&(Ve("onShow",[O],!1),O.props.onShow(O)!==!1)){if(O.state.isVisible=!0,he()&&(V.style.visibility="visible"),Me(),Ot(),O.state.isMounted||(V.style.transition="none"),he()){var On=ge(),Mn=On.box,Dr=On.content;U6([Mn,Dr],0)}p=function(){var _;if(!(!O.state.isVisible||c)){if(c=!0,V.offsetHeight,V.style.transition=O.props.moveTransition,he()&&O.props.animation){var D=ge(),pe=D.box,z=D.content;U6([pe,z],ur),WS([pe,z],"visible")}it(),ct(),GS(j6,O),(_=O.popperInstance)==null||_.forceUpdate(),Ve("onMount",[O]),O.props.animation&&he()&&Fr(ur,function(){O.state.isShown=!0,Ve("onShown",[O])})}},Pe()}}function da(){var Re=!O.state.isVisible,vt=O.state.isDestroyed,Mt=!O.state.isEnabled,mr=$6(O.props.duration,1,ka.duration);if(!(Re||vt||Mt)&&(Ve("onHide",[O],!1),O.props.onHide(O)!==!1)){if(O.state.isVisible=!1,O.state.isShown=!1,c=!1,a=!1,he()&&(V.style.visibility="hidden"),Ct(),jt(),Me(!0),he()){var ur=ge(),On=ur.box,Mn=ur.content;O.props.animation&&(U6([On,Mn],mr),WS([On,Mn],"hidden"))}it(),ct(),O.props.animation?he()&&_t(mr,O.unmount):O.unmount()}}function wi(Re){Ee().addEventListener("mousemove",m),GS(Ag,m),m(Re)}function ls(){O.state.isVisible&&O.hide(),O.state.isMounted&&(se(),dt().forEach(function(Re){Re._tippy.unmount()}),V.parentNode&&V.parentNode.removeChild(V),j6=j6.filter(function(Re){return Re!==O}),O.state.isMounted=!1,Ve("onHidden",[O]))}function Wn(){O.state.isDestroyed||(O.clearDelayTimeouts(),O.unmount(),Yt(),delete e._tippy,O.state.isDestroyed=!0,Ve("onDestroy",[O]))}}function uh(e,r){r===void 0&&(r={});var n=ka.plugins.concat(r.plugins||[]);h2e();var i=Object.assign({},r,{plugins:n}),o=a2e(e),s=o.reduce(function(a,l){var u=l&&E2e(l,i);return u&&a.push(u),a},[]);return r5(e)?s[0]:s}uh.defaultProps=ka,uh.setDefaultProps=T2e,uh.currentInput=dl,Object.assign({},MR,{effect:function(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}}),uh.setDefaultProps({render:qR});const X7=({listComponent:e,items:r=()=>{},command:n=({editor:i,range:o,props:s})=>{}})=>({items:r,command:n,render:()=>{let i,o;return{onStart:s=>{i=new L7(e,{parent:void 0,propsData:s}),s.clientRect&&(o=uh("body",{getReferenceClientRect:s.clientRect,appendTo:()=>document.body,content:i.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}),i.ref.$on("select",()=>{o.length>0&&o[0].hide()}))},onUpdate(s){i.updateProps(s),!(!s.clientRect||!o)&&o[0].setProps({getReferenceClientRect:s.clientRect})},onKeyDown(s){if(o)return s.event.key==="Escape"?(o[0].hide(),o[0].destroy(),i.destroy(),o=null,!0):i.ref?.onKeyDown?.(s)},onExit(){o&&(o[0].destroy(),i.destroy())}}}}),w2e={name:"NcActionCaption",inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{name:{type:String,required:!0}}};var S2e=function(){var e=this,r=e._self._c;return r("li",{staticClass:"app-navigation-caption",attrs:{role:e.isInSemanticMenu&&"presentation"}},[e._v(" "+e._s(e.name)+" ")])},D2e=[],x2e=qt(w2e,S2e,D2e,!1,null,"7bf21eca");const k2e=x2e.exports,C2e={name:"NcActionRadio",mixins:[r7],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},model:{prop:"modelValue",event:"update:modelValue"},props:{id:{type:String,default:()=>"action-"+Xs(),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"&&ea.util.warn("[NcActionRadio] Boolean type of `modelValue` is deprecated and will be removed in next versions"),{model:Ra("checked","update:checked")}},computed:{isFocusable(){return!this.disabled},ariaChecked(){if(this.isInSemanticMenu)return this.model?"true":"false"}},methods:{toggleInput(){this.$refs.label.click()},onChange(e){this.$emit("change",e)}}};var _2e=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",class:{"action--disabled":e.disabled},attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("span",{staticClass:"action-radio",attrs:{role:"menuitemradio","aria-checked":e.ariaChecked}},[r("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]}}),r("label",{ref:"label",staticClass:"action-radio__label",attrs:{for:e.id}},[e._v(e._s(e.text))]),e._e()],2)])},N2e=[],F2e=qt(C2e,_2e,N2e,!1,null,"9ee34172");const O2e=F2e.exports;let M2e="missing-app-name";try{M2e=$I}catch{pi.error("The `@nextcloud/vue` library was used without setting / replacing the `appName`.")}let R2e="";try{R2e=UI}catch{pi.error("The `@nextcloud/vue` library was used without setting / replacing the `appVersion`.")}ar(uL),Rb("nextcloud").persist().build(),a3().theming?.name,window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),ar(cL),window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),ar(dL),ar(hL),ar(pL,Qx),ar(nk,fL);Xe("Search …"),ar(mL),Xe("Settings"),ar(gL),ar(ik);let B2e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",I2e=(e=21)=>{let r="",n=e|0;for(;n--;)r+=B2e[Math.random()*64|0];return r};function T2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T2=function(r){return typeof r}:T2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},T2(e)}var WR={selector:"vue-portal-target-".concat(I2e())},L2e=function(e){return WR.selector=e},G6=typeof window<"u"&&(typeof document>"u"?"undefined":T2(document))!==void 0,z2e=ea.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var r=this.updatedNodes&&this.updatedNodes();return r?r.length===1&&!r[0].text?r:e(this.tag||"DIV",r):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),Y2e=ea.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(WR.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var r=this.$scopedSlots&&this.$scopedSlots.default();return r?r.length<2&&!r[0].text?r:e(this.tag,r):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(G6)return document.querySelector(this.selector)},insertTargetEl:function(){if(G6){var e=document.querySelector("body"),r=document.createElement(this.tag);r.id=this.selector.substring(1),e.appendChild(r)}},mount:function(){if(G6){var e=this.getTargetEl(),r=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r),this.container=new z2e({el:r,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function H2e(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.component(r.name||"portal",Y2e),r.defaultSelector&&L2e(r.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===ea&&ea.use(H2e);const P2e="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Z2e="ελ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",ob="numeric",sb="ascii",ab="alpha",L1="asciinumeric",v1="alphanumeric",lb="domain",KR="emoji",$2e="scheme",U2e="slashscheme",q6="whitespace";function V2e(e,r){return e in r||(r[e]=[]),r[e]}function Ic(e,r,n){r[ob]&&(r[L1]=!0,r[v1]=!0),r[sb]&&(r[L1]=!0,r[ab]=!0),r[L1]&&(r[v1]=!0),r[ab]&&(r[v1]=!0),r[v1]&&(r[lb]=!0),r[KR]&&(r[lb]=!0);for(const i in r){const o=V2e(i,n);o.indexOf(e)<0&&o.push(e)}}function j2e(e,r){const n={};for(const i in r)r[i].indexOf(e)>=0&&(n[i]=!0);return n}function qo(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}qo.groups={},qo.prototype={accepts(){return!!this.t},go(e){const r=this,n=r.j[e];if(n)return n;for(let i=0;i<r.jr.length;i++){const o=r.jr[i][0],s=r.jr[i][1];if(s&&o.test(e))return s}return r.jd},has(e,r=!1){return r?e in this.j:!!this.go(e)},ta(e,r,n,i){for(let o=0;o<e.length;o++)this.tt(e[o],r,n,i)},tr(e,r,n,i){i=i||qo.groups;let o;return r&&r.j?o=r:(o=new qo(r),n&&i&&Ic(r,n,i)),this.jr.push([e,o]),o},ts(e,r,n,i){let o=this;const s=e.length;if(!s)return o;for(let a=0;a<s-1;a++)o=o.tt(e[a]);return o.tt(e[s-1],r,n,i)},tt(e,r,n,i){i=i||qo.groups;const o=this;if(r&&r.j)return o.j[e]=r,r;const s=r;let a,l=o.go(e);if(l?(a=new qo,Object.assign(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new qo,s){if(i)if(a.t&&typeof a.t=="string"){const u=Object.assign(j2e(a.t,i),n);Ic(s,u,i)}else n&&Ic(s,n,i);a.t=s}return o.j[e]=a,a}};const Er=(e,r,n,i,o)=>e.ta(r,n,i,o),ei=(e,r,n,i,o)=>e.tr(r,n,i,o),tD=(e,r,n,i,o)=>e.ts(r,n,i,o),st=(e,r,n,i,o)=>e.tt(r,n,i,o),Jl="WORD",ub="UWORD",QR="ASCIINUMERICAL",JR="ALPHANUMERICAL",Lf="LOCALHOST",cb="TLD",db="UTLD",b2="SCHEME",nh="SLASH_SCHEME",eA="NUM",hb="WS",tA="NL",z1="OPENBRACE",Y1="CLOSEBRACE",w4="OPENBRACKET",S4="CLOSEBRACKET",D4="OPENPAREN",x4="CLOSEPAREN",k4="OPENANGLEBRACKET",C4="CLOSEANGLEBRACKET",_4="FULLWIDTHLEFTPAREN",N4="FULLWIDTHRIGHTPAREN",F4="LEFTCORNERBRACKET",O4="RIGHTCORNERBRACKET",M4="LEFTWHITECORNERBRACKET",R4="RIGHTWHITECORNERBRACKET",B4="FULLWIDTHLESSTHAN",I4="FULLWIDTHGREATERTHAN",L4="AMPERSAND",z4="APOSTROPHE",Y4="ASTERISK",lu="AT",H4="BACKSLASH",P4="BACKTICK",Z4="CARET",fu="COLON",rA="COMMA",$4="DOLLAR",ul="DOT",U4="EQUALS",nA="EXCLAMATION",Ps="HYPHEN",H1="PERCENT",V4="PIPE",j4="PLUS",G4="POUND",P1="QUERY",iA="QUOTE",XR="FULLWIDTHMIDDLEDOT",oA="SEMI",cl="SLASH",Z1="TILDE",q4="UNDERSCORE",eB="EMOJI",W4="SYM";var tB=Object.freeze({__proto__:null,ALPHANUMERICAL:JR,AMPERSAND:L4,APOSTROPHE:z4,ASCIINUMERICAL:QR,ASTERISK:Y4,AT:lu,BACKSLASH:H4,BACKTICK:P4,CARET:Z4,CLOSEANGLEBRACKET:C4,CLOSEBRACE:Y1,CLOSEBRACKET:S4,CLOSEPAREN:x4,COLON:fu,COMMA:rA,DOLLAR:$4,DOT:ul,EMOJI:eB,EQUALS:U4,EXCLAMATION:nA,FULLWIDTHGREATERTHAN:I4,FULLWIDTHLEFTPAREN:_4,FULLWIDTHLESSTHAN:B4,FULLWIDTHMIDDLEDOT:XR,FULLWIDTHRIGHTPAREN:N4,HYPHEN:Ps,LEFTCORNERBRACKET:F4,LEFTWHITECORNERBRACKET:M4,LOCALHOST:Lf,NL:tA,NUM:eA,OPENANGLEBRACKET:k4,OPENBRACE:z1,OPENBRACKET:w4,OPENPAREN:D4,PERCENT:H1,PIPE:V4,PLUS:j4,POUND:G4,QUERY:P1,QUOTE:iA,RIGHTCORNERBRACKET:O4,RIGHTWHITECORNERBRACKET:R4,SCHEME:b2,SEMI:oA,SLASH:cl,SLASH_SCHEME:nh,SYM:W4,TILDE:Z1,TLD:cb,UNDERSCORE:q4,UTLD:db,UWORD:ub,WORD:Jl,WS:hb});const Ul=/[a-z]/,c1=new RegExp("\\p{L}","u"),W6=new RegExp("\\p{Emoji}","u"),Vl=/\d/,K6=/\s/,rD="\r",Q6=` `,G2e="️",q2e="",J6="";let Eg=null,wg=null;function W2e(e=[]){const r={};qo.groups=r;const n=new qo;Eg==null&&(Eg=nD(P2e)),wg==null&&(wg=nD(Z2e)),st(n,"'",z4),st(n,"{",z1),st(n,"}",Y1),st(n,"[",w4),st(n,"]",S4),st(n,"(",D4),st(n,")",x4),st(n,"<",k4),st(n,">",C4),st(n,"(",_4),st(n,")",N4),st(n,"「",F4),st(n,"」",O4),st(n,"『",M4),st(n,"』",R4),st(n,"<",B4),st(n,">",I4),st(n,"&",L4),st(n,"*",Y4),st(n,"@",lu),st(n,"`",P4),st(n,"^",Z4),st(n,":",fu),st(n,",",rA),st(n,"$",$4),st(n,".",ul),st(n,"=",U4),st(n,"!",nA),st(n,"-",Ps),st(n,"%",H1),st(n,"|",V4),st(n,"+",j4),st(n,"#",G4),st(n,"?",P1),st(n,'"',iA),st(n,"/",cl),st(n,";",oA),st(n,"~",Z1),st(n,"_",q4),st(n,"\\",H4),st(n,"・",XR);const i=ei(n,Vl,eA,{[ob]:!0});ei(i,Vl,i);const o=ei(i,Ul,QR,{[L1]:!0}),s=ei(i,c1,JR,{[v1]:!0}),a=ei(n,Ul,Jl,{[sb]:!0});ei(a,Vl,o),ei(a,Ul,a),ei(o,Vl,o),ei(o,Ul,o);const l=ei(n,c1,ub,{[ab]:!0});ei(l,Ul),ei(l,Vl,s),ei(l,c1,l),ei(s,Vl,s),ei(s,Ul),ei(s,c1,s);const u=st(n,Q6,tA,{[q6]:!0}),c=st(n,rD,hb,{[q6]:!0}),d=ei(n,K6,hb,{[q6]:!0});st(n,J6,d),st(c,Q6,u),st(c,J6,d),ei(c,K6,d),st(d,rD),st(d,Q6),ei(d,K6,d),st(d,J6,d);const h=ei(n,W6,eB,{[KR]:!0});st(h,"#"),ei(h,W6,h),st(h,G2e,h);const p=st(h,q2e);st(p,"#"),ei(p,W6,h);const f=[[Ul,a],[Vl,o]],m=[[Ul,null],[c1,l],[Vl,s]];for(let v=0;v<Eg.length;v++)q0(n,Eg[v],cb,Jl,f);for(let v=0;v<wg.length;v++)q0(n,wg[v],db,ub,m);Ic(cb,{tld:!0,ascii:!0},r),Ic(db,{utld:!0,alpha:!0},r),q0(n,"file",b2,Jl,f),q0(n,"mailto",b2,Jl,f),q0(n,"http",nh,Jl,f),q0(n,"https",nh,Jl,f),q0(n,"ftp",nh,Jl,f),q0(n,"ftps",nh,Jl,f),Ic(b2,{scheme:!0,ascii:!0},r),Ic(nh,{slashscheme:!0,ascii:!0},r),e=e.sort((v,w)=>v[0]>w[0]?1:-1);for(let v=0;v<e.length;v++){const w=e[v][0],x=e[v][1]?{[$2e]:!0}:{[U2e]:!0};w.indexOf("-")>=0?x[lb]=!0:Ul.test(w)?Vl.test(w)?x[L1]=!0:x[sb]=!0:x[ob]=!0,tD(n,w,w,x)}return tD(n,"localhost",Lf,{ascii:!0}),n.jd=new qo(W4),{start:n,tokens:Object.assign({groups:r},tB)}}function rB(e,r){const n=K2e(r.replace(/[A-Z]/g,l=>l.toLowerCase())),i=n.length,o=[];let s=0,a=0;for(;a<i;){let l=e,u=null,c=0,d=null,h=-1,p=-1;for(;a<i&&(u=l.go(n[a]));)l=u,l.accepts()?(h=0,p=0,d=l):h>=0&&(h+=n[a].length,p++),c+=n[a].length,s+=n[a].length,a++;s-=h,a-=p,c-=h,o.push({t:d.t,v:r.slice(s-c,s),s:s-c,e:s})}return o}function K2e(e){const r=[],n=e.length;let i=0;for(;i<n;){let o=e.charCodeAt(i),s,a=o<55296||o>56319||i+1===n||(s=e.charCodeAt(i+1))<56320||s>57343?e[i]:e.slice(i,i+2);r.push(a),i+=a.length}return r}function q0(e,r,n,i,o){let s;const a=r.length;for(let l=0;l<a-1;l++){const u=r[l];e.j[u]?s=e.j[u]:(s=new qo(i),s.jr=o.slice(),e.j[u]=s),e=s}return s=new qo(n),s.jr=o.slice(),e.j[r[a-1]]=s,s}function nD(e){const r=[],n=[];let i=0,o="0123456789";for(;i<e.length;){let s=0;for(;o.indexOf(e[i+s])>=0;)s++;if(s>0){r.push(n.join(""));for(let a=parseInt(e.substring(i,i+s),10);a>0;a--)n.pop();i+=s}else n.push(e[i]),i++}return r}const zf={defaultProtocol:"http",events:null,format:iD,formatHref:iD,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function n5(e,r=null){let n=Object.assign({},zf);e&&(n=Object.assign(n,e instanceof n5?e.o:e));const i=n.ignoreTags,o=[];for(let s=0;s<i.length;s++)o.push(i[s].toUpperCase());this.o=n,r&&(this.defaultRender=r),this.ignoreTags=o}n5.prototype={o:zf,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,r,n){const i=r!=null;let o=this.o[e];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:zf[e],typeof o=="function"&&i&&(o=o(r,n))):typeof o=="function"&&i&&(o=o(r,n.t,n)),o)},getObj(e,r,n){let i=this.o[e];return typeof i=="function"&&r!=null&&(i=i(r,n.t,n)),i},render(e){const r=e.render(this);return(this.get("render",null,e)||this.defaultRender)(r,e.t,e)}};function iD(e){return e}function nB(e,r){this.t="token",this.v=e,this.tk=r}nB.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const r=this.toString(),n=e.get("truncate",r,this),i=e.get("format",r,this);return n&&i.length>n?i.substring(0,n)+"…":i},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=zf.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 r=this,n=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",n,this),o=e.get("tagName",n,r),s=this.toFormattedString(e),a={},l=e.get("className",n,r),u=e.get("target",n,r),c=e.get("rel",n,r),d=e.getObj("attributes",n,r),h=e.getObj("events",n,r);return a.href=i,l&&(a.class=l),u&&(a.target=u),c&&(a.rel=c),d&&Object.assign(a,d),{tagName:o,attributes:a,content:s,eventListeners:h}}};function i5(e,r){class n extends nB{constructor(o,s){super(o,s),this.t=e}}for(const i in r)n.prototype[i]=r[i];return n.t=e,n}const oD=i5("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),sD=i5("text"),Q2e=i5("nl"),Sg=i5("url",{isLink:!0,toHref(e=zf.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Lf&&e[1].t===fu}}),Hs=e=>new qo(e);function J2e({groups:e}){const r=e.domain.concat([L4,Y4,lu,H4,P4,Z4,$4,U4,Ps,eA,H1,V4,j4,G4,cl,W4,Z1,q4]),n=[z4,fu,rA,ul,nA,H1,P1,iA,oA,k4,C4,z1,Y1,S4,w4,D4,x4,_4,N4,F4,O4,M4,R4,B4,I4],i=[L4,z4,Y4,H4,P4,Z4,$4,U4,Ps,z1,Y1,H1,V4,j4,G4,P1,cl,W4,Z1,q4],o=Hs(),s=st(o,Z1);Er(s,i,s),Er(s,e.domain,s);const a=Hs(),l=Hs(),u=Hs();Er(o,e.domain,a),Er(o,e.scheme,l),Er(o,e.slashscheme,u),Er(a,i,s),Er(a,e.domain,a);const c=st(a,lu);st(s,lu,c),st(l,lu,c),st(u,lu,c);const d=st(s,ul);Er(d,i,s),Er(d,e.domain,s);const h=Hs();Er(c,e.domain,h),Er(h,e.domain,h);const p=st(h,ul);Er(p,e.domain,h);const f=Hs(oD);Er(p,e.tld,f),Er(p,e.utld,f),st(c,Lf,f);const m=st(h,Ps);st(m,Ps,m),Er(m,e.domain,h),Er(f,e.domain,h),st(f,ul,p),st(f,Ps,m);const v=st(f,fu);Er(v,e.numeric,oD);const w=st(a,Ps),x=st(a,ul);st(w,Ps,w),Er(w,e.domain,a),Er(x,i,s),Er(x,e.domain,a);const k=Hs(Sg);Er(x,e.tld,k),Er(x,e.utld,k),Er(k,e.domain,a),Er(k,i,s),st(k,ul,x),st(k,Ps,w),st(k,lu,c);const R=st(k,fu),O=Hs(Sg);Er(R,e.numeric,O);const P=Hs(Sg),V=Hs();Er(P,r,P),Er(P,n,V),Er(V,r,P),Er(V,n,V),st(k,cl,P),st(O,cl,P);const W=st(l,fu),ie=st(u,fu),ue=st(ie,cl),I=st(ue,cl);Er(l,e.domain,a),st(l,ul,x),st(l,Ps,w),Er(u,e.domain,a),st(u,ul,x),st(u,Ps,w),Er(W,e.domain,P),st(W,cl,P),st(W,P1,P),Er(I,e.domain,P),Er(I,r,P),st(I,cl,P);const ne=[[z1,Y1],[w4,S4],[D4,x4],[k4,C4],[_4,N4],[F4,O4],[M4,R4],[B4,I4]];for(let he=0;he<ne.length;he++){const[re,Ee]=ne[he],ge=st(P,re);st(V,re,ge),st(ge,Ee,P);const Oe=Hs(Sg);Er(ge,r,Oe);const Me=Hs();Er(ge,n),Er(Oe,r,Oe),Er(Oe,n,Me),Er(Me,r,Oe),Er(Me,n,Me),st(Oe,Ee,P),st(Me,Ee,P)}return st(o,Lf,k),st(o,tA,Q2e),{start:o,tokens:tB}}function X2e(e,r,n){let i=n.length,o=0,s=[],a=[];for(;o<i;){let l=e,u=null,c=null,d=0,h=null,p=-1;for(;o<i&&!(u=l.go(n[o].t));)a.push(n[o++]);for(;o<i&&(c=u||l.go(n[o].t));)u=null,l=c,l.accepts()?(p=0,h=l):p>=0&&p++,o++,d++;if(p<0)o-=d,o<i&&(a.push(n[o]),o++);else{a.length>0&&(s.push(X6(sD,r,a)),a=[]),o-=p,d-=p;const f=h.t,m=n.slice(o-d,o);s.push(X6(f,r,m))}}return a.length>0&&s.push(X6(sD,r,a)),s}function X6(e,r,n){const i=n[0].s,o=n[n.length-1].e,s=r.slice(i,o);return new e(s,n)}const e4e=typeof console<"u"&&console&&console.warn||(()=>{}),t4e="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Yn={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function r4e(){return qo.groups={},Yn.scanner=null,Yn.parser=null,Yn.tokenQueue=[],Yn.pluginQueue=[],Yn.customSchemes=[],Yn.initialized=!1,Yn}function aD(e,r=!1){if(Yn.initialized&&e4e(`linkifyjs: already initialized - will not register custom scheme "${e}" ${t4e}`),!/^[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`);Yn.customSchemes.push([e,r])}function n4e(){Yn.scanner=W2e(Yn.customSchemes);for(let e=0;e<Yn.tokenQueue.length;e++)Yn.tokenQueue[e][1]({scanner:Yn.scanner});Yn.parser=J2e(Yn.scanner.tokens);for(let e=0;e<Yn.pluginQueue.length;e++)Yn.pluginQueue[e][1]({scanner:Yn.scanner,parser:Yn.parser});return Yn.initialized=!0,Yn}function o5(e){return Yn.initialized||n4e(),X2e(Yn.parser.start,e,rB(Yn.scanner.start,e))}o5.scan=rB;function iB(e,r=null,n=null){if(r&&typeof r=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${r}; must be a string`);n=r,r=null}const i=new n5(n),o=o5(e),s=[];for(let a=0;a<o.length;a++){const l=o[a];l.isLink&&(!r||l.t===r)&&i.check(l)&&s.push(l.toFormattedObject(i))}return s}function oB(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function i4e(e){return e.replace(/"/g,""")}function o4e(e){const r=[];for(const n in e){let i=e[n]+"";r.push(`${n}="${i4e(i)}"`)}return r.join(" ")}function s4e({tagName:e,attributes:r,content:n}){return`<${e} ${o4e(r)}>${oB(n)}</${e}>`}function a4e(e,r={}){r=new n5(r,s4e);const n=o5(e),i=[];for(let o=0;o<n.length;o++){const s=n[o];s.t==="nl"&&r.get("nl2br")?i.push(`<br> `):!s.isLink||!r.check(s)?i.push(oB(s.toString())):i.push(r.render(s))}return i.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return a4e(this,e)}}),ar(yL);var l4e=["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","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],A1=e=>{let r=0;for(let n=0;n<e.length;n++){let i=e[n],o=l4e.indexOf(i);r=r*83+o}return r},ey=e=>{let r=e/255;return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)},ty=e=>{let r=Math.max(0,Math.min(1,e));return r<=.0031308?Math.trunc(r*12.92*255+.5):Math.trunc((1.055*Math.pow(r,.4166666666666667)-.055)*255+.5)},u4e=e=>e<0?-1:1,ry=(e,r)=>u4e(e)*Math.pow(Math.abs(e),r),lD=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},c4e=e=>{if(!e||e.length<6)throw new lD("The blurhash string must be at least 6 characters");let r=A1(e[0]),n=Math.floor(r/9)+1,i=r%9+1;if(e.length!==4+2*i*n)throw new lD(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*i*n}`)},d4e=e=>{let r=e>>16,n=e>>8&255,i=e&255;return[ey(r),ey(n),ey(i)]},h4e=(e,r)=>{let n=Math.floor(e/361),i=Math.floor(e/19)%19,o=e%19;return[ry((n-9)/9,2)*r,ry((i-9)/9,2)*r,ry((o-9)/9,2)*r]},p4e=(e,r,n,i)=>{c4e(e),i=i|1;let o=A1(e[0]),s=Math.floor(o/9)+1,a=o%9+1,l=(A1(e[1])+1)/166,u=new Array(a*s);for(let h=0;h<u.length;h++)if(h===0){let p=A1(e.substring(2,6));u[h]=d4e(p)}else{let p=A1(e.substring(4+h*2,6+h*2));u[h]=h4e(p,l*i)}let c=r*4,d=new Uint8ClampedArray(c*n);for(let h=0;h<n;h++)for(let p=0;p<r;p++){let f=0,m=0,v=0;for(let R=0;R<s;R++)for(let O=0;O<a;O++){let P=Math.cos(Math.PI*p*O/r)*Math.cos(Math.PI*h*R/n),V=u[O+R*a];f+=V[0]*P,m+=V[1]*P,v+=V[2]*P}let w=ty(f),x=ty(m),k=ty(v);d[4*p+0+h*c]=w,d[4*p+1+h*c]=x,d[4*p+2+h*c]=k,d[4*p+3+h*c]=255}return d},f4e=p4e,uD={exports:{}},cD;function m4e(){return cD||(cD=1,(function(e){var r=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function o(u,c,d){this.fn=u,this.context=c,this.once=d||!1}function s(u,c,d,h,p){if(typeof d!="function")throw new TypeError("The listener must be a function");var f=new o(d,h||u,p),m=n?n+c:c;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],f]:u._events[m].push(f):(u._events[m]=f,u._eventsCount++),u}function a(u,c){--u._eventsCount===0?u._events=new i:delete u._events[c]}function l(){this._events=new i,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,d;if(this._eventsCount===0)return u;for(d in c=this._events)r.call(c,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=n?n+u:u,d=this._events[c];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,f=new Array(p);h<p;h++)f[h]=d[h].fn;return f},l.prototype.listenerCount=function(u){var c=n?n+u:u,d=this._events[c];return d?d.fn?1:d.length:0},l.prototype.emit=function(u,c,d,h,p,f){var m=n?n+u:u;if(!this._events[m])return!1;var v=this._events[m],w=arguments.length,x,k;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),w){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,d),!0;case 4:return v.fn.call(v.context,c,d,h),!0;case 5:return v.fn.call(v.context,c,d,h,p),!0;case 6:return v.fn.call(v.context,c,d,h,p,f),!0}for(k=1,x=new Array(w-1);k<w;k++)x[k-1]=arguments[k];v.fn.apply(v.context,x)}else{var R=v.length,O;for(k=0;k<R;k++)switch(v[k].once&&this.removeListener(u,v[k].fn,void 0,!0),w){case 1:v[k].fn.call(v[k].context);break;case 2:v[k].fn.call(v[k].context,c);break;case 3:v[k].fn.call(v[k].context,c,d);break;case 4:v[k].fn.call(v[k].context,c,d,h);break;default:if(!x)for(O=1,x=new Array(w-1);O<w;O++)x[O-1]=arguments[O];v[k].fn.apply(v[k].context,x)}}return!0},l.prototype.on=function(u,c,d){return s(this,u,c,d,!1)},l.prototype.once=function(u,c,d){return s(this,u,c,d,!0)},l.prototype.removeListener=function(u,c,d,h){var p=n?n+u:u;if(!this._events[p])return this;if(!c)return a(this,p),this;var f=this._events[p];if(f.fn)f.fn===c&&(!h||f.once)&&(!d||f.context===d)&&a(this,p);else{for(var m=0,v=[],w=f.length;m<w;m++)(f[m].fn!==c||h&&!f[m].once||d&&f[m].context!==d)&&v.push(f[m]);v.length?this._events[p]=v.length===1?v[0]:v:a(this,p)}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&a(this,c)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(uD)),uD.exports}var g4e=m4e();const y4e=D0(g4e);class sB extends Error{constructor(r){super(r),this.name="TimeoutError"}}class T4e extends Error{constructor(r){super(),this.name="AbortError",this.message=r}}const dD=e=>globalThis.DOMException===void 0?new T4e(e):new DOMException(e),hD=e=>{const r=e.reason===void 0?dD("This operation was aborted."):e.reason;return r instanceof Error?r:dD(r)};function b4e(e,r){const{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout,clearTimeout}}=r;let a,l;const u=new Promise((c,d)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(r.signal){const{signal:p}=r;p.aborted&&d(hD(p)),l=()=>{d(hD(p))},p.addEventListener("abort",l,{once:!0})}if(n===Number.POSITIVE_INFINITY){e.then(c,d);return}const h=new sB;a=s.setTimeout.call(void 0,()=>{if(i){try{c(i())}catch(p){d(p)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?c():o instanceof Error?d(o):(h.message=o??`Promise timed out after ${n} milliseconds`,d(h))},n),(async()=>{try{c(await e)}catch(p){d(p)}})()}).finally(()=>{u.clear(),l&&r.signal&&r.signal.removeEventListener("abort",l)});return u.clear=()=>{s.clearTimeout.call(void 0,a),a=void 0},u}function v4e(e,r,n){let i=0,o=e.length;for(;o>0;){const s=Math.trunc(o/2);let a=i+s;n(e[a],r)<=0?(i=++a,o-=s+1):o=s}return i}class A4e{#e=[];enqueue(r,n){n={priority:0,...n};const i={priority:n.priority,id:n.id,run:r};if(this.size===0||this.#e[this.size-1].priority>=n.priority){this.#e.push(i);return}const o=v4e(this.#e,i,(s,a)=>a.priority-s.priority);this.#e.splice(o,0,i)}setPriority(r,n){const i=this.#e.findIndex(s=>s.id===r);if(i===-1)throw new ReferenceError(`No promise function with the id "${r}" exists in the queue.`);const[o]=this.#e.splice(i,1);this.enqueue(o.run,{priority:n,id:r})}dequeue(){return this.#e.shift()?.run}filter(r){return this.#e.filter(n=>n.priority===r.priority).map(n=>n.run)}get size(){return this.#e.length}}class E4e extends y4e{#e;#t;#i=0;#s;#r;#u=0;#o;#a;#n;#m;#l=0;#d;#c;#g;#b=1n;timeout;constructor(r){if(super(),r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:A4e,...r},!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${r.intervalCap?.toString()??""}\` (${typeof r.intervalCap})`);if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${r.interval?.toString()??""}\` (${typeof r.interval})`);this.#e=r.carryoverConcurrencyCount,this.#t=r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0,this.#s=r.intervalCap,this.#r=r.interval,this.#n=new r.queueClass,this.#m=r.queueClass,this.concurrency=r.concurrency,this.timeout=r.timeout,this.#g=r.throwOnTimeout===!0,this.#c=r.autoStart===!1}get#v(){return this.#t||this.#i<this.#s}get#A(){return this.#l<this.#d}#E(){this.#l--,this.#h(),this.emit("next")}#w(){this.#T(),this.#y(),this.#a=void 0}get#S(){const r=Date.now();if(this.#o===void 0){const n=this.#u-r;if(n<0)this.#i=this.#e?this.#l:0;else return this.#a===void 0&&(this.#a=setTimeout(()=>{this.#w()},n)),!0}return!1}#h(){if(this.#n.size===0)return this.#o&&clearInterval(this.#o),this.#o=void 0,this.emit("empty"),this.#l===0&&this.emit("idle"),!1;if(!this.#c){const r=!this.#S;if(this.#v&&this.#A){const n=this.#n.dequeue();return n?(this.emit("active"),n(),r&&this.#y(),!0):!1}}return!1}#y(){this.#t||this.#o!==void 0||(this.#o=setInterval(()=>{this.#T()},this.#r),this.#u=Date.now()+this.#r)}#T(){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(r){if(!(typeof r=="number"&&r>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${r}\` (${typeof r})`);this.#d=r,this.#p()}async#D(r){return new Promise((n,i)=>{r.addEventListener("abort",()=>{i(r.reason)},{once:!0})})}setPriority(r,n){this.#n.setPriority(r,n)}async add(r,n={}){return n.id??=(this.#b++).toString(),n={timeout:this.timeout,throwOnTimeout:this.#g,...n},new Promise((i,o)=>{this.#n.enqueue(async()=>{this.#l++;try{n.signal?.throwIfAborted(),this.#i++;let s=r({signal:n.signal});n.timeout&&(s=b4e(Promise.resolve(s),{milliseconds:n.timeout})),n.signal&&(s=Promise.race([s,this.#D(n.signal)]));const a=await s;i(a),this.emit("completed",a)}catch(s){if(s instanceof sB&&!n.throwOnTimeout){i();return}o(s),this.emit("error",s)}finally{this.#E()}},n),this.emit("add"),this.#h()})}async addAll(r,n){return Promise.all(r.map(async i=>this.add(i,n)))}start(){return this.#c?(this.#c=!1,this.#p(),this):this}pause(){this.#c=!0}clear(){this.#n=new this.#m}async onEmpty(){this.#n.size!==0&&await this.#f("empty")}async onSizeLessThan(r){this.#n.size<r||await this.#f("next",()=>this.#n.size<r)}async onIdle(){this.#l===0&&this.#n.size===0||await this.#f("idle")}async#f(r,n){return new Promise(i=>{const o=()=>{n&&!n()||(this.off(r,o),i())};this.on(r,o)})}get size(){return this.#n.size}sizeBy(r){return this.#n.filter(r).length}get pending(){return this.#l}get isPaused(){return this.#c}}const w4e=new E4e({concurrency:5});function S4e(e){const{resolve:r,promise:n}=Promise.withResolvers();return w4e.add(()=>{const i=new Image;return i.onerror=()=>r(!1),i.onload=()=>r(!0),i.src=e,n}),n}const D4e="_fadeTransition_13rtj_2",x4e="_fadeTransitionActive_13rtj_6",k4e={fadeTransition:D4e,fadeTransitionActive:x4e},C4e={__name:"NcBlurHash",props:{hash:{required:!0,type:String},alt:{type:String,default:""},src:{type:String,default:""}},emits:["load"],setup(e,{emit:r}){const n=e,i=_i(),o=_i(!1);u0(()=>n.hash,s),u0(o,()=>{o.value===!1&&s3(()=>s())},{immediate:!0}),u0(()=>n.src,()=>{o.value=!1,n.src&&S4e(n.src).then(a=>{o.value=a,r("load",a)})},{immediate:!0});function s(){if(o.value)return;if(!n.hash){pi.error("Invalid BlurHash value");return}if(i.value===void 0){pi.error("BlurHash canvas not available");return}const{height:a,width:l}=i.value,u=f4e(n.hash,l,a),c=i.value.getContext("2d");if(c===null){pi.error("Cannot create context for BlurHash canvas");return}const d=c.createImageData(l,a);d.data.set(u),c.putImageData(d,0,0)}return{__sfc:!0,props:n,emit:r,canvas:i,imageLoaded:o,drawBlurHash:s}}};var _4e=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("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?r("img",{attrs:{alt:e.alt,src:e.src}}):r("canvas",{ref:"canvas",attrs:{"aria-hidden":e.alt?null:"true","aria-label":e.alt}})])},N4e=[];const pD={$style:k4e};function F4e(e){for(var r in pD)this[r]=pD[r]}var O4e=qt(C4e,_4e,N4e,!1,F4e,null);const M4e=O4e.exports;ar(TL),ar(bL),ar(vL),ar(AL),Xe("More items …"),ar(EL);const R4e={long:Xe("a few seconds ago"),short:Xe("seconds ago"),narrow:Xe("sec. ago")};function Q9e(e=Date.now(),r={}){let n;const i=ri(()=>new Date(Fo(e))),o=ri(()=>{const{language:l,relativeTime:u,ignoreSeconds:c}=Fo(r);return{...l&&{language:l},...u&&{relativeTime:u},ignoreSeconds:c?R4e[u||"long"]:!1}}),s=_i("");zL(()=>a());function a(){if(s.value=xz(i.value,o.value),Fo(r).update!==!1){const l=Math.abs(Date.now()-new Date(Fo(e)).getTime()),u=l>12e4||o.value.ignoreSeconds?Math.min(l/60,18e5):1e3;n=window.setTimeout(a,u)}}return Mb(()=>n&&window.clearTimeout(n)),ld(s)}function J9e(e,r){const n=ri(()=>({locale:Ku(),format:{dateStyle:"short",timeStyle:"medium"},...Fo(r)})),i=ri(()=>new Intl.DateTimeFormat(n.value.locale,n.value.format));return ri(()=>i.value.format(Fo(e)))}function aB(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function s5(e){return aB(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function B4e(e){return aB(e)&&!isNaN(e.getTime())}function lB(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var n=s5(e),i=n.getDay(),o=(i+7-r)%7;return n.setDate(n.getDate()-o),n.setHours(0,0,0,0),n}function uB(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.firstDayOfWeek,i=n===void 0?0:n,o=r.firstWeekContainsDate,s=o===void 0?1:o;if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var a=s5(e),l=a.getFullYear(),u=new Date(0),c=l+1;c>=l-1&&(u.setFullYear(c,0,s),u.setHours(0,0,0,0),u=lB(u,i),!(a.getTime()>=u.getTime()));c--);return u}function sA(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.firstDayOfWeek,i=n===void 0?0:n,o=r.firstWeekContainsDate,s=o===void 0?1:o,a=s5(e),l=lB(a,i),u=uB(a,{firstDayOfWeek:i,firstWeekContainsDate:s}),c=l.getTime()-u.getTime();return Math.round(c/(168*3600*1e3))+1}var cB={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},I4e=/\[([^\]]+)]|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 As(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n="".concat(Math.abs(e)),i=e<0?"-":"";n.length<r;)n="0".concat(n);return i+n}function fD(e){return Math.round(e.getTimezoneOffset()/15)*15}function mD(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e>0?"-":"+",i=Math.abs(e),o=Math.floor(i/60),s=i%60;return n+As(o,2)+r+As(s,2)}var gD=function(e,r,n){var i=e<12?"AM":"PM";return n?i.toLocaleLowerCase():i},$1={Y:function(e){var r=e.getFullYear();return r<=9999?"".concat(r):"+".concat(r)},YY:function(e){return As(e.getFullYear(),4).substr(2)},YYYY:function(e){return As(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return As(e.getMonth()+1,2)},MMM:function(e,r){return r.monthsShort[e.getMonth()]},MMMM:function(e,r){return r.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return As(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return As(e.getHours(),2)},h:function(e){var r=e.getHours();return r===0?12:r>12?r%12:r},hh:function(){var e=$1.h.apply($1,arguments);return As(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return As(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return As(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return As(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return As(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,r){return r.weekdaysMin[e.getDay()]},ddd:function(e,r){return r.weekdaysShort[e.getDay()]},dddd:function(e,r){return r.weekdays[e.getDay()]},A:function(e,r){var n=r.meridiem||gD;return n(e.getHours(),e.getMinutes(),!1)},a:function(e,r){var n=r.meridiem||gD;return n(e.getHours(),e.getMinutes(),!0)},Z:function(e){return mD(fD(e),":")},ZZ:function(e){return mD(fD(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,r){return sA(e,{firstDayOfWeek:r.firstDayOfWeek,firstWeekContainsDate:r.firstWeekContainsDate})},ww:function(e,r){return As($1.w(e,r),2)}};function a5(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r?String(r):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=s5(e);if(!B4e(o))return"Invalid Date";var s=n.locale||cB;return i.replace(I4e,function(a,l){return l||(typeof $1[a]=="function"?"".concat($1[a](o,s)):a)})}function yD(e){return Y4e(e)||z4e(e)||L4e()}function L4e(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function z4e(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Y4e(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function TD(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function H4e(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?TD(n,!0).forEach(function(i){mu(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(n).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function P4e(e,r){return U4e(e)||$4e(e,r)||Z4e()}function Z4e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function $4e(e,r){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],i=!0,o=!1,s=void 0;try{for(var a=e[Symbol.iterator](),l;!(i=(l=a.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&a.return!=null&&a.return()}finally{if(o)throw s}}return n}}function U4e(e){if(Array.isArray(e))return e}function mu(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var V4e=/(\[[^\[]*\])|(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,dB=/\d/,ru=/\d\d/,j4e=/\d{3}/,G4e=/\d{4}/,ih=/\d\d?/,q4e=/[+-]\d\d:?\d\d/,hB=/[+-]?\d+/,W4e=/[+-]?\d+(\.\d{1,3})?/,ny="year",Dg="month",bD="day",vD="hour",AD="minute",ED="second",iy="millisecond",pB={},hn=function(e,r,n){var i=Array.isArray(e)?e:[e],o;typeof n=="string"?o=function(s){var a=parseInt(s,10);return mu({},n,a)}:o=n,i.forEach(function(s){pB[s]=[r,o]})},K4e=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},U1=function(e){return function(r){var n=r[e];if(!Array.isArray(n))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(n.map(K4e).join("|"))}},V1=function(e,r){return function(n,i){var o=i[e];if(!Array.isArray(o))throw new Error("Locale[".concat(e,"] need an array"));var s=o.indexOf(n);if(s<0)throw new Error("Invalid Word");return mu({},r,s)}};hn("Y",hB,ny),hn("YY",ru,function(e){var r=new Date().getFullYear(),n=Math.floor(r/100),i=parseInt(e,10);return i=(i>68?n-1:n)*100+i,mu({},ny,i)}),hn("YYYY",G4e,ny),hn("M",ih,function(e){return mu({},Dg,parseInt(e,10)-1)}),hn("MM",ru,function(e){return mu({},Dg,parseInt(e,10)-1)}),hn("MMM",U1("monthsShort"),V1("monthsShort",Dg)),hn("MMMM",U1("months"),V1("months",Dg)),hn("D",ih,bD),hn("DD",ru,bD),hn(["H","h"],ih,vD),hn(["HH","hh"],ru,vD),hn("m",ih,AD),hn("mm",ru,AD),hn("s",ih,ED),hn("ss",ru,ED),hn("S",dB,function(e){return mu({},iy,parseInt(e,10)*100)}),hn("SS",ru,function(e){return mu({},iy,parseInt(e,10)*10)}),hn("SSS",j4e,iy);function Q4e(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function J4e(e){return"".concat(e).toLowerCase().charAt(0)==="p"}hn(["A","a"],Q4e,function(e,r){var n=typeof r.isPM=="function"?r.isPM(e):J4e(e);return{isPM:n}});function X4e(e){var r=e.match(/([+-]|\d\d)/g)||["-","0","0"],n=P4e(r,3),i=n[0],o=n[1],s=n[2],a=parseInt(o,10)*60+parseInt(s,10);return a===0?0:i==="+"?-a:+a}hn(["Z","ZZ"],q4e,function(e){return{offset:X4e(e)}}),hn("x",hB,function(e){return{date:new Date(parseInt(e,10))}}),hn("X",W4e,function(e){return{date:new Date(parseFloat(e)*1e3)}}),hn("d",dB,"weekday"),hn("dd",U1("weekdaysMin"),V1("weekdaysMin","weekday")),hn("ddd",U1("weekdaysShort"),V1("weekdaysShort","weekday")),hn("dddd",U1("weekdays"),V1("weekdays","weekday")),hn("w",ih,"week"),hn("ww",ru,"week");function e3e(e,r){if(e!==void 0&&r!==void 0){if(r){if(e<12)return e+12}else if(e===12)return 0}return e}function t3e(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,n=[0,0,1,0,0,0,0],i=[r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()],o=!0,s=0;s<7;s++)e[s]===void 0?n[s]=o?i[s]:n[s]:(n[s]=e[s],o=!1);return n}function r3e(e,r,n,i,o,s,a){var l;return e<100&&e>=0?(l=new Date(e+400,r,n,i,o,s,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,r,n,i,o,s,a),l}function n3e(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=n[0];return o<100&&o>=0?(n[0]+=400,e=new Date(Date.UTC.apply(Date,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(o)):e=new Date(Date.UTC.apply(Date,n)),e}function i3e(e,r,n){var i=r.match(V4e);if(!i)throw new Error;for(var o=i.length,s={},a=0;a<o;a+=1){var l=i[a],u=pB[l];if(u){var c=typeof u[0]=="function"?u[0](n):u[0],d=u[1],h=(c.exec(e)||[])[0],p=d(h,n);s=H4e({},s,{},p),e=e.replace(h,"")}else{var f=l.replace(/^\[|\]$/g,"");if(e.indexOf(f)===0)e=e.substr(f.length);else throw new Error("not match")}}return s}function o3e(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var i=n.locale,o=i===void 0?cB:i,s=n.backupDate,a=s===void 0?new Date:s,l=i3e(e,r,o),u=l.year,c=l.month,d=l.day,h=l.hour,p=l.minute,f=l.second,m=l.millisecond,v=l.isPM,w=l.date,x=l.offset,k=l.weekday,R=l.week;if(w)return w;var O=[u,c,d,h,p,f,m];if(O[3]=e3e(O[3],v),R!==void 0&&c===void 0&&d===void 0){var P=uB(u===void 0?a:new Date(u,3),{firstDayOfWeek:o.firstDayOfWeek,firstWeekContainsDate:o.firstWeekContainsDate});return new Date(P.getTime()+(R-1)*7*24*3600*1e3)}var V,W=t3e(O,a);return x!==void 0?(W[6]+=x*60*1e3,V=n3e.apply(void 0,yD(W))):V=r3e.apply(void 0,yD(W)),k!==void 0&&V.getDay()!==k?new Date(NaN):V}catch{return new Date(NaN)}}function v2(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v2=function(r){return typeof r}:v2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v2(e)}function Lc(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function pb(){return pb=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pb.apply(this,arguments)}function wD(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function xn(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?wD(Object(n),!0).forEach(function(i){Lc(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wD(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function s3e(e,r){if(e==null)return{};var n={},i=Object.keys(e),o,s;for(s=0;s<i.length;s++)o=i[s],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function a3e(e,r){if(e==null)return{};var n=s3e(e,r),i,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)i=s[o],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function j1(e,r){return l3e(e)||u3e(e,r)||c3e(e,r)||d3e()}function l3e(e){if(Array.isArray(e))return e}function u3e(e,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,s=void 0;try{for(var a=e[Symbol.iterator](),l;!(i=(l=a.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&a.return!=null&&a.return()}finally{if(o)throw s}}return n}}function c3e(e,r){if(e){if(typeof e=="string")return SD(e,r);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 SD(e,r)}}function SD(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=e[n];return i}function d3e(){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 fb(){return fb=Object.assign||function(e){for(var r,n=1;n<arguments.length;n++)for(var i in r=arguments[n],r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},fb.apply(this,arguments)}var h3e=["attrs","props","domProps"],p3e=["class","style","directives"],f3e=["on","nativeOn"],m3e=function(e){return e.reduce(function(r,n){for(var i in n)if(!r[i])r[i]=n[i];else if(h3e.indexOf(i)!==-1)r[i]=fb({},r[i],n[i]);else if(p3e.indexOf(i)!==-1){var o=r[i]instanceof Array?r[i]:[r[i]],s=n[i]instanceof Array?n[i]:[n[i]];r[i]=o.concat(s)}else if(f3e.indexOf(i)!==-1)for(var a in n[i])if(r[i][a]){var l=r[i][a]instanceof Array?r[i][a]:[r[i][a]],u=n[i][a]instanceof Array?n[i][a]:[n[i][a]];r[i][a]=l.concat(u)}else r[i][a]=n[i][a];else if(i=="hook")for(var c in n[i])r[i][c]=r[i][c]?g3e(r[i][c],n[i][c]):n[i][c];else r[i]=n[i];return r},{})},g3e=function(e,r){return function(){e&&e.apply(this,arguments),r&&r.apply(this,arguments)}},Yf=m3e;function a0(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=new Date(e,r,n,i,o,s,a);return e<100&&e>=0&&l.setFullYear(e),l}function A0(e){return e instanceof Date&&!isNaN(e)}function l5(e){return Array.isArray(e)&&e.length===2&&e.every(A0)&&e[0]<=e[1]}function y3e(e){return Array.isArray(e)&&e.every(A0)}function Qh(e){var r=new Date(e);if(A0(r))return r;for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return i.length?Qh.apply(void 0,i):new Date}function T3e(e){var r=new Date(e);return r.setMonth(0,1),r.setHours(0,0,0,0),r}function mb(e){var r=new Date(e);return r.setDate(1),r.setHours(0,0,0,0),r}function b3e(e){var r=new Date(e);return r.setHours(0,0,0,0),r}function v3e(e){for(var r=e.firstDayOfWeek,n=e.year,i=e.month,o=[],s=a0(n,i,0),a=s.getDate(),l=a-(s.getDay()+7-r)%7,u=l;u<=a;u++)o.push(a0(n,i,u-a));s.setMonth(i+1,0);for(var c=s.getDate(),d=1;d<=c;d++)o.push(a0(n,i,d));for(var h=a-l+1,p=42-h-c,f=1;f<=p;f++)o.push(a0(n,i,c+f));return o}function gb(e,r){var n=new Date(e),i=typeof r=="function"?r(n.getMonth()):Number(r),o=n.getFullYear(),s=a0(o,i+1,0).getDate(),a=n.getDate();return n.setMonth(i,Math.min(a,s)),n}function Jh(e,r){var n=new Date(e),i=typeof r=="function"?r(n.getFullYear()):r;return n.setFullYear(i),n}function K4(e,r){var n=new Date(e),i=new Date(r);return n.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),n}function aA(e,r){if(!Array.isArray(e))return[];var n=[],i=e.length,o=0;for(r=r||i;o<i;)n.push(e.slice(o,o+=r));return n}function fl(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xh(e,r){if(!fl(e))return{};Array.isArray(r)||(r=[r]);var n={};return r.forEach(function(i){i in e&&(n[i]=e[i])}),n}function fB(e,r){if(!fl(e))return{};var n=e;return fl(r)&&Object.keys(r).forEach(function(i){var o=r[i];fl(o)&&fl(e[i])&&(o=fB(e[i],o)),n=xn({},n,Lc({},i,o))}),n}function A3e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E3e(e,r){return r={exports:{}},e(r,r.exports),r.exports}var w3e=E3e(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.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},i=n;r.default=i,e.exports=r.default}),S3e=A3e(w3e),D3e={formatLocale:S3e,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0},E1="en",oh={};oh[E1]=D3e;function mB(e,r,n){if(typeof e!="string")return oh[E1];var i=E1;return oh[e]&&(i=e),r&&(oh[e]=r,i=e),n||(E1=i),oh[e]||oh[E1]}function ep(e){return mB(e,null,!0)}function x3e(e){var r=!1;return function(){for(var n=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];r||(r=!0,requestAnimationFrame(function(){r=!1,e.apply(n,o)}))}}function k3e(e){var r=e.style.display,n=e.style.visibility;e.style.display="block",e.style.visibility="hidden";var i=window.getComputedStyle(e),o=e.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),s=e.offsetHeight+parseInt(i.marginTop,10)+parseInt(i.marginBottom,10);return e.style.display=r,e.style.visibility=n,{width:o,height:s}}function C3e(e,r,n,i){var o=0,s=0,a=0,l=0,u=e.getBoundingClientRect(),c=document.documentElement.clientWidth,d=document.documentElement.clientHeight;return i&&(a=window.pageXOffset+u.left,l=window.pageYOffset+u.top),c-u.left<r&&u.right<r?o=a-u.left+1:u.left+u.width/2<=c/2?o=a:o=a+u.width-r,u.top<=n&&d-u.bottom<=n?s=l+d-u.top-n:u.top+u.height/2<=d/2?s=l+u.height:s=l-n,{left:"".concat(o,"px"),top:"".concat(s,"px")}}function u5(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===r)return null;var n=function(s,a){return getComputedStyle(s,null).getPropertyValue(a)},i=/(auto|scroll)/,o=i.test(n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x"));return o?e:u5(e.parentNode,r)}var _3e={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 r=this;this.$nextTick(function(){e&&r.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 r=this.$parent.$el;this._displayPopup=x3e(function(){return e.displayPopup()}),this._scrollParent=u5(r)||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 r=e.target,n=this.$el;n&&!n.contains(r)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,r=this.$parent.$el,n=this.appendToBody;this._popupRect||(this._popupRect=k3e(e));var i=this._popupRect,o=i.width,s=i.height,a=C3e(r,o,s,n),l=a.left,u=a.top;this.left=l,this.top=u}}}};function ca(e,r,n,i,o,s,a,l,u,c){var d=typeof n=="function"?n.options:n;return e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0),n}var N3e=_3e,F3e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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()])},O3e=[],M3e=void 0,R3e=ca({render:F3e,staticRenderFns:O3e},M3e,N3e),B3e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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"}})])},I3e=[],L3e=void 0,z3e=ca({render:B3e,staticRenderFns:I3e},L3e,{}),Y3e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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"}})])},H3e=[],P3e=void 0,Z3e=ca({render:Y3e,staticRenderFns:H3e},P3e,{}),$3e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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"}})])},U3e=[],V3e=void 0,j3e=ca({render:$3e,staticRenderFns:U3e},V3e,{}),G3e={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},q3e=G3e,W3e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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})])},K3e=[],Q3e=void 0,lA=ca({render:W3e,staticRenderFns:K3e},Q3e,q3e),J3e={name:"TableDate",components:{IconButton:lA},inject:{getLocale:{default:function(){return ep}},getWeek:{default:function(){return sA}},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(),r=e.yearFormat,n=e.monthBeforeYear,i=e.monthFormat,o=i===void 0?"MMM":i,s={panel:"year",label:this.formatDate(this.calendar,r)},a={panel:"month",label:this.formatDate(this.calendar,o)};return n?[a,s]:[s,a]},days:function(){var e=this.getLocale(),r=e.days||e.formatLocale.weekdaysMin;return r.concat(r).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),r=this.calendar.getMonth(),n=v3e({firstDayOfWeek:this.firstDayOfWeek,year:e,month:r});return aA(n,7)}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-year":r.setFullYear(r.getFullYear()-1,r.getMonth()+1,0),r.setHours(23,59,59,999);break;case"next-year":r.setFullYear(r.getFullYear()+1);break;case"last-month":r.setMonth(r.getMonth(),0),r.setHours(23,59,59,999);break;case"next-month":r.setMonth(r.getMonth()+1);break}return this.disabledCalendarChanger(r,e)},handleIconLeftClick:function(){this.$emit("changecalendar",gb(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",gb(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Jh(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Jh(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 r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var n=r.getAttribute("data-row-col");if(n){var i=n.split(",").map(function(u){return parseInt(u,10)}),o=j1(i,2),s=o[0],a=o[1],l=this.dates[s][a];this.$emit("select",new Date(l))}},formatDate:function(e,r){return a5(e,r,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var r=this.titleFormat;return this.formatDate(e,r)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},X3e=J3e,e5e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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(i){return n("button",{key:i.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+i.panel,attrs:{type:"button"},on:{click:function(o){return e.handlePanelChange(i.panel)}}},[e._v(` `+e._s(i.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(i){return n("th",{key:i},[e._v(e._s(i))])})],2)]),e._v(" "),n("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,function(i,o){return n("tr",{key:o,class:[e.prefixClass+"-date-row",e.getRowClasses(i)]},[e.showWeekNumber?n("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":o+",0"}},[e._v(` `+e._s(e.getWeekNumber(i[0]))+` `)]):e._e(),e._v(" "),e._l(i,function(s,a){return n("td",{key:a,staticClass:"cell",class:e.getCellClasses(s),attrs:{"data-row-col":o+","+a,title:e.getCellTitle(s)},on:{mouseenter:function(l){return e.handleMouseEnter(s)},mouseleave:function(l){return e.handleMouseLeave(s)}}},[n("div",[e._v(e._s(s.getDate()))])])})],2)}),0)])])])},t5e=[],r5e=void 0,n5e=ca({render:e5e,staticRenderFns:t5e},r5e,X3e),i5e={name:"TableMonth",components:{IconButton:lA},inject:{getLocale:{default:function(){return ep}},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(),r=e.months||e.formatLocale.monthsShort,n=r.map(function(i,o){return{text:i,month:o}});return aA(n,3)}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-year":r.setFullYear(r.getFullYear()-1,11,31),r.setHours(23,59,59,999);break;case"next-year":r.setFullYear(r.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(r,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Jh(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Jh(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var n=r.getAttribute("data-month");n&&!r.classList.contains("disabled")&&this.$emit("select",parseInt(n,10))}}},o5e=i5e,s5e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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(i,o){return n("tr",{key:o},e._l(i,function(s,a){return n("td",{key:a,staticClass:"cell",class:e.getCellClasses(s.month),attrs:{"data-month":s.month}},[n("div",[e._v(e._s(s.text))])])}),0)}),0)])])},a5e=[],l5e=void 0,u5e=ca({render:s5e,staticRenderFns:a5e},l5e,o5e),c5e={name:"TableYear",components:{IconButton:lA},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(r){return r[r.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-decade":r.setFullYear(this.firstYear-1,11,31),r.setHours(23,59,59,999);break;case"next-decade":r.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(r,e)},getYears:function(e){for(var r=Math.floor(e.getFullYear()/10)*10,n=[],i=0;i<10;i++)n.push(r+i);return aA(n,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Jh(this.calendar,function(e){return e-10}),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Jh(this.calendar,function(e){return e+10}),"next-decade")},handleClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var n=r.getAttribute("data-year");n&&!r.classList.contains("disabled")&&this.$emit("select",parseInt(n,10))}}},d5e=c5e,h5e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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(i,o){return n("tr",{key:o},e._l(i,function(s,a){return n("td",{key:a,staticClass:"cell",class:e.getCellClasses(s),attrs:{"data-year":s}},[n("div",[e._v(e._s(s))])])}),0)}),0)])])},p5e=[],f5e=void 0,m5e=ca({render:h5e,staticRenderFns:p5e},f5e,d5e),Gc={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"],r=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),n=r!==-1?e[r]:"date";return{panel:n,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],r={year:T3e,month:mb,date:b3e},n=r[this.type]||r.date;return e.filter(A0).map(function(i){return n(i)})},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(!A0(e)){var r=this.innerValue.length;e=Qh(r>0?this.innerValue[r-1]:this.defaultValue)}this.innerCalendar=mb(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,r){this.isDisabled(e)||(this.$emit("select",e,r,this.innerValue),this.dispatchDatePicker("pick",e,r))},handleCalendarChange:function(e,r){var n=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,n,r)},handelPanelChange:function(e){var r=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,r)},handleSelectYear:function(e){if(this.type==="year"){var r=this.getYearCellDate(e);this.emitDate(r,"year")}else if(this.handleCalendarChange(a0(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 r=this.getMonthCellDate(e);this.emitDate(r,"month")}else if(this.handleCalendarChange(a0(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(gb(n,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return a0(this.calendarYear,e)},getYearCellDate:function(e){return a0(e,0)},getDateClasses:function(e){var r=e.getMonth()!==this.calendarMonth,n=[];e.getTime()===new Date().setHours(0,0,0,0)&&n.push("today"),r&&n.push("not-current-month");var i=this.getStateClass(e);return i==="active"&&r||n.push(i),n.concat(this.getClasses(e,this.innerValue,n.join(" ")))},getMonthClasses:function(e){var r=[];if(this.type!=="month"){this.calendarMonth===e&&r.push("active");var n=this.getMonthCellDate(e);return this.disabledCalendarChanger(n,"month")&&r.push("disabled"),r}var i=this.getMonthCellDate(e);return r.push(this.getStateClass(i)),r.concat(this.getClasses(i,this.innerValue,r.join(" ")))},getYearClasses:function(e){var r=[];if(this.type!=="year"){this.calendarYear===e&&r.push("active");var n=this.getYearCellDate(e);return this.disabledCalendarChanger(n,"year")&&r.push("disabled"),r}var i=this.getYearCellDate(e);return r.push(this.getStateClass(i)),r.concat(this.getClasses(i,this.innerValue,r.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(r){return r.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var r=e[0].getTime(),n=e[6].getTime(),i=this.innerValue.some(function(o){var s=o.getTime();return s>=r&&s<=n});return i?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],r=this.panel,n=this.innerCalendar;return r==="year"?e(m5e,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):r==="month"?e(u5e,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:n,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(n5e,{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:Lc({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},G1={name:"CalendarRange",components:{CalendarPanel:Gc},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:xn({},Gc.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=l5(this.value)?this.value:[new Date(NaN),new Date(NaN)];var r=this.innerValue.map(function(n,i){return mb(Qh(n,e.defaultValues[i]))});this.updateCalendars(r)}}},methods:{handleSelect:function(e,r){var n=j1(this.innerValue,2),i=n[0],o=n[1];A0(i)&&!A0(o)?(i.getTime()>e.getTime()?this.innerValue=[e,i]:this.innerValue=[i,e],this.emitDate(this.innerValue,r)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,r){this.$emit("select",e,r)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=this.getCalendarGap(e);if(n){var i=new Date(e[r]);i.setMonth(i.getMonth()+(r===0?-n:n)),e[r]=i}this.calendars=e},getCalendarGap:function(e){var r=j1(e,2),n=r[0],i=r[1],o=i.getFullYear()-n.getFullYear(),s=i.getMonth()-n.getMonth(),a=o*12+s,l=this.calendarMinDiff,u=this.calendarMaxDiff;return a<l?l-a:a>u?u-a:0},getRangeClasses:function(e,r,n){var i=[].concat(this.getClasses(e,r,n));if(/disabled|active/.test(n))return i;var o=function(s,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(m){return m.getTime()},u=l(s),c=a.map(l),d=j1(c,2),h=d[0],p=d[1];if(h>p){var f=[p,h];h=f[0],p=f[1]}return u>h&&u<p};return r.length===2&&o(e,r)?i.concat("in-range"):r.length===1&&this.hoveredValue&&o(e,[r[0],this.hoveredValue])?i.concat("hover-in-range"):i}},render:function(){var e=this,r=arguments[0],n=this.calendars.map(function(o,s){var a=xn({},e.$props,{calendar:o,value:e.innerValue,defaultValue:e.defaultValues[s],getClasses:e.getRangeClasses,partialUpdate:!1}),l={select:e.handleSelect,"update:calendar":s===0?e.updateStartCalendar:e.updateEndCalendar};return r("calendar-panel",{props:xn({},a),on:xn({},l)})}),i=this.prefixClass;return r("div",{class:"".concat(i,"-range-wrapper")},[n])}},xg;function g5e(){if(typeof window>"u")return 0;if(xg!==void 0)return xg;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 r=document.createElement("div");return r.style.width="100%",e.appendChild(r),xg=e.offsetWidth-r.offsetWidth,e.parentNode.removeChild(e),xg}var y5e={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=g5e(),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 r=e.clientHeight*100/e.scrollHeight;this.thumbHeight=r<100?"".concat(r,"%"):""}},handleScroll:function(e){var r=e.currentTarget,n=r.scrollHeight,i=r.scrollTop;this.thumbTop="".concat(i*100/n,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var r=this.$refs.thumb.offsetTop;this._prevY=e.clientY-r,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var r=e.clientY,n=this.$refs.wrap,i=n.scrollHeight,o=n.clientHeight,s=r-this._prevY,a=s*i/o;n.scrollTop=a}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},T5e=y5e,b5e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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}})])])},v5e=[],A5e=void 0,gB=ca({render:b5e,staticRenderFns:v5e},A5e,T5e),oy=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},sy=function(e,r,n){if(Array.isArray(n))return n.filter(function(s){return s>=0&&s<e});r<=0&&(r=1);for(var i=[],o=0;o<e;o+=r)i.push(o);return i},E5e=function e(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(i<=0){requestAnimationFrame(function(){r.scrollTop=n});return}var o=n-r.scrollTop,s=o/i*10;requestAnimationFrame(function(){var a=r.scrollTop+s;if(a>=n){r.scrollTop=n;return}r.scrollTop=a,e(r,n,i-10)})},w5e={name:"ListColumns",components:{ScrollbarVertical:gB},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(r){return r.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 sy(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(r){var n=new Date(e.date),i=oy(r);e.use12h&&(r===0&&(i="12"),n.getHours()>=12&&(r+=12));var o=n.setHours(r);return{value:o,text:i}})},getMinutesList:function(){var e=this;return sy(60,this.minuteStep,this.minuteOptions).map(function(r){var n=new Date(e.date).setMinutes(r);return{value:n,text:oy(r)}})},getSecondsList:function(){var e=this;return sy(60,this.secondStep,this.secondOptions).map(function(r){var n=new Date(e.date).setSeconds(r);return{value:n,text:oy(r)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(r,n){var i=new Date(e.date),o=i.setHours(i.getHours()%12+n*12);return{text:r,value:o}})},scrollToSelected:function(e){for(var r=this.$el.querySelectorAll(".active"),n=0;n<r.length;n++){var i=r[n],o=u5(i,this.$el);if(o){var s=i.offsetTop;E5e(o,s,e)}}},handleSelect:function(e){var r=e.target,n=e.currentTarget;if(r.tagName.toUpperCase()==="LI"){var i=n.getAttribute("data-type"),o=parseInt(n.getAttribute("data-index"),10),s=parseInt(r.getAttribute("data-index"),10),a=this.columns[o].list[s].value;this.$emit("select",a,i)}}}},S5e=w5e,D5e=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{class:e.prefixClass+"-time-columns"},e._l(e.columns,function(i,o){return n("scrollbar-vertical",{key:o,class:e.prefixClass+"-time-column"},[n("ul",{class:e.prefixClass+"-time-list",attrs:{"data-type":i.type,"data-index":o},on:{click:e.handleSelect}},e._l(i.list,function(s,a){return n("li",{key:s.value,class:[e.prefixClass+"-time-item",e.getClasses(s.value,i.type)],attrs:{"data-index":a}},[e._v(` `+e._s(s.text)+` `)])}),0)])}),1)},x5e=[],k5e=void 0,C5e=ca({render:D5e,staticRenderFns:x5e},k5e,S5e);function ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(":");if(r.length>=2){var n=parseInt(r[0],10),i=parseInt(r[1],10);return{hours:n,minutes:i}}return null}var _5e=function(e,r){e&&(e.scrollTop=r)},N5e={name:"ListOptions",components:{ScrollbarVertical:gB},inject:{getLocale:{default:function(){return ep}},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=[],r=this.options;if(typeof r=="function")return r()||[];var n=ay(r.start),i=ay(r.end),o=ay(r.step),s=r.format||this.format;if(n&&i&&o)for(var a=n.minutes+n.hours*60,l=i.minutes+i.hours*60,u=o.minutes+o.hours*60,c=Math.floor((l-a)/u),d=0;d<=c;d++){var h=a+d*u,p=Math.floor(h/60),f=h%60,m=new Date(this.date).setHours(p,f,0);e.push({value:m,text:this.formatDate(m,s)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,r){return a5(e,r,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var r=u5(e,this.$el);if(r){var n=e.offsetTop;_5e(r,n)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},F5e=N5e,O5e=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("scrollbar-vertical",e._l(e.list,function(i){return n("div",{key:i.value,class:[e.prefixClass+"-time-option",e.getClasses(i.value)],on:{click:function(o){return e.handleSelect(i.value)}}},[e._v(` `+e._s(i.text)+` `)])}),0)},M5e=[],R5e=void 0,B5e=ca({render:O5e,staticRenderFns:M5e},R5e,F5e),I5e={name:"TimePanel",components:{ListColumns:C5e,ListOptions:B5e},inject:{getLocale:{default:function(){return ep}},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:Qh(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,r=new Date(this.innerValue);return this.formatDate(r,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,r=this.innerForamt,n={showHour:/[HhKk]/.test(r),showMinute:/m/.test(r),showSecond:/s/.test(r),use12h:/a/i.test(r)},i={};return Object.keys(n).forEach(function(o){i[o]=typeof e[o]=="boolean"?e[o]:n[o]}),i}},watch:{value:{immediate:!0,handler:function(){this.innerValue=Qh(this.value,this.defaultValue)}}},methods:{formatDate:function(e,r){return a5(e,r,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var r=new Date(e);return this.isDisabledTime(r)&&this.isDisabledTime(r.setMinutes(0,0,0))&&this.isDisabledTime(r.setMinutes(59,59,999))},isDisabledMinute:function(e){var r=new Date(e);return this.isDisabledTime(r)&&this.isDisabledTime(r.setSeconds(0,0))&&this.isDisabledTime(r.setSeconds(59,999))},isDisabledAMPM:function(e){var r=new Date(e),n=r.getHours()<12?0:12,i=n+11;return this.isDisabledTime(r)&&this.isDisabledTime(r.setHours(n,0,0,0))&&this.isDisabledTime(r.setHours(i,59,59,999))},isDisabled:function(e,r){return r==="hour"?this.isDisabledHour(e):r==="minute"?this.isDisabledMinute(e):r==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,r){var n=new Date(e);this.isDisabled(e,r)||(this.innerValue=n,this.isDisabledTime(n)||this.$emit("select",n,r))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,r){var n=new Date(e);return this.isDisabled(e,r)?"disabled":n.getTime()===this.innerValue.getTime()?"active":""}}},L5e=I5e,z5e=function(){var e=this,r=e.$createElement,n=e._self._c||r;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)])},Y5e=[],H5e=void 0,Iu=ca({render:z5e,staticRenderFns:Y5e},H5e,L5e),q1={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:xn({},Iu.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(l5(this.value)){var e=j1(this.value,2),r=e[0],n=e[1];this.startValue=r,this.endValue=n}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,r){var n=[this.startValue,this.endValue];this.$emit("select",n,e==="time"?"time-range":e,r)},handleSelectStart:function(e,r){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(r,0)},handleSelectEnd:function(e,r){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(r,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],r=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],n=this.prefixClass;return e("div",{class:"".concat(n,"-range-wrapper")},[e(Iu,{props:xn({},xn({},this.$props,{value:this.startValue,defaultValue:r[0],disabledTime:this.disabledStartTime})),on:xn({},xn({},this.$listeners,{select:this.handleSelectStart}))}),e(Iu,{props:xn({},xn({},this.$props,{value:this.endValue,defaultValue:r[1],disabledTime:this.disabledEndTime})),on:xn({},xn({},this.$listeners,{select:this.handleSelectEnd}))})])}},uA={name:"DatetimePanel",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:xn({},Gc.props,{},Iu.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,r){this.$emit("select",e,r)},handleSelect:function(e,r){r==="date"&&this.openTimePanel();var n=K4(e,Qh(this.value,this.defaultValue));if(this.disabledTime(new Date(n))&&(n=K4(e,this.defaultValue),this.disabledTime(new Date(n)))){this.currentValue=n;return}this.emitDate(n,r)}},render:function(){var e=arguments[0],r={props:xn({},Xh(this.$props,Object.keys(Gc.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},n={props:xn({},Xh(this.$props,Object.keys(Iu.props)),{showTimeHeader:!0,value:this.currentValue}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},i=this.prefixClass;return e("div",[e(Gc,Yf([{},r])),this.timeVisible&&e(Iu,Yf([{class:"".concat(i,"-calendar-time")},n]))])}},yB={name:"DatetimeRange",inject:{prefixClass:{default:"mx"}},emits:["select","update:show-time-panel"],props:xn({},G1.props,{},q1.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,r){this.$emit("select",e,r)},handleSelect:function(e,r){var n=this;r==="date"&&this.openTimePanel();var i=Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue],o=e.map(function(s,a){var l=l5(n.value)?n.value[a]:i[a];return K4(s,l)});if(o[1].getTime()<o[0].getTime()&&(o=[o[0],o[0]]),o.some(this.disabledTime)&&(o=e.map(function(s,a){return K4(s,i[a])}),o.some(this.disabledTime))){this.currentValue=o;return}this.emitDate(o,r)}},render:function(){var e=arguments[0],r={props:xn({},Xh(this.$props,Object.keys(G1.props)),{type:"date",value:this.currentValue}),on:{select:this.handleSelect}},n={props:xn({},Xh(this.$props,Object.keys(q1.props)),{value:this.currentValue,showTimeHeader:!0}),on:{select:this.emitDate,clicktitle:this.closeTimePanel}},i=this.prefixClass;return e("div",[e(G1,Yf([{},r])),this.timeVisible&&e(q1,Yf([{class:"".concat(i,"-calendar-time")},n]))])}},P5e={default:Gc,time:Iu,datetime:uA},Z5e={default:G1,time:q1,datetime:yB},_c={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:xn({},uA.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(r){return fl(r)&&typeof r.text=="string"&&typeof r.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(r){return e.formatDate(r)}).join(this.innerRangeSeparator):this.formatDate(this.innerValue):""},showClearIcon:function(){return!this.disabled&&this.clearable&&this.text&&this.mouseInInput},locale:function(){return fl(this.lang)?fB(ep(),this.lang):ep(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(){v2(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 r=e.target;this.$el.contains(r)||this.closePopup()},getFormatter:function(e){return fl(this.formatter)&&this.formatter[e]||fl(this.format)&&this.format[e]},getWeek:function(e,r){return typeof this.getFormatter("getWeek")=="function"?this.getFormatter("getWeek")(e,r):sA(e,r)},parseDate:function(e,r){if(r=r||this.innerFormat,typeof this.getFormatter("parse")=="function")return this.getFormatter("parse")(e,r);var n=new Date;return o3e(e,r,{locale:this.locale.formatLocale,backupDate:n})},formatDate:function(e,r){return r=r||this.innerFormat,typeof this.getFormatter("stringify")=="function"?this.getFormatter("stringify")(e,r):a5(e,r,{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(!A0(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,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this.userInput=null;var i=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",i),this.$emit("change",i,r),n&&this.closePopup(),i},isValidValue:function(e){return this.validMultipleType?y3e(e):this.range?l5(e):A0(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var r=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(i){return!r(i)&&!n(i)})},handleMultipleDates:function(e,r){if(this.validMultipleType&&r){var n=r.filter(function(i){return i.getTime()!==e.getTime()});return n.length===r.length&&n.push(e),n}return e},handleSelectDate:function(e,r,n){e=this.handleMultipleDates(e,n),this.confirm?this.currentValue=e:this.emitValue(e,r,!this.validMultipleType&&(r===this.type||r==="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 r=e.currentTarget.getAttribute("data-index"),n=this.shortcuts[parseInt(r,10)];if(fl(n)&&typeof n.onClick=="function"){var i=n.onClick(this);i&&this.emitValue(i)}},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 r=this.userInput.trim();if(this.userInput=null,r===""){this.clear();return}var n;if(this.validMultipleType)n=r.split(this.innerRangeSeparator).map(function(o){return e.parseDate(o.trim())});else if(this.range){var i=r.split(this.innerRangeSeparator);i.length!==2&&(i=r.split(this.innerRangeSeparator.trim())),n=i.map(function(o){return e.parseDate(o.trim())})}else n=this.parseDate(r);this.isValidValueAndNotDisabled(n)?(this.emitValue(n),this.blur()):this.$emit("input-error",r)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var r=e.keyCode;r===9?this.closePopup():r===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,r,n){var i=this.$scopedSlots[e];return i?i(n)||r:this.$slots[e]||r},renderInput:function(){var e=this.$createElement,r=this.prefixClass,n=xn({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),i=n.value,o=n.class,s=a3e(n,["value","class"]),a={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},l=this.renderSlot("input",e("input",{domProps:{value:i},class:o,attrs:xn({},s),on:xn({},a),ref:"input"}),{props:n,events:a}),u=this.type==="time"?e(Z3e):e(z3e);return e("div",{class:"".concat(r,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[l,this.showClearIcon?e("i",{class:"".concat(r,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(j3e))]):e("i",{class:"".concat(r,"-icon-calendar")},[this.renderSlot("icon-calendar",u)])])},renderContent:function(){var e=this.$createElement,r=this.range?Z5e:P5e,n=r[this.type]||r.default,i=xn({},Xh(this.$props,Object.keys(n.props)),{value:this.currentValue}),o=xn({},Xh(this.$listeners,n.emits||[]),{select:this.handleSelectDate}),s=e(n,Yf([{},{props:i,on:o,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",s,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,r=this.$createElement,n=this.prefixClass;return r("div",{class:"".concat(n,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(i,o){return r("button",{key:o,attrs:{"data-index":o,type:"button"},class:"".concat(n,"-btn ").concat(n,"-btn-text ").concat(n,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[i.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,r=this.prefixClass;return e("div",{class:"".concat(r,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(r,"-btn ").concat(r,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,r=arguments[0],n=this.prefixClass,i=this.inline,o=this.disabled,s=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,a=r("div",{class:"".concat(n,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return r("div",{class:(e={},Lc(e,"".concat(n,"-datepicker"),!0),Lc(e,"".concat(n,"-datepicker-range"),this.range),Lc(e,"".concat(n,"-datepicker-inline"),i),Lc(e,"disabled",o),e)},[i?null:this.renderInput(),i?r("div",{class:"".concat(n,"-datepicker-main")},[s,a]):r(R3e,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[s,a])])}};_c.locale=mB,_c.install=function(e){e.component(_c.name,_c)},typeof window<"u"&&window.Vue&&_c.install(window.Vue),pb(_c,{CalendarPanel:Gc,CalendarRange:G1,TimePanel:Iu,TimeRange:q1,DatetimePanel:uA,DatetimeRange:yB});class c5{static fromString(r){return new c5(r)}constructor(r){this.value=r}icaltype="binary";decodeValue(){return this._b64_decode(this.value)}setEncodedValue(r){this.value=this._b64_encode(r)}_b64_encode(r){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,o,s,a,l,u,c,d,h=0,p=0,f="",m=[];if(!r)return r;do i=r.charCodeAt(h++),o=r.charCodeAt(h++),s=r.charCodeAt(h++),d=i<<16|o<<8|s,a=d>>18&63,l=d>>12&63,u=d>>6&63,c=d&63,m[p++]=n.charAt(a)+n.charAt(l)+n.charAt(u)+n.charAt(c);while(h<r.length);f=m.join("");let v=r.length%3;return(v?f.slice(0,v-3):f)+"===".slice(v||3)}_b64_decode(r){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,o,s,a,l,u,c,d,h=0,p=0,f="",m=[];if(!r)return r;r+="";do a=n.indexOf(r.charAt(h++)),l=n.indexOf(r.charAt(h++)),u=n.indexOf(r.charAt(h++)),c=n.indexOf(r.charAt(h++)),d=a<<18|l<<12|u<<6|c,i=d>>16&255,o=d>>8&255,s=d&255,u==64?m[p++]=String.fromCharCode(i):c==64?m[p++]=String.fromCharCode(i,o):m[p++]=String.fromCharCode(i,o,s);while(h<r.length);return f=m.join(""),f}toString(){return this.value}}const $5e=/([PDWHMTS]{1,1})/,U5e=["weeks","days","hours","minutes","seconds","isNegative"];class mo{static fromSeconds(r){return new mo().fromSeconds(r)}static isValueString(r){return r[0]==="P"||r[1]==="P"}static fromString(r){let n=0,i=Object.create(null),o=0;for(;(n=r.search($5e))!==-1;){let s=r[n],a=r.slice(0,Math.max(0,n));r=r.slice(n+1),o+=V5e(s,a,i)}if(o<2)throw new Error('invalid duration value: Not enough duration components in "'+r+'"');return new mo(i)}static fromData(r){return new mo(r)}constructor(r){this.wrappedJSObject=this,this.fromData(r)}weeks=0;days=0;hours=0;minutes=0;seconds=0;isNegative=!1;icalclass="icalduration";icaltype="duration";clone(){return mo.fromData(this)}toSeconds(){let r=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-r:r}fromSeconds(r){let n=Math.abs(r);return this.isNegative=r<0,this.days=Zi(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=Zi(n/3600),n-=this.hours*3600,this.minutes=Zi(n/60),n-=this.minutes*60,this.seconds=n,this}fromData(r){for(let n of U5e)r&&n in r?this[n]=r[n]:this[n]=0}reset(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0}compare(r){let n=this.toSeconds(),i=r.toSeconds();return(n>i)-(n<i)}normalize(){this.fromSeconds(this.toSeconds())}toString(){if(this.toSeconds()==0)return"PT0S";{let r="";this.isNegative&&(r+="-"),r+="P";let n=!1;return this.weeks?this.days||this.hours||this.minutes||this.seconds?r+=this.weeks*7+this.days+"D":(r+=this.weeks+"W",n=!0):this.days&&(r+=this.days+"D"),n||(this.hours||this.minutes||this.seconds)&&(r+="T",this.hours&&(r+=this.hours+"H"),this.minutes&&(r+=this.minutes+"M"),this.seconds&&(r+=this.seconds+"S")),r}}toICALString(){return this.toString()}}function V5e(e,r,n){let i;switch(e){case"P":r&&r==="-"?n.isNegative=!0:n.isNegative=!1;break;case"D":i="days";break;case"W":i="weeks";break;case"H":i="hours";break;case"M":i="minutes";break;case"S":i="seconds";break;default:return 0}if(i){if(!r&&r!==0)throw new Error('invalid duration value: Missing number before "'+e+'"');let o=parseInt(r,10);if(Hf(o))throw new Error('invalid duration value: Invalid number "'+r+'" before "'+e+'"');n[i]=o}return 1}class r0{static fromString(r,n){let i=r.split("/");if(i.length!==2)throw new Error('Invalid string value: "'+r+'" must contain a "/" char.');let o={start:He.fromDateTimeString(i[0],n)},s=i[1];return mo.isValueString(s)?o.duration=mo.fromString(s):o.end=He.fromDateTimeString(s,n),new r0(o)}static fromData(r){return new r0(r)}static fromJSON(r,n,i){function o(s,a){return i?He.fromString(s,a):He.fromDateTimeString(s,a)}return mo.isValueString(r[1])?r0.fromData({start:o(r[0],n),duration:mo.fromString(r[1])}):r0.fromData({start:o(r[0],n),end:o(r[1],n)})}constructor(r){if(this.wrappedJSObject=this,r&&"start"in r){if(r.start&&!(r.start instanceof He))throw new TypeError(".start must be an instance of ICAL.Time");this.start=r.start}if(r&&r.end&&r.duration)throw new Error("cannot accept both end and duration");if(r&&"end"in r){if(r.end&&!(r.end instanceof He))throw new TypeError(".end must be an instance of ICAL.Time");this.end=r.end}if(r&&"duration"in r){if(r.duration&&!(r.duration instanceof mo))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=r.duration}}start=null;end=null;duration=null;icalclass="icalperiod";icaltype="period";clone(){return r0.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 r=this.start.clone();return r.addDuration(this.duration),r}}compare(r){return r.compare(this.start)<0?1:r.compare(this.getEnd())>0?-1:0}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()}}class He{static _dowCache={};static _wnCache={};static daysInMonth(r,n){let i=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=30;return r<1||r>12||(o=i[r],r==2&&(o+=He.isLeapYear(n))),o}static isLeapYear(r){return r<=1752?r%4==0:r%4==0&&r%100!=0||r%400==0}static fromDayOfYear(r,n){let i=n,o=r,s=new He;s.auto_normalize=!1;let a=He.isLeapYear(i)?1:0;if(o<1)return i--,a=He.isLeapYear(i)?1:0,o+=He.daysInYearPassedMonth[a][12],He.fromDayOfYear(o,i);if(o>He.daysInYearPassedMonth[a][12])return a=He.isLeapYear(i)?1:0,o-=He.daysInYearPassedMonth[a][12],i++,He.fromDayOfYear(o,i);s.year=i,s.isDate=!0;for(let l=11;l>=0;l--)if(o>He.daysInYearPassedMonth[a][l]){s.month=l+1,s.day=o-He.daysInYearPassedMonth[a][l];break}return s.auto_normalize=!0,s}static fromStringv2(r){return new He({year:parseInt(r.slice(0,4),10),month:parseInt(r.slice(5,7),10),day:parseInt(r.slice(8,10),10),isDate:!0})}static fromDateString(r){return new He({year:po(r.slice(0,4)),month:po(r.slice(5,7)),day:po(r.slice(8,10)),isDate:!0})}static fromDateTimeString(r,n){if(r.length<19)throw new Error('invalid date-time value: "'+r+'"');let i,o;r.slice(-1)==="Z"?i=pn.utcTimezone:n&&(o=n.getParameter("tzid"),n.parent&&(n.parent.name==="standard"||n.parent.name==="daylight"?i=pn.localTimezone:o&&(i=n.parent.getTimeZoneByID(o))));const s={year:po(r.slice(0,4)),month:po(r.slice(5,7)),day:po(r.slice(8,10)),hour:po(r.slice(11,13)),minute:po(r.slice(14,16)),second:po(r.slice(17,19))};return o&&!i&&(s.timezone=o),new He(s,i)}static fromString(r,n){return r.length>10?He.fromDateTimeString(r,n):He.fromDateString(r)}static fromJSDate(r,n){return new He().fromJSDate(r,n)}static fromData=function(r,n){return new He().fromData(r,n)};static now(){return He.fromJSDate(new Date,!1)}static weekOneStarts(r,n){let i=He.fromData({year:r,month:1,day:1,isDate:!0}),o=i.dayOfWeek(),s=n||He.DEFAULT_WEEK_START;return o>He.THURSDAY&&(i.day+=7),s>He.THURSDAY&&(i.day-=7),i.day-=o-s,i}static getDominicalLetter(r){let n="GFEDCBA",i=(r+(r/4|0)+(r/400|0)-(r/100|0)-1)%7;return He.isLeapYear(r)?n[(i+6)%7]+n[i]:n[i]}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(r,n,i){return r[i]>n[i]?1:r[i]<n[i]?-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(r,n){this.wrappedJSObject=this,this._time=Object.create(null),this._time.year=0,this._time.month=1,this._time.day=1,this._time.hour=0,this._time.minute=0,this._time.second=0,this._time.isDate=!1,this.fromData(r,n)}icalclass="icaltime";_cachedUnixTime=null;get icaltype(){return this.isDate?"date":"date-time"}zone=null;_pendingNormalization=!1;get year(){return this._getTimeAttr("year")}set year(r){this._setTimeAttr("year",r)}get month(){return this._getTimeAttr("month")}set month(r){this._setTimeAttr("month",r)}get day(){return this._getTimeAttr("day")}set day(r){this._setTimeAttr("day",r)}get hour(){return this._getTimeAttr("hour")}set hour(r){this._setTimeAttr("hour",r)}get minute(){return this._getTimeAttr("minute")}set minute(r){this._setTimeAttr("minute",r)}get second(){return this._getTimeAttr("second")}set second(r){this._setTimeAttr("second",r)}get isDate(){return this._getTimeAttr("isDate")}set isDate(r){this._setTimeAttr("isDate",r)}_getTimeAttr(r){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[r]}_setTimeAttr(r,n){r==="isDate"&&n&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[r]=n}clone(){return new He(this._time,this.zone)}reset(){this.fromData(He.epochTime),this.zone=pn.utcTimezone}resetTo(r,n,i,o,s,a,l){this.fromData({year:r,month:n,day:i,hour:o,minute:s,second:a,zone:l})}fromJSDate(r,n){return r?n?(this.zone=pn.utcTimezone,this.year=r.getUTCFullYear(),this.month=r.getUTCMonth()+1,this.day=r.getUTCDate(),this.hour=r.getUTCHours(),this.minute=r.getUTCMinutes(),this.second=r.getUTCSeconds()):(this.zone=pn.localTimezone,this.year=r.getFullYear(),this.month=r.getMonth()+1,this.day=r.getDate(),this.hour=r.getHours(),this.minute=r.getMinutes(),this.second=r.getSeconds()):this.reset(),this._cachedUnixTime=null,this}fromData(r,n){if(r)for(let[i,o]of Object.entries(r))i!=="icaltype"&&(this[i]=o);if(n&&(this.zone=n),r&&!("isDate"in r)?this.isDate=!("hour"in r):r&&"isDate"in r&&(this.isDate=r.isDate),r&&"timezone"in r){let i=Q4.get(r.timezone);this.zone=i||pn.localTimezone}return r&&"zone"in r&&(this.zone=r.zone),this.zone||(this.zone=pn.localTimezone),this._cachedUnixTime=null,this}dayOfWeek(r){let n=r||He.SUNDAY,i=(this.year<<12)+(this.month<<8)+(this.day<<3)+n;if(i in He._dowCache)return He._dowCache[i];let o=this.day,s=this.month+(this.month<3?12:0),a=this.year-(this.month<3?1:0),l=o+a+Zi((s+1)*26/10)+Zi(a/4);return l+=Zi(a/100)*6+Zi(a/400),l=(l+7-n)%7+1,He._dowCache[i]=l,l}dayOfYear(){let r=He.isLeapYear(this.year)?1:0;return He.daysInYearPassedMonth[r][this.month-1]+this.day}startOfWeek(r){let n=r||He.SUNDAY,i=this.clone();return i.day-=(this.dayOfWeek()+7-n)%7,i.isDate=!0,i.hour=0,i.minute=0,i.second=0,i}endOfWeek(r){let n=r||He.SUNDAY,i=this.clone();return i.day+=(7-this.dayOfWeek()+n-He.SUNDAY)%7,i.isDate=!0,i.hour=0,i.minute=0,i.second=0,i}startOfMonth(){let r=this.clone();return r.day=1,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}endOfMonth(){let r=this.clone();return r.day=He.daysInMonth(r.month,r.year),r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}startOfYear(){let r=this.clone();return r.day=1,r.month=1,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}endOfYear(){let r=this.clone();return r.day=31,r.month=12,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r}startDoyWeek(r){let n=r||He.SUNDAY,i=this.dayOfWeek()-n;return i<0&&(i+=7),this.dayOfYear()-i}getDominicalLetter(){return He.getDominicalLetter(this.year)}nthWeekDay(r,n){let i=He.daysInMonth(this.month,this.year),o,s=n,a=0,l=this.clone();if(s>=0){l.day=1,s!=0&&s--,a=l.day;let u=l.dayOfWeek(),c=r-u;c<0&&(c+=7),a+=c,a-=r,o=r}else{l.day=i;let u=l.dayOfWeek();s++,o=u-r,o<0&&(o+=7),o=i-o}return o+=s*7,a+o}isNthWeekDay(r,n){let i=this.dayOfWeek();return n===0&&i===r||this.nthWeekDay(r,n)===this.day}weekNumber(r){let n=(this.year<<12)+(this.month<<8)+(this.day<<3)+r;if(n in He._wnCache)return He._wnCache[n];let i,o=this.clone();o.isDate=!0;let s=this.year;o.month==12&&o.day>25?(i=He.weekOneStarts(s+1,r),o.compare(i)<0?i=He.weekOneStarts(s,r):s++):(i=He.weekOneStarts(s,r),o.compare(i)<0&&(i=He.weekOneStarts(--s,r)));let a=o.subtractDate(i).toSeconds()/86400,l=Zi(a/7)+1;return He._wnCache[n]=l,l}addDuration(r){let n=r.isNegative?-1:1,i=this.second,o=this.minute,s=this.hour,a=this.day;i+=n*r.seconds,o+=n*r.minutes,s+=n*r.hours,a+=n*r.days,a+=n*7*r.weeks,this.second=i,this.minute=o,this.hour=s,this.day=a,this._cachedUnixTime=null}subtractDate(r){let n=this.toUnixTime()+this.utcOffset(),i=r.toUnixTime()+r.utcOffset();return mo.fromSeconds(n-i)}subtractDateTz(r){let n=this.toUnixTime(),i=r.toUnixTime();return mo.fromSeconds(n-i)}compare(r){if(r instanceof r0)return-1*r.compare(this);{let n=this.toUnixTime(),i=r.toUnixTime();return n>i?1:i>n?-1:0}}compareDateOnlyTz(r,n){let i=this.convertToZone(n),o=r.convertToZone(n),s=0;return(s=He._cmp_attr(i,o,"year"))!=0||(s=He._cmp_attr(i,o,"month"))!=0||(s=He._cmp_attr(i,o,"day"))!=0,s}convertToZone(r){let n=this.clone(),i=this.zone.tzid==r.tzid;return!this.isDate&&!i&&pn.convert_time(n,this.zone,r),n.zone=r,n}utcOffset(){return this.zone==pn.localTimezone||this.zone==pn.utcTimezone?0:this.zone.utcOffset(this)}toICALString(){let r=this.toString();return r.length>10?oi.icalendar.value["date-time"].toICAL(r):oi.icalendar.value.date.toICAL(r)}toString(){let r=this.year+"-"+Ko(this.month)+"-"+Ko(this.day);return this.isDate||(r+="T"+Ko(this.hour)+":"+Ko(this.minute)+":"+Ko(this.second),this.zone===pn.utcTimezone&&(r+="Z")),r}toJSDate(){return this.zone==pn.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(r,n,i,o,s){let a,l,u=0,c=0,d,h,p,f,m,v=s||this._time;if(v.isDate||(d=v.second+o,v.second=d%60,a=Zi(d/60),v.second<0&&(v.second+=60,a--),h=v.minute+i+a,v.minute=h%60,l=Zi(h/60),v.minute<0&&(v.minute+=60,l--),p=v.hour+n+l,v.hour=p%24,u=Zi(p/24),v.hour<0&&(v.hour+=24,u--)),v.month>12?c=Zi((v.month-1)/12):v.month<1&&(c=Zi(v.month/12)-1),v.year+=c,v.month-=12*c,f=v.day+r+u,f>0)for(;m=He.daysInMonth(v.month,v.year),!(f<=m);)v.month++,v.month>12&&(v.year++,v.month=1),f-=m;else for(;f<=0;)v.month==1?(v.year--,v.month=12):v.month--,f+=He.daysInMonth(v.month,v.year);return v.day=f,this._cachedUnixTime=null,this}fromUnixTime(r){this.zone=pn.utcTimezone;let n=new Date(r*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 r=this.utcOffset(),n=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-r);return this._cachedUnixTime=n/1e3,this._cachedUnixTime}toJSON(){let r=["year","month","day","hour","minute","second","isDate"],n=Object.create(null),i=0,o=r.length,s;for(;i<o;i++)s=r[i],n[s]=this[s];return this.zone&&(n.timezone=this.zone.tzid),n}}const j5e=/[^ \t]/,kg=":",ly=";",G5e="=",q5e="unknown",W5e="text",K5e={"^'":'"',"^n":` `,"^^":"^"};function qr(e){let r={},n=r.component=[];if(r.stack=[n],qr._eachLine(e,function(i,o){qr._handleContentLine(o,r)}),r.stack.length>1)throw new Nc("invalid ical body. component began but did not end");return r=null,n.length==1?n[0]:n}qr.property=function(e,r){let n={component:[[],[]],designSet:r||oi.defaultSet};return qr._handleContentLine(e,n),n.component[1][0]},qr.component=function(e){return qr(e)};class Nc extends Error{name=this.constructor.name}qr.ParserError=Nc,qr._handleContentLine=function(e,r){let n=e.indexOf(kg),i=e.indexOf(ly),o,s,a,l,u={};i!==-1&&n!==-1&&i>n&&(i=-1);let c;if(i!==-1){if(a=e.slice(0,Math.max(0,i)).toLowerCase(),c=qr._parseParameters(e.slice(Math.max(0,i)),0,r.designSet),c[2]==-1)throw new Nc("Invalid parameters in '"+e+"'");u=c[0];let x;if(typeof c[1]=="string"?x=c[1].length:x=c[1].reduce((k,R)=>k+R.length,0),o=x+c[2]+i,(s=e.slice(Math.max(0,o)).indexOf(kg))!==-1)l=e.slice(Math.max(0,o+s+1));else throw new Nc("Missing parameter value in '"+e+"'")}else if(n!==-1){if(a=e.slice(0,Math.max(0,n)).toLowerCase(),l=e.slice(Math.max(0,n+1)),a==="begin"){let x=[l.toLowerCase(),[],[]];r.stack.length===1?r.component.push(x):r.component[2].push(x),r.stack.push(r.component),r.component=x,r.designSet||(r.designSet=oi.getDesignSet(r.component[0]));return}else if(a==="end"){r.component=r.stack.pop();return}}else throw new Nc('invalid line (no token ";" or ":") "'+e+'"');let d,h=!1,p=!1,f,m,v;r.designSet.propertyGroups&&a.indexOf(".")!==-1?(m=a.split("."),u.group=m[0],v=m[1]):v=a,v in r.designSet.property&&(f=r.designSet.property[v],"multiValue"in f&&(h=f.multiValue),"structuredValue"in f&&(p=f.structuredValue),l&&"detectType"in f&&(d=f.detectType(l))),d||("value"in u?d=u.value.toLowerCase():f?d=f.defaultType:d=q5e),delete u.value;let w;h&&p?(l=qr._parseMultiValue(l,p,d,[],h,r.designSet,p),w=[v,u,d,l]):h?(w=[v,u,d],qr._parseMultiValue(l,h,d,w,null,r.designSet,!1)):p?(l=qr._parseMultiValue(l,p,d,[],null,r.designSet,p),w=[v,u,d,l]):(l=qr._parseValue(l,d,r.designSet,!1),w=[v,u,d,l]),r.component[0]==="vcard"&&r.component[1].length===0&&!(a==="version"&&l==="4.0")&&(r.designSet=oi.getDesignSet("vcard3")),r.component[1].push(w)},qr._parseValue=function(e,r,n,i){return r in n.value&&"fromICAL"in n.value[r]?n.value[r].fromICAL(e,i):e},qr._parseParameters=function(e,r,n){let i=r,o=0,s=G5e,a={},l,u,c,d=-1,h,p,f;for(;o!==!1&&(o=e.indexOf(s,o+1))!==-1;){if(l=e.slice(i+1,o),l.length==0)throw new Nc("Empty parameter name in '"+e+"'");if(u=l.toLowerCase(),f=!1,p=!1,u in n.param&&n.param[u].valueType?h=n.param[u].valueType:h=W5e,u in n.param&&(p=n.param[u].multiValue,n.param[u].multiValueSeparateDQuote&&(f=qr._rfc6868Escape('"'+p+'"'))),e[o+1]==='"'){if(d=o+2,o=e.indexOf('"',d),p&&o!=-1){let w=!0;for(;w;)e[o+1]==p&&e[o+2]=='"'?o=e.indexOf('"',o+3):w=!1}if(o===-1)throw new Nc('invalid line (no matching double quote) "'+e+'"');c=e.slice(d,o),i=e.indexOf(ly,o);let v=e.indexOf(kg,o);(i===-1||v!==-1&&i>v)&&(o=!1)}else{d=o+1;let v=e.indexOf(ly,d),w=e.indexOf(kg,d);w!==-1&&v>w?(v=w,o=!1):v===-1?(w===-1?v=e.length:v=w,o=!1):(i=v,o=v),c=e.slice(d,v)}const m=c.length;if(c=qr._rfc6868Escape(c),d+=m-c.length,p){let v=f||p;c=qr._parseMultiValue(c,v,h,[],null,n)}else c=qr._parseValue(c,h,n);p&&u in a?Array.isArray(a[u])?a[u].push(c):a[u]=[a[u],c]:a[u]=c}return[a,c,d]},qr._rfc6868Escape=function(e){return e.replace(/\^['n^]/g,function(r){return K5e[r]})},qr._parseMultiValue=function(e,r,n,i,o,s,a){let l=0,u=0,c;if(r.length===0)return e;for(;(l=TB(e,r,u))!==-1;)c=e.slice(u,l),o?c=qr._parseMultiValue(c,o,n,[],null,s,a):c=qr._parseValue(c,n,s,a),i.push(c),u=l+r.length;return c=e.slice(u),o?c=qr._parseMultiValue(c,o,n,[],null,s,a):c=qr._parseValue(c,n,s,a),i.push(c),i.length==1?i[0]:i},qr._eachLine=function(e,r){let n=e.length,i=e.search(j5e),o=i,s,a,l;do o=e.indexOf(` `,i)+1,o>1&&e[o-2]==="\r"?l=2:l=1,o===0&&(o=n,l=0),a=e[i],a===" "||a===" "?s+=e.slice(i+1,o-l):(s&&r(null,s),s=e.slice(i,o-l)),i=o;while(o!==n);s=s.trim(),s.length&&r(null,s)};const Q5e=["tzid","location","tznames","latitude","longitude"];let pn=class cn{static _compare_change_fn(r,n){return r.year<n.year?-1:r.year>n.year?1:r.month<n.month?-1:r.month>n.month?1:r.day<n.day?-1:r.day>n.day?1:r.hour<n.hour?-1:r.hour>n.hour?1:r.minute<n.minute?-1:r.minute>n.minute?1:r.second<n.second?-1:r.second>n.second?1:0}static convert_time(r,n,i){if(r.isDate||n.tzid==i.tzid||n==cn.localTimezone||i==cn.localTimezone)return r.zone=i,r;let o=n.utcOffset(r);return r.adjust(0,0,0,-o),o=i.utcOffset(r),r.adjust(0,0,0,o),null}static fromData(r){return new cn().fromData(r)}static#e=null;static get utcTimezone(){return this.#e||(this.#e=cn.fromData({tzid:"UTC"})),this.#e}static#t=null;static get localTimezone(){return this.#t||(this.#t=cn.fromData({tzid:"floating"})),this.#t}static adjust_change(r,n,i,o,s){return He.prototype.adjust.call(r,n,i,o,s,r)}static _minimumExpansionYear=-1;static EXTRA_COVERAGE=5;constructor(r){this.wrappedJSObject=this,this.fromData(r)}tzid="";location="";tznames="";latitude=0;longitude=0;component=null;expandedUntilYear=0;icalclass="icaltimezone";fromData(r){if(this.expandedUntilYear=0,this.changes=[],r instanceof Ns)this.component=r;else{if(r&&"component"in r)if(typeof r.component=="string"){let n=qr(r.component);this.component=new Ns(n)}else r.component instanceof Ns?this.component=r.component:this.component=null;for(let n of Q5e)r&&n in r&&(this[n]=r[n])}return this.component instanceof Ns&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this}utcOffset(r){if(this==cn.utcTimezone||this==cn.localTimezone||(this._ensureCoverage(r.year),!this.changes.length))return 0;let n={year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second},i=this._findNearbyChange(n),o=-1,s=1;for(;;){let l=sd(this.changes[i],!0);if(l.utcOffset<l.prevUtcOffset?cn.adjust_change(l,0,0,0,l.utcOffset):cn.adjust_change(l,0,0,0,l.prevUtcOffset),cn._compare_change_fn(n,l)>=0?o=i:s=-1,s==-1&&o!=-1)break;if(i+=s,i<0)return 0;if(i>=this.changes.length)break}let a=this.changes[o];if(a.utcOffset-a.prevUtcOffset<0&&o>0){let l=sd(a,!0);if(cn.adjust_change(l,0,0,0,l.prevUtcOffset),cn._compare_change_fn(n,l)<0){let u=this.changes[o-1],c=!1;a.is_daylight!=c&&u.is_daylight==c&&(a=u)}}return a.utcOffset}_findNearbyChange(r){let n=qc(this.changes,r,cn._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n}_ensureCoverage(r){if(cn._minimumExpansionYear==-1){let i=He.now();cn._minimumExpansionYear=i.year}let n=r;if(n<cn._minimumExpansionYear&&(n=cn._minimumExpansionYear),n+=cn.EXTRA_COVERAGE,!this.changes.length||this.expandedUntilYear<r){let i=this.component.getAllSubcomponents(),o=i.length,s=0;for(;s<o;s++)this._expandComponent(i[s],n,this.changes);this.changes.sort(cn._compare_change_fn),this.expandedUntilYear=n}}_expandComponent(r,n,i){if(!r.hasProperty("dtstart")||!r.hasProperty("tzoffsetto")||!r.hasProperty("tzoffsetfrom"))return null;let o=r.getFirstProperty("dtstart").getFirstValue(),s;function a(u){return u.factor*(u.hours*3600+u.minutes*60)}function l(){let u={};return u.is_daylight=r.name=="daylight",u.utcOffset=a(r.getFirstProperty("tzoffsetto").getFirstValue()),u.prevUtcOffset=a(r.getFirstProperty("tzoffsetfrom").getFirstValue()),u}if(!r.hasProperty("rrule")&&!r.hasProperty("rdate"))s=l(),s.year=o.year,s.month=o.month,s.day=o.day,s.hour=o.hour,s.minute=o.minute,s.second=o.second,cn.adjust_change(s,0,0,0,-s.prevUtcOffset),i.push(s);else{let u=r.getAllProperties("rdate");for(let d of u){let h=d.getFirstValue();s=l(),s.year=h.year,s.month=h.month,s.day=h.day,h.isDate?(s.hour=o.hour,s.minute=o.minute,s.second=o.second,o.zone!=cn.utcTimezone&&cn.adjust_change(s,0,0,0,-s.prevUtcOffset)):(s.hour=h.hour,s.minute=h.minute,s.second=h.second,h.zone!=cn.utcTimezone&&cn.adjust_change(s,0,0,0,-s.prevUtcOffset)),i.push(s)}let c=r.getFirstProperty("rrule");if(c){c=c.getFirstValue(),s=l(),c.until&&c.until.zone==cn.utcTimezone&&(c.until.adjust(0,0,0,s.prevUtcOffset),c.until.zone=cn.localTimezone);let d=c.iterator(o),h;for(;(h=d.next())&&(s=l(),!(h.year>n||!h));)s.year=h.year,s.month=h.month,s.day=h.day,s.hour=h.hour,s.minute=h.minute,s.second=h.second,s.isDate=h.isDate,cn.adjust_change(s,0,0,0,-s.prevUtcOffset),i.push(s)}}return i}toString(){return this.tznames?this.tznames:this.tzid}},Do=null;const Q4={get count(){return Do===null?0:Object.keys(Do).length},reset:function(){Do=Object.create(null);let e=pn.utcTimezone;Do.Z=e,Do.UTC=e,Do.GMT=e},_hard_reset:function(){Do=null},has:function(e){return Do===null?!1:!!Do[e]},get:function(e){return Do===null&&this.reset(),Do[e]},register:function(e,r){if(Do===null&&this.reset(),typeof e=="string"&&r instanceof pn&&([e,r]=[r,e]),r||(e instanceof pn?r=e.tzid:e.name==="vtimezone"&&(e=new pn(e),r=e.tzid)),!r)throw new TypeError("Neither a timezone nor a name was passed");if(e instanceof pn)Do[r]=e;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(e){return Do===null?null:delete Do[e]}};function J5e(e){let r,n,i,o,s;if(!e||e.name!=="vcalendar")return e;for(r=e.getAllSubcomponents(),n=[],i={},s=0;s<r.length;s++)if(r[s].name==="vtimezone"){let a=r[s].getFirstProperty("tzid").getFirstValue();i[a]=r[s]}else n=n.concat(r[s].getAllProperties());for(o={},s=0;s<n.length;s++){let a=n[s].getParameter("tzid");a&&(o[a]=!0)}for(let[a,l]of Object.entries(i))o[a]||e.removeSubcomponent(l);for(let a of Object.keys(o))!i[a]&&Q4.has(a)&&e.addSubcomponent(Q4.get(a).component);return e}function Hf(e){return typeof e=="number"&&isNaN(e)}function po(e){let r=parseInt(e,10);if(Hf(r))throw new Error('Could not extract integer from "'+e+'"');return r}function n0(e,r){if(!(typeof e>"u"))return e instanceof r?e:new r(e)}function TB(e,r,n){for(;(n=e.indexOf(r,n))!==-1;)if(n>0&&e[n-1]==="\\")n+=1;else return n;return-1}function qc(e,r,n){if(!e.length)return 0;let i=0,o=e.length-1,s,a;for(;i<=o;)if(s=i+Math.floor((o-i)/2),a=n(r,e[s]),a<0)o=s-1;else if(a>0)i=s+1;else break;return a<0?s:a>0?s+1:s}function sd(e,r){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 i=0;i<e.length;i++)n.push(r?sd(e[i],!0):e[i]);return n}else{let n={};for(let[i,o]of Object.entries(e))r?n[i]=sd(o,!0):n[i]=o;return n}}function bB(e){let r="",n=e||"",i=0,o=0;for(;n.length;){let s=n.codePointAt(i);s<128?++o:s<2048?o+=2:s<65536?o+=3:o+=4,o<ki.foldLength+1?i+=s>65535?2:1:(r+=ki.newLineChar+" "+n.slice(0,Math.max(0,i)),n=n.slice(Math.max(0,i)),i=o=0)}return r.slice(ki.newLineChar.length+1)}function Ko(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 Zi(e){return e<0?Math.ceil(e):Math.floor(e)}function fd(e,r){for(let n in e){let i=Object.getOwnPropertyDescriptor(e,n);i&&!Object.getOwnPropertyDescriptor(r,n)&&Object.defineProperty(r,n,i)}return r}var X5e=Object.freeze({__proto__:null,binsearchInsert:qc,clone:sd,extend:fd,foldline:bB,formatClassType:n0,isStrictlyNaN:Hf,pad2:Ko,strictParseInt:po,trunc:Zi,unescapedIndexOf:TB,updateTimezones:J5e});class Ca{static fromString(r){let n={};return n.factor=r[0]==="+"?1:-1,n.hours=po(r.slice(1,3)),n.minutes=po(r.slice(4,6)),new Ca(n)}static fromSeconds(r){let n=new Ca;return n.fromSeconds(r),n}constructor(r){this.fromData(r)}hours=0;minutes=0;factor=1;icaltype="utc-offset";clone(){return Ca.fromSeconds(this.toSeconds())}fromData(r){if(r)for(let[n,i]of Object.entries(r))this[n]=i;this._normalize()}fromSeconds(r){let n=Math.abs(r);return this.factor=r<0?-1:1,this.hours=Zi(n/3600),n-=this.hours*3600,this.minutes=Zi(n/60),this}toSeconds(){return this.factor*(60*this.minutes+3600*this.hours)}compare(r){let n=this.toSeconds(),i=r.toSeconds();return(n>i)-(i>n)}_normalize(){let r=this.toSeconds(),n=this.factor;for(;r<-43200;)r+=97200;for(;r>50400;)r-=97200;this.fromSeconds(r),r==0&&(this.factor=n)}toICALString(){return oi.icalendar.value["utc-offset"].toICAL(this.toString())}toString(){return(this.factor==1?"+":"-")+Ko(this.hours)+":"+Ko(this.minutes)}}class wu extends He{static fromDateAndOrTimeString(r,n){function i(v,w,x){return v?po(v.slice(w,w+x)):null}let o=r.split("T"),s=o[0],a=o[1],l=a?oi.vcard.value.time._splitZone(a):[],u=l[0],c=l[1],d=s?s.length:0,h=c?c.length:0,p=s&&s[0]=="-"&&s[1]=="-",f=c&&c[0]=="-",m={year:p?null:i(s,0,4),month:p&&(d==4||d==7)?i(s,2,2):d==7||d==10?i(s,5,2):null,day:d==5?i(s,3,2):d==7&&p?i(s,5,2):d==10?i(s,8,2):null,hour:f?null:i(c,0,2),minute:f&&h==3?i(c,1,2):h>4?f?i(c,1,2):i(c,3,2):null,second:h==4?i(c,2,2):h==6?i(c,4,2):h==8?i(c,6,2):null};return u=="Z"?u=pn.utcTimezone:u&&u[3]==":"?u=Ca.fromString(u):u=null,new wu(m,u,n)}constructor(r,n,i){super(r,n),this.icaltype=i||"date-and-or-time"}icalclass="vcardtime";icaltype="date-and-or-time";clone(){return new wu(this._time,this.zone,this.icaltype)}_normalize(){return this}utcOffset(){return this.zone instanceof Ca?this.zone.toSeconds():He.prototype.utcOffset.apply(this,arguments)}toICALString(){return oi.vcard.value[this.icaltype].toICAL(this.toString())}toString(){let r=this.year,n=this.month,i=this.day,o=this.hour,s=this.minute,a=this.second,l=r!==null,u=n!==null,c=i!==null,d=o!==null,h=s!==null,p=a!==null,f=(l?Ko(r)+(u||c?"-":""):u||c?"--":"")+(u?Ko(n):"")+(c?"-"+Ko(i):""),m=(d?Ko(o):"-")+(d&&h?":":"")+(h?Ko(s):"")+(!d&&!h?"-":"")+(h&&p?":":"")+(p?Ko(a):""),v;switch(this.zone===pn.utcTimezone?v="Z":this.zone instanceof Ca?v=this.zone.toString():this.zone===pn.localTimezone?v="":this.zone instanceof pn?v=Ca.fromSeconds(this.zone.utcOffset(this)).toString():v="",this.icaltype){case"time":return m+v;case"date-and-or-time":case"date-time":return f+(m=="--"?"":"T"+m+v);case"date":return f}return null}}class hl{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(r){this.fromData(r)}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(r){if(this.rule=n0(r.rule,fo),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=n0(r.dtstart,He),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");if(r.by_data?this.by_data=r.by_data:this.by_data=sd(this.rule.parts,!0),r.occurrence_number&&(this.occurrence_number=r.occurrence_number),this.days=r.days||[],r.last&&(this.last=n0(r.last,He)),this.by_indices=r.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=r.initialized||!1,!this.initialized)try{this.init()}catch(n){if(n instanceof Cg)this.completed=!0;else throw n}}init(){this.initialized=!0,this.last=this.dtstart.clone();let r=this.by_data;if("BYDAY"in r&&this.sort_byday_rules(r.BYDAY),"BYYEARDAY"in r&&("BYMONTH"in r||"BYWEEKNO"in r||"BYMONTHDAY"in r))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in r&&"BYMONTHDAY"in r)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if(this.rule.freq=="MONTHLY"&&("BYYEARDAY"in r||"BYWEEKNO"in r))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if(this.rule.freq=="WEEKLY"&&("BYYEARDAY"in r||"BYMONTHDAY"in r))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if(this.rule.freq!="YEARLY"&&"BYYEARDAY"in r)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 r){let[,n]=this.ruleDayOfWeek(r.BYDAY[0],this.rule.wkst),i=n-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<n&&i>=0||i<0)&&(this.last.day+=i)}else{let n=fo.numericDayToIcalDay(this.dtstart.dayOfWeek());r.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 Cg;if(!this._nextByYearDay()&&!this.next_year()&&!this.next_year()&&!this.next_year())throw new Cg}if(this.rule.freq=="MONTHLY"){if(this.has_by_data("BYDAY")){let n=null,i=this.last.clone(),o=He.daysInMonth(this.last.month,this.last.year);for(let s of this.by_data.BYDAY){this.last=i.clone();let[a,l]=this.ruleDayOfWeek(s),u=this.last.nthWeekDay(l,a);if(a>=6||a<=-6)throw new Error("Malformed values in BYDAY part");if(u>o||u<=0){if(n&&n.month==i.month)continue;for(;u>o||u<=0;)this.increment_month(),o=He.daysInMonth(this.last.month,this.last.year),u=this.last.nthWeekDay(l,a)}this.last.day=u,(!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>o||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(i=>i>=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 Cg}}}next(r=!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 i,o=0;do switch(i=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":if(i=this.next_month(),i)o=0;else if(++o==336)return this.completed=!0,null;break;case"YEARLY":if(i=this.next_year(),i)o=0;else if(++o==28)return this.completed=!0,null;break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!i);if(this.last.compare(n)==0){if(r)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(r){return this.increment_generic(r,"second",60,"minute")}next_minute(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")}increment_minute(r){return this.increment_generic(r,"minute",60,"hour")}next_hour(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")}increment_hour(r){this.increment_generic(r,"hour",24,"monthday")}next_day(){let r=this.rule.freq=="DAILY";return this.next_hour()==0||(r?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0}next_week(){let r=0;if(this.next_weekday_by_week()==0)return r;if(this.has_by_data("BYWEEKNO")){this.by_indices.BYWEEKNO++,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,r=1),this.last.month=1,this.last.day=1;let n=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*n,r&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return r}normalizeByMonthDayRules(r,n,i){let o=He.daysInMonth(n,r),s=[],a=0,l=i.length,u;for(;a<l;a++){if(u=parseInt(i[a],10),isNaN(u))throw new Error("Invalid BYMONTHDAY value");if(!(Math.abs(u)>o)){if(u<0)u=o+(u+1);else if(u===0)continue;s.indexOf(u)===-1&&s.push(u)}}return s.sort(function(c,d){return c-d})}_byDayAndMonthDay(r){let n,i=this.by_data.BYDAY,o,s=0,a,l=i.length,u=0,c,d=this,h=this.last.day;function p(){for(c=He.daysInMonth(d.last.month,d.last.year),n=d.normalizeByMonthDayRules(d.last.year,d.last.month,d.by_data.BYMONTHDAY),a=n.length;n[s]<=h&&!(r&&n[s]==h)&&s<a-1;)s++}function f(){h=0,d.increment_month(),s=0,p()}p(),r&&(h-=1);let m=48;for(;!u&&m;){if(m--,o=h+1,o>c){f();continue}let v=n[s++];if(v>=o)h=v;else{f();continue}for(let w=0;w<l;w++){let x=this.ruleDayOfWeek(i[w]),k=x[0],R=x[1];if(this.last.day=h,this.last.isNthWeekDay(R,k)){u=1;break}}if(!u&&s===a){f();continue}}if(m<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return u}next_month(){let r=1;if(this.next_hour()==0)return r;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))r=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){let n=He.daysInMonth(this.last.month,this.last.year),i=0,o=0;if(this.has_by_data("BYSETPOS")){let a=this.last.day;for(let l=1;l<=n;l++)this.last.day=l,this.is_day_in_byday(this.last)&&(o++,l<=a&&i++);this.last.day=a}r=0;let s;for(s=this.last.day+1;s<=n;s++)if(this.last.day=s,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++i)||this.check_set_position(i-o-1))){r=1;break}s>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))&&(r=1):r=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),i=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];i<0&&(i=n+i+1),i>n?(this.last.day=1,r=this.is_day_in_byday(this.last)):this.last.day=i}else{this.increment_month();let n=He.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>n?r=0:this.last.day=this.by_data.BYMONTHDAY[0]}return r}next_weekday_by_week(){let r=0;if(this.next_hour()==0)return r;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,r=1);let i=this.by_data.BYDAY[this.by_indices.BYDAY],o=this.ruleDayOfWeek(i)[1];o-=this.rule.wkst,o<0&&(o+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;let s=n.startDoyWeek(this.rule.wkst);if(o+s<1&&!r)continue;let a=He.fromDayOfYear(s+o,this.last.year);return this.last.year=a.year,this.last.month=a.month,this.last.day=a.day,r}}next_year(){return this.next_hour()==0||(this.days.length==0||++this.days_index==this.days.length)&&(this.days_index=0,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),this.days.length==0)?0:this._nextByYearDay()}_nextByYearDay(){let r=this.days[this.days_index],n=this.last.year;if(Math.abs(r)==366&&!He.isLeapYear(this.last.year))return 0;r<1&&(r+=1,n+=1);let i=He.fromDayOfYear(r,n);return this.last.day=i.day,this.last.month=i.month,1}ruleDayOfWeek(r,n){let i=r.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(i){let o=parseInt(i[1]||0,10);return r=fo.icalDayToNumericDay(i[2],n),[o,r]}else return[0,0]}next_generic(r,n,i,o,s){let a=r in this.by_data,l=this.rule.freq==n,u=0;if(s&&this[s]()==0)return u;if(a){this.by_indices[r]++;let c=this.by_data[r];this.by_indices[r]==c.length&&(this.by_indices[r]=0,u=1),this.last[i]=c[this.by_indices[r]]}else l&&this["increment_"+i](this.rule.interval);return a&&u&&l&&this["increment_"+o](1),u}increment_monthday(r){for(let n=0;n<r;n++){let i=He.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>i&&(this.last.day-=i,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 r=Zi(this.last.month/12);this.last.month%=12,this.last.month++,r!=0&&this.increment_year(r)}this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY))}increment_year(r){this.last.day=1,this.last.year+=r}increment_generic(r,n,i,o){this.last[n]+=r;let s=Zi(this.last[n]/i);this.last[n]%=i,s!=0&&this["increment_"+o](s)}has_by_data(r){return r in this.rule.parts}expand_year_days(r){let n=new He;this.days=[];let i={},o=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(let l of o)l in this.rule.parts&&(i[l]=this.rule.parts[l]);if("BYMONTH"in i&&"BYWEEKNO"in i){let l=1,u={};n.year=r,n.isDate=!0;for(let c=0;c<this.by_data.BYMONTH.length;c++){let d=this.by_data.BYMONTH[c];n.month=d,n.day=1;let h=n.weekNumber(this.rule.wkst);n.day=He.daysInMonth(d,r);let p=n.weekNumber(this.rule.wkst);for(c=h;c<p;c++)u[c]=1}for(let c=0;c<this.by_data.BYWEEKNO.length&&l;c++)this.by_data.BYWEEKNO[c]<52?l&=u[c]:l=0;l?delete i.BYMONTH:delete i.BYWEEKNO}let s=Object.keys(i).length;if(s==0){let l=this.dtstart.clone();l.year=this.last.year,this.days.push(l.dayOfYear())}else if(s==1&&"BYMONTH"in i)for(let l of this.by_data.BYMONTH){let u=this.dtstart.clone();u.year=r,u.month=l,u.isDate=!0,this.days.push(u.dayOfYear())}else if(s==1&&"BYMONTHDAY"in i)for(let l of this.by_data.BYMONTHDAY){let u=this.dtstart.clone();if(l<0){let c=He.daysInMonth(u.month,r);l=l+c+1}u.day=l,u.year=r,u.isDate=!0,this.days.push(u.dayOfYear())}else if(s==2&&"BYMONTHDAY"in i&&"BYMONTH"in i)for(let l of this.by_data.BYMONTH){let u=He.daysInMonth(l,r);for(let c of this.by_data.BYMONTHDAY)c<0&&(c=c+u+1),n.day=c,n.month=l,n.year=r,n.isDate=!0,this.days.push(n.dayOfYear())}else if(!(s==1&&"BYWEEKNO"in i)&&!(s==2&&"BYWEEKNO"in i&&"BYMONTHDAY"in i)){if(s==1&&"BYDAY"in i)this.days=this.days.concat(this.expand_by_day(r));else if(s==2&&"BYDAY"in i&&"BYMONTH"in i){for(let l of this.by_data.BYMONTH){let u=He.daysInMonth(l,r);n.year=r,n.month=l,n.day=1,n.isDate=!0;let c=n.dayOfWeek(),d=n.dayOfYear()-1;n.day=u;let h=n.dayOfWeek();if(this.has_by_data("BYSETPOS")){let p=[];for(let f=1;f<=u;f++)n.day=f,this.is_day_in_byday(n)&&p.push(f);for(let f=0;f<p.length;f++)(this.check_set_position(f+1)||this.check_set_position(f-p.length))&&this.days.push(d+p[f])}else for(let p of this.by_data.BYDAY){let f=this.ruleDayOfWeek(p),m=f[0],v=f[1],w,x=(v+7-c)%7+1,k=u-(h+7-v)%7;if(m==0)for(let R=x;R<=u;R+=7)this.days.push(d+R);else m>0?(w=x+(m-1)*7,w<=u&&this.days.push(d+w)):(w=k+(m+1)*7,w>0&&this.days.push(d+w))}}this.days.sort(function(l,u){return l-u})}else if(s==2&&"BYDAY"in i&&"BYMONTHDAY"in i){let l=this.expand_by_day(r);for(let u of l){let c=He.fromDayOfYear(u,r);this.by_data.BYMONTHDAY.indexOf(c.day)>=0&&this.days.push(u)}}else if(s==3&&"BYDAY"in i&&"BYMONTHDAY"in i&&"BYMONTH"in i){let l=this.expand_by_day(r);for(let u of l){let c=He.fromDayOfYear(u,r);this.by_data.BYMONTH.indexOf(c.month)>=0&&this.by_data.BYMONTHDAY.indexOf(c.day)>=0&&this.days.push(u)}}else if(s==2&&"BYDAY"in i&&"BYWEEKNO"in i){let l=this.expand_by_day(r);for(let u of l){let c=He.fromDayOfYear(u,r).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(c)&&this.days.push(u)}}else if(!(s==3&&"BYDAY"in i&&"BYWEEKNO"in i&&"BYMONTHDAY"in i))if(s==1&&"BYYEARDAY"in i)this.days=this.days.concat(this.by_data.BYYEARDAY);else if(s==2&&"BYYEARDAY"in i&&"BYDAY"in i){let l=He.isLeapYear(r)?366:365,u=new Set(this.expand_by_day(r));for(let c of this.by_data.BYYEARDAY)c<0&&(c+=l+1),u.has(c)&&this.days.push(c)}else this.days=[]}let a=He.isLeapYear(r)?366:365;return this.days.sort((l,u)=>(l<0&&(l+=a+1),u<0&&(u+=a+1),l-u)),0}expand_by_day(r){let n=[],i=this.last.clone();i.year=r,i.month=1,i.day=1,i.isDate=!0;let o=i.dayOfWeek();i.month=12,i.day=31,i.isDate=!0;let s=i.dayOfWeek(),a=i.dayOfYear();for(let l of this.by_data.BYDAY){let u=this.ruleDayOfWeek(l),c=u[0],d=u[1];if(c==0){let h=(d+7-o)%7+1;for(let p=h;p<=a;p+=7)n.push(p)}else if(c>0){let h;d>=o?h=d-o+1:h=d-o+8,n.push(h+(c-1)*7)}else{let h;c=-c,d<=s?h=a-s+d:h=a-s+d-7,n.push(h-(c-1)*7)}}return n}is_day_in_byday(r){if(this.by_data.BYDAY)for(let n of this.by_data.BYDAY){let i=this.ruleDayOfWeek(n),o=i[0],s=i[1],a=r.dayOfWeek();if(o==0&&s==a||r.nthWeekDay(s,o)==r.day)return 1}return 0}check_set_position(r){return this.has_by_data("BYSETPOS")?this.by_data.BYSETPOS.indexOf(r)!==-1:!1}sort_byday_rules(r){for(let n=0;n<r.length;n++)for(let i=0;i<n;i++){let o=this.ruleDayOfWeek(r[i],this.rule.wkst)[1],s=this.ruleDayOfWeek(r[n],this.rule.wkst)[1];if(o>s){let a=r[n];r[n]=r[i],r[i]=a}}}check_contract_restriction(r,n){let i=hl._indexMap[r],o=hl._expandMap[this.rule.freq][i],s=!1;if(r in this.by_data&&o==hl.CONTRACT){let a=this.by_data[r];for(let l of a)if(l==n){s=!0;break}}else s=!0;return s}check_contracting_rules(){let r=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),i=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",fo.numericDayToIcalDay(r))&&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",i)}setup_defaults(r,n,i){let o=hl._indexMap[r];return hl._expandMap[this.rule.freq][o]!=hl.CONTRACT&&(r in this.by_data||(this.by_data[r]=[i]),this.rule.freq!=n)?this.by_data[r][0]:i}toJSON(){let r=Object.create(null);return r.initialized=this.initialized,r.rule=this.rule.toJSON(),r.dtstart=this.dtstart.toJSON(),r.by_data=this.by_data,r.days=this.days,r.last=this.last.toJSON(),r.by_indices=this.by_indices,r.occurrence_number=this.occurrence_number,r}}class Cg extends Error{constructor(){super("Recurrence rule has no valid occurrences")}}const e6e=/^(SU|MO|TU|WE|TH|FR|SA)$/,t6e=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,vB={SU:He.SUNDAY,MO:He.MONDAY,TU:He.TUESDAY,WE:He.WEDNESDAY,TH:He.THURSDAY,FR:He.FRIDAY,SA:He.SATURDAY},r6e=Object.fromEntries(Object.entries(vB).map(e=>e.reverse())),DD=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class fo{static fromString(r){let n=this._stringToData(r,!1);return new fo(n)}static fromData(r){return new fo(r)}static _stringToData(r,n){let i=Object.create(null),o=r.split(";"),s=o.length;for(let a=0;a<s;a++){let l=o[a].split("="),u=l[0].toUpperCase(),c=l[0].toLowerCase(),d=n?c:u,h=l[1];if(u in cy){let p=h.split(","),f=new Set;for(let m of p)f.add(cy[u](m));p=[...f],i[d]=p.length==1?p[0]:p}else u in uy?uy[u](h,i,n):i[c]=h}return i}static icalDayToNumericDay(r,n){let i=n||He.SUNDAY;return(vB[r]-i+7)%7+1}static numericDayToIcalDay(r,n){let i=n||He.SUNDAY,o=r+i-He.SUNDAY;return o>7&&(o-=7),r6e[o]}constructor(r){this.wrappedJSObject=this,this.parts={},r&&typeof r=="object"&&this.fromData(r)}parts=null;interval=1;wkst=He.MONDAY;until=null;count=null;freq=null;icalclass="icalrecur";icaltype="recur";iterator(r){return new hl({rule:this,dtstart:r})}clone(){return new fo(this.toJSON())}isFinite(){return!!(this.count||this.until)}isByCount(){return!!(this.count&&!this.until)}addComponent(r,n){let i=r.toUpperCase();i in this.parts?this.parts[i].push(n):this.parts[i]=[n]}setComponent(r,n){this.parts[r.toUpperCase()]=n.slice()}getComponent(r){let n=r.toUpperCase();return n in this.parts?this.parts[n].slice():[]}getNextOccurrence(r,n){let i=this.iterator(r),o;do o=i.next();while(o&&o.compare(n)<=0);return o&&n.zone&&(o.zone=n.zone),o}fromData(r){for(let n in r){let i=n.toUpperCase();i in cy?Array.isArray(r[n])?this.parts[i]=r[n]:this.parts[i]=[r[n]]:this[n]=r[n]}this.interval&&typeof this.interval!="number"&&uy.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=fo.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof He)&&(this.until=He.fromString(this.until))}toJSON(){let r=Object.create(null);r.freq=this.freq,this.count&&(r.count=this.count),this.interval>1&&(r.interval=this.interval);for(let[n,i]of Object.entries(this.parts))Array.isArray(i)&&i.length==1?r[n.toLowerCase()]=i[0]:r[n.toLowerCase()]=sd(i);return this.until&&(r.until=this.until.toString()),"wkst"in this&&this.wkst!==He.DEFAULT_WEEK_START&&(r.wkst=fo.numericDayToIcalDay(this.wkst)),r}toString(){let r="FREQ="+this.freq;this.count&&(r+=";COUNT="+this.count),this.interval>1&&(r+=";INTERVAL="+this.interval);for(let[n,i]of Object.entries(this.parts))r+=";"+n+"="+i;return this.until&&(r+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==He.DEFAULT_WEEK_START&&(r+=";WKST="+fo.numericDayToIcalDay(this.wkst)),r}}function W0(e,r,n,i){let o=i;if(i[0]==="+"&&(o=i.slice(1)),o=po(o),r!==void 0&&i<r)throw new Error(e+': invalid value "'+i+'" must be > '+r);if(n!==void 0&&i>n)throw new Error(e+': invalid value "'+i+'" must be < '+r);return o}const uy={FREQ:function(e,r,n){if(DD.indexOf(e)!==-1)r.freq=e;else throw new Error('invalid frequency "'+e+'" expected: "'+DD.join(", ")+'"')},COUNT:function(e,r,n){r.count=po(e)},INTERVAL:function(e,r,n){r.interval=po(e),r.interval<1&&(r.interval=1)},UNTIL:function(e,r,n){e.length>10?r.until=oi.icalendar.value["date-time"].fromICAL(e):r.until=oi.icalendar.value.date.fromICAL(e),n||(r.until=He.fromString(r.until))},WKST:function(e,r,n){if(e6e.test(e))r.wkst=fo.icalDayToNumericDay(e);else throw new Error('invalid WKST value "'+e+'"')}},cy={BYSECOND:W0.bind(void 0,"BYSECOND",0,60),BYMINUTE:W0.bind(void 0,"BYMINUTE",0,59),BYHOUR:W0.bind(void 0,"BYHOUR",0,23),BYDAY:function(e){if(t6e.test(e))return e;throw new Error('invalid BYDAY value "'+e+'"')},BYMONTHDAY:W0.bind(void 0,"BYMONTHDAY",-31,31),BYYEARDAY:W0.bind(void 0,"BYYEARDAY",-366,366),BYWEEKNO:W0.bind(void 0,"BYWEEKNO",-53,53),BYMONTH:W0.bind(void 0,"BYMONTH",1,12),BYSETPOS:W0.bind(void 0,"BYSETPOS",-366,366)},n6e=/\\\\|\\;|\\,|\\[Nn]/g,i6e=/\\|;|,|\n/g,xD=/\\\\|\\,|\\[Nn]/g,kD=/\\|,|\n/g;function yb(e,r){return{matches:/.*/,fromICAL:function(n,i){return s6e(n,e,i)},toICAL:function(n,i){let o=r;return i&&(o=new RegExp(o.source+"|"+i,o.flags)),n.replace(o,function(s){switch(s){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case` `:return"\\n";default:return s}})}}}const Hr={defaultType:"text"},Pf={defaultType:"text",multiValue:","},J4={defaultType:"text",structuredValue:";"},_g={defaultType:"integer"},Ng={defaultType:"date-time",allowedTypes:["date-time","date"]},Fg={defaultType:"date-time"},Vo={defaultType:"uri"},CD={defaultType:"utc-offset"},_D={defaultType:"recur"},ND={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function o6e(e){switch(e){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return` `;default:return e}}function s6e(e,r,n){return e.indexOf("\\")===-1?e:(n&&(r=new RegExp(r.source+"|\\\\"+n,r.flags)),e.replace(r,o6e))}let cA={categories:Pf,url:Vo,version:Hr,uid:Hr},dA={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 r=parseFloat(e);return Hf(r)?0:r},toICAL:function(e){return String(e)}},integer:{fromICAL:function(e){let r=parseInt(e);return Hf(r)?0:r},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 Ca.fromString(e)},undecorate:function(e){return e.toString()}}},a6e={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 _o=fd(dA,{text:yb(n6e,i6e),uri:{},binary:{decorate:function(e){return c5.fromString(e)},undecorate:function(e){return e.toString()}},"cal-address":{},date:{decorate:function(e,r){return He.fromDateString(e,r)},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 r=e.length;return r==10?e.slice(0,4)+e.slice(5,7)+e.slice(8,10):r>=19?_o["date-time"].toICAL(e):e}},"date-time":{fromICAL:function(e){{let r=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"&&(r+="Z"),r}},toICAL:function(e){if(e.length>=19){let r=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"&&(r+="Z"),r}else return e},decorate:function(e,r){return He.fromDateTimeString(e,r)},undecorate:function(e){return e.toString()}},duration:{decorate:function(e){return mo.fromString(e)},undecorate:function(e){return e.toString()}},period:{fromICAL:function(e){let r=e.split("/");return r[0]=_o["date-time"].fromICAL(r[0]),mo.isValueString(r[1])||(r[1]=_o["date-time"].fromICAL(r[1])),r},toICAL:function(e){return e=e.slice(),e[0]=_o["date-time"].toICAL(e[0]),mo.isValueString(e[1])||(e[1]=_o["date-time"].toICAL(e[1])),e.join("/")},decorate:function(e,r){return r0.fromJSON(e,r,!1)},undecorate:function(e){return e.toJSON()}},recur:{fromICAL:function(e){return fo._stringToData(e,!0)},toICAL:function(e){let r="";for(let[n,i]of Object.entries(e))n=="until"?i.length>10?i=_o["date-time"].toICAL(i):i=_o.date.toICAL(i):n=="wkst"?typeof i=="number"&&(i=fo.numericDayToIcalDay(i)):Array.isArray(i)&&(i=i.join(",")),r+=n.toUpperCase()+"="+i+";";return r.slice(0,Math.max(0,r.length-1))},decorate:function(e){return fo.fromData(e)},undecorate:function(e){return e.toJSON()}},time:{fromICAL:function(e){if(e.length<6)return e;let r=e.slice(0,2)+":"+e.slice(2,4)+":"+e.slice(4,6);return e[6]==="Z"&&(r+="Z"),r},toICAL:function(e){if(e.length<8)return e;let r=e.slice(0,2)+e.slice(3,5)+e.slice(6,8);return e[8]==="Z"&&(r+="Z"),r}}});let l6e=fd(cA,{action:Hr,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:Hr,class:Hr,comment:Hr,completed:Fg,contact:Hr,created:Fg,description:Hr,dtend:Ng,dtstamp:Fg,dtstart:Ng,due:Ng,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:_D,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":Fg,location:Hr,method:Hr,organizer:{defaultType:"cal-address"},"percent-complete":_g,priority:_g,prodid:Hr,"related-to":Hr,repeat:_g,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":Ng,resources:Pf,"request-status":J4,rrule:_D,sequence:_g,status:Hr,summary:Hr,transp:Hr,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:CD,tzoffsetto:CD,tzurl:Vo,tzid:Hr,tzname:Hr});const Ss=fd(dA,{text:yb(xD,kD),uri:yb(xD,kD),date:{decorate:function(e){return wu.fromDateAndOrTimeString(e,"date")},undecorate:function(e){return e.toString()},fromICAL:function(e){return e.length==8?_o.date.fromICAL(e):e[0]=="-"&&e.length==6?e.slice(0,4)+"-"+e.slice(4):e},toICAL:function(e){return e.length==10?_o.date.toICAL(e):e[0]=="-"&&e.length==7?e.slice(0,4)+e.slice(5):e}},time:{decorate:function(e){return wu.fromDateAndOrTimeString("T"+e,"time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let r=Ss.time._splitZone(e,!0),n=r[0],i=r[1];return i.length==6?i=i.slice(0,2)+":"+i.slice(2,4)+":"+i.slice(4,6):i.length==4&&i[0]!="-"?i=i.slice(0,2)+":"+i.slice(2,4):i.length==5&&(i=i.slice(0,3)+":"+i.slice(3,5)),n.length==5&&(n[0]=="-"||n[0]=="+")&&(n=n.slice(0,3)+":"+n.slice(3)),i+n},toICAL:function(e){let r=Ss.time._splitZone(e),n=r[0],i=r[1];return i.length==8?i=i.slice(0,2)+i.slice(3,5)+i.slice(6,8):i.length==5&&i[0]!="-"?i=i.slice(0,2)+i.slice(3,5):i.length==6&&(i=i.slice(0,3)+i.slice(4,6)),n.length==6&&(n[0]=="-"||n[0]=="+")&&(n=n.slice(0,3)+n.slice(4)),i+n},_splitZone:function(e,r){let n=e.length-1,i=e.length-(r?5:6),o=e[i],s,a;return e[n]=="Z"?(s=e[n],a=e.slice(0,Math.max(0,n))):e.length>6&&(o=="-"||o=="+")?(s=e.slice(i),a=e.slice(0,Math.max(0,i))):(s="",a=e),[s,a]}},"date-time":{decorate:function(e){return wu.fromDateAndOrTimeString(e,"date-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){return Ss["date-and-or-time"].fromICAL(e)},toICAL:function(e){return Ss["date-and-or-time"].toICAL(e)}},"date-and-or-time":{decorate:function(e){return wu.fromDateAndOrTimeString(e,"date-and-or-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let r=e.split("T");return(r[0]?Ss.date.fromICAL(r[0]):"")+(r[1]?"T"+Ss.time.fromICAL(r[1]):"")},toICAL:function(e){let r=e.split("T");return Ss.date.toICAL(r[0])+(r[1]?"T"+Ss.time.toICAL(r[1]):"")}},timestamp:_o["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/},"phone-number":{fromICAL:function(e){return Array.from(e).filter(function(r){return r==="\\"?void 0:r}).join("")},toICAL:function(e){return Array.from(e).map(function(r){return r===","||r===";"?"\\"+r:r}).join("")}}});let u6e={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}},c6e=fd(cA,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:ND,bday:ND,caladruri:Vo,caluri:Vo,clientpidmap:J4,email:Hr,fburl:Vo,fn:Hr,gender:J4,geo:Vo,impp:Vo,key:Vo,kind:Hr,lang:{defaultType:"language-tag"},logo:Vo,member:Vo,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Pf,note:Hr,org:{defaultType:"text",structuredValue:";"},photo:Vo,related:Vo,rev:{defaultType:"timestamp"},role:Hr,sound:Vo,source:Vo,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:Hr,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:Hr}),d6e=fd(dA,{binary:_o.binary,date:Ss.date,"date-time":Ss["date-time"],"phone-number":Ss["phone-number"],uri:_o.uri,text:Ss.text,time:_o.time,vcard:_o.text,"utc-offset":{toICAL:function(e){return e.slice(0,7)},fromICAL:function(e){return e.slice(0,7)},decorate:function(e){return Ca.fromString(e)},undecorate:function(e){return e.toString()}}}),h6e={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}},p6e=fd(cA,{fn:Hr,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Pf,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:Hr,tel:{defaultType:"phone-number"},email:Hr,mailer:Hr,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:Hr,role:Hr,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:J4,note:Pf,prodid:Hr,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return e.indexOf("T")===-1?"date":"date-time"}},"sort-string":Hr,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:Hr,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),jl={name:"ical",value:_o,param:a6e,property:l6e,propertyGroups:!1},FD={name:"vcard4",value:Ss,param:u6e,property:c6e,propertyGroups:!0},OD={name:"vcard3",value:d6e,param:h6e,property:p6e,propertyGroups:!0};const oi={strict:!0,defaultSet:jl,defaultType:"unknown",components:{vcard:FD,vcard3:OD,vevent:jl,vtodo:jl,vjournal:jl,valarm:jl,vtimezone:jl,daylight:jl,standard:jl},icalendar:jl,vcard:FD,vcard3:OD,getDesignSet:function(e){return e&&e in oi.components?oi.components[e]:oi.defaultSet}},A2=`\r `,MD="unknown",f6e={'"':"^'","\n":"^n","^":"^^"};function Kn(e){typeof e[0]=="string"&&(e=[e]);let r=0,n=e.length,i="";for(;r<n;r++)i+=Kn.component(e[r])+A2;return i}Kn.component=function(e,r){let n=e[0].toUpperCase(),i="BEGIN:"+n+A2,o=e[1],s=0,a=o.length,l=e[0];for(l==="vcard"&&e[1].length>0&&!(e[1][0][0]==="version"&&e[1][0][3]==="4.0")&&(l="vcard3"),r=r||oi.getDesignSet(l);s<a;s++)i+=Kn.property(o[s],r)+A2;let u=e[2]||[],c=0,d=u.length;for(;c<d;c++)i+=Kn.component(u[c],r)+A2;return i+="END:"+n,i},Kn.property=function(e,r,n){let i=e[0].toUpperCase(),o=e[0],s=e[1];r||(r=oi.defaultSet);let a=s.group,l;r.propertyGroups&&a?l=a.toUpperCase()+"."+i:l=i;for(let[f,m]of Object.entries(s)){if(r.propertyGroups&&f=="group")continue;let v=r.param[f],w=v&&v.multiValue;w&&Array.isArray(m)?(m=m.map(function(x){return x=Kn._rfc6868Unescape(x),x=Kn.paramPropertyValue(x,v.multiValueSeparateDQuote),x}),m=Kn.multiValue(m,w,"unknown",null,r)):(m=Kn._rfc6868Unescape(m),m=Kn.paramPropertyValue(m)),l+=";"+f.toUpperCase()+"="+m}if(e.length===3)return l+":";let u=e[2],c,d=!1,h=!1,p=!1;return o in r.property?(c=r.property[o],"multiValue"in c&&(d=c.multiValue),"structuredValue"in c&&Array.isArray(e[3])&&(h=c.structuredValue),"defaultType"in c?u===c.defaultType&&(p=!0):u===MD&&(p=!0)):u===MD&&(p=!0),p||(l+=";VALUE="+u.toUpperCase()),l+=":",d&&h?l+=Kn.multiValue(e[3],h,u,d,r,h):d?l+=Kn.multiValue(e.slice(3),d,u,null,r,!1):h?l+=Kn.multiValue(e[3],h,u,null,r,h):l+=Kn.value(e[3],u,r,!1),n?l:bB(l)},Kn.paramPropertyValue=function(e,r){return!r&&e.indexOf(",")===-1&&e.indexOf(":")===-1&&e.indexOf(";")===-1?e:'"'+e+'"'},Kn.multiValue=function(e,r,n,i,o,s){let a="",l=e.length,u=0;for(;u<l;u++)i&&Array.isArray(e[u])?a+=Kn.multiValue(e[u],i,n,null,o,s):a+=Kn.value(e[u],n,o,s),u!==l-1&&(a+=r);return a},Kn.value=function(e,r,n,i){return r in n.value&&"toICAL"in n.value[r]?n.value[r].toICAL(e,i):e},Kn._rfc6868Unescape=function(e){return e.replace(/[\n^"]/g,function(r){return f6e[r]})};const RD=0,Og=1,Mg=2,K0=3;class Wc{static fromString(r,n){return new Wc(qr.property(r,n))}constructor(r,n){this._parent=n||null,typeof r=="string"?(this.jCal=[r,{},oi.defaultType],this.jCal[Mg]=this.getDefaultType()):this.jCal=r,this._updateType()}get type(){return this.jCal[Mg]}get name(){return this.jCal[RD]}get parent(){return this._parent}set parent(r){let n=!this._parent||r&&r._designSet!=this._parent._designSet;this._parent=r,this.type==oi.defaultType&&n&&(this.jCal[Mg]=this.getDefaultType(),this._updateType())}get _designSet(){return this.parent?this.parent._designSet:oi.defaultSet}_updateType(){let r=this._designSet;this.type in r.value&&("decorate"in r.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in r.property&&(this.isMultiValue="multiValue"in r.property[this.name],this.isStructuredValue="structuredValue"in r.property[this.name]))}_hydrateValue(r){return this._values&&this._values[r]?this._values[r]:this.jCal.length<=K0+r?null:this.isDecorated?(this._values||(this._values=[]),this._values[r]=this._decorate(this.jCal[K0+r])):this.jCal[K0+r]}_decorate(r){return this._designSet.value[this.type].decorate(r,this)}_undecorate(r){return this._designSet.value[this.type].undecorate(r,this)}_setDecoratedValue(r,n){this._values||(this._values=[]),typeof r=="object"&&"icaltype"in r?(this.jCal[K0+n]=this._undecorate(r),this._values[n]=r):(this.jCal[K0+n]=r,this._values[n]=this._decorate(r))}getParameter(r){if(r in this.jCal[Og])return this.jCal[Og][r]}getFirstParameter(r){let n=this.getParameter(r);return Array.isArray(n)?n[0]:n}setParameter(r,n){let i=r.toLowerCase();typeof n=="string"&&i in this._designSet.param&&"multiValue"in this._designSet.param[i]&&(n=[n]),this.jCal[Og][r]=n}removeParameter(r){delete this.jCal[Og][r]}getDefaultType(){let r=this.jCal[RD],n=this._designSet;if(r in n.property){let i=n.property[r];if("defaultType"in i)return i.defaultType}return oi.defaultType}resetType(r){this.removeAllValues(),this.jCal[Mg]=r,this._updateType()}getFirstValue(){return this._hydrateValue(0)}getValues(){let r=this.jCal.length-K0;if(r<1)return[];let n=0,i=[];for(;n<r;n++)i[n]=this._hydrateValue(n);return i}removeAllValues(){this._values&&(this._values.length=0),this.jCal.length=3}setValues(r){if(!this.isMultiValue)throw new Error(this.name+`: does not not support mulitValue. override isMultiValue`);let n=r.length,i=0;if(this.removeAllValues(),n>0&&typeof r[0]=="object"&&"icaltype"in r[0]&&this.resetType(r[0].icaltype),this.isDecorated)for(;i<n;i++)this._setDecoratedValue(r[i],i);else for(;i<n;i++)this.jCal[K0+i]=r[i]}setValue(r){this.removeAllValues(),typeof r=="object"&&"icaltype"in r&&this.resetType(r.icaltype),this.isDecorated?this._setDecoratedValue(r,0):this.jCal[K0]=r}toJSON(){return this.jCal}toICALString(){return Kn.property(this.jCal,this._designSet,!0)}}const Q0=0,tl=1,J0=2,m6e=0,g6e=3;class Ns{static fromString(r){return new Ns(qr.component(r))}constructor(r,n){typeof r=="string"&&(r=[r,[],[]]),this.jCal=r,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[Q0]}get _designSet(){let r=this.parent&&this.parent._designSet;if(!r&&this.name=="vcard"){let n=this.jCal[tl]?.[0];if(n&&n[m6e]=="version"&&n[g6e]=="3.0")return oi.getDesignSet("vcard3")}return r||oi.getDesignSet(this.name)}_hydrateComponent(r){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[r])return this._components[r];let n=new Ns(this.jCal[J0][r],this);return this._hydratedComponentCount++,this._components[r]=n}_hydrateProperty(r){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[r])return this._properties[r];let n=new Wc(this.jCal[tl][r],this);return this._hydratedPropertyCount++,this._properties[r]=n}getFirstSubcomponent(r){if(r){let n=0,i=this.jCal[J0],o=i.length;for(;n<o;n++)if(i[n][Q0]===r)return this._hydrateComponent(n)}else if(this.jCal[J0].length)return this._hydrateComponent(0);return null}getAllSubcomponents(r){let n=this.jCal[J0].length,i=0;if(r){let o=this.jCal[J0],s=[];for(;i<n;i++)r===o[i][Q0]&&s.push(this._hydrateComponent(i));return s}else{if(!this._components||this._hydratedComponentCount!==n)for(;i<n;i++)this._hydrateComponent(i);return this._components||[]}}hasProperty(r){let n=this.jCal[tl],i=n.length,o=0;for(;o<i;o++)if(n[o][Q0]===r)return!0;return!1}getFirstProperty(r){if(r){let n=0,i=this.jCal[tl],o=i.length;for(;n<o;n++)if(i[n][Q0]===r)return this._hydrateProperty(n)}else if(this.jCal[tl].length)return this._hydrateProperty(0);return null}getFirstPropertyValue(r){let n=this.getFirstProperty(r);return n?n.getFirstValue():null}getAllProperties(r){let n=this.jCal[tl].length,i=0;if(r){let o=this.jCal[tl],s=[];for(;i<n;i++)r===o[i][Q0]&&s.push(this._hydrateProperty(i));return s}else{if(!this._properties||this._hydratedPropertyCount!==n)for(;i<n;i++)this._hydrateProperty(i);return this._properties||[]}}_removeObjectByIndex(r,n,i){if(n=n||[],n[i]){let o=n[i];"parent"in o&&(o.parent=null)}n.splice(i,1),this.jCal[r].splice(i,1)}_removeObject(r,n,i){let o=0,s=this.jCal[r],a=s.length,l=this[n];if(typeof i=="string"){for(;o<a;o++)if(s[o][Q0]===i)return this._removeObjectByIndex(r,l,o),!0}else if(l){for(;o<a;o++)if(l[o]&&l[o]===i)return this._removeObjectByIndex(r,l,o),!0}return!1}_removeAllObjects(r,n,i){let o=this[n],s=this.jCal[r],a=s.length-1;for(;a>=0;a--)(!i||s[a][Q0]===i)&&this._removeObjectByIndex(r,o,a)}addSubcomponent(r){this._components||(this._components=[],this._hydratedComponentCount=0),r.parent&&r.parent.removeSubcomponent(r);let n=this.jCal[J0].push(r.jCal);return this._components[n-1]=r,this._hydratedComponentCount++,r.parent=this,r}removeSubcomponent(r){let n=this._removeObject(J0,"_components",r);return n&&this._hydratedComponentCount--,n}removeAllSubcomponents(r){let n=this._removeAllObjects(J0,"_components",r);return this._hydratedComponentCount=0,n}addProperty(r){if(!(r instanceof Wc))throw new TypeError("must be instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),r.parent&&r.parent.removeProperty(r);let n=this.jCal[tl].push(r.jCal);return this._properties[n-1]=r,this._hydratedPropertyCount++,r.parent=this,r}addPropertyWithValue(r,n){let i=new Wc(r);return i.setValue(n),this.addProperty(i),i}updatePropertyWithValue(r,n){let i=this.getFirstProperty(r);return i?i.setValue(n):i=this.addPropertyWithValue(r,n),i}removeProperty(r){let n=this._removeObject(tl,"_properties",r);return n&&this._hydratedPropertyCount--,n}removeAllProperties(r){let n=this._removeAllObjects(tl,"_properties",r);return this._hydratedPropertyCount=0,n}toJSON(){return this.jCal}toString(){return Kn.component(this.jCal,this._designSet)}getTimeZoneByID(r){if(this.parent)return this.parent.getTimeZoneByID(r);if(!this._timezoneCache)return null;if(this._timezoneCache.has(r))return this._timezoneCache.get(r);const n=this.getAllSubcomponents("vtimezone");for(const i of n)if(i.getFirstProperty("tzid").getFirstValue()===r){const o=new pn({component:i,tzid:r});return this._timezoneCache.set(r,o),o}return null}}class AB{constructor(r){this.ruleDates=[],this.exDates=[],this.fromData(r)}complete=!1;ruleIterators=null;ruleDates=null;exDates=null;ruleDateInc=0;exDateInc=0;exDate=null;ruleDate=null;dtstart=null;last=null;fromData(r){let n=n0(r.dtstart,He);if(n)this.dtstart=n;else throw new Error(".dtstart (ICAL.Time) must be given");if(r.component)this._init(r.component);else{if(this.last=n0(r.last,He)||n.clone(),!r.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=r.ruleIterators.map(function(i){return n0(i,hl)}),this.ruleDateInc=r.ruleDateInc,this.exDateInc=r.exDateInc,r.ruleDates&&(this.ruleDates=r.ruleDates.map(i=>n0(i,He)),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.exDates&&(this.exDates=r.exDates.map(i=>n0(i,He)),this.exDate=this.exDates[this.exDateInc]),typeof r.complete<"u"&&(this.complete=r.complete)}}_compare_special(r,n){return!r.isDate&&n.isDate?new He({year:r.year,month:r.month,day:r.day}).compare(n):r.compare(n)}next(){let r,n,i,o=500,s=0;for(;;){if(s++>o)throw new Error("max tries have occurred, rule may be impossible to fulfill.");if(n=this.ruleDate,r=this._nextRecurrenceIter(this.last),!n&&!r){this.complete=!0;break}if((!n||r&&n.compare(r.last)>0)&&(n=r.last.clone(),r.next()),this.ruleDate===n&&this._nextRuleDay(),this.last=n,this.exDate&&(i=this._compare_special(this.last,this.exDate),i>0&&this._nextExDay(),i===0)){this._nextExDay();continue}return this.last}}toJSON(){function r(i){return i.toJSON()}let n=Object.create(null);return n.ruleIterators=this.ruleIterators.map(r),this.ruleDates&&(n.ruleDates=this.ruleDates.map(r)),this.exDates&&(n.exDates=this.exDates.map(r)),n.ruleDateInc=this.ruleDateInc,n.exDateInc=this.exDateInc,n.last=this.last.toJSON(),n.dtstart=this.dtstart.toJSON(),n.complete=this.complete,n}_extractDates(r,n){let i=[],o=r.getAllProperties(n);for(let s=0,a=o.length;s<a;s++)for(let l of o[s].getValues()){let u=qc(i,l,(c,d)=>c.compare(d));i.splice(u,0,l)}return i}_init(r){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!r.hasProperty("rdate")&&!r.hasProperty("rrule")&&!r.hasProperty("recurrence-id")){this.ruleDate=this.last.clone(),this.complete=!0;return}if(r.hasProperty("rdate")&&(this.ruleDates=this._extractDates(r,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=qc(this.ruleDates,this.last,(n,i)=>n.compare(i)),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.hasProperty("rrule")){let n=r.getAllProperties("rrule"),i=0,o=n.length,s,a;for(;i<o;i++)s=n[i].getFirstValue(),a=s.iterator(this.dtstart),this.ruleIterators.push(a),a.next()}r.hasProperty("exdate")&&(this.exDates=this._extractDates(r,"exdate"),this.exDateInc=qc(this.exDates,this.last,this._compare_special),this.exDate=this.exDates[this.exDateInc])}_nextExDay(){this.exDate=this.exDates[++this.exDateInc]}_nextRuleDay(){this.ruleDate=this.ruleDates[++this.ruleDateInc]}_nextRecurrenceIter(){let r=this.ruleIterators;if(r.length===0)return null;let n=r.length,i,o,s=0,a;for(;s<n;s++){if(i=r[s],o=i.last,i.completed){n--,s!==0&&s--,r.splice(s,1);continue}(!a||a.last.compare(o)>0)&&(a=i)}return a}}class Zf{constructor(r,n){r instanceof Ns||(n=r,r=null),r?this.component=r:this.component=new Ns("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(i){i.hasProperty("recurrence-id")&&this.relateException(i)},this)}static THISANDFUTURE="THISANDFUTURE";exceptions=null;strictExceptions=!1;relateException(r){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(r instanceof Ns&&(r=new Zf(r)),this.strictExceptions&&r.uid!==this.uid)throw new Error("attempted to relate unrelated exception");let n=r.recurrenceId.toString();if(this.exceptions[n]=r,r.modifiesFuture()){let i=[r.recurrenceId.toUnixTime(),n],o=qc(this.rangeExceptions,i,BD);this.rangeExceptions.splice(o,0,i)}}modifiesFuture(){return this.component.hasProperty("recurrence-id")?this.component.getFirstProperty("recurrence-id").getParameter("range")===Zf.THISANDFUTURE:!1}findRangeException(r){if(!this.rangeExceptions.length)return null;let n=r.toUnixTime(),i=qc(this.rangeExceptions,[n],BD);if(i-=1,i<0)return null;let o=this.rangeExceptions[i];return n<o[0]?null:o[1]}getOccurrenceDetails(r){let n=r.toString(),i=r.convertToZone(pn.utcTimezone).toString(),o,s={recurrenceId:r};if(n in this.exceptions)o=s.item=this.exceptions[n],s.startDate=o.startDate,s.endDate=o.endDate,s.item=o;else if(i in this.exceptions)o=this.exceptions[i],s.startDate=o.startDate,s.endDate=o.endDate,s.item=o;else{let a=this.findRangeException(r),l;if(a){let u=this.exceptions[a];s.item=u;let c=this._rangeExceptionCache[a];if(!c){let h=u.recurrenceId.clone(),p=u.startDate.clone();h.zone=p.zone,c=p.subtractDate(h),this._rangeExceptionCache[a]=c}let d=r.clone();d.zone=u.startDate.zone,d.addDuration(c),l=d.clone(),l.addDuration(u.duration),s.startDate=d,s.endDate=l}else l=r.clone(),l.addDuration(this.duration),s.endDate=l,s.startDate=r,s.item=this}return s}iterator(r){return new AB({component:this.component,dtstart:r||this.startDate})}isRecurring(){let r=this.component;return r.hasProperty("rrule")||r.hasProperty("rdate")}isRecurrenceException(){return this.component.hasProperty("recurrence-id")}getRecurrenceTypes(){let r=this.component.getAllProperties("rrule"),n=0,i=r.length,o=Object.create(null);for(;n<i;n++){let s=r[n].getFirstValue();o[s.freq]=!0}return o}get uid(){return this._firstProp("uid")}set uid(r){this._setProp("uid",r)}get startDate(){return this._firstProp("dtstart")}set startDate(r){this._setTime("dtstart",r)}get endDate(){let r=this._firstProp("dtend");if(!r){let n=this._firstProp("duration");r=this.startDate.clone(),n?r.addDuration(n):r.isDate&&(r.day+=1)}return r}set endDate(r){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",r)}get duration(){return this._firstProp("duration")||this.endDate.subtractDateTz(this.startDate)}set duration(r){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",r)}get location(){return this._firstProp("location")}set location(r){this._setProp("location",r)}get attendees(){return this.component.getAllProperties("attendee")}get summary(){return this._firstProp("summary")}set summary(r){this._setProp("summary",r)}get description(){return this._firstProp("description")}set description(r){this._setProp("description",r)}get color(){return this._firstProp("color")}set color(r){this._setProp("color",r)}get organizer(){return this._firstProp("organizer")}set organizer(r){this._setProp("organizer",r)}get sequence(){return this._firstProp("sequence")}set sequence(r){this._setProp("sequence",r)}get recurrenceId(){return this._firstProp("recurrence-id")}set recurrenceId(r){this._setTime("recurrence-id",r)}_setTime(r,n){let i=this.component.getFirstProperty(r);i||(i=new Wc(r),this.component.addProperty(i)),n.zone===pn.localTimezone||n.zone===pn.utcTimezone?i.removeParameter("tzid"):i.setParameter("tzid",n.zone.tzid),i.setValue(n)}_setProp(r,n){this.component.updatePropertyWithValue(r,n)}_firstProp(r){return this.component.getFirstPropertyValue(r)}toString(){return this.component.toString()}}function BD(e,r){return e[0]>r[0]?1:r[0]>e[0]?-1:0}class y6e{constructor(r){typeof r>"u"&&(r={});for(let[n,i]of Object.entries(r))this[n]=i}parseEvent=!0;parseTimezone=!0;oncomplete=function(){};onerror=function(r){};ontimezone=function(r){};onevent=function(r){};process(r){typeof r=="string"&&(r=qr(r)),r instanceof Ns||(r=new Ns(r));let n=r.getAllSubcomponents(),i=0,o=n.length,s;for(;i<o;i++)switch(s=n[i],s.name){case"vtimezone":if(this.parseTimezone){let a=s.getFirstPropertyValue("tzid");a&&this.ontimezone(new pn({tzid:a,component:s}))}break;case"vevent":this.parseEvent&&this.onevent(new Zf(s));break;default:continue}this.oncomplete()}}var ki={foldLength:75,debug:!1,newLineChar:`\r `,Binary:c5,Component:Ns,ComponentParser:y6e,Duration:mo,Event:Zf,Period:r0,Property:Wc,Recur:fo,RecurExpansion:AB,RecurIterator:hl,Time:He,Timezone:pn,TimezoneService:Q4,UtcOffset:Ca,VCardTime:wu,parse:qr,stringify:Kn,design:oi,helpers:X5e};class gu{_timezoneId;_ics;_timezone;_initialized;constructor(r,n){r instanceof ki.Timezone?(this._timezone=r,this._initialized=!0):r instanceof ki.Component?(this._timezone=new ki.Timezone(r),this._initialized=!0):(this._timezoneId=r,this._ics=n,this._initialized=!1)}get timezoneId(){return this._initialized?this._timezone.tzid:this._timezoneId}offsetForArray(r,n,i,o,s,a){const l=new ki.Time({year:r,month:n,day:i,hour:o,minute:s,second:a,isDate:!1});return this.timezone.utcOffset(l)}timestampToArray(r){const n=ki.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0});n.fromUnixTime(Math.floor(r/1e3));const i=n.convertToZone(this.timezone);return[i.year,i.month,i.day,i.hour,i.minute,i.second]}toICALTimezone(){return this.timezone}toICALJs(){return this.timezone.component}get timezone(){if(!this._initialized){const r=ki.parse(this._ics),n=new ki.Component(r);this._timezone=new ki.Timezone(n),this._initialized=!0}return this._timezone}static get utc(){return new gu(ki.Timezone.utcTimezone)}static get floating(){return new gu(ki.Timezone.localTimezone)}}const T6e="2.2024a",b6e={"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"}},v6e={"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`]}},d1={version:T6e,aliases:b6e,zones:v6e};class A6e{_aliases=new Map;_timezones=new Map;_pendingAliases=[];getTimezoneForId(r){let n=0;for(;n++<20;){if(this._timezones.has(r))return this._timezones.get(r);if(this._aliases.has(r))r=this._aliases.get(r);else return null}return console.error("TimezoneManager.getTimezoneForIdRec() exceeds recursion limits"),null}hasTimezoneForId(r){return this._timezones.has(r)||this._aliases.has(r)}isAlias(r){return!this._timezones.has(r)&&this._aliases.has(r)}listAllTimezones(r=!1){const n=Array.from(this._timezones.keys());return r?n.concat(Array.from(this._aliases.keys())):n}registerTimezone(r){this._timezones.set(r.timezoneId,r),ki.TimezoneService.register(r.toICALTimezone(),r.timezoneId),this._pendingAliases=this._pendingAliases.filter(([n,i])=>i!==r.timezoneId?!0:(ki.TimezoneService.register(r.toICALTimezone(),n),!1))}registerDefaultTimezones(){console.debug(`@nextcloud/calendar-js app is using version ${d1.version} of the timezone database`);for(const r in d1.zones){const n=["BEGIN:VTIMEZONE","TZID:"+r,...d1.zones[r].ics,"END:VTIMEZONE"].join(`\r `);this.registerTimezoneFromICS(r,n)}for(const r in d1.aliases)this.registerAlias(r,d1.aliases[r].aliasTo)}registerTimezoneFromICS(r,n){const i=new gu(r,n);this.registerTimezone(i)}registerAlias(r,n){this._aliases.set(r,n);const i=this.getTimezoneForId(n);if(!i){this._pendingAliases.push([r,n]);return}ki.TimezoneService.register(i.toICALTimezone(),r)}unregisterTimezones(r){this._timezones.delete(r),ki.TimezoneService.remove(r)}unregisterAlias(r){this._aliases.delete(r),this._pendingAliases=this._pendingAliases.filter(([n])=>n!==r),ki.TimezoneService.remove(r)}clearAllTimezones(){this._aliases=new Map,this._pendingAliases=[],this._timezones=new Map,ki.TimezoneService.reset(),ch.registerTimezone(gu.utc),ch.registerTimezone(gu.floating),ch.registerAlias("GMT",gu.utc.timezoneId),ch.registerAlias("Z",gu.utc.timezoneId)}}const ch=new A6e;ch.clearAllTimezones();function E6e(){return ch}ar(wL),ar(SL);function w6e(e=[],r=[]){const n={},i=[];for(const o of e){const s=o.split("/");let[a,l]=[s.shift(),s.join("/")];l||(l=a,a=Xe("Global")),n[a]=n[a]||{continent:a,regions:[]},n[a].regions.push({label:EB(l),cities:[],timezoneId:o})}for(const o of r){const{continent:s,label:a,timezoneId:l}=o;n[s]=n[s]||{continent:s,regions:[]},n[s].regions.push({label:a,cities:[],timezoneId:l})}for(const o in n)Object.hasOwn(n,o)&&(n[o].regions.sort((s,a)=>s.label<a.label?-1:1),i.push(n[o]));return i.sort((o,s)=>o.continent<s.continent?-1:1),i}function EB(e){return e.split("_").join(" ").replace("St ","St. ").split("/").join(" - ")}const ID=E6e();let LD=!1;function S6e(){return LD||(ID.registerDefaultTimezones(),LD=!0),ID}const D6e={name:"NcTimezonePicker",components:{NcSelect:W3},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-${Xs(5)}`}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:Ra("value","input")}},computed:{placeholder(){return Xe("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.model)return e;return{label:EB(this.model),timezoneId:this.model}},options(){const e=S6e(),r=w6e(e.listAllTimezones(),this.additionalTimezones);let n=[];return Object.values(r).forEach(i=>{n=n.concat(i.regions)}),n}},methods:{t:Xe,change(e){e&&(this.model=e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,r,n){const i=n.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(o=>this.matchTimezoneId(o.timezoneId,i)):this.matchTimezoneId(e.timezoneId,i)},matchTimezoneId(e,r){return r.every(n=>e.toLowerCase().includes(n.toLowerCase()))}}};var x6e=function(){var e=this,r=e._self._c;return r("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}})},k6e=[],C6e=qt(D6e,x6e,k6e,!1,null,null);const _6e=C6e.exports,N6e={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var F6e=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},O6e=[],M6e=qt(N6e,F6e,O6e,!1,null,null);const R6e=M6e.exports,B6e={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var I6e=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},L6e=[],z6e=qt(B6e,I6e,L6e,!1,null,null);const Y6e=z6e.exports;ar(DL);const zD={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},H6e={name:"NcDateTimePicker",components:{CalendarBlank:R6e,DatePicker:_c,NcPopover:l3,NcTimezonePicker:_6e,Web:Y6e},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:Ra("value","update:value"),timezoneDialogHeaderId:`timezone-dialog-header-${Xs()}`}},data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{realType(){return this.type.split("-")[0]},defaultLang(){return{formatLocale:{months:Sz(),monthsShort:Dz(),weekdays:Az(),weekdaysShort:Ez(),weekdaysMin:wz(),firstDayOfWeek:vz()},monthFormat:"MMMM"}},defaultPlaceholder(){return this.realType==="time"?Xe("Pick a time"):this.realType==="month"?Xe("Pick a month"):this.realType==="year"?Xe("Pick a year"):this.realType==="week"?Xe("Pick a week"):this.realType==="date"?Xe("Pick a date"):Xe("Pick a date and a time")},internalRange(){return this.range||this.type.endsWith("-range")},internalFormat(){return this.format&&typeof this.format=="string"?this.format:zD[this.realType]||zD.date},internalFormatter(){return{getWeek:e=>{const r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));r.setUTCDate(r.getUTCDate()+4-(r.getUTCDay()||7));const n=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r-n)/864e5+1)/7)},...typeof this.format=="function"?{stringify:this.format}:{},...this.formatter??{}}}},methods:{t:Xe,handleSelectYear(e){const r=this.$refs.datepicker.currentValue;if(r)try{const n=new Date(new Date(r).setFullYear(e));this.$refs.datepicker.selectDate(n)}catch{pi.error("Invalid value",{value:r,year:e})}},handleSelectMonth(e){const r=this.$refs.datepicker.currentValue;if(r)try{const n=new Date(new Date(r).setMonth(e));this.$refs.datepicker.selectDate(n)}catch{pi.error("Invalid value",{value:r,month:e})}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var P6e=function(){var e=this,r=e._self._c;return r("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?r("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[r("button",e._b({staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),(()=>{}).apply(null,arguments)}}},"button",n,!1),[r("Web",{attrs:{size:20}})],1)]}}],null,!1,3026992387)},[r("div",{attrs:{role:"dialog","aria-labelledby":e.timezoneDialogHeaderId}},[r("div",{staticClass:"timezone-popover-wrapper__label"},[r("strong",{attrs:{id:e.timezoneDialogHeaderId}},[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),r("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)]):r("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(n,i){return{key:i,fn:function(o){return[e._t(i,null,null,o)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},Z6e=[],$6e=qt(H6e,P6e,Z6e,!1,null,"3e415d44");const wB=$6e.exports;ck(wB);const U6e=Object.freeze(Object.defineProperty({__proto__:null,default:wB},Symbol.toStringTag,{value:"Module"}));ar(xL),ar(ik);const SB={},YD=()=>{ok((e,r)=>({"15a054de":e.color}))},HD=SB.setup;if(SB.setup=HD?(e,r)=>(YD(),HD(e,r)):YD,ar(kL),ar(CL),a3()?.circles?.teamResourceProviders,ar(_L),Xe("Related resources"),Xe("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 r=Object(this),n=r.length>>>0,i=arguments[1],o,s=0;s<n;s++)if(o=r[s],e.call(i,o,s,r))return o}),window&&typeof window.CustomEvent!="function"){let e=function(r,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(r,n.bubbles,n.cancelable,n.detail),i};typeof window.Event<"u"&&(e.prototype=window.Event.prototype),window.CustomEvent=e}const V6e={name:"NcAutoCompleteResult",components:{NcUserStatusIcon:dO},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:q3()}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&this.source==="users"?uO(this.id,{isDarkTheme:this.isDarkTheme}):null},labelWithFallback(){return this.label||this.title}}};var j6e=function(){var e=this,r=e._self._c;return r("div",{staticClass:"autocomplete-result"},[r("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?r("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"?r("NcUserStatusIcon",{staticClass:"autocomplete-result__status",attrs:{status:e.status.status}}):e._e()],1),r("span",{staticClass:"autocomplete-result__content"},[r("span",{staticClass:"autocomplete-result__title",attrs:{title:e.labelWithFallback}},[e._v(" "+e._s(e.labelWithFallback)+" ")]),e.subline?r("span",{staticClass:"autocomplete-result__subline"},[e._v(" "+e._s(e.subline)+" ")]):e._e()])])},G6e=[],q6e=qt(V6e,j6e,G6e,!1,null,"ef14f1ec");const W6e=q6e.exports;ar(NL,rk),Xe("Write a message …"),ar(FL),{...W3.props,placeholder:Xe("Select a tag")},ar(Xx,OL);Xe("Clear selected"),Xe("Options"),Xe("Select account"),ar(Jx),ar(ML);const[X9e]=Sf("core","config",{version:"30.0"}).version.split(".",2)??[];ar(RL),EF(function(e){this.loadGroup(e)},200);const K6e={name:"NcTextArea",components:{AlertCircle:wF,Check:SF},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:String,default:void 0},modelValue:{type:String,default:void 0},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""},resize:{type:String,default:"both",validator:e=>["both","vertical","horizontal","none"].includes(e)}},emits:["update:value","update:modelValue","update:model-value"],setup(){const e=Ra("value","update:value",!0);return{isLegacy32:wa,model:e}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+Xs()},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){if(this.hasPlaceholder)return this.placeholder;if(wa)return this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||pi.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){this.model=e.target.value}}};var Q6e=function(){var e=this,r=e._self._c;return r("div",{staticClass:"textarea",class:{"textarea--disabled":e.disabled,"textarea--legacy":e.isLegacy32}},[r("div",{staticClass:"textarea__main-wrapper"},[r("textarea",e._g(e._b({ref:"input",staticClass:"textarea__input",class:[e.inputClass,{"textarea__input--label-outside":e.labelOutside,"textarea__input--legacy":e.isLegacy,"textarea__input--success":e.success,"textarea__input--error":e.error}],style:{resize:e.resize},attrs:{id:e.computedId,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model},on:{input:e.handleInput}},"textarea",e.$attrs,!1),e.$listeners)),e._v(" "),!e.labelOutside&&e.isValidLabel?r("label",{staticClass:"textarea__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e()]),e.helperText.length>0?r("p",{staticClass:"textarea__helper-text-message",class:{"textarea__helper-text-message--error":e.error,"textarea__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?r("Check",{staticClass:"textarea__helper-text-message__icon",attrs:{size:18}}):e.error?r("AlertCircle",{staticClass:"textarea__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},J6e=[],X6e=qt(K6e,Q6e,J6e,!1,null,"8dc0dcfd");const eye=X6e.exports;$m.themes.tooltip.html=!1,$m.themes.tooltip.delay={show:500,hide:200},$m.themes.tooltip.distance=10,$m.themes.tooltip["arrow-padding"]=3;const tye={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(r=>{e[r.suggestGroup]||(e[r.suggestGroup]=[]),e[r.suggestGroup].push(r)}),e},combineIndex(){return(e,r)=>Object.values(this.itemGroups).slice(0,e).reduce((n,i)=>n+i.length,0)+r}},watch:{items(){this.selectedIndex=0,this.$el.scrollTop=0}},methods:{t:lt,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 r=this.items[e];r&&(this.$emit("select",r),this.command(r))}}};var rye=function(){var e=this,r=e._self._c;return r("div",{staticClass:"suggestion-list"},[e.hasResults?e._l(e.itemGroups,function(n,i,o){return r("div",{key:i},[e.hasGroups?r("div",{staticClass:"suggestion-list__group"},[e._v(" "+e._s(i)+" ")]):e._e(),e._l(n,function(s,a){return r("div",{key:e.combineIndex(o,a),staticClass:"suggestion-list__item",class:{"is-selected":e.combineIndex(o,a)===e.selectedIndex},on:{click:function(l){e.selectItem(e.combineIndex(o,a))}}},[e._t("default",null,{item:s,active:e.combineIndex(o,a)===e.selectedIndex})],2)})],2)}):r("div",{staticClass:"suggestion-list__item is-empty"},[e._v(" "+e._s(e.t("text","No suggestion found"))+" ")])],2)},nye=[],iye=Ze(tye,rye,nye,!1,null,"e058c838");const DB=iye.exports,oye={components:{NcAutoCompleteResult:W6e,SuggestionListWrapper:DB},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{t:lt,onKeyDown({event:e}){return this.$refs.suggestionList?.onKeyDown({event:e})}}};var sye=function(){var e=this,r=e._self._c;return r("SuggestionListWrapper",{ref:"suggestionList",attrs:{command:e.command,items:e.items},scopedSlots:e._u([{key:"default",fn:function({item:n,active:i}){return[r("NcAutoCompleteResult",{class:i?"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}])})},aye=[],lye=Ze(oye,sye,aye,!1,null,null);const uye=lye.exports,cye=({connection:e,options:r})=>X7({listComponent:uye,items:async({query:n})=>{const i=await Gme(n,{connection:e});return Object.entries(i).map(([o,s])=>({id:o,label:s}))},command:({editor:n,range:i,props:o})=>{r?.emitMention?r.emitMention({props:o}):Vme(o.id,window.location,{connection:e}),n.view.state.selection.$to.nodeAfter?.text?.startsWith(" ")&&(i.to+=1),n.chain().focus().insertContentAt(i,[{type:"mention",attrs:o},{type:"text",text:" "}]).run(),window.getSelection()?.collapseToEnd()},...r});var dye=tn.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:r}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,gr(this.options.HTMLAttributes,r),0]},parseMarkdown:(e,r)=>r.createNode("heading",{level:e.depth||1},r.parseInline(e.tokens||[])),renderMarkdown:(e,r)=>{var n;const i=(n=e.attrs)!=null&&n.level?parseInt(e.attrs.level,10):1,o="#".repeat(i);return e.content?`${o} ${r.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>({commands:r})=>this.options.levels.includes(e.level)?r.setNode(this.name,e):!1,toggleHeading:e=>({commands:r})=>this.options.levels.includes(e.level)?r.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,r)=>({...e,[`Mod-Alt-${r}`]:()=>this.editor.commands.toggleHeading({level:r})}),{})},addInputRules(){return this.options.levels.map(e=>iT({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),hye=dye;const pye=hye.extend({addKeyboardShortcuts(){return this.options.levels.reduce((e,r)=>({...e,[`Mod-Shift-${r}`]:()=>this.editor.commands.toggleHeading({level:r})}),{})},addProseMirrorPlugins(){return[KX()]}}),fye={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:lt,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 r=this.items[e];r&&(this.command(r),mce(r))}}};var mye=function(){var e=this,r=e._self._c;return r("div",{staticClass:"emoji-list"},[e.hasResults?e._l(e.items,function(n,i){return r("div",{key:i,staticClass:"emoji-list__item",class:{"is-selected":i===e.selectedIndex},on:{click:function(o){return e.selectItem(i)}}},[r("span",{staticClass:"emoji-list__item__emoji"},[e._v(" "+e._s(n.native)+" ")]),e._v(" :"+e._s(n.short_name)+" ")])}):r("div",{staticClass:"emoji-list__item is-empty"},[e._v(" "+e._s(e.t("text","No emoji found"))+" ")])],2)},gye=[],yye=Ze(fye,mye,gye,!1,null,"42b3661e");const Tye=yye.exports,bye=()=>X7({listComponent:Tye,items:({query:e})=>fce(e),command:({editor:e,range:r,props:n})=>{e.chain().focus().insertContentAt(r,n.native+" ").run()}}),vye={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Aye=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Eye=[],wye=Ze(vye,Aye,Eye,!1,null,null);const xB=wye.exports,Sye={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Dye=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},xye=[],kye=Ze(Sye,Dye,xye,!1,null,null);const kB=kye.exports,Cye={name:"DotsVerticalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _ye=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},Nye=[],Fye=Ze(Cye,_ye,Nye,!1,null,null);const Oye=Fye.exports,CB={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,gk(lt("text","Copied to the clipboard"))}catch{this.copySuccess=!1,this.copied=!0,uu(`<div>${lt("text","Could not copy to the clipboard")}</div>`,{isHTML:!0})}finally{this.copyLoading=!1,setTimeout(()=>{this.copySuccess=!1,this.copied=!1},4e3)}}}},Mye={name:"PreviewOptions",components:{CheckIcon:Jv,ContentCopyIcon:kB,DotsVerticalIcon:Oye,NcActions:Nl,NcActionButton:_0,NcActionCaption:k2e,NcActionRadio:O2e,NcActionSeparator:I3,NcLoadingIcon:np,DeleteOutlineIcon:e7,OpenIcon:xB},mixins:[CB],props:{type:{type:String,required:!0},href:{type:String,default:""}},data(){return{open:!1}},computed:{isPreview(){return this.type==="link-preview"}},methods:{onOpen(){this.$emit("open")},toggle(e){this.open=!1,this.$emit("toggle",e)},openLink(){this.href&&window.open(this.href,"_blank").focus()},async copyLink(){await this.copyToClipboard(this.href)},deleteNode(){this.$emit("delete")},t:lt}};var Rye=function(){var e=this,r=e._self._c;return r("NcActions",{staticClass:"link-options",attrs:{"data-text-link-options":"select",open:e.open},on:{"update:open":function(n){e.open=n},open:e.onOpen},scopedSlots:e._u([{key:"icon",fn:function(){return[r("DotsVerticalIcon",{attrs:{size:20}})]},proxy:!0}])},[r("NcActionCaption",{attrs:{name:e.t("text","Preview options")}}),r("NcActionRadio",{attrs:{"data-text-preview-option":"text-only",name:"preview-option",value:"text-only","model-value":e.type},on:{change:n=>e.toggle(n.currentTarget.value)}},[e._v(" "+e._s(e.t("text","Text only"))+" ")]),r("NcActionRadio",{attrs:{"data-text-preview-option":"link-preview",name:"preview-option",value:"link-preview","model-value":e.type},on:{change:n=>e.toggle(n.currentTarget.value)}},[e._v(" "+e._s(e.t("text","Show link preview"))+" ")]),r("NcActionSeparator"),e.href?r("NcActionButton",{attrs:{"close-after-click":""},on:{click:e.openLink},scopedSlots:e._u([{key:"icon",fn:function(){return[r("OpenIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2504743223)},[e._v(" "+e._s(e.t("text","Open in new tab"))+" ")]):e._e(),e.href?r("NcActionButton",{attrs:{"close-after-click":""},on:{click:e.copyLink},scopedSlots:e._u([{key:"icon",fn:function(){return[e.copySuccess?r("CheckIcon",{attrs:{size:20}}):e.copyLoading?r("NcLoadingIcon",{attrs:{size:20}}):r("ContentCopyIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,4250026695)},[e._v(" "+e._s(e.t("text","Copy link"))+" ")]):e._e(),r("NcActionButton",{attrs:{"close-after-click":""},on:{click:e.deleteNode},scopedSlots:e._u([{key:"icon",fn:function(){return[r("DeleteOutlineIcon",{attrs:{size:20}})]},proxy:!0}])},[e._v(" "+e._s(e.t("text","Remove link"))+" ")])],1)},Bye=[],Iye=Ze(Mye,Rye,Bye,!1,null,"91b01417");const _B=Iye.exports,Lye=["http:","https:"],zye={name:"LinkBubbleView",components:{PreviewOptions:_B,CheckIcon:Jv,CloseIcon:XN,NcButton:as,NcReferenceList:wO,NcTextField:Y3,OpenInNewIcon:xB,PencilOutlineIcon:Xv},mixins:[fz],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"},sanitizedHref(){try{return new URL(this.href,window.location).href}catch{return this.href}},title(){return this.referenceTitle?this.referenceTitle:this.sanitizedHref},showPreview(){try{const e=new URL(this.href,window.location);return this.href&&Lye.includes(e.protocol)}catch{return!1}}},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)},onReferenceListLoaded(){this.referenceTitle=this.$refs.referencelist.firstReference?.openGraphObject?.name??null},setPreview(){this.editor.chain().hideLinkBubble().setPreview().run()},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 r={...this.editor.view.state.selection},{ranges:n}=r,i=Math.min(...n.map(s=>s.$from.pos)),o=Math.max(...n.map(s=>s.$to.pos));console.debug("selection",r),this.editor.chain().extendMarkRange("link").setLink({href:e}).setTextSelection({from:i,to:o}).focus().run()},removeLink(){this.editor.chain().hideLinkBubble().unsetLink().focus().run(),this.stopEdit()},t:lt}};var Yye=function(){var e=this,r=e._self._c;return r("div",{key:e.key,staticClass:"link-view-bubble"},[r("div",{staticClass:"link-view-bubble__header"},[r("div",{staticClass:"link-view-bubble__title"},[e._v(" "+e._s(e.title)+" ")]),r("NcButton",{attrs:{title:e.t("text","Open link"),"aria-label":e.t("text","Open link"),variant:"tertiary"},on:{click:function(n){return e.openLink(e.href)}},scopedSlots:e._u([{key:"icon",fn:function(){return[r("OpenInNewIcon",{attrs:{size:20}})]},proxy:!0}])}),e.isEditable?r("div",{staticClass:"edit-buttons"},[e.edit?r("NcButton",{attrs:{title:e.t("text","Save changes"),"aria-label":e.t("text","Save changes"),variant:"tertiary"},on:{click:e.updateLink},scopedSlots:e._u([{key:"icon",fn:function(){return[r("CheckIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2630571749)}):r("NcButton",{attrs:{title:e.t("text","Edit link"),"aria-label":e.t("text","Edit link"),variant:"tertiary"},on:{click:e.startEdit},scopedSlots:e._u([{key:"icon",fn:function(){return[r("PencilOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,3691650334)})],1):e._e(),e.isEditable&&!e.edit?r("PreviewOptions",{attrs:{href:e.href,type:"text-only"},on:{toggle:e.setPreview,delete:e.removeLink}}):r("NcButton",{attrs:{title:e.t("text","Cancel"),"aria-label":e.t("text","Cancel"),variant:"tertiary"},on:{click:e.stopEdit},scopedSlots:e._u([{key:"icon",fn:function(){return[r("CloseIcon",{attrs:{size:20}})]},proxy:!0}])})],1),e.isEditable&&e.edit?r("div",{staticClass:"link-view-bubble__edit"},[r("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?r("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)},Hye=[],Pye=Ze(zye,Yye,Hye,!1,null,"cd8b7cef");const Zye=Pye.exports;class $ye{#e=null;#t=null;constructor({view:r,options:n,plugin:i}){this.options=n,this.view=r,this.plugin=i,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=r=>{this.tippy?.popper?.contains(r.target)||window.Cypress&&r.type==="scroll"||this.#t.commands.hideLinkBubble()};createTooltip(){const r=this.options.editor.options.element,n=!!r.parentElement;this.tippy||!n||(this.#e||=new L7(Zye,{parent:this.options.editor.contentComponent,propsData:{editor:this.options.editor,href:null}}),this.tippy=uh(r,{duration:100,getReferenceClientRect:null,content:this.#e.element,interactive:!0,trigger:"manual",placement:"bottom",hideOnClick:"toggle",popperOptions:{strategy:"fixed"}}))}update(r,n){const{active:i}=this.plugin.getState(r.state);r.composing||(this.createTooltip(),i?.mark?setTimeout(()=>{this.updateTooltip(r,i)},100):(this.removeEventListeners(),setTimeout(()=>{this.tippy?.hide()},100)))}updateTooltip(r,{mark:n,nodeStart:i}){let o;try{o=r.nodeDOM(i)}catch{return}Object.prototype.toString.call(o)==="[object Text]"&&(o=o.parentElement),this.#e?.updateProps({href:Ib(n)});const s=o?.getBoundingClientRect();s&&this.tippy?.setProps({getReferenceClientRect:()=>s}),this.tippy?.show(),this.addEventListeners()}destroy(){this.tippy?.destroy()}}function Uye({selection:e,doc:r}){const{ranges:n}=e,i=Math.min(...n.map(h=>h.$from.pos)),o=Math.max(...n.map(h=>h.$to.pos)),s=r.resolve(i);if(s.parent.type.name==="preview")return!1;const a=s.parent.maybeChild(s.index()),l=s.pos-s.textOffset,u=l+a?.nodeSize;if(o>u)return null;const c=PD(a,l);if(c)return c;const d=s.nodeBefore;return d?PD(d,l-d.nodeSize):null}function PD(e,r){const n=Vye(e);return n?{mark:n,nodeStart:r}:null}function Vye(e){const r=e?.marks.find(n=>n.type.name==="link");if(r&&!Lb(r.attrs.href))return r}const jye=e=>(r,n)=>{const i=e.marks().find(a=>a.type.name==="link");if(!i)return!1;const o=e.pos-e.textOffset,s={mark:i,nodeStart:o};return n&&n(r.tr.setMeta(Sh,{active:s})),!0},NB=(e,r)=>Sh.getState(e)?.active?(r&&r(e.tr.setMeta(Sh,{active:null})),!0):!1,Sh=new hr("linkBubble");function Gye(e){const r=new lr({key:Sh,state:{init:()=>({active:null}),apply:(n,i)=>{const o=n.getMeta(Sh);return o?{...i,active:o.active}:i}},view:n=>new $ye({view:n,options:e,plugin:r}),appendTransaction:(n,i,o)=>{if(i?.doc.content.size===2)return;const s=i?.selection.eq(o.selection),a=i?.doc.eq(o.doc),l=n.every(c=>c.meta.addToHistory===!1);if(s&&(l||a))return;const u=Uye(o);return o.tr.setMeta(Sh,{active:u})},props:{handleClickOn:(n,i,o,s,a,l)=>{if(!l||a.button!==0||a.ctrlKey||a.metaKey)return!1;const{state:u,dispatch:c}=n,d=u.doc.resolve(i);return jye(d)(u,c)},handleDOMEvents:{keydown:(n,i)=>{const{state:o,dispatch:s}=n;if(i.key==="Escape")return NB(o,s)}}}});return r}const qye=new hr("textHandleClickLink");function Wye(){return new lr({key:qye,props:{handleDOMEvents:{auxclick:(e,r)=>{if(r.target.closest("a")&&r.button===1&&!r.ctrlKey&&!r.metaKey&&!r.shiftKey){r.preventDefault(),r.stopImmediatePropagation();const n=r.target.closest("a");window.open(n.href,"_blank")}},paste:(e,r)=>{r.target.closest("a")&&(r.stopPropagation(),r.preventDefault(),r.stopImmediatePropagation())},click:(e,r)=>{const n=r.target.closest("a");if(!n||!n.matches('a[data-text-el="text-only-link"]'))return!1;r.button===0&&(r.preventDefault(),Lb(n.attributes.href?.value)?location.href=n.attributes.href.value:(r.ctrlKey||r.metaKey)&&window.open(n.href,"_blank"))}}}})}const Kye=xr.create({name:"linkViewBubble",addCommands(){return{hideLinkBubble:()=>({state:e,dispatch:r})=>NB(e,r)}},addProseMirrorPlugins(){return[Gye({editor:this.editor})]}}),Qye={components:{SuggestionListWrapper:DB},props:{items:{type:Array,required:!0},command:{type:Function,required:!0}},methods:{t:lt,onKeyDown({event:e}){return this.$refs.suggestionList?.onKeyDown({event:e})}}};var Jye=function(){var e=this,r=e._self._c;return r("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[r("div",{staticClass:"link-picker__item",attrs:{"data-key":n.key}},[typeof n.icon!="string"?r(n.icon,{tag:"compoent"}):r("img",{attrs:{src:n.icon}}),r("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}])})},Xye=[],eTe=Ze(Qye,Jye,Xye,!1,null,"5ab73b22");const tTe=eTe.exports,rTe=lt("text","Formatting"),nTe=lt("text","Smart picker"),iTe=e=>["undo","redo","outline","emoji-picker"].indexOf(e.key)>-1,ZD=["task-list","table"],oTe=e=>{try{return!!new URL(e)}catch{return!1}},sTe=e=>[...e.filter(r=>ZD.indexOf(r.key)>-1),...e.filter(r=>ZD.indexOf(r.key)===-1)],aTe=e=>{const r=Rce(!1);return sTe([...r.find(n=>n.key==="headings").children,...r.find(n=>n.key==="lists").children,...r.filter(n=>n.action&&!iTe(n)),...r.find(n=>n.key==="blocks").children,{...r.find(n=>n.key==="emoji-picker"),action:n=>n.insertContent(":")}].filter(n=>n?.label?.toLowerCase?.()?.includes(e.toLowerCase())).map(n=>({...n,suggestGroup:rTe})))},lTe=()=>X7({listComponent:tTe,command:({editor:e,range:r,props:n})=>{if(n.action){const i=e.chain().deleteRange(r);n.action(i),i.run();return}EO(n.providerId,!0).then(i=>{if(!oTe(i)){const o=lM(i)?Bu.render(i):i;e.chain().focus().insertContentAt(r,o+" ").run();return}e.chain().focus().deleteRange(r).insertPreview(i).run()}).catch(i=>{console.error("Smart picker promise rejected",i)})},items:({editor:e,query:r})=>[...vO(r).map(n=>({suggestGroup:nTe,label:n.title,icon:n.icon_url,providerId:n.id})).filter(n=>n?.label?.toLowerCase?.()?.includes(r.toLowerCase())),...aTe(r).filter(({action:n,isActive:i})=>{const o=n(e?.can()),s=i&&vF({isActive:i},e);return o&&!s})]}),uTe=new hr("linkPicker"),cTe=xr.create({name:"linkPicker",addOptions(){return{suggestion:{char:"/",allowedPrefixes:[" "],pluginKey:uTe,allow:({state:e,range:r})=>e.doc.resolve(r.from).parent.type.name!=="codeBlock",...lTe()}}},addProseMirrorPlugins(){return[I7({editor:this.editor,...this.options.suggestion})]}}),Tb=new hr("searchQuery");function dTe(){return new lr({key:Tb,state:{init:()=>({query:"",matchAll:!0,index:0}),apply:(e,r)=>{const n=e.getMeta("searchQuery");if(n?.query!==void 0||n?.match){const i={query:n.query??r.query,matchAll:n.matchAll??r.matchAll,index:r.index};return n?.match&&(i.matchAll=!1,i.index=r.index+n.match),i}else return r}}})}const hTe=(e,r)=>({tr:n})=>n.setMeta("searchQuery",{query:e,matchAll:r}),pTe=()=>({tr:e})=>e.setMeta("searchQuery",{match:1}),fTe=()=>({tr:e})=>e.setMeta("searchQuery",{match:-1}),mTe=new hr("searchDecorations");function gTe(){return new lr({key:mTe,state:{init(e,{doc:r}){const n=$D(r,"");return UD(r,n.results)},apply(e,r,n,i){const o=Tb.getState(n),s=Tb.getState(i),a=s.query!==o.query,l=s.index!==o.index,u=s.matchAll!==o.matchAll;if(e.docChanged||a||l||u){const{results:c,total:d,index:h}=$D(e.doc,s.query,{matchAll:s.matchAll,index:s.index});return Io("text:editor:search-results",{totalMatches:s.query===""?null:d,matchIndex:h}),UD(e.doc,c)}else return r}},props:{decorations(e){return this.getState(e)}}})}function $D(e,r,n){n={matchAll:n?.matchAll??!0,index:n?.index??0};const i=[];if(!r||r==="")return{results:i,total:i.length,index:n.index};if(e.descendants((o,s,a)=>{if(!o.isText)return;const l=o.text.matchAll(new RegExp(r,"gi"));for(const u of l)i.push({from:u.index+s,to:u.index+s+r.length})}),n.matchAll)return{results:i,total:i.length,index:n.index};{const o=yTe(n.index,i.length);return{results:[i[o]??i],total:i.length,index:o}}}function UD(e,r){const n=[];return r.length<1?Nr.empty:(r.forEach(i=>{n.push(kn.inline(i.from,i.to,{"data-text-el":"search-decoration",style:"background-color: #ead637; color: black; border-radius: 2px;"}))}),Nr.create(e,n))}function yTe(e,r){return r<1?0:e<0?(e%r+r)%r:e%r}const TTe=xr.create({name:"Search",addCommands(){return{setSearchQuery:hTe,nextMatch:pTe,previousMatch:fTe}},addProseMirrorPlugins(){return[dTe(),gTe()]}}),FB="֑-߿יִ-﷽ﹰ-ﻼ",OB="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",bTe=new RegExp("^[^"+OB+"]*["+FB+"]"),vTe=new RegExp("^[^"+FB+"]*["+OB+"]");function ATe(e){return e.length===0?null:bTe.test(e)?"rtl":vTe.test(e)?"ltr":null}const ETe=["ltr","rtl","auto"];function wTe({types:e}){return new lr({key:new hr("customTextDirection"),appendTransaction:(r,n,i)=>{const o=r.some(d=>d.getMeta("y-sync$")||d.getMeta("composition")),s=i.plugins.find(d=>d.spec.isInputRules),a=s&&r.some(d=>d.getMeta(s));if(o||a||!r.some(d=>d.docChanged))return;let l=!1;const{tr:u}=i,c=sv(n.doc,r);return uv(c).forEach(({newRange:d})=>{GC(i.doc,d,h=>e.includes(h.type.name)).forEach(({node:h,pos:p})=>{if(h.attrs.dir!==null&&h.textContent.length>0)return;const f=ATe(h.textContent);if(h.attrs.dir===f)return;const m=u.storedMarks||[];u.setNodeAttribute(p,"dir",f);for(const v of m)u.addStoredMark(v);l=!0})}),l?u:null}})}const STe=xr.create({name:"customTextDirection",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:r})=>ETe.includes(e)?this.options.types.every(n=>r.updateAttributes(n,{dir:e})):!1,unsetTextDirection:()=>({commands:e})=>this.options.types.every(r=>e.resetAttributes(r,"dir"))}},addKeyboardShortcuts(){return{"Mod-Alt-l":()=>this.editor.commands.setTextDirection("ltr"),"Mod-Alt-r":()=>this.editor.commands.setTextDirection("rtl")}},addProseMirrorPlugins(){return[wTe({types:this.options.types})]}});var DTe=e=>Vr({find:/--$/,replace:e??"—"}),xTe=e=>Vr({find:/\.\.\.$/,replace:e??"…"}),kTe=e=>Vr({find:/(?:^|[\s{[(<'"\u2018\u201C])(")$/,replace:e??"“"}),CTe=e=>Vr({find:/"$/,replace:e??"”"}),_Te=e=>Vr({find:/(?:^|[\s{[(<'"\u2018\u201C])(')$/,replace:e??"‘"}),NTe=e=>Vr({find:/'$/,replace:e??"’"}),FTe=e=>Vr({find:/<-$/,replace:e??"←"}),OTe=e=>Vr({find:/->$/,replace:e??"→"}),MTe=e=>Vr({find:/\(c\)$/,replace:e??"©"}),RTe=e=>Vr({find:/\(tm\)$/,replace:e??"™"}),BTe=e=>Vr({find:/\(sm\)$/,replace:e??"℠"}),ITe=e=>Vr({find:/\(r\)$/,replace:e??"®"}),LTe=e=>Vr({find:/(?:^|\s)(1\/2)\s$/,replace:e??"½"}),zTe=e=>Vr({find:/\+\/-$/,replace:e??"±"}),YTe=e=>Vr({find:/!=$/,replace:e??"≠"}),HTe=e=>Vr({find:/<<$/,replace:e??"«"}),PTe=e=>Vr({find:/>>$/,replace:e??"»"}),ZTe=e=>Vr({find:/\d+\s?([*x])\s?\d+$/,replace:e??"×"}),$Te=e=>Vr({find:/\^2$/,replace:e??"²"}),UTe=e=>Vr({find:/\^3$/,replace:e??"³"}),VTe=e=>Vr({find:/(?:^|\s)(1\/4)\s$/,replace:e??"¼"}),jTe=e=>Vr({find:/(?:^|\s)(3\/4)\s$/,replace:e??"¾"}),GTe=xr.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(DTe(this.options.emDash)),this.options.ellipsis!==!1&&e.push(xTe(this.options.ellipsis)),this.options.openDoubleQuote!==!1&&e.push(kTe(this.options.openDoubleQuote)),this.options.closeDoubleQuote!==!1&&e.push(CTe(this.options.closeDoubleQuote)),this.options.openSingleQuote!==!1&&e.push(_Te(this.options.openSingleQuote)),this.options.closeSingleQuote!==!1&&e.push(NTe(this.options.closeSingleQuote)),this.options.leftArrow!==!1&&e.push(FTe(this.options.leftArrow)),this.options.rightArrow!==!1&&e.push(OTe(this.options.rightArrow)),this.options.copyright!==!1&&e.push(MTe(this.options.copyright)),this.options.trademark!==!1&&e.push(RTe(this.options.trademark)),this.options.servicemark!==!1&&e.push(BTe(this.options.servicemark)),this.options.registeredTrademark!==!1&&e.push(ITe(this.options.registeredTrademark)),this.options.oneHalf!==!1&&e.push(LTe(this.options.oneHalf)),this.options.plusMinus!==!1&&e.push(zTe(this.options.plusMinus)),this.options.notEqual!==!1&&e.push(YTe(this.options.notEqual)),this.options.laquo!==!1&&e.push(HTe(this.options.laquo)),this.options.raquo!==!1&&e.push(PTe(this.options.raquo)),this.options.multiplication!==!1&&e.push(ZTe(this.options.multiplication)),this.options.superscriptTwo!==!1&&e.push($Te(this.options.superscriptTwo)),this.options.superscriptThree!==!1&&e.push(UTe(this.options.superscriptThree)),this.options.oneQuarter!==!1&&e.push(VTe(this.options.oneQuarter)),this.options.threeQuarters!==!1&&e.push(jTe(this.options.threeQuarters)),e}});const qTe=()=>Vr({find:/(?<![<])-- $/,replace:"— "}),WTe=()=>Vr({find:/<->$/,replace:"↔"}),KTe=()=>Vr({find:/<- $/,replace:"← "}),QTe=()=>Vr({find:/(?<![<-])->$/,replace:"→"}),JTe=()=>Vr({find:/<=>$/,replace:"⇔"}),XTe=()=>Vr({find:/<= $/,replace:"⇐ "}),ebe=()=>Vr({find:/(?<![<=])=>$/,replace:"⇒"}),tbe=()=>Vr({find:/<-->$/,replace:"⟷"}),rbe=()=>Vr({find:/<-- $/,replace:"⟵ "}),nbe=()=>Vr({find:/(?<!<)-->$/,replace:"⟶"}),ibe=GTe.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(qTe()),e.push(KTe()),e.push(QTe()),e.push(WTe()),e.push(JTe()),e.push(XTe()),e.push(ebe()),e.push(tbe()),e.push(rbe()),e.push(nbe()),e}});var obe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,sbe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,abe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,lbe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,ube=ec.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",gr(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)}},markdownTokenName:"em",parseMarkdown:(e,r)=>r.applyMark("italic",r.parseInline(e.tokens||[])),renderMarkdown:(e,r)=>`*${r.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[g0({find:obe,type:this.type}),g0({find:abe,type:this.type})]},addPasteRules(){return[y0({find:sbe,type:this.type}),y0({find:lbe,type:this.type})]}}),cbe=ube,hA="[\0- -\u2029 ]",dbe=new RegExp(hA),hbe=new RegExp(`${hA}$`),pbe=new RegExp(hA,"g");function fbe(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?["()","[]"].includes(e[0].value+e[2].value):!1}function mbe(e){return new lr({key:new hr("autolink"),appendTransaction:(r,n,i)=>{const o=r.some(u=>u.docChanged)&&!n.doc.eq(i.doc),s=r.some(u=>u.getMeta("preventAutolink"));if(!o||s)return;const{tr:a}=i,l=sv(n.doc,[...r]);if(uv(l).forEach(({newRange:u})=>{const c=GC(i.doc,u,p=>p.isTextblock);let d,h;if(c.length>1)d=c[0],h=i.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(c.length){const p=i.doc.textBetween(u.from,u.to," "," ");if(!hbe.test(p))return;d=c[0],h=i.doc.textBetween(d.pos,u.to,void 0," ")}if(d&&h){const p=h.split(dbe).filter(Boolean);if(p.length<=0)return!1;const f=p[p.length-1],m=d.pos+h.lastIndexOf(f);if(!f)return!1;const v=o5(f).map(w=>w.toObject(e.defaultProtocol));if(!fbe(v))return!1;v.filter(w=>w.isLink).map(w=>({...w,from:m+w.start+1,to:m+w.end+1})).filter(w=>i.schema.marks.code?!i.doc.rangeHasMark(w.from,w.to,i.schema.marks.code):!0).filter(w=>e.validate(w.value)).filter(w=>e.shouldAutoLink(w.value)).forEach(w=>{cv(w.from,w.to,i.doc).some(x=>x.mark.type===e.type)||a.addMark(w.from,w.to,e.type.create({href:w.href}))})}}),!!a.steps.length)return a}})}function gbe(e){return new lr({key:new hr("handleClickLink"),props:{handleClick:(r,n,i)=>{var o,s;if(i.button!==0||!r.editable)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let l=null;if(i.target instanceof HTMLAnchorElement)l=i.target;else{let h=i.target;const p=[];for(;h.nodeName!=="DIV";)p.push(h),h=h.parentNode;l=p.find(f=>f.nodeName==="A")}if(!l)return a;const u=e_(r.state,e.type.name),c=(o=l?.href)!=null?o:u.href,d=(s=l?.target)!=null?s:u.target;l&&c&&(window.open(c,d),a=!0)}return a}}})}function ybe(e){return new lr({key:new hr("handlePasteLink"),props:{handlePaste:(r,n,i)=>{const{shouldAutoLink:o}=e,{state:s}=r,{selection:a}=s,{empty:l}=a;if(l)return!1;let u="";i.content.forEach(d=>{u+=d.textContent});const c=iB(u,{defaultProtocol:e.defaultProtocol}).find(d=>d.isLink&&d.value===u);return!u||!c||o!==void 0&&!o(c.value)?!1:e.editor.commands.setMark(e.type,{href:c.href})}}})}function Dc(e,r){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return r&&r.forEach(i=>{const o=typeof i=="string"?i:i.scheme;o&&n.push(o)}),!e||e.replace(pbe,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var Tbe=ec.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"){aD(e);return}aD(e.scheme,e.optionalSlashes)})},onDestroy(){r4e()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,r)=>!!Dc(e,r.protocols),validate:e=>!!e,shouldAutoLink:e=>{const r=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(r||n&&!e.includes("@"))return!0;const i=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(i)||!/\./.test(i))}}},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 r=e.getAttribute("href");return!r||!this.options.isAllowedUri(r,{defaultValidate:n=>!!Dc(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:r=>!!Dc(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",gr(this.options.HTMLAttributes,e),0]:["a",gr(this.options.HTMLAttributes,{...e,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,r)=>r.applyMark("link",r.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,r)=>{var n;const i=((n=e.attrs)==null?void 0:n.href)||"";return`[${r.renderChildren(e)}](${i})`},addCommands(){return{setLink:e=>({chain:r})=>{const{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:i=>!!Dc(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?r().setMark(this.name,e).setMeta("preventAutolink",!0).run():!1},toggleLink:e=>({chain:r})=>{const{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:i=>!!Dc(i,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:r().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[y0({find:e=>{const r=[];if(e){const{protocols:n,defaultProtocol:i}=this.options,o=iB(e).filter(s=>s.isLink&&this.options.isAllowedUri(s.value,{defaultValidate:a=>!!Dc(a,n),protocols:n,defaultProtocol:i}));o.length&&o.forEach(s=>{this.options.shouldAutoLink(s.value)&&r.push({text:s.value,data:{href:s.href},index:s.start})})}return r},type:this.type,getAttributes:e=>{var r;return{href:(r=e.data)==null?void 0:r.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:r,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(mbe({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:i=>this.options.isAllowedUri(i,{defaultValidate:o=>!!Dc(o,r),protocols:r,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(gbe({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(ybe({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),bbe=Tbe;const vbe=["http:","https:","mailto:","tel:"],Abe=e=>({href:e.groups.href}),Ebe=e=>(e.pop(),Abe(e)),wbe=bbe.extend({addOptions(){return{...this.parent?.(),relativePath:null}},addAttributes(){return{href:{default:null},title:{default:null}}},inclusive:!1,parseHTML:[{tag:"a[href]",getAttrs:e=>({href:Tk(e),title:e.getAttribute("title")})}],renderHTML(e){const{mark:r}=e;let n;try{const i=new URL(r.attrs.href,window.location);n=vbe.includes(i.protocol)?Ib(r,this.options.relativePath):"#"}catch{n="#"}return["a",{...r.attrs,href:n,"data-text-el":"text-only-link","data-md-href":r.attrs.href,rel:"noopener noreferrer nofollow"},0]},addInputRules(){return[g0({find:/(?:^|\s)\[([\w|\s|-]+)\]\((?<href>.+?)\)$/gm,type:this.type,getAttributes:Ebe})]},addCommands(){return{...this.parent?.(),insertOrSetLink:(e,r)=>({state:n,chain:i,commands:o})=>{if(n.selection.empty){if(Y2(n,this.name)){let s="";return n.selection.$anchor.marks().forEach(a=>{a.attrs.href&&a.type.name==="link"&&(s=a.attrs.href)}),o.deleteRange(y3(n.selection.$anchor,n.schema.marks.link,{href:s})),i().insertContent({type:"text",marks:[{type:"link",attrs:r}],text:e})}return i().insertContent({type:"paragraph",content:[{type:"text",marks:[{type:"link",attrs:r}],text:e}]})}else return o.setLink(r)}}},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")),Wye()]}});var Sbe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Dbe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,xbe=ec.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",gr(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(e,r)=>r.applyMark("strike",r.parseInline(e.tokens||[])),renderMarkdown:(e,r)=>`~~${r.renderChildren(e)}~~`,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[g0({find:Sbe,type:this.type})]},addPasteRules(){return[y0({find:Dbe,type:this.type})]}}),kbe=xbe;const Cbe=kbe.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}});var MB=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,RB=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,BB=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,IB=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,_be=ec.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 b4("strong",{...gr(this.options.HTMLAttributes,e),children:b4("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,r)=>r.applyMark("bold",r.parseInline(e.tokens||[])),renderMarkdown:(e,r)=>`**${r.renderChildren(e)}**`,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[g0({find:MB,type:this.type}),g0({find:BB,type:this.type})]},addPasteRules(){return[y0({find:RB,type:this.type}),y0({find:IB,type:this.type})]}});const Nbe=_be.extend({name:"strong",addInputRules(){return[g0({find:MB,type:this.type})]},addPasteRules(){return[y0({find:RB,type:this.type})]}});var Fbe=ec.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",gr(this.options.HTMLAttributes,e),0]},parseMarkdown(e,r){return r.applyMark(this.name||"underline",r.parseInline(e.tokens||[]))},renderMarkdown(e,r){return`++${r.renderChildren(e)}++`},markdownTokenizer:{name:"underline",level:"inline",start(e){return e.indexOf("++")},tokenize(e,r,n){const i=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!i)return;const o=i[2].trim();return{type:"underline",raw:i[0],text:o,tokens:n.inlineTokens(o)}}},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()}}}),Obe=Fbe;const Mbe=Obe.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[g0({find:BB,type:this.type})]},addPasteRules(){return[y0({find:IB,type:this.type})]}}),Rbe=cbe.extend({name:"em"});function Bbe(e,r,n){const i=({state:o,range:s,match:a})=>{Hu({find:e,type:r,getAttributes:n}).handler({state:o,range:s,match:a}),a.length>=3&&o.tr.insertText(a[2])};return new Xu({find:e,handler:i})}const Ibe=mR.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,parseHTML:e=>e.getAttribute("data-bullet")}}},addInputRules(){return[Bbe(/^\s*([-+*])\s([^\s[]+)$/,this.type)]}}),Lbe={info:t7,success:oF,error:iF,warn:lF},zbe={name:"Callout",components:{NodeViewWrapper:Ia,NodeViewContent:rc},props:{node:{type:Object,required:!0}},computed:{icon(){return Lbe[this.type]||t7},type(){return this.node.attrs.type||"info"},dir(){return this.node.attrs.dir||""}}};var Ybe=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{staticClass:"callout",class:`callout--${e.type}`,attrs:{"data-text-el":"callout",dir:e.dir,as:"div"}},[r(e.icon,{tag:"component",staticClass:"callout__icon"}),r("NodeViewContent",{staticClass:"callout__content"})],1)},Hbe=[],Pbe=Ze(zbe,Ybe,Hbe,!1,null,"17e10ec7");const Zbe=Pbe.exports,$be=tn.create({name:"callout",content:"paragraph+",group:"block",defining:!0,addOptions(){return{types:ZT,HTMLAttributes:{class:"callout"}}},addAttributes(){return{type:{default:"info",rendered:!1,parseHTML:e=>e.getAttribute("data-callout")||ZT.find(r=>e.classList.contains(r))||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:r}){const{class:n}=this.options.HTMLAttributes,i={...this.options.HTMLAttributes,"data-callout":e.attrs.type,class:`${n} ${n}-${e.attrs.type}`};return["div",gr(i,r),0]},toMarkdown:(e,r)=>{e.write("::: "+(r.attrs.type||"info")+` `),e.renderContent(r),e.ensureNewLine(),e.write(":::"),e.closeBlock(r)},addNodeView(){return ua(Zbe)},addCommands(){return{setCallout:e=>({commands:r})=>r.wrapIn(this.name,e),toggleCallout:e=>({commands:r,state:n})=>ta(n,this.name)?ta(n,this.name,e)?r.unsetCallout():r.updateAttributes(this.name,e):r.setCallout(e),unsetCallout:()=>({commands:e})=>e.lift(this.name)}}});function LB(e,r=[]){return e.flatMap(n=>{const i=[...r,...n.properties?n.properties.className:[]];return n.children?LB(n.children,i):{text:n.value,classes:i}})}function VD(e){return e.value||e.children||[]}function Ube(e){return!!SM.getLanguage(e)}function jD({doc:e,name:r,lowlight:n,defaultLanguage:i}){const o=[];return nT(e,s=>s.type.name===r).forEach(s=>{var a;let l=s.pos+1;const u=s.node.attrs.language||i,c=n.listLanguages(),d=u&&(c.includes(u)||Ube(u)||(a=n.registered)!=null&&a.call(n,u))?VD(n.highlight(u,s.node.textContent)):VD(n.highlightAuto(s.node.textContent));LB(d).forEach(h=>{const p=l+h.text.length;if(h.classes.length){const f=kn.inline(l,p,{class:h.classes.join(" ")});o.push(f)}l=p})}),Nr.create(e,o)}function Vbe(e){return typeof e=="function"}function jbe({name:e,lowlight:r,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(o=>Vbe(r[o])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const i=new lr({key:new hr("lowlight"),state:{init:(o,{doc:s})=>jD({doc:s,name:e,lowlight:r,defaultLanguage:n}),apply:(o,s,a,l)=>{const u=a.selection.$head.parent.type.name,c=l.selection.$head.parent.type.name,d=nT(a.doc,p=>p.type.name===e),h=nT(l.doc,p=>p.type.name===e);return o.docChanged&&([u,c].includes(e)||h.length!==d.length||o.steps.some(p=>p.from!==void 0&&p.to!==void 0&&d.some(f=>f.pos>=p.from&&f.pos+f.node.nodeSize<=p.to)))?jD({doc:o.doc,name:e,lowlight:r,defaultLanguage:n}):s.map(o.mapping,o.doc)}},props:{decorations(o){return i.getState(o)}}});return i}var Gbe=Z7.extend({addOptions(){var e;return{...(e=this.parent)==null?void 0:e.call(this),lowlight:{},languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}},addProseMirrorPlugins(){var e;return[...((e=this.parent)==null?void 0:e.call(this))||[],jbe({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),qbe=Gbe;const eo=[];for(let e=0;e<256;++e)eo.push((e+256).toString(16).slice(1));function Wbe(e,r=0){return(eo[e[r+0]]+eo[e[r+1]]+eo[e[r+2]]+eo[e[r+3]]+"-"+eo[e[r+4]]+eo[e[r+5]]+"-"+eo[e[r+6]]+eo[e[r+7]]+"-"+eo[e[r+8]]+eo[e[r+9]]+"-"+eo[e[r+10]]+eo[e[r+11]]+eo[e[r+12]]+eo[e[r+13]]+eo[e[r+14]]+eo[e[r+15]]).toLowerCase()}let dy;const Kbe=new Uint8Array(16);function Qbe(){if(!dy){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");dy=crypto.getRandomValues.bind(crypto)}return dy(Kbe)}const Jbe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),GD={randomUUID:Jbe};function Xbe(e,r,n){e=e||{};const i=e.random??e.rng?.()??Qbe();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Wbe(i)}function eve(e,r,n){return GD.randomUUID&&!e?GD.randomUUID():Xbe(e)}const tve={name:"CodeBracesIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rve=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},nve=[],ive=Ze(tve,rve,nve,!1,null,null);const ove=ive.exports,sve={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ave=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},lve=[],uve=Ze(sve,ave,lve,!1,null,null);const cve=uve.exports,dve={name:"MarkerIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var hve=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("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?r("title",[e._v(e._s(e.title))]):e._e()])])])},pve=[],fve=Ze(dve,hve,pve,!1,null,null);const mve=fve.exports,gve={name:"ViewSplitVerticalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yve=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13,5H21V19H13V5M3,5H11V7H3V5M3,11V9H11V11H3M3,19V17H11V19H3M3,15V13H11V15H3Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Tve=[],bve=Ze(gve,yve,Tve,!1,null,null);const vve=bve.exports,Ave={name:"CodeBlockView",components:{MarkerIcon:mve,ContentCopy:kB,Help:tF,Check:Jv,EyeOutlineIcon:cve,ViewSplitVertical:vve,CodeBraces:ove,NcActions:Nl,NcActionButton:_0,NcActionInput:DF,NcActionLink:hO,NcActionSeparator:I3,NcLoadingIcon:np,NodeViewWrapper:Ia,NodeViewContent:rc},mixins:[CB],props:{node:{type:Object,required:!0},editor:{type:Object,required:!0}},setup(){return{isDarkTheme:q3(),mermaid:null,t:lt}},data(){return{isEditable:!1,viewMode:"preview",targetId:"mermaid-view-"+eve()}},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 pF(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 S1(async()=>{const{default:i}=await import("./mermaid.core-BHWH4e1q.chunk.mjs").then(o=>o.bC);return{default:i}},__vite__mapDeps([23,1,5,7,2,4,8,9]),import.meta.url)).default,this.mermaid.initialize({startOnLoad:!1,theme:this.isDarkTheme?"dark":"default"})),await this.mermaid.parse(e);const{svg:r}=await this.mermaid.render(this.targetId,e),n=document.getElementById(this.targetId);n&&(n.style.display="none"),this.$refs.preview.innerHTML=r}catch(r){console.debug("Invalid mermaid source",r),this.viewMode==="preview"&&(this.viewMode=this.isEditable?"side-by-side":"code")}}}};var Eve=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{staticClass:"code-block",attrs:{as:"div","data-mode":e.viewMode}},[r("div",{staticClass:"code-block-header"},[r("div",{staticClass:"view-switch"},[r("NcActions",{attrs:{"aria-label":e.t("text","Copy code block")}},[e.hasCode?r("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?r("Check",{attrs:{size:20}}):e.copyLoading?r("NcLoadingIcon",{attrs:{size:20}}):r("ContentCopy",{attrs:{size:20}})]},proxy:!0}],null,!1,2104404999)}):e._e()],1),e.isEditable?r("NcActions",{attrs:{"data-cy":"code-action-group","aria-label":e.t("text","Code block options")}},[r("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[r("MarkerIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,3768505569)}),e.supportPreview?r("NcActionSeparator"):e._e(),e.supportPreview?r("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(n){e.viewMode="code"}},scopedSlots:e._u([{key:"icon",fn:function(){return[r("CodeBraces",{attrs:{size:20}})]},proxy:!0}],null,!1,2428748609)},[e._v(" "+e._s(e.t("text","Source code"))+" ")]):e._e(),e.supportPreview?r("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(n){e.viewMode="preview"}},scopedSlots:e._u([{key:"icon",fn:function(){return[r("EyeOutlineIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,1033454938)},[e._v(" "+e._s(e.t("text","Diagram"))+" ")]):e._e(),e.supportPreview?r("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(n){e.viewMode="side-by-side"}},scopedSlots:e._u([{key:"icon",fn:function(){return[r("ViewSplitVertical",{attrs:{size:20}})]},proxy:!0}],null,!1,3354721413)},[e._v(" "+e._s(e.t("text","Both"))+" ")]):e._e(),e.supportPreview?r("NcActionSeparator"):e._e(),e.supportPreview?r("NcActionLink",{attrs:{href:"https://mermaid.js.org/intro/",target:"_blank"},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Help",{attrs:{size:20}})]},proxy:!0}],null,!1,802739225)},[e._v(" "+e._s(e.t("text","Mermaid documentation"))+" ")]):e._e()],1):e._e()],1)]),r("div",{class:{"split-view":e.showCode&&e.showPreview}},[r("pre",{directives:[{name:"show",rawName:"v-show",value:e.showCode,expression:"showCode"}],staticClass:"split-view__code"},[r("NodeViewContent",{attrs:{spellcheck:"false",as:"code",contenteditable:e.isEditable}})],1),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showPreview,expression:"showPreview"}],ref:"preview",staticClass:"split-view__preview",attrs:{contenteditable:!1}}),r("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{id:e.targetId,contenteditable:!1}})])])},wve=[],Sve=Ze(Ave,Eve,wve,!1,null,"223fd069");const Dve=Sve.exports,xve=qbe.extend({parseHTML(){return[{tag:"pre",preserveWhitespace:"full",getContent:(e,r)=>{const n=e.textContent.replace(/\n$/,""),i=n?[r.text(n)]:[];return r.nodes.codeBlock.create(null,i)}}]},toMarkdown(e,r,n,i){r.attrs.params=r.attrs.language;const o=r.textContent.match(/`{3,}/gm),s=o?o.sort().slice(-1)[0]+"`":"```",a=r.attrs.params!=="plaintext"?r.attrs.params:"";e.write(s+(a||"")+` `),e.text(r.textContent,!1),e.ensureNewLine(),e.write(s),e.closeBlock(r)},addNodeView(){return ua(Dve)},addKeyboardShortcuts(){return fR}}),kve={name:"DetailsContent",components:{NodeViewContent:rc,NodeViewWrapper:Ia}};var Cve=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{staticClass:"details-content",attrs:{as:"div"}},[r("NodeViewContent")],1)},_ve=[],Nve=Ze(kve,Cve,_ve,!1,null,null);const Fve=Nve.exports,Ove=tn.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",gr(this.options.HTMLAttributes,e,{class:"details-content"}),0]},addNodeView(){return ua(Fve)},toMarkdown:(e,r)=>{e.renderContent(r),e.ensureNewLine()}}),Mve=tn.create({name:"detailsSummary",content:"text*",defining:!0,selectable:!1,isolating:!0,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"summary"}]},renderHTML({HTMLAttributes:e}){return["summary",gr(this.options.HTMLAttributes,e),0]},toMarkdown:(e,r)=>{e.write("<summary>"),e.renderInline(r),e.write(`</summary> `)}}),Rve={name:"TriangleSmallDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bve=function(){var e=this,r=e._self._c;return r("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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M8 9H16L12 16"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Ive=[],Lve=Ze(Rve,Bve,Ive,!1,null,null);const zve=Lve.exports,Yve={name:"DetailsView",components:{NcButton:as,NodeViewContent:rc,NodeViewWrapper:Ia,TriangleSmallDownIcon:zve},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 Hve=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{staticClass:"details",attrs:{"data-text-el":"details",as:"div"}},[r("NcButton",{attrs:{variant:"tertiary",size:"small"},scopedSlots:e._u([{key:"icon",fn:function(){return[r("TriangleSmallDownIcon",{staticClass:"button-open",class:{open:e.open},attrs:{size:20},on:{click:e.toggleOpen}})]},proxy:!0}])}),r("NodeViewContent",{staticClass:"details-container",class:{"is-hidden":!e.open}})],1)},Pve=[],Zve=Ze(Yve,Hve,Pve,!1,null,"da722645");const $ve=Zve.exports;function qD(e,r){for(let n=e.depth;n>0;n-=1){const i=e.node(n);if(i.type===r.nodes.details)return{pos:n>0?e.before(n):0,node:i}}}function WD(e,r){const n=[];return e.descendants((i,o)=>{if(i.type===r)return n.push(i),!1}),n.length>0?n[0]:null}const Uve=tn.create({name:"details",content:"detailsSummary detailsContent",group:"block",defining:!0,isolating:!0,allowGapCursor:!1,addExtensions(){return[Ove,Mve]},addOptions(){return{HTMLAttributes:{}}},addAttributes(){return{openDetails:{default:!1}}},parseHTML(){return[{tag:"details"}]},renderHTML({HTMLAttributes:e}){return["details",gr(this.options.HTMLAttributes,e),0]},addNodeView(){return ua($ve)},toMarkdown:(e,r)=>{e.write(`<details> `),e.renderContent(r),e.closeBlock(r),e.ensureNewLine(),e.write("</details>"),e.ensureNewLine()},addCommands(){return{setDetails:()=>({commands:e,state:r,chain:n})=>{const{schema:i,selection:o}=r,{$from:s,$to:a}=o,l=s.blockRange(a);if(!l)return!1;const u=r.doc.slice(l.start,l.end);if(!i.nodes.detailsContent.contentMatch.matchFragment(u.content))return!1;const c=u.toJSON()?.content||[];return n().insertContentAt({from:l.start,to:l.end},{type:this.name,attrs:{openDetails:!0},content:[{type:"detailsSummary"},{type:"detailsContent",content:c}]}).setTextSelection(l.start+2).run()},unsetDetails:()=>({state:e,chain:r})=>{const{schema:n,selection:i}=e,o=qD(i.$from,n);if(!o)return!1;const s=WD(o.node,n.nodes.detailsContent);if(!s)return!1;const a=s.content.toJSON(),l={from:o.pos,to:o.pos+o.node.nodeSize};return r().insertContentAt(l,a).setTextSelection(o.pos+1).run()},toggleDetails:()=>({commands:e,state:r})=>ta(r,this.name)?e.unsetDetails():e.setDetails()}},addKeyboardShortcuts(){return{Enter:({editor:e})=>{const{state:r}=e,{schema:n,selection:i}=r,{$from:o}=i;if(o.parent.type!==n.nodes.detailsSummary)return!1;const s=qD(o,n);return s.node.attrs.openDetails||e.commands.updateAttributes("details",{openDetails:!0}),!WD(s.node,n.nodes.detailsContent)||!r.doc.nodeAt(o.after())?.type===n.nodes.detailsContent?!1:e.commands.setTextSelection(o.after())},Backspace:({editor:e})=>{const{state:r}=e,{schema:n,selection:i}=r,{$from:o}=i;return o.parent.type!==n.nodes.detailsSummary||o.parent.textContent!==""?!1:e.commands.unsetDetails()}}}}),Vve=Z7.extend({name:"frontMatter",draggable:!1,renderHTML({node:e,HTMLAttributes:r}){return this.parent({node:e,HTMLAttributes:gr(r,{"data-title":lt("text","Front matter"),class:"frontmatter"})})},parseHTML(){return[{tag:"pre#frontmatter",preserveWhitespace:"full",priority:9001,attrs:{language:"yaml"}}]},toMarkdown:(e,r)=>{if(!e.out.match(/^\s*/))throw Error("FrontMatter must be the first node of the document!");const n=r.textContent,i=n.match(/-{3,}/gm),o=i?i.sort().slice(-1)[0]+"-":"---";e.write(""),e.out="",e.write(`${o} `),e.text(n,!1),e.ensureNewLine(),e.write(o),e.closeBlock(r)},addInputRules(){return[{find:/^---$/g,handler:({state:e,range:r,chain:n})=>r.from===1?e.doc.resolve(1).parent.type.name===this.name?!1:(n().deleteRange(r).insertContentAt(0,{type:this.name}),!0):!1}]},addCommands(){return{}},addPasteRules:()=>[],addProseMirrorPlugins:()=>[]});var jve=tn.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",gr(this.options.HTMLAttributes,e)]},renderText(){return` `},renderMarkdown:()=>` `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:e,chain:r,state:n,editor:i})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:o,storedMarks:s}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:l}=i.extensionManager,u=s||o.$to.parentOffset&&o.$from.marks();return r().insertContent({type:this.name}).command(({tr:c,dispatch:d})=>{if(d&&u&&a){const h=u.filter(p=>l.includes(p.type.name));c.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Gve=jve;const qve=Gve.extend({addAttributes(){return{syntax:{default:" ",rendered:!1,keepOnSplit:!0,parseHTML:e=>e.getAttribute("data-syntax")||" "}}},addCommands(){return{...this?.parent(),setHardBreak:()=>e=>{for(let r=e.state.selection.$from.depth;r>=0;r--)if(e.state.selection.$from.node(r).type.name==="heading")return!1;return this.parent().setHardBreak()(e)}}},toMarkdown(e,r,n,i){for(let o=i+1;o<n.childCount;o++)if(n.child(o).type!==r.type){r.attrs.syntax!=="html"?(e.write(r.attrs.syntax),n.child(o).text?.startsWith(` `)||e.write(` `)):e.write("<br />");return}}});var Wve=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Kve=tn.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},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},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",gr(this.options.HTMLAttributes,e)]},parseMarkdown:(e,r)=>r.createNode("image",{src:e.href,title:e.title,alt:e.text}),renderMarkdown:e=>{var r,n,i,o,s,a;const l=(n=(r=e.attrs)==null?void 0:r.src)!=null?n:"",u=(o=(i=e.attrs)==null?void 0:i.alt)!=null?o:"",c=(a=(s=e.attrs)==null?void 0:s.title)!=null?a:"";return c?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:e,minWidth:r,minHeight:n,alwaysPreserveAspectRatio:i}=this.options.resize;return({node:o,getPos:s,HTMLAttributes:a,editor:l})=>{const u=document.createElement("img");Object.entries(a).forEach(([h,p])=>{if(p!=null)switch(h){case"width":case"height":break;default:u.setAttribute(h,p);break}}),u.src=a.src;const c=new y$({element:u,editor:l,node:o,getPos:s,onResize:(h,p)=>{u.style.width=`${h}px`,u.style.height=`${p}px`},onCommit:(h,p)=>{const f=s();f!==void 0&&this.editor.chain().setNodeSelection(f).updateAttributes(this.name,{width:h,height:p}).run()},onUpdate:(h,p,f)=>h.type===o.type,options:{directions:e,min:{width:r,height:n},preserveAspectRatio:i===!0}}),d=c.dom;return d.style.visibility="hidden",d.style.pointerEvents="none",u.onload=()=>{d.style.visibility="",d.style.pointerEvents=""},c}},addCommands(){return{setImage:e=>({commands:r})=>r.insertContent({type:this.name,attrs:e})}},addInputRules(){return[b_({find:Wve,type:this.type,getAttributes:e=>{const[,,r,n,i]=e;return{src:n,alt:r,title:i}}})]}}),zB=Kve;function KD(e){const r=[];return e.descendants(n=>{n.type.name!=="image"&&n.type.name!=="imageInline"||n.attrs.src&&r.push(n.attrs.src)}),r}var QD={exports:{}},JD;function Qve(){return JD||(JD=1,(function(e,r){function n(s){return typeof s.value!="function"?(console.warn("[Vue-click-outside:] provided expression",s.expression,"is not a function."),!1):!0}function i(s,a){if(!s||!a)return!1;for(var l=0,u=a.length;l<u;l++)try{if(s.contains(a[l]))return!0;if(a[l].contains(s))return!1}catch{return!1}return!1}function o(s){return typeof s.componentInstance<"u"&&s.componentInstance.$isServer}e.exports={bind:function(s,a,l){if(!n(a))return;function u(d){if(l.context){var h=d.path||d.composedPath&&d.composedPath();h&&h.length>0&&h.unshift(d.target),!(s.contains(d.target)||i(l.context.popupItem,h))&&s.__vueClickOutside__.callback(d)}}s.__vueClickOutside__={handler:u,callback:a.value};const c="ontouchstart"in document.documentElement?"touchstart":"click";!o(l)&&document.addEventListener(c,u)},update:function(s,a){n(a)&&(s.__vueClickOutside__.callback=a.value)},unbind:function(s,a,l){const u="ontouchstart"in document.documentElement?"touchstart":"click";!o(l)&&s.__vueClickOutside__&&document.removeEventListener(u,s.__vueClickOutside__.handler),delete s.__vueClickOutside__}}})(QD)),QD.exports}var Jve=Qve();const Xve=D0(Jve),e7e={name:"ShowImageModal",components:{NcModal:Vf},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 t7e=function(){var e=this,r=e._self._c;return e.show?r("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")}}},[r("div",{staticClass:"modal__content"},[r("img",{attrs:{src:e.currentImage.previewUrl}})])]):e._e()},r7e=[],n7e=Ze(e7e,t7e,r7e,!1,null,"de2685d2");const i7e=n7e.exports;class XD extends Error{constructor(r,n){super(r?.message||lt("text","Failed to load")),this.reason=r,this.imageUrl=n}}const o7e={name:"ImageView",components:{ImageIcon:vX,DeleteIcon:R3,NcButton:as,NcBlurHash:M4e,ShowImageModal:i7e,NodeViewWrapper:Ia},directives:{ClickOutside:Xve},mixins:[mz],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,r=this.wrapperWidth-12>this.imageWidth?this.imageWidth:this.wrapperWidth-12,n=r/e;return{width:`${r}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},r=(n,i)=>{n[0].isIntersecting&&(i.disconnect(),this.loadPreview().catch(this.onImageLoadFailure))};this.loadIntersectionObserver=new IntersectionObserver(r,e),this.loadIntersectionObserver.observe(this.$el)})},beforeUnmount(){this.loadIntersectionObserver?.disconnect(),this.resizeObserver?.disconnect()},methods:{setupResizeObserver(){this.$refs.wrapper&&(this.resizeObserver=new ResizeObserver(e=>{const r=e[0].contentRect.width;r>0&&(this.wrapperWidth=r)}),this.resizeObserver.observe(this.$refs.wrapper))},async loadAttachmentMetadata(){try{this.attachment=await this.attachmentPromise;const e=this.attachment?.metadata||null;if(e){const r=e["photos-size"]?.value;this.imageWidth=r?.width||0,this.imageHeight=r?.height||0,this.imageBlurhash=e.blurhash?.value||null}}catch(e){bi.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,r)=>{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=i=>{r(new XD(i,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 XD&&(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 r of e){const n=r.getAttribute("data-src");if(!this.embeddedImageList.find(i=>i.src===n)){const i=await this.$attachmentResolver.resolve(r.getAttribute("data-src"));this.embeddedImageList.push({src:n,...i})}}},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),uu(lt("text","Could not find image in attachments list.")))},onDelete(){Io("text:image-node:delete",this.imageUrl),this.deleteNode()},t:lt}};var s7e=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{attrs:{contenteditable:e.isEditable}},[r("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?r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:(()=>e.showIcons=!1),expression:"() => (showIcons = false)"}],staticClass:"image__view",on:{mouseenter:function(n){e.showIcons=!0},mouseleave:function(n){e.showIcons=!1}}},[r("transition",{attrs:{name:"fade"}},[e.failed?[r("ImageIcon",{staticClass:"image__main image__main--broken-icon",attrs:{size:100}})]:[e.isMediaAttachment?r("div",{staticClass:"media",attrs:{contenteditable:"false"},on:{click:e.handleAttachmentClick}},[r("div",{staticClass:"media__wrapper"},[r("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}}),r("div",{staticClass:"metadata"},[r("span",{staticClass:"name"},[e._v(e._s(e.alt))]),r("span",{staticClass:"size"},[e._v(e._s(e.attachmentSize))])])]),e.showDeleteIcon?r("div",{staticClass:"buttons"},[r("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[r("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):e._e()]):r("div",{staticClass:"media",attrs:{contenteditable:"false"}},[r("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),r("transition",{attrs:{name:"fade"}},[e.isMediaAttachment?e._e():r("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__caption",attrs:{title:e.alt}},[e.isEditable?r("div",{staticClass:"image__caption__wrapper"},[r("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?r("div",{staticClass:"image__caption__delete",attrs:{contenteditable:"false"}},[r("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[r("DeleteIcon")]},proxy:!0}],null,!1,3930079857)})],1):e._e()]):r("figcaption",[e._v(" "+e._s(e.alt)+" ")])])]),r("div",{staticClass:"image__modal"},[r("ShowImageModal",{attrs:{images:e.embeddedImageList,"start-index":e.imageIndex,show:e.showImageModal},on:{close:function(n){e.showImageModal=!1}}})],1)],1):e.canDisplayPlaceholder?r("div",{staticClass:"image__placeholder"},[r("NcBlurHash",{style:e.blurhashSize,attrs:{hash:e.imageBlurhash,"aria-hidden":"true"}})],1):r("div",{staticClass:"image-view__cant_display"},[r("transition",{attrs:{name:"fade"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.loaded,expression:"loaded"}],staticClass:"image__caption"},[r("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?r("small",{staticClass:"image__error-message"},[e._v(" "+e._s(e.errorMessage)+" ")]):e._e()])])},a7e=[],l7e=Ze(o7e,s7e,a7e,!1,null,"af4e0b78");const YB=l7e.exports,u7e=new hr("imageFileDrop"),c7e=new hr("imageExtractAttachments"),d7e=zB.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 ua(YB)},addProseMirrorPlugins(){return[new lr({key:u7e,props:{handleDrop:(e,r,n)=>{if(r.dataTransfer.files&&r.dataTransfer.files.length>0){const i=e.posAtCoords({left:r.clientX,top:r.clientY}),o=new CustomEvent("file-drop",{bubbles:!0,detail:{files:r.dataTransfer.files,position:i.pos}});return r.target.dispatchEvent(o),!0}},handlePaste:(e,r,n)=>{if(r.clipboardData.files&&r.clipboardData.files.length>0){const i=new CustomEvent("image-paste",{bubbles:!0,detail:{files:r.clipboardData.files}});return r.target.dispatchEvent(i),!0}}}}),new lr({key:c7e,state:{init(e,{doc:r}){const n=KD(r);return Io("text:editor:attachments:updated",{attachmentSrcs:n}),{attachmentSrcs:n}},apply(e,r,n,i){if(!e.docChanged)return r;const o=KD(i.doc);return JSON.stringify(o)===JSON.stringify(r?.attachmentSrcs)?r:(Io("text:editor:attachments:updated",{attachmentSrcs:o}),{attachmentSrcs:o})}}})]},toMarkdown(e,r,n,i){r.attrs.alt=r.attrs.alt.toString(),nm.nodes.image(e,r,n,i),e.closeBlock(r)}}),h7e=zB.extend({name:"imageInline",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 ua(YB)},toMarkdown(e,r,n,i){return nm.nodes.image(e,r,n,i)}});class Wo{constructor(r,n,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=r,this.start=n,this.end=i}static range(r,n){return n?!r||!r.loc||!n.loc||r.loc.lexer!==n.loc.lexer?null:new Wo(r.loc.lexer,r.loc.start,n.loc.end):r&&r.loc}}class Os{constructor(r,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=r,this.loc=n}range(r,n){return new Os(n,Wo.range(this,r))}}class nt{constructor(r,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var i="KaTeX parse error: "+r,o,s,a=n&&n.loc;if(a&&a.start<=a.end){var l=a.lexer.input;o=a.start,s=a.end,o===l.length?i+=" at end of input: ":i+=" at position "+(o+1)+": ";var u=l.slice(o,s).replace(/[^]/g,"$&̲"),c;o>15?c="…"+l.slice(o-15,o):c=l.slice(0,o);var d;s+15<l.length?d=l.slice(s,s+15)+"…":d=l.slice(s),i+=c+u+d}var h=new Error(i);return h.name="ParseError",h.__proto__=nt.prototype,h.position=o,o!=null&&s!=null&&(h.length=s-o),h.rawMessage=r,h}}nt.prototype.__proto__=Error.prototype;var p7e=function(e,r){return e===void 0?r:e},f7e=/([A-Z])/g,m7e=function(e){return e.replace(f7e,"-$1").toLowerCase()},g7e={"&":"&",">":">","<":"<",'"':""","'":"'"},y7e=/[&><"']/g;function T7e(e){return String(e).replace(y7e,r=>g7e[r])}var HB=function e(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?e(r.body[0]):r:r.type==="font"?e(r.body):r},b7e=function(e){var r=HB(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},v7e=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},A7e=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},Ur={deflt:p7e,escape:T7e,hyphenate:m7e,getBaseElem:HB,isCharacterBox:b7e,protocolFromUrl:A7e},W1={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,r)=>(r.push(e),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function E7e(e){if(e.default)return e.default;var r=e.type,n=Array.isArray(r)?r[0]:r;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class pA{constructor(r){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,r=r||{};for(var n in W1)if(W1.hasOwnProperty(n)){var i=W1[n];this[n]=r[n]!==void 0?i.processor?i.processor(r[n]):r[n]:E7e(i)}}reportNonstrict(r,n,i){var o=this.strict;if(typeof o=="function"&&(o=o(r,n,i)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new nt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+r+"]"),i);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+r+"]"))}}useStrictBehavior(r,n,i){var o=this.strict;if(typeof o=="function")try{o=o(r,n,i)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+r+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+n+" ["+r+"]")),!1)}isTrusted(r){if(r.url&&!r.protocol){var n=Ur.protocolFromUrl(r.url);if(n==null)return!1;r.protocol=n}var i=typeof this.trust=="function"?this.trust(r):this.trust;return!!i}}class X0{constructor(r,n,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=r,this.size=n,this.cramped=i}sup(){return pl[w7e[this.id]]}sub(){return pl[S7e[this.id]]}fracNum(){return pl[D7e[this.id]]}fracDen(){return pl[x7e[this.id]]}cramp(){return pl[k7e[this.id]]}text(){return pl[C7e[this.id]]}isTight(){return this.size>=2}}var fA=0,X4=1,Dh=2,m0=3,$f=4,Gs=5,tp=6,Oo=7,pl=[new X0(fA,0,!1),new X0(X4,0,!0),new X0(Dh,1,!1),new X0(m0,1,!0),new X0($f,2,!1),new X0(Gs,2,!0),new X0(tp,3,!1),new X0(Oo,3,!0)],w7e=[$f,Gs,$f,Gs,tp,Oo,tp,Oo],S7e=[Gs,Gs,Gs,Gs,Oo,Oo,Oo,Oo],D7e=[Dh,m0,$f,Gs,tp,Oo,tp,Oo],x7e=[m0,m0,Gs,Gs,Oo,Oo,Oo,Oo],k7e=[X4,X4,m0,m0,Gs,Gs,Oo,Oo],C7e=[fA,X4,Dh,m0,Dh,m0,Dh,m0],er={DISPLAY:pl[fA],TEXT:pl[Dh],SCRIPT:pl[$f],SCRIPTSCRIPT:pl[tp]},bb=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function _7e(e){for(var r=0;r<bb.length;r++)for(var n=bb[r],i=0;i<n.blocks.length;i++){var o=n.blocks[i];if(e>=o[0]&&e<=o[1])return n.name}return null}var E2=[];bb.forEach(e=>e.blocks.forEach(r=>E2.push(...r)));function PB(e){for(var r=0;r<E2.length;r+=2)if(e>=E2[r]&&e<=E2[r+1])return!0;return!1}var jd=80,N7e=function(e,r){return"M95,"+(622+e+r)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+e/2.075+" -"+e+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},F7e=function(e,r){return"M263,"+(601+e+r)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+e)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},O7e=function(e,r){return"M983 "+(10+e+r)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+e)+" "+r+"h400000v"+(40+e)+"h-400000z"},M7e=function(e,r){return"M424,"+(2398+e+r)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+r+` h400000v`+(40+e)+"h-400000z"},R7e=function(e,r){return"M473,"+(2713+e+r)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+e)+" "+r+"h400000v"+(40+e)+"H1017.7z"},B7e=function(e){var r=e/2;return"M400000 "+e+" H0 L"+r+" 0 l65 45 L145 "+(e-80)+" H400000z"},I7e=function(e,r,n){var i=n-54-r-e;return"M702 "+(e+r)+"H400000"+(40+e)+` H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+r+"H400000v"+(40+e)+"H742z"},L7e=function(e,r,n){r=1e3*r;var i="";switch(e){case"sqrtMain":i=N7e(r,jd);break;case"sqrtSize1":i=F7e(r,jd);break;case"sqrtSize2":i=O7e(r,jd);break;case"sqrtSize3":i=M7e(r,jd);break;case"sqrtSize4":i=R7e(r,jd);break;case"sqrtTall":i=I7e(r,jd,n)}return i},z7e=function(e,r){switch(e){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},ex={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 435 0h399565z`,leftgroupunder:`M400000 262 H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Y7e=function(e,r){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class lm{constructor(r){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=r,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(r){return this.classes.includes(r)}toNode(){for(var r=document.createDocumentFragment(),n=0;n<this.children.length;n++)r.appendChild(this.children[n].toNode());return r}toMarkup(){for(var r="",n=0;n<this.children.length;n++)r+=this.children[n].toMarkup();return r}toText(){var r=n=>n.toText();return this.children.map(r).join("")}}var yl={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Rg={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},tx={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function ZB(e,r){yl[e]=r}function mA(e,r,n){if(!yl[r])throw new Error("Font metrics not found for font: "+r+".");var i=e.charCodeAt(0),o=yl[r][i];if(!o&&e[0]in tx&&(i=tx[e[0]].charCodeAt(0),o=yl[r][i]),!o&&n==="text"&&PB(i)&&(o=yl[r][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var hy={};function H7e(e){var r;if(e>=5?r=0:e>=3?r=1:r=2,!hy[r]){var n=hy[r]={cssEmPerMu:Rg.quad[r]/18};for(var i in Rg)Rg.hasOwnProperty(i)&&(n[i]=Rg[i][r])}return hy[r]}var P7e=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],rx=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],nx=function(e,r){return r.size<2?e:P7e[e-1][r.size-1]};class e0{constructor(r){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=r.style,this.color=r.color,this.size=r.size||e0.BASESIZE,this.textSize=r.textSize||this.size,this.phantom=!!r.phantom,this.font=r.font||"",this.fontFamily=r.fontFamily||"",this.fontWeight=r.fontWeight||"",this.fontShape=r.fontShape||"",this.sizeMultiplier=rx[this.size-1],this.maxSize=r.maxSize,this.minRuleThickness=r.minRuleThickness,this._fontMetrics=void 0}extend(r){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i]);return new e0(n)}havingStyle(r){return this.style===r?this:this.extend({style:r,size:nx(this.textSize,r)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(r){return this.size===r&&this.textSize===r?this:this.extend({style:this.style.text(),size:r,textSize:r,sizeMultiplier:rx[r-1]})}havingBaseStyle(r){r=r||this.style.text();var n=nx(e0.BASESIZE,r);return this.size===n&&this.textSize===e0.BASESIZE&&this.style===r?this:this.extend({style:r,size:n})}havingBaseSizing(){var r;switch(this.style.id){case 4:case 5:r=3;break;case 6:case 7:r=1;break;default:r=6}return this.extend({style:this.style.text(),size:r})}withColor(r){return this.extend({color:r})}withPhantom(){return this.extend({phantom:!0})}withFont(r){return this.extend({font:r})}withTextFontFamily(r){return this.extend({fontFamily:r,font:""})}withTextFontWeight(r){return this.extend({fontWeight:r,font:""})}withTextFontShape(r){return this.extend({fontShape:r,font:""})}sizingClasses(r){return r.size!==this.size?["sizing","reset-size"+r.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==e0.BASESIZE?["sizing","reset-size"+this.size,"size"+e0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=H7e(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}e0.BASESIZE=6;var vb={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Z7e={ex:!0,em:!0,mu:!0},$B=function(e){return typeof e!="string"&&(e=e.unit),e in vb||e in Z7e||e==="ex"},Jn=function(e,r){var n;if(e.unit in vb)n=vb[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new nt("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},gt=function(e){return+e.toFixed(4)+"em"},qu=function(e){return e.filter(r=>r).join(" ")},UB=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},VB=function(e){var r=document.createElement(e);r.className=qu(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},$7e=/[\s"'>/=\x00-\x1f]/,jB=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+Ur.escape(qu(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=Ur.hyphenate(i)+":"+this.style[i]+";");n&&(r+=' style="'+Ur.escape(n)+'"');for(var o in this.attributes)if(this.attributes.hasOwnProperty(o)){if($7e.test(o))throw new nt("Invalid attribute name '"+o+"'");r+=" "+o+'="'+Ur.escape(this.attributes[o])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+e+">",r};let um=class{constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,UB.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return VB.call(this,"span")}toMarkup(){return jB.call(this,"span")}};class gA{constructor(r,n,i,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,UB.call(this,n,o),this.children=i||[],this.setAttribute("href",r)}setAttribute(r,n){this.attributes[r]=n}hasClass(r){return this.classes.includes(r)}toNode(){return VB.call(this,"a")}toMarkup(){return jB.call(this,"a")}}class U7e{constructor(r,n,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=r,this.classes=["mord"],this.style=i}hasClass(r){return this.classes.includes(r)}toNode(){var r=document.createElement("img");r.src=this.src,r.alt=this.alt,r.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);return r}toMarkup(){var r='<img src="'+Ur.escape(this.src)+'"'+(' alt="'+Ur.escape(this.alt)+'"'),n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=Ur.hyphenate(i)+":"+this.style[i]+";");return n&&(r+=' style="'+Ur.escape(n)+'"'),r+="'/>",r}}var V7e={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class sa{constructor(r,n,i,o,s,a,l,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=r,this.height=n||0,this.depth=i||0,this.italic=o||0,this.skew=s||0,this.width=a||0,this.classes=l||[],this.style=u||{},this.maxFontSize=0;var c=_7e(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=V7e[this.text])}hasClass(r){return this.classes.includes(r)}toNode(){var r=document.createTextNode(this.text),n=null;this.italic>0&&(n=document.createElement("span"),n.style.marginRight=gt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=qu(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(n=n||document.createElement("span"),n.style[i]=this.style[i]);return n?(n.appendChild(r),n):r}toMarkup(){var r=!1,n="<span";this.classes.length&&(r=!0,n+=' class="',n+=Ur.escape(qu(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var o in this.style)this.style.hasOwnProperty(o)&&(i+=Ur.hyphenate(o)+":"+this.style[o]+";");i&&(r=!0,n+=' style="'+Ur.escape(i)+'"');var s=Ur.escape(this.text);return r?(n+=">",n+=s,n+="</span>",n):s}}class E0{constructor(r,n){this.children=void 0,this.attributes=void 0,this.children=r||[],this.attributes=n||{}}toNode(){var r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"svg");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&n.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)n.appendChild(this.children[o].toNode());return n}toMarkup(){var r='<svg xmlns="http://www.w3.org/2000/svg"';for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(r+=" "+n+'="'+Ur.escape(this.attributes[n])+'"');r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</svg>",r}}class Wu{constructor(r,n){this.pathName=void 0,this.alternate=void 0,this.pathName=r,this.alternate=n}toNode(){var r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",ex[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Ur.escape(this.alternate)+'"/>':'<path d="'+Ur.escape(ex[this.pathName])+'"/>'}}class Ab{constructor(r){this.attributes=void 0,this.attributes=r||{}}toNode(){var r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"line");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var r="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(r+=" "+n+'="'+Ur.escape(this.attributes[n])+'"');return r+="/>",r}}function ix(e){if(e instanceof sa)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function j7e(e){if(e instanceof um)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var G7e={bin:1,close:1,inner:1,open:1,punct:1,rel:1},q7e={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Fn={math:{},text:{}};function F(e,r,n,i,o,s){Fn[e][o]={font:r,group:n,replace:i},s&&i&&(Fn[e][i]=Fn[e][o])}var B="math",qe="text",$="main",le="ams",Vn="accent-token",St="bin",xo="close",Gd="inner",Xt="mathord",Ti="op-token",vs="open",Bg="punct",ce="rel",Gl="spacing",Ae="textord";F(B,$,ce,"≡","\\equiv",!0),F(B,$,ce,"≺","\\prec",!0),F(B,$,ce,"≻","\\succ",!0),F(B,$,ce,"∼","\\sim",!0),F(B,$,ce,"⊥","\\perp"),F(B,$,ce,"⪯","\\preceq",!0),F(B,$,ce,"⪰","\\succeq",!0),F(B,$,ce,"≃","\\simeq",!0),F(B,$,ce,"∣","\\mid",!0),F(B,$,ce,"≪","\\ll",!0),F(B,$,ce,"≫","\\gg",!0),F(B,$,ce,"≍","\\asymp",!0),F(B,$,ce,"∥","\\parallel"),F(B,$,ce,"⋈","\\bowtie",!0),F(B,$,ce,"⌣","\\smile",!0),F(B,$,ce,"⊑","\\sqsubseteq",!0),F(B,$,ce,"⊒","\\sqsupseteq",!0),F(B,$,ce,"≐","\\doteq",!0),F(B,$,ce,"⌢","\\frown",!0),F(B,$,ce,"∋","\\ni",!0),F(B,$,ce,"∝","\\propto",!0),F(B,$,ce,"⊢","\\vdash",!0),F(B,$,ce,"⊣","\\dashv",!0),F(B,$,ce,"∋","\\owns"),F(B,$,Bg,".","\\ldotp"),F(B,$,Bg,"⋅","\\cdotp"),F(B,$,Ae,"#","\\#"),F(qe,$,Ae,"#","\\#"),F(B,$,Ae,"&","\\&"),F(qe,$,Ae,"&","\\&"),F(B,$,Ae,"ℵ","\\aleph",!0),F(B,$,Ae,"∀","\\forall",!0),F(B,$,Ae,"ℏ","\\hbar",!0),F(B,$,Ae,"∃","\\exists",!0),F(B,$,Ae,"∇","\\nabla",!0),F(B,$,Ae,"♭","\\flat",!0),F(B,$,Ae,"ℓ","\\ell",!0),F(B,$,Ae,"♮","\\natural",!0),F(B,$,Ae,"♣","\\clubsuit",!0),F(B,$,Ae,"℘","\\wp",!0),F(B,$,Ae,"♯","\\sharp",!0),F(B,$,Ae,"♢","\\diamondsuit",!0),F(B,$,Ae,"ℜ","\\Re",!0),F(B,$,Ae,"♡","\\heartsuit",!0),F(B,$,Ae,"ℑ","\\Im",!0),F(B,$,Ae,"♠","\\spadesuit",!0),F(B,$,Ae,"§","\\S",!0),F(qe,$,Ae,"§","\\S"),F(B,$,Ae,"¶","\\P",!0),F(qe,$,Ae,"¶","\\P"),F(B,$,Ae,"†","\\dag"),F(qe,$,Ae,"†","\\dag"),F(qe,$,Ae,"†","\\textdagger"),F(B,$,Ae,"‡","\\ddag"),F(qe,$,Ae,"‡","\\ddag"),F(qe,$,Ae,"‡","\\textdaggerdbl"),F(B,$,xo,"⎱","\\rmoustache",!0),F(B,$,vs,"⎰","\\lmoustache",!0),F(B,$,xo,"⟯","\\rgroup",!0),F(B,$,vs,"⟮","\\lgroup",!0),F(B,$,St,"∓","\\mp",!0),F(B,$,St,"⊖","\\ominus",!0),F(B,$,St,"⊎","\\uplus",!0),F(B,$,St,"⊓","\\sqcap",!0),F(B,$,St,"∗","\\ast"),F(B,$,St,"⊔","\\sqcup",!0),F(B,$,St,"◯","\\bigcirc",!0),F(B,$,St,"∙","\\bullet",!0),F(B,$,St,"‡","\\ddagger"),F(B,$,St,"≀","\\wr",!0),F(B,$,St,"⨿","\\amalg"),F(B,$,St,"&","\\And"),F(B,$,ce,"⟵","\\longleftarrow",!0),F(B,$,ce,"⇐","\\Leftarrow",!0),F(B,$,ce,"⟸","\\Longleftarrow",!0),F(B,$,ce,"⟶","\\longrightarrow",!0),F(B,$,ce,"⇒","\\Rightarrow",!0),F(B,$,ce,"⟹","\\Longrightarrow",!0),F(B,$,ce,"↔","\\leftrightarrow",!0),F(B,$,ce,"⟷","\\longleftrightarrow",!0),F(B,$,ce,"⇔","\\Leftrightarrow",!0),F(B,$,ce,"⟺","\\Longleftrightarrow",!0),F(B,$,ce,"↦","\\mapsto",!0),F(B,$,ce,"⟼","\\longmapsto",!0),F(B,$,ce,"↗","\\nearrow",!0),F(B,$,ce,"↩","\\hookleftarrow",!0),F(B,$,ce,"↪","\\hookrightarrow",!0),F(B,$,ce,"↘","\\searrow",!0),F(B,$,ce,"↼","\\leftharpoonup",!0),F(B,$,ce,"⇀","\\rightharpoonup",!0),F(B,$,ce,"↙","\\swarrow",!0),F(B,$,ce,"↽","\\leftharpoondown",!0),F(B,$,ce,"⇁","\\rightharpoondown",!0),F(B,$,ce,"↖","\\nwarrow",!0),F(B,$,ce,"⇌","\\rightleftharpoons",!0),F(B,le,ce,"≮","\\nless",!0),F(B,le,ce,"","\\@nleqslant"),F(B,le,ce,"","\\@nleqq"),F(B,le,ce,"⪇","\\lneq",!0),F(B,le,ce,"≨","\\lneqq",!0),F(B,le,ce,"","\\@lvertneqq"),F(B,le,ce,"⋦","\\lnsim",!0),F(B,le,ce,"⪉","\\lnapprox",!0),F(B,le,ce,"⊀","\\nprec",!0),F(B,le,ce,"⋠","\\npreceq",!0),F(B,le,ce,"⋨","\\precnsim",!0),F(B,le,ce,"⪹","\\precnapprox",!0),F(B,le,ce,"≁","\\nsim",!0),F(B,le,ce,"","\\@nshortmid"),F(B,le,ce,"∤","\\nmid",!0),F(B,le,ce,"⊬","\\nvdash",!0),F(B,le,ce,"⊭","\\nvDash",!0),F(B,le,ce,"⋪","\\ntriangleleft"),F(B,le,ce,"⋬","\\ntrianglelefteq",!0),F(B,le,ce,"⊊","\\subsetneq",!0),F(B,le,ce,"","\\@varsubsetneq"),F(B,le,ce,"⫋","\\subsetneqq",!0),F(B,le,ce,"","\\@varsubsetneqq"),F(B,le,ce,"≯","\\ngtr",!0),F(B,le,ce,"","\\@ngeqslant"),F(B,le,ce,"","\\@ngeqq"),F(B,le,ce,"⪈","\\gneq",!0),F(B,le,ce,"≩","\\gneqq",!0),F(B,le,ce,"","\\@gvertneqq"),F(B,le,ce,"⋧","\\gnsim",!0),F(B,le,ce,"⪊","\\gnapprox",!0),F(B,le,ce,"⊁","\\nsucc",!0),F(B,le,ce,"⋡","\\nsucceq",!0),F(B,le,ce,"⋩","\\succnsim",!0),F(B,le,ce,"⪺","\\succnapprox",!0),F(B,le,ce,"≆","\\ncong",!0),F(B,le,ce,"","\\@nshortparallel"),F(B,le,ce,"∦","\\nparallel",!0),F(B,le,ce,"⊯","\\nVDash",!0),F(B,le,ce,"⋫","\\ntriangleright"),F(B,le,ce,"⋭","\\ntrianglerighteq",!0),F(B,le,ce,"","\\@nsupseteqq"),F(B,le,ce,"⊋","\\supsetneq",!0),F(B,le,ce,"","\\@varsupsetneq"),F(B,le,ce,"⫌","\\supsetneqq",!0),F(B,le,ce,"","\\@varsupsetneqq"),F(B,le,ce,"⊮","\\nVdash",!0),F(B,le,ce,"⪵","\\precneqq",!0),F(B,le,ce,"⪶","\\succneqq",!0),F(B,le,ce,"","\\@nsubseteqq"),F(B,le,St,"⊴","\\unlhd"),F(B,le,St,"⊵","\\unrhd"),F(B,le,ce,"↚","\\nleftarrow",!0),F(B,le,ce,"↛","\\nrightarrow",!0),F(B,le,ce,"⇍","\\nLeftarrow",!0),F(B,le,ce,"⇏","\\nRightarrow",!0),F(B,le,ce,"↮","\\nleftrightarrow",!0),F(B,le,ce,"⇎","\\nLeftrightarrow",!0),F(B,le,ce,"△","\\vartriangle"),F(B,le,Ae,"ℏ","\\hslash"),F(B,le,Ae,"▽","\\triangledown"),F(B,le,Ae,"◊","\\lozenge"),F(B,le,Ae,"Ⓢ","\\circledS"),F(B,le,Ae,"®","\\circledR"),F(qe,le,Ae,"®","\\circledR"),F(B,le,Ae,"∡","\\measuredangle",!0),F(B,le,Ae,"∄","\\nexists"),F(B,le,Ae,"℧","\\mho"),F(B,le,Ae,"Ⅎ","\\Finv",!0),F(B,le,Ae,"⅁","\\Game",!0),F(B,le,Ae,"‵","\\backprime"),F(B,le,Ae,"▲","\\blacktriangle"),F(B,le,Ae,"▼","\\blacktriangledown"),F(B,le,Ae,"■","\\blacksquare"),F(B,le,Ae,"⧫","\\blacklozenge"),F(B,le,Ae,"★","\\bigstar"),F(B,le,Ae,"∢","\\sphericalangle",!0),F(B,le,Ae,"∁","\\complement",!0),F(B,le,Ae,"ð","\\eth",!0),F(qe,$,Ae,"ð","ð"),F(B,le,Ae,"╱","\\diagup"),F(B,le,Ae,"╲","\\diagdown"),F(B,le,Ae,"□","\\square"),F(B,le,Ae,"□","\\Box"),F(B,le,Ae,"◊","\\Diamond"),F(B,le,Ae,"¥","\\yen",!0),F(qe,le,Ae,"¥","\\yen",!0),F(B,le,Ae,"✓","\\checkmark",!0),F(qe,le,Ae,"✓","\\checkmark"),F(B,le,Ae,"ℶ","\\beth",!0),F(B,le,Ae,"ℸ","\\daleth",!0),F(B,le,Ae,"ℷ","\\gimel",!0),F(B,le,Ae,"ϝ","\\digamma",!0),F(B,le,Ae,"ϰ","\\varkappa"),F(B,le,vs,"┌","\\@ulcorner",!0),F(B,le,xo,"┐","\\@urcorner",!0),F(B,le,vs,"└","\\@llcorner",!0),F(B,le,xo,"┘","\\@lrcorner",!0),F(B,le,ce,"≦","\\leqq",!0),F(B,le,ce,"⩽","\\leqslant",!0),F(B,le,ce,"⪕","\\eqslantless",!0),F(B,le,ce,"≲","\\lesssim",!0),F(B,le,ce,"⪅","\\lessapprox",!0),F(B,le,ce,"≊","\\approxeq",!0),F(B,le,St,"⋖","\\lessdot"),F(B,le,ce,"⋘","\\lll",!0),F(B,le,ce,"≶","\\lessgtr",!0),F(B,le,ce,"⋚","\\lesseqgtr",!0),F(B,le,ce,"⪋","\\lesseqqgtr",!0),F(B,le,ce,"≑","\\doteqdot"),F(B,le,ce,"≓","\\risingdotseq",!0),F(B,le,ce,"≒","\\fallingdotseq",!0),F(B,le,ce,"∽","\\backsim",!0),F(B,le,ce,"⋍","\\backsimeq",!0),F(B,le,ce,"⫅","\\subseteqq",!0),F(B,le,ce,"⋐","\\Subset",!0),F(B,le,ce,"⊏","\\sqsubset",!0),F(B,le,ce,"≼","\\preccurlyeq",!0),F(B,le,ce,"⋞","\\curlyeqprec",!0),F(B,le,ce,"≾","\\precsim",!0),F(B,le,ce,"⪷","\\precapprox",!0),F(B,le,ce,"⊲","\\vartriangleleft"),F(B,le,ce,"⊴","\\trianglelefteq"),F(B,le,ce,"⊨","\\vDash",!0),F(B,le,ce,"⊪","\\Vvdash",!0),F(B,le,ce,"⌣","\\smallsmile"),F(B,le,ce,"⌢","\\smallfrown"),F(B,le,ce,"≏","\\bumpeq",!0),F(B,le,ce,"≎","\\Bumpeq",!0),F(B,le,ce,"≧","\\geqq",!0),F(B,le,ce,"⩾","\\geqslant",!0),F(B,le,ce,"⪖","\\eqslantgtr",!0),F(B,le,ce,"≳","\\gtrsim",!0),F(B,le,ce,"⪆","\\gtrapprox",!0),F(B,le,St,"⋗","\\gtrdot"),F(B,le,ce,"⋙","\\ggg",!0),F(B,le,ce,"≷","\\gtrless",!0),F(B,le,ce,"⋛","\\gtreqless",!0),F(B,le,ce,"⪌","\\gtreqqless",!0),F(B,le,ce,"≖","\\eqcirc",!0),F(B,le,ce,"≗","\\circeq",!0),F(B,le,ce,"≜","\\triangleq",!0),F(B,le,ce,"∼","\\thicksim"),F(B,le,ce,"≈","\\thickapprox"),F(B,le,ce,"⫆","\\supseteqq",!0),F(B,le,ce,"⋑","\\Supset",!0),F(B,le,ce,"⊐","\\sqsupset",!0),F(B,le,ce,"≽","\\succcurlyeq",!0),F(B,le,ce,"⋟","\\curlyeqsucc",!0),F(B,le,ce,"≿","\\succsim",!0),F(B,le,ce,"⪸","\\succapprox",!0),F(B,le,ce,"⊳","\\vartriangleright"),F(B,le,ce,"⊵","\\trianglerighteq"),F(B,le,ce,"⊩","\\Vdash",!0),F(B,le,ce,"∣","\\shortmid"),F(B,le,ce,"∥","\\shortparallel"),F(B,le,ce,"≬","\\between",!0),F(B,le,ce,"⋔","\\pitchfork",!0),F(B,le,ce,"∝","\\varpropto"),F(B,le,ce,"◀","\\blacktriangleleft"),F(B,le,ce,"∴","\\therefore",!0),F(B,le,ce,"∍","\\backepsilon"),F(B,le,ce,"▶","\\blacktriangleright"),F(B,le,ce,"∵","\\because",!0),F(B,le,ce,"⋘","\\llless"),F(B,le,ce,"⋙","\\gggtr"),F(B,le,St,"⊲","\\lhd"),F(B,le,St,"⊳","\\rhd"),F(B,le,ce,"≂","\\eqsim",!0),F(B,$,ce,"⋈","\\Join"),F(B,le,ce,"≑","\\Doteq",!0),F(B,le,St,"∔","\\dotplus",!0),F(B,le,St,"∖","\\smallsetminus"),F(B,le,St,"⋒","\\Cap",!0),F(B,le,St,"⋓","\\Cup",!0),F(B,le,St,"⩞","\\doublebarwedge",!0),F(B,le,St,"⊟","\\boxminus",!0),F(B,le,St,"⊞","\\boxplus",!0),F(B,le,St,"⋇","\\divideontimes",!0),F(B,le,St,"⋉","\\ltimes",!0),F(B,le,St,"⋊","\\rtimes",!0),F(B,le,St,"⋋","\\leftthreetimes",!0),F(B,le,St,"⋌","\\rightthreetimes",!0),F(B,le,St,"⋏","\\curlywedge",!0),F(B,le,St,"⋎","\\curlyvee",!0),F(B,le,St,"⊝","\\circleddash",!0),F(B,le,St,"⊛","\\circledast",!0),F(B,le,St,"⋅","\\centerdot"),F(B,le,St,"⊺","\\intercal",!0),F(B,le,St,"⋒","\\doublecap"),F(B,le,St,"⋓","\\doublecup"),F(B,le,St,"⊠","\\boxtimes",!0),F(B,le,ce,"⇢","\\dashrightarrow",!0),F(B,le,ce,"⇠","\\dashleftarrow",!0),F(B,le,ce,"⇇","\\leftleftarrows",!0),F(B,le,ce,"⇆","\\leftrightarrows",!0),F(B,le,ce,"⇚","\\Lleftarrow",!0),F(B,le,ce,"↞","\\twoheadleftarrow",!0),F(B,le,ce,"↢","\\leftarrowtail",!0),F(B,le,ce,"↫","\\looparrowleft",!0),F(B,le,ce,"⇋","\\leftrightharpoons",!0),F(B,le,ce,"↶","\\curvearrowleft",!0),F(B,le,ce,"↺","\\circlearrowleft",!0),F(B,le,ce,"↰","\\Lsh",!0),F(B,le,ce,"⇈","\\upuparrows",!0),F(B,le,ce,"↿","\\upharpoonleft",!0),F(B,le,ce,"⇃","\\downharpoonleft",!0),F(B,$,ce,"⊶","\\origof",!0),F(B,$,ce,"⊷","\\imageof",!0),F(B,le,ce,"⊸","\\multimap",!0),F(B,le,ce,"↭","\\leftrightsquigarrow",!0),F(B,le,ce,"⇉","\\rightrightarrows",!0),F(B,le,ce,"⇄","\\rightleftarrows",!0),F(B,le,ce,"↠","\\twoheadrightarrow",!0),F(B,le,ce,"↣","\\rightarrowtail",!0),F(B,le,ce,"↬","\\looparrowright",!0),F(B,le,ce,"↷","\\curvearrowright",!0),F(B,le,ce,"↻","\\circlearrowright",!0),F(B,le,ce,"↱","\\Rsh",!0),F(B,le,ce,"⇊","\\downdownarrows",!0),F(B,le,ce,"↾","\\upharpoonright",!0),F(B,le,ce,"⇂","\\downharpoonright",!0),F(B,le,ce,"⇝","\\rightsquigarrow",!0),F(B,le,ce,"⇝","\\leadsto"),F(B,le,ce,"⇛","\\Rrightarrow",!0),F(B,le,ce,"↾","\\restriction"),F(B,$,Ae,"‘","`"),F(B,$,Ae,"$","\\$"),F(qe,$,Ae,"$","\\$"),F(qe,$,Ae,"$","\\textdollar"),F(B,$,Ae,"%","\\%"),F(qe,$,Ae,"%","\\%"),F(B,$,Ae,"_","\\_"),F(qe,$,Ae,"_","\\_"),F(qe,$,Ae,"_","\\textunderscore"),F(B,$,Ae,"∠","\\angle",!0),F(B,$,Ae,"∞","\\infty",!0),F(B,$,Ae,"′","\\prime"),F(B,$,Ae,"△","\\triangle"),F(B,$,Ae,"Γ","\\Gamma",!0),F(B,$,Ae,"Δ","\\Delta",!0),F(B,$,Ae,"Θ","\\Theta",!0),F(B,$,Ae,"Λ","\\Lambda",!0),F(B,$,Ae,"Ξ","\\Xi",!0),F(B,$,Ae,"Π","\\Pi",!0),F(B,$,Ae,"Σ","\\Sigma",!0),F(B,$,Ae,"Υ","\\Upsilon",!0),F(B,$,Ae,"Φ","\\Phi",!0),F(B,$,Ae,"Ψ","\\Psi",!0),F(B,$,Ae,"Ω","\\Omega",!0),F(B,$,Ae,"A","Α"),F(B,$,Ae,"B","Β"),F(B,$,Ae,"E","Ε"),F(B,$,Ae,"Z","Ζ"),F(B,$,Ae,"H","Η"),F(B,$,Ae,"I","Ι"),F(B,$,Ae,"K","Κ"),F(B,$,Ae,"M","Μ"),F(B,$,Ae,"N","Ν"),F(B,$,Ae,"O","Ο"),F(B,$,Ae,"P","Ρ"),F(B,$,Ae,"T","Τ"),F(B,$,Ae,"X","Χ"),F(B,$,Ae,"¬","\\neg",!0),F(B,$,Ae,"¬","\\lnot"),F(B,$,Ae,"⊤","\\top"),F(B,$,Ae,"⊥","\\bot"),F(B,$,Ae,"∅","\\emptyset"),F(B,le,Ae,"∅","\\varnothing"),F(B,$,Xt,"α","\\alpha",!0),F(B,$,Xt,"β","\\beta",!0),F(B,$,Xt,"γ","\\gamma",!0),F(B,$,Xt,"δ","\\delta",!0),F(B,$,Xt,"ϵ","\\epsilon",!0),F(B,$,Xt,"ζ","\\zeta",!0),F(B,$,Xt,"η","\\eta",!0),F(B,$,Xt,"θ","\\theta",!0),F(B,$,Xt,"ι","\\iota",!0),F(B,$,Xt,"κ","\\kappa",!0),F(B,$,Xt,"λ","\\lambda",!0),F(B,$,Xt,"μ","\\mu",!0),F(B,$,Xt,"ν","\\nu",!0),F(B,$,Xt,"ξ","\\xi",!0),F(B,$,Xt,"ο","\\omicron",!0),F(B,$,Xt,"π","\\pi",!0),F(B,$,Xt,"ρ","\\rho",!0),F(B,$,Xt,"σ","\\sigma",!0),F(B,$,Xt,"τ","\\tau",!0),F(B,$,Xt,"υ","\\upsilon",!0),F(B,$,Xt,"ϕ","\\phi",!0),F(B,$,Xt,"χ","\\chi",!0),F(B,$,Xt,"ψ","\\psi",!0),F(B,$,Xt,"ω","\\omega",!0),F(B,$,Xt,"ε","\\varepsilon",!0),F(B,$,Xt,"ϑ","\\vartheta",!0),F(B,$,Xt,"ϖ","\\varpi",!0),F(B,$,Xt,"ϱ","\\varrho",!0),F(B,$,Xt,"ς","\\varsigma",!0),F(B,$,Xt,"φ","\\varphi",!0),F(B,$,St,"∗","*",!0),F(B,$,St,"+","+"),F(B,$,St,"−","-",!0),F(B,$,St,"⋅","\\cdot",!0),F(B,$,St,"∘","\\circ",!0),F(B,$,St,"÷","\\div",!0),F(B,$,St,"±","\\pm",!0),F(B,$,St,"×","\\times",!0),F(B,$,St,"∩","\\cap",!0),F(B,$,St,"∪","\\cup",!0),F(B,$,St,"∖","\\setminus",!0),F(B,$,St,"∧","\\land"),F(B,$,St,"∨","\\lor"),F(B,$,St,"∧","\\wedge",!0),F(B,$,St,"∨","\\vee",!0),F(B,$,Ae,"√","\\surd"),F(B,$,vs,"⟨","\\langle",!0),F(B,$,vs,"∣","\\lvert"),F(B,$,vs,"∥","\\lVert"),F(B,$,xo,"?","?"),F(B,$,xo,"!","!"),F(B,$,xo,"⟩","\\rangle",!0),F(B,$,xo,"∣","\\rvert"),F(B,$,xo,"∥","\\rVert"),F(B,$,ce,"=","="),F(B,$,ce,":",":"),F(B,$,ce,"≈","\\approx",!0),F(B,$,ce,"≅","\\cong",!0),F(B,$,ce,"≥","\\ge"),F(B,$,ce,"≥","\\geq",!0),F(B,$,ce,"←","\\gets"),F(B,$,ce,">","\\gt",!0),F(B,$,ce,"∈","\\in",!0),F(B,$,ce,"","\\@not"),F(B,$,ce,"⊂","\\subset",!0),F(B,$,ce,"⊃","\\supset",!0),F(B,$,ce,"⊆","\\subseteq",!0),F(B,$,ce,"⊇","\\supseteq",!0),F(B,le,ce,"⊈","\\nsubseteq",!0),F(B,le,ce,"⊉","\\nsupseteq",!0),F(B,$,ce,"⊨","\\models"),F(B,$,ce,"←","\\leftarrow",!0),F(B,$,ce,"≤","\\le"),F(B,$,ce,"≤","\\leq",!0),F(B,$,ce,"<","\\lt",!0),F(B,$,ce,"→","\\rightarrow",!0),F(B,$,ce,"→","\\to"),F(B,le,ce,"≱","\\ngeq",!0),F(B,le,ce,"≰","\\nleq",!0),F(B,$,Gl," ","\\ "),F(B,$,Gl," ","\\space"),F(B,$,Gl," ","\\nobreakspace"),F(qe,$,Gl," ","\\ "),F(qe,$,Gl," "," "),F(qe,$,Gl," ","\\space"),F(qe,$,Gl," ","\\nobreakspace"),F(B,$,Gl,null,"\\nobreak"),F(B,$,Gl,null,"\\allowbreak"),F(B,$,Bg,",",","),F(B,$,Bg,";",";"),F(B,le,St,"⊼","\\barwedge",!0),F(B,le,St,"⊻","\\veebar",!0),F(B,$,St,"⊙","\\odot",!0),F(B,$,St,"⊕","\\oplus",!0),F(B,$,St,"⊗","\\otimes",!0),F(B,$,Ae,"∂","\\partial",!0),F(B,$,St,"⊘","\\oslash",!0),F(B,le,St,"⊚","\\circledcirc",!0),F(B,le,St,"⊡","\\boxdot",!0),F(B,$,St,"△","\\bigtriangleup"),F(B,$,St,"▽","\\bigtriangledown"),F(B,$,St,"†","\\dagger"),F(B,$,St,"⋄","\\diamond"),F(B,$,St,"⋆","\\star"),F(B,$,St,"◃","\\triangleleft"),F(B,$,St,"▹","\\triangleright"),F(B,$,vs,"{","\\{"),F(qe,$,Ae,"{","\\{"),F(qe,$,Ae,"{","\\textbraceleft"),F(B,$,xo,"}","\\}"),F(qe,$,Ae,"}","\\}"),F(qe,$,Ae,"}","\\textbraceright"),F(B,$,vs,"{","\\lbrace"),F(B,$,xo,"}","\\rbrace"),F(B,$,vs,"[","\\lbrack",!0),F(qe,$,Ae,"[","\\lbrack",!0),F(B,$,xo,"]","\\rbrack",!0),F(qe,$,Ae,"]","\\rbrack",!0),F(B,$,vs,"(","\\lparen",!0),F(B,$,xo,")","\\rparen",!0),F(qe,$,Ae,"<","\\textless",!0),F(qe,$,Ae,">","\\textgreater",!0),F(B,$,vs,"⌊","\\lfloor",!0),F(B,$,xo,"⌋","\\rfloor",!0),F(B,$,vs,"⌈","\\lceil",!0),F(B,$,xo,"⌉","\\rceil",!0),F(B,$,Ae,"\\","\\backslash"),F(B,$,Ae,"∣","|"),F(B,$,Ae,"∣","\\vert"),F(qe,$,Ae,"|","\\textbar",!0),F(B,$,Ae,"∥","\\|"),F(B,$,Ae,"∥","\\Vert"),F(qe,$,Ae,"∥","\\textbardbl"),F(qe,$,Ae,"~","\\textasciitilde"),F(qe,$,Ae,"\\","\\textbackslash"),F(qe,$,Ae,"^","\\textasciicircum"),F(B,$,ce,"↑","\\uparrow",!0),F(B,$,ce,"⇑","\\Uparrow",!0),F(B,$,ce,"↓","\\downarrow",!0),F(B,$,ce,"⇓","\\Downarrow",!0),F(B,$,ce,"↕","\\updownarrow",!0),F(B,$,ce,"⇕","\\Updownarrow",!0),F(B,$,Ti,"∐","\\coprod"),F(B,$,Ti,"⋁","\\bigvee"),F(B,$,Ti,"⋀","\\bigwedge"),F(B,$,Ti,"⨄","\\biguplus"),F(B,$,Ti,"⋂","\\bigcap"),F(B,$,Ti,"⋃","\\bigcup"),F(B,$,Ti,"∫","\\int"),F(B,$,Ti,"∫","\\intop"),F(B,$,Ti,"∬","\\iint"),F(B,$,Ti,"∭","\\iiint"),F(B,$,Ti,"∏","\\prod"),F(B,$,Ti,"∑","\\sum"),F(B,$,Ti,"⨂","\\bigotimes"),F(B,$,Ti,"⨁","\\bigoplus"),F(B,$,Ti,"⨀","\\bigodot"),F(B,$,Ti,"∮","\\oint"),F(B,$,Ti,"∯","\\oiint"),F(B,$,Ti,"∰","\\oiiint"),F(B,$,Ti,"⨆","\\bigsqcup"),F(B,$,Ti,"∫","\\smallint"),F(qe,$,Gd,"…","\\textellipsis"),F(B,$,Gd,"…","\\mathellipsis"),F(qe,$,Gd,"…","\\ldots",!0),F(B,$,Gd,"…","\\ldots",!0),F(B,$,Gd,"⋯","\\@cdots",!0),F(B,$,Gd,"⋱","\\ddots",!0),F(B,$,Ae,"⋮","\\varvdots"),F(qe,$,Ae,"⋮","\\varvdots"),F(B,$,Vn,"ˊ","\\acute"),F(B,$,Vn,"ˋ","\\grave"),F(B,$,Vn,"¨","\\ddot"),F(B,$,Vn,"~","\\tilde"),F(B,$,Vn,"ˉ","\\bar"),F(B,$,Vn,"˘","\\breve"),F(B,$,Vn,"ˇ","\\check"),F(B,$,Vn,"^","\\hat"),F(B,$,Vn,"⃗","\\vec"),F(B,$,Vn,"˙","\\dot"),F(B,$,Vn,"˚","\\mathring"),F(B,$,Xt,"","\\@imath"),F(B,$,Xt,"","\\@jmath"),F(B,$,Ae,"ı","ı"),F(B,$,Ae,"ȷ","ȷ"),F(qe,$,Ae,"ı","\\i",!0),F(qe,$,Ae,"ȷ","\\j",!0),F(qe,$,Ae,"ß","\\ss",!0),F(qe,$,Ae,"æ","\\ae",!0),F(qe,$,Ae,"œ","\\oe",!0),F(qe,$,Ae,"ø","\\o",!0),F(qe,$,Ae,"Æ","\\AE",!0),F(qe,$,Ae,"Œ","\\OE",!0),F(qe,$,Ae,"Ø","\\O",!0),F(qe,$,Vn,"ˊ","\\'"),F(qe,$,Vn,"ˋ","\\`"),F(qe,$,Vn,"ˆ","\\^"),F(qe,$,Vn,"˜","\\~"),F(qe,$,Vn,"ˉ","\\="),F(qe,$,Vn,"˘","\\u"),F(qe,$,Vn,"˙","\\."),F(qe,$,Vn,"¸","\\c"),F(qe,$,Vn,"˚","\\r"),F(qe,$,Vn,"ˇ","\\v"),F(qe,$,Vn,"¨",'\\"'),F(qe,$,Vn,"˝","\\H"),F(qe,$,Vn,"◯","\\textcircled");var GB={"--":!0,"---":!0,"``":!0,"''":!0};F(qe,$,Ae,"–","--",!0),F(qe,$,Ae,"–","\\textendash"),F(qe,$,Ae,"—","---",!0),F(qe,$,Ae,"—","\\textemdash"),F(qe,$,Ae,"‘","`",!0),F(qe,$,Ae,"‘","\\textquoteleft"),F(qe,$,Ae,"’","'",!0),F(qe,$,Ae,"’","\\textquoteright"),F(qe,$,Ae,"“","``",!0),F(qe,$,Ae,"“","\\textquotedblleft"),F(qe,$,Ae,"”","''",!0),F(qe,$,Ae,"”","\\textquotedblright"),F(B,$,Ae,"°","\\degree",!0),F(qe,$,Ae,"°","\\degree"),F(qe,$,Ae,"°","\\textdegree",!0),F(B,$,Ae,"£","\\pounds"),F(B,$,Ae,"£","\\mathsterling",!0),F(qe,$,Ae,"£","\\pounds"),F(qe,$,Ae,"£","\\textsterling",!0),F(B,le,Ae,"✠","\\maltese"),F(qe,le,Ae,"✠","\\maltese");for(var ox='0123456789/@."',py=0;py<ox.length;py++){var sx=ox.charAt(py);F(B,$,Ae,sx,sx)}for(var ax='0123456789!@*()-=+";:?/.,',fy=0;fy<ax.length;fy++){var lx=ax.charAt(fy);F(qe,$,Ae,lx,lx)}for(var e3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",my=0;my<e3.length;my++){var Ig=e3.charAt(my);F(B,$,Xt,Ig,Ig),F(qe,$,Ae,Ig,Ig)}F(B,le,Ae,"C","ℂ"),F(qe,le,Ae,"C","ℂ"),F(B,le,Ae,"H","ℍ"),F(qe,le,Ae,"H","ℍ"),F(B,le,Ae,"N","ℕ"),F(qe,le,Ae,"N","ℕ"),F(B,le,Ae,"P","ℙ"),F(qe,le,Ae,"P","ℙ"),F(B,le,Ae,"Q","ℚ"),F(qe,le,Ae,"Q","ℚ"),F(B,le,Ae,"R","ℝ"),F(qe,le,Ae,"R","ℝ"),F(B,le,Ae,"Z","ℤ"),F(qe,le,Ae,"Z","ℤ"),F(B,$,Xt,"h","ℎ"),F(qe,$,Xt,"h","ℎ");for(var or="",ko=0;ko<e3.length;ko++){var ti=e3.charAt(ko);or=String.fromCharCode(55349,56320+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56372+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56424+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56580+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56684+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56736+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56788+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56840+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56944+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),ko<26&&(or=String.fromCharCode(55349,56632+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or),or=String.fromCharCode(55349,56476+ko),F(B,$,Xt,ti,or),F(qe,$,Ae,ti,or))}or="𝕜",F(B,$,Xt,"k",or),F(qe,$,Ae,"k",or);for(var xc=0;xc<10;xc++){var eu=xc.toString();or=String.fromCharCode(55349,57294+xc),F(B,$,Xt,eu,or),F(qe,$,Ae,eu,or),or=String.fromCharCode(55349,57314+xc),F(B,$,Xt,eu,or),F(qe,$,Ae,eu,or),or=String.fromCharCode(55349,57324+xc),F(B,$,Xt,eu,or),F(qe,$,Ae,eu,or),or=String.fromCharCode(55349,57334+xc),F(B,$,Xt,eu,or),F(qe,$,Ae,eu,or)}for(var Eb="ÐÞþ",gy=0;gy<Eb.length;gy++){var Lg=Eb.charAt(gy);F(B,$,Xt,Lg,Lg),F(qe,$,Ae,Lg,Lg)}var zg=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],ux=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],W7e=function(e,r){var n=e.charCodeAt(0),i=e.charCodeAt(1),o=(n-55296)*1024+(i-56320)+65536,s=r==="math"?0:1;if(119808<=o&&o<120484){var a=Math.floor((o-119808)/26);return[zg[a][2],zg[a][s]]}else if(120782<=o&&o<=120831){var l=Math.floor((o-120782)/10);return[ux[l][2],ux[l][s]]}else{if(o===120485||o===120486)return[zg[0][2],zg[0][s]];if(120486<o&&o<120782)return["",""];throw new nt("Unsupported character: "+e)}},d5=function(e,r,n){return Fn[n][e]&&Fn[n][e].replace&&(e=Fn[n][e].replace),{value:e,metrics:mA(e,r,n)}},Ea=function(e,r,n,i,o){var s=d5(e,r,n),a=s.metrics;e=s.value;var l;if(a){var u=a.italic;(n==="text"||i&&i.font==="mathit")&&(u=0),l=new sa(e,a.height,a.depth,u,a.skew,a.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),l=new sa(e,0,0,0,0,0,o);if(i){l.maxFontSize=i.sizeMultiplier,i.style.isTight()&&l.classes.push("mtight");var c=i.getColor();c&&(l.style.color=c)}return l},K7e=function(e,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&d5(e,"Main-Bold",r).metrics?Ea(e,"Main-Bold",r,n,i.concat(["mathbf"])):e==="\\"||Fn[r][e].font==="main"?Ea(e,"Main-Regular",r,n,i):Ea(e,"AMS-Regular",r,n,i.concat(["amsrm"]))},Q7e=function(e,r,n,i,o){return o!=="textord"&&d5(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},J7e=function(e,r,n){var i=e.mode,o=e.text,s=["mord"],a=i==="math"||i==="text"&&r.font,l=a?r.font:r.fontFamily,u="",c="";if(o.charCodeAt(0)===55349&&([u,c]=W7e(o,i)),u.length>0)return Ea(o,u,i,r,s.concat(c));if(l){var d,h;if(l==="boldsymbol"){var p=Q7e(o,i,r,s,n);d=p.fontName,h=[p.fontClass]}else a?(d=KB[l].fontName,h=[l]):(d=Yg(l,r.fontWeight,r.fontShape),h=[l,r.fontWeight,r.fontShape]);if(d5(o,d,i).metrics)return Ea(o,d,i,r,s.concat(h));if(GB.hasOwnProperty(o)&&d.slice(0,10)==="Typewriter"){for(var f=[],m=0;m<o.length;m++)f.push(Ea(o[m],d,i,r,s.concat(h)));return WB(f)}}if(n==="mathord")return Ea(o,"Math-Italic",i,r,s.concat(["mathnormal"]));if(n==="textord"){var v=Fn[i][o]&&Fn[i][o].font;if(v==="ams"){var w=Yg("amsrm",r.fontWeight,r.fontShape);return Ea(o,w,i,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(v==="main"||!v){var x=Yg("textrm",r.fontWeight,r.fontShape);return Ea(o,x,i,r,s.concat(r.fontWeight,r.fontShape))}else{var k=Yg(v,r.fontWeight,r.fontShape);return Ea(o,k,i,r,s.concat(k,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},X7e=(e,r)=>{if(qu(e.classes)!==qu(r.classes)||e.skew!==r.skew||e.maxFontSize!==r.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==r.style[i])return!1;for(var o in r.style)if(r.style.hasOwnProperty(o)&&e.style[o]!==r.style[o])return!1;return!0},eAe=e=>{for(var r=0;r<e.length-1;r++){var n=e[r],i=e[r+1];n instanceof sa&&i instanceof sa&&X7e(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(r+1,1),r--)}return e},yA=function(e){for(var r=0,n=0,i=0,o=0;o<e.children.length;o++){var s=e.children[o];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},Go=function(e,r,n,i){var o=new um(e,r,n,i);return yA(o),o},qB=(e,r,n,i)=>new um(e,r,n,i),tAe=function(e,r,n){var i=Go([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=gt(i.height),i.maxFontSize=1,i},rAe=function(e,r,n,i){var o=new gA(e,r,n,i);return yA(o),o},WB=function(e){var r=new lm(e);return yA(r),r},nAe=function(e,r){return e instanceof lm?Go([],[e],r):e},iAe=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,o=i,s=1;s<r.length;s++){var a=-r[s].shift-o-r[s].elem.depth,l=a-(r[s-1].elem.height+r[s-1].elem.depth);o=o+a,n.push({type:"kern",size:l}),n.push(r[s])}return{children:n,depth:i}}var u;if(e.positionType==="top"){for(var c=e.positionData,d=0;d<e.children.length;d++){var h=e.children[d];c-=h.type==="kern"?h.size:h.elem.height+h.elem.depth}u=c}else if(e.positionType==="bottom")u=-e.positionData;else{var p=e.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")u=-p.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")u=-p.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:u}},oAe=function(e,r){for(var{children:n,depth:i}=iAe(e),o=0,s=0;s<n.length;s++){var a=n[s];if(a.type==="elem"){var l=a.elem;o=Math.max(o,l.maxFontSize,l.height)}}o+=2;var u=Go(["pstrut"],[]);u.style.height=gt(o);for(var c=[],d=i,h=i,p=i,f=0;f<n.length;f++){var m=n[f];if(m.type==="kern")p+=m.size;else{var v=m.elem,w=m.wrapperClasses||[],x=m.wrapperStyle||{},k=Go(w,[u,v],void 0,x);k.style.top=gt(-o-p-v.depth),m.marginLeft&&(k.style.marginLeft=m.marginLeft),m.marginRight&&(k.style.marginRight=m.marginRight),c.push(k),p+=v.height+v.depth}d=Math.min(d,p),h=Math.max(h,p)}var R=Go(["vlist"],c);R.style.height=gt(h);var O;if(d<0){var P=Go([],[]),V=Go(["vlist"],[P]);V.style.height=gt(-d);var W=Go(["vlist-s"],[new sa("")]);O=[Go(["vlist-r"],[R,W]),Go(["vlist-r"],[V])]}else O=[Go(["vlist-r"],[R])];var ie=Go(["vlist-t"],O);return O.length===2&&ie.classes.push("vlist-t2"),ie.height=h,ie.depth=-d,ie},sAe=(e,r)=>{var n=Go(["mspace"],[],r),i=Jn(e,r);return n.style.marginRight=gt(i),n},Yg=function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var o;return r==="textbf"&&n==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",i+"-"+o},KB={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},QB={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},aAe=function(e,r){var[n,i,o]=QB[e],s=new Wu(n),a=new E0([s],{width:gt(i),height:gt(o),style:"width:"+gt(i),viewBox:"0 0 "+1e3*i+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),l=qB(["overlay"],[a],r);return l.height=o,l.style.height=gt(o),l.style.width=gt(i),l},ke={fontMap:KB,makeSymbol:Ea,mathsym:K7e,makeSpan:Go,makeSvgSpan:qB,makeLineSpan:tAe,makeAnchor:rAe,makeFragment:WB,wrapFragment:nAe,makeVList:oAe,makeOrd:J7e,makeGlue:sAe,staticSvg:aAe,svgData:QB,tryCombineChars:eAe},Qn={number:3,unit:"mu"},kc={number:4,unit:"mu"},ql={number:5,unit:"mu"},lAe={mord:{mop:Qn,mbin:kc,mrel:ql,minner:Qn},mop:{mord:Qn,mop:Qn,mrel:ql,minner:Qn},mbin:{mord:kc,mop:kc,mopen:kc,minner:kc},mrel:{mord:ql,mop:ql,mopen:ql,minner:ql},mopen:{},mclose:{mop:Qn,mbin:kc,mrel:ql,minner:Qn},mpunct:{mord:Qn,mop:Qn,mrel:ql,mopen:Qn,mclose:Qn,mpunct:Qn,minner:Qn},minner:{mord:Qn,mop:Qn,mbin:kc,mrel:ql,mopen:Qn,mpunct:Qn,minner:Qn}},uAe={mord:{mop:Qn},mop:{mord:Qn,mop:Qn},mbin:{},mrel:{},mopen:{},mclose:{mop:Qn},mpunct:{},minner:{mop:Qn}},JB={},t3={},r3={};function At(e){for(var{type:r,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:a}=e,l={type:r,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:o},u=0;u<n.length;++u)JB[n[u]]=l;r&&(s&&(t3[r]=s),a&&(r3[r]=a))}function ad(e){var{type:r,htmlBuilder:n,mathmlBuilder:i}=e;At({type:r,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var n3=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},di=function(e){return e.type==="ordgroup"?e.body:[e]},w0=ke.makeSpan,cAe=["leftmost","mbin","mopen","mrel","mop","mpunct"],dAe=["rightmost","mrel","mclose","mpunct"],hAe={display:er.DISPLAY,text:er.TEXT,script:er.SCRIPT,scriptscript:er.SCRIPTSCRIPT},pAe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ci=function(e,r,n,i){i===void 0&&(i=[null,null]);for(var o=[],s=0;s<e.length;s++){var a=Pr(e[s],r);if(a instanceof lm){var l=a.children;o.push(...l)}else o.push(a)}if(ke.tryCombineChars(o),!n)return o;var u=r;if(e.length===1){var c=e[0];c.type==="sizing"?u=r.havingSize(c.size):c.type==="styling"&&(u=r.havingStyle(hAe[c.style]))}var d=w0([i[0]||"leftmost"],[],r),h=w0([i[1]||"rightmost"],[],r),p=n==="root";return cx(o,(f,m)=>{var v=m.classes[0],w=f.classes[0];v==="mbin"&&dAe.includes(w)?m.classes[0]="mord":w==="mbin"&&cAe.includes(v)&&(f.classes[0]="mord")},{node:d},h,p),cx(o,(f,m)=>{var v=wb(m),w=wb(f),x=v&&w?f.hasClass("mtight")?uAe[v][w]:lAe[v][w]:null;if(x)return ke.makeGlue(x,u)},{node:d},h,p),o},cx=function e(r,n,i,o,s){o&&r.push(o);for(var a=0;a<r.length;a++){var l=r[a],u=XB(l);if(u){e(u.children,n,i,null,s);continue}var c=!l.hasClass("mspace");if(c){var d=n(l,i.node);d&&(i.insertAfter?i.insertAfter(d):(r.unshift(d),a++))}c?i.node=l:s&&l.hasClass("newline")&&(i.node=w0(["leftmost"])),i.insertAfter=(h=>p=>{r.splice(h+1,0,p),a++})(a)}o&&r.pop()},XB=function(e){return e instanceof lm||e instanceof gA||e instanceof um&&e.hasClass("enclosing")?e:null},fAe=function e(r,n){var i=XB(r);if(i){var o=i.children;if(o.length){if(n==="right")return e(o[o.length-1],"right");if(n==="left")return e(o[0],"left")}}return r},wb=function(e,r){return e?(r&&(e=fAe(e,r)),pAe[e.classes[0]]||null):null},K1=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return w0(r.concat(n))},Pr=function(e,r,n){if(!e)return w0();if(t3[e.type]){var i=t3[e.type](e,r);if(n&&r.size!==n.size){i=w0(r.sizingClasses(n),[i],r);var o=r.sizeMultiplier/n.sizeMultiplier;i.height*=o,i.depth*=o}return i}else throw new nt("Got group of unknown type: '"+e.type+"'")};function Hg(e,r){var n=w0(["base"],e,r),i=w0(["strut"]);return i.style.height=gt(n.height+n.depth),n.depth&&(i.style.verticalAlign=gt(-n.depth)),n.children.unshift(i),n}function Sb(e,r){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=Ci(e,r,"root"),o;i.length===2&&i[1].hasClass("tag")&&(o=i.pop());for(var s=[],a=[],l=0;l<i.length;l++)if(a.push(i[l]),i[l].hasClass("mbin")||i[l].hasClass("mrel")||i[l].hasClass("allowbreak")){for(var u=!1;l<i.length-1&&i[l+1].hasClass("mspace")&&!i[l+1].hasClass("newline");)l++,a.push(i[l]),i[l].hasClass("nobreak")&&(u=!0);u||(s.push(Hg(a,r)),a=[])}else i[l].hasClass("newline")&&(a.pop(),a.length>0&&(s.push(Hg(a,r)),a=[]),s.push(i[l]));a.length>0&&s.push(Hg(a,r));var c;n?(c=Hg(Ci(n,r,!0)),c.classes=["tag"],s.push(c)):o&&s.push(o);var d=w0(["katex-html"],s);if(d.setAttribute("aria-hidden","true"),c){var h=c.children[0];h.style.height=gt(d.height+d.depth),d.depth&&(h.style.verticalAlign=gt(-d.depth))}return d}function eI(e){return new lm(e)}class Cs{constructor(r,n,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=r,this.attributes={},this.children=n||[],this.classes=i||[]}setAttribute(r,n){this.attributes[r]=n}getAttribute(r){return this.attributes[r]}toNode(){var r=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);this.classes.length>0&&(r.className=qu(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Tl&&this.children[i+1]instanceof Tl){for(var o=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Tl;)o+=this.children[++i].toText();r.appendChild(new Tl(o).toNode())}else r.appendChild(this.children[i].toNode());return r}toMarkup(){var r="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(r+=" "+n+'="',r+=Ur.escape(this.attributes[n]),r+='"');this.classes.length>0&&(r+=' class ="'+Ur.escape(qu(this.classes))+'"'),r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+this.type+">",r}toText(){return this.children.map(r=>r.toText()).join("")}}class Tl{constructor(r){this.text=void 0,this.text=r}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ur.escape(this.toText())}toText(){return this.text}}class mAe{constructor(r){this.width=void 0,this.character=void 0,this.width=r,r>=.05555&&r<=.05556?this.character=" ":r>=.1666&&r<=.1667?this.character=" ":r>=.2222&&r<=.2223?this.character=" ":r>=.2777&&r<=.2778?this.character=" ":r>=-.05556&&r<=-.05555?this.character=" ":r>=-.1667&&r<=-.1666?this.character=" ":r>=-.2223&&r<=-.2222?this.character=" ":r>=-.2778&&r<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var r=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return r.setAttribute("width",gt(this.width)),r}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+gt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var tt={MathNode:Cs,TextNode:Tl,SpaceNode:mAe,newDocumentFragment:eI},qs=function(e,r,n){return Fn[r][e]&&Fn[r][e].replace&&e.charCodeAt(0)!==55349&&!(GB.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=Fn[r][e].replace),new tt.TextNode(e)},TA=function(e){return e.length===1?e[0]:new tt.MathNode("mrow",e)},Db=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var o=e.text;if(["\\imath","\\jmath"].includes(o))return null;Fn[i][o]&&Fn[i][o].replace&&(o=Fn[i][o].replace);var s=ke.fontMap[n].fontName;return mA(o,s,i)?ke.fontMap[n].variant:null};function yy(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var r=e.children[0];return r instanceof Tl&&r.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Tl&&n.text===","}else return!1}var ss=function(e,r,n){if(e.length===1){var i=vn(e[0],r);return n&&i instanceof Cs&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var o=[],s,a=0;a<e.length;a++){var l=vn(e[a],r);if(l instanceof Cs&&s instanceof Cs){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(yy(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&yy(s))l.children=[...s.children,...l.children],o.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||yy(s))){var u=l.children[0];u instanceof Cs&&u.type==="mn"&&(u.children=[...s.children,...u.children],o.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof Tl&&c.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var d=l.children[0];d instanceof Tl&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),o.pop())}}}o.push(l),s=l}return o},Lu=function(e,r,n){return TA(ss(e,r,n))},vn=function(e,r){if(!e)return new tt.MathNode("mrow");if(r3[e.type]){var n=r3[e.type](e,r);return n}else throw new nt("Got group of unknown type: '"+e.type+"'")};function dx(e,r,n,i,o){var s=ss(e,n),a;s.length===1&&s[0]instanceof Cs&&["mrow","mtable"].includes(s[0].type)?a=s[0]:a=new tt.MathNode("mrow",s);var l=new tt.MathNode("annotation",[new tt.TextNode(r)]);l.setAttribute("encoding","application/x-tex");var u=new tt.MathNode("semantics",[a,l]),c=new tt.MathNode("math",[u]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&c.setAttribute("display","block");var d=o?"katex":"katex-mathml";return ke.makeSpan([d],[c])}var tI=function(e){return new e0({style:e.displayMode?er.DISPLAY:er.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},rI=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=ke.makeSpan(n,[e])}return e},gAe=function(e,r,n){var i=tI(n),o;if(n.output==="mathml")return dx(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=Sb(e,i);o=ke.makeSpan(["katex"],[s])}else{var a=dx(e,r,i,n.displayMode,!1),l=Sb(e,i);o=ke.makeSpan(["katex"],[a,l])}return rI(o,n)},yAe=function(e,r,n){var i=tI(n),o=Sb(e,i),s=ke.makeSpan(["katex"],[o]);return rI(s,n)},TAe={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},bAe=function(e){var r=new tt.MathNode("mo",[new tt.TextNode(TAe[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},vAe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},AAe=function(e){return e.type==="ordgroup"?e.body.length:1},EAe=function(e,r){function n(){var a=4e5,l=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(l)){var u=e,c=AAe(u.base),d,h,p;if(c>5)l==="widehat"||l==="widecheck"?(d=420,a=2364,p=.42,h=l+"4"):(d=312,a=2340,p=.34,h="tilde4");else{var f=[1,1,2,2,3,3][c];l==="widehat"||l==="widecheck"?(a=[0,1062,2364,2364,2364][f],d=[0,239,300,360,420][f],p=[0,.24,.3,.3,.36,.42][f],h=l+f):(a=[0,600,1033,2339,2340][f],d=[0,260,286,306,312][f],p=[0,.26,.286,.3,.306,.34][f],h="tilde"+f)}var m=new Wu(h),v=new E0([m],{width:"100%",height:gt(p),viewBox:"0 0 "+a+" "+d,preserveAspectRatio:"none"});return{span:ke.makeSvgSpan([],[v],r),minWidth:0,height:p}}else{var w=[],x=vAe[l],[k,R,O]=x,P=O/1e3,V=k.length,W,ie;if(V===1){var ue=x[3];W=["hide-tail"],ie=[ue]}else if(V===2)W=["halfarrow-left","halfarrow-right"],ie=["xMinYMin","xMaxYMin"];else if(V===3)W=["brace-left","brace-center","brace-right"],ie=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+V+" children.");for(var I=0;I<V;I++){var ne=new Wu(k[I]),he=new E0([ne],{width:"400em",height:gt(P),viewBox:"0 0 "+a+" "+O,preserveAspectRatio:ie[I]+" slice"}),re=ke.makeSvgSpan([W[I]],[he],r);if(V===1)return{span:re,minWidth:R,height:P};re.style.height=gt(P),w.push(re)}return{span:ke.makeSpan(["stretchy"],w,r),minWidth:R,height:P}}}var{span:i,minWidth:o,height:s}=n();return i.height=s,i.style.height=gt(s),o>0&&(i.style.minWidth=gt(o)),i},wAe=function(e,r,n,i,o){var s,a=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=ke.makeSpan(["stretchy",r],[],o),r==="fbox"){var l=o.color&&o.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new Ab({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new Ab({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new E0(u,{width:"100%",height:gt(a)});s=ke.makeSvgSpan([],[c],o)}return s.height=a,s.style.height=gt(a),s},S0={encloseSpan:wAe,mathMLnode:bAe,svgSpan:EAe};function br(e,r){if(!e||e.type!==r)throw new Error("Expected node of type "+r+", but got "+(e?"node of type "+e.type:String(e)));return e}function xb(e){var r=i3(e);if(!r)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return r}function i3(e){return e&&(e.type==="atom"||q7e.hasOwnProperty(e.type))?e:null}var kb=(e,r)=>{var n,i,o;e&&e.type==="supsub"?(i=br(e.base,"accent"),n=i.base,e.base=n,o=j7e(Pr(e,r)),e.base=i):(i=br(e,"accent"),n=i.base);var s=Pr(n,r.havingCrampedStyle()),a=i.isShifty&&Ur.isCharacterBox(n),l=0;if(a){var u=Ur.getBaseElem(n),c=Pr(u,r.havingCrampedStyle());l=ix(c).skew}var d=i.label==="\\c",h=d?s.height+s.depth:Math.min(s.height,r.fontMetrics().xHeight),p;if(i.isStretchy)p=S0.svgSpan(i,r),p=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+gt(2*l)+")",marginLeft:gt(2*l)}:void 0}]},r);else{var f,m;i.label==="\\vec"?(f=ke.staticSvg("vec",r),m=ke.svgData.vec[1]):(f=ke.makeOrd({mode:i.mode,text:i.label},r,"textord"),f=ix(f),f.italic=0,m=f.width,d&&(h+=f.depth)),p=ke.makeSpan(["accent-body"],[f]);var v=i.label==="\\textcircled";v&&(p.classes.push("accent-full"),h=s.height);var w=l;v||(w-=m/2),p.style.left=gt(w),i.label==="\\textcircled"&&(p.style.top=".2em"),p=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-h},{type:"elem",elem:p}]},r)}var x=ke.makeSpan(["mord","accent"],[p],r);return o?(o.children[0]=x,o.height=Math.max(x.height,o.height),o.classes[0]="mord",o):x},hx=(e,r)=>{var n=e.isStretchy?S0.mathMLnode(e.label):new tt.MathNode("mo",[qs(e.label,e.mode)]),i=new tt.MathNode("mover",[vn(e.base,r),n]);return i.setAttribute("accent","true"),i},SAe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));At({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,r)=>{var n=n3(r[0]),i=!SAe.test(e.funcName),o=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:o,base:n}},htmlBuilder:kb,mathmlBuilder:hx}),At({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,r)=>{var n=r[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:kb,mathmlBuilder:hx}),At({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=r[0];return{type:"accentUnder",mode:n.mode,label:i,base:o}},htmlBuilder:(e,r)=>{var n=Pr(e.base,r),i=S0.svgSpan(e,r),o=e.label==="\\utilde"?.12:0,s=ke.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},r);return ke.makeSpan(["mord","accentunder"],[s],r)},mathmlBuilder:(e,r)=>{var n=S0.mathMLnode(e.label),i=new tt.MathNode("munder",[vn(e.base,r),n]);return i.setAttribute("accentunder","true"),i}});var Pg=e=>{var r=new tt.MathNode("mpadded",e?[e]:[]);return r.setAttribute("width","+0.6em"),r.setAttribute("lspace","0.3em"),r};At({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,r,n){var{parser:i,funcName:o}=e;return{type:"xArrow",mode:i.mode,label:o,body:r[0],below:n[0]}},htmlBuilder(e,r){var n=r.style,i=r.havingStyle(n.sup()),o=ke.wrapFragment(Pr(e.body,i,r),r),s=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(s+"-arrow-pad");var a;e.below&&(i=r.havingStyle(n.sub()),a=ke.wrapFragment(Pr(e.below,i,r),r),a.classes.push(s+"-arrow-pad"));var l=S0.svgSpan(e,r),u=-r.fontMetrics().axisHeight+.5*l.height,c=-r.fontMetrics().axisHeight-.5*l.height-.111;(o.depth>.25||e.label==="\\xleftequilibrium")&&(c-=o.depth);var d;if(a){var h=-r.fontMetrics().axisHeight+a.height+.5*l.height+.111;d=ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:l,shift:u},{type:"elem",elem:a,shift:h}]},r)}else d=ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:l,shift:u}]},r);return d.children[0].children[0].children[1].classes.push("svg-align"),ke.makeSpan(["mrel","x-arrow"],[d],r)},mathmlBuilder(e,r){var n=S0.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var o=Pg(vn(e.body,r));if(e.below){var s=Pg(vn(e.below,r));i=new tt.MathNode("munderover",[n,s,o])}else i=new tt.MathNode("mover",[n,o])}else if(e.below){var a=Pg(vn(e.below,r));i=new tt.MathNode("munder",[n,a])}else i=Pg(),i=new tt.MathNode("mover",[n,i]);return i}});var DAe=ke.makeSpan;function nI(e,r){var n=Ci(e.body,r,!0);return DAe([e.mclass],n,r)}function iI(e,r){var n,i=ss(e.body,r);return e.mclass==="minner"?n=new tt.MathNode("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new tt.MathNode("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new tt.MathNode("mo",i),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}At({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,r){var{parser:n,funcName:i}=e,o=r[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:di(o),isCharacterBox:Ur.isCharacterBox(o)}},htmlBuilder:nI,mathmlBuilder:iI});var w2=e=>{var r=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return r.type==="atom"&&(r.family==="bin"||r.family==="rel")?"m"+r.family:"mord"};At({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,r){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:w2(r[0]),body:di(r[1]),isCharacterBox:Ur.isCharacterBox(r[1])}}}),At({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,r){var{parser:n,funcName:i}=e,o=r[1],s=r[0],a;i!=="\\stackrel"?a=w2(o):a="mrel";var l={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:di(o)},u={type:"supsub",mode:s.mode,base:l,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:a,body:[u],isCharacterBox:Ur.isCharacterBox(u)}},htmlBuilder:nI,mathmlBuilder:iI}),At({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,r){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:w2(r[0]),body:di(r[0])}},htmlBuilder(e,r){var n=Ci(e.body,r,!0),i=ke.makeSpan([e.mclass],n,r);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,r){var n=ss(e.body,r),i=new tt.MathNode("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var xAe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},px=()=>({type:"styling",body:[],mode:"math",style:"display"}),fx=e=>e.type==="textord"&&e.text==="@",kAe=(e,r)=>(e.type==="mathord"||e.type==="atom")&&e.text===r;function CAe(e,r,n){var i=xAe[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[r[0]],[r[1]]);case"\\uparrow":case"\\downarrow":{var o=n.callFunction("\\\\cdleft",[r[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},a=n.callFunction("\\Big",[s],[]),l=n.callFunction("\\\\cdright",[r[1]],[]),u={type:"ordgroup",mode:"math",body:[o,a,l]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function _Ae(e){var r=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){r.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){r[r.length-1].length===0&&r.pop();break}else throw new nt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],o=[i],s=0;s<r.length;s++){for(var a=r[s],l=px(),u=0;u<a.length;u++)if(!fx(a[u]))l.body.push(a[u]);else{i.push(l),u+=1;var c=xb(a[u]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1))if("<>AV".indexOf(c)>-1)for(var h=0;h<2;h++){for(var p=!0,f=u+1;f<a.length;f++){if(kAe(a[f],c)){p=!1,u=f;break}if(fx(a[f]))throw new nt("Missing a "+c+" character to complete a CD arrow.",a[f]);d[h].body.push(a[f])}if(p)throw new nt("Missing a "+c+" character to complete a CD arrow.",a[u])}else throw new nt('Expected one of "<>AV=|." after @',a[u]);var m=CAe(c,d,e),v={type:"styling",body:[m],mode:"math",style:"display"};i.push(v),l=px()}s%2===0?i.push(l):i.shift(),i=[],o.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}At({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,r){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:r[0]}},htmlBuilder(e,r){var n=r.havingStyle(r.style.sup()),i=ke.wrapFragment(Pr(e.label,n,r),r);return i.classes.push("cd-label-"+e.side),i.style.bottom=gt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,r){var n=new tt.MathNode("mrow",[vn(e.label,r)]);return n=new tt.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new tt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),At({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,r){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:r[0]}},htmlBuilder(e,r){var n=ke.wrapFragment(Pr(e.fragment,r),r);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,r){return new tt.MathNode("mrow",[vn(e.fragment,r)])}}),At({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,r){for(var{parser:n}=e,i=br(r[0],"ordgroup"),o=i.body,s="",a=0;a<o.length;a++){var l=br(o[a],"textord");s+=l.text}var u=parseInt(s),c;if(isNaN(u))throw new nt("\\@char has non-numeric argument "+s);if(u<0||u>=1114111)throw new nt("\\@char with invalid code point "+s);return u<=65535?c=String.fromCharCode(u):(u-=65536,c=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:c}}});var mx=(e,r)=>{var n=Ci(e.body,r.withColor(e.color),!1);return ke.makeFragment(n)},gx=(e,r)=>{var n=ss(e.body,r.withColor(e.color)),i=new tt.MathNode("mstyle",n);return i.setAttribute("mathcolor",e.color),i};At({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,r){var{parser:n}=e,i=br(r[0],"color-token").color,o=r[1];return{type:"color",mode:n.mode,color:i,body:di(o)}},htmlBuilder:mx,mathmlBuilder:gx}),At({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,r){var{parser:n,breakOnTokenText:i}=e,o=br(r[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:o,body:s}},htmlBuilder:mx,mathmlBuilder:gx}),At({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,r,n){var{parser:i}=e,o=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:o&&br(o,"size").value}},htmlBuilder(e,r){var n=ke.makeSpan(["mspace"],[],r);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=gt(Jn(e.size,r)))),n},mathmlBuilder(e,r){var n=new tt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",gt(Jn(e.size,r)))),n}});var Ty={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},yx=e=>{var r=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new nt("Expected a control sequence",e);return r},NAe=e=>{var r=e.gullet.popToken();return r.text==="="&&(r=e.gullet.popToken(),r.text===" "&&(r=e.gullet.popToken())),r},Tx=(e,r,n,i)=>{var o=e.gullet.macros.get(n.text);o==null&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(r,o,i)};At({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:r,funcName:n}=e;r.consumeSpaces();var i=r.fetch();if(Ty[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=Ty[i.text]),br(r.parseFunction(),"internal");throw new nt("Invalid token after macro prefix",i)}}),At({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:r,funcName:n}=e,i=r.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new nt("Expected a control sequence",i);for(var s=0,a,l=[[]];r.gullet.future().text!=="{";)if(i=r.gullet.popToken(),i.text==="#"){if(r.gullet.future().text==="{"){a=r.gullet.future(),l[s].push("{");break}if(i=r.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new nt('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new nt('Argument number "'+i.text+'" out of order');s++,l.push([])}else{if(i.text==="EOF")throw new nt("Expected a macro definition");l[s].push(i.text)}var{tokens:u}=r.gullet.consumeArg();return a&&u.unshift(a),(n==="\\edef"||n==="\\xdef")&&(u=r.gullet.expandTokens(u),u.reverse()),r.gullet.macros.set(o,{tokens:u,numArgs:s,delimiters:l},n===Ty[n]),{type:"internal",mode:r.mode}}}),At({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:r,funcName:n}=e,i=yx(r.gullet.popToken());r.gullet.consumeSpaces();var o=NAe(r);return Tx(r,i,o,n==="\\\\globallet"),{type:"internal",mode:r.mode}}}),At({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:r,funcName:n}=e,i=yx(r.gullet.popToken()),o=r.gullet.popToken(),s=r.gullet.popToken();return Tx(r,i,s,n==="\\\\globalfuture"),r.gullet.pushToken(s),r.gullet.pushToken(o),{type:"internal",mode:r.mode}}});var w1=function(e,r,n){var i=Fn.math[e]&&Fn.math[e].replace,o=mA(i||e,r,n);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return o},bA=function(e,r,n,i){var o=n.havingBaseStyle(r),s=ke.makeSpan(i.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return s.height*=a,s.depth*=a,s.maxFontSize=o.sizeMultiplier,s},oI=function(e,r,n){var i=r.havingBaseStyle(n),o=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=gt(o),e.height-=o,e.depth+=o},FAe=function(e,r,n,i,o,s){var a=ke.makeSymbol(e,"Main-Regular",o,i),l=bA(a,r,i,s);return n&&oI(l,i,r),l},OAe=function(e,r,n,i){return ke.makeSymbol(e,"Size"+r+"-Regular",n,i)},sI=function(e,r,n,i,o,s){var a=OAe(e,r,o,i),l=bA(ke.makeSpan(["delimsizing","size"+r],[a],i),er.TEXT,i,s);return n&&oI(l,i,er.TEXT),l},by=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var o=ke.makeSpan(["delimsizinginner",i],[ke.makeSpan([],[ke.makeSymbol(e,r,n)])]);return{type:"elem",elem:o}},vy=function(e,r,n){var i=yl["Size4-Regular"][e.charCodeAt(0)]?yl["Size4-Regular"][e.charCodeAt(0)][4]:yl["Size1-Regular"][e.charCodeAt(0)][4],o=new Wu("inner",z7e(e,Math.round(1e3*r))),s=new E0([o],{width:gt(i),height:gt(r),style:"width:"+gt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),a=ke.makeSvgSpan([],[s],n);return a.height=r,a.style.height=gt(r),a.style.width=gt(i),{type:"elem",elem:a}},Cb=.008,Zg={type:"kern",size:-1*Cb},MAe=["|","\\lvert","\\rvert","\\vert"],RAe=["\\|","\\lVert","\\rVert","\\Vert"],aI=function(e,r,n,i,o,s){var a,l,u,c,d="",h=0;a=u=c=e,l=null;var p="Size1-Regular";e==="\\uparrow"?u=c="⏐":e==="\\Uparrow"?u=c="‖":e==="\\downarrow"?a=u="⏐":e==="\\Downarrow"?a=u="‖":e==="\\updownarrow"?(a="\\uparrow",u="⏐",c="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",u="‖",c="\\Downarrow"):MAe.includes(e)?(u="∣",d="vert",h=333):RAe.includes(e)?(u="∥",d="doublevert",h=556):e==="["||e==="\\lbrack"?(a="⎡",u="⎢",c="⎣",p="Size4-Regular",d="lbrack",h=667):e==="]"||e==="\\rbrack"?(a="⎤",u="⎥",c="⎦",p="Size4-Regular",d="rbrack",h=667):e==="\\lfloor"||e==="⌊"?(u=a="⎢",c="⎣",p="Size4-Regular",d="lfloor",h=667):e==="\\lceil"||e==="⌈"?(a="⎡",u=c="⎢",p="Size4-Regular",d="lceil",h=667):e==="\\rfloor"||e==="⌋"?(u=a="⎥",c="⎦",p="Size4-Regular",d="rfloor",h=667):e==="\\rceil"||e==="⌉"?(a="⎤",u=c="⎥",p="Size4-Regular",d="rceil",h=667):e==="("||e==="\\lparen"?(a="⎛",u="⎜",c="⎝",p="Size4-Regular",d="lparen",h=875):e===")"||e==="\\rparen"?(a="⎞",u="⎟",c="⎠",p="Size4-Regular",d="rparen",h=875):e==="\\{"||e==="\\lbrace"?(a="⎧",l="⎨",c="⎩",u="⎪",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="⎫",l="⎬",c="⎭",u="⎪",p="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(a="⎧",c="⎩",u="⎪",p="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(a="⎫",c="⎭",u="⎪",p="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(a="⎧",c="⎭",u="⎪",p="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(a="⎫",c="⎩",u="⎪",p="Size4-Regular");var f=w1(a,p,o),m=f.height+f.depth,v=w1(u,p,o),w=v.height+v.depth,x=w1(c,p,o),k=x.height+x.depth,R=0,O=1;if(l!==null){var P=w1(l,p,o);R=P.height+P.depth,O=2}var V=m+k+R,W=Math.max(0,Math.ceil((r-V)/(O*w))),ie=V+W*O*w,ue=i.fontMetrics().axisHeight;n&&(ue*=i.sizeMultiplier);var I=ie/2-ue,ne=[];if(d.length>0){var he=ie-m-k,re=Math.round(ie*1e3),Ee=Y7e(d,Math.round(he*1e3)),ge=new Wu(d,Ee),Oe=(h/1e3).toFixed(3)+"em",Me=(re/1e3).toFixed(3)+"em",Ve=new E0([ge],{width:Oe,height:Me,viewBox:"0 0 "+h+" "+re}),it=ke.makeSvgSpan([],[Ve],i);it.height=re/1e3,it.style.width=Oe,it.style.height=Me,ne.push({type:"elem",elem:it})}else{if(ne.push(by(c,p,o)),ne.push(Zg),l===null){var ct=ie-m-k+2*Cb;ne.push(vy(u,ct,i))}else{var Ct=(ie-m-k-R)/2+2*Cb;ne.push(vy(u,Ct,i)),ne.push(Zg),ne.push(by(l,p,o)),ne.push(Zg),ne.push(vy(u,Ct,i))}ne.push(Zg),ne.push(by(a,p,o))}var Ye=i.havingBaseStyle(er.TEXT),Kt=ke.makeVList({positionType:"bottom",positionData:I,children:ne},Ye);return bA(ke.makeSpan(["delimsizing","mult"],[Kt],Ye),er.TEXT,i,s)},Ay=80,Ey=.08,wy=function(e,r,n,i,o){var s=L7e(e,i,n),a=new Wu(e,s),l=new E0([a],{width:"400em",height:gt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return ke.makeSvgSpan(["hide-tail"],[l],o)},BAe=function(e,r){var n=r.havingBaseSizing(),i=dI("\\surd",e*n.sizeMultiplier,cI,n),o=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),a,l=0,u=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Ay,e<1?o=1:e<1.4&&(o=.7),l=(1+s+Ey)/o,u=(1+s)/o,a=wy("sqrtMain",l,c,s,r),a.style.minWidth="0.853em",d=.833/o):i.type==="large"?(c=(1e3+Ay)*Q1[i.size],u=(Q1[i.size]+s)/o,l=(Q1[i.size]+s+Ey)/o,a=wy("sqrtSize"+i.size,l,c,s,r),a.style.minWidth="1.02em",d=1/o):(l=e+s+Ey,u=e+s,c=Math.floor(1e3*e+s)+Ay,a=wy("sqrtTall",l,c,s,r),a.style.minWidth="0.742em",d=1.056),a.height=u,a.style.height=gt(l),{span:a,advanceWidth:d,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*o}},lI=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],IAe=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],uI=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Q1=[0,1.2,1.8,2.4,3],LAe=function(e,r,n,i,o){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),lI.includes(e)||uI.includes(e))return sI(e,r,!1,n,i,o);if(IAe.includes(e))return aI(e,Q1[r],!1,n,i,o);throw new nt("Illegal delimiter: '"+e+"'")},zAe=[{type:"small",style:er.SCRIPTSCRIPT},{type:"small",style:er.SCRIPT},{type:"small",style:er.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],YAe=[{type:"small",style:er.SCRIPTSCRIPT},{type:"small",style:er.SCRIPT},{type:"small",style:er.TEXT},{type:"stack"}],cI=[{type:"small",style:er.SCRIPTSCRIPT},{type:"small",style:er.SCRIPT},{type:"small",style:er.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],HAe=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},dI=function(e,r,n,i){for(var o=Math.min(2,3-i.style.size),s=o;s<n.length&&n[s].type!=="stack";s++){var a=w1(e,HAe(n[s]),"math"),l=a.height+a.depth;if(n[s].type==="small"){var u=i.havingBaseStyle(n[s].style);l*=u.sizeMultiplier}if(l>r)return n[s]}return n[n.length-1]},hI=function(e,r,n,i,o,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var a;uI.includes(e)?a=zAe:lI.includes(e)?a=cI:a=YAe;var l=dI(e,r,a,i);return l.type==="small"?FAe(e,l.style,n,i,o,s):l.type==="large"?sI(e,l.size,n,i,o,s):aI(e,r,n,i,o,s)},PAe=function(e,r,n,i,o,s){var a=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,c=Math.max(r-a,n+a),d=Math.max(c/500*l,2*c-u);return hI(e,d,!0,i,o,s)},l0={sqrtImage:BAe,sizedDelim:LAe,sizeToMaxHeight:Q1,customSizedDelim:hI,leftRightDelim:PAe},bx={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},ZAe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function S2(e,r){var n=i3(e);if(n&&ZAe.includes(n.text))return n;throw n?new nt("Invalid delimiter '"+n.text+"' after '"+r.funcName+"'",e):new nt("Invalid delimiter type '"+e.type+"'",e)}At({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,r)=>{var n=S2(r[0],e);return{type:"delimsizing",mode:e.parser.mode,size:bx[e.funcName].size,mclass:bx[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,r)=>e.delim==="."?ke.makeSpan([e.mclass]):l0.sizedDelim(e.delim,e.size,r,e.mode,[e.mclass]),mathmlBuilder:e=>{var r=[];e.delim!=="."&&r.push(qs(e.delim,e.mode));var n=new tt.MathNode("mo",r);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=gt(l0.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function vx(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}At({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,r)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new nt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:S2(r[0],e).text,color:n}}}),At({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,r)=>{var n=S2(r[0],e),i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=br(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,r)=>{vx(e);for(var n=Ci(e.body,r,!0,["mopen","mclose"]),i=0,o=0,s=!1,a=0;a<n.length;a++)n[a].isMiddle?s=!0:(i=Math.max(n[a].height,i),o=Math.max(n[a].depth,o));i*=r.sizeMultiplier,o*=r.sizeMultiplier;var l;if(e.left==="."?l=K1(r,["mopen"]):l=l0.leftRightDelim(e.left,i,o,r,e.mode,["mopen"]),n.unshift(l),s)for(var u=1;u<n.length;u++){var c=n[u],d=c.isMiddle;d&&(n[u]=l0.leftRightDelim(d.delim,i,o,d.options,e.mode,[]))}var h;if(e.right===".")h=K1(r,["mclose"]);else{var p=e.rightColor?r.withColor(e.rightColor):r;h=l0.leftRightDelim(e.right,i,o,p,e.mode,["mclose"])}return n.push(h),ke.makeSpan(["minner"],n,r)},mathmlBuilder:(e,r)=>{vx(e);var n=ss(e.body,r);if(e.left!=="."){var i=new tt.MathNode("mo",[qs(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var o=new tt.MathNode("mo",[qs(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return TA(n)}}),At({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,r)=>{var n=S2(r[0],e);if(!e.parser.leftrightDepth)throw new nt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,r)=>{var n;if(e.delim===".")n=K1(r,[]);else{n=l0.sizedDelim(e.delim,1,r,e.mode,[]);var i={delim:e.delim,options:r};n.isMiddle=i}return n},mathmlBuilder:(e,r)=>{var n=e.delim==="\\vert"||e.delim==="|"?qs("|","text"):qs(e.delim,e.mode),i=new tt.MathNode("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var Sy=(e,r)=>{var n=ke.wrapFragment(Pr(e.body,r),r),i=e.label.slice(1),o=r.sizeMultiplier,s,a=0,l=Ur.isCharacterBox(e.body);if(i==="sout")s=ke.makeSpan(["stretchy","sout"]),s.height=r.fontMetrics().defaultRuleThickness/o,a=-.5*r.fontMetrics().xHeight;else if(i==="phase"){var u=Jn({number:.6,unit:"pt"},r),c=Jn({number:.35,unit:"ex"},r),d=r.havingBaseSizing();o=o/d.sizeMultiplier;var h=n.height+n.depth+u+c;n.style.paddingLeft=gt(h/2+u);var p=Math.floor(1e3*h*o),f=B7e(p),m=new E0([new Wu("phase",f)],{width:"400em",height:gt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});s=ke.makeSvgSpan(["hide-tail"],[m],r),s.style.height=gt(h),a=n.depth+u+c}else{/cancel/.test(i)?l||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var v=0,w=0,x=0;/box/.test(i)?(x=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness),v=r.fontMetrics().fboxsep+(i==="colorbox"?0:x),w=v):i==="angl"?(x=Math.max(r.fontMetrics().defaultRuleThickness,r.minRuleThickness),v=4*x,w=Math.max(0,.25-n.depth)):(v=l?.2:0,w=v),s=S0.encloseSpan(n,i,v,w,r),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=gt(x)):i==="angl"&&x!==.049&&(s.style.borderTopWidth=gt(x),s.style.borderRightWidth=gt(x)),a=n.depth+w,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var k;if(e.backgroundColor)k=ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:a},{type:"elem",elem:n,shift:0}]},r);else{var R=/cancel|phase/.test(i)?["svg-align"]:[];k=ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:a,wrapperClasses:R}]},r)}return/cancel/.test(i)&&(k.height=n.height,k.depth=n.depth),/cancel/.test(i)&&!l?ke.makeSpan(["mord","cancel-lap"],[k],r):ke.makeSpan(["mord"],[k],r)},Dy=(e,r)=>{var n=0,i=new tt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[vn(e.body,r)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=r.fontMetrics().fboxsep*r.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var o=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness);i.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};At({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,r,n){var{parser:i,funcName:o}=e,s=br(r[0],"color-token").color,a=r[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:s,body:a}},htmlBuilder:Sy,mathmlBuilder:Dy}),At({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,r,n){var{parser:i,funcName:o}=e,s=br(r[0],"color-token").color,a=br(r[1],"color-token").color,l=r[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:a,borderColor:s,body:l}},htmlBuilder:Sy,mathmlBuilder:Dy}),At({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,r){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:r[0]}}}),At({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,r){var{parser:n,funcName:i}=e,o=r[0];return{type:"enclose",mode:n.mode,label:i,body:o}},htmlBuilder:Sy,mathmlBuilder:Dy}),At({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,r){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:r[0]}}});var pI={};function rl(e){for(var{type:r,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:a}=e,l={type:r,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},u=0;u<n.length;++u)pI[n[u]]=l;s&&(t3[r]=s),a&&(r3[r]=a)}var fI={};function G(e,r){fI[e]=r}function Ax(e){var r=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),r.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return r}var D2=e=>{var r=e.parser.settings;if(!r.displayMode)throw new nt("{"+e.envName+"} can be used only in display mode.")};function _b(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function nu(e,r,n){var{hskipBeforeAndAfter:i,addJot:o,cols:s,arraystretch:a,colSeparationType:l,autoTag:u,singleRow:c,emptySingleRow:d,maxNumCols:h,leqno:p}=r;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)a=1;else if(a=parseFloat(f),!a||a<0)throw new nt("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var m=[],v=[m],w=[],x=[],k=u!=null?[]:void 0;function R(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function O(){k&&(e.gullet.macros.get("\\df@tag")?(k.push(e.subparse([new Os("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),x.push(Ax(e));;){var P=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),P={type:"ordgroup",mode:e.mode,body:P},n&&(P={type:"styling",mode:e.mode,style:n,body:[P]}),m.push(P);var V=e.fetch().text;if(V==="&"){if(h&&m.length===h){if(c||l)throw new nt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(V==="\\end"){O(),m.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(v.length>1||!d)&&v.pop(),x.length<v.length+1&&x.push([]);break}else if(V==="\\\\"){e.consume();var W=void 0;e.gullet.future().text!==" "&&(W=e.parseSizeGroup(!0)),w.push(W?W.value:null),O(),x.push(Ax(e)),m=[],v.push(m),R()}else throw new nt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:v,cols:s,rowGaps:w,hskipBeforeAndAfter:i,hLinesBeforeRow:x,colSeparationType:l,tags:k,leqno:p}}function xy(e){return e.slice(0,1)==="d"?"display":"text"}var nl=function(e,r){var n,i,o=e.body.length,s=e.hLinesBeforeRow,a=0,l=new Array(o),u=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),d=1/r.fontMetrics().ptPerEm,h=5*d;if(e.colSeparationType&&e.colSeparationType==="small"){var p=r.havingStyle(er.SCRIPT).sizeMultiplier;h=.2778*(p/r.sizeMultiplier)}var f=e.colSeparationType==="CD"?Jn({number:3,unit:"ex"},r):12*d,m=3*d,v=e.arraystretch*f,w=.7*v,x=.3*v,k=0;function R(ee){for(var ye=0;ye<ee.length;++ye)ye>0&&(k+=.25),u.push({pos:k,isDashed:ee[ye]})}for(R(s[0]),n=0;n<e.body.length;++n){var O=e.body[n],P=w,V=x;a<O.length&&(a=O.length);var W=new Array(O.length);for(i=0;i<O.length;++i){var ie=Pr(O[i],r);V<ie.depth&&(V=ie.depth),P<ie.height&&(P=ie.height),W[i]=ie}var ue=e.rowGaps[n],I=0;ue&&(I=Jn(ue,r),I>0&&(I+=x,V<I&&(V=I),I=0)),e.addJot&&(V+=m),W.height=P,W.depth=V,k+=P,W.pos=k,k+=V+I,l[n]=W,R(s[n+1])}var ne=k/2+r.fontMetrics().axisHeight,he=e.cols||[],re=[],Ee,ge,Oe=[];if(e.tags&&e.tags.some(ee=>ee))for(n=0;n<o;++n){var Me=l[n],Ve=Me.pos-ne,it=e.tags[n],ct=void 0;it===!0?ct=ke.makeSpan(["eqn-num"],[],r):it===!1?ct=ke.makeSpan([],[],r):ct=ke.makeSpan([],Ci(it,r,!0),r),ct.depth=Me.depth,ct.height=Me.height,Oe.push({type:"elem",elem:ct,shift:Ve})}for(i=0,ge=0;i<a||ge<he.length;++i,++ge){for(var Ct=he[ge]||{},Ye=!0;Ct.type==="separator";){if(Ye||(Ee=ke.makeSpan(["arraycolsep"],[]),Ee.style.width=gt(r.fontMetrics().doubleRuleSep),re.push(Ee)),Ct.separator==="|"||Ct.separator===":"){var Kt=Ct.separator==="|"?"solid":"dashed",Vt=ke.makeSpan(["vertical-separator"],[],r);Vt.style.height=gt(k),Vt.style.borderRightWidth=gt(c),Vt.style.borderRightStyle=Kt,Vt.style.margin="0 "+gt(-c/2);var Ot=k-ne;Ot&&(Vt.style.verticalAlign=gt(-Ot)),re.push(Vt)}else throw new nt("Invalid separator type: "+Ct.separator);ge++,Ct=he[ge]||{},Ye=!1}if(!(i>=a)){var jt=void 0;(i>0||e.hskipBeforeAndAfter)&&(jt=Ur.deflt(Ct.pregap,h),jt!==0&&(Ee=ke.makeSpan(["arraycolsep"],[]),Ee.style.width=gt(jt),re.push(Ee)));var _t=[];for(n=0;n<o;++n){var Fr=l[n],jr=Fr[i];if(jr){var pt=Fr.pos-ne;jr.depth=Fr.depth,jr.height=Fr.height,_t.push({type:"elem",elem:jr,shift:pt})}}_t=ke.makeVList({positionType:"individualShift",children:_t},r),_t=ke.makeSpan(["col-align-"+(Ct.align||"c")],[_t]),re.push(_t),(i<a-1||e.hskipBeforeAndAfter)&&(jt=Ur.deflt(Ct.postgap,h),jt!==0&&(Ee=ke.makeSpan(["arraycolsep"],[]),Ee.style.width=gt(jt),re.push(Ee)))}}if(l=ke.makeSpan(["mtable"],re),u.length>0){for(var nr=ke.makeLineSpan("hline",r,c),Yt=ke.makeLineSpan("hdashline",r,c),vr=[{type:"elem",elem:l,shift:0}];u.length>0;){var Gr=u.pop(),An=Gr.pos-ne;Gr.isDashed?vr.push({type:"elem",elem:Yt,shift:An}):vr.push({type:"elem",elem:nr,shift:An})}l=ke.makeVList({positionType:"individualShift",children:vr},r)}if(Oe.length===0)return ke.makeSpan(["mord"],[l],r);var Ft=ke.makeVList({positionType:"individualShift",children:Oe},r);return Ft=ke.makeSpan(["tag"],[Ft],r),ke.makeFragment([l,Ft])},$Ae={c:"center ",l:"left ",r:"right "},il=function(e,r){for(var n=[],i=new tt.MathNode("mtd",[],["mtr-glue"]),o=new tt.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var a=e.body[s],l=[],u=0;u<a.length;u++)l.push(new tt.MathNode("mtd",[vn(a[u],r)]));e.tags&&e.tags[s]&&(l.unshift(i),l.push(i),e.leqno?l.unshift(o):l.push(o)),n.push(new tt.MathNode("mtr",l))}var c=new tt.MathNode("mtable",n),d=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",gt(d));var h="",p="";if(e.cols&&e.cols.length>0){var f=e.cols,m="",v=!1,w=0,x=f.length;f[0].type==="separator"&&(h+="top ",w=1),f[f.length-1].type==="separator"&&(h+="bottom ",x-=1);for(var k=w;k<x;k++)f[k].type==="align"?(p+=$Ae[f[k].align],v&&(m+="none "),v=!0):f[k].type==="separator"&&v&&(m+=f[k].separator==="|"?"solid ":"dashed ",v=!1);c.setAttribute("columnalign",p.trim()),/[sd]/.test(m)&&c.setAttribute("columnlines",m.trim())}if(e.colSeparationType==="align"){for(var R=e.cols||[],O="",P=1;P<R.length;P++)O+=P%2?"0em ":"1em ";c.setAttribute("columnspacing",O.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var V="",W=e.hLinesBeforeRow;h+=W[0].length>0?"left ":"",h+=W[W.length-1].length>0?"right ":"";for(var ie=1;ie<W.length-1;ie++)V+=W[ie].length===0?"none ":W[ie][0]?"dashed ":"solid ";return/[sd]/.test(V)&&c.setAttribute("rowlines",V.trim()),h!==""&&(c=new tt.MathNode("menclose",[c]),c.setAttribute("notation",h.trim())),e.arraystretch&&e.arraystretch<1&&(c=new tt.MathNode("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},Ex=function(e,r){e.envName.indexOf("ed")===-1&&D2(e);var n=[],i=e.envName.indexOf("at")>-1?"alignat":"align",o=e.envName==="split",s=nu(e.parser,{cols:n,addJot:!0,autoTag:o?void 0:_b(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),a,l=0,u={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",d=0;d<r[0].body.length;d++){var h=br(r[0].body[d],"textord");c+=h.text}a=Number(c),l=a*2}var p=!l;s.body.forEach(function(w){for(var x=1;x<w.length;x+=2){var k=br(w[x],"styling"),R=br(k.body[0],"ordgroup");R.body.unshift(u)}if(p)l<w.length&&(l=w.length);else{var O=w.length/2;if(a<O)throw new nt("Too many math in a row: "+("expected "+a+", but got "+O),w[0])}});for(var f=0;f<l;++f){var m="r",v=0;f%2===1?m="l":f>0&&p&&(v=1),n[f]={type:"align",align:m,pregap:v,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};rl({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,r){var n=i3(r[0]),i=n?[r[0]]:br(r[0],"ordgroup").body,o=i.map(function(a){var l=xb(a),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new nt("Unknown column alignment: "+u,a)}),s={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return nu(e.parser,s,xy(e.envName))},htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var r={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),n=o.fetch().text,"lcr".indexOf(n)===-1)throw new nt("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:n}]}}var s=nu(e.parser,i,xy(e.envName)),a=Math.max(0,...s.body.map(l=>l.length));return s.cols=new Array(a).fill({type:"align",align:n}),r?{type:"leftright",mode:e.mode,body:[s],left:r[0],right:r[1],rightColor:void 0}:s},htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var r={arraystretch:.5},n=nu(e.parser,r,"script");return n.colSeparationType="small",n},htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["subarray"],props:{numArgs:1},handler(e,r){var n=i3(r[0]),i=n?[r[0]]:br(r[0],"ordgroup").body,o=i.map(function(a){var l=xb(a),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new nt("Unknown column alignment: "+u,a)});if(o.length>1)throw new nt("{subarray} can contain only one column");var s={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=nu(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new nt("{subarray} can contain only one column");return s},htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var r={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=nu(e.parser,r,xy(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ex,htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&D2(e);var r={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:_b(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return nu(e.parser,r,"display")},htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ex,htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){D2(e);var r={autoTag:_b(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return nu(e.parser,r,"display")},htmlBuilder:nl,mathmlBuilder:il}),rl({type:"array",names:["CD"],props:{numArgs:0},handler(e){return D2(e),_Ae(e.parser)},htmlBuilder:nl,mathmlBuilder:il}),G("\\nonumber","\\gdef\\@eqnsw{0}"),G("\\notag","\\nonumber"),At({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,r){throw new nt(e.funcName+" valid only within array environment")}});var wx=pI;At({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,r){var{parser:n,funcName:i}=e,o=r[0];if(o.type!=="ordgroup")throw new nt("Invalid environment name",o);for(var s="",a=0;a<o.body.length;++a)s+=br(o.body[a],"textord").text;if(i==="\\begin"){if(!wx.hasOwnProperty(s))throw new nt("No such environment: "+s,o);var l=wx[s],{args:u,optArgs:c}=n.parseArguments("\\begin{"+s+"}",l),d={mode:n.mode,envName:s,parser:n},h=l.handler(d,u,c);n.expect("\\end",!1);var p=n.nextToken,f=br(n.parseFunction(),"environment");if(f.name!==s)throw new nt("Mismatch: \\begin{"+s+"} matched by \\end{"+f.name+"}",p);return h}return{type:"environment",mode:n.mode,name:s,nameGroup:o}}});var Sx=(e,r)=>{var n=e.font,i=r.withFont(n);return Pr(e.body,i)},Dx=(e,r)=>{var n=e.font,i=r.withFont(n);return vn(e.body,i)},xx={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};At({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=n3(r[0]),s=i;return s in xx&&(s=xx[s]),{type:"font",mode:n.mode,font:s.slice(1),body:o}},htmlBuilder:Sx,mathmlBuilder:Dx}),At({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,r)=>{var{parser:n}=e,i=r[0],o=Ur.isCharacterBox(i);return{type:"mclass",mode:n.mode,mclass:w2(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:o}}}),At({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,r)=>{var{parser:n,funcName:i,breakOnTokenText:o}=e,{mode:s}=n,a=n.parseExpression(!0,o),l="math"+i.slice(1);return{type:"font",mode:s,font:l,body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:Sx,mathmlBuilder:Dx});var mI=(e,r)=>{var n=r;return e==="display"?n=n.id>=er.SCRIPT.id?n.text():er.DISPLAY:e==="text"&&n.size===er.DISPLAY.size?n=er.TEXT:e==="script"?n=er.SCRIPT:e==="scriptscript"&&(n=er.SCRIPTSCRIPT),n},Nb=(e,r)=>{var n=mI(e.size,r.style),i=n.fracNum(),o=n.fracDen(),s;s=r.havingStyle(i);var a=Pr(e.numer,s,r);if(e.continued){var l=8.5/r.fontMetrics().ptPerEm,u=3.5/r.fontMetrics().ptPerEm;a.height=a.height<l?l:a.height,a.depth=a.depth<u?u:a.depth}s=r.havingStyle(o);var c=Pr(e.denom,s,r),d,h,p;e.hasBarLine?(e.barSize?(h=Jn(e.barSize,r),d=ke.makeLineSpan("frac-line",r,h)):d=ke.makeLineSpan("frac-line",r),h=d.height,p=d.height):(d=null,h=0,p=r.fontMetrics().defaultRuleThickness);var f,m,v;n.size===er.DISPLAY.size||e.size==="display"?(f=r.fontMetrics().num1,h>0?m=3*p:m=7*p,v=r.fontMetrics().denom1):(h>0?(f=r.fontMetrics().num2,m=p):(f=r.fontMetrics().num3,m=3*p),v=r.fontMetrics().denom2);var w;if(d){var x=r.fontMetrics().axisHeight;f-a.depth-(x+.5*h)<m&&(f+=m-(f-a.depth-(x+.5*h))),x-.5*h-(c.height-v)<m&&(v+=m-(x-.5*h-(c.height-v)));var k=-(x-.5*h);w=ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:v},{type:"elem",elem:d,shift:k},{type:"elem",elem:a,shift:-f}]},r)}else{var R=f-a.depth-(c.height-v);R<m&&(f+=.5*(m-R),v+=.5*(m-R)),w=ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:c,shift:v},{type:"elem",elem:a,shift:-f}]},r)}s=r.havingStyle(n),w.height*=s.sizeMultiplier/r.sizeMultiplier,w.depth*=s.sizeMultiplier/r.sizeMultiplier;var O;n.size===er.DISPLAY.size?O=r.fontMetrics().delim1:n.size===er.SCRIPTSCRIPT.size?O=r.havingStyle(er.SCRIPT).fontMetrics().delim2:O=r.fontMetrics().delim2;var P,V;return e.leftDelim==null?P=K1(r,["mopen"]):P=l0.customSizedDelim(e.leftDelim,O,!0,r.havingStyle(n),e.mode,["mopen"]),e.continued?V=ke.makeSpan([]):e.rightDelim==null?V=K1(r,["mclose"]):V=l0.customSizedDelim(e.rightDelim,O,!0,r.havingStyle(n),e.mode,["mclose"]),ke.makeSpan(["mord"].concat(s.sizingClasses(r)),[P,ke.makeSpan(["mfrac"],[w]),V],r)},Fb=(e,r)=>{var n=new tt.MathNode("mfrac",[vn(e.numer,r),vn(e.denom,r)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=Jn(e.barSize,r);n.setAttribute("linethickness",gt(i))}var o=mI(e.size,r.style);if(o.size!==r.style.size){n=new tt.MathNode("mstyle",[n]);var s=o.size===er.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",s),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var l=new tt.MathNode("mo",[new tt.TextNode(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}if(a.push(n),e.rightDelim!=null){var u=new tt.MathNode("mo",[new tt.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),a.push(u)}return TA(a)}return n};At({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=r[0],s=r[1],a,l=null,u=null,c="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,l="(",u=")";break;case"\\\\bracefrac":a=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":a=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:o,denom:s,hasBarLine:a,leftDelim:l,rightDelim:u,size:c,barSize:null}},htmlBuilder:Nb,mathmlBuilder:Fb}),At({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=r[0],s=r[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:o,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),At({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:r,funcName:n,token:i}=e,o;switch(n){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:o,token:i}}});var kx=["display","text","script","scriptscript"],Cx=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};At({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,r){var{parser:n}=e,i=r[4],o=r[5],s=n3(r[0]),a=s.type==="atom"&&s.family==="open"?Cx(s.text):null,l=n3(r[1]),u=l.type==="atom"&&l.family==="close"?Cx(l.text):null,c=br(r[2],"size"),d,h=null;c.isBlank?d=!0:(h=c.value,d=h.number>0);var p="auto",f=r[3];if(f.type==="ordgroup"){if(f.body.length>0){var m=br(f.body[0],"textord");p=kx[Number(m.text)]}}else f=br(f,"textord"),p=kx[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:d,barSize:h,leftDelim:a,rightDelim:u,size:p}},htmlBuilder:Nb,mathmlBuilder:Fb}),At({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,r){var{parser:n,funcName:i,token:o}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:br(r[0],"size").value,token:o}}}),At({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=r[0],s=v7e(br(r[1],"infix").size),a=r[2],l=s.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:a,continued:!1,hasBarLine:l,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Nb,mathmlBuilder:Fb});var gI=(e,r)=>{var n=r.style,i,o;e.type==="supsub"?(i=e.sup?Pr(e.sup,r.havingStyle(n.sup()),r):Pr(e.sub,r.havingStyle(n.sub()),r),o=br(e.base,"horizBrace")):o=br(e,"horizBrace");var s=Pr(o.base,r.havingBaseStyle(er.DISPLAY)),a=S0.svgSpan(o,r),l;if(o.isOver?(l=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},r),l.children[0].children[0].children[1].classes.push("svg-align")):(l=ke.makeVList({positionType:"bottom",positionData:s.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},r),l.children[0].children[0].children[0].classes.push("svg-align")),i){var u=ke.makeSpan(["mord",o.isOver?"mover":"munder"],[l],r);o.isOver?l=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:i}]},r):l=ke.makeVList({positionType:"bottom",positionData:u.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:u}]},r)}return ke.makeSpan(["mord",o.isOver?"mover":"munder"],[l],r)},UAe=(e,r)=>{var n=S0.mathMLnode(e.label);return new tt.MathNode(e.isOver?"mover":"munder",[vn(e.base,r),n])};At({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,r){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:r[0]}},htmlBuilder:gI,mathmlBuilder:UAe}),At({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,r)=>{var{parser:n}=e,i=r[1],o=br(r[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:di(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,r)=>{var n=Ci(e.body,r,!1);return ke.makeAnchor(e.href,[],n,r)},mathmlBuilder:(e,r)=>{var n=Lu(e.body,r);return n instanceof Cs||(n=new Cs("mrow",[n])),n.setAttribute("href",e.href),n}}),At({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,r)=>{var{parser:n}=e,i=br(r[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var o=[],s=0;s<i.length;s++){var a=i[s];a==="~"&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var l={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:i,body:di(l)}}}),At({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,r){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:di(r[0])}},htmlBuilder(e,r){var n=Ci(e.body,r,!1);return ke.makeFragment(n)},mathmlBuilder(e,r){return new tt.MathNode("mrow",ss(e.body,r))}}),At({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,r)=>{var{parser:n,funcName:i,token:o}=e,s=br(r[0],"raw").string,a=r[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(i){case"\\htmlClass":u.class=s,l={command:"\\htmlClass",class:s};break;case"\\htmlId":u.id=s,l={command:"\\htmlId",id:s};break;case"\\htmlStyle":u.style=s,l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var c=s.split(","),d=0;d<c.length;d++){var h=c[d],p=h.indexOf("=");if(p<0)throw new nt("\\htmlData key/value '"+h+"' missing equals sign");var f=h.slice(0,p),m=h.slice(p+1);u["data-"+f.trim()]=m}l={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(l)?{type:"html",mode:n.mode,attributes:u,body:di(a)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,r)=>{var n=Ci(e.body,r,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var o=ke.makeSpan(i,n,r);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&o.setAttribute(s,e.attributes[s]);return o},mathmlBuilder:(e,r)=>Lu(e.body,r)}),At({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,r)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:di(r[0]),mathml:di(r[1])}},htmlBuilder:(e,r)=>{var n=Ci(e.html,r,!1);return ke.makeFragment(n)},mathmlBuilder:(e,r)=>Lu(e.mathml,r)});var ky=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new nt("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!$B(n))throw new nt("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};At({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,r,n)=>{var{parser:i}=e,o={number:0,unit:"em"},s={number:.9,unit:"em"},a={number:0,unit:"em"},l="";if(n[0])for(var u=br(n[0],"raw").string,c=u.split(","),d=0;d<c.length;d++){var h=c[d].split("=");if(h.length===2){var p=h[1].trim();switch(h[0].trim()){case"alt":l=p;break;case"width":o=ky(p);break;case"height":s=ky(p);break;case"totalheight":a=ky(p);break;default:throw new nt("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var f=br(r[0],"url").url;return l===""&&(l=f,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:i.mode,alt:l,width:o,height:s,totalheight:a,src:f}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,r)=>{var n=Jn(e.height,r),i=0;e.totalheight.number>0&&(i=Jn(e.totalheight,r)-n);var o=0;e.width.number>0&&(o=Jn(e.width,r));var s={height:gt(n+i)};o>0&&(s.width=gt(o)),i>0&&(s.verticalAlign=gt(-i));var a=new U7e(e.src,e.alt,s);return a.height=n,a.depth=i,a},mathmlBuilder:(e,r)=>{var n=new tt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var i=Jn(e.height,r),o=0;if(e.totalheight.number>0&&(o=Jn(e.totalheight,r)-i,n.setAttribute("valign",gt(-o))),n.setAttribute("height",gt(i+o)),e.width.number>0){var s=Jn(e.width,r);n.setAttribute("width",gt(s))}return n.setAttribute("src",e.src),n}}),At({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,r){var{parser:n,funcName:i}=e,o=br(r[0],"size");if(n.settings.strict){var s=i[1]==="m",a=o.value.unit==="mu";s?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+o.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder(e,r){return ke.makeGlue(e.dimension,r)},mathmlBuilder(e,r){var n=Jn(e.dimension,r);return new tt.SpaceNode(n)}}),At({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=r[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:o}},htmlBuilder:(e,r)=>{var n;e.alignment==="clap"?(n=ke.makeSpan([],[Pr(e.body,r)]),n=ke.makeSpan(["inner"],[n],r)):n=ke.makeSpan(["inner"],[Pr(e.body,r)]);var i=ke.makeSpan(["fix"],[]),o=ke.makeSpan([e.alignment],[n,i],r),s=ke.makeSpan(["strut"]);return s.style.height=gt(o.height+o.depth),o.depth&&(s.style.verticalAlign=gt(-o.depth)),o.children.unshift(s),o=ke.makeSpan(["thinbox"],[o],r),ke.makeSpan(["mord","vbox"],[o],r)},mathmlBuilder:(e,r)=>{var n=new tt.MathNode("mpadded",[vn(e.body,r)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),At({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,r){var{funcName:n,parser:i}=e,o=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",a=i.parseExpression(!1,s);return i.expect(s),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:a}}}),At({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,r){throw new nt("Mismatched "+e.funcName)}});var _x=(e,r)=>{switch(r.style.size){case er.DISPLAY.size:return e.display;case er.TEXT.size:return e.text;case er.SCRIPT.size:return e.script;case er.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};At({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,r)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:di(r[0]),text:di(r[1]),script:di(r[2]),scriptscript:di(r[3])}},htmlBuilder:(e,r)=>{var n=_x(e,r),i=Ci(n,r,!1);return ke.makeFragment(i)},mathmlBuilder:(e,r)=>{var n=_x(e,r);return Lu(n,r)}});var yI=(e,r,n,i,o,s,a)=>{e=ke.makeSpan([],[e]);var l=n&&Ur.isCharacterBox(n),u,c;if(r){var d=Pr(r,i.havingStyle(o.sup()),i);c={elem:d,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var h=Pr(n,i.havingStyle(o.sub()),i);u={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-h.height)}}var p;if(c&&u){var f=i.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+a;p=ke.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:gt(-s)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(u){var m=e.height-a;p=ke.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:gt(-s)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},i)}else if(c){var v=e.depth+a;p=ke.makeVList({positionType:"bottom",positionData:v,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:gt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else return e;var w=[p];if(u&&s!==0&&!l){var x=ke.makeSpan(["mspace"],[],i);x.style.marginRight=gt(s),w.unshift(x)}return ke.makeSpan(["mop","op-limits"],w,i)},TI=["\\smallint"],xh=(e,r)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=br(e.base,"op"),o=!0):s=br(e,"op");var a=r.style,l=!1;a.size===er.DISPLAY.size&&s.symbol&&!TI.includes(s.name)&&(l=!0);var u;if(s.symbol){var c=l?"Size2-Regular":"Size1-Regular",d="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(d=s.name.slice(1),s.name=d==="oiint"?"\\iint":"\\iiint"),u=ke.makeSymbol(s.name,c,"math",r,["mop","op-symbol",l?"large-op":"small-op"]),d.length>0){var h=u.italic,p=ke.staticSvg(d+"Size"+(l?"2":"1"),r);u=ke.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},r),s.name="\\"+d,u.classes.unshift("mop"),u.italic=h}}else if(s.body){var f=Ci(s.body,r,!0);f.length===1&&f[0]instanceof sa?(u=f[0],u.classes[0]="mop"):u=ke.makeSpan(["mop"],f,r)}else{for(var m=[],v=1;v<s.name.length;v++)m.push(ke.mathsym(s.name[v],s.mode,r));u=ke.makeSpan(["mop"],m,r)}var w=0,x=0;return(u instanceof sa||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(w=(u.height-u.depth)/2-r.fontMetrics().axisHeight,x=u.italic),o?yI(u,n,i,r,a,x,w):(w&&(u.style.position="relative",u.style.top=gt(w)),u)},J1=(e,r)=>{var n;if(e.symbol)n=new Cs("mo",[qs(e.name,e.mode)]),TI.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Cs("mo",ss(e.body,r));else{n=new Cs("mi",[new Tl(e.name.slice(1))]);var i=new Cs("mo",[qs("","text")]);e.parentIsSupSub?n=new Cs("mrow",[n,i]):n=eI([n,i])}return n},VAe={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};At({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=i;return o.length===1&&(o=VAe[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:xh,mathmlBuilder:J1}),At({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,r)=>{var{parser:n}=e,i=r[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:di(i)}},htmlBuilder:xh,mathmlBuilder:J1});var jAe={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};At({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:r,funcName:n}=e;return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:xh,mathmlBuilder:J1}),At({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:r,funcName:n}=e;return{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:xh,mathmlBuilder:J1}),At({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:r,funcName:n}=e,i=n;return i.length===1&&(i=jAe[i]),{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:xh,mathmlBuilder:J1});var bI=(e,r)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=br(e.base,"operatorname"),o=!0):s=br(e,"operatorname");var a;if(s.body.length>0){for(var l=s.body.map(h=>{var p=h.text;return typeof p=="string"?{type:"textord",mode:h.mode,text:p}:h}),u=Ci(l,r.withFont("mathrm"),!0),c=0;c<u.length;c++){var d=u[c];d instanceof sa&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=ke.makeSpan(["mop"],u,r)}else a=ke.makeSpan(["mop"],[],r);return o?yI(a,n,i,r,r.style,0,0):a},GAe=(e,r)=>{for(var n=ss(e.body,r.withFont("mathrm")),i=!0,o=0;o<n.length;o++){var s=n[o];if(!(s instanceof tt.SpaceNode))if(s instanceof tt.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var a=s.children[0];s.children.length===1&&a instanceof tt.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var l=n.map(d=>d.toText()).join("");n=[new tt.TextNode(l)]}var u=new tt.MathNode("mi",n);u.setAttribute("mathvariant","normal");var c=new tt.MathNode("mo",[qs("","text")]);return e.parentIsSupSub?new tt.MathNode("mrow",[u,c]):tt.newDocumentFragment([u,c])};At({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,r)=>{var{parser:n,funcName:i}=e,o=r[0];return{type:"operatorname",mode:n.mode,body:di(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:bI,mathmlBuilder:GAe}),G("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ad({type:"ordgroup",htmlBuilder(e,r){return e.semisimple?ke.makeFragment(Ci(e.body,r,!1)):ke.makeSpan(["mord"],Ci(e.body,r,!0),r)},mathmlBuilder(e,r){return Lu(e.body,r,!0)}}),At({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,r){var{parser:n}=e,i=r[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,r){var n=Pr(e.body,r.havingCrampedStyle()),i=ke.makeLineSpan("overline-line",r),o=r.fontMetrics().defaultRuleThickness,s=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]},r);return ke.makeSpan(["mord","overline"],[s],r)},mathmlBuilder(e,r){var n=new tt.MathNode("mo",[new tt.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new tt.MathNode("mover",[vn(e.body,r),n]);return i.setAttribute("accent","true"),i}}),At({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,r)=>{var{parser:n}=e,i=r[0];return{type:"phantom",mode:n.mode,body:di(i)}},htmlBuilder:(e,r)=>{var n=Ci(e.body,r.withPhantom(),!1);return ke.makeFragment(n)},mathmlBuilder:(e,r)=>{var n=ss(e.body,r);return new tt.MathNode("mphantom",n)}}),At({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,r)=>{var{parser:n}=e,i=r[0];return{type:"hphantom",mode:n.mode,body:i}},htmlBuilder:(e,r)=>{var n=ke.makeSpan([],[Pr(e.body,r.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var i=0;i<n.children.length;i++)n.children[i].height=0,n.children[i].depth=0;return n=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},r),ke.makeSpan(["mord"],[n],r)},mathmlBuilder:(e,r)=>{var n=ss(di(e.body),r),i=new tt.MathNode("mphantom",n),o=new tt.MathNode("mpadded",[i]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),At({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,r)=>{var{parser:n}=e,i=r[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,r)=>{var n=ke.makeSpan(["inner"],[Pr(e.body,r.withPhantom())]),i=ke.makeSpan(["fix"],[]);return ke.makeSpan(["mord","rlap"],[n,i],r)},mathmlBuilder:(e,r)=>{var n=ss(di(e.body),r),i=new tt.MathNode("mphantom",n),o=new tt.MathNode("mpadded",[i]);return o.setAttribute("width","0px"),o}}),At({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,r){var{parser:n}=e,i=br(r[0],"size").value,o=r[1];return{type:"raisebox",mode:n.mode,dy:i,body:o}},htmlBuilder(e,r){var n=Pr(e.body,r),i=Jn(e.dy,r);return ke.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]},r)},mathmlBuilder(e,r){var n=new tt.MathNode("mpadded",[vn(e.body,r)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),At({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:r}=e;return{type:"internal",mode:r.mode}}}),At({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,r,n){var{parser:i}=e,o=n[0],s=br(r[0],"size"),a=br(r[1],"size");return{type:"rule",mode:i.mode,shift:o&&br(o,"size").value,width:s.value,height:a.value}},htmlBuilder(e,r){var n=ke.makeSpan(["mord","rule"],[],r),i=Jn(e.width,r),o=Jn(e.height,r),s=e.shift?Jn(e.shift,r):0;return n.style.borderRightWidth=gt(i),n.style.borderTopWidth=gt(o),n.style.bottom=gt(s),n.width=i,n.height=o+s,n.depth=-s,n.maxFontSize=o*1.125*r.sizeMultiplier,n},mathmlBuilder(e,r){var n=Jn(e.width,r),i=Jn(e.height,r),o=e.shift?Jn(e.shift,r):0,s=r.color&&r.getColor()||"black",a=new tt.MathNode("mspace");a.setAttribute("mathbackground",s),a.setAttribute("width",gt(n)),a.setAttribute("height",gt(i));var l=new tt.MathNode("mpadded",[a]);return o>=0?l.setAttribute("height",gt(o)):(l.setAttribute("height",gt(o)),l.setAttribute("depth",gt(-o))),l.setAttribute("voffset",gt(o)),l}});function vI(e,r,n){for(var i=Ci(e,r,!1),o=r.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var a=i[s].classes.indexOf("sizing");a<0?Array.prototype.push.apply(i[s].classes,r.sizingClasses(n)):i[s].classes[a+1]==="reset-size"+r.size&&(i[s].classes[a+1]="reset-size"+n.size),i[s].height*=o,i[s].depth*=o}return ke.makeFragment(i)}var Nx=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],qAe=(e,r)=>{var n=r.havingSize(e.size);return vI(e.body,n,r)};At({type:"sizing",names:Nx,props:{numArgs:0,allowedInText:!0},handler:(e,r)=>{var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:Nx.indexOf(i)+1,body:s}},htmlBuilder:qAe,mathmlBuilder:(e,r)=>{var n=r.havingSize(e.size),i=ss(e.body,n),o=new tt.MathNode("mstyle",i);return o.setAttribute("mathsize",gt(n.sizeMultiplier)),o}}),At({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,r,n)=>{var{parser:i}=e,o=!1,s=!1,a=n[0]&&br(n[0],"ordgroup");if(a)for(var l="",u=0;u<a.body.length;++u){var c=a.body[u];if(l=c.text,l==="t")o=!0;else if(l==="b")s=!0;else{o=!1,s=!1;break}}else o=!0,s=!0;var d=r[0];return{type:"smash",mode:i.mode,body:d,smashHeight:o,smashDepth:s}},htmlBuilder:(e,r)=>{var n=ke.makeSpan([],[Pr(e.body,r)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var s=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},r);return ke.makeSpan(["mord"],[s],r)},mathmlBuilder:(e,r)=>{var n=new tt.MathNode("mpadded",[vn(e.body,r)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),At({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,r,n){var{parser:i}=e,o=n[0],s=r[0];return{type:"sqrt",mode:i.mode,body:s,index:o}},htmlBuilder(e,r){var n=Pr(e.body,r.havingCrampedStyle());n.height===0&&(n.height=r.fontMetrics().xHeight),n=ke.wrapFragment(n,r);var i=r.fontMetrics(),o=i.defaultRuleThickness,s=o;r.style.id<er.TEXT.id&&(s=r.fontMetrics().xHeight);var a=o+s/4,l=n.height+n.depth+a+o,{span:u,ruleWidth:c,advanceWidth:d}=l0.sqrtImage(l,r),h=u.height-c;h>n.height+n.depth+a&&(a=(a+h-n.height-n.depth)/2);var p=u.height-n.height-a-c;n.style.paddingLeft=gt(d);var f=ke.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:u},{type:"kern",size:c}]},r);if(e.index){var m=r.havingStyle(er.SCRIPTSCRIPT),v=Pr(e.index,m,r),w=.6*(f.height-f.depth),x=ke.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:v}]},r),k=ke.makeSpan(["root"],[x]);return ke.makeSpan(["mord","sqrt"],[k,f],r)}else return ke.makeSpan(["mord","sqrt"],[f],r)},mathmlBuilder(e,r){var{body:n,index:i}=e;return i?new tt.MathNode("mroot",[vn(n,r),vn(i,r)]):new tt.MathNode("msqrt",[vn(n,r)])}});var Fx={display:er.DISPLAY,text:er.TEXT,script:er.SCRIPT,scriptscript:er.SCRIPTSCRIPT};At({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,r){var{breakOnTokenText:n,funcName:i,parser:o}=e,s=o.parseExpression(!0,n),a=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:a,body:s}},htmlBuilder(e,r){var n=Fx[e.style],i=r.havingStyle(n).withFont("");return vI(e.body,i,r)},mathmlBuilder(e,r){var n=Fx[e.style],i=r.havingStyle(n),o=ss(e.body,i),s=new tt.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=a[e.style];return s.setAttribute("scriptlevel",l[0]),s.setAttribute("displaystyle",l[1]),s}});var WAe=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===er.DISPLAY.size||n.alwaysHandleSupSub);return i?xh:null}else if(n.type==="operatorname"){var o=n.alwaysHandleSupSub&&(r.style.size===er.DISPLAY.size||n.limits);return o?bI:null}else{if(n.type==="accent")return Ur.isCharacterBox(n.base)?kb:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?gI:null}else return null}else return null};ad({type:"supsub",htmlBuilder(e,r){var n=WAe(e,r);if(n)return n(e,r);var{base:i,sup:o,sub:s}=e,a=Pr(i,r),l,u,c=r.fontMetrics(),d=0,h=0,p=i&&Ur.isCharacterBox(i);if(o){var f=r.havingStyle(r.style.sup());l=Pr(o,f,r),p||(d=a.height-f.fontMetrics().supDrop*f.sizeMultiplier/r.sizeMultiplier)}if(s){var m=r.havingStyle(r.style.sub());u=Pr(s,m,r),p||(h=a.depth+m.fontMetrics().subDrop*m.sizeMultiplier/r.sizeMultiplier)}var v;r.style===er.DISPLAY?v=c.sup1:r.style.cramped?v=c.sup3:v=c.sup2;var w=r.sizeMultiplier,x=gt(.5/c.ptPerEm/w),k=null;if(u){var R=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(a instanceof sa||R)&&(k=gt(-a.italic))}var O;if(l&&u){d=Math.max(d,v,l.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var P=c.defaultRuleThickness,V=4*P;if(d-l.depth-(u.height-h)<V){h=V-(d-l.depth)+u.height;var W=.8*c.xHeight-(d-l.depth);W>0&&(d+=W,h-=W)}var ie=[{type:"elem",elem:u,shift:h,marginRight:x,marginLeft:k},{type:"elem",elem:l,shift:-d,marginRight:x}];O=ke.makeVList({positionType:"individualShift",children:ie},r)}else if(u){h=Math.max(h,c.sub1,u.height-.8*c.xHeight);var ue=[{type:"elem",elem:u,marginLeft:k,marginRight:x}];O=ke.makeVList({positionType:"shift",positionData:h,children:ue},r)}else if(l)d=Math.max(d,v,l.depth+.25*c.xHeight),O=ke.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:l,marginRight:x}]},r);else throw new Error("supsub must have either sup or sub.");var I=wb(a,"right")||"mord";return ke.makeSpan([I],[a,ke.makeSpan(["msupsub"],[O])],r)},mathmlBuilder(e,r){var n=!1,i,o;e.base&&e.base.type==="horizBrace"&&(o=!!e.sup,o===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[vn(e.base,r)];e.sub&&s.push(vn(e.sub,r)),e.sup&&s.push(vn(e.sup,r));var a;if(n)a=i?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&r.style===er.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(r.style===er.DISPLAY||l.limits)?a="munderover":a="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(r.style===er.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||r.style===er.DISPLAY)?a="munder":a="msub"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(r.style===er.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||r.style===er.DISPLAY)?a="mover":a="msup"}return new tt.MathNode(a,s)}}),ad({type:"atom",htmlBuilder(e,r){return ke.mathsym(e.text,e.mode,r,["m"+e.family])},mathmlBuilder(e,r){var n=new tt.MathNode("mo",[qs(e.text,e.mode)]);if(e.family==="bin"){var i=Db(e,r);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var Ox={mi:"italic",mn:"normal",mtext:"normal"};ad({type:"mathord",htmlBuilder(e,r){return ke.makeOrd(e,r,"mathord")},mathmlBuilder(e,r){var n=new tt.MathNode("mi",[qs(e.text,e.mode,r)]),i=Db(e,r)||"italic";return i!==Ox[n.type]&&n.setAttribute("mathvariant",i),n}}),ad({type:"textord",htmlBuilder(e,r){return ke.makeOrd(e,r,"textord")},mathmlBuilder(e,r){var n=qs(e.text,e.mode,r),i=Db(e,r)||"normal",o;return e.mode==="text"?o=new tt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?o=new tt.MathNode("mn",[n]):e.text==="\\prime"?o=new tt.MathNode("mo",[n]):o=new tt.MathNode("mi",[n]),i!==Ox[o.type]&&o.setAttribute("mathvariant",i),o}});var Cy={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},_y={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ad({type:"spacing",htmlBuilder(e,r){if(_y.hasOwnProperty(e.text)){var n=_y[e.text].className||"";if(e.mode==="text"){var i=ke.makeOrd(e,r,"textord");return i.classes.push(n),i}else return ke.makeSpan(["mspace",n],[ke.mathsym(e.text,e.mode,r)],r)}else{if(Cy.hasOwnProperty(e.text))return ke.makeSpan(["mspace",Cy[e.text]],[],r);throw new nt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,r){var n;if(_y.hasOwnProperty(e.text))n=new tt.MathNode("mtext",[new tt.TextNode(" ")]);else{if(Cy.hasOwnProperty(e.text))return new tt.MathNode("mspace");throw new nt('Unknown type of space "'+e.text+'"')}return n}});var Mx=()=>{var e=new tt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ad({type:"tag",mathmlBuilder(e,r){var n=new tt.MathNode("mtable",[new tt.MathNode("mtr",[Mx(),new tt.MathNode("mtd",[Lu(e.body,r)]),Mx(),new tt.MathNode("mtd",[Lu(e.tag,r)])])]);return n.setAttribute("width","100%"),n}});var Rx={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Bx={"\\textbf":"textbf","\\textmd":"textmd"},KAe={"\\textit":"textit","\\textup":"textup"},Ix=(e,r)=>{var n=e.font;if(n){if(Rx[n])return r.withTextFontFamily(Rx[n]);if(Bx[n])return r.withTextFontWeight(Bx[n]);if(n==="\\emph")return r.fontShape==="textit"?r.withTextFontShape("textup"):r.withTextFontShape("textit")}else return r;return r.withTextFontShape(KAe[n])};At({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,r){var{parser:n,funcName:i}=e,o=r[0];return{type:"text",mode:n.mode,body:di(o),font:i}},htmlBuilder(e,r){var n=Ix(e,r),i=Ci(e.body,n,!0);return ke.makeSpan(["mord","text"],i,n)},mathmlBuilder(e,r){var n=Ix(e,r);return Lu(e.body,n)}}),At({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,r){var{parser:n}=e;return{type:"underline",mode:n.mode,body:r[0]}},htmlBuilder(e,r){var n=Pr(e.body,r),i=ke.makeLineSpan("underline-line",r),o=r.fontMetrics().defaultRuleThickness,s=ke.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n}]},r);return ke.makeSpan(["mord","underline"],[s],r)},mathmlBuilder(e,r){var n=new tt.MathNode("mo",[new tt.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new tt.MathNode("munder",[vn(e.body,r),n]);return i.setAttribute("accentunder","true"),i}}),At({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,r){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:r[0]}},htmlBuilder(e,r){var n=Pr(e.body,r),i=r.fontMetrics().axisHeight,o=.5*(n.height-i-(n.depth+i));return ke.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},r)},mathmlBuilder(e,r){return new tt.MathNode("mpadded",[vn(e.body,r)],["vcenter"])}}),At({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,r,n){throw new nt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,r){for(var n=Lx(e),i=[],o=r.havingStyle(r.style.text()),s=0;s<n.length;s++){var a=n[s];a==="~"&&(a="\\textasciitilde"),i.push(ke.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return ke.makeSpan(["mord","text"].concat(o.sizingClasses(r)),ke.tryCombineChars(i),o)},mathmlBuilder(e,r){var n=new tt.TextNode(Lx(e)),i=new tt.MathNode("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var Lx=e=>e.body.replace(/ /g,e.star?"␣":" "),Su=JB,AI=`[ \r ]`,QAe="\\\\[a-zA-Z@]+",JAe="\\\\[^\uD800-\uDFFF]",XAe="("+QAe+")"+AI+"*",e8e=`\\\\( |[ \r ]+ ?)[ \r ]*`,Ob="[̀-ͯ]",t8e=new RegExp(Ob+"+$"),r8e="("+AI+"+)|"+(e8e+"|")+"([!-\\[\\]-‧-豈-]"+(Ob+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ob+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+XAe)+("|"+JAe+")");class zx{constructor(r,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=r,this.settings=n,this.tokenRegex=new RegExp(r8e,"g"),this.catcodes={"%":14,"~":13}}setCatcode(r,n){this.catcodes[r]=n}lex(){var r=this.input,n=this.tokenRegex.lastIndex;if(n===r.length)return new Os("EOF",new Wo(this,n,n));var i=this.tokenRegex.exec(r);if(i===null||i.index!==n)throw new nt("Unexpected character: '"+r[n]+"'",new Os(r[n],new Wo(this,n,n+1)));var o=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[o]===14){var s=r.indexOf(` `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=r.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Os(o,new Wo(this,n,this.tokenRegex.lastIndex))}}class n8e{constructor(r,n){r===void 0&&(r={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=r,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new nt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var r=this.undefStack.pop();for(var n in r)r.hasOwnProperty(n)&&(r[n]==null?delete this.current[n]:this.current[n]=r[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(r){return this.current.hasOwnProperty(r)||this.builtins.hasOwnProperty(r)}get(r){return this.current.hasOwnProperty(r)?this.current[r]:this.builtins[r]}set(r,n,i){if(i===void 0&&(i=!1),i){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][r];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][r]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(r)&&(s[r]=this.current[r])}n==null?delete this.current[r]:this.current[r]=n}}var i8e=fI;G("\\noexpand",function(e){var r=e.popToken();return e.isExpandable(r.text)&&(r.noexpand=!0,r.treatAsRelax=!0),{tokens:[r],numArgs:0}}),G("\\expandafter",function(e){var r=e.popToken();return e.expandOnce(!0),{tokens:[r],numArgs:0}}),G("\\@firstoftwo",function(e){var r=e.consumeArgs(2);return{tokens:r[0],numArgs:0}}),G("\\@secondoftwo",function(e){var r=e.consumeArgs(2);return{tokens:r[1],numArgs:0}}),G("\\@ifnextchar",function(e){var r=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return r[0].length===1&&r[0][0].text===n.text?{tokens:r[1],numArgs:0}:{tokens:r[2],numArgs:0}}),G("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),G("\\TextOrMath",function(e){var r=e.consumeArgs(2);return e.mode==="text"?{tokens:r[0],numArgs:0}:{tokens:r[1],numArgs:0}});var Yx={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};G("\\char",function(e){var r=e.popToken(),n,i="";if(r.text==="'")n=8,r=e.popToken();else if(r.text==='"')n=16,r=e.popToken();else if(r.text==="`")if(r=e.popToken(),r.text[0]==="\\")i=r.text.charCodeAt(1);else{if(r.text==="EOF")throw new nt("\\char` missing argument");i=r.text.charCodeAt(0)}else n=10;if(n){if(i=Yx[r.text],i==null||i>=n)throw new nt("Invalid base-"+n+" digit "+r.text);for(var o;(o=Yx[e.future().text])!=null&&o<n;)i*=n,i+=o,e.popToken()}return"\\@char{"+i+"}"});var Ny=(e,r,n,i)=>{var o=e.consumeArg().tokens;if(o.length!==1)throw new nt("\\newcommand's first argument must be a macro name");var s=o[0].text,a=e.isDefined(s);if(a&&!r)throw new nt("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!a&&!n)throw new nt("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var l=0;if(o=e.consumeArg().tokens,o.length===1&&o[0].text==="["){for(var u="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)u+=c.text,c=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new nt("Invalid number of arguments: "+u);l=parseInt(u),o=e.consumeArg().tokens}return a&&i||e.macros.set(s,{tokens:o,numArgs:l}),""};G("\\newcommand",e=>Ny(e,!1,!0,!1)),G("\\renewcommand",e=>Ny(e,!0,!1,!1)),G("\\providecommand",e=>Ny(e,!0,!0,!0)),G("\\message",e=>{var r=e.consumeArgs(1)[0];return console.log(r.reverse().map(n=>n.text).join("")),""}),G("\\errmessage",e=>{var r=e.consumeArgs(1)[0];return console.error(r.reverse().map(n=>n.text).join("")),""}),G("\\show",e=>{var r=e.popToken(),n=r.text;return console.log(r,e.macros.get(n),Su[n],Fn.math[n],Fn.text[n]),""}),G("\\bgroup","{"),G("\\egroup","}"),G("~","\\nobreakspace"),G("\\lq","`"),G("\\rq","'"),G("\\aa","\\r a"),G("\\AA","\\r A"),G("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),G("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),G("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),G("ℬ","\\mathscr{B}"),G("ℰ","\\mathscr{E}"),G("ℱ","\\mathscr{F}"),G("ℋ","\\mathscr{H}"),G("ℐ","\\mathscr{I}"),G("ℒ","\\mathscr{L}"),G("ℳ","\\mathscr{M}"),G("ℛ","\\mathscr{R}"),G("ℭ","\\mathfrak{C}"),G("ℌ","\\mathfrak{H}"),G("ℨ","\\mathfrak{Z}"),G("\\Bbbk","\\Bbb{k}"),G("·","\\cdotp"),G("\\llap","\\mathllap{\\textrm{#1}}"),G("\\rlap","\\mathrlap{\\textrm{#1}}"),G("\\clap","\\mathclap{\\textrm{#1}}"),G("\\mathstrut","\\vphantom{(}"),G("\\underbar","\\underline{\\text{#1}}"),G("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),G("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),G("\\ne","\\neq"),G("≠","\\neq"),G("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),G("∉","\\notin"),G("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),G("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),G("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),G("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),G("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),G("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),G("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),G("⟂","\\perp"),G("‼","\\mathclose{!\\mkern-0.8mu!}"),G("∌","\\notni"),G("⌜","\\ulcorner"),G("⌝","\\urcorner"),G("⌞","\\llcorner"),G("⌟","\\lrcorner"),G("©","\\copyright"),G("®","\\textregistered"),G("️","\\textregistered"),G("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),G("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),G("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),G("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),G("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),G("⋮","\\vdots"),G("\\varGamma","\\mathit{\\Gamma}"),G("\\varDelta","\\mathit{\\Delta}"),G("\\varTheta","\\mathit{\\Theta}"),G("\\varLambda","\\mathit{\\Lambda}"),G("\\varXi","\\mathit{\\Xi}"),G("\\varPi","\\mathit{\\Pi}"),G("\\varSigma","\\mathit{\\Sigma}"),G("\\varUpsilon","\\mathit{\\Upsilon}"),G("\\varPhi","\\mathit{\\Phi}"),G("\\varPsi","\\mathit{\\Psi}"),G("\\varOmega","\\mathit{\\Omega}"),G("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),G("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),G("\\boxed","\\fbox{$\\displaystyle{#1}$}"),G("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),G("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),G("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),G("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),G("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Hx={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};G("\\dots",function(e){var r="\\dotso",n=e.expandAfterFuture().text;return n in Hx?r=Hx[n]:(n.slice(0,4)==="\\not"||n in Fn.math&&["bin","rel"].includes(Fn.math[n].group))&&(r="\\dotsb"),r});var Fy={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};G("\\dotso",function(e){var r=e.future().text;return r in Fy?"\\ldots\\,":"\\ldots"}),G("\\dotsc",function(e){var r=e.future().text;return r in Fy&&r!==","?"\\ldots\\,":"\\ldots"}),G("\\cdots",function(e){var r=e.future().text;return r in Fy?"\\@cdots\\,":"\\@cdots"}),G("\\dotsb","\\cdots"),G("\\dotsm","\\cdots"),G("\\dotsi","\\!\\cdots"),G("\\dotsx","\\ldots\\,"),G("\\DOTSI","\\relax"),G("\\DOTSB","\\relax"),G("\\DOTSX","\\relax"),G("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),G("\\,","\\tmspace+{3mu}{.1667em}"),G("\\thinspace","\\,"),G("\\>","\\mskip{4mu}"),G("\\:","\\tmspace+{4mu}{.2222em}"),G("\\medspace","\\:"),G("\\;","\\tmspace+{5mu}{.2777em}"),G("\\thickspace","\\;"),G("\\!","\\tmspace-{3mu}{.1667em}"),G("\\negthinspace","\\!"),G("\\negmedspace","\\tmspace-{4mu}{.2222em}"),G("\\negthickspace","\\tmspace-{5mu}{.277em}"),G("\\enspace","\\kern.5em "),G("\\enskip","\\hskip.5em\\relax"),G("\\quad","\\hskip1em\\relax"),G("\\qquad","\\hskip2em\\relax"),G("\\tag","\\@ifstar\\tag@literal\\tag@paren"),G("\\tag@paren","\\tag@literal{({#1})}"),G("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new nt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),G("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),G("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),G("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),G("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),G("\\newline","\\\\\\relax"),G("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Px=gt(yl["Main-Regular"][84][1]-.7*yl["Main-Regular"][65][1]);G("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Px+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),G("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Px+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),G("\\hspace","\\@ifstar\\@hspacer\\@hspace"),G("\\@hspace","\\hskip #1\\relax"),G("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),G("\\ordinarycolon",":"),G("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),G("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),G("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),G("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),G("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),G("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),G("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),G("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),G("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),G("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),G("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),G("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),G("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),G("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),G("∷","\\dblcolon"),G("∹","\\eqcolon"),G("≔","\\coloneqq"),G("≕","\\eqqcolon"),G("⩴","\\Coloneqq"),G("\\ratio","\\vcentcolon"),G("\\coloncolon","\\dblcolon"),G("\\colonequals","\\coloneqq"),G("\\coloncolonequals","\\Coloneqq"),G("\\equalscolon","\\eqqcolon"),G("\\equalscoloncolon","\\Eqqcolon"),G("\\colonminus","\\coloneq"),G("\\coloncolonminus","\\Coloneq"),G("\\minuscolon","\\eqcolon"),G("\\minuscoloncolon","\\Eqcolon"),G("\\coloncolonapprox","\\Colonapprox"),G("\\coloncolonsim","\\Colonsim"),G("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),G("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),G("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),G("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),G("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),G("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),G("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),G("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),G("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),G("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),G("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),G("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),G("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),G("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),G("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),G("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),G("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),G("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),G("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),G("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),G("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),G("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),G("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),G("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),G("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),G("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),G("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),G("\\imath","\\html@mathml{\\@imath}{ı}"),G("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),G("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),G("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),G("⟦","\\llbracket"),G("⟧","\\rrbracket"),G("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),G("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),G("⦃","\\lBrace"),G("⦄","\\rBrace"),G("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),G("⦵","\\minuso"),G("\\darr","\\downarrow"),G("\\dArr","\\Downarrow"),G("\\Darr","\\Downarrow"),G("\\lang","\\langle"),G("\\rang","\\rangle"),G("\\uarr","\\uparrow"),G("\\uArr","\\Uparrow"),G("\\Uarr","\\Uparrow"),G("\\N","\\mathbb{N}"),G("\\R","\\mathbb{R}"),G("\\Z","\\mathbb{Z}"),G("\\alef","\\aleph"),G("\\alefsym","\\aleph"),G("\\Alpha","\\mathrm{A}"),G("\\Beta","\\mathrm{B}"),G("\\bull","\\bullet"),G("\\Chi","\\mathrm{X}"),G("\\clubs","\\clubsuit"),G("\\cnums","\\mathbb{C}"),G("\\Complex","\\mathbb{C}"),G("\\Dagger","\\ddagger"),G("\\diamonds","\\diamondsuit"),G("\\empty","\\emptyset"),G("\\Epsilon","\\mathrm{E}"),G("\\Eta","\\mathrm{H}"),G("\\exist","\\exists"),G("\\harr","\\leftrightarrow"),G("\\hArr","\\Leftrightarrow"),G("\\Harr","\\Leftrightarrow"),G("\\hearts","\\heartsuit"),G("\\image","\\Im"),G("\\infin","\\infty"),G("\\Iota","\\mathrm{I}"),G("\\isin","\\in"),G("\\Kappa","\\mathrm{K}"),G("\\larr","\\leftarrow"),G("\\lArr","\\Leftarrow"),G("\\Larr","\\Leftarrow"),G("\\lrarr","\\leftrightarrow"),G("\\lrArr","\\Leftrightarrow"),G("\\Lrarr","\\Leftrightarrow"),G("\\Mu","\\mathrm{M}"),G("\\natnums","\\mathbb{N}"),G("\\Nu","\\mathrm{N}"),G("\\Omicron","\\mathrm{O}"),G("\\plusmn","\\pm"),G("\\rarr","\\rightarrow"),G("\\rArr","\\Rightarrow"),G("\\Rarr","\\Rightarrow"),G("\\real","\\Re"),G("\\reals","\\mathbb{R}"),G("\\Reals","\\mathbb{R}"),G("\\Rho","\\mathrm{P}"),G("\\sdot","\\cdot"),G("\\sect","\\S"),G("\\spades","\\spadesuit"),G("\\sub","\\subset"),G("\\sube","\\subseteq"),G("\\supe","\\supseteq"),G("\\Tau","\\mathrm{T}"),G("\\thetasym","\\vartheta"),G("\\weierp","\\wp"),G("\\Zeta","\\mathrm{Z}"),G("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),G("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),G("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),G("\\bra","\\mathinner{\\langle{#1}|}"),G("\\ket","\\mathinner{|{#1}\\rangle}"),G("\\braket","\\mathinner{\\langle{#1}\\rangle}"),G("\\Bra","\\left\\langle#1\\right|"),G("\\Ket","\\left|#1\\right\\rangle");var Zx=e=>r=>{var n=r.consumeArg().tokens,i=r.consumeArg().tokens,o=r.consumeArg().tokens,s=r.consumeArg().tokens,a=r.macros.get("|"),l=r.macros.get("\\|");r.macros.beginGroup();var u=h=>p=>{e&&(p.macros.set("|",a),o.length&&p.macros.set("\\|",l));var f=h;if(!h&&o.length){var m=p.future();m.text==="|"&&(p.popToken(),f=!0)}return{tokens:f?o:i,numArgs:0}};r.macros.set("|",u(!1)),o.length&&r.macros.set("\\|",u(!0));var c=r.consumeArg().tokens,d=r.expandTokens([...s,...c,...n]);return r.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};G("\\bra@ket",Zx(!1)),G("\\bra@set",Zx(!0)),G("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),G("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),G("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),G("\\angln","{\\angl n}"),G("\\blue","\\textcolor{##6495ed}{#1}"),G("\\orange","\\textcolor{##ffa500}{#1}"),G("\\pink","\\textcolor{##ff00af}{#1}"),G("\\red","\\textcolor{##df0030}{#1}"),G("\\green","\\textcolor{##28ae7b}{#1}"),G("\\gray","\\textcolor{gray}{#1}"),G("\\purple","\\textcolor{##9d38bd}{#1}"),G("\\blueA","\\textcolor{##ccfaff}{#1}"),G("\\blueB","\\textcolor{##80f6ff}{#1}"),G("\\blueC","\\textcolor{##63d9ea}{#1}"),G("\\blueD","\\textcolor{##11accd}{#1}"),G("\\blueE","\\textcolor{##0c7f99}{#1}"),G("\\tealA","\\textcolor{##94fff5}{#1}"),G("\\tealB","\\textcolor{##26edd5}{#1}"),G("\\tealC","\\textcolor{##01d1c1}{#1}"),G("\\tealD","\\textcolor{##01a995}{#1}"),G("\\tealE","\\textcolor{##208170}{#1}"),G("\\greenA","\\textcolor{##b6ffb0}{#1}"),G("\\greenB","\\textcolor{##8af281}{#1}"),G("\\greenC","\\textcolor{##74cf70}{#1}"),G("\\greenD","\\textcolor{##1fab54}{#1}"),G("\\greenE","\\textcolor{##0d923f}{#1}"),G("\\goldA","\\textcolor{##ffd0a9}{#1}"),G("\\goldB","\\textcolor{##ffbb71}{#1}"),G("\\goldC","\\textcolor{##ff9c39}{#1}"),G("\\goldD","\\textcolor{##e07d10}{#1}"),G("\\goldE","\\textcolor{##a75a05}{#1}"),G("\\redA","\\textcolor{##fca9a9}{#1}"),G("\\redB","\\textcolor{##ff8482}{#1}"),G("\\redC","\\textcolor{##f9685d}{#1}"),G("\\redD","\\textcolor{##e84d39}{#1}"),G("\\redE","\\textcolor{##bc2612}{#1}"),G("\\maroonA","\\textcolor{##ffbde0}{#1}"),G("\\maroonB","\\textcolor{##ff92c6}{#1}"),G("\\maroonC","\\textcolor{##ed5fa6}{#1}"),G("\\maroonD","\\textcolor{##ca337c}{#1}"),G("\\maroonE","\\textcolor{##9e034e}{#1}"),G("\\purpleA","\\textcolor{##ddd7ff}{#1}"),G("\\purpleB","\\textcolor{##c6b9fc}{#1}"),G("\\purpleC","\\textcolor{##aa87ff}{#1}"),G("\\purpleD","\\textcolor{##7854ab}{#1}"),G("\\purpleE","\\textcolor{##543b78}{#1}"),G("\\mintA","\\textcolor{##f5f9e8}{#1}"),G("\\mintB","\\textcolor{##edf2df}{#1}"),G("\\mintC","\\textcolor{##e0e5cc}{#1}"),G("\\grayA","\\textcolor{##f6f7f7}{#1}"),G("\\grayB","\\textcolor{##f0f1f2}{#1}"),G("\\grayC","\\textcolor{##e3e5e6}{#1}"),G("\\grayD","\\textcolor{##d6d8da}{#1}"),G("\\grayE","\\textcolor{##babec2}{#1}"),G("\\grayF","\\textcolor{##888d93}{#1}"),G("\\grayG","\\textcolor{##626569}{#1}"),G("\\grayH","\\textcolor{##3b3e40}{#1}"),G("\\grayI","\\textcolor{##21242c}{#1}"),G("\\kaBlue","\\textcolor{##314453}{#1}"),G("\\kaGreen","\\textcolor{##71B307}{#1}");var EI={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class o8e{constructor(r,n,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(r),this.macros=new n8e(i8e,n.macros),this.mode=i,this.stack=[]}feed(r){this.lexer=new zx(r,this.settings)}switchMode(r){this.mode=r}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(r){this.stack.push(r)}pushTokens(r){this.stack.push(...r)}scanArgument(r){var n,i,o;if(r){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:o,end:i}=this.consumeArg(["]"])}else({tokens:o,start:n,end:i}=this.consumeArg());return this.pushToken(new Os("EOF",i.loc)),this.pushTokens(o),new Os("",Wo.range(n,i))}consumeSpaces(){for(;;){var r=this.future();if(r.text===" ")this.stack.pop();else break}}consumeArg(r){var n=[],i=r&&r.length>0;i||this.consumeSpaces();var o=this.future(),s,a=0,l=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++a;else if(s.text==="}"){if(--a,a===-1)throw new nt("Extra }",s)}else if(s.text==="EOF")throw new nt("Unexpected end of input in a macro argument, expected '"+(r&&i?r[l]:"}")+"'",s);if(r&&i)if((a===0||a===1&&r[l]==="{")&&s.text===r[l]){if(++l,l===r.length){n.splice(-l,l);break}}else l=0}while(a!==0||i);return o.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:o,end:s}}consumeArgs(r,n){if(n){if(n.length!==r+1)throw new nt("The length of delimiters doesn't match the number of args!");for(var i=n[0],o=0;o<i.length;o++){var s=this.popToken();if(i[o]!==s.text)throw new nt("Use of the macro doesn't match its definition",s)}}for(var a=[],l=0;l<r;l++)a.push(this.consumeArg(n&&n[l+1]).tokens);return a}countExpansion(r){if(this.expansionCount+=r,this.expansionCount>this.settings.maxExpand)throw new nt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(r){var n=this.popToken(),i=n.text,o=n.noexpand?null:this._getExpansion(i);if(o==null||r&&o.unexpandable){if(r&&o==null&&i[0]==="\\"&&!this.isDefined(i))throw new nt("Undefined control sequence: "+i);return this.pushToken(n),!1}this.countExpansion(1);var s=o.tokens,a=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){s=s.slice();for(var l=s.length-1;l>=0;--l){var u=s[l];if(u.text==="#"){if(l===0)throw new nt("Incomplete placeholder at end of macro body",u);if(u=s[--l],u.text==="#")s.splice(l+1,1);else if(/^[1-9]$/.test(u.text))s.splice(l,2,...a[+u.text-1]);else throw new nt("Not a valid argument number",u)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var r=this.stack.pop();return r.treatAsRelax&&(r.text="\\relax"),r}throw new Error}expandMacro(r){return this.macros.has(r)?this.expandTokens([new Os(r)]):void 0}expandTokens(r){var n=[],i=this.stack.length;for(this.pushTokens(r);this.stack.length>i;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),n.push(o)}return this.countExpansion(n.length),n}expandMacroAsText(r){var n=this.expandMacro(r);return n&&n.map(i=>i.text).join("")}_getExpansion(r){var n=this.macros.get(r);if(n==null)return n;if(r.length===1){var i=this.lexer.catcodes[r];if(i!=null&&i!==13)return}var o=typeof n=="function"?n(this):n;if(typeof o=="string"){var s=0;if(o.indexOf("#")!==-1)for(var a=o.replace(/##/g,"");a.indexOf("#"+(s+1))!==-1;)++s;for(var l=new zx(o,this.settings),u=[],c=l.lex();c.text!=="EOF";)u.push(c),c=l.lex();u.reverse();var d={tokens:u,numArgs:s};return d}return o}isDefined(r){return this.macros.has(r)||Su.hasOwnProperty(r)||Fn.math.hasOwnProperty(r)||Fn.text.hasOwnProperty(r)||EI.hasOwnProperty(r)}isExpandable(r){var n=this.macros.get(r);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Su.hasOwnProperty(r)&&!Su[r].primitive}}var $x=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,$g=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Oy={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ux={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class h5{constructor(r,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new o8e(r,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(r,n){if(n===void 0&&(n=!0),this.fetch().text!==r)throw new nt("Expected '"+r+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(r){this.mode=r,this.gullet.switchMode(r)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var r=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),r}finally{this.gullet.endGroups()}}subparse(r){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Os("}")),this.gullet.pushTokens(r);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,i}parseExpression(r,n){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(h5.endOfExpression.indexOf(o.text)!==-1||n&&o.text===n||r&&Su[o.text]&&Su[o.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;i.push(s)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(r){for(var n=-1,i,o=0;o<r.length;o++)if(r[o].type==="infix"){if(n!==-1)throw new nt("only one infix operator per group",r[o].token);n=o,i=r[o].replaceWith}if(n!==-1&&i){var s,a,l=r.slice(0,n),u=r.slice(n+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?a=u[0]:a={type:"ordgroup",mode:this.mode,body:u};var c;return i==="\\\\abovefrac"?c=this.callFunction(i,[s,r[n],a],[]):c=this.callFunction(i,[s,a],[]),[c]}else return r}handleSupSubscript(r){var n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();var o;do{var s;o=this.parseGroup(r)}while(((s=o)==null?void 0:s.type)==="internal");if(!o)throw new nt("Expected group after '"+i+"'",n);return o}formatUnsupportedCmd(r){for(var n=[],i=0;i<r.length;i++)n.push({type:"textord",mode:"text",text:r[i]});var o={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return s}parseAtom(r){var n=this.parseGroup("atom",r);if(n?.type==="internal"||this.mode==="text")return n;for(var i,o;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var a=s.text==="\\limits";n.limits=a,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new nt("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new nt("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(o)throw new nt("Double subscript",s);o=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new nt("Double superscript",s);var l={type:"textord",mode:this.mode,text:"\\prime"},u=[l];for(this.consume();this.fetch().text==="'";)u.push(l),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:u}}else if($g[s.text]){var c=$x.test(s.text),d=[];for(d.push(new Os($g[s.text])),this.consume();;){var h=this.fetch().text;if(!$g[h]||$x.test(h)!==c)break;d.unshift(new Os($g[h])),this.consume()}var p=this.subparse(d);c?o={type:"ordgroup",mode:"math",body:p}:i={type:"ordgroup",mode:"math",body:p}}else break}return i||o?{type:"supsub",mode:this.mode,base:n,sup:i,sub:o}:n}parseFunction(r,n){var i=this.fetch(),o=i.text,s=Su[o];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new nt("Got function '"+o+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!s.allowedInText)throw new nt("Can't use function '"+o+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new nt("Can't use function '"+o+"' in math mode",i);var{args:a,optArgs:l}=this.parseArguments(o,s);return this.callFunction(o,a,l,i,r)}callFunction(r,n,i,o,s){var a={funcName:r,parser:this,token:o,breakOnTokenText:s},l=Su[r];if(l&&l.handler)return l.handler(a,n,i);throw new nt("No function handler for "+r)}parseArguments(r,n){var i=n.numArgs+n.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var o=[],s=[],a=0;a<i;a++){var l=n.argTypes&&n.argTypes[a],u=a<n.numOptionalArgs;(n.primitive&&l==null||n.type==="sqrt"&&a===1&&s[0]==null)&&(l="primitive");var c=this.parseGroupOfType("argument to '"+r+"'",l,u);if(u)s.push(c);else if(c!=null)o.push(c);else throw new nt("Null argument, please report this as a bug")}return{args:o,optArgs:s}}parseGroupOfType(r,n,i){switch(n){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,n);case"hbox":{var o=this.parseArgumentGroup(i,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",i);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(i)throw new nt("A primitive argument cannot be optional");var a=this.parseGroup(r);if(a==null)throw new nt("Expected group as "+r,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new nt("Unknown group type as "+r,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(r,n){var i=this.gullet.scanArgument(n);if(i==null)return null;for(var o="",s;(s=this.fetch()).text!=="EOF";)o+=s.text,this.consume();return this.consume(),i.text=o,i}parseRegexGroup(r,n){for(var i=this.fetch(),o=i,s="",a;(a=this.fetch()).text!=="EOF"&&r.test(s+a.text);)o=a,s+=o.text,this.consume();if(s==="")throw new nt("Invalid "+n+": '"+i.text+"'",i);return i.range(o,s)}parseColorGroup(r){var n=this.parseStringGroup("color",r);if(n==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!i)throw new nt("Invalid color: '"+n.text+"'",n);var o=i[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(r){var n,i=!1;if(this.gullet.consumeSpaces(),!r&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",r),!n)return null;!r&&n.text.length===0&&(n.text="0pt",i=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!o)throw new nt("Invalid size: '"+n.text+"'",n);var s={number:+(o[1]+o[2]),unit:o[3]};if(!$B(s))throw new nt("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:i}}parseUrlGroup(r){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",r);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(r,n){var i=this.gullet.scanArgument(r);if(i==null)return null;var o=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return n&&this.switchMode(o),a}parseGroup(r,n){var i=this.fetch(),o=i.text,s;if(o==="{"||o==="\\begingroup"){this.consume();var a=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,a),u=this.fetch();this.expect(a),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Wo.range(i,u),body:l,semisimple:o==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,r)||this.parseSymbol(),s==null&&o[0]==="\\"&&!EI.hasOwnProperty(o)){if(this.settings.throwOnError)throw new nt("Undefined control sequence: "+o,i);s=this.formatUnsupportedCmd(o),this.consume()}return s}formLigatures(r){for(var n=r.length-1,i=0;i<n;++i){var o=r[i],s=o.text;s==="-"&&r[i+1].text==="-"&&(i+1<n&&r[i+2].text==="-"?(r.splice(i,3,{type:"textord",mode:"text",loc:Wo.range(o,r[i+2]),text:"---"}),n-=2):(r.splice(i,2,{type:"textord",mode:"text",loc:Wo.range(o,r[i+1]),text:"--"}),n-=1)),(s==="'"||s==="`")&&r[i+1].text===s&&(r.splice(i,2,{type:"textord",mode:"text",loc:Wo.range(o,r[i+1]),text:s+s}),n-=1)}}parseSymbol(){var r=this.fetch(),n=r.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var i=n.slice(5),o=i.charAt(0)==="*";if(o&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new nt(`\\verb assertion failed -- please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:o}}Ux.hasOwnProperty(n[0])&&!Fn[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',r),n=Ux[n[0]]+n.slice(1));var s=t8e.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var a;if(Fn[this.mode][n]){this.settings.strict&&this.mode==="math"&&Eb.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',r);var l=Fn[this.mode][n].group,u=Wo.range(r),c;if(G7e.hasOwnProperty(l)){var d=l;c={type:"atom",mode:this.mode,family:d,loc:u,text:n}}else c={type:l,mode:this.mode,loc:u,text:n};a=c}else if(n.charCodeAt(0)>=128)this.settings.strict&&(PB(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',r):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),r)),a={type:"textord",mode:"text",loc:Wo.range(r),text:n};else return null;if(this.consume(),s)for(var h=0;h<s[0].length;h++){var p=s[0][h];if(!Oy[p])throw new nt("Unknown accent ' "+p+"'",r);var f=Oy[p][this.mode]||Oy[p].text;if(!f)throw new nt("Accent "+p+" unsupported in "+this.mode+" mode",r);a={type:"accent",mode:this.mode,loc:Wo.range(r),label:f,isStretchy:!1,isShifty:!0,base:a}}return a}}h5.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var vA=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new h5(e,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new nt("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Os("\\df@tag")])}]}return i},AA=function(e,r,n){r.textContent="";var i=p5(e,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),AA=function(){throw new nt("KaTeX doesn't work in quirks mode.")});var wI=function(e,r){var n=p5(e,r).toMarkup();return n},SI=function(e,r){var n=new pA(r);return vA(e,n)},DI=function(e,r,n){if(n.throwOnError||!(e instanceof nt))throw e;var i=ke.makeSpan(["katex-error"],[new sa(r)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},p5=function(e,r){var n=new pA(r);try{var i=vA(e,n);return gAe(i,e,n)}catch(o){return DI(o,e,n)}},xI=function(e,r){var n=new pA(r);try{var i=vA(e,n);return yAe(i,e,n)}catch(o){return DI(o,e,n)}},kI="0.16.28",CI={Span:um,Anchor:gA,SymbolNode:sa,SvgNode:E0,PathNode:Wu,LineNode:Ab},f5={version:kI,render:AA,renderToString:wI,ParseError:nt,SETTINGS_SCHEMA:W1,__parse:SI,__renderToDomTree:p5,__renderToHTMLTree:xI,__setFontMetrics:ZB,__defineSymbol:F,__defineFunction:At,__defineMacro:G,__domTree:CI};const ewe=Object.freeze(Object.defineProperty({__proto__:null,ParseError:nt,SETTINGS_SCHEMA:W1,__defineFunction:At,__defineMacro:G,__defineSymbol:F,__domTree:CI,__parse:SI,__renderToDomTree:p5,__renderToHTMLTree:xI,__setFontMetrics:ZB,default:f5,get render(){return AA},renderToString:wI,version:kI},Symbol.toStringTag,{value:"Module"}));var _I=tn.create({name:"blockMath",group:"block",atom:!0,addOptions(){return{onClick:void 0,katexOptions:void 0}},addAttributes(){return{latex:{default:"",parseHTML:e=>e.getAttribute("data-latex"),renderHTML:e=>({"data-latex":e.latex})}}},addCommands(){return{insertBlockMath:e=>({commands:r,editor:n})=>{const{latex:i,pos:o}=e;return i?r.insertContentAt(o??n.state.selection.from,{type:this.name,attrs:{latex:i}}):!1},deleteBlockMath:e=>({editor:r,tr:n})=>{var i;const o=(i=e?.pos)!=null?i:r.state.selection.$from.pos,s=r.state.doc.nodeAt(o);return!s||s.type.name!==this.name?!1:(n.delete(o,o+s.nodeSize),!0)},updateBlockMath:e=>({editor:r,tr:n})=>{const i=e?.latex;let o=e?.pos;o===void 0&&(o=r.state.selection.$from.pos);const s=r.state.doc.nodeAt(o);return!s||s.type.name!==this.name?!1:(n.setNodeMarkup(o,this.type,{...s.attrs,latex:i||s.attrs.latex}),!0)}}},parseHTML(){return[{tag:'div[data-type="block-math"]'}]},renderHTML({HTMLAttributes:e}){return["div",gr(e,{"data-type":"block-math"})]},parseMarkdown:e=>({type:"blockMath",attrs:{latex:e.latex}}),renderMarkdown:e=>{var r;return["$$",((r=e.attrs)==null?void 0:r.latex)||"","$$"].join(` `)},markdownTokenizer:{name:"blockMath",level:"block",start:e=>e.indexOf("$$"),tokenize:e=>{const r=e.match(/^\$\$([^$]+)\$\$/);if(!r)return;const[n,i]=r;return{type:"blockMath",raw:n,latex:i.trim()}}},addInputRules(){return[new Xu({find:/^\$\$\$([^$]+)\$\$\$$/,handler:({state:e,range:r,match:n})=>{const[,i]=n,{tr:o}=e,s=r.from,a=r.to;o.replaceWith(s,a,this.type.create({latex:i}))}})]},addNodeView(){const{katexOptions:e}=this.options;return({node:r,getPos:n})=>{const i=document.createElement("div"),o=document.createElement("div");i.className="tiptap-mathematics-render",this.editor.isEditable&&i.classList.add("tiptap-mathematics-render--editable"),o.className="block-math-inner",i.dataset.type="block-math",i.setAttribute("data-latex",r.attrs.latex),i.appendChild(o);function s(){try{f5.render(r.attrs.latex,o,e),i.classList.remove("block-math-error")}catch{i.textContent=r.attrs.latex,i.classList.add("block-math-error")}}const a=l=>{l.preventDefault(),l.stopPropagation();const u=n();u!=null&&this.options.onClick&&this.options.onClick(r,u)};return this.options.onClick&&i.addEventListener("click",a),s(),{dom:i,destroy(){i.removeEventListener("click",a)}}}}}),NI=tn.create({name:"inlineMath",group:"inline",inline:!0,atom:!0,addOptions(){return{onClick:void 0,katexOptions:void 0}},addAttributes(){return{latex:{default:"",parseHTML:e=>e.getAttribute("data-latex"),renderHTML:e=>({"data-latex":e.latex})}}},addCommands(){return{insertInlineMath:e=>({editor:r,tr:n})=>{var i;const o=e.latex,s=(i=e?.pos)!=null?i:r.state.selection.from;return o?(n.replaceWith(s,s,this.type.create({latex:o})),!0):!1},deleteInlineMath:e=>({editor:r,tr:n})=>{var i;const o=(i=e?.pos)!=null?i:r.state.selection.$from.pos,s=r.state.doc.nodeAt(o);return!s||s.type.name!==this.name?!1:(n.delete(o,o+s.nodeSize),!0)},updateInlineMath:e=>({editor:r,tr:n})=>{const i=e?.latex;let o=e?.pos;o===void 0&&(o=r.state.selection.$from.pos);const s=r.state.doc.nodeAt(o);return!s||s.type.name!==this.name?!1:(n.setNodeMarkup(o,this.type,{...s.attrs,latex:i}),!0)}}},parseHTML(){return[{tag:'span[data-type="inline-math"]'}]},renderHTML({HTMLAttributes:e}){return["span",gr(e,{"data-type":"inline-math"})]},parseMarkdown:e=>({type:"inlineMath",attrs:{latex:e.latex}}),renderMarkdown:e=>{var r;return`$${((r=e.attrs)==null?void 0:r.latex)||""}$`},markdownTokenizer:{name:"inlineMath",level:"inline",start:e=>e.indexOf("$"),tokenize:e=>{const r=e.match(/^\$([^$]+)\$(?!\$)/);if(!r)return;const[n,i]=r;return{type:"inlineMath",raw:n,latex:i.trim()}}},addInputRules(){return[new Xu({find:/(^|[^$])(\$\$([^$\n]+?)\$\$)(?!\$)/,handler:({state:e,range:r,match:n})=>{const i=n[3],{tr:o}=e,s=r.from,a=r.to;o.replaceWith(s,a,this.type.create({latex:i}))}})]},addNodeView(){const{katexOptions:e}=this.options;return({node:r,getPos:n})=>{const i=document.createElement("span");i.className="tiptap-mathematics-render",this.editor.isEditable&&i.classList.add("tiptap-mathematics-render--editable"),i.dataset.type="inline-math",i.setAttribute("data-latex",r.attrs.latex);function o(){try{f5.render(r.attrs.latex,i,e),i.classList.remove("inline-math-error")}catch{i.textContent=r.attrs.latex,i.classList.add("inline-math-error")}}const s=a=>{a.preventDefault(),a.stopPropagation();const l=n();l!=null&&this.options.onClick&&this.options.onClick(r,l)};return this.options.onClick&&i.addEventListener("click",s),o(),{dom:i,destroy(){i.removeEventListener("click",s)}}}}});xr.create({name:"Mathematics",addOptions(){return{inlineOptions:void 0,blockOptions:void 0,katexOptions:void 0}},addExtensions(){return[_I.configure({...this.options.blockOptions,katexOptions:this.options.katexOptions}),NI.configure({...this.options.inlineOptions,katexOptions:this.options.katexOptions})]}});const s8e={name:"ShowMathModal",components:{NcDialog:ese,NcTextArea:eye,NcButton:as},props:{show:{type:Boolean,required:!0},latex:{type:String,required:!0},isBlock:{type:Boolean,required:!0}},emits:["close","save"],data(){return{localLatex:this.latex}},computed:{dialogTitle(){return this.isBlock?lt("text","Edit block formula"):lt("text","Edit inline formula")}},methods:{save(){this.$emit("save",this.localLatex)},t:lt}};var a8e=function(){var e=this,r=e._self._c;return e.show?r("NcDialog",{attrs:{name:e.dialogTitle,size:"large"},on:{closing:function(n){return e.$emit("close")}},scopedSlots:e._u([{key:"actions",fn:function(){return[r("NcButton",{on:{click:function(n){return e.$emit("close")}}},[e._v(" "+e._s(e.t("text","Cancel"))+" ")]),r("NcButton",{attrs:{type:"primary"},on:{click:e.save}},[e._v(" "+e._s(e.t("text","Save"))+" ")])]},proxy:!0}],null,!1,2375990989)},[r("NcTextArea",{attrs:{label:e.t("text","LaTeX formula"),rows:e.isBlock?8:4,resize:"both"},model:{value:e.localLatex,callback:function(n){e.localLatex=n},expression:"localLatex"}})],1):e._e()},l8e=[],u8e=Ze(s8e,a8e,l8e,!1,null,null);const c8e=u8e.exports,d8e={name:"MathematicsView",components:{NodeViewWrapper:Ia,ShowMathModal:c8e},props:{node:{type:Object,required:!0},editor:{type:Object,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0}},data(){return{showModal:!1}},computed:{isBlock(){return this.node.type.name==="blockMath"},wrapperClass(){return this.isBlock?"katex-display":"katex"}},mounted(){this.renderMath(),!this.node.attrs.latex&&this.editor.isEditable&&(this.showModal=!0)},updated(){this.renderMath()},methods:{renderMath(){this.$refs.mathEl&&f5.render(this.node.attrs.latex,this.$refs.mathEl,{displayMode:this.isBlock,throwOnError:!1})},onMathClick(){this.editor.isEditable&&(this.showModal=!0)},onClose(){this.node.attrs.latex||this.deleteNode(),this.showModal=!1},onSave(e){this.updateAttributes({latex:e}),this.showModal=!1}}};var h8e=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{class:e.wrapperClass,attrs:{as:e.isBlock?"div":"span"}},[r("span",{ref:"mathEl",on:{click:e.onMathClick}}),e.showModal?r("ShowMathModal",{attrs:{show:e.showModal,latex:e.node.attrs.latex,"is-block":e.isBlock},on:{close:e.onClose,save:e.onSave}}):e._e()],1)},p8e=[],f8e=Ze(d8e,h8e,p8e,!1,null,null);const FI=f8e.exports,m8e=NI.extend({addNodeView(){return ua(FI)},parseHTML(){return[{tag:'span[data-type="inline-math"]'},{tag:"span.katex",priority:50,getAttrs:e=>{const r=e.querySelector("annotation");return r?{latex:r.textContent.trim()}:!1}}]},addCommands(){return{insertInlineMath:e=>({commands:r})=>{const n=e?.latex||"";return r.insertContent({type:this.name,attrs:{latex:n}})}}},toMarkdown(e,r){e.write("$"+r.attrs.latex+"$")}}),g8e=_I.extend({addNodeView(){return ua(FI)},parseHTML(){return[{tag:'div[data-type="block-math"]'},{tag:"p.katex-block",priority:100,getAttrs:e=>{const r=e.querySelector("annotation");return r?{latex:r.textContent.trim()}:!1}}]},addCommands(){return{insertBlockMath:e=>({commands:r})=>{const n=e?.latex||"";return r.insertContent({type:this.name,attrs:{latex:n}})}}},toMarkdown(e,r){e.write(`$$ `),e.text(r.attrs.latex,!1),e.ensureNewLine(),e.write("$$"),e.closeBlock(r)}}),y8e=wR.extend({addAttributes(){return{...this.parent?.(),isList:{default:!0,rendered:!1}}}}),T8e={name:"Preview",components:{NodeViewWrapper:Ia,NodeViewContent:rc,NcReferenceList:wO,PreviewOptions:_B},props:Qpe,data(){return{isEditable:!1}},beforeMount(){this.isEditable=this.editor.isEditable,this.editor.on("update",({editor:e})=>{this.isEditable=e.isEditable})},methods:{unsetPreview(){this.editor.chain().focus().setTextSelection(this.getPos()+1).unsetPreview().run()}}};var b8e=function(){var e=this,r=e._self._c;return r("NodeViewWrapper",{staticClass:"preview",attrs:{"data-text-el":"preview",as:"div",contenteditable:"false"}},[r("NodeViewContent"),r("div",{staticClass:"link-preview-header"},[e.isEditable?r("PreviewOptions",{attrs:{href:e.node.attrs.href,type:"link-preview"},on:{toggle:e.unsetPreview,delete:e.deleteNode}}):e._e()],1),r("NcReferenceList",{attrs:{text:e.node.attrs.href,limit:1,interactive:!e.extension.options.isEmbedded,"display-fallback":!0}})],1)},v8e=[],A8e=Ze(T8e,b8e,v8e,!1,null,"0de0d10f");const E8e=A8e.exports,w8e=tn.create({name:"preview",group:"block",content:"text?",atom:!0,marks:"link",isolating:!0,addOptions(){return{isEmbedded:!1,relativePath:null}},addAttributes(){return{href:{parseHTML:Tk},title:{parseHTML:e=>e.getAttribute("title")}}},parseHTML(){return[{tag:'a[title="preview"]',priority:1001}]},renderHTML({node:e}){return["a",{...e.attrs,href:Ib(e,this.options.relativePath),rel:"noopener noreferrer nofollow"},0]},addNodeView(){return ua(E8e)},toMarkdown:(e,r)=>{e.write("["),e.text(r.textContent,!1),e.write(`](${r.attrs.href} (${r.attrs.title}))`),e.closeBlock(r)},addCommands(){return{setPreview:()=>({state:e,chain:r})=>x8e(e)&&r().setNode(this.name,S8e(e)).run(),unsetPreview:()=>({state:e,chain:r})=>D8e(this.name,this.attributes,e)&&r().setNode("paragraph").run(),insertPreview:e=>({state:r,chain:n})=>n().insertContent({type:"preview",attrs:{href:e,title:"preview"},content:[{type:"text",marks:[{type:"link",attrs:{href:e}}],text:e}]}).run()}}});function S8e({selection:e}){const{$from:r}=e;return{href:OI(r.nodeAfter),title:"preview"}}function D8e(e,r,n){const i=fi(e,n.schema);return ta(n,i,r)}function x8e({selection:e}){const{$from:r}=e;if(k8e(r.parent))return!1;const n=OI(r.parent.firstChild);return!(!n||Lb(n))}function k8e(e){return e.childCount>2||e.childCount===2&&e.lastChild.textContent.trim()}function OI(e){return e?e.marks.find(r=>r.type.name==="link")?.attrs.href:void 0}const C8e=(e,r)=>{for(let n=e.depth;n>0;n--){const i=e.node(n);if(r(i))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:i}}},_8e=SR.extend({addOptions(){return{nested:!0,HTMLAttributes:{}}},draggable:!1,content:"paragraph block*",addAttributes(){const e={...this.parent()};return e.checked.parseHTML=r=>r.querySelector("input[type=checkbox]")?.checked,e},parseHTML:[{priority:101,tag:"li",getAttrs:e=>e.querySelector("input[type=checkbox]"),context:"taskList/"}],renderHTML({node:e,HTMLAttributes:r}){const n={class:"task-list-item checkbox-item"},i={type:"checkbox",class:"",contenteditable:!1};return e.attrs.checked&&(i.checked=!0,n.class+=" checked"),["li",gr(r,n),["input",i],["label",0]]},addNodeView:!1,toMarkdown:(e,r)=>{e.write(`[${r.attrs.checked?"x":" "}] `),e.renderContent(r)},addInputRules(){return[...this.parent(),Hu({find:/^\s*([-+*])\s(\[(x|X|\s)?\])\s$/,type:this.type,getAttributes:e=>({checked:"xX".includes(e[e.length-1])})})]},addProseMirrorPlugins(){return[new lr({props:{handleClick:(e,r,n)=>{const i=e.state,o=i.schema,s=e.posAtCoords({left:n.clientX,top:n.clientY}),a=i.doc.resolve(s.pos),l=C8e(a,function(c){return c.type===o.nodes.taskItem||c.type===o.nodes.listItem});if(n.target.tagName.toLowerCase()!=="li"||!l||l.node.type!==o.nodes.taskItem||!e.editable)return;const u=i.tr;u.setNodeMarkup(l.pos,o.nodes.taskItem,{checked:!l.node.attrs.checked}),e.dispatch(u)}}})]}}),N8e=DR.extend({parseHTML:[{priority:100,tag:"ul.contains-task-list"}],renderHTML({HTMLAttributes:e}){return["ul",gr(this.options.HTMLAttributes,e,{class:"contains-task-list"}),0]},addAttributes(){return{...this.parent?.(),isList:{default:!0,rendered:!1},bullet:{default:"-",rendered:!1,parseHTML:e=>e.getAttribute("data-bullet")}}},toMarkdown:(e,r)=>{e.renderList(r," ",()=>`${r.attrs.bullet} `)}});function Vx({types:e,node:r}){return Array.isArray(e)&&e.includes(r.type)||r.type===e}const F8e=xr.create({name:"trailingNode",addOptions(){return{node:"paragraph",notAfter:["paragraph"]}},addProseMirrorPlugins(){const e=new hr(this.name),r=Object.entries(this.editor.schema.nodes).map(([,n])=>n).filter(n=>this.options.notAfter.includes(n.name));return[new lr({key:e,appendTransaction:(n,i,o)=>{const{doc:s,tr:a,schema:l}=o,u=e.getState(o),c=s.content.size,d=l.nodes[this.options.node];if(u)return a.insert(c,d.create())},state:{init:(n,i)=>{const o=i.tr.doc.lastChild;return!Vx({node:o,types:r})},apply:(n,i)=>{if(!n.docChanged)return i;const o=n.doc.lastChild;return!Vx({node:o,types:r})}}})]}}),MI=upe(ape);MI.registerAlias("plaintext","mermaid");const twe=xr.create({name:"RichText",addOptions(){return{connection:null,editing:!0,extensions:[],relativePath:null,isEmbedded:!1}},addExtensions(){const e=[N7,lme,P7,pR,qve,pye,Nbe,Rbe,Cbe,rme,Hme,sme,xve.configure({lowlight:MI,defaultLanguage:"plaintext"}),Uve,Ibe,cme,y8e,gR,this.options.editing?hR:dR,N8e,_8e,$be,w8e.configure({isEmbedded:this.options.isEmbedded}),Mbe,d7e,h7e,Pme.configure({color:"var(--color-primary-element)",width:2}),Zme,Epe,H7,Vve,f1e.configure({suggestion:cye({connection:this.options.connection})}),TTe,bpe.configure({suggestion:bye()}),cTe,wbe.configure({openOnClick:!0,shouldAutoLink:n=>/^https?:\/\//.test(n),relativePath:this.options.relativePath}),Kye,this.options.editing?Ume.configure({placeholder:lt("text","Start writing or type '/' to add…")}):null,F8e,STe.configure({types:["blockquote","callout","detailsSummary","heading","listItem","paragraph","tableCell","tableHeader","taskItem"]}),ibe,m8e,g8e],r=this.options.extensions.map(n=>n.name);return[...e.filter(n=>n&&!r.includes(n.name)),...this.options.extensions]}});class X1{constructor(r,n,i){this.from=r,this.to=n,this.author=i}}function O8e(e,r,n){const i=[],o=r.mapping;for(let s=0;s<e.length;s++){const a=e[s],l=o.map(a.from,1),u=o.map(a.to,-1);l<u&&i.push(new X1(l,u,a.author))}for(let s=0;s<o.maps.length;s++){const a=o.maps[s],l=o.slice(s+1);a.forEach((u,c,d,h)=>{M8e(i,l.map(d,1),l.map(h,-1),n[s])})}return i}function M8e(e,r,n,i){if(r>=n)return;let o=0,s;for(;o<e.length;o++)if(s=e[o],s.author===i){if(s.to>=r)break}else if(s.to>r){if(s.from<r){const a=new X1(s.from,r,s.author);s.to>n?e.splice(o++,0,a):e[o++]=a}break}for(;s=e[o];)if(s.author===i){if(s.from>n)break;r=Math.min(r,s.from),n=Math.max(n,s.to),e.splice(o,1)}else{if(s.from>=n)break;if(s.to>n){e[o]=new X1(n,s.to,s.author);break}else e.splice(o,1)}e.splice(o,0,new X1(r,n,i))}class EA{constructor(r){this.blameMap=r}applyTransform(r){const n=r.getMeta("clientID")??r.steps.map(o=>"self"),i=O8e(this.blameMap,r,n);return new EA(i)}}xr.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 lr({clientID:this.options.clientID,color:this.options.color,name:this.options.name,view:r=>(e=r,{}),state:{init(r,n){return{tracked:new EA([new X1(0,n.doc.content.size,null)],[],[],[]),deco:Nr.empty}},apply(r,n,i,o){let{tracked:s,decos:a}=n,l=this.getState(i).tracked;return r.docChanged&&(r.getMeta("clientID")||r.setMeta("clientID",r.steps.map(u=>this.spec.clientID)),e.composing||(s=s.applyTransform(r),l=s)),a=l.blameMap.map(u=>{const c=u.author;return kn.inline(u.from,u.to,{class:"author-annotation",style:"background-color: "+this.spec.color(c)+"66;",title:this.spec.name(c)})}).filter(u=>u!==null),{tracked:s,deco:Nr.create(o.doc,a)}}},props:{decorations(r){return this.getState(r).deco}}})]}});function jx(e){if(!e.length)return Nr.empty;const r=[],n=e[0].$from.node(0);return e.forEach(i=>{const o=i.$from.pos,s=i.$from.nodeAfter;s&&r.push(kn.node(o,o+s.nodeSize,{class:"ProseMirror-selectednoderange"}))}),Nr.create(n,r)}function m5(e,r,n){const i=[],o=e.node(0);typeof n=="number"&&n>=0||(e.sameParent(r)?n=Math.max(0,e.sharedDepth(r.pos)-1):n=e.sharedDepth(r.pos));const s=new tf(e,r,n),a=s.depth===0?0:o.resolve(s.start).posAtIndex(0);return s.parent.forEach((l,u)=>{const c=a+u,d=c+l.nodeSize;if(c<s.start||c>=s.end)return;const h=new $b(o.resolve(c),o.resolve(d));i.push(h)}),i}var R8e=class RI{constructor(r,n){this.anchor=r,this.head=n}map(r){return new RI(r.map(this.anchor),r.map(this.head))}resolve(r){const n=r.resolve(this.anchor),i=r.resolve(this.head);return new Du(n,i)}},Du=class iu extends rr{constructor(r,n,i,o=1){const{doc:s}=r,a=r===n,l=r.pos===s.content.size&&n.pos===s.content.size,u=a&&!l?s.resolve(n.pos+(o>0?1:-1)):n,c=a&&l?s.resolve(r.pos-(o>0?1:-1)):r,d=m5(c.min(u),c.max(u),i),h=u.pos>=r.pos?d[0].$from:d[d.length-1].$to,p=u.pos>=r.pos?d[d.length-1].$to:d[0].$from;super(h,p,d),this.depth=i}get $to(){return this.ranges[this.ranges.length-1].$to}eq(r){return r instanceof iu&&r.$from.pos===this.$from.pos&&r.$to.pos===this.$to.pos}map(r,n){const i=r.resolve(n.map(this.anchor)),o=r.resolve(n.map(this.head));return new iu(i,o)}toJSON(){return{type:"nodeRange",anchor:this.anchor,head:this.head}}get isForwards(){return this.head>=this.anchor}get isBackwards(){return!this.isForwards}extendBackwards(){const{doc:r}=this.$from;if(this.isForwards&&this.ranges.length>1){const o=this.ranges.slice(0,-1),s=o[0].$from,a=o[o.length-1].$to;return new iu(s,a,this.depth)}const n=this.ranges[0],i=r.resolve(Math.max(0,n.$from.pos-1));return new iu(this.$anchor,i,this.depth)}extendForwards(){const{doc:r}=this.$from;if(this.isBackwards&&this.ranges.length>1){const o=this.ranges.slice(1),s=o[0].$from,a=o[o.length-1].$to;return new iu(a,s,this.depth)}const n=this.ranges[this.ranges.length-1],i=r.resolve(Math.min(r.content.size,n.$to.pos+1));return new iu(this.$anchor,i,this.depth)}static fromJSON(r,n){return new iu(r.resolve(n.anchor),r.resolve(n.head))}static create(r,n,i,o,s=1){return new this(r.resolve(n),r.resolve(i),o,s)}getBookmark(){return new R8e(this.anchor,this.head)}};Du.prototype.visible=!1;function Ug(e){return e instanceof Du}xr.create({name:"nodeRange",addOptions(){return{depth:void 0,key:"Mod"}},addKeyboardShortcuts(){return{"Shift-ArrowUp":({editor:e})=>{const{depth:r}=this.options,{view:n,state:i}=e,{doc:o,selection:s,tr:a}=i,{anchor:l,head:u}=s;if(!Ug(s)){const d=Du.create(o,l,u,r,-1);return a.setSelection(d),n.dispatch(a),!0}const c=s.extendBackwards();return a.setSelection(c),n.dispatch(a),!0},"Shift-ArrowDown":({editor:e})=>{const{depth:r}=this.options,{view:n,state:i}=e,{doc:o,selection:s,tr:a}=i,{anchor:l,head:u}=s;if(!Ug(s)){const d=Du.create(o,l,u,r);return a.setSelection(d),n.dispatch(a),!0}const c=s.extendForwards();return a.setSelection(c),n.dispatch(a),!0},"Mod-a":({editor:e})=>{const{depth:r}=this.options,{view:n,state:i}=e,{doc:o,tr:s}=i,a=Du.create(o,0,o.content.size,r);return s.setSelection(a),n.dispatch(s),!0}}},onSelectionUpdate(){const{selection:e}=this.editor.state;Ug(e)&&this.editor.view.dom.classList.add("ProseMirror-noderangeselection")},addProseMirrorPlugins(){let e=!1,r=!1;return[new lr({key:new hr("nodeRange"),props:{attributes:()=>e?{class:"ProseMirror-noderangeselection"}:{class:""},handleDOMEvents:{mousedown:(n,i)=>{const{key:o}=this.options,s=/Mac/.test(navigator.platform),a=!!i.shiftKey,l=!!i.ctrlKey,u=!!i.altKey,c=!!i.metaKey,d=s?c:l;return(o==null||o==="Shift"&&a||o==="Control"&&l||o==="Alt"&&u||o==="Meta"&&c||o==="Mod"&&d)&&(r=!0),r&&document.addEventListener("mouseup",()=>{r=!1;const{state:h}=n,{doc:p,selection:f,tr:m}=h,{$anchor:v,$head:w}=f;if(v.sameParent(w))return;const x=Du.create(p,v.pos,w.pos,this.options.depth);m.setSelection(x),n.dispatch(m)},{once:!0}),!1}},decorations:n=>{const{selection:i}=n,o=Ug(i);if(e=!1,!r)return o?(e=!0,jx(i.ranges)):null;const{$from:s,$to:a}=i;if(!o&&s.sameParent(a))return null;const l=m5(s,a,this.options.depth);return l.length?(e=!0,jx(l)):null}}})]}});function B8e(e){let r="";const n=getComputedStyle(e);for(let i=0;i<n.length;i+=1)r+=`${n[i]}:${n.getPropertyValue(n[i])};`;return r}function I8e(e){const r=e.cloneNode(!0),n=[e,...Array.from(e.getElementsByTagName("*"))],i=[r,...Array.from(r.getElementsByTagName("*"))];return n.forEach((o,s)=>{i[s].style.cssText=B8e(o)}),r}function L8e(e,r){let n=e;for(;n?.parentElement&&n.parentElement!==r.dom;)n=n.parentElement;return n?.parentElement===r.dom?n:void 0}function z8e(e,r,n,i=5){const o=e.dom,s=o.firstElementChild,a=o.lastElementChild;if(!s||!a)return{x:r,y:n};const l=s.getBoundingClientRect(),u=a.getBoundingClientRect(),c=Math.min(Math.max(l.top+i,n),u.bottom-i),d=.5,h=Math.abs(l.left-u.left)<d,p=Math.abs(l.right-u.right)<d;let f=l;return h&&p&&(f=l),{x:Math.min(Math.max(f.left+i,r),f.right-i),y:c}}var BI=e=>{const{x:r,y:n,editor:i}=e,{view:o,state:s}=i,{x:a,y:l}=z8e(o,r,n,5),u=o.root.elementsFromPoint(a,l);let c;if(Array.prototype.some.call(u,p=>{if(!o.dom.contains(p))return!1;const f=L8e(p,o);return f?(c=f,!0):!1}),!c)return{resultElement:null,resultNode:null,pos:null};let d;try{d=o.posAtDOM(c,0)}catch{return{resultElement:null,resultNode:null,pos:null}}const h=s.doc.nodeAt(d);if(!h){const p=s.doc.resolve(d),f=p.parent;return{resultElement:c,resultNode:f,pos:p.start()}}return{resultElement:c,resultNode:h,pos:d}};function Vg(e,r){return window.getComputedStyle(e)[r]}function Y8e(e=0,r=0,n=0){return Math.min(Math.max(e,r),n)}function H8e(e,r,n){const i=parseInt(Vg(e.dom,"paddingLeft"),10),o=parseInt(Vg(e.dom,"paddingRight"),10),s=parseInt(Vg(e.dom,"borderLeftWidth"),10),a=parseInt(Vg(e.dom,"borderLeftWidth"),10),l=e.dom.getBoundingClientRect();return{left:Y8e(r,l.left+i+s,l.right-o-a),top:n}}function II(e){var r;(r=e.parentNode)==null||r.removeChild(e)}function P8e(e,r){const{doc:n}=r.view.state,i=BI({editor:r,x:e.clientX,y:e.clientY});if(!i.resultNode||i.pos===null)return[];const o=e.clientX,s=H8e(r.view,o,e.clientY),a=r.view.posAtCoords(s);if(!a)return[];const{pos:l}=a;if(!n.resolve(l).parent)return[];const u=n.resolve(i.pos),c=n.resolve(i.pos+1);return m5(u,c,0)}function Z8e(e,r){const{view:n}=r;if(!e.dataTransfer)return;const{empty:i,$from:o,$to:s}=n.state.selection,a=P8e(e,r),l=m5(o,s,0),u=l.some(w=>a.find(x=>x.$from===w.$from&&x.$to===w.$to)),c=i||!u?a:l;if(!c.length)return;const{tr:d}=n.state,h=document.createElement("div"),p=c[0].$from.pos,f=c[c.length-1].$to.pos,m=Du.create(n.state.doc,p,f),v=m.content();c.forEach(w=>{const x=n.nodeDOM(w.$from.pos),k=I8e(x);h.append(k)}),h.style.position="absolute",h.style.top="-10000px",document.body.append(h),e.dataTransfer.clearData(),e.dataTransfer.setDragImage(h,0,0),n.dragging={slice:v,move:!0},d.setSelection(m),n.dispatch(d),document.addEventListener("drop",()=>II(h),{once:!0})}var Gx=(e,r)=>{const n=e.resolve(r),{depth:i}=n;return i===0?r:n.pos-n.parentOffset-1},qx=(e,r)=>{const n=e.nodeAt(r),i=e.resolve(r);let{depth:o}=i,s=n;for(;o>0;){const a=i.node(o);o-=1,o===0&&(s=a)}return s},My=(e,r)=>{const n=fn.getState(e);return n?zh(r,n.type,n.binding.mapping):null},$8e=(e,r)=>{const n=fn.getState(e);return n?Fu(n.doc,n.type,r,n.binding.mapping)||0:-1},Wx=(e,r)=>{let n=r;for(;n?.parentNode&&n.parentNode!==e.dom;)n=n.parentNode;return n},LI=new hr("dragHandle"),zI=({pluginKey:e=LI,element:r,editor:n,computePositionConfig:i,getReferencedVirtualElement:o,onNodeChange:s,onElementDragStart:a,onElementDragEnd:l})=>{const u=document.createElement("div");let c=!1,d=null,h=-1,p,f=null,m=null;function v(){r&&(r.style.visibility="hidden",r.style.pointerEvents="none")}function w(){if(r){if(!n.isEditable){v();return}r.style.visibility="",r.style.pointerEvents="auto"}}function x(O){const P=o?.()||{getBoundingClientRect:()=>O.getBoundingClientRect()};nO(P,r,i).then(V=>{Object.assign(r.style,{position:V.strategy,left:`${V.x}px`,top:`${V.y}px`})})}function k(O){a?.(O),Z8e(O,n),r&&(r.dataset.dragging="true"),setTimeout(()=>{r&&(r.style.pointerEvents="none")},0)}function R(O){l?.(O),v(),r&&(r.style.pointerEvents="auto",r.dataset.dragging="false")}return r.addEventListener("dragstart",k),r.addEventListener("dragend",R),u.appendChild(r),{unbind(){r.removeEventListener("dragstart",k),r.removeEventListener("dragend",R),f&&(cancelAnimationFrame(f),f=null,m=null)},plugin:new lr({key:typeof e=="string"?new hr(e):e,state:{init(){return{locked:!1}},apply(O,P,V,W){const ie=O.getMeta("lockDragHandle"),ue=O.getMeta("hideDragHandle");if(ie!==void 0&&(c=ie),ue)return v(),c=!1,d=null,h=-1,s?.({editor:n,node:null,pos:-1}),P;if(O.docChanged&&h!==-1&&r)if(qN(O)){const I=$8e(W,p);I!==h&&(h=I)}else{const I=O.mapping.map(h);I!==h&&(h=I,p=My(W,h))}return P}},view:O=>{var P;return r.draggable=!0,r.style.pointerEvents="auto",r.dataset.dragging="false",(P=n.view.dom.parentElement)==null||P.appendChild(u),u.style.pointerEvents="none",u.style.position="absolute",u.style.top="0",u.style.left="0",{update(V,W){if(!r)return;if(!n.isEditable){v();return}if(c?r.draggable=!1:r.draggable=!0,O.state.doc.eq(W.doc)||h===-1)return;let ie=O.nodeDOM(h);if(ie=Wx(O,ie),ie===O.dom||ie?.nodeType!==1)return;const ue=O.posAtDOM(ie,0),I=qx(n.state.doc,ue),ne=Gx(n.state.doc,ue);d=I,h=ne,p=My(O.state,h),s?.({editor:n,node:d,pos:h}),x(ie)},destroy(){f&&(cancelAnimationFrame(f),f=null,m=null),r&&II(u)}}},props:{handleDOMEvents:{keydown(O){return!r||c||O.hasFocus()&&(v(),d=null,h=-1,s?.({editor:n,node:null,pos:-1})),!1},mouseleave(O,P){return c||P.target&&!u.contains(P.relatedTarget)&&(v(),d=null,h=-1,s?.({editor:n,node:null,pos:-1})),!1},mousemove(O,P){return!r||c||(m={x:P.clientX,y:P.clientY},f)||(f=requestAnimationFrame(()=>{if(f=null,!m)return;const{x:V,y:W}=m;m=null;const ie=BI({x:V,y:W,editor:n});if(!ie.resultElement)return;let ue=ie.resultElement;if(ue=Wx(O,ue),ue===O.dom||ue?.nodeType!==1)return;const I=O.posAtDOM(ue,0),ne=qx(n.state.doc,I);if(ne!==d){const he=Gx(n.state.doc,I);d=ne,h=he,p=My(O.state,h),s?.({editor:n,node:d,pos:h}),x(ue),w()}})),!1}}}})}},YI={placement:"left-start",strategy:"absolute"};xr.create({name:"dragHandle",addOptions(){return{render(){const e=document.createElement("div");return e.classList.add("drag-handle"),e},computePositionConfig:{},locked:!1,onNodeChange:()=>null,onElementDragStart:void 0,onElementDragEnd:void 0}},addCommands(){return{lockDragHandle:()=>({editor:e})=>(this.options.locked=!0,e.commands.setMeta("lockDragHandle",this.options.locked)),unlockDragHandle:()=>({editor:e})=>(this.options.locked=!1,e.commands.setMeta("lockDragHandle",this.options.locked)),toggleDragHandle:()=>({editor:e})=>(this.options.locked=!this.options.locked,e.commands.setMeta("lockDragHandle",this.options.locked))}},addProseMirrorPlugins(){const e=this.options.render();return[zI({computePositionConfig:{...YI,...this.options.computePositionConfig},getReferencedVirtualElement:this.options.getReferencedVirtualElement,element:e,editor:this.editor,onNodeChange:this.options.onNodeChange,onElementDragStart:this.options.onElementDragStart,onElementDragEnd:this.options.onElementDragEnd}).plugin]}});var U8e=ea,V8e=U8e.extend({name:"DragHandleVue",props:{pluginKey:{type:[String,Object],default:()=>LI},editor:{type:Object,required:!0},computePositionConfig:{type:Object,default:()=>({})},onNodeChange:{type:Function,default:null},onElementDragStart:{type:Function,default:null},onElementDragEnd:{type:Function,default:null},class:{type:String,default:"drag-handle"}},mounted(){const{editor:e,pluginKey:r,onNodeChange:n,onElementDragStart:i,onElementDragEnd:o}=this.$props;e.registerPlugin(zI({editor:e,element:this.$el,pluginKey:r,computePositionConfig:{...YI,...this.computePositionConfig},onNodeChange:n,onElementDragStart:i,onElementDragEnd:o}).plugin)},beforeDestroy(){const{pluginKey:e,editor:r}=this.$props;r.unregisterPlugin(e)},render(e){return e("div",{class:this.class,attrs:{"data-dragging":"false"}},this.$slots.default)}});const j8e={name:"DragVerticalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var G8e=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon drag-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M9,3H11V5H9V3M13,3H15V5H13V3M9,7H11V9H9V7M13,7H15V9H13V7M9,11H11V13H9V11M13,11H15V13H13V11M9,15H11V17H9V15M13,15H15V17H13V15M9,19H11V21H9V19M13,19H15V21H13V19Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},q8e=[],W8e=Ze(j8e,G8e,q8e,!1,null,null);const K8e=W8e.exports,Q8e={name:"FloatingButtons",components:{DragHandle:V8e,DragVerticalIcon:K8e,NcButton:as,PlusIcon:rF},setup(){const{editor:e}=hd();return{editor:e}},data(){return{node:null,pos:-1}},computed:{isHeadingNode(){return this.node?.type===this.editor.schema.nodes.heading}},methods:{onNodeChange({node:e,pos:r}){this.node=e,this.pos=r},onOpenSmartPicker(){if(!this.node||this.pos===-1)return;const{schema:e}=this.editor,r=this.node.textContent.trim()===""&&(this.node.children.length===0||this.node.children.every(n=>n.type===e.nodes.text))?this.pos+1:this.pos+this.node.nodeSize;this.editor.chain().insertContentAt(r,"/").focus().run()},t:lt}};var J8e=function(){var e=this,r=e._self._c;return r("DragHandle",{staticClass:"floating-buttons",class:{heading:e.isHeadingNode},attrs:{editor:e.editor,"on-node-change":e.onNodeChange}},[r("NcButton",{attrs:{variant:"tertiary-no-background",size:"small",title:e.t("text","Insert below"),"aria-label":e.t("text","Insert below")},on:{click:e.onOpenSmartPicker},scopedSlots:e._u([{key:"icon",fn:function(){return[r("PlusIcon",{attrs:{size:16}})]},proxy:!0}])}),r("NcButton",{staticClass:"drag-button",attrs:{variant:"tertiary-no-background",size:"small",title:e.t("text","Click for options, hold to drag"),"aria-label":e.t("text","Click for options, hold to drag")},scopedSlots:e._u([{key:"icon",fn:function(){return[r("DragVerticalIcon",{attrs:{size:16}})]},proxy:!0}])})],1)},X8e=[],eEe=Ze(Q8e,J8e,X8e,!1,null,"3e6ea9fb");const tEe=eEe.exports,HI=Symbol("text:intersection_observer"),PI=Symbol("text:visibile_ids"),rEe={root:null,rootMargin:"0px 0px -50% 0px",threshold:0},nEe=()=>{const e=x2(new Set),r=i=>{const o=new Set(e.value);i.forEach(s=>{s.isIntersecting?o.add(s.target.id):o.delete(s.target.id)}),e.value=o},n=new IntersectionObserver(r,rEe);Mb(()=>{n.disconnect()}),Sl(HI,n),Sl(PI,e)},ZI=e=>{const{editor:r}=hd(),n=wl(HI),i=wl(PI);YL(()=>{s3(()=>{const s=r.view.dom.querySelector(`#${e}`);s?n.observe(s):bi.warn(`Could not find element with id ${e}`)})}),Mb(()=>{i.value.delete(e),i.value=new Set(i.value);const s=r.view.dom.querySelector(`#${e}`);s&&n.unobserve(s)});const o=ri(()=>i.value.has(e));return{visible:ld(o)}},iEe={__name:"TableOfContentsEntry",props:{heading:{type:Object,required:!0}},emits:["clicked"],setup(e,{emit:r}){const n=e,{heading:i}=sk(n),{visible:o}=ZI(i.value.id),{editor:s}=hd();return{__sfc:!0,props:n,heading:i,visible:o,editor:s,emit:r,goto:a=>{s.view.dom.querySelector(`#${a}`)?.scrollIntoView({block:"start",behavior:"smooth"}),s3(()=>{window.history.replaceState(window.history.state,"",`#${a}`)}),r("clicked")}}}};var oEe=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("li",{staticClass:"toc-list__item",class:{visible:n.visible,[`level${n.heading.level}`]:!0},attrs:{"data-toc-level":n.heading.level}},[r("a",{staticClass:"toc-list__item-link",attrs:{href:`#${n.heading.id}`},on:{click:function(i){return i.preventDefault(),n.goto(n.heading.id)}}},[e._v(" "+e._s(n.heading.text)+" ")])])},sEe=[],aEe=Ze(iEe,oEe,sEe,!1,null,"a9de78ec");const lEe=aEe.exports,uEe={__name:"TableOfContents",emits:["heading-clicked"],setup(e,{emit:r}){const{headings:n}=L3();return{__sfc:!0,headings:n,emit:r,TableOfContentsEntry:lEe}}};var cEe=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("ul",{staticClass:"toc-list"},e._l(n.headings,function(i){return r(n.TableOfContentsEntry,{key:i.id,attrs:{heading:i},on:{clicked:function(o){return n.emit("heading-clicked")}}})}),1)},dEe=[],hEe=Ze(uEe,cEe,dEe,!1,null,"b9b059df");const pEe=hEe.exports,fEe={name:"PinOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var mEe=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon pin-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),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},gEe=[],yEe=Ze(fEe,mEe,gEe,!1,null,null);const TEe=yEe.exports,bEe=Uf({name:"TocDesktop",components:{CloseIcon:XN,PinOutlineIcon:TEe,NcButton:as},data(){return{keep:!1,isClosing:!1}},computed:{buttonTitle(){return this.keep?lt("text","Close table of contents"):lt("text","Pin table of contents")}},methods:{onMouseleave(){this.keep||this.close()},onAnimationend(e){e.animationName==="fadeOutRight"&&this.isClosing&&(this.isClosing=!1,this.$emit("close"))},onButtonClick(){this.keep?(this.keep=!1,this.close()):this.keep=!0,this.$file?.fileId&&Io("text:toc:pin",{fileId:this.$file.fileId,keep:this.keep})},close(){this.isClosing=!0},t:lt}});var vEe=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"editor__toc",class:{"editor__toc-closing":e.isClosing},attrs:{"data-text-el":"editor-table-of-contents"},on:{mouseleave:e.onMouseleave,animationend:e.onAnimationend}},[r("div",{staticClass:"editor__toc-header"},[r("NcButton",{attrs:{variant:"tertiary",size:"small",title:e.buttonTitle,"aria-label":e.buttonTitle},on:{click:e.onButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e.keep?r("CloseIcon",{attrs:{size:20}}):r("PinOutlineIcon",{attrs:{size:20}})]},proxy:!0}])})],1),e._t("default")],2)},AEe=[],EEe=Ze(bEe,vEe,AEe,!1,null,"95df3d01");const wEe=EEe.exports,SEe=Uf({name:"TocMobile",components:{NcModal:Vf},methods:{t:lt}});var DEe=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("NcModal",{attrs:{size:"full",name:e.t("collectives","Table of contents")},on:{close:function(n){return e.$emit("close")}}},[e._t("default")],2)},xEe=[],kEe=Ze(SEe,DEe,xEe,!1,null,"803df0d8");const CEe=kEe.exports,_Ee={__name:"TocOutlineEntry",props:{heading:{type:Object,required:!0}},setup(e){const r=e,{heading:n}=sk(r),{visible:i}=ZI(n.value.id);return{__sfc:!0,props:r,heading:n,visible:i}}};var NEe=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"outline-line",class:[`level${n.heading.level}`,{visible:n.visible}]})},FEe=[],OEe=Ze(_Ee,NEe,FEe,!1,null,null);const MEe=OEe.exports,REe={__name:"TocOutline",setup(e){const{headings:r}=L3();return{__sfc:!0,headings:r,TocOutlineEntry:MEe}}};var BEe=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("a",{staticClass:"editor__toc-outline",attrs:{"data-text-el":"editor-outline"},on:{mouseenter:function(i){return e.$emit("show-toc")},click:function(i){return e.$emit("show-toc")},keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.$emit("show-toc")}}},e._l(n.headings,function(i){return r(n.TocOutlineEntry,{key:i.id,attrs:{heading:i}})}),1)},IEe=[],LEe=Ze(REe,BEe,IEe,!1,null,"c8ccc022");const zEe=LEe.exports,YEe={__name:"TocContainer",setup(e){nEe();const{displayToc:r,headings:n}=L3(),i=dp();return{__sfc:!0,displayToc:r,headings:n,isMobile:i,setDisplayToc:o=>{Io("text:toc:toggle",{visible:o})},TableOfContents:pEe,TocDesktop:wEe,TocMobile:CEe,TocOutline:zEe}}};var HEe=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("div",{staticClass:"editor__toc-container"},[n.isMobile?n.isMobile&&n.displayToc?r(n.TocMobile,{on:{close:function(i){return n.setDisplayToc(!1)}}},[r(n.TableOfContents,{attrs:{"show-close":!1},on:{"heading-clicked":function(i){return n.setDisplayToc(!1)}}})],1):e._e():r("div",{staticClass:"editor__toc-content"},[!n.displayToc&&n.headings.length>1?r(n.TocOutline,{on:{"show-toc":function(i){return n.setDisplayToc(!0)}}}):n.displayToc?r(n.TocDesktop,{on:{close:function(i){return n.setDisplayToc(!1)}}},[r(n.TableOfContents)],1):e._e()],1)],1)},PEe=[],ZEe=Ze(YEe,HEe,PEe,!1,null,"b39a4825");const $Ee=ZEe.exports,UEe={name:"ContentContainer",components:{EditorContent:Kpe,FloatingButtons:tEe,TocContainer:$Ee},props:{readOnly:{type:Boolean,required:!0}},setup(){const e=dp(),{editor:r}=hd(),{isRichEditor:n,isRichWorkspace:i,useTableOfContents:o}=M3();return{editor:r,isMobile:e,isRichEditor:n,isRichWorkspace:i,useTableOfContents:o}},computed:{showFloatingButtons(){return!this.readOnly&&!this.isMobile&&this.isRichEditor&&!this.isRichWorkspace}}};var VEe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"editor__content-wrapper",attrs:{"data-text-el":"editor-content-wrapper"}},[e._t("default"),e.showFloatingButtons?r("FloatingButtons"):e._e(),r("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{role:"document",editor:e.editor}}),e.useTableOfContents?r("TocContainer"):e._e()],2)},jEe=[],GEe=Ze(UEe,VEe,jEe,!1,null,"424b5b08");const rwe=GEe.exports;function qEe(e,r){const{documentId:n,sessionId:i,sessionToken:o,shareToken:s}=ud(e),a=new FormData;a.append("file",r);const l=bo("apps/text/attachment/upload?");return qn.post(l,a,{headers:{"Content-Type":"multipart/form-data"},params:{documentId:n,sessionId:i,sessionToken:o,token:s}})}function WEe(e,r){const{documentId:n,sessionId:i,sessionToken:o}=ud(e),s=bo("apps/text/attachment/create");return qn.post(s,{documentId:n,sessionId:i,sessionToken:o,fileName:`${r.app}${r.extension}`})}function KEe(e,r){const{documentId:n,sessionId:i,sessionToken:o}=ud(e),s=bo("apps/text/attachment/filepath");return qn.post(s,{documentId:n,sessionId:i,sessionToken:o,filePath:r})}const Kx=e=>e.split("/").slice(0,-1).join("/"),QEe={name:"MediaHandler",mixins:[Bb],provide(){const e={};return Object.defineProperties(e,{[bz]:{get:()=>this.showAttachmentPrompt},[Tz]:{get:()=>this.chooseLocalFile},[yz]:{get:()=>this.createAttachment},[gz]:{get:()=>this.state}}),e},setup(){const{connection:e}=dF(),r=dp(),{editor:n}=hd();return{connection:e,editor:n,isMobile:r}},data(){return{lastFilePath:null,draggedOver:!1,state:{isUploadingAttachments:!1}}},computed:{initialFilePath(){return this.lastFilePath??Kx(this.$file?.relativePath??"/")}},methods:{setDraggedOver(e,r){r.dataTransfer.types.includes("Files")&&(this.draggedOver=e)},onPaste(e){this.uploadAttachmentFiles(e.detail.files)},onEditorDrop(e){this.uploadAttachmentFiles(e.detail.files,e.detail.position)},onAttachmentUploadFilePicked(e){this.uploadAttachmentFiles(e.target.files),e.target.value=""},chooseLocalFile(){this.$refs.attachmentFileInput.click()},async uploadAttachmentFiles(e,r=null){if(!e)return;this.state.isUploadingAttachments=!0;const n=[...e].map(i=>this.uploadAttachmentFile(i,r));return Promise.all(n).catch(i=>{bi.error("Uploading multiple attachments failed",{error:i}),uu(t("text","Uploading multiple attachments failed."))}).then(()=>{this.state.isUploadingAttachments=!1})},async uploadAttachmentFile(e,r=null){return this.state.isUploadingAttachments=!0,qEe(this.connection,e).then(n=>{this.insertAttachment(n.data?.name,n.data?.id,e.type,r,n.data?.dirname)}).catch(n=>{bi.error("Uploading attachment failed",{error:n}),n.response?.data.error?uu(t("text","Uploading attachment failed: {error}",{error:n.response.data.error})):uu(t("text","Uploading attachment failed."))}).then(()=>{this.state.isUploadingAttachments=!1})},showAttachmentPrompt(){kh()&&OC.dialogs.filepicker(t("text","Insert an attachment"),e=>{this.insertFromPath(e)},!1,[],!0,void 0,this.initialFilePath)},insertFromPath(e){return this.lastFilePath=Kx(e),this.state.isUploadingAttachments=!0,KEe(this.connection,e).then(r=>{this.insertAttachment(r.data?.name,r.data?.id,r.data?.mimetype,null,r.data?.dirname)}).catch(r=>{bi.error("Failed to insert from Files",{error:r}),uu(t("text","Failed to insert from Files"))}).then(()=>{this.state.isUploadingAttachments=!1})},createAttachment(e){return this.state.isUploadingAttachments=!0,WEe(this.connection,e).then(r=>{this.insertAttachmentPreview(r.data?.id)}).catch(r=>{bi.error("Failed to create attachment",{error:r}),uu(t("text","Failed to create attachment"))}).then(()=>{this.state.isUploadingAttachments=!1})},insertAttachmentPreview(e){const r=new URL(bo(`/f/${e}`),window.origin).href.replaceAll(" ","%20");this.editor.chain().focus().insertPreview(r).run()},insertAttachment(e,r,n,i=null,o=""){const s=o+"/"+encodeURIComponent(e).replace(/[!'()*]/g,u=>"%"+u.charCodeAt(0).toString(16).toUpperCase()),a=e.replaceAll(/[[\]]/g,"");(i?this.editor.chain().focus(i):this.editor.chain()).setImage({src:s,alt:a}).run();const l=this.editor.view.state.selection;l.empty||this.editor.commands.focus(l.to),this.editor.commands.scrollIntoView(),this.editor.commands.setMeta("insertedAttachmentSrc",{src:s}),Io("text:image-node:add",null)}}};var JEe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"editor editor-media-handler",class:{draggedOver:e.draggedOver,"is-mobile":e.isMobile},attrs:{"data-text-el":"editor-media-handler"},on:{"image-paste":e.onPaste,dragover:function(n){return n.preventDefault(),n.stopPropagation(),e.setDraggedOver(!0,n)},dragleave:function(n){return n.preventDefault(),n.stopPropagation(),e.setDraggedOver(!1,n)},drop:function(n){return n.preventDefault(),n.stopPropagation(),e.setDraggedOver(!1,n)},"file-drop":e.onEditorDrop}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"attachmentFileInput",attrs:{"data-text-el":"attachment-file-input",type:"file",accept:"*/*",multiple:""},on:{change:e.onAttachmentUploadFilePicked}}),e._t("default")],2)},XEe=[],e9e=Ze(QEe,JEe,XEe,!1,null,null);const t9e=e9e.exports,r9e={name:"MainContainer",components:{MediaHandler:t9e},mixins:[yk]};var n9e=function(){var e=this,r=e._self._c;return r("div",{staticClass:"editor"},[e.$editorUpload?r("MediaHandler",{staticClass:"text-editor__main"},[e._t("default")],2):e._t("default")],2)},i9e=[],o9e=Ze(r9e,n9e,i9e,!1,null,"e0c9a19c");const nwe=o9e.exports,s9e={name:"Wrapper",provide(){const e={};return Object.defineProperties(e,{[bF]:{get:()=>({toggle:this.readOnlyToggle})}}),e},props:{isResolvingConflict:{type:Boolean,default:!1},hasConnectionIssue:{type:Boolean,default:!1},contentLoaded:{type:Boolean,default:!0}},setup(){const{isRichEditor:e,isRichWorkspace:r}=M3();return{isRichEditor:e,isRichWorkspace:r}},methods:{readOnlyToggle(){this.$emit("read-only-toggled")}}};var a9e=function(){var e=this,r=e._self._c;return r("div",{staticClass:"text-editor__wrapper",class:{"has-conflicts":e.isResolvingConflict,"is-rich-workspace":e.isRichWorkspace,"is-rich-editor":e.isRichEditor}},[e._t("default")],2)},l9e=[],u9e=Ze(s9e,a9e,l9e,!1,null,"bc674721");const iwe=u9e.exports;export{vF as $,y4e as A,h7 as B,rwe as C,ese as D,Kpe as E,G9e as F,Y3 as G,W3 as H,DF as I,M9e as J,L9e as K,Rce as L,nwe as M,mO as N,B9e as O,W9e as P,I9e as Q,twe as R,R9e as S,$Ee as T,K9e as U,Yh as V,iwe as W,z3 as X,I3 as Y,EE as Z,pF as _,w9e as a,r7 as a0,iee as a1,wr as a2,_9e as a3,vie as a4,k9e as a5,V9e as a6,C9e as a7,cee as a8,xr as a9,z9e as aA,$s as aB,hF as aC,eye as aD,RX as aE,kX as aF,tX as aG,CX as aH,ase as aI,EO as aJ,Mce as aK,kw as aL,Kj as aM,x9e as aN,F9e as aO,S9e as aP,j9e as aQ,pce as aR,ewe as aS,Y9e as aa,Z9e as ab,upe as ac,SM as ad,hr as ae,kv as af,cG as ag,zU as ah,yo as ai,ts as aj,bl as ak,op as al,O_ as am,rG as an,Fa as ao,Ei as ap,aa as aq,td as ar,Bu as as,c0 as at,Yv as au,YV as av,tc as aw,wde as ax,cde as ay,R7 as az,$9e as b,jce as c,O9e as d,U9e as e,JN as f,q9e as g,jT as h,Xv as i,dF as j,P9e as k,Nde as l,hd as m,Jv as n,Hh as o,D9e as p,N9e as q,H9e as r,d7 as s,hO as t,M3 as u,mie as v,_0 as w,EF as x,J9e as y,Q9e as z}; //# sourceMappingURL=Wrapper-g9rQ14Xc.chunk.mjs.map
Save File
Cancel