@marimo-team/frontend 0.23.4-dev1 → 0.23.4-dev10

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 (37) hide show
  1. package/dist/assets/JsonOutput-D5TiQGJ4.js +49 -0
  2. package/dist/assets/{add-connection-dialog-gd2yD9Qo.js → add-connection-dialog-Dg6K--Uw.js} +1 -1
  3. package/dist/assets/{agent-panel-TetMUXWP.js → agent-panel-oPuvVsjs.js} +1 -1
  4. package/dist/assets/{cell-editor-C6vZfKyj.js → cell-editor-CdyZleud.js} +3 -3
  5. package/dist/assets/{column-preview-_5uYiy74.js → column-preview-B1KZjh-X.js} +1 -1
  6. package/dist/assets/command-CXDOCJwp.js +1 -0
  7. package/dist/assets/{command-palette-DfotChyr.js → command-palette-C7AbtCWz.js} +1 -1
  8. package/dist/assets/{dependency-graph-panel-Yk1Ch_Gj.js → dependency-graph-panel-k1WQZ4m-.js} +1 -1
  9. package/dist/assets/{edit-page-C-LIP5uT.js → edit-page-CbGDoOay.js} +3 -3
  10. package/dist/assets/{file-explorer-panel-Dlwspu2Y.js → file-explorer-panel-Cjlf3QNa.js} +2 -2
  11. package/dist/assets/{form-Dr-_EXr8.js → form-D1abghOq.js} +1 -1
  12. package/dist/assets/{hooks-CNPv5U-N.js → hooks-4gSLiehn.js} +1 -1
  13. package/dist/assets/{index-BFivsT-R.js → index-rjcv10Dv.js} +8 -8
  14. package/dist/assets/{layout-DDh3d8oW.js → layout-C4u-1iTo.js} +3 -3
  15. package/dist/assets/loro_wasm_bg-Bu4Ofw1K.js +2 -0
  16. package/dist/assets/{loro_wasm_bg-DXuHQ2hl.js → loro_wasm_bg-DWJCS9pK.js} +1 -1
  17. package/dist/assets/{panels-CbRenLjk.js → panels-CpvbcuTn.js} +1 -1
  18. package/dist/assets/{reveal-component-CLjsFHmT.js → reveal-component-C2X5QJAC.js} +1 -1
  19. package/dist/assets/{run-page-C1Wd8dr8.js → run-page-BYdI3kiE.js} +1 -1
  20. package/dist/assets/{scratchpad-panel-DpqODhZ3.js → scratchpad-panel-BP6-rZV6.js} +1 -1
  21. package/dist/assets/{session-panel-BvCIuxgU.js → session-panel-YGK2D21A.js} +1 -1
  22. package/dist/assets/{slide-form-CXqvfwGg.js → slide-form-BE8M6oJo.js} +1 -1
  23. package/dist/assets/{snippets-panel-COBTGJcr.js → snippets-panel-CnN632Ki.js} +1 -1
  24. package/dist/assets/{state-LyvUXW6A.js → state-CoUA-8Ay.js} +1 -1
  25. package/dist/assets/{useDependencyPanelTab-DFZNQ3a8.js → useDependencyPanelTab-8WaMRWbo.js} +1 -1
  26. package/dist/assets/useNotebookActions-bCZiRDS-.js +1 -0
  27. package/dist/index.html +6 -6
  28. package/package.json +4 -4
  29. package/src/components/data-table/__tests__/column-header.test.ts +63 -0
  30. package/src/components/data-table/column-header.tsx +50 -159
  31. package/src/components/data-table/filter-by-values-picker.tsx +7 -4
  32. package/src/components/editor/actions/pair-with-agent-modal.tsx +1 -1
  33. package/src/components/editor/actions/useNotebookActions.tsx +1 -0
  34. package/dist/assets/JsonOutput-BVAcY5xS.js +0 -49
  35. package/dist/assets/command-CzIDL1VI.js +0 -1
  36. package/dist/assets/loro_wasm_bg-Ds40eH8K.js +0 -2
  37. package/dist/assets/useNotebookActions-F5fGMe9N.js +0 -1
@@ -1 +0,0 @@
1
- import{s as he}from"./chunk-LvLJmgfZ.js";import{t as Le}from"./react-Bj1aDYRI.js";import{t as Ve}from"./react-dom-CSu739Rf.js";import{t as Fe}from"./compiler-runtime-B3qBwwSJ.js";import{a as P}from"./useEventListener-BR0C1MaI.js";import{t as D}from"./cn-DCUzRj2J.js";import{t as Ke}from"./jsx-runtime-BqBOg78p.js";import{g as O}from"./fullscreen-BDxedMYP.js";import{c as ze,n as qe,o as We,t as Be}from"./menu-items-CwUpDHG7.js";import{_ as Ge,g as He,h as Te,p as Ue}from"./alert-dialog-BGBdrcqJ.js";import{t as Ze}from"./strings-md4mFbOQ.js";import{dt as Je}from"./input-DyPS_GiK.js";import{n as Qe,t as Xe}from"./dialog-EekxpBBM.js";var ve=1,Ye=.9,et=.8,tt=.17,te=.1,re=.999,rt=.9999,nt=.99,at=/[\\\/_+.#"@\[\(\{&]/,lt=/[\\\/_+.#"@\[\(\{&]/g,it=/[\s-]/,ge=/[\s-]/g;function ne(t,r,e,a,n,l,u){if(l===r.length)return n===t.length?ve:nt;var s=`${n},${l}`;if(u[s]!==void 0)return u[s];for(var m=a.charAt(l),c=e.indexOf(m,n),p=0,h,w,E,R;c>=0;)h=ne(t,r,e,a,c+1,l+1,u),h>p&&(c===n?h*=ve:at.test(t.charAt(c-1))?(h*=et,E=t.slice(n,c-1).match(lt),E&&n>0&&(h*=re**+E.length)):it.test(t.charAt(c-1))?(h*=Ye,R=t.slice(n,c-1).match(ge),R&&n>0&&(h*=re**+R.length)):(h*=tt,n>0&&(h*=re**+(c-n))),t.charAt(c)!==r.charAt(l)&&(h*=rt)),(h<te&&e.charAt(c-1)===a.charAt(l+1)||a.charAt(l+1)===a.charAt(l)&&e.charAt(c-1)!==a.charAt(l))&&(w=ne(t,r,e,a,c+1,l+2,u),w*te>h&&(h=w*te)),h>p&&(p=h),c=e.indexOf(m,c+1);return u[s]=p,p}function ye(t){return t.toLowerCase().replace(ge," ")}function ot(t,r,e){return t=e&&e.length>0?`${t+" "+e.join(" ")}`:t,ne(t,r,ye(t),ye(r),0,0,{})}var o=he(Le(),1),x=he(Ke(),1),ut=Symbol.for("react.lazy"),B=o.use;function ct(t){return typeof t=="object"&&!!t&&"then"in t}function be(t){return typeof t=="object"&&!!t&&"$$typeof"in t&&t.$$typeof===ut&&"_payload"in t&&ct(t._payload)}function st(t){let r=dt(t),e=o.forwardRef((a,n)=>{let{children:l,...u}=a;be(l)&&typeof B=="function"&&(l=B(l._payload));let s=o.Children.toArray(l),m=s.find(mt);if(m){let c=m.props.children,p=s.map(h=>h===m?o.Children.count(c)>1?o.Children.only(null):o.isValidElement(c)?c.props.children:null:h);return(0,x.jsx)(r,{...u,ref:n,children:o.isValidElement(c)?o.cloneElement(c,void 0,p):null})}return(0,x.jsx)(r,{...u,ref:n,children:l})});return e.displayName=`${t}.Slot`,e}function dt(t){let r=o.forwardRef((e,a)=>{let{children:n,...l}=e;if(be(n)&&typeof B=="function"&&(n=B(n._payload)),o.isValidElement(n)){let u=ht(n),s=pt(l,n.props);return n.type!==o.Fragment&&(s.ref=a?P(a,u):u),o.cloneElement(n,s)}return o.Children.count(n)>1?o.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}var ft=Symbol("radix.slottable");function mt(t){return o.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ft}function pt(t,r){let e={...r};for(let a in r){let n=t[a],l=r[a];/^on[A-Z]/.test(a)?n&&l?e[a]=(...u)=>{let s=l(...u);return n(...u),s}:n&&(e[a]=n):a==="style"?e[a]={...n,...l}:a==="className"&&(e[a]=[n,l].filter(Boolean).join(" "))}return{...t,...e}}function ht(t){var a,n;let r=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,e=r&&"isReactWarning"in r&&r.isReactWarning;return e?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:n.get,e=r&&"isReactWarning"in r&&r.isReactWarning,e?t.props.ref:t.props.ref||t.ref)}Ve();var _=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,r)=>{let e=st(`Primitive.${r}`),a=o.forwardRef((n,l)=>{let{asChild:u,...s}=n,m=u?e:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,x.jsx)(m,{...s,ref:l})});return a.displayName=`Primitive.${r}`,{...t,[r]:a}},{}),z='[cmdk-group=""]',ae='[cmdk-group-items=""]',vt='[cmdk-group-heading=""]',we='[cmdk-item=""]',xe=`${we}:not([aria-disabled="true"])`,le="cmdk-item-select",L="data-value",gt=(t,r,e)=>ot(t,r,e),Ee=o.createContext(void 0),q=()=>o.useContext(Ee),ke=o.createContext(void 0),ie=()=>o.useContext(ke),Se=o.createContext(void 0),Ne=o.forwardRef((t,r)=>{let e=V(()=>({search:"",value:t.value??t.defaultValue??"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),a=V(()=>new Set),n=V(()=>new Map),l=V(()=>new Map),u=V(()=>new Set),s=Ce(t),{label:m,children:c,value:p,onValueChange:h,filter:w,shouldFilter:E,loop:R,disablePointerSelection:Oe=!1,vimBindings:H=!0,...W}=t,T=O(),U=O(),F=O(),y=o.useRef(null),N=Ct();$(()=>{if(p!==void 0){let i=p.trim();e.current.value=i,S.emit()}},[p]),$(()=>{N(6,se)},[]);let S=o.useMemo(()=>({subscribe:i=>(u.current.add(i),()=>u.current.delete(i)),snapshot:()=>e.current,setState:(i,f,v)=>{var I;var d,g,b;if(!Object.is(e.current[i],f)){if(e.current[i]=f,i==="search")X(),J(),N(1,Q);else if(i==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let C=document.getElementById(F);C?C.focus():(d=document.getElementById(T))==null||d.focus()}if(N(7,()=>{var C;e.current.selectedItemId=(C=M())==null?void 0:C.id,S.emit()}),v||N(5,se),((I=s.current)==null?void 0:I.value)!==void 0){let C=f??"";(b=(g=s.current).onValueChange)==null||b.call(g,C);return}}S.emit()}},emit:()=>{u.current.forEach(i=>i())}}),[]),Z=o.useMemo(()=>({value:(i,f,v)=>{var d;f!==((d=l.current.get(i))==null?void 0:d.value)&&(l.current.set(i,{value:f,keywords:v}),e.current.filtered.items.set(i,ce(f,v)),N(2,()=>{J(),S.emit()}))},item:(i,f)=>(a.current.add(i),f&&(n.current.has(f)?n.current.get(f).add(i):n.current.set(f,new Set([i]))),N(3,()=>{X(),J(),e.current.value||Q(),S.emit()}),()=>{l.current.delete(i),a.current.delete(i),e.current.filtered.items.delete(i);let v=M();N(4,()=>{X(),(v==null?void 0:v.getAttribute("id"))===i&&Q(),S.emit()})}),group:i=>(n.current.has(i)||n.current.set(i,new Set),()=>{l.current.delete(i),n.current.delete(i)}),filter:()=>s.current.shouldFilter,label:m||t["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:T,inputId:F,labelId:U,listInnerRef:y}),[]);function ce(i,f){var d;let v=((d=s.current)==null?void 0:d.filter)??gt;return i?v(i,e.current.search,f):0}function J(){if(!e.current.search||s.current.shouldFilter===!1)return;let i=e.current.filtered.items,f=[];e.current.filtered.groups.forEach(d=>{let g=n.current.get(d),b=0;g.forEach(I=>{let C=i.get(I);b=Math.max(C,b)}),f.push([d,b])});let v=y.current;K().sort((d,g)=>{let b=d.getAttribute("id"),I=g.getAttribute("id");return(i.get(I)??0)-(i.get(b)??0)}).forEach(d=>{let g=d.closest(ae);g?g.appendChild(d.parentElement===g?d:d.closest(`${ae} > *`)):v.appendChild(d.parentElement===v?d:d.closest(`${ae} > *`))}),f.sort((d,g)=>g[1]-d[1]).forEach(d=>{var b;let g=(b=y.current)==null?void 0:b.querySelector(`${z}[${L}="${encodeURIComponent(d[0])}"]`);g==null||g.parentElement.appendChild(g)})}function Q(){var f;let i=(f=K().find(v=>v.getAttribute("aria-disabled")!=="true"))==null?void 0:f.getAttribute(L);S.setState("value",i||void 0)}function X(){var f,v;if(!e.current.search||s.current.shouldFilter===!1){e.current.filtered.count=a.current.size;return}e.current.filtered.groups=new Set;let i=0;for(let d of a.current){let g=ce(((f=l.current.get(d))==null?void 0:f.value)??"",((v=l.current.get(d))==null?void 0:v.keywords)??[]);e.current.filtered.items.set(d,g),g>0&&i++}for(let[d,g]of n.current)for(let b of g)if(e.current.filtered.items.get(b)>0){e.current.filtered.groups.add(d);break}e.current.filtered.count=i}function se(){var v,d;var i;let f=M();f&&(((v=f.parentElement)==null?void 0:v.firstChild)===f&&((i=(d=f.closest(z))==null?void 0:d.querySelector(vt))==null||i.scrollIntoView({block:"nearest"})),f.scrollIntoView({block:"nearest"}))}function M(){var i;return(i=y.current)==null?void 0:i.querySelector(`${we}[aria-selected="true"]`)}function K(){var i;return Array.from(((i=y.current)==null?void 0:i.querySelectorAll(xe))||[])}function Y(i){let f=K()[i];f&&S.setState("value",f.getAttribute(L))}function ee(i){var f;let v=M(),d=K(),g=d.findIndex(I=>I===v),b=d[g+i];(f=s.current)!=null&&f.loop&&(b=g+i<0?d[d.length-1]:g+i===d.length?d[0]:d[g+i]),b&&S.setState("value",b.getAttribute(L))}function de(i){var d;let f=(d=M())==null?void 0:d.closest(z),v;for(;f&&!v;)f=i>0?Nt(f,z):Rt(f,z),v=f==null?void 0:f.querySelector(xe);v?S.setState("value",v.getAttribute(L)):ee(i)}let fe=()=>Y(K().length-1),me=i=>{i.preventDefault(),i.metaKey?fe():i.altKey?de(1):ee(1)},pe=i=>{i.preventDefault(),i.metaKey?Y(0):i.altKey?de(-1):ee(-1)};return o.createElement(_.div,{ref:r,tabIndex:-1,...W,"cmdk-root":"",onKeyDown:i=>{var f;(f=W.onKeyDown)==null||f.call(W,i);let v=i.nativeEvent.isComposing||i.keyCode===229;if(!(i.defaultPrevented||v))switch(i.key){case"n":case"j":H&&i.ctrlKey&&me(i);break;case"ArrowDown":me(i);break;case"p":case"k":H&&i.ctrlKey&&pe(i);break;case"ArrowUp":pe(i);break;case"Home":i.preventDefault(),Y(0);break;case"End":i.preventDefault(),fe();break;case"Enter":{i.preventDefault();let d=M();if(d){let g=new Event(le);d.dispatchEvent(g)}}}}},o.createElement("label",{"cmdk-label":"",htmlFor:Z.inputId,id:Z.labelId,style:_t},m),G(t,i=>o.createElement(ke.Provider,{value:S},o.createElement(Ee.Provider,{value:Z},i))))}),yt=o.forwardRef((t,r)=>{var F;let e=O(),a=o.useRef(null),n=o.useContext(Se),l=q(),u=Ce(t),s=((F=u.current)==null?void 0:F.forceMount)??(n==null?void 0:n.forceMount);$(()=>{if(!s)return l.item(e,n==null?void 0:n.id)},[s]);let m=Ie(e,a,[t.value,t.children,a],t.keywords),c=ie(),p=A(y=>y.value&&y.value===m.current),h=A(y=>s||l.filter()===!1?!0:y.search?y.filtered.items.get(e)>0:!0);o.useEffect(()=>{let y=a.current;if(!(!y||t.disabled))return y.addEventListener(le,w),()=>y.removeEventListener(le,w)},[h,t.onSelect,t.disabled]);function w(){var y,N;E(),(N=(y=u.current).onSelect)==null||N.call(y,m.current)}function E(){c.setState("value",m.current,!0)}if(!h)return null;let{disabled:R,value:Oe,onSelect:H,forceMount:W,keywords:T,...U}=t;return o.createElement(_.div,{ref:P(a,r),...U,id:e,"cmdk-item":"",role:"option","aria-disabled":!!R,"aria-selected":!!p,"data-disabled":!!R,"data-selected":!!p,onPointerMove:R||l.getDisablePointerSelection()?void 0:E,onClick:R?void 0:w},t.children)}),bt=o.forwardRef((t,r)=>{let{heading:e,children:a,forceMount:n,...l}=t,u=O(),s=o.useRef(null),m=o.useRef(null),c=O(),p=q(),h=A(E=>n||p.filter()===!1?!0:E.search?E.filtered.groups.has(u):!0);$(()=>p.group(u),[]),Ie(u,s,[t.value,t.heading,m]);let w=o.useMemo(()=>({id:u,forceMount:n}),[n]);return o.createElement(_.div,{ref:P(s,r),...l,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},e&&o.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:c},e),G(t,E=>o.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":e?c:void 0},o.createElement(Se.Provider,{value:w},E))))}),wt=o.forwardRef((t,r)=>{let{alwaysRender:e,...a}=t,n=o.useRef(null),l=A(u=>!u.search);return!e&&!l?null:o.createElement(_.div,{ref:P(n,r),...a,"cmdk-separator":"",role:"separator"})}),xt=o.forwardRef((t,r)=>{let{onValueChange:e,...a}=t,n=t.value!=null,l=ie(),u=A(c=>c.search),s=A(c=>c.selectedItemId),m=q();return o.useEffect(()=>{t.value!=null&&l.setState("search",t.value)},[t.value]),o.createElement(_.input,{ref:r,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":m.listId,"aria-labelledby":m.labelId,"aria-activedescendant":s,id:m.inputId,type:"text",value:n?t.value:u,onChange:c=>{n||l.setState("search",c.target.value),e==null||e(c.target.value)}})}),Re=o.forwardRef((t,r)=>{let{children:e,label:a="Suggestions",...n}=t,l=o.useRef(null),u=o.useRef(null),s=A(c=>c.selectedItemId),m=q();return o.useEffect(()=>{if(u.current&&l.current){let c=u.current,p=l.current,h,w=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=c.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return w.observe(c),()=>{cancelAnimationFrame(h),w.unobserve(c)}}},[]),o.createElement(_.div,{ref:P(l,r),...n,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":a,id:m.listId},G(t,c=>o.createElement("div",{ref:P(u,m.listInnerRef),"cmdk-list-sizer":""},c)))}),Et=o.forwardRef((t,r)=>{let{open:e,onOpenChange:a,overlayClassName:n,contentClassName:l,container:u,...s}=t;return o.createElement(Ge,{open:e,onOpenChange:a},o.createElement(He,{container:u},o.createElement(Te,{"cmdk-overlay":"",className:n}),o.createElement(Ue,{"aria-label":t.label,"cmdk-dialog":"",className:l},o.createElement(Ne,{ref:r,...s}))))}),kt=o.forwardRef((t,r)=>A(e=>e.filtered.count===0)?o.createElement(_.div,{ref:r,...t,"cmdk-empty":"",role:"presentation"}):null),St=o.forwardRef((t,r)=>{let{progress:e,children:a,label:n="Loading...",...l}=t;return o.createElement(_.div,{ref:r,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n},G(t,u=>o.createElement("div",{"aria-hidden":!0},u)))}),k=Object.assign(Ne,{List:Re,Item:yt,Input:xt,Group:bt,Separator:wt,Dialog:Et,Empty:kt,Loading:St});function Nt(t,r){let e=t.nextElementSibling;for(;e;){if(e.matches(r))return e;e=e.nextElementSibling}}function Rt(t,r){let e=t.previousElementSibling;for(;e;){if(e.matches(r))return e;e=e.previousElementSibling}}function Ce(t){let r=o.useRef(t);return $(()=>{r.current=t}),r}var $=typeof window>"u"?o.useEffect:o.useLayoutEffect;function V(t){let r=o.useRef();return r.current===void 0&&(r.current=t()),r}function A(t){let r=ie(),e=()=>t(r.snapshot());return o.useSyncExternalStore(r.subscribe,e,e)}function Ie(t,r,e,a=[]){let n=o.useRef(),l=q();return $(()=>{var u;let s=(()=>{var c;for(let p of e){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(c=p.current.textContent)==null?void 0:c.trim():n.current}})(),m=a.map(c=>c.trim());l.value(t,s,m),(u=r.current)==null||u.setAttribute(L,s),n.current=s}),n}var Ct=()=>{let[t,r]=o.useState(),e=V(()=>new Map);return $(()=>{e.current.forEach(a=>a()),e.current=new Map},[t]),(a,n)=>{e.current.set(a,n),r({})}};function It(t){let r=t.type;return typeof r=="function"?r(t.props):"render"in r?r.render(t.props):t}function G({asChild:t,children:r},e){return t&&o.isValidElement(r)?o.cloneElement(It(r),{ref:r.ref},e(r.props.children)):e(r)}var _t={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function _e(t){return t.toLowerCase().match(/[\da-z]+/g)||[]}function oe(t,r){let e=_e(t);if(e.length===0)return!0;let a=Array.isArray(r)?r:[r],n=[];for(let l of a)l&&n.push(..._e(l));return e.every(l=>n.some(u=>u.startsWith(l)))}function At(t,r,e){return oe(r,t)?1:e&&oe(r,e)?.8:0}var j=Fe(),ue=o.forwardRef((t,r)=>{let e=(0,j.c)(9),a,n;e[0]===t?(a=e[1],n=e[2]):({className:a,...n}=t,e[0]=t,e[1]=a,e[2]=n);let l;e[3]===a?l=e[4]:(l=D("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),e[3]=a,e[4]=l);let u;return e[5]!==n||e[6]!==r||e[7]!==l?(u=(0,x.jsx)(k,{ref:r,filter:At,className:l,...n}),e[5]=n,e[6]=r,e[7]=l,e[8]=u):u=e[8],u});ue.displayName=k.displayName;var jt=t=>{let r=(0,j.c)(8),e,a;r[0]===t?(e=r[1],a=r[2]):({children:e,...a}=t,r[0]=t,r[1]=e,r[2]=a);let n;r[3]===e?n=r[4]:(n=(0,x.jsx)(Qe,{className:"overflow-hidden p-0 shadow-2xl",usePortal:!0,children:(0,x.jsx)(ue,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})}),r[3]=e,r[4]=n);let l;return r[5]!==a||r[6]!==n?(l=(0,x.jsx)(Xe,{...a,children:n}),r[5]=a,r[6]=n,r[7]=l):l=r[7],l},Ae=o.forwardRef((t,r)=>{let e=(0,j.c)(19),a,n,l,u;e[0]===t?(a=e[1],n=e[2],l=e[3],u=e[4]):({className:a,icon:n,rootClassName:u,...l}=t,e[0]=t,e[1]=a,e[2]=n,e[3]=l,e[4]=u);let s;e[5]===u?s=e[6]:(s=D("flex items-center border-b px-3",u),e[5]=u,e[6]=s);let m;e[7]===n?m=e[8]:(m=n===null?null:(0,x.jsx)(Je,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e[7]=n,e[8]=m);let c;e[9]===a?c=e[10]:(c=D("placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",a),e[9]=a,e[10]=c);let p;e[11]!==l||e[12]!==r||e[13]!==c?(p=(0,x.jsx)(k.Input,{ref:r,className:c,...l}),e[11]=l,e[12]=r,e[13]=c,e[14]=p):p=e[14];let h;return e[15]!==s||e[16]!==m||e[17]!==p?(h=(0,x.jsxs)("div",{className:s,"cmdk-input-wrapper":"",children:[m,p]}),e[15]=s,e[16]=m,e[17]=p,e[18]=h):h=e[18],h});Ae.displayName=k.Input.displayName;var je=o.forwardRef((t,r)=>{let e=(0,j.c)(9),a,n;e[0]===t?(a=e[1],n=e[2]):({className:a,...n}=t,e[0]=t,e[1]=a,e[2]=n);let l;e[3]===a?l=e[4]:(l=D("max-h-[300px] overflow-y-auto overflow-x-hidden",a),e[3]=a,e[4]=l);let u;return e[5]!==n||e[6]!==r||e[7]!==l?(u=(0,x.jsx)(k.List,{ref:r,className:l,...n}),e[5]=n,e[6]=r,e[7]=l,e[8]=u):u=e[8],u});je.displayName=k.List.displayName;var $e=o.forwardRef((t,r)=>{let e=(0,j.c)(3),a;return e[0]!==t||e[1]!==r?(a=(0,x.jsx)(k.Empty,{ref:r,className:"py-6 text-center text-sm",...t}),e[0]=t,e[1]=r,e[2]=a):a=e[2],a});$e.displayName=k.Empty.displayName;var Me=o.forwardRef((t,r)=>{let e=(0,j.c)(9),a,n;e[0]===t?(a=e[1],n=e[2]):({className:a,...n}=t,e[0]=t,e[1]=a,e[2]=n);let l;e[3]===a?l=e[4]:(l=D("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",a),e[3]=a,e[4]=l);let u;return e[5]!==n||e[6]!==r||e[7]!==l?(u=(0,x.jsx)(k.Group,{ref:r,className:l,...n}),e[5]=n,e[6]=r,e[7]=l,e[8]=u):u=e[8],u});Me.displayName=k.Group.displayName;var Pe=o.forwardRef((t,r)=>{let e=(0,j.c)(9),a,n;e[0]===t?(a=e[1],n=e[2]):({className:a,...n}=t,e[0]=t,e[1]=a,e[2]=n);let l;e[3]===a?l=e[4]:(l=ze({className:a}),e[3]=a,e[4]=l);let u;return e[5]!==n||e[6]!==r||e[7]!==l?(u=(0,x.jsx)(k.Separator,{ref:r,className:l,...n}),e[5]=n,e[6]=r,e[7]=l,e[8]=u):u=e[8],u});Pe.displayName=k.Separator.displayName;var De=o.forwardRef((t,r)=>{let e=(0,j.c)(17),a,n,l,u,s;if(e[0]!==r||e[1]!==t){let{className:c,variant:p,inset:h,...w}=t;a=k.Item,n=r,e[7]!==c||e[8]!==h||e[9]!==p?(l=D(We({variant:p,inset:h}).replace(Be,"data-[disabled=false]:pointer-events-all data-[disabled=false]:opacity-100 data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"),c),e[7]=c,e[8]=h,e[9]=p,e[10]=l):l=e[10],u=w,s=Ze.htmlEscape(w.value),e[0]=r,e[1]=t,e[2]=a,e[3]=n,e[4]=l,e[5]=u,e[6]=s}else a=e[2],n=e[3],l=e[4],u=e[5],s=e[6];let m;return e[11]!==a||e[12]!==n||e[13]!==l||e[14]!==u||e[15]!==s?(m=(0,x.jsx)(a,{ref:n,className:l,...u,value:s}),e[11]=a,e[12]=n,e[13]=l,e[14]=u,e[15]=s,e[16]=m):m=e[16],m});De.displayName=k.Item.displayName;var $t=qe;export{Ae as a,Pe as c,Re as d,Me as i,$t as l,jt as n,De as o,$e as r,je as s,ue as t,oe as u};
@@ -1,2 +0,0 @@
1
- import{r as Oi}from"./chunk-LvLJmgfZ.js";let ae,ie,le,ge,ce,de,we,be,ue,pe,he,fe,me,ve,ye,xe,Se,Ce,Ae,Oe,Ie,Ne,Fe,De,Le,ke,Ee,Re,Te,Je,Ve,Ue,Pe,Be,Me,ze,je,We,He,qe,$e,Ke,Ge,Qe,Xe,Ye,Ze,et,tt,rt,_t,ot,nt,st,at,it,lt,gt,ct,dt,wt,bt,ut,pt,ht,ft,mt,vt,yt,xt,St,Ct,At,Ot,It,Nt,Ft,Dt,Lt,kt,Et,Rt,Tt,Jt,Vt,Ut,Pt,Bt,Mt,zt,jt,Wt,Ht,qt,$t,Kt,Gt,Qt,Xt,Yt,Zt,er,tr,rr,_r,or,nr,sr,ar,ir,lr,gr,cr,dr,wr,br,ur,pr,hr,fr,mr,vr,yr,xr,Sr,Cr,Ar,Or,Ir,Nr,Fr,Dr,Lr,kr,Er,Rr,Tr,Jr,Vr,Ur,Pr,Br,Mr,zr,jr,Wr,Hr,qr,$r,Kr,Gr,Qr,Xr,Yr,Zr,e_,t_,r_,__,o_,n_,s_,a_,i_,l_,g_,c_,d_,w_,b_,u_,p_,h_,f_,m_,v_,y_,x_,S_,C_,A_,O_,I_,N_,F_,D_,L_,k_,E_,R_,T_,J_,L,V_,U_,P_,B_,M_,z_,j_,W_,H_,q_,$_,K_,G_,Q_,Ii,X_,Y_,Z_,eo,Ni,to,ro,_o,oo,no,so,ao,io,lo,go,co,wo,bo,uo,po,ho,fo,mo,vo,yo,xo,So,Co,Ao,Oo,Io,No,Fo,Do,Lo,ko,Eo,Q,Ro,To,Jo,Vo,Uo,Po,X,Bo,Mo,zo,jo,Wo,Ho,qo,$o,Ko,Go,Qo,Xo,Yo,Zo,en,tn,rn,_n,on,nn,sn,an,ln,gn,cn,dn,wn,bn,un,pn,hn,fn,mn,vn,yn,xn,Sn,Cn,An,On,S,In,Nn,Fn,Dn,Ln,kn,En,Rn,Tn,Jn,Vn,Un,Pn,N,Bn,Mn,zn,jn,Wn,Hn,qn,$n,Kn,Gn,Qn,Xn,Yn,Zn,es,ts,rs,_s,os,ns,ss,as,is,ls,gs,cs,ds,ws,bs,us,ps,hs,Hi=(async()=>{let ms,vs,r;ms=""+new URL("loro_wasm_bg-WKwciKJa.wasm",import.meta.url).href,vs=async(_={},e)=>{let t;if(e.startsWith("data:")){let n=e.replace(/^data:.*?base64,/,""),a;if(typeof Buffer=="function"&&typeof Buffer.from=="function")a=Buffer.from(n,"base64");else if(typeof atob=="function"){let i=atob(n);a=new Uint8Array(i.length);for(let g=0;g<i.length;g++)a[g]=i.charCodeAt(g)}else throw Error("Cannot decode base64-encoded data URL");t=await WebAssembly.instantiate(a,_)}else{let n=await fetch(e),a=n.headers.get("Content-Type")||"";if("instantiateStreaming"in WebAssembly&&a.startsWith("application/wasm"))t=await WebAssembly.instantiateStreaming(n,_);else{let i=await n.arrayBuffer();t=await WebAssembly.instantiate(i,_)}}return t.instance.exports},Ni=Oi({AwarenessWasm:()=>Zo,ChangeModifier:()=>re,Cursor:()=>S,EphemeralStoreWasm:()=>D_,LORO_VERSION:()=>Pi,LoroCounter:()=>V,LoroDoc:()=>Q,LoroList:()=>B,LoroMap:()=>N,LoroMovableList:()=>j,LoroText:()=>L,LoroTree:()=>q,LoroTreeNode:()=>D,UndoManager:()=>G_,VersionVector:()=>x,__wbg_String_8f0eb39a4a4c2f66:()=>Cs,__wbg_apply_36be6a55257c99bf:()=>As,__wbg_apply_eb9e9b97497f91e4:()=>Os,__wbg_buffer_609cc3eee51ed158:()=>Is,__wbg_call_672a4d21634d4a24:()=>Ns,__wbg_call_7cccdd69e0791ae2:()=>Fs,__wbg_call_833bed5770ea2041:()=>Ds,__wbg_call_b8adc8b1d0a0d8eb:()=>Ls,__wbg_changemodifier_new:()=>ks,__wbg_crypto_574e78ad8b13b65f:()=>Es,__wbg_cursor_new:()=>Rs,__wbg_done_769e5ede4b31c67b:()=>Ts,__wbg_entries_3265d4158b33e5dc:()=>Js,__wbg_entries_c8a90a7ed73e84ce:()=>Vs,__wbg_error_1cb1bf0bb7e0da2b:()=>Us,__wbg_error_7534b8e9a36f1ab4:()=>Ps,__wbg_from_2a5d3e218e67aa85:()=>Bs,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:()=>Ms,__wbg_getRandomValues_b8f5dbd5f3995a9e:()=>zs,__wbg_get_67b2ba62fc30de12:()=>js,__wbg_get_b9b93047fe3cf45b:()=>Ws,__wbg_getindex_5b00c274b05714aa:()=>Hs,__wbg_getwithrefkey_1dc361bd10053bfe:()=>qs,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:()=>$s,__wbg_instanceof_Map_f3469ce2244d2430:()=>Ks,__wbg_instanceof_Object_7f2dcef8f78644a4:()=>Gs,__wbg_instanceof_Uint8Array_17156bcf118086a9:()=>Qs,__wbg_isArray_a1eab7e0d067391b:()=>Xs,__wbg_isSafeInteger_343e2beeeece1bb0:()=>Ys,__wbg_iterator_9a24c88df860dc65:()=>Zs,__wbg_length_a446193dc22c12f8:()=>ea,__wbg_length_e2d2a49132c1b256:()=>ta,__wbg_log_0671e6aa34e04626:()=>ra,__wbg_log_0cc1b7768397bcfe:()=>_a,__wbg_log_cb9e190acc5753fb:()=>oa,__wbg_lorocounter_new:()=>na,__wbg_lorolist_new:()=>sa,__wbg_loromap_new:()=>aa,__wbg_loromovablelist_new:()=>ia,__wbg_lorotext_new:()=>la,__wbg_lorotree_new:()=>ga,__wbg_lorotreenode_new:()=>ca,__wbg_mark_7438147ce31e9d4b:()=>da,__wbg_measure_fb7825c11612c823:()=>wa,__wbg_msCrypto_a61aeb35a24c1329:()=>ba,__wbg_new_405e22f390576ce2:()=>ua,__wbg_new_5e0be73521bc8c17:()=>pa,__wbg_new_78feb108b6472713:()=>ha,__wbg_new_8a6f238a6ece86ea:()=>fa,__wbg_new_a12002a7f91c75be:()=>ma,__wbg_newnoargs_105ed471475aaf50:()=>va,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:()=>ya,__wbg_newwithlength_a381634e90c276d4:()=>xa,__wbg_newwithlength_c4c419ef0bc8a1f8:()=>Sa,__wbg_next_25feadfc0913fea9:()=>Ca,__wbg_next_6574e1a8a62d1055:()=>Aa,__wbg_node_905d3e251edff8a2:()=>Oa,__wbg_now_c8bdc8efc8c495eb:()=>Ia,__wbg_ownKeys_3930041068756f1f:()=>Na,__wbg_process_dc0fbacc7c1c06f7:()=>Fa,__wbg_push_737cfc8c1432c2c6:()=>Da,__wbg_randomFillSync_ac0988aba3254290:()=>La,__wbg_require_60cc747a6bc5215a:()=>ka,__wbg_resolve_4851785c9c5f573d:()=>Ea,__wbg_set_37837023f3d740e8:()=>Ra,__wbg_set_3f1d0b984ed272ed:()=>Ta,__wbg_set_65595bdd868b3009:()=>Ja,__wbg_set_8fc6bf8a5b1071d1:()=>Va,__wbg_set_bb8cecf6a62b9f46:()=>Ua,__wbg_set_wasm:()=>sn,__wbg_setindex_dcd71eabf405bde1:()=>Pa,__wbg_stack_0ed75d68575b0f3c:()=>Ba,__wbg_static_accessor_GLOBAL_88a902d13a557d07:()=>Ma,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:()=>za,__wbg_static_accessor_SELF_37c5d418e4bf5819:()=>ja,__wbg_static_accessor_WINDOW_5de37043a91a9c40:()=>Wa,__wbg_subarray_aa9065fa9dc5df96:()=>Ha,__wbg_then_44b73946d2fb3e7d:()=>qa,__wbg_value_cd1ffa7b1ab794f1:()=>$a,__wbg_versions_c01dfd4722a88165:()=>Ka,__wbg_versionvector_new:()=>Ga,__wbg_warn_90235b184e422485:()=>Qa,__wbindgen_as_number:()=>Xa,__wbindgen_bigint_from_i64:()=>Ya,__wbindgen_bigint_from_u64:()=>Za,__wbindgen_bigint_get_as_i64:()=>ei,__wbindgen_boolean_get:()=>ti,__wbindgen_cb_drop:()=>ri,__wbindgen_closure_wrapper718:()=>_i,__wbindgen_closure_wrapper721:()=>oi,__wbindgen_debug_string:()=>ni,__wbindgen_error_new:()=>si,__wbindgen_in:()=>ai,__wbindgen_init_externref_table:()=>X,__wbindgen_is_array:()=>ii,__wbindgen_is_bigint:()=>li,__wbindgen_is_falsy:()=>gi,__wbindgen_is_function:()=>ci,__wbindgen_is_null:()=>di,__wbindgen_is_object:()=>wi,__wbindgen_is_string:()=>bi,__wbindgen_is_undefined:()=>ui,__wbindgen_jsval_eq:()=>pi,__wbindgen_jsval_loose_eq:()=>hi,__wbindgen_memory:()=>fi,__wbindgen_number_get:()=>mi,__wbindgen_number_new:()=>vi,__wbindgen_rethrow:()=>yi,__wbindgen_string_get:()=>xi,__wbindgen_string_new:()=>Si,__wbindgen_throw:()=>Ci,__wbindgen_typeof:()=>Ai,callPendingEvents:()=>ao,decodeFrontiers:()=>Ji,decodeImportBlobMeta:()=>Bi,encodeFrontiers:()=>Mi,redactJsonUpdates:()=>Ui,run:()=>zi,setDebug:()=>Vi},1),sn=function(_){r=_};var l=0,R=null;function A(){return(R===null||R.byteLength===0)&&(R=new Uint8Array(r.memory.buffer)),R}var T=new(typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder)("utf-8"),Ti=typeof T.encodeInto=="function"?function(_,e){return T.encodeInto(_,e)}:function(_,e){let t=T.encode(_);return e.set(t),{read:_.length,written:t.length}};function d(_,e,t){if(t===void 0){let c=T.encode(_),h=e(c.length,1)>>>0;return A().subarray(h,h+c.length).set(c),l=c.length,h}let n=_.length,a=e(n,1)>>>0,i=A(),g=0;for(;g<n;g++){let c=_.charCodeAt(g);if(c>127)break;i[a+g]=c}if(g!==n){g!==0&&(_=_.slice(g)),a=t(a,n,n=g+_.length*3,1)>>>0;let c=A().subarray(a+g,a+n),h=Ti(_,c);g+=h.written,a=t(a,n,g,1)>>>0}return l=g,a}var O=null;function u(){return(O===null||O.buffer.detached===!0||O.buffer.detached===void 0&&O.buffer!==r.memory.buffer)&&(O=new DataView(r.memory.buffer)),O}function C(_){let e=r.__externref_table_alloc();return r.__wbindgen_export_4.set(e,_),e}function p(_,e){try{return _.apply(this,e)}catch(t){let n=C(t);r.__wbindgen_exn_store(n)}}var ys=new(typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});ys.decode();function w(_,e){return _>>>=0,ys.decode(A().subarray(_,_+e))}function b(_){return _==null}var xs=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>{r.__wbindgen_export_6.get(_.dtor)(_.a,_.b)});function Ss(_,e,t,n){let a={a:_,b:e,cnt:1,dtor:t},i=(...g)=>{a.cnt++;let c=a.a;a.a=0;try{return n(c,a.b,...g)}finally{--a.cnt===0?(r.__wbindgen_export_6.get(a.dtor)(c,a.b),xs.unregister(a)):a.a=c}};return i.original=a,xs.register(i,a,a),i}function Z(_){let e=typeof _;if(e=="number"||e=="boolean"||_==null)return`${_}`;if(e=="string")return`"${_}"`;if(e=="symbol"){let a=_.description;return a==null?"Symbol":`Symbol(${a})`}if(e=="function"){let a=_.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(_)){let a=_.length,i="[";a>0&&(i+=Z(_[0]));for(let g=1;g<a;g++)i+=", "+Z(_[g]);return i+="]",i}let t=/\[object ([^\]]+)\]/.exec(toString.call(_)),n;if(t&&t.length>1)n=t[1];else return toString.call(_);if(n=="Object")try{return"Object("+JSON.stringify(_)+")"}catch{return"Object"}return _ instanceof Error?`${_.name}: ${_.message}
2
- ${_.stack}`:n}function s(_){let e=r.__wbindgen_export_4.get(_);return r.__externref_table_dealloc(_),e}function I(_,e){if(!(_ instanceof e))throw Error(`expected instance of ${e.name}`)}function v(_,e){let t=e(_.length*1,1)>>>0;return A().set(_,t/1),l=_.length,t}function y(_,e){return _>>>=0,A().subarray(_/1,_/1+e)}function m(_,e){_>>>=0;let t=u(),n=[];for(let a=_;a<_+4*e;a+=4)n.push(r.__wbindgen_export_4.get(t.getUint32(a,!0)));return r.__externref_drop_slice(_,e),n}ao=function(){r.callPendingEvents()};function Ji(_){let e=v(_,r.__wbindgen_malloc),t=l,n=r.decodeFrontiers(e,t);if(n[2])throw s(n[1]);return s(n[0])}function Vi(){r.setDebug()}function Ui(_,e){let t=r.redactJsonUpdates(_,e);if(t[2])throw s(t[1]);return s(t[0])}function Pi(){let _,e;try{let t=r.LORO_VERSION();return _=t[0],e=t[1],w(t[0],t[1])}finally{r.__wbindgen_free(_,e,1)}}function Bi(_,e){let t=v(_,r.__wbindgen_malloc),n=l,a=r.decodeImportBlobMeta(t,n,e);if(a[2])throw s(a[1]);return s(a[0])}function f(_,e){let t=e(_.length*4,4)>>>0;for(let n=0;n<_.length;n++){let a=C(_[n]);u().setUint32(t+4*n,a,!0)}return l=_.length,t}function Mi(_){let e=f(_,r.__wbindgen_malloc),t=l,n=r.encodeFrontiers(e,t);if(n[3])throw s(n[2]);var a=y(n[0],n[1]).slice();return r.__wbindgen_free(n[0],n[1]*1,1),a}function zi(){r.run()}function ji(_,e,t){r.closure9_externref_shim(_,e,t)}function Wi(_,e){r._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156(_,e)}let ee,te,re,_e,oe,J,V,U,P,B,M,z,j,W,H,q,ne,D,se,$,x;ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_awarenesswasm_free(_>>>0,1)),Zo=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_awarenesswasm_free(_,0)}getAllStates(){let _=r.awarenesswasm_getAllStates(this.__wbg_ptr);if(_[2])throw s(_[1]);return s(_[0])}getTimestamp(_){let e=r.awarenesswasm_getTimestamp(this.__wbg_ptr,_);if(e[3])throw s(e[2]);return e[0]===0?void 0:e[1]}setLocalState(_){r.awarenesswasm_setLocalState(this.__wbg_ptr,_)}removeOutdated(){let _=r.awarenesswasm_removeOutdated(this.__wbg_ptr);var e=m(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}constructor(_,e){let t=r.awarenesswasm_new(_,e);if(t[2])throw s(t[1]);return this.__wbg_ptr=t[0]>>>0,ee.register(this,this.__wbg_ptr,this),this}peer(){return r.awarenesswasm_peer(this.__wbg_ptr)}apply(_){let e=v(_,r.__wbindgen_malloc),t=l,n=r.awarenesswasm_apply(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}peers(){let _=r.awarenesswasm_peers(this.__wbg_ptr);var e=m(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}encode(_){let e=r.awarenesswasm_encode(this.__wbg_ptr,_);if(e[3])throw s(e[2]);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}length(){return r.awarenesswasm_length(this.__wbg_ptr)}isEmpty(){return r.awarenesswasm_isEmpty(this.__wbg_ptr)!==0}getState(_){let e=r.awarenesswasm_getState(this.__wbg_ptr,_);if(e[2])throw s(e[1]);return s(e[0])}encodeAll(){let _=r.awarenesswasm_encodeAll(this.__wbg_ptr);var e=y(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*1,1),e}},te=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_changemodifier_free(_>>>0,1)),re=class Y{static __wrap(e){e>>>=0;let t=Object.create(Y.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_changemodifier_free(e,0)}setMessage(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.changemodifier_setMessage(this.__wbg_ptr,t,n);return Y.__wrap(a)}setTimestamp(e){let t=r.changemodifier_setTimestamp(this.__wbg_ptr,e);return Y.__wrap(t)}},_e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_cursor_free(_>>>0,1)),S=class fs{static __wrap(e){e>>>=0;let t=Object.create(fs.prototype);return t.__wbg_ptr=e,_e.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,_e.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_cursor_free(e,0)}containerId(){return r.cursor_containerId(this.__wbg_ptr)}pos(){let e=r.cursor_pos(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}kind(){return r.cursor_kind(this.__wbg_ptr)}side(){return r.cursor_side(this.__wbg_ptr)}static decode(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.cursor_decode(t,n);if(a[2])throw s(a[1]);return fs.__wrap(a[0])}encode(){let e=r.cursor_encode(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}},oe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ephemeralstorewasm_free(_>>>0,1)),D_=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_ephemeralstorewasm_free(_,0)}getAllStates(){let _=r.ephemeralstorewasm_getAllStates(this.__wbg_ptr);if(_[2])throw s(_[1]);return s(_[0])}removeOutdated(){r.ephemeralstorewasm_removeOutdated(this.__wbg_ptr)}subscribeLocalUpdates(_){return r.ephemeralstorewasm_subscribeLocalUpdates(this.__wbg_ptr,_)}get(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l;return r.ephemeralstorewasm_get(this.__wbg_ptr,e,t)}constructor(_){return this.__wbg_ptr=r.ephemeralstorewasm_new(_)>>>0,oe.register(this,this.__wbg_ptr,this),this}set(_,e){let t=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.ephemeralstorewasm_set(this.__wbg_ptr,t,n,e)}keys(){let _=r.ephemeralstorewasm_keys(this.__wbg_ptr);var e=m(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}apply(_){let e=v(_,r.__wbindgen_malloc),t=l,n=r.ephemeralstorewasm_apply(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}delete(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l;r.ephemeralstorewasm_delete(this.__wbg_ptr,e,t)}encode(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l,n=r.ephemeralstorewasm_encode(this.__wbg_ptr,e,t);var a=y(n[0],n[1]).slice();return r.__wbindgen_free(n[0],n[1]*1,1),a}isEmpty(){return r.ephemeralstorewasm_isEmpty(this.__wbg_ptr)!==0}encodeAll(){let _=r.ephemeralstorewasm_encodeAll(this.__wbg_ptr);var e=y(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*1,1),e}subscribe(_){return r.ephemeralstorewasm_subscribe(this.__wbg_ptr,_)}},J=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorocounter_free(_>>>0,1)),V=class Fi{static __wrap(e){e>>>=0;let t=Object.create(Fi.prototype);return t.__wbg_ptr=e,J.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorocounter_free(e,0)}isAttached(){return r.lorocounter_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorocounter_getAttached(this.__wbg_ptr)}getShallowValue(){let e=r.lorocounter_getShallowValue(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]}get id(){return r.lorocounter_id(this.__wbg_ptr)}constructor(){return this.__wbg_ptr=r.lorocounter_new()>>>0,J.register(this,this.__wbg_ptr,this),this}kind(){return r.lorocounter_kind(this.__wbg_ptr)}parent(){return r.lorocounter_parent(this.__wbg_ptr)}toJSON(){let e=r.lorocounter_toJSON(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]}decrement(e){let t=r.lorocounter_decrement(this.__wbg_ptr,e);if(t[1])throw s(t[0])}get value(){let e=r.lorocounter_value(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]}increment(e){let t=r.lorocounter_increment(this.__wbg_ptr,e);if(t[1])throw s(t[0])}subscribe(e){let t=r.lorocounter_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},U=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorodoc_free(_>>>0,1)),Q=class k{static __wrap(e){e>>>=0;let t=Object.create(k.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorodoc_free(e,0)}applyDiff(e){let t=r.lorodoc_applyDiff(this.__wbg_ptr,e);if(t[1])throw s(t[0])}isShallow(){return r.lorodoc_isShallow(this.__wbg_ptr)!==0}changeCount(){return r.lorodoc_changeCount(this.__wbg_ptr)>>>0}getByPath(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;return r.lorodoc_getByPath(this.__wbg_ptr,t,n)}getCounter(e){let t=r.lorodoc_getCounter(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return V.__wrap(t[0])}isDetached(){return r.lorodoc_isDetached(this.__wbg_ptr)!==0}get peerIdStr(){return r.lorodoc_peerIdStr(this.__wbg_ptr)}setPeerId(e){let t=r.lorodoc_setPeerId(this.__wbg_ptr,e);if(t[1])throw s(t[0])}getCursorPos(e){I(e,S);let t=r.lorodoc_getCursorPos(this.__wbg_ptr,e.__wbg_ptr);if(t[2])throw s(t[1]);return s(t[0])}hasContainer(e){return r.lorodoc_hasContainer(this.__wbg_ptr,e)!==0}importBatch(e){let t=r.lorodoc_importBatch(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}cmpFrontiers(e,t){let n=f(e,r.__wbindgen_malloc),a=l,i=f(t,r.__wbindgen_malloc),g=l,c=r.lorodoc_cmpFrontiers(this.__wbg_ptr,n,a,i,g);if(c[2])throw s(c[1]);return s(c[0])}debugHistory(){r.lorodoc_debugHistory(this.__wbg_ptr)}static fromSnapshot(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_fromSnapshot(t,n);if(a[2])throw s(a[1]);return k.__wrap(a[0])}getChangeAt(e){let t=r.lorodoc_getChangeAt(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}oplogVersion(){let e=r.lorodoc_oplogVersion(this.__wbg_ptr);return x.__wrap(e)}getMovableList(e){let t=r.lorodoc_getMovableList(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return j.__wrap(t[0])}frontiersToVV(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_frontiersToVV(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return x.__wrap(a[0])}getAllChanges(){return r.lorodoc_getAllChanges(this.__wbg_ptr)}oplogFrontiers(){let e=r.lorodoc_oplogFrontiers(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}vvToFrontiers(e){I(e,x);let t=r.lorodoc_vvToFrontiers(this.__wbg_ptr,e.__wbg_ptr);if(t[2])throw s(t[1]);return s(t[0])}shallowSinceVV(){let e=r.lorodoc_shallowSinceVV(this.__wbg_ptr);return x.__wrap(e)}configTextStyle(e){let t=r.lorodoc_configTextStyle(this.__wbg_ptr,e);if(t[1])throw s(t[0])}getOpsInChange(e){let t=r.lorodoc_getOpsInChange(this.__wbg_ptr,e);if(t[3])throw s(t[2]);var n=m(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*4,4),n}getShallowValue(){let e=r.lorodoc_getShallowValue(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}checkoutToLatest(){let e=r.lorodoc_checkoutToLatest(this.__wbg_ptr);if(e[1])throw s(e[0])}cmpWithFrontiers(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_cmpWithFrontiers(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return a[0]}exportJsonInIdSpan(e){let t=r.lorodoc_exportJsonInIdSpan(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}subscribeJsonpath(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorodoc_subscribeJsonpath(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}deleteRootContainer(e){let t=r.lorodoc_deleteRootContainer(this.__wbg_ptr,e);if(t[1])throw s(t[0])}exportJsonUpdates(e,t,n){let a=r.lorodoc_exportJsonUpdates(this.__wbg_ptr,e,t,b(n)?16777215:n?1:0);if(a[2])throw s(a[1]);return s(a[0])}getContainerById(e){let t=r.lorodoc_getContainerById(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}getPendingTxnLength(){return r.lorodoc_getPendingTxnLength(this.__wbg_ptr)>>>0}importJsonUpdates(e){let t=r.lorodoc_importJsonUpdates(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}importUpdateBatch(e){let t=r.lorodoc_importUpdateBatch(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}setDetachedEditing(e){r.lorodoc_setDetachedEditing(this.__wbg_ptr,e)}setRecordTimestamp(e){r.lorodoc_setRecordTimestamp(this.__wbg_ptr,e)}subscribePreCommit(e){return r.lorodoc_subscribePreCommit(this.__wbg_ptr,e)}findIdSpansBetween(e,t){let n=f(e,r.__wbindgen_malloc),a=l,i=f(t,r.__wbindgen_malloc),g=l,c=r.lorodoc_findIdSpansBetween(this.__wbg_ptr,n,a,i,g);if(c[2])throw s(c[1]);return s(c[0])}getChangeAtLamport(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorodoc_getChangeAtLamport(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}getPathToContainer(e){let t=r.lorodoc_getPathToContainer(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}getChangedContainersIn(e,t){let n=r.lorodoc_getChangedContainersIn(this.__wbg_ptr,e,t);if(n[3])throw s(n[2]);var a=m(n[0],n[1]).slice();return r.__wbindgen_free(n[0],n[1]*4,4),a}getDeepValueWithID(){return r.lorodoc_getDeepValueWithID(this.__wbg_ptr)}setNextCommitOrigin(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.lorodoc_setNextCommitOrigin(this.__wbg_ptr,t,n)}getUncommittedOpsAsJson(){let e=r.lorodoc_getUncommittedOpsAsJson(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}setNextCommitMessage(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;r.lorodoc_setNextCommitMessage(this.__wbg_ptr,t,n)}setNextCommitOptions(e){let t=r.lorodoc_setNextCommitOptions(this.__wbg_ptr,e);if(t[1])throw s(t[0])}shallowSinceFrontiers(){let e=r.lorodoc_shallowSinceFrontiers(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}subscribeLocalUpdates(e){return r.lorodoc_subscribeLocalUpdates(this.__wbg_ptr,e)}travelChangeAncestors(e,t){let n=f(e,r.__wbindgen_malloc),a=l,i=r.lorodoc_travelChangeAncestors(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}clearNextCommitOptions(){r.lorodoc_clearNextCommitOptions(this.__wbg_ptr)}configDefaultTextStyle(e){let t=r.lorodoc_configDefaultTextStyle(this.__wbg_ptr,e);if(t[1])throw s(t[0])}setChangeMergeInterval(e){r.lorodoc_setChangeMergeInterval(this.__wbg_ptr,e)}setNextCommitTimestamp(e){r.lorodoc_setNextCommitTimestamp(this.__wbg_ptr,e)}setHideEmptyRootContainers(e){let t=r.lorodoc_setHideEmptyRootContainers(this.__wbg_ptr,e);if(t[1])throw s(t[0])}isDetachedEditingEnabled(){return r.lorodoc_isDetachedEditingEnabled(this.__wbg_ptr)!==0}subscribeFirstCommitFromPeer(e){return r.lorodoc_subscribeFirstCommitFromPeer(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=r.lorodoc_new()>>>0,U.register(this,this.__wbg_ptr,this),this}diff(e,t,n){let a=f(e,r.__wbindgen_malloc),i=l,g=f(t,r.__wbindgen_malloc),c=l,h=r.lorodoc_diff(this.__wbg_ptr,a,i,g,c,b(n)?16777215:n?1:0);if(h[2])throw s(h[1]);return s(h[0])}fork(){let e=r.lorodoc_fork(this.__wbg_ptr);return k.__wrap(e)}attach(){r.lorodoc_attach(this.__wbg_ptr)}commit(e){let t=r.lorodoc_commit(this.__wbg_ptr,b(e)?0:C(e));if(t[1])throw s(t[0])}detach(){r.lorodoc_detach(this.__wbg_ptr)}export(e){let t=r.lorodoc_export(this.__wbg_ptr,e);if(t[3])throw s(t[2]);var n=y(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),n}import(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_import(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return s(a[0])}forkAt(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_forkAt(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return k.__wrap(a[0])}getMap(e){let t=r.lorodoc_getMap(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return N.__wrap(t[0])}opCount(){return r.lorodoc_opCount(this.__wbg_ptr)>>>0}get peerId(){let e=r.lorodoc_peerId(this.__wbg_ptr);return BigInt.asUintN(64,e)}toJSON(){let e=r.lorodoc_toJSON(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}version(){let e=r.lorodoc_version(this.__wbg_ptr);return x.__wrap(e)}checkout(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_checkout(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}getList(e){let t=r.lorodoc_getList(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return B.__wrap(t[0])}getText(e){let t=r.lorodoc_getText(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return L.__wrap(t[0])}getTree(e){let t=r.lorodoc_getTree(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return q.__wrap(t[0])}frontiers(){let e=r.lorodoc_frontiers(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}JSONPath(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.lorodoc_JSONPath(this.__wbg_ptr,t,n);if(a[2])throw s(a[1]);return s(a[0])}revertTo(e){let t=f(e,r.__wbindgen_malloc),n=l,a=r.lorodoc_revertTo(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}subscribe(e){return r.lorodoc_subscribe(this.__wbg_ptr,e)}},P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorolist_free(_>>>0,1)),B=class Di{static __wrap(e){e>>>=0;let t=Object.create(Di.prototype);return t.__wbg_ptr=e,P.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorolist_free(e,0)}isAttached(){return r.lorolist_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorolist_getAttached(this.__wbg_ptr)}pushContainer(e){let t=r.lorolist_pushContainer(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}insertContainer(e,t){let n=r.lorolist_insertContainer(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getShallowValue(){return r.lorolist_getShallowValue(this.__wbg_ptr)}get id(){return r.lorolist_id(this.__wbg_ptr)}get(e){return r.lorolist_get(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=r.lorolist_new()>>>0,P.register(this,this.__wbg_ptr,this),this}pop(){let e=r.lorolist_pop(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}kind(){return r.lorolist_kind(this.__wbg_ptr)}push(e){let t=r.lorolist_push(this.__wbg_ptr,e);if(t[1])throw s(t[0])}clear(){let e=r.lorolist_clear(this.__wbg_ptr);if(e[1])throw s(e[0])}delete(e,t){let n=r.lorolist_delete(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}insert(e,t){let n=r.lorolist_insert(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}get length(){return r.lorolist_length(this.__wbg_ptr)>>>0}parent(){return r.lorolist_parent(this.__wbg_ptr)}getIdAt(e){let t=r.lorolist_getIdAt(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}toJSON(){return r.lorolist_toJSON(this.__wbg_ptr)}toArray(){let e=r.lorolist_toArray(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}getCursor(e,t){let n=r.lorolist_getCursor(this.__wbg_ptr,e,t);return n===0?void 0:S.__wrap(n)}isDeleted(){return r.lorolist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorolist_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},M=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_loromap_free(_>>>0,1)),N=class Li{static __wrap(e){e>>>=0;let t=Object.create(Li.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_loromap_free(e,0)}isAttached(){return r.loromap_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.loromap_getAttached(this.__wbg_ptr)}getLastEditor(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;return r.loromap_getLastEditor(this.__wbg_ptr,t,n)}setContainer(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.loromap_setContainer(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}getShallowValue(){return r.loromap_getShallowValue(this.__wbg_ptr)}getOrCreateContainer(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.loromap_getOrCreateContainer(this.__wbg_ptr,n,a,t);if(i[2])throw s(i[1]);return s(i[0])}get id(){return r.loromap_id(this.__wbg_ptr)}get(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;return r.loromap_get(this.__wbg_ptr,t,n)}constructor(){return this.__wbg_ptr=r.loromap_new()>>>0,M.register(this,this.__wbg_ptr,this),this}keys(){let e=r.loromap_keys(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}kind(){return r.loromap_kind(this.__wbg_ptr)}get size(){return r.loromap_size(this.__wbg_ptr)>>>0}clear(){let e=r.loromap_clear(this.__wbg_ptr);if(e[1])throw s(e[0])}delete(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.loromap_delete(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}set(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.loromap_set(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}parent(){return r.loromap_parent(this.__wbg_ptr)}values(){let e=r.loromap_values(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}entries(){let e=r.loromap_entries(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}toJSON(){return r.loromap_toJSON(this.__wbg_ptr)}isDeleted(){return r.loromap_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.loromap_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_loromovablelist_free(_>>>0,1)),j=class ki{static __wrap(e){e>>>=0;let t=Object.create(ki.prototype);return t.__wbg_ptr=e,z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_loromovablelist_free(e,0)}isAttached(){return r.loromovablelist_isAttached(this.__wbg_ptr)!==0}getCreatorAt(e){return r.loromovablelist_getCreatorAt(this.__wbg_ptr,e)}getAttached(){return r.loromovablelist_getAttached(this.__wbg_ptr)}setContainer(e,t){let n=r.loromovablelist_setContainer(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getLastMoverAt(e){return r.loromovablelist_getLastMoverAt(this.__wbg_ptr,e)}pushContainer(e){let t=r.loromovablelist_pushContainer(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}getLastEditorAt(e){return r.loromovablelist_getLastEditorAt(this.__wbg_ptr,e)}insertContainer(e,t){let n=r.loromovablelist_insertContainer(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getShallowValue(){return r.loromovablelist_getShallowValue(this.__wbg_ptr)}get id(){return r.loromovablelist_id(this.__wbg_ptr)}get(e){return r.loromovablelist_get(this.__wbg_ptr,e)}move(e,t){let n=r.loromovablelist_move(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}constructor(){return this.__wbg_ptr=r.loromovablelist_new()>>>0,z.register(this,this.__wbg_ptr,this),this}pop(){let e=r.loromovablelist_pop(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}set(e,t){let n=r.loromovablelist_set(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}kind(){return r.loromovablelist_kind(this.__wbg_ptr)}push(e){let t=r.loromovablelist_push(this.__wbg_ptr,e);if(t[1])throw s(t[0])}clear(){let e=r.loromovablelist_clear(this.__wbg_ptr);if(e[1])throw s(e[0])}delete(e,t){let n=r.loromovablelist_delete(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}insert(e,t){let n=r.loromovablelist_insert(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}get length(){return r.loromovablelist_length(this.__wbg_ptr)>>>0}parent(){return r.loromovablelist_parent(this.__wbg_ptr)}toJSON(){return r.loromovablelist_toJSON(this.__wbg_ptr)}toArray(){let e=r.loromovablelist_toArray(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}getCursor(e,t){let n=r.loromovablelist_getCursor(this.__wbg_ptr,e,t);return n===0?void 0:S.__wrap(n)}isDeleted(){return r.loromovablelist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.loromovablelist_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},W=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotext_free(_>>>0,1)),L=class Ei{static __wrap(e){e>>>=0;let t=Object.create(Ei.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotext_free(e,0)}applyDelta(e){let t=r.lorotext_applyDelta(this.__wbg_ptr,e);if(t[1])throw s(t[0])}convertPos(e,t,n){let a=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,g=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=l;return r.lorotext_convertPos(this.__wbg_ptr,e,a,i,g,c)}deleteUtf8(e,t){let n=r.lorotext_deleteUtf8(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}getEditorOf(e){return r.lorotext_getEditorOf(this.__wbg_ptr,e)}insertUtf8(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_insertUtf8(this.__wbg_ptr,e,n,a);if(i[1])throw s(i[0])}isAttached(){return r.lorotext_isAttached(this.__wbg_ptr)!==0}sliceDelta(e,t){let n=r.lorotext_sliceDelta(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getAttached(){return r.lorotext_getAttached(this.__wbg_ptr)}updateByLine(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_updateByLine(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}sliceDeltaUtf8(e,t){let n=r.lorotext_sliceDeltaUtf8(this.__wbg_ptr,e,t);if(n[2])throw s(n[1]);return s(n[0])}getShallowValue(){let e,t;try{let n=r.lorotext_getShallowValue(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get id(){return r.lorotext_id(this.__wbg_ptr)}constructor(){return this.__wbg_ptr=r.lorotext_new()>>>0,W.register(this,this.__wbg_ptr,this),this}iter(e){let t=r.lorotext_iter(this.__wbg_ptr,e);if(t[1])throw s(t[0])}kind(){return r.lorotext_kind(this.__wbg_ptr)}mark(e,t,n){let a=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l,g=r.lorotext_mark(this.__wbg_ptr,e,a,i,n);if(g[1])throw s(g[0])}push(e){let t=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=l,a=r.lorotext_push(this.__wbg_ptr,t,n);if(a[1])throw s(a[0])}slice(e,t){let n,a;try{let c=r.lorotext_slice(this.__wbg_ptr,e,t);var i=c[0],g=c[1];if(c[3])throw i=0,g=0,s(c[2]);return n=i,a=g,w(i,g)}finally{r.__wbindgen_free(n,a,1)}}delete(e,t){let n=r.lorotext_delete(this.__wbg_ptr,e,t);if(n[1])throw s(n[0])}insert(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_insert(this.__wbg_ptr,e,n,a);if(i[1])throw s(i[0])}get length(){return r.lorotext_length(this.__wbg_ptr)>>>0}parent(){return r.lorotext_parent(this.__wbg_ptr)}splice(e,t,n){let a,i;try{let h=d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),K=l,G=r.lorotext_splice(this.__wbg_ptr,e,t,h,K);var g=G[0],c=G[1];if(G[3])throw g=0,c=0,s(G[2]);return a=g,i=c,w(g,c)}finally{r.__wbindgen_free(a,i,1)}}unmark(e,t){let n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_unmark(this.__wbg_ptr,e,n,a);if(i[1])throw s(i[0])}update(e,t){let n=d(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l,i=r.lorotext_update(this.__wbg_ptr,n,a,t);if(i[1])throw s(i[0])}charAt(e){let t=r.lorotext_charAt(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return String.fromCodePoint(t[0])}toJSON(){return r.lorotext_toJSON(this.__wbg_ptr)}toDelta(){let e=r.lorotext_toDelta(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}getCursor(e,t){let n=r.lorotext_getCursor(this.__wbg_ptr,e,t);return n===0?void 0:S.__wrap(n)}isDeleted(){return r.lorotext_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorotext_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}toString(){let e,t;try{let n=r.lorotext_toString(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}},H=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotree_free(_>>>0,1)),q=class Ri{static __wrap(e){e>>>=0;let t=Object.create(Ri.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotree_free(e,0)}createNode(e,t){let n=r.lorotree_createNode(this.__wbg_ptr,e,b(t)?4294967297:t>>>0);if(n[2])throw s(n[1]);return D.__wrap(n[0])}isAttached(){return r.lorotree_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorotree_getAttached(this.__wbg_ptr)}getNodeByID(e){let t=r.lorotree_getNodeByID(this.__wbg_ptr,e);return t===0?void 0:D.__wrap(t)}isNodeDeleted(e){let t=r.lorotree_isNodeDeleted(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return t[0]!==0}getShallowValue(){return r.lorotree_getShallowValue(this.__wbg_ptr)}enableFractionalIndex(e){r.lorotree_enableFractionalIndex(this.__wbg_ptr,e)}disableFractionalIndex(){r.lorotree_disableFractionalIndex(this.__wbg_ptr)}isFractionalIndexEnabled(){return r.lorotree_isFractionalIndexEnabled(this.__wbg_ptr)!==0}get id(){return r.lorotree_id(this.__wbg_ptr)}move(e,t,n){let a=r.lorotree_move(this.__wbg_ptr,e,t,b(n)?4294967297:n>>>0);if(a[1])throw s(a[0])}constructor(){return this.__wbg_ptr=r.lorotree_new()>>>0,H.register(this,this.__wbg_ptr,this),this}kind(){return r.lorotree_kind(this.__wbg_ptr)}nodes(){let e=r.lorotree_nodes(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}roots(){let e=r.lorotree_roots(this.__wbg_ptr);var t=m(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}delete(e){let t=r.lorotree_delete(this.__wbg_ptr,e);if(t[1])throw s(t[0])}parent(){return r.lorotree_parent(this.__wbg_ptr)}toJSON(){return r.lorotree_toJSON(this.__wbg_ptr)}has(e){return r.lorotree_has(this.__wbg_ptr,e)!==0}toArray(){let e=r.lorotree_toArray(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}getNodes(e){let t=r.lorotree_getNodes(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}isDeleted(){return r.lorotree_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorotree_subscribe(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return s(t[0])}},ne=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotreenode_free(_>>>0,1)),D=class F{static __wrap(e){e>>>=0;let t=Object.create(F.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotreenode_free(e,0)}creationId(){let e=r.lorotreenode_creationId(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}isDeleted(){let e=r.lorotreenode_isDeleted(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]!==0}moveBefore(e){I(e,F);let t=r.lorotreenode_moveBefore(this.__wbg_ptr,e.__wbg_ptr);if(t[1])throw s(t[0])}createNode(e){let t=r.lorotreenode_createNode(this.__wbg_ptr,b(e)?4294967297:e>>>0);if(t[2])throw s(t[1]);return F.__wrap(t[0])}getLastMoveId(){let e=r.lorotreenode_getLastMoveId(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}toJSON(){let e=r.lorotreenode_toJSON(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}fractionalIndex(){let e=r.lorotreenode_fractionalIndex(this.__wbg_ptr);if(e[2])throw s(e[1]);return s(e[0])}__getClassname(){let e,t;try{let n=r.lorotreenode___getClassname(this.__wbg_ptr);return e=n[0],t=n[1],w(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get id(){return r.lorotreenode_id(this.__wbg_ptr)}move(e,t){let n=r.lorotreenode_move(this.__wbg_ptr,e,b(t)?4294967297:t>>>0);if(n[1])throw s(n[0])}get data(){let e=r.lorotreenode_data(this.__wbg_ptr);if(e[2])throw s(e[1]);return N.__wrap(e[0])}index(){let e=r.lorotreenode_index(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]===4294967297?void 0:e[0]}parent(){let e=r.lorotreenode_parent(this.__wbg_ptr);if(e[2])throw s(e[1]);return e[0]===0?void 0:F.__wrap(e[0])}creator(){return r.lorotreenode_creator(this.__wbg_ptr)}children(){return r.lorotreenode_children(this.__wbg_ptr)}moveAfter(e){I(e,F);let t=r.lorotreenode_moveAfter(this.__wbg_ptr,e.__wbg_ptr);if(t[1])throw s(t[0])}},se=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_undomanager_free(_>>>0,1)),G_=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_undomanager_free(_,0)}groupStart(){let _=r.undomanager_groupStart(this.__wbg_ptr);if(_[1])throw s(_[0])}topRedoValue(){return r.undomanager_topRedoValue(this.__wbg_ptr)}topUndoValue(){return r.undomanager_topUndoValue(this.__wbg_ptr)}setMaxUndoSteps(_){r.undomanager_setMaxUndoSteps(this.__wbg_ptr,_)}setMergeInterval(_){r.undomanager_setMergeInterval(this.__wbg_ptr,_)}addExcludeOriginPrefix(_){let e=d(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=l;r.undomanager_addExcludeOriginPrefix(this.__wbg_ptr,e,t)}constructor(_,e){return I(_,Q),this.__wbg_ptr=r.undomanager_new(_.__wbg_ptr,e)>>>0,se.register(this,this.__wbg_ptr,this),this}peer(){return r.undomanager_peer(this.__wbg_ptr)}redo(){let _=r.undomanager_redo(this.__wbg_ptr);if(_[2])throw s(_[1]);return _[0]!==0}undo(){let _=r.undomanager_undo(this.__wbg_ptr);if(_[2])throw s(_[1]);return _[0]!==0}clear(){r.undomanager_clear(this.__wbg_ptr)}canRedo(){return r.undomanager_canRedo(this.__wbg_ptr)!==0}canUndo(){return r.undomanager_canUndo(this.__wbg_ptr)!==0}groupEnd(){r.undomanager_groupEnd(this.__wbg_ptr)}setOnPop(_){r.undomanager_setOnPop(this.__wbg_ptr,_)}setOnPush(_){r.undomanager_setOnPush(this.__wbg_ptr,_)}},$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_versionvector_free(_>>>0,1)),x=class E{static __wrap(e){e>>>=0;let t=Object.create(E.prototype);return t.__wbg_ptr=e,$.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_versionvector_free(e,0)}get(e){let t=r.versionvector_get(this.__wbg_ptr,e);if(t[2])throw s(t[1]);return t[0]===4294967297?void 0:t[0]}constructor(e){let t=r.versionvector_new(e);if(t[2])throw s(t[1]);return this.__wbg_ptr=t[0]>>>0,$.register(this,this.__wbg_ptr,this),this}static decode(e){let t=v(e,r.__wbindgen_malloc),n=l,a=r.versionvector_decode(t,n);if(a[2])throw s(a[1]);return E.__wrap(a[0])}encode(){let e=r.versionvector_encode(this.__wbg_ptr);var t=y(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}length(){return r.versionvector_length(this.__wbg_ptr)>>>0}remove(e){let t=r.versionvector_remove(this.__wbg_ptr,e);if(t[1])throw s(t[0])}setEnd(e){let t=r.versionvector_setEnd(this.__wbg_ptr,e);if(t[1])throw s(t[0])}compare(e){I(e,E);let t=r.versionvector_compare(this.__wbg_ptr,e.__wbg_ptr);return t===4294967297?void 0:t}setLast(e){let t=r.versionvector_setLast(this.__wbg_ptr,e);if(t[1])throw s(t[0])}toJSON(){return r.versionvector_toJSON(this.__wbg_ptr)}static parseJSON(e){let t=r.versionvector_parseJSON(e);if(t[2])throw s(t[1]);return E.__wrap(t[0])}};function Cs(_,e){let t=d(String(e),r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;u().setInt32(_+4,n,!0),u().setInt32(_+0,t,!0)}function As(){return p(function(_,e,t){return _.apply(e,t)},arguments)}function Os(){return p(function(_,e,t){return Reflect.apply(_,e,t)},arguments)}function Is(_){return _.buffer}function Ns(){return p(function(_,e){return _.call(e)},arguments)}function Fs(){return p(function(_,e,t){return _.call(e,t)},arguments)}function Ds(){return p(function(_,e,t,n){return _.call(e,t,n)},arguments)}function Ls(){return p(function(_,e,t,n,a){return _.call(e,t,n,a)},arguments)}function ks(_){return re.__wrap(_)}function Es(_){return _.crypto}function Rs(_){return S.__wrap(_)}function Ts(_){return _.done}function Js(_){return Object.entries(_)}function Vs(_){return _.entries()}function Us(_,e){console.error(w(_,e))}function Ps(_,e){let t,n;try{t=_,n=e,console.error(w(_,e))}finally{r.__wbindgen_free(t,n,1)}}function Bs(_){return Array.from(_)}function Ms(_){return Object.getOwnPropertySymbols(_)}function zs(){return p(function(_,e){_.getRandomValues(e)},arguments)}function js(){return p(function(_,e){return Reflect.get(_,e)},arguments)}function Ws(_,e){return _[e>>>0]}function Hs(_,e){return _[e>>>0]}function qs(_,e){return _[e]}function $s(_){let e;try{e=_ instanceof ArrayBuffer}catch{e=!1}return e}function Ks(_){let e;try{e=_ instanceof Map}catch{e=!1}return e}function Gs(_){let e;try{e=_ instanceof Object}catch{e=!1}return e}function Qs(_){let e;try{e=_ instanceof Uint8Array}catch{e=!1}return e}function Xs(_){return Array.isArray(_)}function Ys(_){return Number.isSafeInteger(_)}function Zs(){return Symbol.iterator}function ea(_){return _.length}function ta(_){return _.length}function ra(_,e){console.log(w(_,e))}function _a(_,e,t,n,a,i,g,c){let h,K;try{h=_,K=e,console.log(w(_,e),w(t,n),w(a,i),w(g,c))}finally{r.__wbindgen_free(h,K,1)}}function oa(_,e){let t,n;try{t=_,n=e,console.log(w(_,e))}finally{r.__wbindgen_free(t,n,1)}}function na(_){return V.__wrap(_)}function sa(_){return B.__wrap(_)}function aa(_){return N.__wrap(_)}function ia(_){return j.__wrap(_)}function la(_){return L.__wrap(_)}function ga(_){return q.__wrap(_)}function ca(_){return D.__wrap(_)}function da(_,e){performance.mark(w(_,e))}function wa(){return p(function(_,e,t,n){let a,i,g,c;try{a=_,i=e,g=t,c=n,performance.measure(w(_,e),w(t,n))}finally{r.__wbindgen_free(a,i,1),r.__wbindgen_free(g,c,1)}},arguments)}function ba(_){return _.msCrypto}function ua(){return{}}function pa(){return new Map}function ha(){return[]}function fa(){return Error()}function ma(_){return new Uint8Array(_)}function va(_,e){return Function(w(_,e))}function ya(_,e,t){return new Uint8Array(_,e>>>0,t>>>0)}function xa(_){return new Uint8Array(_>>>0)}function Sa(_){return Array(_>>>0)}function Ca(_){return _.next}function Aa(){return p(function(_){return _.next()},arguments)}function Oa(_){return _.node}function Ia(){return Date.now()}function Na(){return p(function(_){return Reflect.ownKeys(_)},arguments)}function Fa(_){return _.process}function Da(_,e){return _.push(e)}function La(){return p(function(_,e){_.randomFillSync(e)},arguments)}function ka(){return p(function(){return module.require},arguments)}function Ea(_){return Promise.resolve(_)}function Ra(_,e,t){_[e>>>0]=t}function Ta(_,e,t){_[e]=t}function Ja(_,e,t){_.set(e,t>>>0)}function Va(_,e,t){return _.set(e,t)}function Ua(){return p(function(_,e,t){return Reflect.set(_,e,t)},arguments)}function Pa(_,e,t){_[e>>>0]=t}function Ba(_,e){let t=e.stack,n=d(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=l;u().setInt32(_+4,a,!0),u().setInt32(_+0,n,!0)}function Ma(){let _=typeof global>"u"?null:global;return b(_)?0:C(_)}function za(){let _=typeof globalThis>"u"?null:globalThis;return b(_)?0:C(_)}function ja(){let _=typeof self>"u"?null:self;return b(_)?0:C(_)}function Wa(){let _=typeof window>"u"?null:window;return b(_)?0:C(_)}function Ha(_,e,t){return _.subarray(e>>>0,t>>>0)}function qa(_,e){return _.then(e)}function $a(_){return _.value}function Ka(_){return _.versions}function Ga(_){return x.__wrap(_)}function Qa(_,e){console.warn(w(_,e))}function Xa(_){return+_}function Ya(_){return _}function Za(_){return BigInt.asUintN(64,_)}function ei(_,e){let t=e,n=typeof t=="bigint"?t:void 0;u().setBigInt64(_+8,b(n)?BigInt(0):n,!0),u().setInt32(_+0,!b(n),!0)}function ti(_){let e=_;return typeof e=="boolean"?e?1:0:2}function ri(_){let e=_.original;return e.cnt--==1?(e.a=0,!0):!1}function _i(_,e,t){return Ss(_,e,10,ji)}function oi(_,e,t){return Ss(_,e,10,Wi)}function ni(_,e){let t=d(Z(e),r.__wbindgen_malloc,r.__wbindgen_realloc),n=l;u().setInt32(_+4,n,!0),u().setInt32(_+0,t,!0)}function si(_,e){return Error(w(_,e))}function ai(_,e){return _ in e}X=function(){let _=r.__wbindgen_export_4,e=_.grow(4);_.set(0,void 0),_.set(e+0,void 0),_.set(e+1,null),_.set(e+2,!0),_.set(e+3,!1)};function ii(_){return Array.isArray(_)}function li(_){return typeof _=="bigint"}function gi(_){return!_}function ci(_){return typeof _=="function"}function di(_){return _===null}function wi(_){let e=_;return typeof e=="object"&&!!e}function bi(_){return typeof _=="string"}function ui(_){return _===void 0}function pi(_,e){return _===e}function hi(_,e){return _==e}function fi(){return r.memory}function mi(_,e){let t=e,n=typeof t=="number"?t:void 0;u().setFloat64(_+8,b(n)?0:n,!0),u().setInt32(_+0,!b(n),!0)}function vi(_){return _}function yi(_){throw _}function xi(_,e){let t=e,n=typeof t=="string"?t:void 0;var a=b(n)?0:d(n,r.__wbindgen_malloc,r.__wbindgen_realloc),i=l;u().setInt32(_+4,i,!0),u().setInt32(_+0,a,!0)}function Si(_,e){return w(_,e)}function Ci(_,e){throw Error(w(_,e))}function Ai(_){return typeof _}Ii=Oi({LORO_VERSION:()=>Fn,__externref_drop_slice:()=>zo,__externref_table_alloc:()=>pn,__externref_table_dealloc:()=>go,__wbg_awarenesswasm_free:()=>w_,__wbg_changemodifier_free:()=>Go,__wbg_cursor_free:()=>Sn,__wbg_ephemeralstorewasm_free:()=>O_,__wbg_lorocounter_free:()=>Do,__wbg_lorodoc_free:()=>Jn,__wbg_lorolist_free:()=>E_,__wbg_loromap_free:()=>H_,__wbg_loromovablelist_free:()=>rn,__wbg_lorotext_free:()=>Jo,__wbg_lorotree_free:()=>_o,__wbg_lorotreenode_free:()=>X_,__wbg_undomanager_free:()=>a_,__wbg_versionvector_free:()=>zn,__wbindgen_exn_store:()=>ss,__wbindgen_export_4:()=>v_,__wbindgen_export_6:()=>es,__wbindgen_free:()=>wr,__wbindgen_malloc:()=>Ae,__wbindgen_realloc:()=>Kn,__wbindgen_start:()=>mr,_dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156:()=>Ve,awarenesswasm_apply:()=>Le,awarenesswasm_encode:()=>jt,awarenesswasm_encodeAll:()=>Co,awarenesswasm_getAllStates:()=>we,awarenesswasm_getState:()=>fo,awarenesswasm_getTimestamp:()=>Lt,awarenesswasm_isEmpty:()=>Vt,awarenesswasm_length:()=>Gt,awarenesswasm_new:()=>je,awarenesswasm_peer:()=>at,awarenesswasm_peers:()=>At,awarenesswasm_removeOutdated:()=>ar,awarenesswasm_setLocalState:()=>ds,callPendingEvents:()=>me,changemodifier_setMessage:()=>Lr,changemodifier_setTimestamp:()=>tt,closure9_externref_shim:()=>Ar,cursor_containerId:()=>Vr,cursor_decode:()=>Ge,cursor_encode:()=>mt,cursor_kind:()=>gn,cursor_pos:()=>wt,cursor_side:()=>Gr,decodeFrontiers:()=>jr,decodeImportBlobMeta:()=>t_,encodeFrontiers:()=>tr,ephemeralstorewasm_apply:()=>ae,ephemeralstorewasm_delete:()=>W_,ephemeralstorewasm_encode:()=>Tn,ephemeralstorewasm_encodeAll:()=>Ko,ephemeralstorewasm_get:()=>xn,ephemeralstorewasm_getAllStates:()=>ho,ephemeralstorewasm_isEmpty:()=>m_,ephemeralstorewasm_keys:()=>tn,ephemeralstorewasm_new:()=>Nn,ephemeralstorewasm_removeOutdated:()=>k_,ephemeralstorewasm_set:()=>To,ephemeralstorewasm_subscribe:()=>Mn,ephemeralstorewasm_subscribeLocalUpdates:()=>U_,lorocounter_decrement:()=>ln,lorocounter_getAttached:()=>Mo,lorocounter_getShallowValue:()=>lo,lorocounter_id:()=>ro,lorocounter_increment:()=>d_,lorocounter_isAttached:()=>$n,lorocounter_kind:()=>cs,lorocounter_new:()=>A_,lorocounter_parent:()=>ns,lorocounter_subscribe:()=>fr,lorocounter_toJSON:()=>De,lorocounter_value:()=>Zn,lorodoc_JSONPath:()=>Cr,lorodoc_applyDiff:()=>ze,lorodoc_attach:()=>Je,lorodoc_changeCount:()=>Kt,lorodoc_checkout:()=>Fo,lorodoc_checkoutToLatest:()=>fe,lorodoc_clearNextCommitOptions:()=>So,lorodoc_cmpFrontiers:()=>Jt,lorodoc_cmpWithFrontiers:()=>zt,lorodoc_commit:()=>er,lorodoc_configDefaultTextStyle:()=>Ke,lorodoc_configTextStyle:()=>dt,lorodoc_debugHistory:()=>Dt,lorodoc_deleteRootContainer:()=>dr,lorodoc_detach:()=>hs,lorodoc_diff:()=>Ce,lorodoc_export:()=>Jr,lorodoc_exportJsonInIdSpan:()=>st,lorodoc_exportJsonUpdates:()=>Dr,lorodoc_findIdSpansBetween:()=>zr,lorodoc_fork:()=>et,lorodoc_forkAt:()=>Ct,lorodoc_fromSnapshot:()=>un,lorodoc_frontiers:()=>ft,lorodoc_frontiersToVV:()=>e_,lorodoc_getAllChanges:()=>Kr,lorodoc_getByPath:()=>s_,lorodoc_getChangeAt:()=>sr,lorodoc_getChangeAtLamport:()=>de,lorodoc_getChangedContainersIn:()=>M_,lorodoc_getContainerById:()=>kn,lorodoc_getCounter:()=>Ho,lorodoc_getCursorPos:()=>mn,lorodoc_getDeepValueWithID:()=>bo,lorodoc_getList:()=>p_,lorodoc_getMap:()=>Yo,lorodoc_getMovableList:()=>On,lorodoc_getOpsInChange:()=>F_,lorodoc_getPathToContainer:()=>Eo,lorodoc_getPendingTxnLength:()=>Pn,lorodoc_getShallowValue:()=>J_,lorodoc_getText:()=>K_,lorodoc_getTree:()=>nn,lorodoc_getUncommittedOpsAsJson:()=>Po,lorodoc_hasContainer:()=>so,lorodoc_import:()=>eo,lorodoc_importBatch:()=>g_,lorodoc_importJsonUpdates:()=>Hn,lorodoc_importUpdateBatch:()=>ls,lorodoc_isDetached:()=>S_,lorodoc_isDetachedEditingEnabled:()=>_s,lorodoc_isShallow:()=>pr,lorodoc_new:()=>Ne,lorodoc_opCount:()=>Xn,lorodoc_oplogFrontiers:()=>xr,lorodoc_oplogVersion:()=>Be,lorodoc_peerId:()=>Re,lorodoc_peerIdStr:()=>qt,lorodoc_revertTo:()=>Io,lorodoc_setChangeMergeInterval:()=>pe,lorodoc_setDetachedEditing:()=>yo,lorodoc_setHideEmptyRootContainers:()=>Rt,lorodoc_setNextCommitMessage:()=>Bt,lorodoc_setNextCommitOptions:()=>Yt,lorodoc_setNextCommitOrigin:()=>qe,lorodoc_setNextCommitTimestamp:()=>gt,lorodoc_setPeerId:()=>Nt,lorodoc_setRecordTimestamp:()=>gr,lorodoc_shallowSinceFrontiers:()=>us,lorodoc_shallowSinceVV:()=>xe,lorodoc_subscribe:()=>Rr,lorodoc_subscribeFirstCommitFromPeer:()=>ot,lorodoc_subscribeJsonpath:()=>Nr,lorodoc_subscribeLocalUpdates:()=>Br,lorodoc_subscribePreCommit:()=>Ye,lorodoc_toJSON:()=>xt,lorodoc_travelChangeAncestors:()=>wn,lorodoc_version:()=>pt,lorodoc_vvToFrontiers:()=>Yr,lorolist_clear:()=>qr,lorolist_delete:()=>o_,lorolist_get:()=>or,lorolist_getAttached:()=>ge,lorolist_getCursor:()=>j_,lorolist_getIdAt:()=>Rn,lorolist_getShallowValue:()=>$o,lorolist_id:()=>yn,lorolist_insert:()=>po,lorolist_insertContainer:()=>f_,lorolist_isAttached:()=>en,lorolist_isDeleted:()=>In,lorolist_kind:()=>L_,lorolist_length:()=>Ro,lorolist_new:()=>Bn,lorolist_parent:()=>V_,lorolist_pop:()=>Q_,lorolist_push:()=>an,lorolist_pushContainer:()=>Bo,lorolist_subscribe:()=>io,lorolist_toArray:()=>to,lorolist_toJSON:()=>c_,loromap_clear:()=>qn,loromap_delete:()=>gs,loromap_entries:()=>C_,loromap_get:()=>os,loromap_getAttached:()=>hr,loromap_getLastEditor:()=>Fe,loromap_getOrCreateContainer:()=>Yn,loromap_getShallowValue:()=>Sr,loromap_id:()=>Me,loromap_isAttached:()=>Te,loromap_isDeleted:()=>$t,loromap_keys:()=>No,loromap_kind:()=>he,loromap_new:()=>xo,loromap_parent:()=>Tt,loromap_set:()=>Mt,loromap_setContainer:()=>Zt,loromap_size:()=>$e,loromap_subscribe:()=>ct,loromap_toJSON:()=>Ft,loromap_values:()=>cr,loromovablelist_clear:()=>ps,loromovablelist_delete:()=>Se,loromovablelist_get:()=>Tr,loromovablelist_getAttached:()=>nt,loromovablelist_getCreatorAt:()=>Fr,loromovablelist_getCursor:()=>Mr,loromovablelist_getLastEditorAt:()=>Ze,loromovablelist_getLastMoverAt:()=>St,loromovablelist_getShallowValue:()=>bn,loromovablelist_id:()=>ht,loromovablelist_insert:()=>Zr,loromovablelist_insertContainer:()=>$r,loromovablelist_isAttached:()=>n_,loromovablelist_isDeleted:()=>nr,loromovablelist_kind:()=>ce,loromovablelist_length:()=>B_,loromovablelist_move:()=>Ln,loromovablelist_new:()=>Wo,loromovablelist_parent:()=>fn,loromovablelist_pop:()=>wo,loromovablelist_push:()=>u_,loromovablelist_pushContainer:()=>Xo,loromovablelist_set:()=>An,loromovablelist_setContainer:()=>N_,loromovablelist_subscribe:()=>ko,loromovablelist_toArray:()=>Un,loromovablelist_toJSON:()=>T_,lorotext_applyDelta:()=>$_,lorotext_charAt:()=>on,lorotext_convertPos:()=>Uo,lorotext_delete:()=>no,lorotext_deleteUtf8:()=>Z_,lorotext_getAttached:()=>l_,lorotext_getCursor:()=>Wn,lorotext_getEditorOf:()=>is,lorotext_getShallowValue:()=>x_,lorotext_id:()=>rs,lorotext_insert:()=>ur,lorotext_insertUtf8:()=>Ie,lorotext_isAttached:()=>Qn,lorotext_isDeleted:()=>yr,lorotext_iter:()=>Pe,lorotext_kind:()=>Ee,lorotext_length:()=>Ht,lorotext_mark:()=>Oo,lorotext_new:()=>ue,lorotext_parent:()=>vo,lorotext_push:()=>Et,lorotext_slice:()=>Pt,lorotext_sliceDelta:()=>Xt,lorotext_sliceDeltaUtf8:()=>He,lorotext_splice:()=>lt,lorotext_subscribe:()=>It,lorotext_toDelta:()=>lr,lorotext_toJSON:()=>bs,lorotext_toString:()=>ye,lorotext_unmark:()=>Er,lorotext_update:()=>_t,lorotext_updateByLine:()=>Ir,lorotree_createNode:()=>Pr,lorotree_delete:()=>Xe,lorotree_disableFractionalIndex:()=>yt,lorotree_enableFractionalIndex:()=>dn,lorotree_getAttached:()=>ut,lorotree_getNodeByID:()=>Xr,lorotree_getNodes:()=>Hr,lorotree_getShallowValue:()=>__,lorotree_has:()=>_r,lorotree_id:()=>le,lorotree_isAttached:()=>P_,lorotree_isDeleted:()=>Dn,lorotree_isFractionalIndexEnabled:()=>jo,lorotree_isNodeDeleted:()=>hn,lorotree_kind:()=>co,lorotree_move:()=>b_,lorotree_new:()=>Qo,lorotree_nodes:()=>Cn,lorotree_parent:()=>I_,lorotree_roots:()=>Lo,lorotree_subscribe:()=>Vn,lorotree_toArray:()=>R_,lorotree_toJSON:()=>q_,lorotreenode___getClassname:()=>_n,lorotreenode_children:()=>Vo,lorotreenode_createNode:()=>oo,lorotreenode_creationId:()=>Y_,lorotreenode_creator:()=>i_,lorotreenode_data:()=>jn,lorotreenode_fractionalIndex:()=>as,lorotreenode_getLastMoveId:()=>y_,lorotreenode_id:()=>ts,lorotreenode_index:()=>br,lorotreenode_isDeleted:()=>Oe,lorotreenode_move:()=>Gn,lorotreenode_moveAfter:()=>vr,lorotreenode_moveBefore:()=>Ue,lorotreenode_parent:()=>ke,lorotreenode_toJSON:()=>Wt,memory:()=>Ao,redactJsonUpdates:()=>be,run:()=>mo,setDebug:()=>kt,undomanager_addExcludeOriginPrefix:()=>Ut,undomanager_canRedo:()=>Qt,undomanager_canUndo:()=>We,undomanager_clear:()=>it,undomanager_groupEnd:()=>Ot,undomanager_groupStart:()=>ir,undomanager_new:()=>ws,undomanager_peer:()=>ve,undomanager_redo:()=>kr,undomanager_setMaxUndoSteps:()=>rt,undomanager_setMergeInterval:()=>Or,undomanager_setOnPop:()=>Ur,undomanager_setOnPush:()=>Qe,undomanager_topRedoValue:()=>vt,undomanager_topUndoValue:()=>cn,undomanager_undo:()=>bt,versionvector_compare:()=>Qr,versionvector_decode:()=>Wr,versionvector_encode:()=>r_,versionvector_get:()=>rr,versionvector_length:()=>ie,versionvector_new:()=>z_,versionvector_parseJSON:()=>En,versionvector_remove:()=>qo,versionvector_setEnd:()=>vn,versionvector_setLast:()=>uo,versionvector_toJSON:()=>h_},1),URL=globalThis.URL;var o=await vs({"./loro_wasm_bg.js":{__wbg_lorotree_new:ga,__wbg_lorocounter_new:na,__wbg_lorotext_new:la,__wbg_lorotreenode_new:ca,__wbg_cursor_new:Rs,__wbg_loromap_new:aa,__wbg_loromovablelist_new:ia,__wbg_lorolist_new:sa,__wbg_changemodifier_new:ks,__wbg_versionvector_new:Ga,__wbindgen_is_function:ci,__wbindgen_number_get:mi,__wbindgen_string_get:xi,__wbindgen_string_new:Si,__wbindgen_boolean_get:ti,__wbindgen_error_new:si,__wbg_error_1cb1bf0bb7e0da2b:Us,__wbindgen_cb_drop:ri,__wbindgen_is_undefined:ui,__wbindgen_in:ai,__wbindgen_is_bigint:li,__wbindgen_bigint_from_i64:Ya,__wbindgen_jsval_eq:pi,__wbindgen_is_object:wi,__wbindgen_bigint_from_u64:Za,__wbindgen_as_number:Xa,__wbindgen_number_new:vi,__wbindgen_is_string:bi,__wbindgen_is_null:di,__wbindgen_is_falsy:gi,__wbindgen_typeof:Ai,__wbg_warn_90235b184e422485:Qa,__wbg_log_0671e6aa34e04626:ra,__wbindgen_is_array:ii,__wbg_log_cb9e190acc5753fb:oa,__wbg_log_0cc1b7768397bcfe:_a,__wbg_mark_7438147ce31e9d4b:da,__wbg_measure_fb7825c11612c823:wa,__wbg_new_8a6f238a6ece86ea:fa,__wbg_stack_0ed75d68575b0f3c:Ba,__wbg_error_7534b8e9a36f1ab4:Ps,__wbindgen_jsval_loose_eq:hi,__wbg_getwithrefkey_1dc361bd10053bfe:qs,__wbg_set_3f1d0b984ed272ed:Ta,__wbg_String_8f0eb39a4a4c2f66:Cs,__wbg_now_c8bdc8efc8c495eb:Ia,__wbg_crypto_574e78ad8b13b65f:Es,__wbg_process_dc0fbacc7c1c06f7:Fa,__wbg_versions_c01dfd4722a88165:Ka,__wbg_node_905d3e251edff8a2:Oa,__wbg_require_60cc747a6bc5215a:ka,__wbg_msCrypto_a61aeb35a24c1329:ba,__wbg_randomFillSync_ac0988aba3254290:La,__wbg_getRandomValues_b8f5dbd5f3995a9e:zs,__wbg_new_5e0be73521bc8c17:pa,__wbg_new_78feb108b6472713:ha,__wbg_new_405e22f390576ce2:ua,__wbg_newnoargs_105ed471475aaf50:va,__wbg_new_a12002a7f91c75be:ma,__wbg_buffer_609cc3eee51ed158:Is,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:ya,__wbg_length_a446193dc22c12f8:ea,__wbg_newwithlength_a381634e90c276d4:xa,__wbg_set_65595bdd868b3009:Ja,__wbg_subarray_aa9065fa9dc5df96:Ha,__wbg_getindex_5b00c274b05714aa:Hs,__wbg_setindex_dcd71eabf405bde1:Pa,__wbg_done_769e5ede4b31c67b:Ts,__wbg_value_cd1ffa7b1ab794f1:$a,__wbg_instanceof_Map_f3469ce2244d2430:Ks,__wbg_instanceof_Object_7f2dcef8f78644a4:Gs,__wbg_instanceof_Uint8Array_17156bcf118086a9:Qs,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:$s,__wbg_set_8fc6bf8a5b1071d1:Va,__wbg_entries_c8a90a7ed73e84ce:Vs,__wbg_newwithlength_c4c419ef0bc8a1f8:Sa,__wbg_get_b9b93047fe3cf45b:Ws,__wbg_set_37837023f3d740e8:Ra,__wbg_from_2a5d3e218e67aa85:Bs,__wbg_length_e2d2a49132c1b256:ta,__wbg_push_737cfc8c1432c2c6:Da,__wbg_isArray_a1eab7e0d067391b:Xs,__wbg_isSafeInteger_343e2beeeece1bb0:Ys,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:Ms,__wbg_entries_3265d4158b33e5dc:Js,__wbg_iterator_9a24c88df860dc65:Zs,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:za,__wbg_call_672a4d21634d4a24:Ns,__wbg_static_accessor_SELF_37c5d418e4bf5819:ja,__wbg_static_accessor_GLOBAL_88a902d13a557d07:Ma,__wbg_static_accessor_WINDOW_5de37043a91a9c40:Wa,__wbg_then_44b73946d2fb3e7d:qa,__wbg_resolve_4851785c9c5f573d:Ea,__wbg_get_67b2ba62fc30de12:js,__wbg_set_bb8cecf6a62b9f46:Ua,__wbg_apply_eb9e9b97497f91e4:Os,__wbg_ownKeys_3930041068756f1f:Na,__wbg_apply_36be6a55257c99bf:As,__wbg_call_7cccdd69e0791ae2:Fs,__wbg_call_833bed5770ea2041:Ds,__wbg_call_b8adc8b1d0a0d8eb:Ls,__wbg_next_25feadfc0913fea9:Ca,__wbg_next_6574e1a8a62d1055:Aa,__wbindgen_bigint_get_as_i64:ei,__wbindgen_memory:fi,__wbindgen_throw:Ci,__wbindgen_rethrow:yi,__wbindgen_debug_string:ni,__wbindgen_closure_wrapper718:_i,__wbindgen_closure_wrapper721:oi,__wbindgen_init_externref_table:X}},ms);Ao=o.memory,Fn=o.LORO_VERSION,w_=o.__wbg_awarenesswasm_free,Go=o.__wbg_changemodifier_free,Sn=o.__wbg_cursor_free,O_=o.__wbg_ephemeralstorewasm_free,Do=o.__wbg_lorocounter_free,Jn=o.__wbg_lorodoc_free,E_=o.__wbg_lorolist_free,H_=o.__wbg_loromap_free,Jo=o.__wbg_lorotext_free,_o=o.__wbg_lorotree_free,X_=o.__wbg_lorotreenode_free,a_=o.__wbg_undomanager_free,zn=o.__wbg_versionvector_free,Le=o.awarenesswasm_apply,jt=o.awarenesswasm_encode,Co=o.awarenesswasm_encodeAll,we=o.awarenesswasm_getAllStates,fo=o.awarenesswasm_getState,Lt=o.awarenesswasm_getTimestamp,Vt=o.awarenesswasm_isEmpty,Gt=o.awarenesswasm_length,je=o.awarenesswasm_new,at=o.awarenesswasm_peer,At=o.awarenesswasm_peers,ar=o.awarenesswasm_removeOutdated,ds=o.awarenesswasm_setLocalState,me=o.callPendingEvents,Lr=o.changemodifier_setMessage,tt=o.changemodifier_setTimestamp,Vr=o.cursor_containerId,Ge=o.cursor_decode,mt=o.cursor_encode,gn=o.cursor_kind,wt=o.cursor_pos,Gr=o.cursor_side,jr=o.decodeFrontiers,t_=o.decodeImportBlobMeta,tr=o.encodeFrontiers,ae=o.ephemeralstorewasm_apply,W_=o.ephemeralstorewasm_delete,Tn=o.ephemeralstorewasm_encode,Ko=o.ephemeralstorewasm_encodeAll,xn=o.ephemeralstorewasm_get,ho=o.ephemeralstorewasm_getAllStates,m_=o.ephemeralstorewasm_isEmpty,tn=o.ephemeralstorewasm_keys,Nn=o.ephemeralstorewasm_new,k_=o.ephemeralstorewasm_removeOutdated,To=o.ephemeralstorewasm_set,Mn=o.ephemeralstorewasm_subscribe,U_=o.ephemeralstorewasm_subscribeLocalUpdates,ln=o.lorocounter_decrement,Mo=o.lorocounter_getAttached,lo=o.lorocounter_getShallowValue,ro=o.lorocounter_id,d_=o.lorocounter_increment,$n=o.lorocounter_isAttached,cs=o.lorocounter_kind,A_=o.lorocounter_new,ns=o.lorocounter_parent,fr=o.lorocounter_subscribe,Cr=o.lorodoc_JSONPath,ze=o.lorodoc_applyDiff,Je=o.lorodoc_attach,Kt=o.lorodoc_changeCount,Fo=o.lorodoc_checkout,fe=o.lorodoc_checkoutToLatest,So=o.lorodoc_clearNextCommitOptions,Jt=o.lorodoc_cmpFrontiers,zt=o.lorodoc_cmpWithFrontiers,er=o.lorodoc_commit,Ke=o.lorodoc_configDefaultTextStyle,dt=o.lorodoc_configTextStyle,Dt=o.lorodoc_debugHistory,dr=o.lorodoc_deleteRootContainer,hs=o.lorodoc_detach,Ce=o.lorodoc_diff,Jr=o.lorodoc_export,st=o.lorodoc_exportJsonInIdSpan,Dr=o.lorodoc_exportJsonUpdates,zr=o.lorodoc_findIdSpansBetween,et=o.lorodoc_fork,Ct=o.lorodoc_forkAt,un=o.lorodoc_fromSnapshot,ft=o.lorodoc_frontiers,e_=o.lorodoc_frontiersToVV,Kr=o.lorodoc_getAllChanges,s_=o.lorodoc_getByPath,sr=o.lorodoc_getChangeAt,de=o.lorodoc_getChangeAtLamport,M_=o.lorodoc_getChangedContainersIn,kn=o.lorodoc_getContainerById,Ho=o.lorodoc_getCounter,mn=o.lorodoc_getCursorPos,bo=o.lorodoc_getDeepValueWithID,p_=o.lorodoc_getList,Yo=o.lorodoc_getMap,On=o.lorodoc_getMovableList,F_=o.lorodoc_getOpsInChange,Eo=o.lorodoc_getPathToContainer,Pn=o.lorodoc_getPendingTxnLength,J_=o.lorodoc_getShallowValue,K_=o.lorodoc_getText,nn=o.lorodoc_getTree,Po=o.lorodoc_getUncommittedOpsAsJson,so=o.lorodoc_hasContainer,eo=o.lorodoc_import,g_=o.lorodoc_importBatch,Hn=o.lorodoc_importJsonUpdates,S_=o.lorodoc_isDetached,_s=o.lorodoc_isDetachedEditingEnabled,pr=o.lorodoc_isShallow,Ne=o.lorodoc_new,Xn=o.lorodoc_opCount,xr=o.lorodoc_oplogFrontiers,Be=o.lorodoc_oplogVersion,Re=o.lorodoc_peerId,qt=o.lorodoc_peerIdStr,Io=o.lorodoc_revertTo,pe=o.lorodoc_setChangeMergeInterval,yo=o.lorodoc_setDetachedEditing,Rt=o.lorodoc_setHideEmptyRootContainers,Bt=o.lorodoc_setNextCommitMessage,Yt=o.lorodoc_setNextCommitOptions,qe=o.lorodoc_setNextCommitOrigin,gt=o.lorodoc_setNextCommitTimestamp,Nt=o.lorodoc_setPeerId,gr=o.lorodoc_setRecordTimestamp,us=o.lorodoc_shallowSinceFrontiers,xe=o.lorodoc_shallowSinceVV,Rr=o.lorodoc_subscribe,ot=o.lorodoc_subscribeFirstCommitFromPeer,Nr=o.lorodoc_subscribeJsonpath,Br=o.lorodoc_subscribeLocalUpdates,Ye=o.lorodoc_subscribePreCommit,xt=o.lorodoc_toJSON,wn=o.lorodoc_travelChangeAncestors,pt=o.lorodoc_version,Yr=o.lorodoc_vvToFrontiers,qr=o.lorolist_clear,o_=o.lorolist_delete,or=o.lorolist_get,ge=o.lorolist_getAttached,j_=o.lorolist_getCursor,Rn=o.lorolist_getIdAt,$o=o.lorolist_getShallowValue,yn=o.lorolist_id,po=o.lorolist_insert,f_=o.lorolist_insertContainer,en=o.lorolist_isAttached,In=o.lorolist_isDeleted,L_=o.lorolist_kind,Ro=o.lorolist_length,Bn=o.lorolist_new,V_=o.lorolist_parent,Q_=o.lorolist_pop,an=o.lorolist_push,Bo=o.lorolist_pushContainer,io=o.lorolist_subscribe,to=o.lorolist_toArray,c_=o.lorolist_toJSON,qn=o.loromap_clear,gs=o.loromap_delete,C_=o.loromap_entries,os=o.loromap_get,hr=o.loromap_getAttached,Fe=o.loromap_getLastEditor,Yn=o.loromap_getOrCreateContainer,Sr=o.loromap_getShallowValue,Me=o.loromap_id,Te=o.loromap_isAttached,$t=o.loromap_isDeleted,No=o.loromap_keys,he=o.loromap_kind,xo=o.loromap_new,Tt=o.loromap_parent,Mt=o.loromap_set,Zt=o.loromap_setContainer,$e=o.loromap_size,ct=o.loromap_subscribe,Ft=o.loromap_toJSON,cr=o.loromap_values,ps=o.loromovablelist_clear,Se=o.loromovablelist_delete,Tr=o.loromovablelist_get,nt=o.loromovablelist_getAttached,Fr=o.loromovablelist_getCreatorAt,Mr=o.loromovablelist_getCursor,Ze=o.loromovablelist_getLastEditorAt,St=o.loromovablelist_getLastMoverAt,bn=o.loromovablelist_getShallowValue,ht=o.loromovablelist_id,Zr=o.loromovablelist_insert,$r=o.loromovablelist_insertContainer,n_=o.loromovablelist_isAttached,nr=o.loromovablelist_isDeleted,ce=o.loromovablelist_kind,B_=o.loromovablelist_length,Ln=o.loromovablelist_move,Wo=o.loromovablelist_new,fn=o.loromovablelist_parent,wo=o.loromovablelist_pop,u_=o.loromovablelist_push,Xo=o.loromovablelist_pushContainer,An=o.loromovablelist_set,N_=o.loromovablelist_setContainer,ko=o.loromovablelist_subscribe,Un=o.loromovablelist_toArray,T_=o.loromovablelist_toJSON,$_=o.lorotext_applyDelta,on=o.lorotext_charAt,Uo=o.lorotext_convertPos,no=o.lorotext_delete,Z_=o.lorotext_deleteUtf8,l_=o.lorotext_getAttached,Wn=o.lorotext_getCursor,is=o.lorotext_getEditorOf,x_=o.lorotext_getShallowValue,rs=o.lorotext_id,ur=o.lorotext_insert,Ie=o.lorotext_insertUtf8,Qn=o.lorotext_isAttached,yr=o.lorotext_isDeleted,Pe=o.lorotext_iter,Ee=o.lorotext_kind,Ht=o.lorotext_length,Oo=o.lorotext_mark,ue=o.lorotext_new,vo=o.lorotext_parent,Et=o.lorotext_push,Pt=o.lorotext_slice,Xt=o.lorotext_sliceDelta,He=o.lorotext_sliceDeltaUtf8,lt=o.lorotext_splice,It=o.lorotext_subscribe,lr=o.lorotext_toDelta,bs=o.lorotext_toJSON,ye=o.lorotext_toString,Er=o.lorotext_unmark,_t=o.lorotext_update,Ir=o.lorotext_updateByLine,Pr=o.lorotree_createNode,Xe=o.lorotree_delete,yt=o.lorotree_disableFractionalIndex,dn=o.lorotree_enableFractionalIndex,ut=o.lorotree_getAttached,Xr=o.lorotree_getNodeByID,Hr=o.lorotree_getNodes,__=o.lorotree_getShallowValue,_r=o.lorotree_has,le=o.lorotree_id,P_=o.lorotree_isAttached,Dn=o.lorotree_isDeleted,jo=o.lorotree_isFractionalIndexEnabled,hn=o.lorotree_isNodeDeleted,co=o.lorotree_kind,b_=o.lorotree_move,Qo=o.lorotree_new,Cn=o.lorotree_nodes,I_=o.lorotree_parent,Lo=o.lorotree_roots,Vn=o.lorotree_subscribe,R_=o.lorotree_toArray,q_=o.lorotree_toJSON,_n=o.lorotreenode___getClassname,Vo=o.lorotreenode_children,oo=o.lorotreenode_createNode,Y_=o.lorotreenode_creationId,i_=o.lorotreenode_creator,jn=o.lorotreenode_data,as=o.lorotreenode_fractionalIndex,y_=o.lorotreenode_getLastMoveId,ts=o.lorotreenode_id,br=o.lorotreenode_index,Oe=o.lorotreenode_isDeleted,Gn=o.lorotreenode_move,vr=o.lorotreenode_moveAfter,Ue=o.lorotreenode_moveBefore,ke=o.lorotreenode_parent,Wt=o.lorotreenode_toJSON,be=o.redactJsonUpdates,mo=o.run,kt=o.setDebug,Ut=o.undomanager_addExcludeOriginPrefix,Qt=o.undomanager_canRedo,We=o.undomanager_canUndo,it=o.undomanager_clear,Ot=o.undomanager_groupEnd,ir=o.undomanager_groupStart,ws=o.undomanager_new,ve=o.undomanager_peer,kr=o.undomanager_redo,rt=o.undomanager_setMaxUndoSteps,Or=o.undomanager_setMergeInterval,Ur=o.undomanager_setOnPop,Qe=o.undomanager_setOnPush,vt=o.undomanager_topRedoValue,cn=o.undomanager_topUndoValue,bt=o.undomanager_undo,Qr=o.versionvector_compare,Wr=o.versionvector_decode,r_=o.versionvector_encode,rr=o.versionvector_get,ie=o.versionvector_length,z_=o.versionvector_new,En=o.versionvector_parseJSON,qo=o.versionvector_remove,vn=o.versionvector_setEnd,uo=o.versionvector_setLast,h_=o.versionvector_toJSON,ls=o.lorodoc_importUpdateBatch,rn=o.__wbg_loromovablelist_free,Zn=o.lorocounter_value,De=o.lorocounter_toJSON,Ae=o.__wbindgen_malloc,Kn=o.__wbindgen_realloc,ss=o.__wbindgen_exn_store,pn=o.__externref_table_alloc,v_=o.__wbindgen_export_4,wr=o.__wbindgen_free,es=o.__wbindgen_export_6,go=o.__externref_table_dealloc,zo=o.__externref_drop_slice,Ar=o.closure9_externref_shim,Ve=o._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156,mr=o.__wbindgen_start})();export{ae as $,ie as $a,le as $i,ge as $n,ce as $r,de as $t,we as A,be as Aa,ue as Ai,pe as An,he as Ar,fe as At,me as B,ve as Ba,ye as Bi,xe as Bn,Se as Br,Ce as Bt,Ae as C,Oe as Ca,Ie as Ci,Ne as Cn,Fe as Cr,De as Ct,Le as D,ke as Da,Ee as Di,Re as Dn,Te as Dr,Je as Dt,Ve as E,Ue as Ea,Pe as Ei,Be as En,Me as Er,ze as Et,je as F,We as Fa,He as Fi,qe as Fn,$e as Fr,Ke as Ft,Ge as G,Qe as Ga,Xe as Gi,Ye as Gn,Ze as Gr,et as Gt,tt as H,rt as Ha,_t as Hi,ot as Hn,nt as Hr,st as Ht,at as I,it as Ia,lt as Ii,gt as In,ct as Ir,dt as It,wt as J,bt as Ja,ut as Ji,pt as Jn,ht as Jr,ft as Jt,mt as K,vt as Ka,yt as Ki,xt as Kn,St as Kr,Ct as Kt,At as L,Ot as La,It as Li,Nt as Ln,Ft as Lr,Dt as Lt,Lt as M,kt as Ma,Et as Mi,Rt as Mn,Tt as Mr,Jt as Mt,Vt as N,Ut as Na,Pt as Ni,Bt as Nn,Mt as Nr,zt as Nt,jt as O,Wt as Oa,Ht as Oi,qt as On,$t as Or,Kt as Ot,Gt as P,Qt as Pa,Xt as Pi,Yt as Pn,Zt as Pr,er as Pt,tr as Q,rr as Qa,_r as Qi,or as Qn,nr as Qr,sr as Qt,ar as R,ir as Ra,lr as Ri,gr as Rn,cr as Rr,dr as Rt,wr as S,br as Sa,ur as Si,pr as Sn,hr as Sr,fr as St,mr as T,vr as Ta,yr as Ti,xr as Tn,Sr as Tr,Cr as Tt,Ar as U,Or as Ua,Ir as Ui,Nr as Un,Fr as Ur,Dr as Ut,Lr as V,kr as Va,Er as Vi,Rr as Vn,Tr as Vr,Jr as Vt,Vr as W,Ur as Wa,Pr as Wi,Br as Wn,Mr as Wr,zr as Wt,jr as X,Wr as Xa,Hr as Xi,qr as Xn,$r as Xr,Kr as Xt,Gr as Y,Qr as Ya,Xr as Yi,Yr as Yn,Zr as Yr,e_ as Yt,t_ as Z,r_ as Za,__ as Zi,o_ as Zn,n_ as Zr,s_ as Zt,a_ as _,Hi as __tla,i_ as _a,l_ as _i,g_ as _n,c_ as _r,d_ as _t,w_ as a,b_ as aa,u_ as ai,p_ as an,h_ as ao,f_ as ar,m_ as at,v_ as b,y_ as ba,x_ as bi,S_ as bn,C_ as br,A_ as bt,O_ as c,I_ as ca,N_ as ci,F_ as cn,D_ as co,L_ as cr,k_ as ct,E_ as d,R_ as da,T_ as di,J_ as dn,L as do,V_ as dr,U_ as dt,P_ as ea,B_ as ei,M_ as en,z_ as eo,j_ as er,W_ as et,H_ as f,q_ as fa,$_ as fi,K_ as fn,G_ as fo,Q_ as fr,Ii as ft,X_ as g,Y_ as ga,Z_ as gi,eo as gn,Ni as go,to as gr,ro as gt,_o as h,oo as ha,no as hi,so as hn,ao as ho,io as hr,lo as ht,go as i,co as ia,wo as ii,bo as in,uo as io,po as ir,ho as it,fo as j,mo as ja,vo as ji,yo as jn,xo as jr,So as jt,Co as k,Ao as ka,Oo as ki,Io as kn,No as kr,Fo as kt,Do as l,Lo as la,ko as li,Eo as ln,Q as lo,Ro as lr,To as lt,Jo as m,Vo as ma,Uo as mi,Po as mn,X as mo,Bo as mr,Mo as mt,zo as n,jo as na,Wo as ni,Ho as nn,qo as no,$o as nr,Ko as nt,Go as o,Qo as oa,Xo as oi,Yo as on,Zo as oo,en as or,tn as ot,rn as p,_n as pa,on as pi,nn as pn,sn as po,an as pr,ln as pt,gn as q,cn as qa,dn as qi,wn as qn,bn as qr,un as qt,pn as r,hn as ra,fn as ri,mn as rn,vn as ro,yn as rr,xn as rt,Sn as s,Cn as sa,An as si,On as sn,S as so,In as sr,Nn as st,Fn as t,Dn as ta,Ln as ti,kn as tn,En as to,Rn as tr,Tn as tt,Jn as u,Vn as ua,Un as ui,Pn as un,N as uo,Bn as ur,Mn as ut,zn as v,jn as va,Wn as vi,Hn as vn,qn as vr,$n as vt,Kn as w,Gn as wa,Qn as wi,Xn as wn,Yn as wr,Zn as wt,es as x,ts as xa,rs as xi,_s as xn,os as xr,ns as xt,ss as y,as as ya,is as yi,ls as yn,gs as yr,cs as yt,ds as z,ws as za,bs as zi,us as zn,ps as zr,hs as zt};
@@ -1 +0,0 @@
1
- import{s as ze}from"./chunk-LvLJmgfZ.js";import{d as R,l as ht,p as mt,u as me}from"./useEvent-D91BmmQi.js";import{t as pt}from"./react-Bj1aDYRI.js";import{An as ut,Br as ft,Di as pe,Dn as xt,E as Me,En as yt,Tn as bt,Yt as kt,_ as wt,br as jt,fr as gt,h as We,hr as vt,lt as _e,ot as Ct,st as zt,t as Mt,ur as Wt}from"./cells-A-ljPpuj.js";import{t as N}from"./compiler-runtime-B3qBwwSJ.js";import{n as _t,x as Nt}from"./ai-model-dropdown-By4Ohb0R.js";import{_ as H,d as Ne}from"./useEventListener-BR0C1MaI.js";import{y as St}from"./utils-DIGrmLDO.js";import{n as S,t as Se}from"./constants-DMpttj8Q.js";import{S as ue,h as Dt,n as At,o as Pt,x as It}from"./config-ChCHm539.js";import{n as Lt}from"./switch-DlgpDZMk.js";import{t as Et}from"./jsx-runtime-BqBOg78p.js";import{o as Tt}from"./alert-dialog-BGBdrcqJ.js";import{a as $t,c as fe,o as xe,s as Rt}from"./popover-UExmgBsf.js";import{a as Ht,c as qt,i as Ut,n as Bt,r as Ot,s as Yt,t as Ft}from"./select-5i7URBEn.js";import{bt as Vt}from"./JsonOutput-BVAcY5xS.js";import{c as De,d as ye,n as Kt,o as Gt,r as be,t as Jt}from"./download-Iyng0xCz.js";import{t as Ae}from"./tooltip-Gcwqb_SK.js";import{r as Pe,t as q}from"./button-D9nb17Rw.js";import{i as Xt,r as Qt,t as Ie}from"./strings-md4mFbOQ.js";import{r as U}from"./requests-DIwGYs0l.js";import{t as j}from"./createLucideIcon-D5guW7EU.js";import{A as Le,a as Ee,i as Te,j as Zt,k as ea,u as $e}from"./layout-DDh3d8oW.js";import{t as ke}from"./check-BH35Ndha.js";import{n as ta}from"./maps-C48Oksn0.js";import{r as aa}from"./useCellActionButton-Bjxun3wK.js";import{o as oa}from"./slide-form-CXqvfwGg.js";import{t as Re}from"./copy-Dk_3y0H-.js";import{t as na}from"./eye-off-BT-KOYV5.js";import{t as ae}from"./file-HTLbeC2b.js";import{t as sa}from"./github-raQvpeuZ.js";import{u as la}from"./form-Dr-_EXr8.js";import{n as ia,r as ra,t as da}from"./youtube-3lRHw8NU.js";import{i as ca,n as He}from"./add-connection-dialog-gd2yD9Qo.js";import{n as ha,t as ma}from"./square-Dj2Cf4ne.js";import{t as pa}from"./image-DQHXdEQn.js";import{t as ua}from"./link-CfEtM3Rl.js";import{r as fa}from"./input-DyPS_GiK.js";import{t as xa}from"./settings-DfFe0dWD.js";import{t as ya}from"./sparkles-CZ5WmLPA.js";import{y as ba}from"./textarea-Dd0InTQJ.js";import{t as D}from"./use-toast-BDYuj3zG.js";import{n as qe,t as ka}from"./paths-CXng2XQv.js";import{o as wa}from"./session-nmTRerwF.js";import{n as B}from"./copy-B5qyZn5s.js";import{r as ja}from"./useRunCells-DU1tawR-.js";import{a as Ue,c as Be,i as Oe,n as Ye,r as Fe}from"./dialog-EekxpBBM.js";import{n as we}from"./ImperativeModal-BBqcKmmk.js";import{r as ga,t as Ve}from"./share-BXN2Sd1t.js";import{a as va}from"./cell-link-d38hFEon.js";import{a as Ca}from"./renderShortcut-CkNNAheg.js";import{t as za}from"./icons-BRopQwI3.js";import{n as Ke}from"./marimo-icons-BSB-Z_W3.js";import{t as Ma}from"./links-BHtUMVOq.js";import{r as Wa,t as Ge}from"./hooks-CNPv5U-N.js";import{t as Je}from"./types-z6Sk3JCV.js";var _a=j("circle-chevron-down",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 10-4 4-4-4",key:"894hmk"}]]),Na=j("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]),Xe=j("clipboard-copy",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]),Qe=j("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]),Ze=j("diamond-plus",[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),Sa=j("fast-forward",[["path",{d:"M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z",key:"b19h5q"}],["path",{d:"M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z",key:"h7h5ge"}]]),Da=j("files",[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]]),Aa=j("keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]),Pa=j("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]),Ia=j("notebook",[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]]),La=j("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),et=j("presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]),Ea=j("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]),Ta=j("square-power",[["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M7.998 9.003a5 5 0 1 0 8-.005",key:"1pek45"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),tt=j("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),je=N(),A=ze(pt(),1),a=ze(Et(),1);function $a(){return"uvx marimo@latest"}function Ra(t,e,n){let o=n?" --with-token":"",s=`${$a()} pair prompt --url '${e}'${o}`;switch(t){case"claude":return`claude "$(${s} --claude)"`;case"codex":return`codex "$(${s} --codex)"`;case"opencode":return`opencode "$(${s} --opencode)"`;default:Qt(t)}}function Ha(t){return t.length<=4?"****":`${"*".repeat(Math.min(t.length-4,8))}${t.slice(-4)}`}var qa="npx skills add marimo-team/marimo-pair";function Ua(){let t=(0,je.c)(2),[e,n]=(0,A.useState)(null),o,s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{fetch(At("/auth/token").href,{headers:Lt.headers()}).then(Ba).then(r=>n((r==null?void 0:r.token)??null)).catch(()=>n(null))},s=[],t[0]=o,t[1]=s):(o=t[0],s=t[1]),(0,A.useEffect)(o,s),e}function Ba(t){return t.ok?t.json():null}const Oa=t=>{let e=(0,je.c)(32),{onClose:n}=t,[o,s]=(0,A.useState)("claude"),r=Pt(),i=Ua(),l=!!i,d;e[0]!==o||e[1]!==l||e[2]!==r.httpURL?(d=Ra(o,r.httpURL.toString(),l),e[0]=o,e[1]=l,e[2]=r.httpURL,e[3]=d):d=e[3];let c=d,p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(Be,{children:"Pair with an agent"}),e[4]=p):p=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsxs)(Ue,{children:[p,(0,a.jsxs)(Fe,{children:["Use an AI coding agent to pair-program on this notebook."," ",(0,a.jsx)("a",{href:"https://links.marimo.app/marimo-pair",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Learn more"}),"."]})]}),e[5]=u):u=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:"1. Install the skill"}),(0,a.jsx)(O,{command:qa})]}),e[6]=h):h=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)("span",{className:"text-sm font-medium",children:"2. Run in your terminal"}),e[7]=f):f=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=_=>s(_),e[8]=x):x=e[8];let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsxs)(Rt,{className:"w-full",children:[(0,a.jsx)(fe,{value:"claude",className:"flex-1",children:"Claude"}),(0,a.jsx)(fe,{value:"codex",className:"flex-1",children:"Codex"}),(0,a.jsx)(fe,{value:"opencode",className:"flex-1",children:"OpenCode"})]}),e[9]=k):k=e[9];let y;e[10]===c?y=e[11]:(y=(0,a.jsx)(xe,{value:"claude",className:"mt-3",children:(0,a.jsx)(O,{command:c})}),e[10]=c,e[11]=y);let b;e[12]===c?b=e[13]:(b=(0,a.jsx)(xe,{value:"codex",className:"mt-3",children:(0,a.jsx)(O,{command:c})}),e[12]=c,e[13]=b);let w;e[14]===c?w=e[15]:(w=(0,a.jsx)(xe,{value:"opencode",className:"mt-3",children:(0,a.jsx)(O,{command:c})}),e[14]=c,e[15]=w);let g;e[16]!==o||e[17]!==w||e[18]!==y||e[19]!==b?(g=(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[f,(0,a.jsxs)($t,{value:o,onValueChange:x,children:[k,y,b,w]})]}),e[16]=o,e[17]=w,e[18]=y,e[19]=b,e[20]=g):g=e[20];let z;e[21]!==i||e[22]!==l?(z=l&&i&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium",children:"3. Paste when prompted for token"}),(0,a.jsx)(O,{command:i,display:Ha(i)})]}),e[21]=i,e[22]=l,e[23]=z):z=e[23];let v;e[24]!==g||e[25]!==z?(v=(0,a.jsxs)("div",{className:"flex flex-col gap-4 py-2",children:[h,g,z]}),e[24]=g,e[25]=z,e[26]=v):v=e[26];let M;e[27]===n?M=e[28]:(M=(0,a.jsx)(Oe,{children:(0,a.jsx)(q,{variant:"secondary",onClick:n,children:"Close"})}),e[27]=n,e[28]=M);let W;return e[29]!==v||e[30]!==M?(W=(0,a.jsxs)(Ye,{className:"sm:max-w-lg",children:[u,v,M]}),e[29]=v,e[30]=M,e[31]=W):W=e[31],W};var O=t=>{let e=(0,je.c)(15),{command:n,display:o}=t,[s,r]=(0,A.useState)(!1),i;e[0]===n?i=e[1]:(i=Pe.stopPropagation(async x=>{x.preventDefault(),await B(n),r(!0),setTimeout(()=>r(!1),2e3)}),e[0]=n,e[1]=i);let l=i,d=o??n,c;e[2]===d?c=e[3]:(c=(0,a.jsx)("code",{className:"flex-1 select-all break-words",children:d}),e[2]=d,e[3]=c);let p;e[4]===s?p=e[5]:(p=s?(0,a.jsx)(ke,{size:14,strokeWidth:1.5}):(0,a.jsx)(Re,{size:14,strokeWidth:1.5}),e[4]=s,e[5]=p);let u;e[6]!==l||e[7]!==p?(u=(0,a.jsx)(q,{onClick:l,size:"xs",variant:"ghost",children:p}),e[6]=l,e[7]=p,e[8]=u):u=e[8];let h;e[9]!==s||e[10]!==u?(h=(0,a.jsx)(Ae,{content:"Copied!",open:s,children:u}),e[9]=s,e[10]=u,e[11]=h):h=e[11];let f;return e[12]!==c||e[13]!==h?(f=(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-md bg-muted px-3 py-2 font-mono text-xs",children:[c,h]}),e[12]=c,e[13]=h,e[14]=f):f=e[14],f},at=N(),oe="https://static.marimo.app";const Ya=t=>{let e=(0,at.c)(25),{onClose:n}=t,[o,s]=(0,A.useState)(""),{exportAsHTML:r}=U(),i=`${o}-${Math.random().toString(36).slice(2,6)}`,l=`${oe}/static/${i}`,d;e[0]!==r||e[1]!==n||e[2]!==i?(d=async g=>{g.preventDefault(),n();let z=await r({download:!1,includeCode:!0,files:ea.INSTANCE.filenames()}),v=D({title:"Uploading static notebook...",description:"Please wait."});await fetch(`${oe}/api/static`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({html:z,path:i})}).catch(()=>{v.dismiss(),D({title:"Error uploading static page",description:(0,a.jsxs)("div",{children:["Please try again later. If the problem persists, please file a bug report on"," ",(0,a.jsx)("a",{href:S.issuesPage,target:"_blank",className:"underline",children:"GitHub"}),"."]})})}),v.dismiss(),D({title:"Static page uploaded!",description:(0,a.jsxs)("div",{children:["The URL has been copied to your clipboard.",(0,a.jsx)("br",{}),"You can share it with anyone."]})})},e[0]=r,e[1]=n,e[2]=i,e[3]=d):d=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(Be,{children:"Share static notebook"}),e[4]=c):c=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsxs)(Ue,{children:[c,(0,a.jsxs)(Fe,{children:["You can publish a static, non-interactive version of this notebook to the public web. We will create a link for you that lives on"," ",(0,a.jsx)("a",{href:oe,target:"_blank",children:oe}),"."]})]}),e[5]=p):p=e[5];let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=g=>{s(g.target.value.toLowerCase().replaceAll(/\s/g,"-").replaceAll(/[^\da-z-]/g,""))},e[6]=u):u=e[6];let h;e[7]===o?h=e[8]:(h=(0,a.jsx)(fa,{"data-testid":"slug-input",id:"slug",autoFocus:!0,value:o,placeholder:"Notebook slug",onChange:u,required:!0,autoComplete:"off"}),e[7]=o,e[8]=h);let f;e[9]===l?f=e[10]:(f=(0,a.jsxs)("div",{className:"font-semibold text-sm text-muted-foreground gap-2 flex flex-col",children:["Anyone will be able to access your notebook at this URL:",(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Fa,{text:l}),(0,a.jsx)("span",{className:"text-primary",children:l})]})]}),e[9]=l,e[10]=f);let x;e[11]!==h||e[12]!==f?(x=(0,a.jsxs)("div",{className:"flex flex-col gap-6 py-4",children:[h,f]}),e[11]=h,e[12]=f,e[13]=x):x=e[13];let k;e[14]===n?k=e[15]:(k=(0,a.jsx)(q,{"data-testid":"cancel-share-static-notebook-button",variant:"secondary",onClick:n,children:"Cancel"}),e[14]=n,e[15]=k);let y;e[16]===l?y=e[17]:(y=(0,a.jsx)(q,{"data-testid":"share-static-notebook-button","aria-label":"Save",variant:"default",type:"submit",onClick:async()=>{await B(l)},children:"Create"}),e[16]=l,e[17]=y);let b;e[18]!==k||e[19]!==y?(b=(0,a.jsxs)(Oe,{children:[k,y]}),e[18]=k,e[19]=y,e[20]=b):b=e[20];let w;return e[21]!==d||e[22]!==b||e[23]!==x?(w=(0,a.jsx)(Ye,{className:"w-fit",children:(0,a.jsxs)("form",{onSubmit:d,children:[p,x,b]})}),e[21]=d,e[22]=b,e[23]=x,e[24]=w):w=e[24],w};var Fa=t=>{let e=(0,at.c)(8),[n,o]=A.useState(!1),s;e[0]===t.text?s=e[1]:(s=Pe.stopPropagation(async c=>{c.preventDefault(),await B(t.text),o(!0),setTimeout(()=>o(!1),2e3)}),e[0]=t.text,e[1]=s);let r=s,i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(Re,{size:14,strokeWidth:1.5}),e[2]=i):i=e[2];let l;e[3]===r?l=e[4]:(l=(0,a.jsx)(q,{"data-testid":"copy-static-notebook-url-button",onClick:r,size:"xs",variant:"secondary",children:i}),e[3]=r,e[4]=l);let d;return e[5]!==n||e[6]!==l?(d=(0,a.jsx)(Ae,{content:"Copied!",open:n,children:l}),e[5]=n,e[6]=l,e[7]=d):d=e[7],d},Va=N();function Ka(){let t=document.getElementsByClassName(Se.outputArea);for(let e of t){let n=e.getBoundingClientRect();if(n.bottom>0&&n.top<window.innerHeight){let o=pe.findElement(e);if(!o){H.warn("Could not find HTMLCellId for visible output area",e);continue}return{cellId:pe.parse(o.id)}}}return H.warn("No visible output area found for scroll anchor"),null}function Ga(t){if(!t){H.warn("No scroll anchor provided to restore scroll position");return}let e=document.getElementById(pe.create(t.cellId));if(!e){H.warn("Could not find cell element to restore scroll position",t.cellId);return}if(!e.querySelector(`.${Se.outputArea}`)){H.warn("Could not find output area to restore scroll position",t.cellId);return}e.scrollIntoView({block:"start",behavior:"auto"})}function ot(){let t=(0,Va.c)(2),e=R(_e),n;return t[0]===e?n=t[1]:(n=()=>{let o=Ka();e(s=>({mode:zt(s.mode),cellAnchor:(o==null?void 0:o.cellId)??null})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{Ga(o)})})},t[0]=e,t[1]=n),n}const nt=mt(!1);var Ja=N();const Xa=()=>{let t=(0,Ja.c)(7),{selectedLayout:e}=Ee(),{setLayoutView:n}=Te();if(ue()&&!ut("wasm_layouts"))return null;let o;t[0]===n?o=t[1]:(o=l=>n(l),t[0]=n,t[1]=o);let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(Yt,{className:"min-w-[110px] border-border bg-background","data-testid":"layout-select",children:(0,a.jsx)(qt,{placeholder:"Select a view"})}),t[2]=s):s=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(Bt,{children:(0,a.jsxs)(Ot,{children:[(0,a.jsx)(Ht,{children:"View as"}),Je.map(Za)]})}),t[3]=r):r=t[3];let i;return t[4]!==e||t[5]!==o?(i=(0,a.jsxs)(Ft,{"data-testid":"layout-select",value:e,onValueChange:o,children:[s,r]}),t[4]=e,t[5]=o,t[6]=i):i=t[6],i};function Qa(t){return(0,a.jsx)(st(t),{className:"h-4 w-4"})}function st(t){switch(t){case"vertical":return Pa;case"grid":return ra;case"slides":return et;default:return Xt(t),ma}}function lt(t){return Ie.startCase(t)}function Za(t){return(0,a.jsx)(Ut,{value:t,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 leading-5",children:[Qa(t),(0,a.jsx)("span",{children:lt(t)})]})},t)}async function eo(t){let{filename:e,preset:n,downloadPDF:o}=t;await o({filename:e,webpdf:!1,preset:n,includeInputs:!0,rasterServer:"static"})}var to=N();function ao(t){let e=(0,to.c)(5),{openPrompt:n,closeModal:o}=we(),{sendCopy:s}=U(),r;return e[0]!==o||e[1]!==n||e[2]!==s||e[3]!==t?(r=()=>{if(!t)return null;let i=ka.guessDeliminator(t);n({title:"Copy notebook",description:"Enter a new filename for the notebook copy.",defaultValue:`_${qe.basename(t)}`,confirmText:"Copy notebook",spellCheck:!1,onConfirm:l=>{let d=i.join(qe.dirname(t),l);s({source:t,destination:d}).then(()=>{o(),D({title:"Notebook copied",description:"A copy of the notebook has been created."}),Ma(d)})}})},e[0]=o,e[1]=n,e[2]=s,e[3]=t,e[4]=r):r=e[4],r}const oo=()=>{let{updateCellConfig:t}=Me(),{saveCellConfig:e}=U();return(0,A.useCallback)(async()=>{let n=new kt,o=We(),s=o.cellIds.inOrderIds,r={};for(let l of s){if(o.cellData[l]===void 0)continue;let{code:d,config:c}=o.cellData[l];c.hide_code||n.isSupported(d)&&(r[l]={hide_code:!0})}let i=Ne.entries(r);if(i.length!==0){await e({configs:r});for(let[l,d]of i)t({cellId:l,config:d})}},[t])};var no=N();function it(){let t=(0,no.c)(4),{openConfirm:e}=we(),n=R(Dt),{sendRestart:o}=U(),s;return t[0]!==e||t[1]!==o||t[2]!==n?(s=()=>{e({title:"Restart Kernel",description:"This will restart the Python kernel. You'll lose all data that's in memory. You will also lose any unsaved changes, so make sure to save your work before restarting.",variant:"destructive",confirmAction:(0,a.jsx)(Tt,{onClick:async()=>{n({state:It.CLOSING}),await o(),ga()},"aria-label":"Confirm Restart",children:"Restart"})})},t[0]=e,t[1]=o,t[2]=n,t[3]=s):s=t[3],s}var so=N(),T=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation()};function lo(){var ve,Ce;let t=(0,so.c)(51),e=va(),{openModal:n,closeModal:o}=we(),{toggleApplication:s}=bt(),{selectedPanel:r}=yt(),[i]=ht(_e),l=me(Ct),d=oo(),[c]=St(),{updateCellConfig:p,undoDeleteCell:u,clearAllCellOutputs:h,addSetupCellIfDoesntExist:f,collapseAllCells:x,expandAllCells:k}=Me(),y=it(),b=ja(),w=ao(e),g=R(nt),z=R(_t),v=R(Nt),{exportAsIPYNB:M,exportAsMarkdown:W,readCode:_,saveCellConfig:se,updateCellOutputs:P}=U(),I=Wa(),le=me(wt),ie=me(Mt),{selectedLayout:Y}=Ee(),{setLayoutView:re}=Te(),F=ot(),V=((ve=c.sharing)==null?void 0:ve.html)??!0,K=((Ce=c.sharing)==null?void 0:Ce.wasm)??!0,ge=!ue(),de=Y==="slides",rt=zo,dt=Co,G;t[0]!==e||t[1]!==I||t[2]!==P?(G=async m=>{let{preset:C,title:$}=m;if(!e){ne();return}await De($,async he=>{await Ge({takeScreenshots:()=>I({progress:he}),updateCellOutputs:P}),await eo({filename:e,preset:C,downloadPDF:Kt})})},t[0]=e,t[1]=I,t[2]=P,t[3]=G):G=t[3];let L=G,J;t[4]===L?J=t[5]:(J=async()=>{if(ge){await L({preset:"document",title:"Downloading Document PDF..."});return}let m=new Event("export-beforeprint"),C=new Event("export-afterprint");window.dispatchEvent(m),setTimeout(vo,0),setTimeout(()=>window.dispatchEvent(C),0)},t[4]=L,t[5]=J);let X=J,Q;t[6]!==M||t[7]!==e||t[8]!==I||t[9]!==P?(Q=async()=>{if(!e){ne();return}await De("Downloading IPYNB...",async m=>{await Ge({takeScreenshots:()=>I({progress:m}),updateCellOutputs:P});let C=await M({download:!1});be(new Blob([C],{type:"application/x-ipynb+json"}),ye.toIPYNB(document.title))})},t[6]=M,t[7]=e,t[8]=I,t[9]=P,t[10]=Q):Q=t[10];let ce=Q,Z;t[11]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,a.jsx)(Vt,{size:14,strokeWidth:1.5}),t[11]=Z):Z=t[11];let ee;t[12]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,a.jsx)(Le,{size:14,strokeWidth:1.5}),t[12]=ee):ee=t[12];let E;t[13]===e?E=t[14]:(E=async()=>{if(!e){ne();return}await $e({filename:e,includeCode:!0})},t[13]=e,t[14]=E);let te;return t[15]!==f||t[16]!==ie||t[17]!==h||t[18]!==o||t[19]!==x||t[20]!==w||t[21]!==L||t[22]!==k||t[23]!==W||t[24]!==e||t[25]!==X||t[26]!==ce||t[27]!==le||t[28]!==d||t[29]!==de||t[30]!==l||t[31]!==n||t[32]!==_||t[33]!==y||t[34]!==b||t[35]!==se||t[36]!==Y||t[37]!==r||t[38]!==g||t[39]!==v||t[40]!==re||t[41]!==z||t[42]!==V||t[43]!==K||t[44]!==E||t[45]!==s||t[46]!==F||t[47]!==u||t[48]!==p||t[49]!==i.mode?(te=[{icon:Z,label:"Download",handle:T,dropdown:[{icon:ee,label:"Download as HTML",handle:E},{icon:(0,a.jsx)(Le,{size:14,strokeWidth:1.5}),label:"Download as HTML (exclude code)",handle:async()=>{if(!e){ne();return}await $e({filename:e,includeCode:!1})}},{icon:(0,a.jsx)(za,{strokeWidth:1.5,style:{width:14,height:14}}),label:"Download as Markdown",handle:async()=>{let m=await W({download:!1});be(new Blob([m],{type:"text/plain"}),ye.toMarkdown(document.title))}},{icon:(0,a.jsx)(Ia,{size:14,strokeWidth:1.5}),label:"Download as ipynb",handle:ce},{icon:(0,a.jsx)(Zt,{size:14,strokeWidth:1.5}),label:"Download Python code",handle:async()=>{let m=await _();be(new Blob([m.contents],{type:"text/plain"}),ye.toPY(document.title))}},{divider:!0,icon:(0,a.jsx)(pa,{size:14,strokeWidth:1.5}),label:"Download as PNG",disabled:i.mode!=="present",tooltip:i.mode==="present"?void 0:(0,a.jsxs)("span",{children:["Only available in app view. ",(0,a.jsx)("br",{}),"Toggle with: ",Ca("global.hideCode",!1)]}),handle:go},de?{divider:!0,icon:(0,a.jsx)(ae,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:T,dropdown:[{icon:(0,a.jsx)(ae,{size:14,strokeWidth:1.5}),label:"Document Layout",handle:X},{icon:(0,a.jsx)(ae,{size:14,strokeWidth:1.5}),label:"Slides Layout",rightElement:dt(!0),hidden:!ge,handle:async()=>{await L({preset:"slides",title:"Downloading Slides PDF..."})}}]}:{divider:!0,icon:(0,a.jsx)(ae,{size:14,strokeWidth:1.5}),label:"Download as PDF",handle:X}]},{icon:(0,a.jsx)(ya,{size:14,strokeWidth:1.5}),label:"Pair with an agent",handle:async()=>{n((0,a.jsx)(Oa,{onClose:o}))}},{icon:(0,a.jsx)(Ea,{size:14,strokeWidth:1.5}),label:"Share",handle:T,hidden:!V&&!K,dropdown:[{icon:(0,a.jsx)(la,{size:14,strokeWidth:1.5}),label:"Publish HTML to web",hidden:!V,handle:async()=>{n((0,a.jsx)(Ya,{onClose:o}))}},{icon:(0,a.jsx)(ua,{size:14,strokeWidth:1.5}),label:"Create WebAssembly link",hidden:!K,handle:async()=>{await B(Ve({code:(await _()).contents})),D({title:"Copied",description:"Link copied to clipboard."})}},{icon:(0,a.jsx)(Ke,{size:14,strokeWidth:1.5}),label:"Create molab notebook",handle:async()=>{let m=Ve({code:(await _()).contents,baseUrl:`${S.molab}/new`});window.open(m,"_blank")}}]},{icon:(0,a.jsx)(La,{size:14,strokeWidth:1.5}),label:"Helper panel",redundant:!0,handle:T,dropdown:xt.flatMap(m=>{let{type:C,Icon:$,hidden:he,additionalKeywords:ct}=m;return he?[]:{label:Ie.startCase(C),rightElement:rt(r===C),icon:(0,a.jsx)($,{size:14,strokeWidth:1.5}),handle:()=>s(C),additionalKeywords:ct}})},{icon:(0,a.jsx)(et,{size:14,strokeWidth:1.5}),label:"Present as",handle:T,dropdown:[{icon:i.mode==="present"?(0,a.jsx)(ba,{size:14,strokeWidth:1.5}):(0,a.jsx)(oa,{size:14,strokeWidth:1.5}),label:"Toggle app view",hotkey:"global.hideCode",handle:()=>{F()}},...Je.map((m,C)=>{let $=st(m);return{divider:C===0,label:lt(m),icon:(0,a.jsx)($,{size:14,strokeWidth:1.5}),rightElement:(0,a.jsx)("div",{className:"w-8 flex justify-end",children:Y===m&&(0,a.jsx)(ke,{size:14})}),handle:()=>{re(m),i.mode==="edit"&&F()}}})]},{icon:(0,a.jsx)(Da,{size:14,strokeWidth:1.5}),label:"Duplicate notebook",hidden:!e||ue(),handle:w},{icon:(0,a.jsx)(Xe,{size:14,strokeWidth:1.5}),label:"Copy code to clipboard",hidden:!e,handle:async()=>{await B((await _()).contents),D({title:"Copied",description:"Code copied to clipboard."})}},{icon:(0,a.jsx)(aa,{size:14,strokeWidth:1.5}),label:"Enable all cells",hidden:!le||l,handle:async()=>{let m=ft(We());await se({configs:Ne.fromEntries(m.map(jo))});for(let C of m)p({cellId:C,config:{disabled:!1}})}},{divider:!0,icon:(0,a.jsx)(Ze,{size:14,strokeWidth:1.5}),label:"Add setup cell",handle:()=>{f({})}},{icon:(0,a.jsx)(gt,{size:14,strokeWidth:1.5}),label:"Add database connection",handle:()=>{n((0,a.jsx)(He,{onClose:o}))}},{icon:(0,a.jsx)(ca,{size:14,strokeWidth:1.5}),label:"Add remote storage",handle:()=>{n((0,a.jsx)(He,{defaultTab:"storage",onClose:o}))}},{icon:(0,a.jsx)(tt,{size:14,strokeWidth:1.5}),label:"Undo cell deletion",hidden:!ie||l,handle:()=>{u()}},{icon:(0,a.jsx)(Ta,{size:14,strokeWidth:1.5}),label:"Restart kernel",variant:"danger",handle:y,additionalKeywords:["reset","reload","restart"]},{icon:(0,a.jsx)(Sa,{size:14,strokeWidth:1.5}),label:"Re-run all cells",redundant:!0,hotkey:"global.runAll",handle:async()=>{b()}},{icon:(0,a.jsx)(vt,{size:14,strokeWidth:1.5}),label:"Clear all outputs",redundant:!0,handle:()=>{h()}},{icon:(0,a.jsx)(na,{size:14,strokeWidth:1.5}),label:"Hide all markdown code",handle:d,redundant:!0},{icon:(0,a.jsx)(Na,{size:14,strokeWidth:1.5}),label:"Collapse all sections",hotkey:"global.collapseAllSections",handle:x,redundant:!0},{icon:(0,a.jsx)(_a,{size:14,strokeWidth:1.5}),label:"Expand all sections",hotkey:"global.expandAllSections",handle:k,redundant:!0},{divider:!0,icon:(0,a.jsx)(Qe,{size:14,strokeWidth:1.5}),label:"Command palette",hotkey:"global.commandPalette",handle:()=>g(wo)},{icon:(0,a.jsx)(Aa,{size:14,strokeWidth:1.5}),label:"Keyboard shortcuts",hotkey:"global.showHelp",handle:()=>v(ko)},{icon:(0,a.jsx)(xa,{size:14,strokeWidth:1.5}),label:"User settings",handle:()=>z(bo),redundant:!0,additionalKeywords:["preferences","options","configuration"]},{icon:(0,a.jsx)(ta,{size:14,strokeWidth:1.5}),label:"Resources",handle:T,dropdown:[{icon:(0,a.jsx)(jt,{size:14,strokeWidth:1.5}),label:"Documentation",handle:yo},{icon:(0,a.jsx)(sa,{size:14,strokeWidth:1.5}),label:"GitHub",handle:xo},{icon:(0,a.jsx)(ia,{size:14,strokeWidth:1.5}),label:"Discord Community",handle:fo},{icon:(0,a.jsx)(da,{size:14,strokeWidth:1.5}),label:"YouTube",handle:uo},{icon:(0,a.jsx)(Wt,{size:14,strokeWidth:1.5}),label:"Changelog",handle:po}]},{divider:!0,icon:(0,a.jsx)(ha,{size:14,strokeWidth:1.5}),label:"Return home",hidden:!location.search.includes("file"),handle:mo},{icon:(0,a.jsx)(Ke,{size:14,strokeWidth:1.5}),label:"New notebook",hidden:!location.search.includes("file"),handle:ho}].filter(co).map(io),t[15]=f,t[16]=ie,t[17]=h,t[18]=o,t[19]=x,t[20]=w,t[21]=L,t[22]=k,t[23]=W,t[24]=e,t[25]=X,t[26]=ce,t[27]=le,t[28]=d,t[29]=de,t[30]=l,t[31]=n,t[32]=_,t[33]=y,t[34]=b,t[35]=se,t[36]=Y,t[37]=r,t[38]=g,t[39]=v,t[40]=re,t[41]=z,t[42]=V,t[43]=K,t[44]=E,t[45]=s,t[46]=F,t[47]=u,t[48]=p,t[49]=i.mode,t[50]=te):te=t[50],te}function io(t){return t.dropdown?{...t,dropdown:t.dropdown.filter(ro)}:t}function ro(t){return!t.hidden}function co(t){return!t.hidden}function ho(){let t=wa();window.open(t,"_blank")}function mo(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function po(){window.open(S.releasesPage,"_blank")}function uo(){window.open(S.youtube,"_blank")}function fo(){window.open(S.discordLink,"_blank")}function xo(){window.open(S.githubPage,"_blank")}function yo(){window.open(S.docsPage,"_blank")}function bo(t){return!t}function ko(t){return!t}function wo(t){return!t}function jo(t){return[t,{disabled:!1}]}async function go(){let t=document.getElementById("App");t&&await Gt({element:t,filename:document.title,prepare:Jt})}function vo(){return window.print()}function Co(t){return t?(0,a.jsx)("span",{className:"ml-3 shrink-0 rounded-full border border-emerald-200 bg-emerald-50 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-emerald-700",children:"Recommended"}):null}function zo(t){return(0,a.jsx)("div",{className:"w-8 flex justify-end",children:t&&(0,a.jsx)(ke,{size:14})})}function ne(){D({title:"Error",description:"Notebooks must be named to be exported.",variant:"danger"})}export{ot as a,Qe as c,nt as i,Xe as l,it as n,tt as o,Xa as r,Ze as s,lo as t};