adminizer 4.5.0-build.199 → 4.5.0-build.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/assets/{DiffViewer-DL5uCv8d.js → DiffViewer-B36sF5l-.js} +1 -1
  2. package/assets/add-C_-KTZY-.js +1 -0
  3. package/assets/{add-form-Nn7zuSFW.js → add-form-BdmoVC_G.js} +1 -1
  4. package/assets/add-group-Bg5tLxYu.js +1 -0
  5. package/assets/{add-group-form-DUhDxVwB.js → add-group-form-B7c4coU-.js} +1 -1
  6. package/assets/add-user-H6XsOKX_.js +1 -0
  7. package/assets/{add-user-form-Ct4i6Dse.js → add-user-form-BXSGx38D.js} +1 -1
  8. package/assets/{app-layout-DM2_7wxW.js → app-layout-CbRvDFF3.js} +1 -1
  9. package/assets/{app-shell-CwiL9UZ5.js → app-shell-DbPu3ZPM.js} +1 -1
  10. package/assets/{app-sidebar-C7TXiSvV.js → app-sidebar-CQqvkGH0.js} +1 -1
  11. package/assets/{app-sidebar-header-qHEOMq5D.js → app-sidebar-header-C8sntqs3.js} +1 -1
  12. package/assets/app.js +2 -2
  13. package/assets/{breadcrumbs-D5PCyRGn.js → breadcrumbs-Df-vVsyM.js} +1 -1
  14. package/assets/{catalog-BIwiWMeW.js → catalog-BsRePE_I.js} +4 -4
  15. package/assets/{dashboard-C2Y09gw1.js → dashboard-Bynx-P6M.js} +1 -1
  16. package/assets/date-picker-Dk9WjnjY.js +1 -0
  17. package/assets/{del-modal-yU9LPEgz.js → del-modal-TaroxmfE.js} +1 -1
  18. package/assets/{field-renderer-Ddc4u-gC.js → field-renderer-C1uKgcGe.js} +3 -3
  19. package/assets/{form-G2lvZbid.js → form-BjOpJfcr.js} +1 -1
  20. package/assets/form-D6rF7waX.js +1 -0
  21. package/assets/{geo-json-BNEPKsSU.js → geo-json-D5fjz6BF.js} +1 -1
  22. package/assets/history-DL0tB2tZ.js +1 -0
  23. package/assets/{home-Do0C-Tzu.js → home-CADtJAH_.js} +2 -2
  24. package/assets/{icon-FyVrxiPs.js → icon-BTIjB9Wk.js} +1 -1
  25. package/assets/{init-user-DhzPzTRM.js → init-user-CsEDYKZe.js} +1 -1
  26. package/assets/{input-error-cgnQ235Q.js → input-error-CSrUHo1P.js} +1 -1
  27. package/assets/list-B3Ki-psl.js +1 -0
  28. package/assets/{list-table-BxVhDSbv.js → list-table-DSRvmzBT.js} +3 -3
  29. package/assets/{login-Cla-c7nv.js → login-BfN1lJT1.js} +1 -1
  30. package/assets/manifest.json +95 -95
  31. package/assets/{material-icon-DZVU9Gse.js → material-icon-BXxpxGAd.js} +1 -1
  32. package/assets/{media-manager-CDI0y7wm.js → media-manager-Bf7A7-jv.js} +1 -1
  33. package/assets/{module-DI6zzr4C.js → module-B5hkMJ4M.js} +1 -1
  34. package/assets/{nav-footer-B9n8Pd8V.js → nav-footer-Q8fVAK6n.js} +1 -1
  35. package/assets/{nav-main-G6VwCche.js → nav-main-DcvkRp44.js} +1 -1
  36. package/assets/nav-user-PtK5V1sV.js +1 -0
  37. package/assets/{notification-BZzAyhJ1.js → notification-D1_TtX__.js} +1 -1
  38. package/assets/{pagination-render-CqNIIF8P.js → pagination-render-B5A4YOfb.js} +1 -1
  39. package/assets/{register-Bt0RP4PE.js → register-C2TFSMX0.js} +1 -1
  40. package/assets/{tabs-BhUuWdzc.js → tabs-DTgMEGE8.js} +1 -1
  41. package/assets/theme-switcher-Ca0SixmO.js +1 -0
  42. package/assets/{toast-editor-BGjjCkQG.js → toast-editor-D3dhpAw1.js} +1 -1
  43. package/assets/{user-info-gFSwypEN.js → user-info-BTJNUzpi.js} +1 -1
  44. package/assets/{user-menu-content-CjsydEH4.js → user-menu-content-DUnYpt8t.js} +1 -1
  45. package/assets/{welcome-8dJL4cIX.js → welcome-AlKSDf1S.js} +1 -1
  46. package/package.json +1 -1
  47. package/assets/add-D9qTFgIT.js +0 -1
  48. package/assets/add-group-sofsuFYA.js +0 -1
  49. package/assets/add-user-DM1nsN83.js +0 -1
  50. package/assets/date-picker-RBWWCucj.js +0 -1
  51. package/assets/form-P1bFGHCF.js +0 -1
  52. package/assets/history-DHZfSpf_.js +0 -1
  53. package/assets/list-D72uhn00.js +0 -1
  54. package/assets/nav-user-BfROibnw.js +0 -1
  55. package/assets/theme-switcher-BURZ8Tza.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as h,ay as kn,ao as In,h as ee,x as _i,y as Wi,az as Ln,z as Hi,A as ft,ab as Tr,ac as Mr,ad as jr,ae as Rr,aA as zn,aB as $t,B as V,a4 as Pn,a5 as Bn,a6 as Yt,a7 as oe,a8 as Xn,a9 as le,I as qt,L as nt,b as xt,aC as Ui,aD as Fi,aE as Vi,aF as Gi,aG as Ki,g as fr,ax as qi,D as Ji,i as Zi,k as Qi,l as Qr,aH as ea}from"./app.js";import{r as p,e as $,a as bt}from"./handsontable-PxYdjN8c.js";import{I as $n,P as _t,p as ta}from"./field-renderer-Ddc4u-gC.js";import{T as ra,a as na,b as Ke,c as qe}from"./tabs-BhUuWdzc.js";import{e as ia}from"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";import"./dynamic-controls-k61T9W2P.js";function aa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return p.useMemo(()=>n=>{e.forEach(a=>a(n))},e)}const Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function at(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function Or(t){return"nodeType"in t}function te(t){var e,r;return t?at(t)?t:Or(t)&&(e=(r=t.ownerDocument)==null?void 0:r.defaultView)!=null?e:window:window}function Ar(t){const{Document:e}=te(t);return t instanceof e}function Mt(t){return at(t)?!1:t instanceof te(t).HTMLElement}function Yn(t){return t instanceof te(t).SVGElement}function st(t){return t?at(t)?t.document:Or(t)?Ar(t)?t:Mt(t)||Yn(t)?t.ownerDocument:document:document:document}const ge=Jt?p.useLayoutEffect:p.useEffect;function Zt(t){const e=p.useRef(t);return ge(()=>{e.current=t}),p.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return e.current==null?void 0:e.current(...n)},[])}function sa(){const t=p.useRef(null),e=p.useCallback((n,a)=>{t.current=setInterval(n,a)},[]),r=p.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,r]}function Nt(t,e){e===void 0&&(e=[t]);const r=p.useRef(t);return ge(()=>{r.current!==t&&(r.current=t)},e),r}function jt(t,e){const r=p.useRef();return p.useMemo(()=>{const n=t(r.current);return r.current=n,n},[...e])}function Wt(t){const e=Zt(t),r=p.useRef(null),n=p.useCallback(a=>{a!==r.current&&(e==null||e(a,r.current)),r.current=a},[]);return[r,n]}function Ht(t){const e=p.useRef();return p.useEffect(()=>{e.current=t},[t]),e.current}let sr={};function Rt(t,e){return p.useMemo(()=>{if(e)return e;const r=sr[t]==null?0:sr[t]+1;return sr[t]=r,t+"-"+r},[t,e])}function _n(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce((i,s)=>{const o=Object.entries(s);for(const[d,l]of o){const c=i[d];c!=null&&(i[d]=c+t*l)}return i},{...e})}}const et=_n(1),St=_n(-1);function oa(t){return"clientX"in t&&"clientY"in t}function Ot(t){if(!t)return!1;const{KeyboardEvent:e}=te(t.target);return e&&t instanceof e}function la(t){if(!t)return!1;const{TouchEvent:e}=te(t.target);return e&&t instanceof e}function Ut(t){if(la(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:r}=t.touches[0];return{x:e,y:r}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:r}=t.changedTouches[0];return{x:e,y:r}}}return oa(t)?{x:t.clientX,y:t.clientY}:null}const we=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[we.Translate.toString(t),we.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:n}=t;return e+" "+r+"ms "+n}}}),en="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ca(t){return t.matches(en)?t:t.querySelector(en)}const da={display:"none"};function ua(t){let{id:e,value:r}=t;return $.createElement("div",{id:e,style:da},r)}function ha(t){let{id:e,announcement:r,ariaLiveType:n="assertive"}=t;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return $.createElement("div",{id:e,style:a,role:"status","aria-live":n,"aria-atomic":!0},r)}function fa(){const[t,e]=p.useState("");return{announce:p.useCallback(n=>{n!=null&&e(n)},[]),announcement:t}}const Wn=p.createContext(null);function pa(t){const e=p.useContext(Wn);p.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function ga(){const[t]=p.useState(()=>new Set),e=p.useCallback(n=>(t.add(n),()=>t.delete(n)),[t]);return[p.useCallback(n=>{let{type:a,event:i}=n;t.forEach(s=>{var o;return(o=s[a])==null?void 0:o.call(s,i)})},[t]),e]}const va={draggable:`
1
+ import{j as h,az as kn,ap as In,h as ee,y as _i,z as Wi,aA as Ln,A as Hi,F as ft,ac as Tr,ad as Mr,ae as jr,af as Rr,aB as zn,aC as $t,B as V,a5 as Pn,a6 as Bn,a7 as Yt,a8 as oe,a9 as Xn,aa as le,I as qt,L as nt,b as xt,aD as Ui,aE as Fi,aF as Vi,aG as Gi,aH as Ki,g as fr,ay as qi,D as Ji,i as Zi,k as Qi,l as Qr,aI as ea}from"./app.js";import{r as p,e as $,a as bt}from"./handsontable-PxYdjN8c.js";import{I as $n,P as _t,p as ta}from"./field-renderer-C1uKgcGe.js";import{T as ra,a as na,b as Ke,c as qe}from"./tabs-DTgMEGE8.js";import{e as ia}from"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";import"./dynamic-controls-k61T9W2P.js";function aa(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return p.useMemo(()=>n=>{e.forEach(a=>a(n))},e)}const Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function at(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function Or(t){return"nodeType"in t}function te(t){var e,r;return t?at(t)?t:Or(t)&&(e=(r=t.ownerDocument)==null?void 0:r.defaultView)!=null?e:window:window}function Ar(t){const{Document:e}=te(t);return t instanceof e}function Mt(t){return at(t)?!1:t instanceof te(t).HTMLElement}function Yn(t){return t instanceof te(t).SVGElement}function st(t){return t?at(t)?t.document:Or(t)?Ar(t)?t:Mt(t)||Yn(t)?t.ownerDocument:document:document:document}const ge=Jt?p.useLayoutEffect:p.useEffect;function Zt(t){const e=p.useRef(t);return ge(()=>{e.current=t}),p.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return e.current==null?void 0:e.current(...n)},[])}function sa(){const t=p.useRef(null),e=p.useCallback((n,a)=>{t.current=setInterval(n,a)},[]),r=p.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,r]}function Nt(t,e){e===void 0&&(e=[t]);const r=p.useRef(t);return ge(()=>{r.current!==t&&(r.current=t)},e),r}function jt(t,e){const r=p.useRef();return p.useMemo(()=>{const n=t(r.current);return r.current=n,n},[...e])}function Wt(t){const e=Zt(t),r=p.useRef(null),n=p.useCallback(a=>{a!==r.current&&(e==null||e(a,r.current)),r.current=a},[]);return[r,n]}function Ht(t){const e=p.useRef();return p.useEffect(()=>{e.current=t},[t]),e.current}let sr={};function Rt(t,e){return p.useMemo(()=>{if(e)return e;const r=sr[t]==null?0:sr[t]+1;return sr[t]=r,t+"-"+r},[t,e])}function _n(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce((i,s)=>{const o=Object.entries(s);for(const[d,l]of o){const c=i[d];c!=null&&(i[d]=c+t*l)}return i},{...e})}}const et=_n(1),St=_n(-1);function oa(t){return"clientX"in t&&"clientY"in t}function Ot(t){if(!t)return!1;const{KeyboardEvent:e}=te(t.target);return e&&t instanceof e}function la(t){if(!t)return!1;const{TouchEvent:e}=te(t.target);return e&&t instanceof e}function Ut(t){if(la(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:r}=t.touches[0];return{x:e,y:r}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:r}=t.changedTouches[0];return{x:e,y:r}}}return oa(t)?{x:t.clientX,y:t.clientY}:null}const we=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[we.Translate.toString(t),we.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:n}=t;return e+" "+r+"ms "+n}}}),en="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ca(t){return t.matches(en)?t:t.querySelector(en)}const da={display:"none"};function ua(t){let{id:e,value:r}=t;return $.createElement("div",{id:e,style:da},r)}function ha(t){let{id:e,announcement:r,ariaLiveType:n="assertive"}=t;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return $.createElement("div",{id:e,style:a,role:"status","aria-live":n,"aria-atomic":!0},r)}function fa(){const[t,e]=p.useState("");return{announce:p.useCallback(n=>{n!=null&&e(n)},[]),announcement:t}}const Wn=p.createContext(null);function pa(t){const e=p.useContext(Wn);p.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function ga(){const[t]=p.useState(()=>new Set),e=p.useCallback(n=>(t.add(n),()=>t.delete(n)),[t]);return[p.useCallback(n=>{let{type:a,event:i}=n;t.forEach(s=>{var o;return(o=s[a])==null?void 0:o.call(s,i)})},[t]),e]}const va={draggable:`
2
2
  To pick up a draggable item, press the space bar.
3
3
  While dragging, use the arrow keys to move the item.
4
4
  Press space again to drop the item in its new position, or press escape to cancel.
@@ -1 +1 @@
1
- import{u as p,j as e,L as i}from"./app.js";import{r as s}from"./handsontable-PxYdjN8c.js";import{A as d}from"./app-layout-DM2_7wxW.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";const c=[];function $(){const r=p(),[n,a]=s.useState(null);return s.useEffect(()=>{const m=async()=>{const o=(await import(r.props.moduleComponent)).default;a(e.jsx(o,{data:r.props.data}))};(()=>{const t=r.props.moduleComponentCSS;if(!t||[...document.head.querySelectorAll("link[rel='stylesheet']")].some(l=>l.href.includes(t)))return;const o=document.createElement("link");o.rel="stylesheet",o.href=t,o.type="text/css",o.onload=()=>console.log(`CSS loaded: ${t}`),o.onerror=()=>console.error(`Failed to load CSS: ${t}`),document.head.appendChild(o)})(),m()},[]),e.jsx(d,{breadcrumbs:c,children:e.jsx("div",{className:"m-5",children:n||e.jsx(i,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})})})}export{$ as default};
1
+ import{u as p,j as e,L as i}from"./app.js";import{r as s}from"./handsontable-PxYdjN8c.js";import{A as d}from"./app-layout-CbRvDFF3.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";import"./app-shell-DbPu3ZPM.js";import"./app-sidebar-CQqvkGH0.js";import"./nav-main-DcvkRp44.js";import"./material-icon-BXxpxGAd.js";import"./app-sidebar-header-C8sntqs3.js";import"./breadcrumbs-Df-vVsyM.js";import"./nav-user-PtK5V1sV.js";import"./user-info-BTJNUzpi.js";import"./user-menu-content-DUnYpt8t.js";import"./theme-switcher-Ca0SixmO.js";import"./icon-BTIjB9Wk.js";const c=[];function $(){const r=p(),[n,a]=s.useState(null);return s.useEffect(()=>{const m=async()=>{const o=(await import(r.props.moduleComponent)).default;a(e.jsx(o,{data:r.props.data}))};(()=>{const t=r.props.moduleComponentCSS;if(!t||[...document.head.querySelectorAll("link[rel='stylesheet']")].some(l=>l.href.includes(t)))return;const o=document.createElement("link");o.rel="stylesheet",o.href=t,o.type="text/css",o.onload=()=>console.log(`CSS loaded: ${t}`),o.onerror=()=>console.error(`Failed to load CSS: ${t}`),document.head.appendChild(o)})(),m()},[]),e.jsx(d,{breadcrumbs:c,children:e.jsx("div",{className:"m-5",children:n||e.jsx(i,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})})})}export{$ as default};
@@ -1 +1 @@
1
- import{j as r,bc as o,bs as s,b0 as i,b1 as l,b5 as c}from"./app.js";import{Icon as d}from"./icon-FyVrxiPs.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";function j({items:a,className:t,...n}){return r.jsx(o,{...n,className:`group-data-[collapsible=icon]:p-0 ${t||""}`,children:r.jsx(s,{children:r.jsx(i,{children:a.map(e=>r.jsx(l,{children:r.jsx(c,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:r.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",children:[e.icon&&r.jsx(d,{iconNode:e.icon,className:"h-5 w-5"}),r.jsx("span",{children:e.title})]})})},e.title))})})})}export{j as NavFooter};
1
+ import{j as r,bd as o,bt as s,b1 as i,b2 as l,b6 as d}from"./app.js";import{Icon as c}from"./icon-BTIjB9Wk.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";function j({items:a,className:t,...n}){return r.jsx(o,{...n,className:`group-data-[collapsible=icon]:p-0 ${t||""}`,children:r.jsx(s,{children:r.jsx(i,{children:a.map(e=>r.jsx(l,{children:r.jsx(d,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:r.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",children:[e.icon&&r.jsx(c,{iconNode:e.icon,className:"h-5 w-5"}),r.jsx("span",{children:e.title})]})})},e.title))})})})}export{j as NavFooter};
@@ -1 +1 @@
1
- import{u as w,j as n,bc as y,br as O,C as k,bs as R,b0 as A,bt as E,b1 as g,be as P,b5 as N,bu as T,bg as L,bh as _,bi as $,ah as C}from"./app.js";import{r as i}from"./handsontable-PxYdjN8c.js";import l from"./material-icon-DZVU9Gse.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function W({items:c=[]}){const S=w(),j=e=>e.split("?")[0].replace(/\/$/,""),m=c.reduce((e,s)=>{const r=s.section||"Platform";return e[r]||(e[r]=[]),e[r].push(s),e},{}),[p,G]=i.useState(()=>{const e={};return c.forEach(s=>{const r=s.section||"Platform";e[r]=!1}),e}),[u,M]=i.useState(()=>{const e={};return c.forEach(s=>{const r=s.section||"Platform";e[r]=!1}),e}),o=e=>{const s=j(S.url),r=j(e);return s===r||s.startsWith(`${r}/`)},f=i.useRef(p),b=i.useRef(u);f.current=p,b.current=u;const v=({item:e})=>{var s,r;return((s=e.actions)==null?void 0:s.length)>0?n.jsx(E,{asChild:!0,defaultOpen:o(e.link),className:"group/collapsible",children:n.jsxs(g,{children:[n.jsx(P,{asChild:!0,children:n.jsxs(N,{tooltip:e.title,children:[n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.title}),n.jsx(k,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),n.jsx(T,{children:n.jsx(L,{children:(r=e.actions)==null?void 0:r.map(t=>n.jsx(_,{children:n.jsx($,{asChild:!0,isActive:o(t.link),children:t.type==="blank"?n.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",children:[t.icon&&n.jsx(l,{name:t.icon,className:"!text-[18px]"}),n.jsx("span",{children:t.title})]}):n.jsxs(C,{href:t.link,children:[t.icon&&n.jsx(l,{name:t.icon,className:"!text-[18px]"}),n.jsx("span",{children:t.title})]})})},t.id))})})]})},e.title):n.jsx(g,{children:n.jsx(N,{asChild:!0,isActive:o(e.link),tooltip:{children:e.title},children:e.type==="blank"?n.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:[e.icon&&n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]}):n.jsxs(C,{href:e.link,children:[e.icon&&n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]})})},e.title)};return n.jsx(n.Fragment,{children:Object.entries(m).map(([e,s])=>{const r=s.some(a=>{var d;return((d=a.actions)==null?void 0:d.length)>0?a.actions.some(h=>o(h.link)):o(a.link)}),t=u[e]?p[e]:r;return n.jsxs(y,{className:"px-2 py-0",children:[n.jsx(O,{asChild:!0,className:"cursor-pointer",onClick:()=>{const h=!(b.current[e]?f.current[e]:r);M(x=>({...x,[e]:!0})),G(x=>({...x,[e]:h}))},children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(k,{className:`transform transition-transform duration-200 ${t?"rotate-90":""}`}),n.jsx("span",{children:e})]})}),t&&n.jsx(R,{children:n.jsx(A,{children:s.map(a=>n.jsx(v,{item:a},a.id||a.title))})})]},e)})})}export{W as NavMain};
1
+ import{u as w,j as n,bd as y,bs as O,C as k,bt as R,b1 as A,bu as E,b2 as g,bf as P,b6 as N,bv as T,bh as L,bi as _,bj as $,ai as C}from"./app.js";import{r as i}from"./handsontable-PxYdjN8c.js";import l from"./material-icon-BXxpxGAd.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function W({items:c=[]}){const S=w(),j=e=>e.split("?")[0].replace(/\/$/,""),m=c.reduce((e,s)=>{const r=s.section||"Platform";return e[r]||(e[r]=[]),e[r].push(s),e},{}),[p,v]=i.useState(()=>{const e={};return c.forEach(s=>{const r=s.section||"Platform";e[r]=!1}),e}),[u,G]=i.useState(()=>{const e={};return c.forEach(s=>{const r=s.section||"Platform";e[r]=!1}),e}),o=e=>{const s=j(S.url),r=j(e);return s===r||s.startsWith(`${r}/`)},f=i.useRef(p),b=i.useRef(u);f.current=p,b.current=u;const M=({item:e})=>{var s,r;return((s=e.actions)==null?void 0:s.length)>0?n.jsx(E,{asChild:!0,defaultOpen:o(e.link),className:"group/collapsible",children:n.jsxs(g,{children:[n.jsx(P,{asChild:!0,children:n.jsxs(N,{tooltip:e.title,children:[n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.title}),n.jsx(k,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),n.jsx(T,{children:n.jsx(L,{children:(r=e.actions)==null?void 0:r.map(t=>n.jsx(_,{children:n.jsx($,{asChild:!0,isActive:o(t.link),children:t.type==="blank"?n.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",children:[t.icon&&n.jsx(l,{name:t.icon,className:"!text-[18px]"}),n.jsx("span",{children:t.title})]}):n.jsxs(C,{href:t.link,children:[t.icon&&n.jsx(l,{name:t.icon,className:"!text-[18px]"}),n.jsx("span",{children:t.title})]})})},t.id))})})]})},e.title):n.jsx(g,{children:n.jsx(N,{asChild:!0,isActive:o(e.link),tooltip:{children:e.title},children:e.type==="blank"?n.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:[e.icon&&n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]}):n.jsxs(C,{href:e.link,children:[e.icon&&n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]})})},e.title)};return n.jsx(n.Fragment,{children:Object.entries(m).map(([e,s])=>{const r=s.some(a=>{var d;return((d=a.actions)==null?void 0:d.length)>0?a.actions.some(h=>o(h.link)):o(a.link)}),t=u[e]?p[e]:r;return n.jsxs(y,{className:"px-2 py-0",children:[n.jsx(O,{asChild:!0,className:"cursor-pointer",onClick:()=>{const h=!(b.current[e]?f.current[e]:r);G(x=>({...x,[e]:!0})),v(x=>({...x,[e]:h}))},children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(k,{className:`transform transition-transform duration-200 ${t?"rotate-90":""}`}),n.jsx("span",{children:e})]})}),t&&n.jsx(R,{children:n.jsx(A,{children:s.map(a=>n.jsx(M,{item:a},a.id||a.title))})})]},e)})})}export{W as NavMain};
@@ -0,0 +1 @@
1
+ import{u as a,bw as i,bx as u,j as e,b1 as d,b2 as l,aV as c,s as m,b6 as p,b7 as b,w as x}from"./app.js";import{UserInfo as g}from"./user-info-BTJNUzpi.js";import{UserMenuContent as j}from"./user-menu-content-DUnYpt8t.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";function N(){const{auth:s,logout:r,logoutBtn:o}=a().props,{state:n}=i(),t=u();return e.jsx(d,{children:e.jsx(l,{children:e.jsxs(c,{children:[e.jsx(m,{asChild:!0,children:e.jsxs(p,{size:"lg",className:"text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent group focus-visible:ring-0 cursor-pointer",children:[e.jsx(g,{user:s.user}),e.jsx(b,{className:"ml-auto size-4"})]})}),e.jsx(x,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg z-[1002]",align:"end",side:t?"bottom":n==="collapsed"?"left":"bottom",children:e.jsx(j,{user:s.user,logout:r,logoutBtn:o})})]})})})}export{N as NavUser};
@@ -1,4 +1,4 @@
1
- import{j as S,a4 as c_,a5 as h_,a6 as Ui,a7 as gr,a8 as g_,a9 as dt,M as p_,N as __,B as As,E as d_,O as v_,u as x_,I as w_,L as xs,r as A_}from"./app.js";import{A as m_}from"./app-layout-DM2_7wxW.js";import{r as Q}from"./handsontable-PxYdjN8c.js";import{T as R_,a as T_,b as y_,c as S_}from"./tabs-BhUuWdzc.js";import{c as pr,e as C_}from"./jsoneditor-De1FvcYu.js";import{u as E_}from"./app-sidebar-header-qHEOMq5D.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";var vt={exports:{}};/**
1
+ import{j as S,a5 as c_,a6 as h_,a7 as Ui,a8 as gr,a9 as g_,aa as dt,N as p_,O as __,B as As,E as d_,Q as v_,u as x_,I as w_,L as xs,r as A_}from"./app.js";import{A as m_}from"./app-layout-CbRvDFF3.js";import{r as Q}from"./handsontable-PxYdjN8c.js";import{T as R_,a as T_,b as y_,c as S_}from"./tabs-DTgMEGE8.js";import{c as pr,e as C_}from"./jsoneditor-De1FvcYu.js";import{u as E_}from"./app-sidebar-header-C8sntqs3.js";import"./monaco-BhBYtg3d.js";import"./app-shell-DbPu3ZPM.js";import"./app-sidebar-CQqvkGH0.js";import"./nav-main-DcvkRp44.js";import"./material-icon-BXxpxGAd.js";import"./breadcrumbs-Df-vVsyM.js";import"./nav-user-PtK5V1sV.js";import"./user-info-BTJNUzpi.js";import"./user-menu-content-DUnYpt8t.js";import"./theme-switcher-Ca0SixmO.js";import"./icon-BTIjB9Wk.js";var vt={exports:{}};/**
2
2
  * @license
3
3
  * Lodash <https://lodash.com/>
4
4
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -1 +1 @@
1
- import{j as r,bR as p,bS as m,bT as o,bU as a,bV as x,bW as b}from"./app.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";const h=({pagination:s,pageChange:t,currentPage:n})=>{const l=n!==1&&s.last_page>1,i=n!==s.last_page&&s.last_page>1;return r.jsx(p,{children:r.jsxs(m,{className:"flex-wrap",children:[r.jsx(o,{className:`${l?"":"opacity-40 pointer-events-none"}`,children:r.jsx(a,{className:"px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15",onClick:e=>{e.preventDefault(),t(1)},children:"First"})}),r.jsx(o,{children:r.jsx(x,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s.prev_page_url?"":"opacity-50 pointer-events-none"}`,onClick:e=>{e.preventDefault(),s.prev_page_url&&t(n-1)}})}),s.links.map((e,c)=>e.label==="Previous"||e.label==="Next"?null:r.jsx(o,{children:r.jsx(a,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${e.active?"!bg-primary dark:!bg-muted-foreground !text-primary-foreground dark:!text-ring":""}`,onClick:u=>{u.preventDefault();const d=parseInt(e.label);t(d)},isActive:e.active,children:e.label})},c)),r.jsx(o,{children:r.jsx(b,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s.next_page_url?"":"opacity-50 pointer-events-none"}`,onClick:e=>{e.preventDefault(),s.next_page_url&&t(n+1)}})}),r.jsx(o,{className:`${i?"":"opacity-40 pointer-events-none"}`,children:r.jsx(a,{className:"px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15",onClick:e=>{e.preventDefault(),t(s.last_page)},children:"Last"})})]})})};export{h as default};
1
+ import{j as r,bS as p,bT as m,bU as o,bV as a,bW as x,bX as b}from"./app.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";const h=({pagination:s,pageChange:t,currentPage:n})=>{const l=n!==1&&s.last_page>1,i=n!==s.last_page&&s.last_page>1;return r.jsx(p,{children:r.jsxs(m,{className:"flex-wrap",children:[r.jsx(o,{className:`${l?"":"opacity-40 pointer-events-none"}`,children:r.jsx(a,{className:"px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15",onClick:e=>{e.preventDefault(),t(1)},children:"First"})}),r.jsx(o,{children:r.jsx(x,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s.prev_page_url?"":"opacity-50 pointer-events-none"}`,onClick:e=>{e.preventDefault(),s.prev_page_url&&t(n-1)}})}),s.links.map((e,c)=>e.label==="Previous"||e.label==="Next"?null:r.jsx(o,{children:r.jsx(a,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${e.active?"!bg-primary dark:!bg-muted-foreground !text-primary-foreground dark:!text-ring":""}`,onClick:u=>{u.preventDefault();const d=parseInt(e.label);t(d)},isActive:e.active,children:e.label})},c)),r.jsx(o,{children:r.jsx(b,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s.next_page_url?"":"opacity-50 pointer-events-none"}`,onClick:e=>{e.preventDefault(),s.next_page_url&&t(n+1)}})}),r.jsx(o,{className:`${i?"":"opacity-40 pointer-events-none"}`,children:r.jsx(a,{className:"px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15",onClick:e=>{e.preventDefault(),t(s.last_page)},children:"Last"})})]})})};export{h as default};
@@ -1 +1 @@
1
- import{u as f,aj as b,ai as N,j as e,T as v,b as d,I as t,S as w,c as L,d as C,e as P,f as y,B as m,ah as E,t as I}from"./app.js";import{r as S}from"./handsontable-PxYdjN8c.js";import n from"./input-error-cgnQ235Q.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function B(){const s=f();S.useEffect(()=>{b()},[]);const{post:p,data:o,setData:u,processing:l,setError:x,errors:r,clearErrors:h}=N({locale:"en",email:"",confirmPassword:"",password:"",fullName:"",login:""}),g=a=>{if(a.preventDefault(),o.password!==o.confirmPassword){x("confirmPassword",s.props.confirmError);return}p(s.props.submitLink,{onSuccess:()=>{},onError:c=>{for(const j of Object.keys(c))I.error(c[j])}})},i=(a,c)=>{h(),u(a,c)};return e.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[e.jsx(v,{position:"top-center",richColors:!0,closeButton:!0}),e.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[e.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e.jsx("form",{onSubmit:g,className:"mt-6",children:e.jsxs("div",{className:"grid gap-5",children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"login",children:[s.props.loginLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"login",className:`${r.login?"border-red-500":""}`,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:o.login,disabled:l,onChange:a=>{i("login",a.target.value)},placeholder:s.props.loginLabel}),e.jsx(n,{message:r.login})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"fullName",children:[s.props.fullNameLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"fullName",className:`${r.fullName?"border-red-500":""}`,type:"text",required:!0,tabIndex:1,autoComplete:"fullName",value:o.fullName,disabled:l,onChange:a=>{i("fullName",a.target.value)},placeholder:s.props.fullNameLabel}),e.jsx(n,{message:r.fullName})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"password",children:[s.props.passwordLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"password",className:`${r.password?"border-red-500":""}`,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:o.password,disabled:l,onChange:a=>{i("password",a.target.value)},placeholder:s.props.passwordLabel}),e.jsx(n,{message:r.password})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"confirmPassword",className:`${r.confirmPassword?"border-red-500":""}`,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:o.confirmPassword,disabled:l,onChange:a=>{i("confirmPassword",a.target.value)},placeholder:s.props.confirmPasswordLabel}),e.jsx(n,{message:r.confirmPassword})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"email",children:[s.props.emailLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"email",className:`${r.email?"border-red-500":""}`,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:o.email,disabled:l,onChange:a=>{i("email",a.target.value)},placeholder:s.props.emailLabel}),e.jsx(n,{message:r.email})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(d,{htmlFor:"locale",children:s.props.localeLabel}),e.jsxs(w,{onValueChange:a=>i("locale",a),defaultValue:"en",disabled:l,children:[e.jsx(L,{className:"w-full cursor-pointer",children:e.jsx(C,{placeholder:s.props.localeLabel})}),e.jsx(P,{children:e.jsx(y,{value:"en",children:"EN"})})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(m,{type:"submit",className:"w-fit",disabled:l,children:s.props.submitButton}),e.jsx(m,{asChild:!0,variant:"outline",children:e.jsx(E,{href:s.props.backToLogin.link,className:`${l} ? 'pointer-events-none opacity-50' : ''`,children:s.props.backToLogin.text})})]})]})})]})]})}export{B as default};
1
+ import{u as f,ak as b,aj as N,j as e,T as v,b as d,I as t,S as w,c as L,d as C,e as P,f as y,B as m,ai as E,t as I}from"./app.js";import{r as k}from"./handsontable-PxYdjN8c.js";import n from"./input-error-CSrUHo1P.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function B(){const s=f();k.useEffect(()=>{b()},[]);const{post:p,data:o,setData:u,processing:l,setError:x,errors:r,clearErrors:h}=N({locale:"en",email:"",confirmPassword:"",password:"",fullName:"",login:""}),g=a=>{if(a.preventDefault(),o.password!==o.confirmPassword){x("confirmPassword",s.props.confirmError);return}p(s.props.submitLink,{onSuccess:()=>{},onError:c=>{for(const j of Object.keys(c))I.error(c[j])}})},i=(a,c)=>{h(),u(a,c)};return e.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[e.jsx(v,{position:"top-center",richColors:!0,closeButton:!0}),e.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[e.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e.jsx("form",{onSubmit:g,className:"mt-6",children:e.jsxs("div",{className:"grid gap-5",children:[e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"login",children:[s.props.loginLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"login",className:`${r.login?"border-red-500":""}`,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:o.login,disabled:l,onChange:a=>{i("login",a.target.value)},placeholder:s.props.loginLabel}),e.jsx(n,{message:r.login})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"fullName",children:[s.props.fullNameLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"fullName",className:`${r.fullName?"border-red-500":""}`,type:"text",required:!0,tabIndex:1,autoComplete:"fullName",value:o.fullName,disabled:l,onChange:a=>{i("fullName",a.target.value)},placeholder:s.props.fullNameLabel}),e.jsx(n,{message:r.fullName})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"password",children:[s.props.passwordLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"password",className:`${r.password?"border-red-500":""}`,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:o.password,disabled:l,onChange:a=>{i("password",a.target.value)},placeholder:s.props.passwordLabel}),e.jsx(n,{message:r.password})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"confirmPassword",className:`${r.confirmPassword?"border-red-500":""}`,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:o.confirmPassword,disabled:l,onChange:a=>{i("confirmPassword",a.target.value)},placeholder:s.props.confirmPasswordLabel}),e.jsx(n,{message:r.confirmPassword})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsxs(d,{htmlFor:"email",children:[s.props.emailLabel,e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(t,{id:"email",className:`${r.email?"border-red-500":""}`,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:o.email,disabled:l,onChange:a=>{i("email",a.target.value)},placeholder:s.props.emailLabel}),e.jsx(n,{message:r.email})]})]}),e.jsxs("div",{className:"grid gap-4",children:[e.jsx(d,{htmlFor:"locale",children:s.props.localeLabel}),e.jsxs(w,{onValueChange:a=>i("locale",a),defaultValue:"en",disabled:l,children:[e.jsx(L,{className:"w-full cursor-pointer",children:e.jsx(C,{placeholder:s.props.localeLabel})}),e.jsx(P,{children:e.jsx(y,{value:"en",children:"EN"})})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx(m,{type:"submit",className:"w-fit",disabled:l,children:s.props.submitButton}),e.jsx(m,{asChild:!0,variant:"outline",children:e.jsx(E,{href:s.props.backToLogin.link,className:`${l} ? 'pointer-events-none opacity-50' : ''`,children:s.props.backToLogin.text})})]})]})})]})]})}export{B as default};
@@ -1 +1 @@
1
- import{j as p,aI as D,aJ as F,aK as k,aL as O,aM as L,aN as G,aO as y,aP as B,aQ as _,az as g}from"./app.js";import{r as c}from"./handsontable-PxYdjN8c.js";function W(e,t=[]){let o=[];function r(i,a){const s=c.createContext(a),l=o.length;o=[...o,a];const d=u=>{var S;const{scope:v,children:C,...b}=u,m=((S=v==null?void 0:v[e])==null?void 0:S[l])||s,V=c.useMemo(()=>b,Object.values(b));return p.jsx(m.Provider,{value:V,children:C})};d.displayName=i+"Provider";function f(u,v){var m;const C=((m=v==null?void 0:v[e])==null?void 0:m[l])||s,b=c.useContext(C);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[d,f]}const n=()=>{const i=o.map(a=>c.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[r,z(n,...t)]}function z(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:d})=>{const u=l(i)[`__scope${d}`];return{...s,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return o.scopeName=t.scopeName,o}function H(e){const t=K(e),o=c.forwardRef((r,n)=>{const{children:i,...a}=r,s=c.Children.toArray(i),l=s.find(J);if(l){const d=l.props.children,f=s.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:n,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:n,children:i})});return o.displayName=`${e}.Slot`,o}function K(e){const t=c.forwardRef((o,r)=>{const{children:n,...i}=o;if(c.isValidElement(n)){const a=Z(n),s=Q(i,n.props);return n.type!==c.Fragment&&(s.ref=r?D(r,a):a),c.cloneElement(n,s)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var q=Symbol("radix.slottable");function J(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===q}function Q(e,t){const o={...t};for(const r in t){const n=e[r],i=t[r];/^on[A-Z]/.test(r)?n&&i?o[r]=(...s)=>{const l=i(...s);return n(...s),l}:n&&(o[r]=n):r==="style"?o[r]={...n,...i}:r==="className"&&(o[r]=[n,i].filter(Boolean).join(" "))}return{...e,...o}}function Z(e){var r,n;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var U=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],x=U.reduce((e,t)=>{const o=H(`Primitive.${t}`),r=c.forwardRef((n,i)=>{const{asChild:a,...s}=n,l=a?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),h="Tabs",[X]=W(h,[_]),j=_(),[Y,T]=X(h),w=c.forwardRef((e,t)=>{const{__scopeTabs:o,value:r,onValueChange:n,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...d}=e,f=F(s),[u,v]=k({prop:r,onChange:n,defaultProp:i??"",caller:h});return p.jsx(Y,{scope:o,baseId:O(),value:u,onValueChange:v,orientation:a,dir:f,activationMode:l,children:p.jsx(x.div,{dir:f,"data-orientation":a,...d,ref:t})})});w.displayName=h;var E="TabsList",P=c.forwardRef((e,t)=>{const{__scopeTabs:o,loop:r=!0,...n}=e,i=T(E,o),a=j(o);return p.jsx(L,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:p.jsx(x.div,{role:"tablist","aria-orientation":i.orientation,...n,ref:t})})});P.displayName=E;var N="TabsTrigger",I=c.forwardRef((e,t)=>{const{__scopeTabs:o,value:r,disabled:n=!1,...i}=e,a=T(N,o),s=j(o),l=A(a.baseId,r),d=M(a.baseId,r),f=r===a.value;return p.jsx(G,{asChild:!0,...s,focusable:!n,active:f,children:p.jsx(x.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...i,ref:t,onMouseDown:y(e.onMouseDown,u=>{!n&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:y(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:y(e.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!n&&u&&a.onValueChange(r)})})})});I.displayName=N;var R="TabsContent",$=c.forwardRef((e,t)=>{const{__scopeTabs:o,value:r,forceMount:n,children:i,...a}=e,s=T(R,o),l=A(s.baseId,r),d=M(s.baseId,r),f=r===s.value,u=c.useRef(f);return c.useEffect(()=>{const v=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(B,{present:n||f,children:({present:v})=>p.jsx(x.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!v,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:v&&i})})});$.displayName=R;function A(e,t){return`${e}-trigger-${t}`}function M(e,t){return`${e}-content-${t}`}var ee=w,te=P,ne=I,re=$;function se({className:e,...t}){return p.jsx(ee,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function ie({className:e,...t}){return p.jsx(te,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function ce({className:e,...t}){return p.jsx(ne,{"data-slot":"tabs-trigger",className:g("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",e),...t})}function le({className:e,...t}){return p.jsx(re,{"data-slot":"tabs-content",className:g("flex-1 outline-none",e),...t})}export{se as T,ie as a,ce as b,le as c};
1
+ import{j as p,aJ as D,aK as F,aL as k,aM as O,aN as L,aO as G,aP as y,aQ as B,aR as _,aA as g}from"./app.js";import{r as c}from"./handsontable-PxYdjN8c.js";function W(e,t=[]){let o=[];function r(i,a){const s=c.createContext(a),l=o.length;o=[...o,a];const d=u=>{var S;const{scope:v,children:C,...b}=u,m=((S=v==null?void 0:v[e])==null?void 0:S[l])||s,V=c.useMemo(()=>b,Object.values(b));return p.jsx(m.Provider,{value:V,children:C})};d.displayName=i+"Provider";function f(u,v){var m;const C=((m=v==null?void 0:v[e])==null?void 0:m[l])||s,b=c.useContext(C);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[d,f]}const n=()=>{const i=o.map(a=>c.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return n.scopeName=e,[r,H(n,...t)]}function H(...e){const t=e[0];if(e.length===1)return t;const o=()=>{const r=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:d})=>{const u=l(i)[`__scope${d}`];return{...s,...u}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return o.scopeName=t.scopeName,o}function K(e){const t=z(e),o=c.forwardRef((r,n)=>{const{children:i,...a}=r,s=c.Children.toArray(i),l=s.find(J);if(l){const d=l.props.children,f=s.map(u=>u===l?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:u);return p.jsx(t,{...a,ref:n,children:c.isValidElement(d)?c.cloneElement(d,void 0,f):null})}return p.jsx(t,{...a,ref:n,children:i})});return o.displayName=`${e}.Slot`,o}function z(e){const t=c.forwardRef((o,r)=>{const{children:n,...i}=o;if(c.isValidElement(n)){const a=Z(n),s=Q(i,n.props);return n.type!==c.Fragment&&(s.ref=r?D(r,a):a),c.cloneElement(n,s)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var q=Symbol("radix.slottable");function J(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===q}function Q(e,t){const o={...t};for(const r in t){const n=e[r],i=t[r];/^on[A-Z]/.test(r)?n&&i?o[r]=(...s)=>{const l=i(...s);return n(...s),l}:n&&(o[r]=n):r==="style"?o[r]={...n,...i}:r==="className"&&(o[r]=[n,i].filter(Boolean).join(" "))}return{...e,...o}}function Z(e){var r,n;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var U=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],x=U.reduce((e,t)=>{const o=K(`Primitive.${t}`),r=c.forwardRef((n,i)=>{const{asChild:a,...s}=n,l=a?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),h="Tabs",[X]=W(h,[_]),j=_(),[Y,T]=X(h),w=c.forwardRef((e,t)=>{const{__scopeTabs:o,value:r,onValueChange:n,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...d}=e,f=F(s),[u,v]=k({prop:r,onChange:n,defaultProp:i??"",caller:h});return p.jsx(Y,{scope:o,baseId:O(),value:u,onValueChange:v,orientation:a,dir:f,activationMode:l,children:p.jsx(x.div,{dir:f,"data-orientation":a,...d,ref:t})})});w.displayName=h;var E="TabsList",P=c.forwardRef((e,t)=>{const{__scopeTabs:o,loop:r=!0,...n}=e,i=T(E,o),a=j(o);return p.jsx(L,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:p.jsx(x.div,{role:"tablist","aria-orientation":i.orientation,...n,ref:t})})});P.displayName=E;var N="TabsTrigger",R=c.forwardRef((e,t)=>{const{__scopeTabs:o,value:r,disabled:n=!1,...i}=e,a=T(N,o),s=j(o),l=$(a.baseId,r),d=M(a.baseId,r),f=r===a.value;return p.jsx(G,{asChild:!0,...s,focusable:!n,active:f,children:p.jsx(x.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":d,"data-state":f?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...i,ref:t,onMouseDown:y(e.onMouseDown,u=>{!n&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:y(e.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:y(e.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!n&&u&&a.onValueChange(r)})})})});R.displayName=N;var I="TabsContent",A=c.forwardRef((e,t)=>{const{__scopeTabs:o,value:r,forceMount:n,children:i,...a}=e,s=T(I,o),l=$(s.baseId,r),d=M(s.baseId,r),f=r===s.value,u=c.useRef(f);return c.useEffect(()=>{const v=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(B,{present:n||f,children:({present:v})=>p.jsx(x.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!v,id:d,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:u.current?"0s":void 0},children:v&&i})})});A.displayName=I;function $(e,t){return`${e}-trigger-${t}`}function M(e,t){return`${e}-content-${t}`}var ee=w,te=P,ne=R,re=A;function se({className:e,...t}){return p.jsx(ee,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function ie({className:e,...t}){return p.jsx(te,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function ce({className:e,...t}){return p.jsx(ne,{"data-slot":"tabs-trigger",className:g("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",e),...t})}function le({className:e,...t}){return p.jsx(re,{"data-slot":"tabs-content",className:g("flex-1 outline-none",e),...t})}export{se as T,ie as a,ce as b,le as c};
@@ -0,0 +1 @@
1
+ import{at as c,j as n,B as i,by as p,bz as m,bA as u}from"./app.js";import{Icon as h}from"./icon-BTIjB9Wk.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";function g(){const{appearance:t,updateAppearance:s}=c(),o={light:"dark",dark:"system",system:"light"},a={light:u,dark:m,system:p},e=()=>s(o[t]),r=a[t];return n.jsx(i,{variant:"ghost",size:"icon",onClick:e,className:"shrink-0",children:n.jsx(h,{iconNode:r})})}export{g as ThemeSwitcher,g as default};
@@ -1,4 +1,4 @@
1
- import{ar as JZ,as as YZ,j as Tv}from"./app.js";import{e as Lo,r as ko}from"./handsontable-PxYdjN8c.js";import{k as XZ,j as ZZ,g as QZ}from"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function Dr(r){this.content=r}Dr.prototype={constructor:Dr,find:function(r){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===r)return e;return-1},get:function(r){var e=this.find(r);return e==-1?void 0:this.content[e+1]},update:function(r,e,t){var n=t&&t!=r?this.remove(t):this,i=n.find(r),a=n.content.slice();return i==-1?a.push(t||r,e):(a[i+1]=e,t&&(a[i]=t)),new Dr(a)},remove:function(r){var e=this.find(r);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Dr(t)},addToStart:function(r,e){return new Dr([r,e].concat(this.remove(r).content))},addToEnd:function(r,e){var t=this.remove(r).content.slice();return t.push(r,e),new Dr(t)},addBefore:function(r,e,t){var n=this.remove(e),i=n.content.slice(),a=n.find(r);return i.splice(a==-1?i.length:a,0,e,t),new Dr(i)},forEach:function(r){for(var e=0;e<this.content.length;e+=2)r(this.content[e],this.content[e+1])},prepend:function(r){return r=Dr.from(r),r.size?new Dr(r.content.concat(this.subtract(r).content)):this},append:function(r){return r=Dr.from(r),r.size?new Dr(this.subtract(r).content.concat(r.content)):this},subtract:function(r){var e=this;r=Dr.from(r);for(var t=0;t<r.content.length;t+=2)e=e.remove(r.content[t]);return e},toObject:function(){var r={};return this.forEach(function(e,t){r[e]=t}),r},get size(){return this.content.length>>1}};Dr.from=function(r){if(r instanceof Dr)return r;var e=[];if(r)for(var t in r)e.push(t,r[t]);return new Dr(e)};function Xy(r,e,t){for(let n=0;;n++){if(n==r.childCount||n==e.childCount)return r.childCount==e.childCount?null:t;let i=r.child(n),a=e.child(n);if(i==a){t+=i.nodeSize;continue}if(!i.sameMarkup(a))return t;if(i.isText&&i.text!=a.text){for(let o=0;i.text[o]==a.text[o];o++)t++;return t}if(i.content.size||a.content.size){let o=Xy(i.content,a.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function Zy(r,e,t,n){for(let i=r.childCount,a=e.childCount;;){if(i==0||a==0)return i==a?null:{a:t,b:n};let o=r.child(--i),s=e.child(--a),l=o.nodeSize;if(o==s){t-=l,n-=l;continue}if(!o.sameMarkup(s))return{a:t,b:n};if(o.isText&&o.text!=s.text){let f=0,p=Math.min(o.text.length,s.text.length);for(;f<p&&o.text[o.text.length-f-1]==s.text[s.text.length-f-1];)f++,t--,n--;return{a:t,b:n}}if(o.content.size||s.content.size){let f=Zy(o.content,s.content,t-1,n-1);if(f)return f}t-=l,n-=l}}class De{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,i=0,a){for(let o=0,s=0;s<t;o++){let l=this.content[o],f=s+l.nodeSize;if(f>e&&n(l,i+s,a||null,o)!==!1&&l.content.size){let p=s+1;l.nodesBetween(Math.max(0,e-p),Math.min(l.content.size,t-p),n,i+p)}s=f}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,i){let a="",o=!0;return this.nodesBetween(e,t,(s,l)=>{let f=s.isText?s.text.slice(Math.max(e,l)-l,t-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&f||s.isTextblock)&&n&&(o?o=!1:a+=n),a+=f},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,i=this.content.slice(),a=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),a=1);a<e.content.length;a++)i.push(e.content[a]);return new De(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let n=[],i=0;if(t>e)for(let a=0,o=0;o<t;a++){let s=this.content[a],l=o+s.nodeSize;l>e&&((o<e||l>t)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),i+=s.nodeSize),o=l}return new De(n,i)}cutByIndex(e,t){return e==t?De.empty:e==0&&t==this.content.length?this:new De(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let i=this.content.slice(),a=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new De(i,a)}addToStart(e){return new De([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new De(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))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(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let i=this.content[t];e(i,n,t),n+=i.nodeSize}}findDiffStart(e,t=0){return Xy(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return Zy(this,e,t,n)}findIndex(e){if(e==0)return Ll(0,e);if(e==this.size)return Ll(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let i=this.child(t),a=n+i.nodeSize;if(a>=e)return a==e?Ll(t+1,a):Ll(t,n);n=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return De.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new De(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return De.empty;let t,n=0;for(let i=0;i<e.length;i++){let a=e[i];n+=a.nodeSize,i&&a.isText&&e[i-1].sameMarkup(a)?(t||(t=e.slice(0,i)),t[t.length-1]=a.withText(t[t.length-1].text+a.text)):t&&t.push(a)}return new De(t||e,n)}static from(e){if(!e)return De.empty;if(e instanceof De)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new De([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}De.empty=new De([],0);const Af={index:0,offset:0};function Ll(r,e){return Af.index=r,Af.offset=e,Af}function nu(r,e){if(r===e)return!0;if(!(r&&typeof r=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(r);if(Array.isArray(e)!=t)return!1;if(t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!nu(r[n],e[n]))return!1}else{for(let n in r)if(!(n in e)||!nu(r[n],e[n]))return!1;for(let n in e)if(!(n in r))return!1}return!0}let Bt=class md{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let i=0;i<e.length;i++){let a=e[i];if(this.eq(a))return e;if(this.type.excludes(a.type))t||(t=e.slice(0,i));else{if(a.type.excludes(this.type))return e;!n&&a.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(a)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&nu(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);let i=n.create(t.attrs);return n.checkAttrs(i.attrs),i}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return md.none;if(e instanceof md)return[e];let t=e.slice();return t.sort((n,i)=>n.type.rank-i.type.rank),t}};Bt.none=[];class iu extends Error{}class $e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=eb(this.content,e+this.openStart,t);return n&&new $e(n,this.openStart,this.openEnd)}removeBetween(e,t){return new $e(Qy(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return $e.empty;let n=t.openStart||0,i=t.openEnd||0;if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new $e(De.fromJSON(e,t.content),n,i)}static maxOpen(e,t=!0){let n=0,i=0;for(let a=e.firstChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.firstChild)n++;for(let a=e.lastChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.lastChild)i++;return new $e(e,n,i)}}$e.empty=new $e(De.empty,0,0);function Qy(r,e,t){let{index:n,offset:i}=r.findIndex(e),a=r.maybeChild(n),{index:o,offset:s}=r.findIndex(t);if(i==e||a.isText){if(s!=t&&!r.child(o).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(t))}if(n!=o)throw new RangeError("Removing non-flat range");return r.replaceChild(n,a.copy(Qy(a.content,e-i-1,t-i-1)))}function eb(r,e,t,n){let{index:i,offset:a}=r.findIndex(e),o=r.maybeChild(i);if(a==e||o.isText)return n&&!n.canReplace(i,i,t)?null:r.cut(0,e).append(t).append(r.cut(e));let s=eb(o.content,e-a-1,t,o);return s&&r.replaceChild(i,o.copy(s))}function eQ(r,e,t){if(t.openStart>r.depth)throw new iu("Inserted content deeper than insertion position");if(r.depth-t.openStart!=e.depth-t.openEnd)throw new iu("Inconsistent open depths");return tb(r,e,t,0)}function tb(r,e,t,n){let i=r.index(n),a=r.node(n);if(i==e.index(n)&&n<r.depth-t.openStart){let o=tb(r,e,t,n+1);return a.copy(a.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&r.depth==n&&e.depth==n){let o=r.parent,s=o.content;return _a(o,s.cut(0,r.parentOffset).append(t.content).append(s.cut(e.parentOffset)))}else{let{start:o,end:s}=tQ(t,r);return _a(a,nb(r,o,s,e,n))}else return _a(a,au(r,e,n))}function rb(r,e){if(!e.type.compatibleContent(r.type))throw new iu("Cannot join "+e.type.name+" onto "+r.type.name)}function gd(r,e,t){let n=r.node(t);return rb(n,e.node(t)),n}function Ha(r,e){let t=e.length-1;t>=0&&r.isText&&r.sameMarkup(e[t])?e[t]=r.withText(e[t].text+r.text):e.push(r)}function Ts(r,e,t,n){let i=(e||r).node(t),a=0,o=e?e.index(t):i.childCount;r&&(a=r.index(t),r.depth>t?a++:r.textOffset&&(Ha(r.nodeAfter,n),a++));for(let s=a;s<o;s++)Ha(i.child(s),n);e&&e.depth==t&&e.textOffset&&Ha(e.nodeBefore,n)}function _a(r,e){return r.type.checkContent(e),r.copy(e)}function nb(r,e,t,n,i){let a=r.depth>i&&gd(r,e,i+1),o=n.depth>i&&gd(t,n,i+1),s=[];return Ts(null,r,i,s),a&&o&&e.index(i)==t.index(i)?(rb(a,o),Ha(_a(a,nb(r,e,t,n,i+1)),s)):(a&&Ha(_a(a,au(r,e,i+1)),s),Ts(e,t,i,s),o&&Ha(_a(o,au(t,n,i+1)),s)),Ts(n,null,i,s),new De(s)}function au(r,e,t){let n=[];if(Ts(null,r,t,n),r.depth>t){let i=gd(r,e,t+1);Ha(_a(i,au(r,e,t+1)),n)}return Ts(e,null,t,n),new De(n)}function tQ(r,e){let t=e.depth-r.openStart,i=e.node(t).copy(r.content);for(let a=t-1;a>=0;a--)i=e.node(a).copy(De.from(i));return{start:i.resolveNoCache(r.openStart+t),end:i.resolveNoCache(i.content.size-r.openEnd-t)}}class Os{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],i=e.child(t);return n?e.child(t).cut(n):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let a=0;a<e;a++)i+=n.child(a).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Bt.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){let s=n;n=i,i=s}let a=n.marks;for(var o=0;o<a.length;o++)a[o].type.spec.inclusive===!1&&(!i||!a[o].isInSet(i.marks))&&(a=a[o--].removeFromSet(a));return a}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,i=e.parent.maybeChild(e.index());for(var a=0;a<n.length;a++)n[a].type.spec.inclusive===!1&&(!i||!n[a].isInSet(i.marks))&&(n=n[a--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new ou(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],i=0,a=t;for(let o=e;;){let{index:s,offset:l}=o.content.findIndex(a),f=a-l;if(n.push(o,s,i+l),!f||(o=o.child(s),o.isText))break;a=f-1,i+=l+1}return new Os(t,n,a)}static resolveCached(e,t){let n=Sv.get(e);if(n)for(let a=0;a<n.elts.length;a++){let o=n.elts[a];if(o.pos==t)return o}else Sv.set(e,n=new rQ);let i=n.elts[n.i]=Os.resolve(e,t);return n.i=(n.i+1)%nQ,i}}class rQ{constructor(){this.elts=[],this.i=0}}const nQ=12,Sv=new WeakMap;class ou{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}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 iQ=Object.create(null);let na=class yd{constructor(e,t,n,i=Bt.none){this.type=e,this.attrs=t,this.marks=i,this.content=n||De.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,i=0){this.content.nodesBetween(e,t,n,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,i){return this.content.textBetween(e,t,n,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&nu(this.attrs,t||e.defaultAttrs||iQ)&&Bt.sameSet(this.marks,n||Bt.none)}copy(e=null){return e==this.content?this:new yd(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new yd(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return $e.empty;let i=this.resolve(e),a=this.resolve(t),o=n?0:i.sharedDepth(t),s=i.start(o),f=i.node(o).content.cut(i.pos-s,a.pos-s);return new $e(f,i.depth-o,a.depth-o)}replace(e,t,n){return eQ(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let i=this.content.child(t-1);return{node:i,index:t-1,offset:n-i.nodeSize}}resolve(e){return Os.resolveCached(this,e)}resolveNoCache(e){return Os.resolve(this,e)}rangeHasMark(e,t,n){let i=!1;return t>e&&this.nodesBetween(e,t,a=>(n.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ib(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=De.empty,i=0,a=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,i,a),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let l=i;l<a;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(e).matchType(n),o=a&&a.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Bt.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Bt.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let i=De.fromJSON(e,t.content),a=e.nodeType(t.type).create(t.attrs,i,n);return a.type.checkAttrs(a.attrs),a}};na.prototype.text=void 0;class su extends na{constructor(e,t,n,i){if(super(e,t,null,i),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ib(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new su(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new su(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ib(r,e){for(let t=r.length-1;t>=0;t--)e=r[t].type.name+"("+e+")";return e}class $a{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new aQ(e,t);if(n.next==null)return $a.empty;let i=ab(n);n.next&&n.err("Unexpected trailing text");let a=dQ(fQ(i));return hQ(a,n),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let i=this;for(let a=t;i&&a<n;a++)i=i.matchType(e.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let i=[this];function a(o,s){let l=o.matchFragment(e,n);if(l&&(!t||l.validEnd))return De.from(s.map(f=>f.createAndFill()));for(let f=0;f<o.next.length;f++){let{type:p,next:b}=o.next[f];if(!(p.isText||p.hasRequiredAttrs())&&i.indexOf(b)==-1){i.push(b);let T=a(b,s.concat(p));if(T)return T}}return null}return a(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let i=n.shift(),a=i.match;if(a.matchType(e)){let o=[];for(let s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<a.next.length;o++){let{type:s,next:l}=a.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in t)&&(!i.type||l.validEnd)&&(n.push({match:s.contentMatch,type:s,via:i}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let i=0;i<n.next.length;i++)e.indexOf(n.next[i].next)==-1&&t(n.next[i].next)}return t(this),e.map((n,i)=>{let a=i+(n.validEnd?"*":" ")+" ";for(let o=0;o<n.next.length;o++)a+=(o?", ":"")+n.next[o].type.name+"->"+e.indexOf(n.next[o].next);return a}).join(`
1
+ import{as as JZ,at as YZ,j as Tv}from"./app.js";import{e as Lo,r as ko}from"./handsontable-PxYdjN8c.js";import{k as XZ,j as ZZ,g as QZ}from"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function Dr(r){this.content=r}Dr.prototype={constructor:Dr,find:function(r){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===r)return e;return-1},get:function(r){var e=this.find(r);return e==-1?void 0:this.content[e+1]},update:function(r,e,t){var n=t&&t!=r?this.remove(t):this,i=n.find(r),a=n.content.slice();return i==-1?a.push(t||r,e):(a[i+1]=e,t&&(a[i]=t)),new Dr(a)},remove:function(r){var e=this.find(r);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Dr(t)},addToStart:function(r,e){return new Dr([r,e].concat(this.remove(r).content))},addToEnd:function(r,e){var t=this.remove(r).content.slice();return t.push(r,e),new Dr(t)},addBefore:function(r,e,t){var n=this.remove(e),i=n.content.slice(),a=n.find(r);return i.splice(a==-1?i.length:a,0,e,t),new Dr(i)},forEach:function(r){for(var e=0;e<this.content.length;e+=2)r(this.content[e],this.content[e+1])},prepend:function(r){return r=Dr.from(r),r.size?new Dr(r.content.concat(this.subtract(r).content)):this},append:function(r){return r=Dr.from(r),r.size?new Dr(this.subtract(r).content.concat(r.content)):this},subtract:function(r){var e=this;r=Dr.from(r);for(var t=0;t<r.content.length;t+=2)e=e.remove(r.content[t]);return e},toObject:function(){var r={};return this.forEach(function(e,t){r[e]=t}),r},get size(){return this.content.length>>1}};Dr.from=function(r){if(r instanceof Dr)return r;var e=[];if(r)for(var t in r)e.push(t,r[t]);return new Dr(e)};function Xy(r,e,t){for(let n=0;;n++){if(n==r.childCount||n==e.childCount)return r.childCount==e.childCount?null:t;let i=r.child(n),a=e.child(n);if(i==a){t+=i.nodeSize;continue}if(!i.sameMarkup(a))return t;if(i.isText&&i.text!=a.text){for(let o=0;i.text[o]==a.text[o];o++)t++;return t}if(i.content.size||a.content.size){let o=Xy(i.content,a.content,t+1);if(o!=null)return o}t+=i.nodeSize}}function Zy(r,e,t,n){for(let i=r.childCount,a=e.childCount;;){if(i==0||a==0)return i==a?null:{a:t,b:n};let o=r.child(--i),s=e.child(--a),l=o.nodeSize;if(o==s){t-=l,n-=l;continue}if(!o.sameMarkup(s))return{a:t,b:n};if(o.isText&&o.text!=s.text){let f=0,p=Math.min(o.text.length,s.text.length);for(;f<p&&o.text[o.text.length-f-1]==s.text[s.text.length-f-1];)f++,t--,n--;return{a:t,b:n}}if(o.content.size||s.content.size){let f=Zy(o.content,s.content,t-1,n-1);if(f)return f}t-=l,n-=l}}class De{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n,i=0,a){for(let o=0,s=0;s<t;o++){let l=this.content[o],f=s+l.nodeSize;if(f>e&&n(l,i+s,a||null,o)!==!1&&l.content.size){let p=s+1;l.nodesBetween(Math.max(0,e-p),Math.min(l.content.size,t-p),n,i+p)}s=f}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,i){let a="",o=!0;return this.nodesBetween(e,t,(s,l)=>{let f=s.isText?s.text.slice(Math.max(e,l)-l,t-l):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&f||s.isTextblock)&&n&&(o?o=!1:a+=n),a+=f},0),a}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,i=this.content.slice(),a=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),a=1);a<e.content.length;a++)i.push(e.content[a]);return new De(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let n=[],i=0;if(t>e)for(let a=0,o=0;o<t;a++){let s=this.content[a],l=o+s.nodeSize;l>e&&((o<e||l>t)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),n.push(s),i+=s.nodeSize),o=l}return new De(n,i)}cutByIndex(e,t){return e==t?De.empty:e==0&&t==this.content.length?this:new De(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let i=this.content.slice(),a=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new De(i,a)}addToStart(e){return new De([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new De(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))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(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let i=this.content[t];e(i,n,t),n+=i.nodeSize}}findDiffStart(e,t=0){return Xy(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return Zy(this,e,t,n)}findIndex(e){if(e==0)return Ll(0,e);if(e==this.size)return Ll(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let i=this.child(t),a=n+i.nodeSize;if(a>=e)return a==e?Ll(t+1,a):Ll(t,n);n=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return De.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new De(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return De.empty;let t,n=0;for(let i=0;i<e.length;i++){let a=e[i];n+=a.nodeSize,i&&a.isText&&e[i-1].sameMarkup(a)?(t||(t=e.slice(0,i)),t[t.length-1]=a.withText(t[t.length-1].text+a.text)):t&&t.push(a)}return new De(t||e,n)}static from(e){if(!e)return De.empty;if(e instanceof De)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new De([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}De.empty=new De([],0);const Af={index:0,offset:0};function Ll(r,e){return Af.index=r,Af.offset=e,Af}function nu(r,e){if(r===e)return!0;if(!(r&&typeof r=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(r);if(Array.isArray(e)!=t)return!1;if(t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!nu(r[n],e[n]))return!1}else{for(let n in r)if(!(n in e)||!nu(r[n],e[n]))return!1;for(let n in e)if(!(n in r))return!1}return!0}let Bt=class md{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let i=0;i<e.length;i++){let a=e[i];if(this.eq(a))return e;if(this.type.excludes(a.type))t||(t=e.slice(0,i));else{if(a.type.excludes(this.type))return e;!n&&a.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(a)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&nu(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError(`There is no mark type ${t.type} in this schema`);let i=n.create(t.attrs);return n.checkAttrs(i.attrs),i}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return md.none;if(e instanceof md)return[e];let t=e.slice();return t.sort((n,i)=>n.type.rank-i.type.rank),t}};Bt.none=[];class iu extends Error{}class $e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=eb(this.content,e+this.openStart,t);return n&&new $e(n,this.openStart,this.openEnd)}removeBetween(e,t){return new $e(Qy(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return $e.empty;let n=t.openStart||0,i=t.openEnd||0;if(typeof n!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new $e(De.fromJSON(e,t.content),n,i)}static maxOpen(e,t=!0){let n=0,i=0;for(let a=e.firstChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.firstChild)n++;for(let a=e.lastChild;a&&!a.isLeaf&&(t||!a.type.spec.isolating);a=a.lastChild)i++;return new $e(e,n,i)}}$e.empty=new $e(De.empty,0,0);function Qy(r,e,t){let{index:n,offset:i}=r.findIndex(e),a=r.maybeChild(n),{index:o,offset:s}=r.findIndex(t);if(i==e||a.isText){if(s!=t&&!r.child(o).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(t))}if(n!=o)throw new RangeError("Removing non-flat range");return r.replaceChild(n,a.copy(Qy(a.content,e-i-1,t-i-1)))}function eb(r,e,t,n){let{index:i,offset:a}=r.findIndex(e),o=r.maybeChild(i);if(a==e||o.isText)return n&&!n.canReplace(i,i,t)?null:r.cut(0,e).append(t).append(r.cut(e));let s=eb(o.content,e-a-1,t,o);return s&&r.replaceChild(i,o.copy(s))}function eQ(r,e,t){if(t.openStart>r.depth)throw new iu("Inserted content deeper than insertion position");if(r.depth-t.openStart!=e.depth-t.openEnd)throw new iu("Inconsistent open depths");return tb(r,e,t,0)}function tb(r,e,t,n){let i=r.index(n),a=r.node(n);if(i==e.index(n)&&n<r.depth-t.openStart){let o=tb(r,e,t,n+1);return a.copy(a.content.replaceChild(i,o))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&r.depth==n&&e.depth==n){let o=r.parent,s=o.content;return _a(o,s.cut(0,r.parentOffset).append(t.content).append(s.cut(e.parentOffset)))}else{let{start:o,end:s}=tQ(t,r);return _a(a,nb(r,o,s,e,n))}else return _a(a,au(r,e,n))}function rb(r,e){if(!e.type.compatibleContent(r.type))throw new iu("Cannot join "+e.type.name+" onto "+r.type.name)}function gd(r,e,t){let n=r.node(t);return rb(n,e.node(t)),n}function Ha(r,e){let t=e.length-1;t>=0&&r.isText&&r.sameMarkup(e[t])?e[t]=r.withText(e[t].text+r.text):e.push(r)}function Ts(r,e,t,n){let i=(e||r).node(t),a=0,o=e?e.index(t):i.childCount;r&&(a=r.index(t),r.depth>t?a++:r.textOffset&&(Ha(r.nodeAfter,n),a++));for(let s=a;s<o;s++)Ha(i.child(s),n);e&&e.depth==t&&e.textOffset&&Ha(e.nodeBefore,n)}function _a(r,e){return r.type.checkContent(e),r.copy(e)}function nb(r,e,t,n,i){let a=r.depth>i&&gd(r,e,i+1),o=n.depth>i&&gd(t,n,i+1),s=[];return Ts(null,r,i,s),a&&o&&e.index(i)==t.index(i)?(rb(a,o),Ha(_a(a,nb(r,e,t,n,i+1)),s)):(a&&Ha(_a(a,au(r,e,i+1)),s),Ts(e,t,i,s),o&&Ha(_a(o,au(t,n,i+1)),s)),Ts(n,null,i,s),new De(s)}function au(r,e,t){let n=[];if(Ts(null,r,t,n),r.depth>t){let i=gd(r,e,t+1);Ha(_a(i,au(r,e,t+1)),n)}return Ts(e,null,t,n),new De(n)}function tQ(r,e){let t=e.depth-r.openStart,i=e.node(t).copy(r.content);for(let a=t-1;a>=0;a--)i=e.node(a).copy(De.from(i));return{start:i.resolveNoCache(r.openStart+t),end:i.resolveNoCache(i.content.size-r.openEnd-t)}}class Os{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],i=e.child(t);return n?e.child(t).cut(n):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let a=0;a<e;a++)i+=n.child(a).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Bt.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){let s=n;n=i,i=s}let a=n.marks;for(var o=0;o<a.length;o++)a[o].type.spec.inclusive===!1&&(!i||!a[o].isInSet(i.marks))&&(a=a[o--].removeFromSet(a));return a}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,i=e.parent.maybeChild(e.index());for(var a=0;a<n.length;a++)n[a].type.spec.inclusive===!1&&(!i||!n[a].isInSet(i.marks))&&(n=n[a--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new ou(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],i=0,a=t;for(let o=e;;){let{index:s,offset:l}=o.content.findIndex(a),f=a-l;if(n.push(o,s,i+l),!f||(o=o.child(s),o.isText))break;a=f-1,i+=l+1}return new Os(t,n,a)}static resolveCached(e,t){let n=Sv.get(e);if(n)for(let a=0;a<n.elts.length;a++){let o=n.elts[a];if(o.pos==t)return o}else Sv.set(e,n=new rQ);let i=n.elts[n.i]=Os.resolve(e,t);return n.i=(n.i+1)%nQ,i}}class rQ{constructor(){this.elts=[],this.i=0}}const nQ=12,Sv=new WeakMap;class ou{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}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 iQ=Object.create(null);let na=class yd{constructor(e,t,n,i=Bt.none){this.type=e,this.attrs=t,this.marks=i,this.content=n||De.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,i=0){this.content.nodesBetween(e,t,n,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,i){return this.content.textBetween(e,t,n,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&nu(this.attrs,t||e.defaultAttrs||iQ)&&Bt.sameSet(this.marks,n||Bt.none)}copy(e=null){return e==this.content?this:new yd(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new yd(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return $e.empty;let i=this.resolve(e),a=this.resolve(t),o=n?0:i.sharedDepth(t),s=i.start(o),f=i.node(o).content.cut(i.pos-s,a.pos-s);return new $e(f,i.depth-o,a.depth-o)}replace(e,t,n){return eQ(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let i=this.content.child(t-1);return{node:i,index:t-1,offset:n-i.nodeSize}}resolve(e){return Os.resolveCached(this,e)}resolveNoCache(e){return Os.resolve(this,e)}rangeHasMark(e,t,n){let i=!1;return t>e&&this.nodesBetween(e,t,a=>(n.isInSet(a.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ib(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=De.empty,i=0,a=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,i,a),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let l=i;l<a;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;let a=this.contentMatchAt(e).matchType(n),o=a&&a.matchFragment(this.content,t);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Bt.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Bt.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let i=De.fromJSON(e,t.content),a=e.nodeType(t.type).create(t.attrs,i,n);return a.type.checkAttrs(a.attrs),a}};na.prototype.text=void 0;class su extends na{constructor(e,t,n,i){if(super(e,t,null,i),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ib(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new su(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new su(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ib(r,e){for(let t=r.length-1;t>=0;t--)e=r[t].type.name+"("+e+")";return e}class $a{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new aQ(e,t);if(n.next==null)return $a.empty;let i=ab(n);n.next&&n.err("Unexpected trailing text");let a=dQ(fQ(i));return hQ(a,n),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let i=this;for(let a=t;i&&a<n;a++)i=i.matchType(e.child(a).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let i=[this];function a(o,s){let l=o.matchFragment(e,n);if(l&&(!t||l.validEnd))return De.from(s.map(f=>f.createAndFill()));for(let f=0;f<o.next.length;f++){let{type:p,next:b}=o.next[f];if(!(p.isText||p.hasRequiredAttrs())&&i.indexOf(b)==-1){i.push(b);let T=a(b,s.concat(p));if(T)return T}}return null}return a(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let i=n.shift(),a=i.match;if(a.matchType(e)){let o=[];for(let s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<a.next.length;o++){let{type:s,next:l}=a.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in t)&&(!i.type||l.validEnd)&&(n.push({match:s.contentMatch,type:s,via:i}),t[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let i=0;i<n.next.length;i++)e.indexOf(n.next[i].next)==-1&&t(n.next[i].next)}return t(this),e.map((n,i)=>{let a=i+(n.validEnd?"*":" ")+" ";for(let o=0;o<n.next.length;o++)a+=(o?", ":"")+n.next[o].type.name+"->"+e.indexOf(n.next[o].next);return a}).join(`
2
2
  `)}}$a.empty=new $a(!0);class aQ{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.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(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function ab(r){let e=[];do e.push(oQ(r));while(r.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function oQ(r){let e=[];do e.push(sQ(r));while(r.next&&r.next!=")"&&r.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function sQ(r){let e=cQ(r);for(;;)if(r.eat("+"))e={type:"plus",expr:e};else if(r.eat("*"))e={type:"star",expr:e};else if(r.eat("?"))e={type:"opt",expr:e};else if(r.eat("{"))e=lQ(r,e);else break;return e}function xv(r){/\D/.test(r.next)&&r.err("Expected number, got '"+r.next+"'");let e=Number(r.next);return r.pos++,e}function lQ(r,e){let t=xv(r),n=t;return r.eat(",")&&(r.next!="}"?n=xv(r):n=-1),r.eat("}")||r.err("Unclosed braced range"),{type:"range",min:t,max:n,expr:e}}function uQ(r,e){let t=r.nodeTypes,n=t[e];if(n)return[n];let i=[];for(let a in t){let o=t[a];o.isInGroup(e)&&i.push(o)}return i.length==0&&r.err("No node type or group '"+e+"' found"),i}function cQ(r){if(r.eat("(")){let e=ab(r);return r.eat(")")||r.err("Missing closing paren"),e}else if(/\W/.test(r.next))r.err("Unexpected token '"+r.next+"'");else{let e=uQ(r,r.next).map(t=>(r.inline==null?r.inline=t.isInline:r.inline!=t.isInline&&r.err("Mixing inline and block content"),{type:"name",value:t}));return r.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function fQ(r){let e=[[]];return i(a(r,0),t()),e;function t(){return e.push([])-1}function n(o,s,l){let f={term:l,to:s};return e[o].push(f),f}function i(o,s){o.forEach(l=>l.to=s)}function a(o,s){if(o.type=="choice")return o.exprs.reduce((l,f)=>l.concat(a(f,s)),[]);if(o.type=="seq")for(let l=0;;l++){let f=a(o.exprs[l],s);if(l==o.exprs.length-1)return f;i(f,s=t())}else if(o.type=="star"){let l=t();return n(s,l),i(a(o.expr,l),l),[n(l)]}else if(o.type=="plus"){let l=t();return i(a(o.expr,s),l),i(a(o.expr,l),l),[n(l)]}else{if(o.type=="opt")return[n(s)].concat(a(o.expr,s));if(o.type=="range"){let l=s;for(let f=0;f<o.min;f++){let p=t();i(a(o.expr,l),p),l=p}if(o.max==-1)i(a(o.expr,l),l);else for(let f=o.min;f<o.max;f++){let p=t();n(l,p),i(a(o.expr,l),p),l=p}return[n(l)]}else{if(o.type=="name")return[n(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function ob(r,e){return e-r}function Ev(r,e){let t=[];return n(e),t.sort(ob);function n(i){let a=r[i];if(a.length==1&&!a[0].term)return n(a[0].to);t.push(i);for(let o=0;o<a.length;o++){let{term:s,to:l}=a[o];!s&&t.indexOf(l)==-1&&n(l)}}}function dQ(r){let e=Object.create(null);return t(Ev(r,0));function t(n){let i=[];n.forEach(o=>{r[o].forEach(({term:s,to:l})=>{if(!s)return;let f;for(let p=0;p<i.length;p++)i[p][0]==s&&(f=i[p][1]);Ev(r,l).forEach(p=>{f||i.push([s,f=[]]),f.indexOf(p)==-1&&f.push(p)})})});let a=e[n.join(",")]=new $a(n.indexOf(r.length-1)>-1);for(let o=0;o<i.length;o++){let s=i[o][1].sort(ob);a.next.push({type:i[o][0],next:e[s.join(",")]||t(s)})}return a}}function hQ(r,e){for(let t=0,n=[r];t<n.length;t++){let i=n[t],a=!i.validEnd,o=[];for(let s=0;s<i.next.length;s++){let{type:l,next:f}=i.next[s];o.push(l.name),a&&!(l.isText||l.hasRequiredAttrs())&&(a=!1),n.indexOf(f)==-1&&n.push(f)}a&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function sb(r){let e=Object.create(null);for(let t in r){let n=r[t];if(!n.hasDefault)return null;e[t]=n.default}return e}function lb(r,e){let t=Object.create(null);for(let n in r){let i=e&&e[n];if(i===void 0){let a=r[n];if(a.hasDefault)i=a.default;else throw new RangeError("No value supplied for attribute "+n)}t[n]=i}return t}function ub(r,e,t,n){for(let i in e)if(!(i in r))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${i}`);for(let i in r){let a=r[i];a.validate&&a.validate(e[i])}}function cb(r,e){let t=Object.create(null);if(e)for(let n in e)t[n]=new vQ(r,n,e[n]);return t}let Mv=class fb{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=cb(e,n.attrs),this.defaultAttrs=sb(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$a.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:lb(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new na(this,this.computeAttrs(e),De.from(t),Bt.setFrom(n))}createChecked(e=null,t,n){return t=De.from(t),this.checkContent(t),new na(this,this.computeAttrs(e),t,Bt.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=De.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),a=i&&i.fillBefore(De.empty,!0);return a?new na(this,e,t.append(a),Bt.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){ub(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:Bt.none:e}static compile(e,t){let n=Object.create(null);e.forEach((a,o)=>n[a]=new fb(a,t,o));let i=t.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let a in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function pQ(r,e,t){let n=t.split("|");return i=>{let a=i===null?"null":typeof i;if(n.indexOf(a)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${r}, got ${a}`)}}class vQ{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?pQ(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class Lu{constructor(e,t,n,i){this.name=e,this.rank=t,this.schema=n,this.spec=i,this.attrs=cb(e,i.attrs),this.excluded=null;let a=sb(this.attrs);this.instance=a?new Bt(this,a):null}create(e=null){return!e&&this.instance?this.instance:new Bt(this,lb(this.attrs,e))}static compile(e,t){let n=Object.create(null),i=0;return e.forEach((a,o)=>n[a]=new Lu(a,i++,t,o)),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){ub(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class db{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=Dr.from(e.nodes),t.marks=Dr.from(e.marks||{}),this.nodes=Mv.compile(this.spec.nodes,this),this.marks=Lu.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 a=this.nodes[i],o=a.spec.content||"",s=a.spec.marks;if(a.contentMatch=n[o]||(n[o]=$a.parse(o,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet=s=="_"?null:s?Av(this,s.split(" ")):s==""||!a.inlineContent?[]:null}for(let i in this.marks){let a=this.marks[i],o=a.spec.excludes;a.excluded=o==null?[a]:o==""?[]:Av(this,o.split(" "))}this.nodeFromJSON=i=>na.fromJSON(this,i),this.markFromJSON=i=>Bt.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Mv){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(t,n,i)}text(e,t){let n=this.nodes.text;return new su(n,n.defaultAttrs,e,Bt.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Av(r,e){let t=[];for(let n=0;n<e.length;n++){let i=e[n],a=r.marks[i],o=a;if(a)t.push(a);else for(let s in r.marks){let l=r.marks[s];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&t.push(o=l)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return t}function mQ(r){return r.tag!=null}function gQ(r){return r.style!=null}class Wa{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(i=>{if(mQ(i))this.tags.push(i);else if(gQ(i)){let a=/[^=]*/.exec(i.style)[0];n.indexOf(a)<0&&n.push(a),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let a=e.nodes[i.node];return a.contentMatch.matchType(a)})}parse(e,t={}){let n=new Nv(this,t,!1);return n.addAll(e,Bt.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Nv(this,t,!0);return n.addAll(e,Bt.none,t.from,t.to),$e.maxOpen(n.finish())}matchTag(e,t,n){for(let i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){let a=this.tags[i];if(kQ(e,a.tag)&&(a.namespace===void 0||e.namespaceURI==a.namespace)&&(!a.context||t.matchesContext(a.context))){if(a.getAttrs){let o=a.getAttrs(e);if(o===!1)continue;a.attrs=o||void 0}return a}}}matchStyle(e,t,n,i){for(let a=i?this.styles.indexOf(i)+1:0;a<this.styles.length;a++){let o=this.styles[a],s=o.style;if(!(s.indexOf(e)!=0||o.context&&!n.matchesContext(o.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=t))){if(o.getAttrs){let l=o.getAttrs(t);if(l===!1)continue;o.attrs=l||void 0}return o}}}static schemaRules(e){let t=[];function n(i){let a=i.priority==null?50:i.priority,o=0;for(;o<t.length;o++){let s=t[o];if((s.priority==null?50:s.priority)<a)break}t.splice(o,0,i)}for(let i in e.marks){let a=e.marks[i].spec.parseDOM;a&&a.forEach(o=>{n(o=Dv(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let a=e.nodes[i].spec.parseDOM;a&&a.forEach(o=>{n(o=Dv(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Wa(e,Wa.schemaRules(e)))}}const hb={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},yQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},pb={ol:!0,ul:!0},Ns=1,bd=2,Ss=4;function Ov(r,e,t){return e!=null?(e?Ns:0)|(e==="full"?bd:0):r&&r.whitespace=="pre"?Ns|bd:t&~Ss}class Rl{constructor(e,t,n,i,a,o){this.type=e,this.attrs=t,this.marks=n,this.solid=i,this.options=o,this.content=[],this.activeMarks=Bt.none,this.match=a||(o&Ss?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(De.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let n=this.type.contentMatch,i;return(i=n.findWrapping(e.type))?(this.match=n,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Ns)){let n=this.content[this.content.length-1],i;if(n&&n.isText&&(i=/[ \t\r\n\u000c]+$/.exec(n.text))){let a=n;n.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=a.withText(a.text.slice(0,a.text.length-i[0].length))}}let t=De.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(De.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!hb.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Nv{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let i=t.topNode,a,o=Ov(null,t.preserveWhitespace,0)|(n?Ss:0);i?a=new Rl(i.type,i.attrs,Bt.none,!0,t.topMatch||i.type.contentMatch,o):n?a=new Rl(null,null,Bt.none,!0,null,o):a=new Rl(e.schema.topNodeType,null,Bt.none,!0,null,o),this.nodes=[a],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,i=this.top,a=i.options&bd?"full":this.localPreserveWS||(i.options&Ns)>0,{schema:o}=this.parser;if(a==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(a)if(a==="full")n=n.replace(/\r\n?/g,`
3
3
  `);else if(o.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(o.linebreakReplacement.create())){let s=n.split(/\r?\n|\r/);for(let l=0;l<s.length;l++)l&&this.insertNode(o.linebreakReplacement.create(),t,!0),s[l]&&this.insertNode(o.text(s[l]),t,!/\S/.test(s[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],l=e.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(n=n.slice(1))}n&&this.insertNode(o.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let i=this.localPreserveWS,a=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;pb.hasOwnProperty(o)&&this.parser.normalizeLists&&bQ(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,n));e:if(l?l.ignore:yQ.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let f,p=this.needsBlock;if(hb.hasOwnProperty(o))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),f=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let b=l&&l.skip?t:this.readStyles(e,t);b&&this.addAll(e,b),f&&this.sync(a),this.needsBlock=p}else{let f=this.readStyles(e,t);f&&this.addElementByRule(e,l,f,l.consuming===!1?s:void 0)}this.localPreserveWS=i}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
4
  `),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let a=this.parser.matchedStyles[i],o=n.getPropertyValue(a);if(o)for(let s=void 0;;){let l=this.parser.matchStyle(a,o,this,s);if(!l)break;if(l.ignore)return null;if(l.clearMark?t=t.filter(f=>!l.clearMark(f)):t=t.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)s=l;else break}}return t}addElementByRule(e,t,n,i){let a,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),n,e.nodeName=="BR")||this.leafFallback(e,n);else{let l=this.enter(o,t.attrs||null,n,t.preserveWhitespace);l&&(a=!0,n=l)}else{let l=this.parser.schema.marks[t.mark];n=n.concat(l.create(t.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,n,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,n,!1));else{let l=e;typeof t.contentElement=="string"?l=e.querySelector(t.contentElement):typeof t.contentElement=="function"?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l,n),this.findAround(e,l,!1)}a&&this.sync(s)&&this.open--}addAll(e,t,n,i){let a=n||0;for(let o=n?e.childNodes[n]:e.firstChild,s=i==null?null:e.childNodes[i];o!=s;o=o.nextSibling,++a)this.findAtPoint(e,a),this.addDOM(o,t);this.findAtPoint(e,a)}findPlace(e,t,n){let i,a;for(let o=this.open,s=0;o>=0;o--){let l=this.nodes[o],f=l.findWrapping(e);if(f&&(!i||i.length>f.length+s)&&(i=f,a=l,!f.length))break;if(l.solid){if(n)break;s+=2}}if(!i)return null;this.sync(a);for(let o=0;o<i.length;o++)t=this.enterInner(i[o],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let a=this.textblockFromContext();a&&(t=this.enterInner(a,null,t))}let i=this.findPlace(e,t,n);if(i){this.closeExtra();let a=this.top;a.match&&(a.match=a.match.matchType(e.type));let o=Bt.none;for(let s of i.concat(e.marks))(a.type?a.type.allowsMarkType(s.type):Lv(s.type,e.type))&&(o=s.addToSet(o));return a.content.push(e.mark(o)),!0}return!1}enter(e,t,n,i){let a=this.findPlace(e.create(t),n,!1);return a&&(a=this.enterInner(e,t,n,!0,i)),a}enterInner(e,t,n,i=!1,a){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=Ov(e,a,o.options);o.options&Ss&&o.content.length==0&&(s|=Ss);let l=Bt.none;return n=n.filter(f=>(o.type?o.type.allowsMarkType(f.type):Lv(f.type,e))?(l=f.addToSet(l),!1):!0),this.nodes.push(new Rl(e,t,l,i,null,s)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));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(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Ns)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let i=n.length-1;i>=0;i--)e+=n[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(n?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,i=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),a=-(n?n.depth+1:0)+(i?0:1),o=(s,l)=>{for(;s>=0;s--){let f=t[s];if(f==""){if(s==t.length-1||s==0)continue;for(;l>=a;l--)if(o(s-1,l))return!0;return!1}else{let p=l>0||l==0&&i?this.nodes[l].type:n&&l>=a?n.node(l-a).type:null;if(!p||p.name!=f&&!p.isInGroup(f))return!1;l--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let n=this.parser.schema.nodes[t];if(n.isTextblock&&n.defaultAttrs)return n}}}function bQ(r){for(let e=r.firstChild,t=null;e;e=e.nextSibling){let n=e.nodeType==1?e.nodeName.toLowerCase():null;n&&pb.hasOwnProperty(n)&&t?(t.appendChild(e),e=t):n=="li"?t=e:n&&(t=null)}}function kQ(r,e){return(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,e)}function Dv(r){let e={};for(let t in r)e[t]=r[t];return e}function Lv(r,e){let t=e.schema.nodes;for(let n in t){let i=t[n];if(!i.allowsMarkType(r))continue;let a=[],o=s=>{a.push(s);for(let l=0;l<s.edgeCount;l++){let{type:f,next:p}=s.edge(l);if(f==e||a.indexOf(p)<0&&o(p))return!0}};if(o(i.contentMatch))return!0}}class Xo{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=Of(t).createDocumentFragment());let i=n,a=[];return e.forEach(o=>{if(a.length||o.marks.length){let s=0,l=0;for(;s<a.length&&l<o.marks.length;){let f=o.marks[l];if(!this.marks[f.type.name]){l++;continue}if(!f.eq(a[s][0])||f.type.spec.spanning===!1)break;s++,l++}for(;s<a.length;)i=a.pop()[1];for(;l<o.marks.length;){let f=o.marks[l++],p=this.serializeMark(f,o.isInline,t);p&&(a.push([f,i]),i.appendChild(p.dom),i=p.contentDOM||p.dom)}}i.appendChild(this.serializeNodeInner(o,t))}),n}serializeNodeInner(e,t){let{dom:n,contentDOM:i}=Gl(Of(t),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let a=this.serializeMark(e.marks[i],e.isInline,t);a&&((a.contentDOM||a.dom).appendChild(n),n=a.dom)}return n}serializeMark(e,t,n={}){let i=this.marks[e.type.name];return i&&Gl(Of(n),i(e,t),null,e.attrs)}static renderSpec(e,t,n=null,i){return Gl(e,t,n,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Xo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Rv(e.nodes);return t.text||(t.text=n=>n.text),t}static marksFromSchema(e){return Rv(e.marks)}}function Rv(r){let e={};for(let t in r){let n=r[t].spec.toDOM;n&&(e[t]=n)}return e}function Of(r){return r.document||window.document}const Iv=new WeakMap;function wQ(r){let e=Iv.get(r);return e===void 0&&Iv.set(r,e=CQ(r)),e}function CQ(r){let e=null;function t(n){if(n&&typeof n=="object")if(Array.isArray(n))if(typeof n[0]=="string")e||(e=[]),e.push(n);else for(let i=0;i<n.length;i++)t(n[i]);else for(let i in n)t(n[i])}return t(r),e}function Gl(r,e,t,n){if(typeof e=="string")return{dom:r.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],a;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(n&&(a=wQ(n))&&a.indexOf(e)>-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 o=i.indexOf(" ");o>0&&(t=i.slice(0,o),i=i.slice(o+1));let s,l=t?r.createElementNS(t,i):r.createElement(i),f=e[1],p=1;if(f&&typeof f=="object"&&f.nodeType==null&&!Array.isArray(f)){p=2;for(let b in f)if(f[b]!=null){let T=b.indexOf(" ");T>0?l.setAttributeNS(b.slice(0,T),b.slice(T+1),f[b]):b=="style"&&l.style?l.style.cssText=f[b]:l.setAttribute(b,f[b])}}for(let b=p;b<e.length;b++){let T=e[b];if(T===0){if(b<e.length-1||b>p)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:x,contentDOM:E}=Gl(r,T,t,n);if(l.appendChild(x),E){if(s)throw new RangeError("Multiple content holes");s=E}}}return{dom:l,contentDOM:s}}const vb=65535,mb=Math.pow(2,16);function TQ(r,e){return r+e*mb}function Pv(r){return r&vb}function SQ(r){return(r-(r&vb))/mb}const gb=1,yb=2,Kl=4,bb=8;class kd{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&bb)>0}get deletedBefore(){return(this.delInfo&(gb|Kl))>0}get deletedAfter(){return(this.delInfo&(yb|Kl))>0}get deletedAcross(){return(this.delInfo&Kl)>0}}class un{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&un.empty)return un.empty}recover(e){let t=0,n=Pv(e);if(!this.inverted)for(let i=0;i<n;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[n*3]+t+SQ(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let i=0,a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?i:0);if(l>e)break;let f=this.ranges[s+a],p=this.ranges[s+o],b=l+f;if(e<=b){let T=f?e==l?-1:e==b?1:t:t,x=l+i+(T<0?0:p);if(n)return x;let E=e==(t<0?l:b)?null:TQ(s/3,e-l),P=e==l?yb:e==b?gb:Kl;return(t<0?e!=l:e!=b)&&(P|=bb),new kd(x,P,E)}i+=p-f}return n?e+i:new kd(e+i,0,null)}touches(e,t){let n=0,i=Pv(t),a=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?n:0);if(l>e)break;let f=this.ranges[s+a],p=l+f;if(e<=p&&s==i*3)return!0;n+=this.ranges[s+o]-f}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let i=0,a=0;i<this.ranges.length;i+=3){let o=this.ranges[i],s=o-(this.inverted?a:0),l=o+(this.inverted?0:a),f=this.ranges[i+t],p=this.ranges[i+n];e(s,s+f,l,l+p),a+=p-f}}invert(){return new un(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?un.empty:new un(e<0?[0,-e,0]:[0,0,e])}}un.empty=new un([]);class Ds{constructor(e,t,n=0,i=e?e.length:0){this.mirror=t,this.from=n,this.to=i,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new Ds(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let i=e.getMirror(t);this.appendMap(e._maps[t],i!=null&&i<t?n+i:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e._maps[t].invert(),i!=null&&i>t?n-i-1:void 0)}}invert(){let e=new Ds;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let i=0;for(let a=this.from;a<this.to;a++){let o=this._maps[a],s=o.mapResult(e,t);if(s.recover!=null){let l=this.getMirror(a);if(l!=null&&l>a&&l<this.to){a=l,e=this._maps[l].recover(s.recover);continue}}i|=s.delInfo,e=s.pos}return n?e:new kd(e,i,null)}}const Nf=Object.create(null);class Wr{getMap(){return un.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=Nf[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Nf)throw new RangeError("Duplicate use of step JSON ID "+e);return Nf[e]=t,t.prototype.jsonID=e,t}}class vr{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new vr(e,null)}static fail(e){return new vr(null,e)}static fromReplace(e,t,n,i){try{return vr.ok(e.replace(t,n,i))}catch(a){if(a instanceof iu)return vr.fail(a.message);throw a}}}function ah(r,e,t){let n=[];for(let i=0;i<r.childCount;i++){let a=r.child(i);a.content.size&&(a=a.copy(ah(a.content,e,a))),a.isInline&&(a=e(a,t,i)),n.push(a)}return De.fromArray(n)}class ea extends Wr{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),i=n.node(n.sharedDepth(this.to)),a=new $e(ah(t.content,(o,s)=>!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return vr.fromReplace(e,this.from,this.to,a)}invert(){return new si(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new ea(t.pos,n.pos,this.mark)}merge(e){return e instanceof ea&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ea(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ea(t.from,t.to,e.markFromJSON(t.mark))}}Wr.jsonID("addMark",ea);class si extends Wr{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new $e(ah(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return vr.fromReplace(e,this.from,this.to,n)}invert(){return new ea(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new si(t.pos,n.pos,this.mark)}merge(e){return e instanceof si&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new si(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new si(t.from,t.to,e.markFromJSON(t.mark))}}Wr.jsonID("removeMark",si);class ta extends Wr{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return vr.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return vr.fromReplace(e,this.pos,this.pos+1,new $e(De.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let n=this.mark.addToSet(t.marks);if(n.length==t.marks.length){for(let i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(n))return new ta(this.pos,t.marks[i]);return new ta(this.pos,this.mark)}}return new ja(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ta(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ta(t.pos,e.markFromJSON(t.mark))}}Wr.jsonID("addNodeMark",ta);class ja extends Wr{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return vr.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return vr.fromReplace(e,this.pos,this.pos+1,new $e(De.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new ta(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ja(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ja(t.pos,e.markFromJSON(t.mark))}}Wr.jsonID("removeNodeMark",ja);class Vr extends Wr{constructor(e,t,n,i=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=i}apply(e){return this.structure&&wd(e,this.from,this.to)?vr.fail("Structure replace would overwrite content"):vr.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new un([this.from,this.to-this.from,this.slice.size])}invert(e){return new Vr(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new Vr(t.pos,Math.max(t.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Vr)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?$e.empty:new $e(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Vr(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?$e.empty:new $e(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Vr(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Vr(t.from,t.to,$e.fromJSON(e,t.slice),!!t.structure)}}Wr.jsonID("replace",Vr);class xr extends Wr{constructor(e,t,n,i,a,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=i,this.slice=a,this.insert=o,this.structure=s}apply(e){if(this.structure&&(wd(e,this.from,this.gapFrom)||wd(e,this.gapTo,this.to)))return vr.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return vr.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?vr.fromReplace(e,this.from,this.to,n):vr.fail("Content does not fit in gap")}getMap(){return new un([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new xr(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),a=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||i<t.pos||a>n.pos?null:new xr(t.pos,n.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new xr(t.from,t.to,t.gapFrom,t.gapTo,$e.fromJSON(e,t.slice),t.insert,!!t.structure)}}Wr.jsonID("replaceAround",xr);function wd(r,e,t){let n=r.resolve(e),i=t-e,a=n.depth;for(;i>0&&a>0&&n.indexAfter(a)==n.node(a).childCount;)a--,i--;if(i>0){let o=n.node(a).maybeChild(n.indexAfter(a));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function xQ(r,e,t,n){let i=[],a=[],o,s;r.doc.nodesBetween(e,t,(l,f,p)=>{if(!l.isInline)return;let b=l.marks;if(!n.isInSet(b)&&p.type.allowsMarkType(n.type)){let T=Math.max(f,e),x=Math.min(f+l.nodeSize,t),E=n.addToSet(b);for(let P=0;P<b.length;P++)b[P].isInSet(E)||(o&&o.to==T&&o.mark.eq(b[P])?o.to=x:i.push(o=new si(T,x,b[P])));s&&s.to==T?s.to=x:a.push(s=new ea(T,x,n))}}),i.forEach(l=>r.step(l)),a.forEach(l=>r.step(l))}function EQ(r,e,t,n){let i=[],a=0;r.doc.nodesBetween(e,t,(o,s)=>{if(!o.isInline)return;a++;let l=null;if(n instanceof Lu){let f=o.marks,p;for(;p=n.isInSet(f);)(l||(l=[])).push(p),f=p.removeFromSet(f)}else n?n.isInSet(o.marks)&&(l=[n]):l=o.marks;if(l&&l.length){let f=Math.min(s+o.nodeSize,t);for(let p=0;p<l.length;p++){let b=l[p],T;for(let x=0;x<i.length;x++){let E=i[x];E.step==a-1&&b.eq(i[x].style)&&(T=E)}T?(T.to=f,T.step=a):i.push({style:b,from:Math.max(s,e),to:f,step:a})}}}),i.forEach(o=>r.step(new si(o.from,o.to,o.style)))}function oh(r,e,t,n=t.contentMatch,i=!0){let a=r.doc.nodeAt(e),o=[],s=e+1;for(let l=0;l<a.childCount;l++){let f=a.child(l),p=s+f.nodeSize,b=n.matchType(f.type);if(!b)o.push(new Vr(s,p,$e.empty));else{n=b;for(let T=0;T<f.marks.length;T++)t.allowsMarkType(f.marks[T].type)||r.step(new si(s,p,f.marks[T]));if(i&&f.isText&&t.whitespace!="pre"){let T,x=/\r?\n|\r/g,E;for(;T=x.exec(f.text);)E||(E=new $e(De.from(t.schema.text(" ",t.allowedMarks(f.marks))),0,0)),o.push(new Vr(s+T.index,s+T.index+T[0].length,E))}}s=p}if(!n.validEnd){let l=n.fillBefore(De.empty,!0);r.replace(s,s,new $e(l,0,0))}for(let l=o.length-1;l>=0;l--)r.step(o[l])}function MQ(r,e,t){return(e==0||r.canReplace(e,r.childCount))&&(t==r.childCount||r.canReplace(0,t))}function Ru(r){let t=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let n=r.depth,i=0,a=0;;--n){let o=r.$from.node(n),s=r.$from.index(n)+i,l=r.$to.indexAfter(n)-a;if(n<r.depth&&o.canReplace(s,l,t))return n;if(n==0||o.type.spec.isolating||!MQ(o,s,l))break;s&&(i=1),l<o.childCount&&(a=1)}return null}function AQ(r,e,t){let{$from:n,$to:i,depth:a}=e,o=n.before(a+1),s=i.after(a+1),l=o,f=s,p=De.empty,b=0;for(let E=a,P=!1;E>t;E--)P||n.index(E)>0?(P=!0,p=De.from(n.node(E).copy(p)),b++):l--;let T=De.empty,x=0;for(let E=a,P=!1;E>t;E--)P||i.after(E+1)<i.end(E)?(P=!0,T=De.from(i.node(E).copy(T)),x++):f++;r.step(new xr(l,f,o,s,new $e(p.append(T),b,x),p.size-b,!0))}function OQ(r,e,t=null,n=r){let i=NQ(r,e),a=i&&DQ(n,e);return a?i.map(Bv).concat({type:e,attrs:t}).concat(a.map(Bv)):null}function Bv(r){return{type:r,attrs:null}}function NQ(r,e){let{parent:t,startIndex:n,endIndex:i}=r,a=t.contentMatchAt(n).findWrapping(e);if(!a)return null;let o=a.length?a[0]:e;return t.canReplaceWith(n,i,o)?a:null}function DQ(r,e){let{parent:t,startIndex:n,endIndex:i}=r,a=t.child(n),o=e.contentMatch.findWrapping(a.type);if(!o)return null;let l=(o.length?o[o.length-1]:e).contentMatch;for(let f=n;l&&f<i;f++)l=l.matchType(t.child(f).type);return!l||!l.validEnd?null:o}function LQ(r,e,t){let n=De.empty;for(let o=t.length-1;o>=0;o--){if(n.size){let s=t[o].type.contentMatch.matchFragment(n);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=De.from(t[o].type.create(t[o].attrs,n))}let i=e.start,a=e.end;r.step(new xr(i,a,i,a,new $e(n,0,0),t.length,!0))}function RQ(r,e,t,n,i){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=r.steps.length;r.doc.nodesBetween(e,t,(o,s)=>{let l=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(n,l)&&IQ(r.doc,r.mapping.slice(a).map(s),n)){let f=null;if(n.schema.linebreakReplacement){let x=n.whitespace=="pre",E=!!n.contentMatch.matchType(n.schema.linebreakReplacement);x&&!E?f=!1:!x&&E&&(f=!0)}f===!1&&wb(r,o,s,a),oh(r,r.mapping.slice(a).map(s,1),n,void 0,f===null);let p=r.mapping.slice(a),b=p.map(s,1),T=p.map(s+o.nodeSize,1);return r.step(new xr(b,T,b+1,T-1,new $e(De.from(n.create(l,null,o.marks)),0,0),1,!0)),f===!0&&kb(r,o,s,a),!1}})}function kb(r,e,t,n){e.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let l=r.mapping.slice(n).map(t+1+a+o.index);r.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function wb(r,e,t,n){e.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let o=r.mapping.slice(n).map(t+1+a);r.replaceWith(o,o+1,e.type.schema.text(`
@@ -1 +1 @@
1
- import{j as a,bA as l,bB as i,bC as o}from"./app.js";import{r as c}from"./handsontable-PxYdjN8c.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function m(){return c.useCallback(r=>{const t=r.trim().split(" ");if(t.length===0)return"";if(t.length===1)return t[0].charAt(0).toUpperCase();const n=t[0].charAt(0),s=t[t.length-1].charAt(0);return`${n}${s}`.toUpperCase()},[])}function u({user:e,showEmail:r=!1}){const t=m();return a.jsxs(a.Fragment,{children:[a.jsxs(l,{className:"h-8 w-8 overflow-hidden rounded-full",children:[a.jsx(i,{src:e.avatar,alt:e.login}),a.jsx(o,{className:"rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white",children:t(e.login)})]}),a.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[a.jsx("span",{className:"truncate font-medium",children:e.login}),r&&a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:e.email})]})]})}export{u as UserInfo};
1
+ import{j as a,bB as l,bC as i,bD as o}from"./app.js";import{r as c}from"./handsontable-PxYdjN8c.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function m(){return c.useCallback(r=>{const t=r.trim().split(" ");if(t.length===0)return"";if(t.length===1)return t[0].charAt(0).toUpperCase();const n=t[0].charAt(0),s=t[t.length-1].charAt(0);return`${n}${s}`.toUpperCase()},[])}function u({user:e,showEmail:r=!1}){const t=m();return a.jsxs(a.Fragment,{children:[a.jsxs(l,{className:"h-8 w-8 overflow-hidden rounded-full",children:[a.jsx(i,{src:e.avatar,alt:e.login}),a.jsx(o,{className:"rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white",children:t(e.login)})]}),a.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[a.jsx("span",{className:"truncate font-medium",children:e.login}),r&&a.jsx("span",{className:"text-muted-foreground truncate text-xs",children:e.email})]})]})}export{u as UserInfo};
@@ -1 +1 @@
1
- import{j as e,bD as n,aX as a,aW as l,ah as i,bE as c}from"./app.js";import{UserInfo as m}from"./user-info-gFSwypEN.js";import{r as p}from"./handsontable-PxYdjN8c.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function u(){return p.useCallback(()=>{document.body.style.removeProperty("pointer-events")},[])}function b({user:t,logout:r,logoutBtn:s}){const o=u();return e.jsxs(e.Fragment,{children:[e.jsx(n,{className:"p-0 font-normal",children:e.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:e.jsx(m,{user:t,showEmail:!0})})}),e.jsx(a,{}),e.jsx(l,{asChild:!0,children:e.jsxs(i,{className:"block w-full cursor-pointer",method:"get",href:r,as:"button",onClick:o,children:[e.jsx(c,{className:"mr-2"}),s]})})]})}export{b as UserMenuContent};
1
+ import{j as e,bE as n,aY as a,aX as l,ai as i,bF as c}from"./app.js";import{UserInfo as m}from"./user-info-BTJNUzpi.js";import{r as p}from"./handsontable-PxYdjN8c.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";function u(){return p.useCallback(()=>{document.body.style.removeProperty("pointer-events")},[])}function b({user:t,logout:r,logoutBtn:s}){const o=u();return e.jsxs(e.Fragment,{children:[e.jsx(n,{className:"p-0 font-normal",children:e.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:e.jsx(m,{user:t,showEmail:!0})})}),e.jsx(a,{}),e.jsx(l,{asChild:!0,children:e.jsxs(i,{className:"block w-full cursor-pointer",method:"get",href:r,as:"button",onClick:o,children:[e.jsx(c,{className:"mr-2"}),s]})})]})}export{b as UserMenuContent};
@@ -1 +1 @@
1
- import{u as o,j as t}from"./app.js";import{A as p}from"./app-layout-DM2_7wxW.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";const i=[];function A(){const r=o();return t.jsx(p,{breadcrumbs:i,children:t.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[r.props.title&&t.jsx("div",{className:"text-3xl mb-8",children:r.props.title}),t.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),r.props.text&&t.jsx("div",{dangerouslySetInnerHTML:{__html:r.props.text}})]})})}export{A as default};
1
+ import{u as o,j as t}from"./app.js";import{A as p}from"./app-layout-CbRvDFF3.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-DbPu3ZPM.js";import"./app-sidebar-CQqvkGH0.js";import"./nav-main-DcvkRp44.js";import"./material-icon-BXxpxGAd.js";import"./app-sidebar-header-C8sntqs3.js";import"./breadcrumbs-Df-vVsyM.js";import"./nav-user-PtK5V1sV.js";import"./user-info-BTJNUzpi.js";import"./user-menu-content-DUnYpt8t.js";import"./theme-switcher-Ca0SixmO.js";import"./icon-BTIjB9Wk.js";const i=[];function A(){const r=o();return t.jsx(p,{breadcrumbs:i,children:t.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[r.props.title&&t.jsx("div",{className:"text-3xl mb-8",children:r.props.title}),t.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),r.props.text&&t.jsx("div",{dangerouslySetInnerHTML:{__html:r.props.text}})]})})}export{A as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.5.0-build.199",
4
+ "version": "4.5.0-build.201",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
@@ -1 +0,0 @@
1
- import{u as t,j as o}from"./app.js";import{A as m}from"./app-layout-DM2_7wxW.js";import p from"./add-form-Nn7zuSFW.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";import"./field-renderer-Ddc4u-gC.js";import"./dynamic-controls-k61T9W2P.js";import"./input-error-cgnQ235Q.js";import"./DiffViewer-DL5uCv8d.js";const i=[];function k(){const r=t();return o.jsx(m,{breadcrumbs:i,children:o.jsx(p,{page:r,catalog:!1})})}export{k as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./app.js";import{A as o}from"./app-layout-DM2_7wxW.js";import t from"./add-group-form-DUhDxVwB.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";const m=[];function y(){return r.jsx(o,{breadcrumbs:m,children:r.jsx(t,{})})}export{y as default};
@@ -1 +0,0 @@
1
- import{j as r}from"./app.js";import{A as o}from"./app-layout-DM2_7wxW.js";import t from"./add-user-form-Ct4i6Dse.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";import"./input-error-cgnQ235Q.js";const m=[];function E(){return r.jsx(o,{breadcrumbs:m,children:r.jsx(t,{})})}export{E as default};
@@ -1 +0,0 @@
1
- import{j as a,_ as p,$ as u,B as x,a0 as c,a1 as d,az as t,a2 as j,a3 as f}from"./app.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";function C({selected:r,onSelect:s,placeholder:o="Pick a date",className:n,buttonClassName:e,disabled:i=!1,fromDate:l,toDate:m}){return a.jsxs(p,{children:[a.jsx(u,{asChild:!0,children:a.jsxs(x,{variant:"outline",className:t("w-[240px] justify-start text-left font-normal cursor-pointer border-input",!r&&"text-muted-foreground",e),disabled:i,children:[a.jsx(c,{className:"mr-2 h-4 w-4"}),r?d(r,"PPP"):a.jsx("span",{children:o})]})}),a.jsx(j,{className:t("w-auto p-0",n),align:"start",children:a.jsx(f,{mode:"single",selected:r,onSelect:s,initialFocus:!0,fromDate:l,toDate:m})})]})}export{C as DatePicker};
@@ -1 +0,0 @@
1
- import{j as r}from"./app.js";import{A as o}from"./app-layout-DM2_7wxW.js";import t from"./form-G2lvZbid.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";import"./add-form-Nn7zuSFW.js";import"./field-renderer-Ddc4u-gC.js";import"./dynamic-controls-k61T9W2P.js";import"./input-error-cgnQ235Q.js";import"./DiffViewer-DL5uCv8d.js";const m=[];function g(){return r.jsx(o,{breadcrumbs:m,children:r.jsx(t,{})})}export{g as default};
@@ -1 +0,0 @@
1
- import{V as Q,W as h,X as s,Y as d,Z as C,u as ie,j as a,b as H,B as M,S as re,c as oe,d as se,e as de,f as Y,_ as le,$ as ue,a0 as me,a1 as N,a2 as ce,a3 as he,a4 as fe,a5 as ge,a6 as $,a7 as P,a8 as ve,a9 as v,aa as pe,L as be,ab as we,ac as Me,ad as Pe,ae as ye,h as xe,af as q}from"./app.js";import{r as c}from"./handsontable-PxYdjN8c.js";import{D as je}from"./DiffViewer-DL5uCv8d.js";import{A as We}from"./app-layout-DM2_7wxW.js";import"./jsoneditor-De1FvcYu.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";function _(e,t,n){const i=Q(e,n),o=Q(t,n);return+i==+o}const R={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},Ne=(e,t,n)=>{let i;const o=n!=null&&n.addSuffix?R[e].withPreposition:R[e].standalone;return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i},$e={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},Se={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ke={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},De={date:h({formats:$e,defaultWidth:"full"}),time:h({formats:Se,defaultWidth:"full"}),dateTime:h({formats:ke,defaultWidth:"full"})},Ce={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Ge=(e,t,n,i)=>Ce[e],Te={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},ze={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},J={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},He={narrow:J.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:J.wide},Je={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},Le={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},Ve={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},Fe=e=>Number(e)+".",Ee={ordinalNumber:Fe,era:s({values:Te,defaultWidth:"wide"}),quarter:s({values:ze,defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:J,formattingValues:He,defaultWidth:"wide"}),day:s({values:Je,defaultWidth:"wide"}),dayPeriod:s({values:Le,defaultWidth:"wide",formattingValues:Ve,defaultFormattingWidth:"wide"})},Xe=/^(\d+)(\.)?/i,Ae=/\d+/i,Oe={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},Qe={any:[/^v/i,/^n/i]},Ye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},qe={any:[/1/i,/2/i,/3/i,/4/i]},_e={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},Re={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ie={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Ue={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Be={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Ze={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},Ke={ordinalNumber:C({matchPattern:Xe,parsePattern:Ae,valueCallback:e=>parseInt(e)}),era:d({matchPatterns:Oe,defaultMatchWidth:"wide",parsePatterns:Qe,defaultParseWidth:"any"}),quarter:d({matchPatterns:Ye,defaultMatchWidth:"wide",parsePatterns:qe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:d({matchPatterns:_e,defaultMatchWidth:"wide",parsePatterns:Re,defaultParseWidth:"any"}),day:d({matchPatterns:Ie,defaultMatchWidth:"wide",parsePatterns:Ue,defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:Be,defaultMatchWidth:"wide",parsePatterns:Ze,defaultParseWidth:"any"})},et={code:"de",formatDistance:Ne,formatLong:De,formatRelative:Ge,localize:Ee,match:Ke,options:{weekStartsOn:1,firstWeekContainsDate:4}},tt={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},at=(e,t,n)=>{let i;const o=tt[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"hace "+i:i},nt={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},it={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rt={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ot={date:h({formats:nt,defaultWidth:"full"}),time:h({formats:it,defaultWidth:"full"}),dateTime:h({formats:rt,defaultWidth:"full"})},st={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},dt={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},lt=(e,t,n,i)=>t.getHours()!==1?dt[e]:st[e],ut={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},mt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},ct={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},ht={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},ft={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},gt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},vt=(e,t)=>Number(e)+"º",pt={ordinalNumber:vt,era:s({values:ut,defaultWidth:"wide"}),quarter:s({values:mt,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:s({values:ct,defaultWidth:"wide"}),day:s({values:ht,defaultWidth:"wide"}),dayPeriod:s({values:ft,defaultWidth:"wide",formattingValues:gt,defaultFormattingWidth:"wide"})},bt=/^(\d+)(º)?/i,wt=/\d+/i,Mt={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},Pt={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},yt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},xt={any:[/1/i,/2/i,/3/i,/4/i]},jt={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},Wt={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Nt={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},$t={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},St={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},kt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Dt={ordinalNumber:C({matchPattern:bt,parsePattern:wt,valueCallback:function(e){return parseInt(e,10)}}),era:d({matchPatterns:Mt,defaultMatchWidth:"wide",parsePatterns:Pt,defaultParseWidth:"any"}),quarter:d({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:xt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:d({matchPatterns:jt,defaultMatchWidth:"wide",parsePatterns:Wt,defaultParseWidth:"any"}),day:d({matchPatterns:Nt,defaultMatchWidth:"wide",parsePatterns:$t,defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:St,defaultMatchWidth:"any",parsePatterns:kt,defaultParseWidth:"any"})},Ct={code:"es",formatDistance:at,formatLong:ot,formatRelative:lt,localize:pt,match:Dt,options:{weekStartsOn:1,firstWeekContainsDate:1}},Gt={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Tt=(e,t,n)=>{let i;const o=Gt[e];return typeof o=="string"?i=o:t===1?i=o.one:i=o.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+i:"il y a "+i:i},zt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},Ht={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Jt={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lt={date:h({formats:zt,defaultWidth:"full"}),time:h({formats:Ht,defaultWidth:"full"}),dateTime:h({formats:Jt,defaultWidth:"full"})},Vt={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},Ft=(e,t,n,i)=>Vt[e],Et={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},Xt={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},At={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},Ot={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},Qt={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},Yt=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;if(n===0)return"0";const o=["year","week","hour","minute","second"];let y;return n===1?y=i&&o.includes(i)?"ère":"er":y="ème",n+y},qt=["MMM","MMMM"],_t={preprocessor:(e,t)=>e.getDate()===1||!t.some(i=>i.isToken&&qt.includes(i.value))?t:t.map(i=>i.isToken&&i.value==="do"?{isToken:!0,value:"d"}:i),ordinalNumber:Yt,era:s({values:Et,defaultWidth:"wide"}),quarter:s({values:Xt,defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:At,defaultWidth:"wide"}),day:s({values:Ot,defaultWidth:"wide"}),dayPeriod:s({values:Qt,defaultWidth:"wide"})},Rt=/^(\d+)(ième|ère|ème|er|e)?/i,It=/\d+/i,Ut={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},Bt={any:[/^av/i,/^ap/i]},Zt={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Kt={any:[/1/i,/2/i,/3/i,/4/i]},ea={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},ta={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},aa={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},na={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},ia={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},ra={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},oa={ordinalNumber:C({matchPattern:Rt,parsePattern:It,valueCallback:e=>parseInt(e)}),era:d({matchPatterns:Ut,defaultMatchWidth:"wide",parsePatterns:Bt,defaultParseWidth:"any"}),quarter:d({matchPatterns:Zt,defaultMatchWidth:"wide",parsePatterns:Kt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:d({matchPatterns:ea,defaultMatchWidth:"wide",parsePatterns:ta,defaultParseWidth:"any"}),day:d({matchPatterns:aa,defaultMatchWidth:"wide",parsePatterns:na,defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:ia,defaultMatchWidth:"any",parsePatterns:ra,defaultParseWidth:"any"})},sa={code:"fr",formatDistance:Tt,formatLong:Lt,formatRelative:Ft,localize:_t,match:oa,options:{weekStartsOn:1,firstWeekContainsDate:4}};function S(e,t){if(e.one!==void 0&&t===1)return e.one;const n=t%10,i=t%100;return n===1&&i!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(i<10||i>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function m(e){return(t,n)=>n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?S(e.future,t):"через "+S(e.regular,t):e.past?S(e.past,t):S(e.regular,t)+" назад":S(e.regular,t)}const da={lessThanXSeconds:m({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:m({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(e,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:m({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:m({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:m({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:m({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:m({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:m({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:m({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:m({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:m({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:m({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:m({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:m({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:m({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},la=(e,t,n)=>da[e](t,n),ua={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},ma={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},ca={any:"{{date}}, {{time}}"},ha={date:h({formats:ua,defaultWidth:"full"}),time:h({formats:ma,defaultWidth:"full"}),dateTime:h({formats:ca,defaultWidth:"any"})},L=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function fa(e){const t=L[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function I(e){const t=L[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function ga(e){const t=L[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}const va={lastWeek:(e,t,n)=>{const i=e.getDay();return _(e,t,n)?I(i):fa(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(e,t,n)=>{const i=e.getDay();return _(e,t,n)?I(i):ga(i)},other:"P"},pa=(e,t,n,i)=>{const o=va[e];return typeof o=="function"?o(t,n,i):o},ba={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},wa={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Ma={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},Pa={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},ya={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},xa={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},ja={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},Wa=(e,t)=>{const n=Number(e),i=t==null?void 0:t.unit;let o;return i==="date"?o="-е":i==="week"||i==="minute"||i==="second"?o="-я":o="-й",n+o},Na={ordinalNumber:Wa,era:s({values:ba,defaultWidth:"wide"}),quarter:s({values:wa,defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:Ma,defaultWidth:"wide",formattingValues:Pa,defaultFormattingWidth:"wide"}),day:s({values:ya,defaultWidth:"wide"}),dayPeriod:s({values:xa,defaultWidth:"any",formattingValues:ja,defaultFormattingWidth:"wide"})},$a=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Sa=/\d+/i,ka={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Da={any:[/^д/i,/^н/i]},Ca={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Ga={any:[/1/i,/2/i,/3/i,/4/i]},Ta={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},za={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Ha={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Ja={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},La={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},Va={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},Fa={ordinalNumber:C({matchPattern:$a,parsePattern:Sa,valueCallback:e=>parseInt(e,10)}),era:d({matchPatterns:ka,defaultMatchWidth:"wide",parsePatterns:Da,defaultParseWidth:"any"}),quarter:d({matchPatterns:Ca,defaultMatchWidth:"wide",parsePatterns:Ga,defaultParseWidth:"any",valueCallback:e=>e+1}),month:d({matchPatterns:Ta,defaultMatchWidth:"wide",parsePatterns:za,defaultParseWidth:"any"}),day:d({matchPatterns:Ha,defaultMatchWidth:"wide",parsePatterns:Ja,defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:La,defaultMatchWidth:"wide",parsePatterns:Va,defaultParseWidth:"any"})},Ea={code:"ru",formatDistance:la,formatLong:ha,formatRelative:pa,localize:Na,match:Fa,options:{weekStartsOn:1,firstWeekContainsDate:1}},Xa=()=>{const e=document.documentElement.lang;return e!=null&&e.startsWith("ru")?Ea:e!=null&&e.startsWith("en")?q:e!=null&&e.startsWith("de")?et:e!=null&&e.startsWith("es")?Ct:e!=null&&e.startsWith("fr")?sa:q},Aa=()=>{const e=ie(),[t,n]=c.useState([]),[i,o]=c.useState(null),[y,V]=c.useState(!1),[U,b]=c.useState(!0),[f,B]=c.useState("all"),[F,x]=c.useState(0),[k]=c.useState(15),[G,j]=c.useState(!0),[W,E]=c.useState(!1),X=c.useRef(null),[g,Z]=c.useState("all"),[l,A]=c.useState(void 0),u=e.props.messages,D=async(r,w="all",te="all",ae=!1,p)=>{E(!0);try{const z=(await xe.post(`${window.routePrefix}/history/view-all`,{model:w,offset:r,limit:k,user:te,from:p!=null&&p.from?N(p.from,"yyyy-MM-dd"):null,to:p!=null&&p.to?N(p.to,"yyyy-MM-dd"):null})).data.data;n(ae?z:ne=>[...ne,...z]),j(!(z.length<k)),x(r)}catch(O){console.error(O)}finally{E(!1)}};c.useEffect(()=>{n([]),x(0),j(!0),D(0,f,g,!0,l),b(!1)},[f,g]),c.useEffect(()=>{const r=X.current;if(!r)return;const w=async()=>{W||!G||r.scrollHeight-r.scrollTop<=r.clientHeight+5&&await D(F+k,f,g,!1,l)};return r.addEventListener("scroll",w),()=>r.removeEventListener("scroll",w)},[W,G,F,k,f,g,l]);const T=(r,w)=>{B(r),Z(w),b(!0),n([]),x(0),j(!0),b(!1)},K=()=>{b(!0),n([]),x(0),j(!0),b(!1),D(0,f,g,!0,l)},ee=()=>{A(void 0),b(!0),n([]),x(0),j(!0),b(!1),D(0,f,g,!0,void 0)};return a.jsx("div",{className:"flex h-auto flex-1 flex-col gap-4 rounded-xl p-4",children:a.jsxs("div",{className:"flex flex-col gap-4",children:[a.jsx("h1",{className:"font-bold text-xl",children:e.props.title}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(H,{htmlFor:"models",children:u.Models}),a.jsxs("div",{className:"flex flex-wrap gap-4",children:[a.jsx("div",{children:a.jsx(M,{variant:f==="all"?"default":"outline",className:"border-1",onClick:()=>{T("all",g)},children:u.All})}),e.props.models.map(r=>a.jsx("div",{children:a.jsx(M,{variant:f===r.name?"default":"outline",className:"border-1 capitalize",onClick:()=>{T(r.name,g)},children:r.title})},r.name))]})]}),a.jsxs("div",{className:"flex gap-4",children:[e.props.users.length>0&&a.jsxs("div",{className:"flex flex-col grow-1 gap-2 max-w-[250px]",children:[a.jsx(H,{htmlFor:"users",children:u.Users}),a.jsxs(re,{onValueChange:r=>{T(f,r)},value:g,children:[a.jsx(oe,{className:"w-full cursor-pointer min-h-10 scroll-pt-30 scroll-mt-30",id:"users",children:a.jsx(se,{placeholder:u.Users})}),a.jsxs(de,{className:"z-[9999999]",children:[a.jsx(Y,{value:"all",children:u.All},"all"),e.props.users.map(r=>a.jsx(Y,{value:String(r.name),children:r.name},String(r.name)))]})]})]}),a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(H,{htmlFor:"date-picker-range",children:u.Date}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(le,{children:[a.jsx(ue,{asChild:!0,children:a.jsxs(M,{variant:"outline",id:"date-picker-range",className:"justify-start px-2.5 font-normal h-[40px]",children:[a.jsx(me,{}),l!=null&&l.from?l.to?a.jsxs(a.Fragment,{children:[N(l.from,"LLL dd, y")," -"," ",N(l.to,"LLL dd, y")]}):N(l.from,"LLL dd, y"):a.jsx("span",{children:u["Pick a date"]})]})}),a.jsx(ce,{className:"w-auto p-0",align:"start",children:a.jsx(he,{mode:"range",locale:Xa(),defaultMonth:l==null?void 0:l.from,selected:l,onSelect:A,numberOfMonths:2})})]}),a.jsx(M,{variant:"default",size:"default",onClick:K,className:"h-[40px]",disabled:l===void 0,children:u.Search}),a.jsx(M,{variant:"outline",size:"default",onClick:ee,className:"h-[40px]",disabled:l===void 0,children:u.Reset})]})]})]}),a.jsxs(fe,{wrapperHeight:"max-h-[55vh]",ref:X,children:[a.jsx(ge,{className:"sticky top-0 bg-background shadow",children:a.jsxs($,{children:[a.jsx(P,{className:"p-2 text-left",children:u.Date}),a.jsx(P,{className:"p-2 text-left",children:u.Model}),a.jsx(P,{className:"p-2 text-left",children:u.Name}),a.jsx(P,{className:"p-2 text-left",children:u.Event}),a.jsx(P,{className:"p-2 text-left",children:u.User}),a.jsx(P,{className:"p-2 text-left",children:u.Diff})]})}),a.jsxs(ve,{children:[t.map(r=>a.jsxs($,{children:[a.jsx(v,{className:"p-2 self-start pt-2.5",children:new Date(r.createdAt).toLocaleString()}),a.jsx(v,{className:"p-2 self-start pt-2.5 capitalize",children:r.modelName}),a.jsx(v,{className:"p-2 self-start pt-2.5",children:r.displayName}),a.jsx(v,{className:"p-2 self-start pt-2.5 capitalize",children:r.action}),a.jsx(v,{className:"p-2 self-start pt-2.5 max-w-[250px] whitespace-break-spaces",children:a.jsx("div",{className:"max-w-[500px] whitespace-break-spaces font-medium text-chart-3",children:r.user.login})}),a.jsx(v,{className:"p-2 align-middle",children:a.jsx(M,{variant:"green",size:"sm",onClick:()=>{o(r.diff),V(!0)},children:a.jsx(pe,{})})})]},r.id)),W&&a.jsx($,{children:a.jsx(v,{colSpan:6,className:"p-4 text-center",children:a.jsx(be,{className:"mx-auto size-5 animate-spin"})})}),!W&&!G&&t.length>0&&a.jsx($,{children:a.jsx(v,{colSpan:6,className:"p-4 text-left sm:text-center font-medium text-muted-foreground",children:u["The end of the list has been reached"]})}),!W&&!U&&t.length===0&&a.jsx($,{children:a.jsx(v,{colSpan:6,className:"p-4 text-left sm:text-center font-medium text-muted-foreground",children:u["There are no records to display"]})})]})]}),a.jsx(we,{open:y,onOpenChange:r=>{V(r),r||setTimeout(()=>{document.body.removeAttribute("style")},300)},children:a.jsxs(Me,{className:"z-[1022] sm:max-w-[60vw]",children:[a.jsx(Pe,{children:a.jsx(ye,{children:"Diff"})}),a.jsx(je,{changes:i,className:"max-h-[80vh] overflow-auto sm:max-w-[60vw] w-full"})]})})]})})},Oa=[],dn=()=>a.jsx(We,{breadcrumbs:Oa,children:a.jsx(Aa,{})});export{dn as default};
@@ -1 +0,0 @@
1
- import{j as o}from"./app.js";import{A as r}from"./app-layout-DM2_7wxW.js";import t from"./list-table-BxVhDSbv.js";import"./jsoneditor-De1FvcYu.js";import"./handsontable-PxYdjN8c.js";import"./monaco-BhBYtg3d.js";import"./app-shell-CwiL9UZ5.js";import"./app-sidebar-C7TXiSvV.js";import"./nav-main-G6VwCche.js";import"./material-icon-DZVU9Gse.js";import"./app-sidebar-header-qHEOMq5D.js";import"./breadcrumbs-D5PCyRGn.js";import"./nav-user-BfROibnw.js";import"./user-info-gFSwypEN.js";import"./user-menu-content-CjsydEH4.js";import"./theme-switcher-BURZ8Tza.js";import"./icon-FyVrxiPs.js";import"./del-modal-yU9LPEgz.js";import"./pagination-render-CqNIIF8P.js";const m=[],y=()=>o.jsx(r,{breadcrumbs:m,className:"overflow-auto h-[calc(100svh-16px)]",children:o.jsx(t,{})});export{y as default};