isorite 0.1.0 → 0.2.0
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.
- package/dist/core.js +125 -2
- package/dist/embed-worker.js +9 -2
- package/dist/main.js +2377 -394
- package/package.json +2 -1
- package/plugin/server.ts +9 -8
- package/plugin/tour.ts +5 -8
- package/web/_app/immutable/assets/0.s5xqevrq.css +1 -0
- package/web/_app/immutable/assets/4.PVZR2_N5.css +1 -0
- package/web/_app/immutable/assets/5.DCxNIgyW.css +1 -0
- package/web/_app/immutable/assets/9.CFA9_nYZ.css +1 -0
- package/web/_app/immutable/assets/FolderField._A4_sc1Z.css +1 -0
- package/web/_app/immutable/assets/NoteEditor.ChlpmyHO.css +1 -0
- package/web/_app/immutable/assets/NoteList.F579Zvj_.css +1 -0
- package/web/_app/immutable/assets/{Timeline.UMF1LjSO.css → Timeline.KTc3LKuK.css} +1 -1
- package/web/_app/immutable/assets/Tutorial.DOfsM49T.css +1 -0
- package/web/_app/immutable/chunks/B0NIb88Q.js +1 -0
- package/web/_app/immutable/chunks/B7ZjnqOt.js +20 -0
- package/web/_app/immutable/chunks/{B-si2ell.js → BEVz4Dgg.js} +1 -1
- package/web/_app/immutable/chunks/BEk5idXo.js +1 -0
- package/web/_app/immutable/chunks/B_nIecMW.js +667 -0
- package/web/_app/immutable/chunks/C8UdwlAg.js +3 -0
- package/web/_app/immutable/chunks/CRzLMJPS.js +1 -0
- package/web/_app/immutable/chunks/CcQ3P3p1.js +13 -0
- package/web/_app/immutable/chunks/CcRs965g.js +1 -0
- package/web/_app/immutable/chunks/Cw2GjAJR.js +1 -0
- package/web/_app/immutable/chunks/DjBHskLm.js +1 -0
- package/web/_app/immutable/chunks/Dm229u8R.js +1 -0
- package/web/_app/immutable/chunks/UM_L7-f7.js +1 -0
- package/web/_app/immutable/chunks/b-AOhhy1.js +1 -0
- package/web/_app/immutable/chunks/k55859zq.js +1 -0
- package/web/_app/immutable/entry/app.B3QXxjjH.js +2 -0
- package/web/_app/immutable/entry/start.BauJm-6k.js +1 -0
- package/web/_app/immutable/nodes/0.DP4c84Wn.js +14 -0
- package/web/_app/immutable/nodes/1.BcwcVDJZ.js +1 -0
- package/web/_app/immutable/nodes/2.DgGnQZ7P.js +1 -0
- package/web/_app/immutable/nodes/3.BudzO7We.js +1 -0
- package/web/_app/immutable/nodes/4.DmswyrSt.js +2 -0
- package/web/_app/immutable/nodes/5.DjXsfjL5.js +5 -0
- package/web/_app/immutable/nodes/6.uBh-sdQx.js +1 -0
- package/web/_app/immutable/nodes/7.BYBNXM1A.js +1 -0
- package/web/_app/immutable/nodes/8.Tbz9Rh77.js +1 -0
- package/web/_app/immutable/nodes/9.NF5w8YC2.js +486 -0
- package/web/_app/immutable/workers/worker-rKDNrEKQ.js +1 -0
- package/web/_app/version.json +1 -1
- package/web/icon-180.png +0 -0
- package/web/icon-192.png +0 -0
- package/web/icon-512.png +0 -0
- package/web/icon-maskable-512.png +0 -0
- package/web/index.html +35 -12
- package/web/manifest.webmanifest +14 -0
- package/web/_app/immutable/assets/0.CbWSsYpm.css +0 -1
- package/web/_app/immutable/assets/3.Bgs8n1LK.css +0 -1
- package/web/_app/immutable/assets/4.CCFEPTFN.css +0 -1
- package/web/_app/immutable/assets/5.BCvLF9Xz.css +0 -1
- package/web/_app/immutable/assets/6.kPo5mcJx.css +0 -1
- package/web/_app/immutable/assets/NoteEditor.Bp-YDqYj.css +0 -1
- package/web/_app/immutable/chunks/BD1Dpm2e.js +0 -3
- package/web/_app/immutable/chunks/C0fpmehI.js +0 -1
- package/web/_app/immutable/chunks/CWYACT2V.js +0 -1
- package/web/_app/immutable/chunks/CdQZ-ArP.js +0 -1
- package/web/_app/immutable/chunks/DN3dk6rD.js +0 -147
- package/web/_app/immutable/chunks/DtAOoM-T.js +0 -1
- package/web/_app/immutable/chunks/DykrN7z5.js +0 -535
- package/web/_app/immutable/chunks/cmGruEKS.js +0 -1
- package/web/_app/immutable/chunks/gRYnlonl.js +0 -1
- package/web/_app/immutable/entry/app.DgJiXIYs.js +0 -2
- package/web/_app/immutable/entry/start.l9vV7NaJ.js +0 -1
- package/web/_app/immutable/nodes/0.DWPeBju2.js +0 -1
- package/web/_app/immutable/nodes/1.CJVDS8FT.js +0 -1
- package/web/_app/immutable/nodes/2.o8ItfT-a.js +0 -1
- package/web/_app/immutable/nodes/3.uhHyOPGK.js +0 -13
- package/web/_app/immutable/nodes/4.BYKkAZTp.js +0 -2
- package/web/_app/immutable/nodes/5.BzEQO7Xv.js +0 -4
- package/web/_app/immutable/nodes/6.GxiAUa6J.js +0 -1
- package/web/_app/immutable/nodes/7.d2Ere8Jb.js +0 -1
- package/web/_app/immutable/nodes/8.CvPHZL8j.js +0 -1
- package/web/_app/immutable/workers/worker-d9GxGKde.js +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=Array.isArray,d=Array.prototype.indexOf,f=Array.prototype.includes,p=Array.from,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,y=Object.getPrototypeOf,b=Object.isExtensible,x=()=>{};function S(e){return typeof e?.then==`function`}function ee(e){return e()}function te(e){for(var t=0;t<e.length;t++)e[t]()}function ne(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function re(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var C=1024,w=2048,ie=4096,ae=8192,oe=16384,se=32768,ce=1<<25,le=65536,ue=1<<18,de=1<<19,fe=1<<20,pe=1<<25,me=1<<21,he=1<<22,ge=1<<23,_e=Symbol(`$state`),ve=Symbol(`component`),ye=Symbol(`legacy props`),be=Symbol(``),xe=Symbol(`attributes`),Se=Symbol(`class`),Ce=Symbol(`style`),we=Symbol(`text`),Te=Symbol(`form reset`),Ee=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},De=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`),Oe={},T=Symbol(`uninitialized`),ke=`http://www.w3.org/1999/xhtml`,Ae=`http://www.w3.org/2000/svg`,je=`http://www.w3.org/1998/Math/MathML`;function Me(){console.warn(`https://svelte.dev/e/derived_inert`)}function Ne(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function Pe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Fe(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ie(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw Pe(),Oe;return O=e}function Le(){return k(z(O))}function Re(e){if(E){if(z(O)!==null)throw Pe(),Oe;O=e}}function ze(e=1){if(E){for(var t=e,n=O;t--;)n=z(n);O=n}}function Be(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function Ve(e){if(!e||e.nodeType!==8)throw Pe(),Oe;return e.data}function He(e){return e===this.v}function Ue(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function We(e){return!Ue(e,this.v)}function Ge(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function Ke(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function qe(){throw Error(`https://svelte.dev/e/missing_context`)}function Je(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ye(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Xe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ze(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Qe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function $e(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function et(){throw Error(`https://svelte.dev/e/fork_discarded`)}function tt(){throw Error(`https://svelte.dev/e/fork_timing`)}function nt(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function rt(){throw Error(`https://svelte.dev/e/hydration_failed`)}function it(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function at(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ot(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function st(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ct(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function lt(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var ut=!1;function dt(){ut=!0}function ft(e,t,n){let r={};return[()=>(n(r)||qe(),e(r)),e=>t(r,e),()=>n(r)]}function pt(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function mt(e,t){return e===null&&Ke(t),e.c??=new Map(pt(e)||void 0)}var A=null;function ht(e){A=e}function gt(){return ft(_t,vt,yt)}function _t(e){return mt(A,`getContext`).get(e)}function vt(e,t){return mt(A,`setContext`).set(e,t),t}function yt(e){return mt(A,`hasContext`).has(e)}function bt(){return mt(A,`getAllContexts`)}function xt(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:q,l:ut&&!t?{s:null,u:null,$:[]}:null}}function St(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)Qn(r)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,Ct(e)}function Ct(e={}){return m(e,ve,{value:!0}),e}function wt(){return!ut||A!==null&&A.l===null}var Tt=[];function Et(){var e=Tt;Tt=[],te(e)}function j(e){if(Tt.length===0&&!en){var t=Tt;queueMicrotask(()=>{t===Tt&&Et()})}Tt.push(e)}function Dt(){for(;Tt.length>0;)Et()}var Ot=~(w|ie|C);function M(e,t){e.f=e.f&Ot|t}function kt(e){e.f&512||e.deps===null?M(e,C):M(e,ie)}function At(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),M(e,C)}function jt(e,t){if(t){let t=document.body;e.autofocus=!0,j(()=>{document.activeElement===t&&e.focus()})}}function Mt(e){E&&R(e)!==null&&Hn(e)}var Nt=!1;function Pt(){Nt||(Nt=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Te]?.()})},{capture:!0}))}function Ft(e){var t=W,n=q;K(null),br(null);try{return e()}finally{K(t),br(n)}}function It(e,t,n,r=n){e.addEventListener(t,()=>Ft(n));let i=e[Te];e[Te]=i?()=>{i(),r(!0)}:()=>r(!0),Pt()}function Lt(e,t,n,r){let i=wt()?Vt:Gt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=q,c=Rt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){B(e,s)}zt()}}var d=Bt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Ut(e))).then(u).catch(e=>B(e,s)).finally(d)}l?l.then(()=>{s.f&16384?d():(c(),f(),zt())}):f()}function Rt(){var e=q,t=W,n=A,r=N;return function(i=!0){br(e),K(t),ht(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function zt(e=!0){br(null),K(null),ht(null),e&&N?.deactivate()}function Bt(){var e=q,t=e.b,n=N,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Vt(e){var t=2|w;return q!==null&&(q.f|=de),{ctx:A,deps:null,effects:null,equals:He,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:q,ac:null}}var Ht=Symbol(`obsolete`);function Ut(e,t,n){let r=q;r===null&&Je();var i=void 0,a=bn(T),o=!W,s=new Set;return nr(()=>{var t=q,n=ne();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Ee&&n.reject(e)}).finally(zt)}catch(e){n.reject(e),zt()}var c=N;if(o){if(t.f&32768)var l=Bt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Ht);else for(let e of s.values())e.reject(Ht);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Ht&&(c.activate(),t?(a.f|=ge,Tn(a,t)):(a.f&8388608&&(a.f^=ge),Tn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),Xn(()=>{for(let e of s)e.reject(Ht)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Wt(e){let t=Vt(e);return xr(t),t}function Gt(e){let t=Vt(e);return t.equals=We,t}function Kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function qt(e){var t,n=q,r=e.parent;if(!vr&&r!==null&&e.v!==T&&r.f&24576)return Me(),e.v;br(r);try{Kt(e),t=Ar(e)}finally{br(n)}return t}function Jt(e){var t=qt(e);!e.equals(t)&&(e.wv=Dr(),(!N?.is_fork||e.deps===null)&&(N===null?e.v=t:(N.capture(e,t,!0),Qt?.capture(e,t,!0)),e.deps===null))?M(e,C):vr||(P===null?kt(e):(Yn()||N?.is_fork)&&P.set(e,t))}function Yt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Ft(()=>{t.ac.abort(Ee),t.ac=null}),t.fn!==null&&(t.teardown=x),Nr(t,0),cr(t))}function Xt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Pr(t)}var Zt=null,N=null,Qt=null,P=null,$t=null,en=!1,tn=!1,nn=null,rn=null,an=0,on=1,sn=class e{id=on++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Zt===null?Zt=this:(Zt.#n=this,this.#t=Zt),Zt=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)M(r,w),t(r);for(r of n.m)M(r,ie),t(r)}this.#p.add(e)}#g(){var e=[];for(let i of this.#c)if(!(i.f&16384||!(i.f&6144))){for(var t=i,n=!1;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024)){n=!0;break}t.f^=C}}n||e.push(t)}return this.#c=[],e}#_(){this.#e=!0;for(let e of this.#u)this.#d.delete(e),M(e,w),this.schedule(e);for(let e of this.#d)M(e,ie),this.schedule(e);this.apply();for(var t=nn=[],n=[],r=rn=[];this.#c.length>0;){an++>1e3&&(this.#S(),ln());for(let e of this.#g())try{this.#v(e,t,n)}catch(t){throw hn(e),this.#h()||this.discard(),t}}if(N=null,r.length>0){var i=e.ensure();for(let e of r)i.schedule(e)}if(nn=null,rn=null,this.#h()){this.#x(n),this.#x(t);for(let[e,t]of this.#f)mn(e,t);r.length>0&&N.#_();return}let a=this.#y();if(a)this.#x(n),this.#x(t),a.#b(this);else{this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),Qt=this,dn(n),dn(t),Qt=null,this.#s?.resolve();var o=N;if(this.#a===0&&(this.#c.length===0||o!==null)&&this.#S(),this.#c.length>0){if(o!==null){for(let e of this.#c)o.#c.push(e);this.#c=[]}else o=this}o!==null&&(F.clear(),o.#_())}}#v(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):Or(r)&&(i&16&&this.#d.add(r),Pr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),M(i,w),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),N=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)At(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==T&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),P?.set(e,t)),this.is_fork||(e.v=t)}activate(){N=this}deactivate(){N=null,P=null}flush(){try{tn=!0,N=this,this.#_()}finally{an=0,$t=null,nn=null,rn=null,tn=!1,N=null,P=null,F.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(Ht);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,j(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=ne()).promise}static ensure(){if(N===null){let t=N=new e;!tn&&!en&&j(()=>{t.#e||t.flush()})}return N}apply(){P=null}schedule(e){$t=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)?e.b.defer_effect(e):this.#c.push(e)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Zt=e:t.#t=e,this.linked=!1}}};function cn(e){var t=en,n=Qt;Qt=null,en=!0;try{var r;for(e&&(cn(),r=e());;){if(Dt(),N===null)return r;N.flush()}}finally{en=t,Qt=n}}function ln(){try{$e()}catch(e){B(e,$t)}}var un=null;function dn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Or(r)&&(un=new Set,Pr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&dr(r),un?.size>0)){F.clear();for(let e of un){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)un.has(n)&&(un.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Pr(n)}}un.clear()}}un=null}}function fn(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?fn(n,t):e&131072&&(M(n,w),t.add(n))}}function pn(e){N.schedule(e)}function mn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),M(e,C);for(var n=e.first;n!==null;)mn(n,t),n=n.next}}function hn(e){M(e,C);for(var t=e.first;t!==null;)hn(t),t=t.next}function gn(e){Ge(`fork`),N!==null&&tt(),cn();var t=sn.ensure();t.is_fork=!0,P=new Map;var n=!1,r=t.settled();return e(),cn(),{commit:async()=>{if(n)await r;else{t.linked||et(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Dr();cn(()=>{var e=new Set;for(var n of t.current.keys())fn(n,e);vn(e),En()}),t.flush(),await r}},discard:()=>{for(var e of t.current.keys())e.wv=Dr();!n&&t.linked&&t.discard()}}}var _n=new Set,F=new Map;function vn(e){_n=e}var yn=!1;function bn(e,t){return{f:0,v:e,reactions:null,equals:He,rv:0,wv:0}}function xn(e,t){let n=bn(e,t);return xr(n),n}function Sn(e,t=!1,n=!0){let r=bn(e);return t||(r.equals=We),ut&&n&&A!==null&&A.l!==null&&(A.l.s??=[]).push(r),r}function I(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&wt()&&W.f&4325394&&(J===null||!J.has(e))&&ct(),Tn(e,n?kn(t):t,rn)}var Cn=null,wn=0;function Tn(e,t,n=null){if(!e.equals(t)){vr?F.set(e,t):F.has(e)||F.set(e,e.v);var r=sn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&qt(t),P===null&&kt(t)}e.wv=Dr(),Cn=null,wn=0,On(e,w,n),Cn=null,wt()&&q!==null&&q.f&1024&&!(q.f&96)&&(Z===null?Sr([e]):Z.push(e)),!r.is_fork&&_n.size>0&&!yn&&En()}return t}function En(){yn=!1;for(let e of _n){e.f&1024&&M(e,ie);let t;try{t=Or(e)}catch{t=!0}t&&Pr(e)}_n.clear()}function Dn(e){I(e,e.v+1)}function On(e,t,n){var r=e.reactions;if(r!==null){var i=wt(),a=r.length;if(wn+=a,wn>1e5&&Cn===null&&(Cn=new Set),Cn!==null){if(Cn.has(e))return;Cn.add(e)}for(var o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==q){var l=(c&w)===0;if(l&&M(s,t),c&131072)_n.add(s);else if(c&2){var u=s;P?.delete(u),On(u,ie,n)}else if(l){var d=s;c&16&&un!==null&&un.add(d),n===null?pn(d):n.push(d)}}}}}function kn(e){if(typeof e!=`object`||!e||_e in e||ve in e)return e;let t=y(e);if(t!==_&&t!==v)return e;var n=new Map,r=u(e),i=xn(0),a=null,o=Tr,s=e=>{if(Tr===o)return e();var t=W,n=Tr;K(null),Er(o);var r=e();return K(t),Er(n),r};return r&&n.set(`length`,xn(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&ot();var i=n.get(t);return i===void 0?s(()=>{var e=xn(r.value,a);return n.set(t,e),e}):I(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>xn(T,a));n.set(t,e),Dn(i)}}else I(r,T),Dn(i);return!0},get(t,r,i){if(r===_e)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||h(t,r)?.writable)&&(o=s(()=>xn(kn(c?t[r]:T),a)),n.set(r,o)),o!==void 0){var l=Q(o);return l===T?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){this.has?.(e,t);var r=Reflect.getOwnPropertyDescriptor(e,t),i=n.get(t);if(i!==void 0){var a=Q(i);if(a===T)return;if(r&&`value`in r)r.value=a;else return{enumerable:!0,configurable:!0,value:a,writable:!0}}return r},has(e,t){if(t===_e)return!0;var r=n.get(t),i=r!==void 0&&r.v!==T||Reflect.has(e,t);return(r!==void 0||q!==null&&(!i||h(e,t)?.writable))&&(r===void 0&&(r=s(()=>xn(i?kn(e[t]):T,a)),n.set(t,r)),Q(r)===T)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>xn(T,a)),n.set(d+``,f)):I(f,T)}if(l===void 0)(!u||h(e,t)?.writable)&&(l=s(()=>xn(void 0,a)),I(l,kn(o)),n.set(t,l));else{u=l.v!==T;var p=s(()=>kn(o));I(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&I(g,_+1)}Dn(i)}return!0},ownKeys(e){Q(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==T});for(var[r,a]of n)a.v!==T&&!(r in e)&&t.push(r);return t},setPrototypeOf(){st()}})}function An(e){try{if(typeof e==`object`&&e&&_e in e)return e[_e]}catch{}return e}function jn(e,t){return Object.is(An(e),An(t))}var Mn,Nn,Pn,Fn,In;function Ln(){if(Mn===void 0){Mn=window,Nn=document,Pn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Fn=h(t,`firstChild`).get,In=h(t,`nextSibling`).get,b(e)&&(e[Se]=void 0,e[xe]=null,e[Ce]=void 0,e.__e=void 0),b(n)&&(n[we]=void 0)}}function L(e=``){return document.createTextNode(e)}function R(e){return Fn.call(e)}function z(e){return In.call(e)}function Rn(e,t){if(!E)return R(e);var n=R(O);if(n===null)n=O.appendChild(L());else if(t&&n.nodeType!==3){var r=L();return n?.before(r),k(r),r}return t&&Gn(n),k(n),n}function zn(e,t=!1){if(!E){var n=R(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(O?.nodeType!==3){var r=L();return O?.before(r),k(r),r}Gn(O)}return O}function Bn(e,t=!1){if(!E)return R(e);var n=Rn(e,t);return Re(e),n}function Vn(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=z(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=L();return r===null?i?.after(a):r.before(a),k(a),a}Gn(r)}return k(r),r}function Hn(e){e.textContent=``}function Un(){return!1}function Wn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Gn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Kn(e){var t=q;if(t===null)return W.f|=ge,e;if(!(t.f&32768)&&!(t.f&4))throw e;B(e,t)}function B(e,t){if(e===Oe)throw e;if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}function qn(e){q===null&&(W===null&&Qe(e),Ze()),vr&&Xe(e)}function Jn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=ae);var r={ctx:A,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};N?.register_created_effect(r);var i=r;if(e&4)nn===null?sn.ensure().schedule(r):nn.push(r);else if(t!==null){try{Pr(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=le))}if(i!==null&&(i.parent=n,n!==null&&Jn(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function Yn(){return W!==null&&!G}function Xn(e){let t=V(8,null);return M(t,C),t.teardown=e,t}function Zn(e){qn(`$effect`);var t=q.f;if(!W&&t&32&&A!==null&&!A.i){var n=A;(n.e??=[]).push(e)}else return Qn(e)}function Qn(e){return V(4|fe,e)}function $n(e){return qn(`$effect.pre`),V(8|fe,e)}function er(e){sn.ensure();let t=V(64|de,e);return(e={})=>new Promise(n=>{e.outro?fr(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function tr(e){return V(4,e)}function nr(e){return V(he|de,e)}function rr(e,t=0){return V(8|t,e)}function ir(e,t=[],n=[],r=[]){Lt(r,t,n,t=>{V(8,()=>{e(...t.map(Q))})})}function ar(e,t=[],n=[],r=[]){Lt(r,t,n,t=>{V(4,()=>e(...t.map(Q)))})}function or(e,t=0){return V(16|t,e)}function H(e){return V(32|de,e)}function sr(e){var t=e.teardown;if(t!==null){let n=vr,r=W;yr(!0),K(null);try{t.call(null)}catch(t){B(t,e.parent)}finally{yr(n),K(r)}}}function cr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Ft(()=>{e.abort(Ee)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function lr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(ur(e.nodes.start,e.nodes.end),n=!0),e.f|=ce,cr(e,t&&!n),Nr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();sr(e),e.f^=ce,e.f|=oe;var i=e.parent;i!==null&&i.first!==null&&dr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ur(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function dr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function fr(e,t,n=!0){var r=[];e.f|=256,pr(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function pr(e,t,n){if(!(e.f&8192)){e.f^=ae;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);pr(i,t,o?n:!1)}i=a}}}function mr(e){e.f&=-257,hr(e,!0)}function hr(e,t){if(!(e.f&256)&&e.f&8192){e.f^=ae,e.f&1024||(M(e,w),sn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);hr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function gr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var _r=null,vr=!1;function yr(e){vr=e}var W=null,G=!1;function K(e){W=e}var q=null;function br(e){q=e}var J=null;function xr(e){W!==null&&(W.f&2097152||W.f&2)&&(J??=new Set).add(e)}var Y=null,X=0,Z=null;function Sr(e){Z=e}var Cr=1,wr=0,Tr=wr;function Er(e){Tr=e}function Dr(){return++Cr}function Or(e){var t=e.f;if(t&2048)return!0;if(t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Or(a)&&Jt(a),a.wv>e.wv)return!0}t&512&&P===null&&M(e,C)}return!1}function kr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(J!==null&&J.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?kr(a,t,!1):t===a&&(n?M(a,w):a.f&1024&&M(a,ie),pn(a))}}function Ar(e){var t=Y,n=X,r=Z,i=W,a=J,o=A,s=G,c=Tr,l=e.f;Y=null,X=0,Z=null,W=l&96?null:e,J=null,ht(e.ctx),G=!1,Tr=++wr,e.ac!==null&&(Ft(()=>{e.ac.abort(Ee)}),e.ac=null);try{e.f|=me;var u=e.fn,d=u();e.f|=se;var f=jr(e);if(wt()&&Z!==null&&!G&&f!==null&&!(e.f&6146))for(var p=0;p<Z.length;p++)kr(Z[p],e);if(i!==null&&i!==e){if(wr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=wr;if(t!==null)for(let e of t)e.rv=wr;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=ge),d}catch(t){return jr(e),Kn(t)}finally{e.f^=me,Y=t,X=n,Z=r,W=i,J=a,ht(o),G=s,Tr=c}}function jr(e){var t=e.deps,n=N?.is_fork;if(Y!==null){var r;if(n||Nr(e,X),t!==null&&X>0)for(t.length=X+Y.length,r=0;r<Y.length;r++)t[X+r]=Y[r];else e.deps=t=Y;if(Yn()&&e.f&512)for(r=X;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&X<t.length&&(Nr(e,X),t.length=X);return t}function Mr(e,t){let n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!f.call(Y,t))){var a=t;a.f&512&&(a.f^=512),a.v!==T&&kt(a),a.ac!==null&&Ft(()=>{a.ac.abort(Ee),a.ac=null,M(a,w)}),Yt(a),Nr(a,0)}}function Nr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Mr(e,n[r])}function Pr(e){var t=e.f;if(!(t&16384)){M(e,C);var n=q;q=e;try{t&16777232?lr(e):cr(e),sr(e);var r=Ar(e);e.teardown=typeof r==`function`?r:null,e.wv=Cr}finally{q=n}}}async function Fr(){await Promise.resolve(),cn()}function Ir(){return sn.ensure().settled()}function Q(e){var t=!!(e.f&2);if(_r?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(J===null||!J.has(e))){var n=W.deps;if(W.f&2097152)e.rv<wr&&(e.rv=wr,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{W.deps??=[],f.call(W.deps,e)||W.deps.push(e);var r=e.reactions;r===null?e.reactions=[W]:f.call(r,W)||r.push(W)}}if(vr&&F.has(e))return F.get(e);if(t){var i=e;if(vr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Rr(i))&&(a=qt(i)),F.set(i,a),a}var o=!(i.f&512)&&!G&&W!==null&&!!(W.f&512),s=(i.f&se)===0;Or(i)&&(o&&(i.f|=512),Jt(i)),o&&!s&&(Xt(i),Lr(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Lr(e){if(e.f|=512,e.deps!==null)for(let n of e.deps){var t=n.reactions;t===null?n.reactions=[e]:f.call(t,e)||t.push(e),n.f&2&&!(n.f&512)&&(Xt(n),Lr(n))}}function Rr(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(F.has(t)||t.f&2&&Rr(t))return!0;return!1}function zr(e){var t=G;try{return G=!0,e()}finally{G=t}}function Br(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(_e in e)Vr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&_e in n&&Vr(n)}}}function Vr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Vr(e[n],t)}catch{}let n=y(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=g(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var Hr=[`touchstart`,`touchmove`];function Ur(e){return Hr.includes(e)}var Wr=Symbol(`events`),Gr=new Set,Kr=new Set;function qr(e,t,n,r={}){function i(e){if(r.capture||$r.call(t,e),!e.cancelBubble)return Ft(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?(i.__removed=!1,j(()=>{i.__removed||t.addEventListener(e,i,r)})):t.addEventListener(e,i,r),i}function Jr(e,t,n,r,i){var a={capture:r,passive:i},o=qr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xn(()=>{o.__removed=!0,t.removeEventListener(e,o,a)})}function Yr(e,t,n){(t[Wr]??={})[e]=n}function Xr(e){for(var t=0;t<e.length;t++)Gr.add(e[t]);for(var n of Kr)n(e)}var Zr=null,Qr=!1;function $r(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Zr=e,Qr||(Qr=!0,setTimeout(()=>{Qr=!1,Zr=null}));var o=0,s=Zr===e&&e[Wr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Wr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){m(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=W,d=q;K(null),br(null);try{for(var f,p=[];a!==null&&a!==t;){try{var h=a[Wr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Wr]=t,delete e.currentTarget,K(u),br(d)}}}var ei=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ti(e){return ei?.createHTML(e)??e}function ni(e){var t=Wn(`template`);return t.innerHTML=ti(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ri(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return $(O,null),O;i===void 0&&(i=ni(a?e:`<!>`+e),n||(i=R(i)));var t=r||Pn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=R(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function ii(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return $(O,null),O;if(!o){var e=R(ni(a));if(i)for(o=document.createDocumentFragment();R(e);)o.appendChild(R(e));else o=R(e)}var t=o.cloneNode(!0);if(i){var n=R(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function ai(e,t){return ii(e,t,`svg`)}function oi(e=``){if(!E){var t=L(e+``);return $(t,t),t}var n=O;return n.nodeType===3?Gn(n):(n.before(n=L()),k(n)),$(n,n),n}function si(){if(E)return $(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=L();return e.append(t,n),$(t,n),e}function ci(e,t){if(E){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),Le()}else e!==null&&e.before(t)}function li(e){let t=0,n=bn(0),r;return()=>{Yn()&&(Q(n),rr(()=>(t===0&&(r=zr(()=>e(()=>Dn(n)))),t+=1,()=>{j(()=>{--t,t===0&&(r?.(),r=void 0,Dn(n))})})))}}var ui=le|de;function di(e,t,n,r){new fi(e,t,n,r)}var fi=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=li(()=>(this.#m=bn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=or(()=>{if(E){let e=Ve(this.#t);Le();let t=e===`[!`;if(e.startsWith(`[?`)){let t=JSON.parse(e.slice(2));this.#_(t)}else t?this.#b():this.#g()}else this.#x()},ui),E&&(this.#e=O)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);j(r),t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{this.#y()||(t?Ie():(t=!0,n&<(),this.#s!==null&&fr(this.#s,()=>{this.#s=null}),this.#C(()=>{this.#x()})))};return{reset:r,invoke_onerror:()=>{if(!this.#y())try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){B(e,this.#i&&this.#i.parent)}}}}#y(){return(this.#i.f&(oe|ce))!==0}#b(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),j(()=>{if(!this.#y()){var e=this.#c=document.createDocumentFragment(),t=L(),n=!1;e.append(t),this.#a=this.#C(()=>{try{return H(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){B(e,this.#i.parent)}return null}}),this.#a===null?(this.#c=null,n&&this.#S(N)):this.#u===0&&(this.#e.before(e),this.#c=null,fr(this.#o,()=>{this.#o=null}),this.#S(N))}}))}#x(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();gr(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#S(N)}catch(e){this.error(e)}}#S(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){At(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#C(e){var t=q,n=W,r=A;br(this.#i),K(this.#i),ht(this.#i.ctx);try{return sn.ensure(),e()}finally{br(t),K(n),ht(r)}}#w(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#S(t),this.#o&&fr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#w(e,t)}update_pending_count(e,t){this.#w(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,j(()=>{this.#d=!1,this.#m&&Tn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){if(e===Oe||!this.#n.onerror&&!this.#n.failed)throw e;N?.is_fork?(this.#a&&N.skip_effect(this.#a),this.#o&&N.skip_effect(this.#o),this.#s&&N.skip_effect(this.#s),N.oncommit(()=>{this.#y()||this.#T(e)})):this.#T(e)}#T(e){this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),E&&(k(this.#t),ze(),k(Be()));let t=this.#n.failed,n=e=>{if(this.#y())return;let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&!this.#y()&&(this.#s=this.#C(()=>{try{return H(()=>{var r=q;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return B(e,this.#i.parent),null}}))};j(()=>{if(!this.#y()){var t;try{t=this.transform_error(e)}catch(e){B(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>B(e,this.#i&&this.#i.parent)):n(t)}})}};function pi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[we]??=e.nodeValue)&&(e[we]=n,e.nodeValue=`${n}`)}function mi(e,t){return _i(e,t)}function hi(e,t){Ln(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=R(n);a&&(a.nodeType!==8||a.data!==`[`);)a=z(a);if(!a)throw Oe;D(!0),k(a);let r=_i(e,{...t,anchor:a});return D(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Oe&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&rt(),Ln(),Hn(n),D(!1),mi(e,t)}finally{D(r),k(i)}}var gi=new Map;function _i(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Ln();var c=void 0,l=er(()=>{var o=n??t.appendChild(L());di(o,{pending:()=>{}},t=>{xt({});var n=A;if(a&&(n.c=a),i&&(r.$$events=i),E&&$(t,null),c=e(t,r)||Ct(),E&&(q.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Pe(),Oe;St()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=Ur(r);for(let e of[t,document]){var a=gi.get(e);a===void 0&&(a=new Map,gi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,$r,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(p(Gr)),Kr.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=gi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,$r),r.delete(e),r.size===0&&gi.delete(n)):r.set(e,i)}Kr.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return vi.set(c,l),c}var vi=new WeakMap;function yi(e,t){let n=vi.get(e);return n?(vi.delete(e),n(t)):Promise.resolve()}var bi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)mr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(mr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(U(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();gr(r,t),t.append(L()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),fr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=Un();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=L();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}},xi=0,Si=1,Ci=2;function wi(e,t,n,r,i){E&&Le();var a=wt(),o=T,s=a?bn(o):Sn(o,!1,!1),c=a?bn(o):Sn(o,!1,!1),l=new bi(e);or(()=>{var a=N,o=t(),u=!1;let d=E&&S(o)===(e.data===`[!`);if(d&&(k(Be()),D(!1)),S(o)){var f=Rt(),p=!1;let e=e=>{if(!u){p=!0,f(!1),N===a&&a.deactivate(),sn.ensure();try{e()}finally{zt(!1),en||cn()}}};o.then(t=>{e(()=>{Tn(s,t),l.ensure(Si,r&&(e=>r(e,s)))})},t=>{e(()=>{if(Tn(c,t),l.ensure(Ci,i&&(e=>i(e,c))),!i)throw c.v})}),E?l.ensure(xi,n):j(()=>{p||e(()=>{l.ensure(xi,n)})})}else Tn(s,o),l.ensure(Si,r&&(e=>r(e,s)));return d&&D(!0),()=>{u=!0}})}function Ti(e,t,n=!1){var r;E&&(r=O,Le());var i=new bi(e),a=n?le:0;function o(e,t){if(E){var n=Ve(r);if(e!==parseInt(n.substring(1))){var a=Be();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}or(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Ei=Symbol(`NaN`);function Di(e,t,n){E&&Le();var r=new bi(e),i=!wt();or(()=>{var e=t();e!==e&&(e=Ei),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Oi(e,t){return t}function ki(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];fr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Ai(e,p(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;Hn(u),u.append(l),e.items.clear()}Ai(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Ai(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=pe,gr(a,document.createDocumentFragment())):U(t[i],n)}}var ji;function Mi(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=E?k(R(c)):c.appendChild(L())}E&&Le();var l=null,d=Gt(()=>{var e=n();return u(e)?e:e==null?[]:p(e)}),f=new Map,m=!0;function h(e){if(!(_.effect.f&16384)){_.pending.delete(e);var n=Q(d);_.fallback=l,Pi(_,n,o,t,r),l!==null&&(n.length===0?l.f&33554432?(l.f^=pe,Ii(l,null,o)):mr(l):fr(l,()=>{l=null}))}}function g(e){_.pending.delete(e)}var _={effect:or(()=>{var e=Q(d),c=e.length;let u=!1;E&&Ve(o)===`[!`!=(c===0)&&(o=Be(),k(o),D(!1),u=!0);for(var p=new Set,_=N,v=Un(),y=0;y<c;y+=1){E&&O.nodeType===8&&O.data===`]`&&(o=O,u=!0,D(!1));var b=e[y],x=r(b,y),S=m?null:s.get(x);S?(S.v&&Tn(S.v,b),S.i&&Tn(S.i,y),v&&_.unskip_effect(S.e)):(S=Fi(s,m?o:ji??=L(),b,x,y,i,t,n),m||(S.e.f|=pe),s.set(x,S)),p.add(x)}if(c===0&&a&&!l&&(m?l=H(()=>a(o)):(l=H(()=>a(ji??=L())),l.f|=pe)),c>p.size&&Ye(``,``,``),E&&c>0&&k(Be()),!m){if(f.set(_,p),v){for(let[e,t]of s)p.has(e)||_.skip_effect(t.e);_.oncommit(h),_.ondiscard(g)}else h(_)}u&&D(!0),Q(d)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};m=!1,E&&(o=O)}function Ni(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Pi(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=Ni(e.effect.first),l,u=null,d,f=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(mr(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432){if(_.f^=pe,_===c)Ii(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Li(e,u,_),Li(e,_,y),Ii(_,y,n),u=_,f=[],m=[],c=Ni(u.next);continue}}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<m.length){var b=m[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)Ii(f[x],b,n);for(x=0;x<m.length;x+=1)l.delete(m[x]);Li(e,S.prev,ee.next),Li(e,u,S),Li(e,ee,b),c=b,u=ee,--v,f=[],m=[]}else l.delete(_),Ii(_,c,n),Li(e,_.prev,_.next),Li(e,_,u===null?e.effect.first:u.next),Li(e,u,_),u=_;continue}for(f=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=Ni(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=Ni(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Ai(e,p(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(_ of l)_.f&8192||te.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=Ni(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}ki(e,te,re)}}a&&j(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function Fi(e,t,n,r,i,a,o,s){var c=o&1?o&16?bn(n):Sn(n,!1,!1):null,l=o&2?bn(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ii(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=z(r);if(a.before(r),r===i)return;r=o}}function Li(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ri(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=k(R(c)))}ir(()=>{var e=q;if(s===(s=t()??``))E&&Le();else if(n&&!E)e.nodes=null,c.innerHTML=s,s!==``&&$(R(c),c.lastChild);else if(e.nodes!==null&&(ur(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(E){for(var a=O.data,l=Le(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=z(l);if(l===null)throw Pe(),Oe;$(O,u),o=k(l)}else{var d=Wn(r?`svg`:i?`math`:`template`,r?Ae:i?je:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(R(f),f.lastChild),r||i)for(;R(f);)o.before(R(f));else o.before(f)}}})}function zi(e,t,...n){var r=new bi(e);or(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},le)}function Bi(e){return(t,...n)=>{var r=e(...n),i;E?(i=O,Le()):(i=R(ni(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&Xn(a)}}function Vi(e,t,n){var r;E&&(r=O,Le());var i=new bi(e);or(()=>{var e=t()??null;if(E&&Ve(r)===`[`!=(e!==null)){var a=Be();k(a),i.anchor=a,D(!1),i.ensure(e,e&&(t=>n(t,e))),D(!0)}else i.ensure(e,e&&(t=>n(t,e)))},le)}function Hi(e,t){let n=null,r=E;var i;if(E){n=O;for(var a=R(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=z(a);if(a===null)D(!1);else{var o=z(a);a.remove(),k(o)}}E||(i=document.head.appendChild(L()));try{or(()=>{var e=H(()=>t(i));e.f|=ue,E||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&(D(!0),k(n))}}function Ui(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ui(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Wi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ui(e))&&(r&&(r+=` `),r+=t);return r}function Gi(e){return typeof e==`object`?Wi(e):e??``}var Ki=[...`
|
|
3
|
+
\r\f\xA0\v`];function qi(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Ki.includes(r[o-1]))&&(s===r.length||Ki.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ji(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Yi(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Xi(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Yi)),i&&c.push(...Object.keys(i).map(Yi));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Yi(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ji(r)),i&&(n+=Ji(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Zi(e,t,n,r,i,a){var o=e[Se];if(E||o!==n||o===void 0){var s=qi(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Se]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Qi(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function $i(e,t,n,r){var i=e[Ce];if(E||i!==t){var a=Xi(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ce]=t}else r&&(Array.isArray(r)?(Qi(e,n?.[0],r[0]),Qi(e,n?.[1],r[1],`important`)):Qi(e,n,r));return r}function ea(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function ta(e,t){var n=e.__defaultValue,r=e.multiple,i=r?n??[]:null;if(!r||u(i)){var a=e.selectedIndex,o=t&&r?new Set(e.selectedOptions):null;for(var s of e.options){var c=ia(s);ea(s,r?i.includes(c):jn(c,n))}if(t){if(o!==null)for(s of e.options){var l=o.has(s);s.selected!==l&&(s.selected=l)}else e.selectedIndex!==a&&(e.selectedIndex=a)}}}function na(e,t,n=!1){if(e.multiple){if(t==null)return;if(!u(t))return Fe();for(var r of e.options)r.selected=t.includes(ia(r))}else{for(r of e.options)if(jn(ia(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}}function ra(e){var t=new MutationObserver(t=>{t.every(aa)||(`__defaultValue`in e&&ta(e,!1),`__value`in e&&na(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),Xn(()=>{t.disconnect()})}function ia(e){return`__value`in e?e.__value:e.value}function aa(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var oa=Symbol(`is custom element`),sa=Symbol(`is html`),ca=De?`link`:`LINK`,la=De?`progress`:`PROGRESS`;function ua(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;fa(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;fa(e,`checked`,null),e.checked=r}}};e[Te]=n,j(n),Pt()}}function da(e,t){var n=pa(e);n.value!==(n.value=t??void 0)&&(e.value!==t||t===0&&e.nodeName===la)&&(e.value=t??``)}function fa(e,t,n,r){var i=pa(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ca)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[be]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ha(e).has(t)?e[t]=n:e.setAttribute(t,n))}function pa(e){return e[xe]??={[oa]:e.nodeName.includes(`-`),[sa]:e.namespaceURI===ke}}var ma=new Map;function ha(e){var t=e.getAttribute(`is`)||e.nodeName,n=ma.get(t);if(n)return n;ma.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=g(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=y(i)}return n}function ga(e,t,n=t){var r=new WeakSet;It(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=_a(e)?va(a):a,n(a),N!==null&&r.add(N),await Fr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||zr(t)==null&&e.value)&&(n(_a(e)?va(e.value):e.value),N!==null&&r.add(N)),rr(()=>{var n=t();if(e===document.activeElement){var i=N;if(r.has(i))return}_a(e)&&n===va(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function _a(e){var t=e.type;return t===`number`||t===`range`}function va(e){return e===``?null:+e}function ya(e,t){return e===t||e?.[_e]===t}function ba(e=Ct(),t,n,r){var i=A.r,a=q;return tr(()=>{var o,s;return rr(()=>{o=s,s=r?.()||[],zr(()=>{ya(n(...s),e)||(t(e,...s),o&&ya(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ya(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function xa(e=!1){let t=A,n=t.l.u;if(!n)return;let r=()=>Br(t.s);if(e){let e=0,n={},i=Vt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Q(i)}n.b.length&&$n(()=>{Sa(t,r),te(n.b)}),Zn(()=>{let e=zr(()=>n.m.map(ee));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&Zn(()=>{Sa(t,r),te(n.a)})}function Sa(e,t){if(e.l.s)for(let t of e.l.s)Q(t);t()}var Ca=[];function wa(e,t=x){let n=null,r=new Set;function i(t){if(Ue(e,t)&&(e=t,n)){let t=!Ca.length;for(let t of r)t[1](),Ca.push(t,e);if(t){for(let e=0;e<Ca.length;e+=2)Ca[e][0](Ca[e+1]);Ca.length=0}}}function a(t){i(t(e))}function o(o,s=x){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||x),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var Ta=!1;function Ea(e){var t=Ta;try{return Ta=!1,[e(),Ta]}finally{Ta=t}}function Da(e,t,n,r){var i=!ut||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Vt(r),Q(l)):(c&&(c=!1,s=o?zr(r):r),s);let d;if(a){var f=_e in e||ye in e;d=h(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Ea(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&at(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||m)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?Vt:Gt)(()=>(v=!1,g()));a&&Q(y);var b=q;return(function(e,t){if(arguments.length>0){let n=t?Q(y):i&&a?kn(e):e;return I(y,n),v=!0,s!==void 0&&(s=n),e}return vr&&v||b.f&16384?y.v:Q(y)})}function Oa(e){return class extends ka{constructor(t){super({component:e,...t})}}}var ka=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Sn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ye||(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?hi:mi)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&cn(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&m(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{yi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function Aa(e,t){if(Ge(`hydratable`),E){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Ne(e)}return t()}var ja=s({afterUpdate:()=>Ra,beforeUpdate:()=>La,createContext:()=>gt,createEventDispatcher:()=>Ia,createRawSnippet:()=>Bi,flushSync:()=>cn,fork:()=>gn,getAbortSignal:()=>Ma,getAllContexts:()=>bt,getContext:()=>_t,hasContext:()=>yt,hydratable:()=>Aa,hydrate:()=>hi,mount:()=>mi,onDestroy:()=>Pa,onMount:()=>Na,setContext:()=>vt,settled:()=>Ir,tick:()=>Fr,unmount:()=>yi,untrack:()=>zr});function Ma(){return W===null&&nt(),(W.ac??=new AbortController).signal}function Na(e){A===null&&Ke(`onMount`),ut&&A.l!==null?za(A).m.push(e):Zn(()=>{let t=zr(e);if(typeof t==`function`)return t})}function Pa(e){A===null&&Ke(`onDestroy`),Na(()=>()=>zr(e))}function Fa(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Ia(){let e=A;return e===null&&Ke(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=u(i)?i.slice():[i],o=Fa(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function La(e){A===null&&Ke(`beforeUpdate`),A.l===null&&it(`beforeUpdate`),za(A).b.push(e)}function Ra(e){A===null&&Ke(`afterUpdate`),A.l===null&&it(`afterUpdate`),za(A).a.push(e)}function za(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{xn as $,si as A,zr as B,Di as C,pi as D,mi as E,Yr as F,Nn as G,ir as H,Jr as I,zn as J,Mn as K,Q as L,ai as M,oi as N,yi as O,Xr as P,I as Q,Ir as R,Oi as S,wi as T,Zn as U,ar as V,$n as W,Vn as X,Bn as Y,kn as Z,Hi as _,wa as a,St as at,Ri as b,ga as c,dt as ct,da as d,x as dt,Gt as et,ra as f,re as ft,Gi as g,Zi as h,l as ht,Da as i,_t as it,ri as j,ci as k,ua as l,ze as lt,$i as m,s as mt,Na as n,jt as nt,xa as o,xt as ot,na as p,o as pt,Rn as q,Oa as r,Mt as rt,ba as s,vt as st,ja as t,Wt as tt,fa as u,Re as ut,Vi as v,Ti as w,Mi as x,zi as y,Fr as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,t){return new URL(e,t).href},t={},n=function(e){return e.pathname.endsWith(`.css`)},r=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},i=function(i,a,o){let s=Promise.resolve();if(a&&a.length>0){let i,c=document.querySelector(`meta[property=csp-nonce]`),l=c?.nonce||c?.getAttribute(`nonce`);function u(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function d(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}s=u(a.map(a=>{a=e(a,o);let s=d(a),c=n(s);return r(t,s.href,()=>{if(i===void 0){i={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];i.all.add(n.href),n.rel===`stylesheet`&&i.styles.add(n.href)}}if((c?i.styles:i.all).has(s.href))return;let e=document.createElement(`link`);if(e.rel=c?`stylesheet`:`modulepreload`,c||(e.as=`script`),e.crossOrigin=``,e.href=s.href,l&&e.setAttribute(`nonce`,l),document.head.appendChild(e),c)return new Promise((t,n)=>{e.addEventListener(`load`,t),e.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${s}`)))})})}).filter(e=>e!==void 0))}function c(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then(e=>{for(let t of e||[])t.status===`rejected`&&c(t.reason);return i().catch(c)})};export{i as t};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{$ as e,A as t,D as n,F as r,H as i,J as a,L as o,M as s,N as c,P as l,Q as u,S as d,X as f,Y as p,Z as m,at as h,h as g,j as _,k as v,lt as ee,m as te,n as ne,ot as y,q as b,s as re,tt as x,u as S,ut as C,w,x as ie}from"./C8UdwlAg.js";import{t as ae}from"./Cw2GjAJR.js";import"./xihTtKlq.js";import{n as T,t as E}from"./DjBHskLm.js";import{i as D}from"./B_nIecMW.js";import{i as O}from"./UM_L7-f7.js";import{t as k}from"./BEk5idXo.js";async function oe(){let{notes:e}=await E.api.notes(),t=await Promise.all(e.map(async e=>[e.id,(await E.api.readNote(e.id)).text]));return new Map(t)}async function se(e){let t=await oe(),n=[...e.keys()].filter(e=>!t.has(e));for(let[r,i]of t){if(e.has(r))continue;let t=n.find(t=>e.get(t)===i),{version:a}=await E.api.readNote(r);t?(await E.api.moveNote(r,t,a),n.splice(n.indexOf(t),1)):await E.api.deleteNote(r,a)}for(let t of n)await E.api.createNote(t,e.get(t));for(let[t,r]of e){if(n.includes(t))continue;let e=await E.api.readNote(t);e.text!==r&&await E.api.saveNote(t,{base:e.version,text:r})}await E.refresh()}var A={type:`string`};({...A}),{...A},{...A},{...A},{...A};var j={type:`string`};({...j}),{...j},{...j},{...j},{...j},{...j},{...j},{...j},{...j},{...j},{...j};var ce=`The change is written at once, under your name: the person sees your words marked in the note, and can undo it from the browser. Use this, never edit or write, for any note of the knowledge base.`;`${ce}`,`${ce}`;var M={insert:`how is a body inserted, and what does each node keep?`,rewrite:`answer my TODO`,speed:`how much faster is Barnes–Hut at N = 5000?`,octree:`How does the quadtree become an octree for 3D, and what changes in Barnes–Hut?`,close:`What goes wrong when two bodies pass close?`,octreeWrite:`write a note in algorithms on the octree: how the quadtree becomes one for 3D, and what changes in Barnes–Hut`,understand:`help me see why leapfrog's energy error stays bounded`,answer:`run backwards with −Δt, it retraces its steps`},N=`physics`,P=`integrators`,F=`algorithms`,I=`simulation`,L=(e,t)=>`${e}/${t}`,R=L(N,`newtons-law-of-gravitation`);L(N,`the-n-body-problem`);var z=L(N,`units`),B=L(N,`energy-conservation`),V=L(N,`softening`);L(P,`eulers-method`);var H=L(P,`leapfrog`);L(P,`symplectic-integrators`);var le=L(P,`choosing-the-timestep`);L(F,`direct-summation`);var ue=L(F,`centre-of-mass`),U=L(F,`the-quadtree`),W=L(F,`barnes-hut`),de=L(F,`cost-and-accuracy`),G=L(I,`the-main-loop`);L(I,`initial-conditions`);var fe=L(I,`diagnostics`),K=L(I,`two-galaxies-colliding`),pe=`Exact, and unaided.`,me=`$F = G m_1 m_2 / d^2 = 1 \\cdot \\tfrac12 \\cdot \\tfrac12 / 1 = \\tfrac14$.
|
|
2
|
+
|
|
3
|
+
Each accelerates at $a = F/m = \\tfrac14 / \\tfrac12$.
|
|
4
|
+
|
|
5
|
+
So each accelerates at $\\tfrac12$, towards the other.`,he=`$M = 1 + 2 + 1 = 4$.
|
|
6
|
+
|
|
7
|
+
$\\mathbf{R} = (1 \\cdot (0,0) + 2 \\cdot (3,0) + 1 \\cdot (0,4)) / 4 = (6, 4)/4$.
|
|
8
|
+
|
|
9
|
+
So $\\mathbf{R} = (1.5, 1)$, with $M = 4$.`,ge=`The drift falls as $\\Delta t^2$; at $T/100$ it is a few parts in a million.
|
|
10
|
+
|
|
11
|
+
So $\\Delta t = 2\\pi/100 \\approx 0.06$ is enough.
|
|
12
|
+
|
|
13
|
+
Check: record $E$ every 100 steps and plot the drift; halve $\\Delta t$ and it should fall by four.`;[20,17,12,5,2].map((e,t)=>({day:e,working:me,answer:`So each accelerates at $\\tfrac12$, towards the other.`,result:`right`,marks:[[`$F = G`,`right`],[`So each`,`right`]],moves:{[R]:[1,t?pe:`The law, with its direction, unaided.`],[z]:[t<2?1:.5,`Uses G = 1 without a slip.`]}})),[6,4,2,1].map(e=>({day:e,working:he,answer:`So $\\mathbf{R} = (1.5, 1)$, with $M = 4$.`,result:`right`,marks:[[`$M = 1`,`right`],[`So $\\mathbf{R}`,`right`]],moves:{[ue]:[1,pe]}})),[11,7].map(e=>({day:e,working:ge,answer:`So $\\Delta t = 2\\pi/100 \\approx 0.06$ is enough.`,result:`right`,marks:[[`The drift falls`,`right`],[`So $\\Delta t`,`right`],[`Check:`,`right`]],moves:{[le]:[1,pe],[fe]:[1,`Knows what to measure, and what halving the step should do.`]}}));var _e=18,ve=new Map,ye=0,be=(e,t)=>n=>n.type===`iso-start`&&n.place.form===`turn`&&n.place.mode===e&&t.test(n.asked.toLowerCase()),q=(e,t,n=()=>!0)=>r=>{if(r.type!==`iso-done`)return!1;let i=ve.get(r.request);return!!i&&i.mode===e&&t.test(i.asked.toLowerCase())&&n(i)},J=0,Y=e=>()=>decodeURIComponent(location.hash).startsWith(e),xe=e=>()=>document.querySelector(e)!==null,Se=e=>()=>document.querySelector(`[data-note="${e}"]`)?.classList.contains(`at`)??!1,Ce=e=>E.listing.notes.find(t=>e.test(t.title)),X=new Map,we=new Map;function Te(e){E.api.readNote(e).then(t=>{X.set(e,t.text),we.has(e)||we.set(e,t.text)},()=>X.delete(e))}var Z=e=>(X.has(e)||(X.set(e,``),Te(e)),X.get(e)??``),Ee=e=>(Z(e),we.get(e)??``),De=!1;function Oe(){!De&&E.api&&(De=!0,E.on(e=>{e.type===`note-changed`&&X.has(e.id)&&Te(e.id),e.type===`iso-start`&&e.place.form===`turn`&&ve.set(e.request,{mode:e.place.mode,asked:e.asked,understanding:e.place.given.some(e=>e.kind===`understanding`)}),e.type===`iso-item`&&e.item.kind===`undone`&&ye++,q(`write`,/todo/)(e)&&J++}))}var ke=(e,t)=>(Oe(),e.match(t)?.length??0),Ae=(e,t)=>ke(e,RegExp(`\\]\\(/${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}\\.md`,`g`)),je=()=>E.atlas?.chosenId?[...document.querySelectorAll(`.atlas`)]:[],Me=!1,Ne=``,Pe=0,Fe=()=>O.layoutChanges>Pe&&O.layout===Ne,Ie=()=>document.querySelector(`[data-pane="note"] .u h2 .state`)?.textContent===`saved`;function Le(e){let t=!1,n=0;return()=>{let r=document.querySelector(`[data-folder="${e}"]`)?.getBoundingClientRect(),i=document.querySelector(`.atlas`)?.getBoundingClientRect();if(!r||!i?.width)return!1;let a=Math.max(r.width/i.width,r.height/i.height);return n||=a,(E.atlas?.here===e||a>Math.max(.5,n*1.6))&&(t=!0),t&&E.atlas?.here!==e&&a<n*1.3}}var Q=`[data-pane="iso"]`,Re=new Set;function ze(){if(Oe(),!Re.size)for(let e of E.listing.notes)Re.add(e.id);Ne=O.layout,Pe=O.layoutChanges}var Be=()=>E.listing.notes.filter(e=>Re.size&&!Re.has(e.id)),Ve=[{key:`L1`,title:`The isorite knowledge base`,about:`Understand the basics of an isorite knowledge base in its three panes: the note, the Atlas, and Iso. Edit Markdown, link notes, and see the links on the Atlas.`,steps:[{go:`/atlas`,target:`[data-pane="note"] [data-settings="note"], [role="dialog"][aria-label="Note settings"]`,check:Fe,title:`Three panes`,text:`The Note pane is for thinking and writing, the Atlas for connecting, Iso for building and talking. The layouts are in the Note pane's settings, at the right of its header: try another, then come back to this one.`,phone:{go:`/notes`,target:`nav[aria-label="Panes"]`,check:()=>O.focus===`atlas`,text:`The Note pane is for thinking and writing, the Atlas for connecting, Iso for building and talking. On a phone they are the tabs at the foot: tap Atlas.`}},{go:`/atlas`,target:`[data-folder="integrators"]`,check:Le(`integrators`),title:`This is the Atlas`,text:`Each block is a note, each bubble a folder, each line a link. Step into integrators: click inside it, or scroll in. Then click open ground to step out.`,phone:{text:`Each block is a note, each bubble a folder, each line a link. Tap inside integrators to step in, then ↑ out at the top.`}},{go:`/atlas`,target:`[data-note="${H}"]`,check:Se(H),title:`What a note rests on`,wrong:()=>E.atlas?.chosenId&&E.atlas.chosenId!==H?`That is ${E.atlas.chosen}. Choose Leapfrog, in integrators.`:null,text:`Click Leapfrog. What it requires, and what builds on it, light up.`,phone:{text:`Tap Leapfrog. What it requires, and what builds on it, light up.`}},{target:je,check:Y(`#/n/${H}`),title:`Open it`,text:`Click Leapfrog again. It opens in the Note pane.`,phone:{text:`Tap Leapfrog again. It opens in the Note pane, and the Note tab comes forward.`}},{go:`/n/${H}`,target:`[data-pane="note"] .cm-content`,check:()=>ke(Z(H),/\*\*[^*\n]+\*\*/g)>ke(Ee(H),/\*\*[^*\n]+\*\*/g),title:`A note is Markdown`,text:`Select a word and press Ctrl+B. Changes save as you type: the dot in the Note pane's header says so.`,phone:{text:`Make a word bold: type ** on each side of it. Changes save as you type.`}},{target:`[data-pane="note"] .cm-content`,check:()=>Ae(Z(H),B)>Ae(Ee(H),B),title:`Link a note`,text:`At the end of the last paragraph, type [[ener and choose Energy and its conservation.`},{target:()=>[...je(),...document.querySelectorAll(`path.grown`)],title:`The link, on the Atlas`,text:`Watch the Atlas: the new link is drawn from Leapfrog to Energy and its conservation.`,phone:{go:`/atlas`,target:`[data-note="${B}"]`,text:`On the Atlas, the new link runs from Leapfrog to Energy and its conservation.`}},{go:`/n/${H}`,target:`[data-pane="note"] .cm-content`,check:()=>/\]\(\/physics\/energy-conservation\.md "requires"\)/.test(Z(H)),title:`Its kind`,text:`Click in the new link, press Alt+L, and choose Requires.`,phone:{text:`Tap the button beside the new link and choose Requires.`}},{target:je,title:`The kind, on the Atlas`,text:`On the Atlas, requires is drawn strongest.`,phone:{go:`/atlas`,target:`[data-note="${B}"]`,text:`On the Atlas, requires is drawn strongest.`}},{go:`/n/${H}`,target:()=>[...document.querySelectorAll(`button[aria-label="timeline"], .timeline, .atbar`)],check:()=>(xe(`.atbar`)()&&(Me=!0),Me&&!xe(`.atbar`)()),title:`Every change is kept`,text:`Click the timeline button by the title, then its first mark: the note as it was. The → at the right of the bar brings you back.`,phone:{text:`Tap the timeline button by the title, then its first mark: the note as it was. The → at the right of the bar brings you back.`}},{go:`/n/${H}`,target:`[data-pane="note"] .cm-content`,check:Y(`#/n/${B}`),title:`Follow the link`,wrong:()=>{let e=decodeURIComponent(location.hash).match(/^#\/n\/([^?]+)/)?.[1];return e&&e!==H&&e!==B?`That is another note. Go back, and follow the link to Energy and its conservation.`:null},text:`Ctrl+click (⌘ on a Mac) the link to Energy and its conservation.`,phone:{go:`/atlas`,target:`[data-note="${B}"]`,text:`Tap Energy and its conservation on the Atlas, then tap it again.`}},{go:`/n/${B}`,target:`[data-pane="note"] button[aria-label="All notes"], [data-pane="note"] .tree`,check:Y(`#/n/${V}`),title:`All the notes`,text:`The icon by the settings, in the Note pane's header, opens every note. Type soft to find Softening, and open it.`},{go:`/n/${V}`,target:()=>[...document.querySelectorAll(`[data-pane="note"] .tools, [data-pane="note"] .details`)],check:()=>/^tags:/m.test(Z(V))&&!/^tags:/m.test(Ee(V)),title:`Its details`,text:`Open details above the text and add a tag, say numerics.`},{go:`/atlas`,target:`[data-folder="physics"]`,check:()=>Ce(/^plummer sphere$/i)?.dir===`physics`,wrong:()=>{let e=Ce(/^plummer sphere$/i);return e&&e.dir!==`physics`?`It went into ${e.dir||`the top of the base`}. Redo, and hold inside physics.`:null},title:`A new note, where you hold`,text:`On the Atlas, press and hold inside physics until a note's icon is marked, and let go. An untitled note opens with its title chosen: type Plummer sphere, and press Enter.`},{target:()=>[...document.querySelectorAll(`[data-pane="note"] .details, [data-pane="note"] .tools`)],check:()=>Be().length>0&&Be().every(e=>e.dir===`galaxies`),title:`Move it`,wrong:()=>{let e=Be().find(e=>e.dir!==`physics`&&e.dir!==`galaxies`);return e?`It went into ${e.dir||`the top of the base`}. Type galaxies: a new folder is made for it.`:null},text:`In details, change its folder to galaxies, a folder the base does not have yet: it is made for the note.`},{target:()=>[...document.querySelectorAll(`[data-pane="note"] .details, [data-pane="note"] .tools`)],check:()=>Re.size>0&&Be().length===0&&E.listing.notes.length===_e,title:`Delete it`,text:`In details, click delete, then confirm.`},{title:`That is the base`,text:`The base is a folder of Markdown files: any editor opens them. Next, Iso, in L2.`}]},{key:`L2`,title:`Iso`,about:`Iso is an agent who knows your knowledge base. Talk with it in its own pane: ask, give it notes and passages, and let it write, with every change marked and undoable.`,steps:[{go:`/n/${U}`,target:`${Q}`,fill:M.insert,until:be(`ask`,/inserted/),title:`Ask Iso`,text:`Iso has a pane of its own. In Ask mode, the speech bubble in its header, it reads your notes and changes nothing. Your question from the quadtree is written in its box: press Enter.`,phone:{text:`Iso has a pane of its own: tap its tab. In Ask mode, the speech bubble, it reads your notes and changes nothing. Your question from the quadtree is written in its box: send it with the arrow.`}},{target:()=>[...document.querySelectorAll(`.atlas, ${Q}`)],until:q(`ask`,/inserted/),title:`Watch it read`,text:`The Atlas comes up in its Iso lens: what Iso reads is numbered in order, as it reads it. In Iso's pane, each note it read opens with a click.`,phone:{target:Q,text:`Each note Iso reads is said in its pane as it reads it. The Atlas tab turns gold: there, what it read is numbered in order.`}},{go:`/n/${U}`,target:()=>[...document.querySelectorAll(`[data-note="${W}"], [data-pane="note"] .cm-content`)],check:()=>D.parts.some(e=>e.kind===`note`&&e.id===W)&&D.parts.some(e=>e.kind===`passage`&&e.id===U),title:`Give Iso a note, and a passage`,text:`Iso answers from what it finds. To give it what you mean: hold Barnes–Hut on the Atlas (or drag it onto Iso's pane). Then select a sentence of the quadtree, and click send to Iso beside it.`,phone:{text:`Iso answers from what it finds. To give it what you mean: on the Atlas, hold Barnes–Hut and choose Give to Iso. Then select a sentence of the quadtree, and tap send to Iso under it.`}},{target:`${Q} .ctx, ${Q} .context`,check:()=>k.view===`context`&&k.off.length>0&&!D.parts.some(e=>e.kind===`passage`),title:`What Iso is sent`,text:`The icon by Iso's modes counts what you gave: click it. Here is what Iso is sent, part by part, each with its size. Switch off your first question, and take the sentence out with its ×.`},{go:`/n/${W}`,target:()=>[...document.querySelectorAll(`${Q} .mode[data-mode="write"], #iso-box`)],fill:M.rewrite,until:q(`write`,/todo/),title:`Let it write`,text:`Click the Context icon again for the conversation. Switch to Write mode: the quill, or Shift+Tab in Iso's box. In Write mode Iso changes your notes. Barnes–Hut is open, with its TODO; the request is written for you: send it.`},{target:()=>[...document.querySelectorAll(`${Q} .change, [data-pane="note"] .cm-content`)],title:`Its words, marked`,text:`The change went straight into the note, and the note came up in its Iso lens (◆ in its header): Iso's words are marked. On the Atlas, the note it changed is marked too. The change in Iso's pane opens it again whenever you like.`},{target:()=>[...document.querySelectorAll(`${Q} button[aria-label="Undo this turn's changes"], [data-pane="note"] .cm-content`)],check:()=>ye>0&&J>=2&&!/TODO:/.test(Z(W)),title:`Undo, and again`,text:`Under Iso's reply, ↺ puts back everything the turn changed: the TODO is back. Then send the request again, and leave the answer this time.`},{title:`Iso, in short`,text:`In Ask mode Iso reads; in Write mode it writes, and every change it makes is marked and can be undone. What it is sent is yours to choose. Next: L3, your understanding.`}]},{key:`E1`,title:`Knowledge work with isorite`,earlier:!0,about:`isorite provides a home for structured project knowledge work. This walkthrough shows how isorite can be used in an example knowledge base on an N-body simulation.`,steps:[{go:`/n/${K}`,target:`[data-pane="note"] .cm-content`,title:`The goal`,text:`Two galaxies colliding, at N = 5000: where the tidal tails start to look right, and where direct summation is too slow. This evening's work is to get there with Barnes–Hut.`},{go:`/atlas`,target:`[data-note="${K}"]`,check:Se(K),title:`What it rests on`,text:`Choose Two galaxies colliding: what it requires is lit, and a click on one of those steps back to it, and on, back to Newton's law. That is the reading list for tonight.`},{go:`/n/${de}`,target:Q,fill:M.speed,until:q(`ask`,/faster/),title:`How much faster?`,text:`Cost and accuracy is open. In Ask mode (the speech bubble), ask Iso how much faster Barnes–Hut is at N = 5000: the question is written for you.`},{target:Q,title:`Checked against your notes`,text:`Iso checked its arithmetic against direct summation and Barnes–Hut, and says to measure, as your note says.`},{target:Q,fill:M.octreeWrite,until:q(`write`,/octree/),title:`Plan the octree`,text:`The simulation is 3D, and the quadtree is 2D. In Write mode (the quill), ask Iso to write a note on the octree, in algorithms: the request is written for you.`},{target:`${Q} .change`,check:()=>Y(`#/n/algorithms/the-octree`)(),title:`Its note`,text:`Iso made The octree. Click it in Iso's pane to open it: it is one of your notes now, linked to the quadtree and Barnes–Hut.`},{go:`/n/${G}`,target:`[data-pane="note"] .cm-content`,check:()=>/octree/i.test(document.querySelector(`[data-pane="note"] .cm-content`)?.textContent??``),title:`Link it in`,text:`The main loop is where it will be used. At the end of the first paragraph, type [[oct and choose the octree.`},{go:async()=>{let e=Ce(/octree/i);return e?T(e.id).split(`#`).at(-1):`/n/${G}`},target:`[data-tour="send"]`,title:`Hand it on`,text:`The code is the agent's work, in the terminal. send to agent puts this note in its next prompt: L4.`}]},{key:`L3`,title:`Understanding`,about:`isorite keeps track of your understanding, note by note, so you can see where you stand and how it grew. Iso uses it: in Understand mode it starts from where you are.`,steps:[{go:`/atlas`,target:`[data-pane="atlas"] .lens[data-lens="understand"], .atlas`,check:()=>O.lens.atlas===`understand`,title:`Where you stand`,text:`Switch the Atlas to its Understand lens, ◇ in its header. Each note shows where you stand with it, from dotted, not reached, to a double edge, understood; and the study folders appear, with your exercises.`},{go:`/n/${H}`,target:`[data-pane="note"] .lens[data-lens="understand"], [data-pane="note"] .u`,check:()=>O.lens.note===`understand`&&Ie(),title:`Your Understanding note`,text:`Every note has an Understanding note: switch Leapfrog to its Understand lens, ◇ in the Note pane's header. Iso's reading of you, what changed it, and a scratchpad only you see. Write a line in the scratchpad.`},{target:()=>[...document.querySelectorAll(`${Q} .mode[data-mode="understand"], #iso-box`)],fill:M.understand,until:q(`understand`,/bounded|leapfrog/),title:`Understand mode`,text:`In Iso's pane, switch to Understand mode: the sprig. Your Understanding note of Leapfrog now goes with what you ask (the Context icon shows it). The question is written for you: send it. Iso asks you something back.`},{target:Q,fill:M.answer,until:q(`understand`,/backwards|retrace|reverse/),title:`Answer it`,text:`Answer Iso's question: an answer is written for you, or say it your own way, with backwards in it. Iso records what it saw, and rewrites its reading of you.`},{target:`[data-pane="note"] .u`,title:`What changed it`,text:`In Leapfrog's Understand lens: Iso's reading is new, and what changed it has a new line, with Iso's reason. You can see how your understanding grew, and why.`},{target:`${Q} .ctx, ${Q} .context`,until:q(`understand`,/bounded|leapfrog/,e=>!e.understanding),title:`Without it`,text:`Open the Context icon and take your Understanding of Leapfrog out with its ×. Then ask the first question again: Iso starts from the beginning, as it would for anyone.`},{title:`Understanding, in short`,text:`Iso keeps a reading of your understanding, note by note, from what you say and do; it is yours to read, and to take out of what Iso is sent. Your notes are yours to share; your understanding stays in your study base.`}]},{key:`E2`,title:`Learning with isorite`,steps:[],about:`How isorite gets you up to speed quickly, on the same N-body simulation project.`},{key:`L4`,title:`The terminal interface`,earlier:!0,about:`Iso shares a common substrate of understanding with you as you build together. Extending the familiar OpenCode 2, learn to use isorite's terminal and web interfaces jointly.`,steps:[{title:`isorite in the terminal`,text:`For work that needs more than notes: code. isorite term runs OpenCode, an agent that edits code, with your base beside it. To walk through it on your machine, with OpenCode 2 installed: isorite --tutorial.`},{title:`It looks before it codes`,text:`The agent has your base as tools: brief_base, search_notes, find_similar, outline_note and read_note. Asked to write Barnes–Hut, it reads your notes on it first, and cites them.`},{go:`/atlas`,target:`.atlas-world`,title:`Watched from here`,text:`While it works, this Atlas follows it: what it found and read is drawn as Iso's path is, and what it used.`},{title:`Its changes to notes wait`,text:`edit_note and write_note: what the agent changes in your notes is written at once under its name, its words marked as Iso's are in Write mode, and undone the same way. Its changes to code are OpenCode's own, which asks before it writes.`},{go:`/n/${G}`,target:`[data-tour="send"]`,title:`From here to there`,text:`send to agent puts a note, or a passage of it, in the agent's next prompt. In the terminal, /note opens a note and /atlas shows what it requires and what builds on it.`},{title:`Its tour, replayed`,link:{href:`#/terminal`,text:`isorite in the terminal: its tour, replayed`},text:`Every screen of the terminal's tour, as OpenCode drew it.`}],local:{about:`The agent in OpenCode, in the terminal beside this page, with your notes as its tools; this page follows it.`,steps:[{title:`The terminal beside this page`,text:`The terminal you ran isorite --tutorial in is this part: its own card leads, a step at a time. This page follows it. Keep the Atlas open where you can see both.`},{go:`/atlas`,target:`.atlas-world`,until:e=>e.type===`agent-done`,title:`Watched from here`,text:`In the terminal, ask the agent for code, as its card says. It looks in your notes first: watch its path drawn here as it reads, found by words, by meaning, or along a link.`},{go:`/n/${K}`,title:`Its changes to notes wait here too`,text:`When the agent would change a note, the change waits in the note, here as in the terminal, under its name. Keep it in either; the other sees it.`},{go:`/n/${G}`,target:`[data-tour="send"]`,until:e=>e.type===`agent-sent`,title:`From here to there`,text:`send to agent puts this note, or a passage of it, in the agent's next prompt. Send it, and look for it in the terminal under from you.`},{title:`On your own notes`,text:`In your project's folder: isorite term <your base>, and the browser at the address it gives. isorite serve <your base> opens the browser alone.`}]}},{key:`E3`,title:`Building with isorite`,steps:[],about:`Putting it all together: rewrite the N-body simulation to use the Barnes–Hut algorithm, with structured agentic awareness of the project.`}],$=m({part:-1,at:0,left:!1,ticks:{},mistake:``}),He={snap:null};function Ue(e,t){$.ticks[e]??=[],$.ticks[e].includes(t)||$.ticks[e].push(t)}var We=e=>{var t=Ge();v(e,t)},Ge=s(`<svg class="tick svelte-1195hbs" viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M2 6.5l2.6 2.6L10 3.4" fill="none" stroke="currentColor" stroke-width="1.6"></path></svg>`),Ke=_(`<button class="back btn quiet svelte-1195hbs" type="button">the tutorial</button>`),qe=_(`<span class="note svelte-1195hbs">an earlier version, being rewritten</span>`),Je=_(`<button type="button" class="section svelte-1195hbs"><span class="key svelte-1195hbs"> </span> <span class="what svelte-1195hbs"><span class="t svelte-1195hbs"> </span><span class="about svelte-1195hbs"> </span><!></span> <span class="progress svelte-1195hbs"><!><span class="go svelte-1195hbs" aria-hidden="true">›</span></span></button>`),Ye=_(`<div class="section coming svelte-1195hbs"><span class="key svelte-1195hbs"> </span> <span class="what svelte-1195hbs"><span class="t svelte-1195hbs"> </span><span class="about svelte-1195hbs"> </span><span class="note svelte-1195hbs">coming</span></span></div>`),Xe=_(`<li><!></li>`),Ze=_(`<div class="coach frame parts svelte-1195hbs" role="dialog" aria-label="The tutorial" aria-live="polite"><span class="label">isorite, tutorial</span> <p class="svelte-1195hbs">This is a demo of isorite on an example N-body simulation project. Explore and read the knowledge base as you like, or follow the sections below for an interactive walkthrough.</p> <p class="faint svelte-1195hbs"><!></p> <ol class="list svelte-1195hbs"></ol> <div class="row actions svelte-1195hbs"><span class="grow"></span><button class="btn quiet svelte-1195hbs" type="button">leave</button></div></div>`),Qe=_(`<div aria-hidden="true"></div>`),$e=_(`<i></i>`),et=_(`<button class="fold svelte-1195hbs" type="button"> </button>`),tt=_(`<p class="svelte-1195hbs"> </p>`),nt=_(`<p class="svelte-1195hbs"><a> </a></p>`),rt=_(`<p class="mistake svelte-1195hbs" role="status"> </p>`),it=_(`<button class="btn quiet svelte-1195hbs" type="button" aria-label="back a step">‹ back</button>`),at=_(`<span class="label done svelte-1195hbs"><!> done</span>`),ot=_(`<button class="btn quiet svelte-1195hbs" type="button" title="put the base back as this step found it"> </button>`),st=_(`<!> <div role="dialog" aria-label="The tutorial" aria-live="polite"><div class="row head svelte-1195hbs"><span class="label"> </span><span class="grow"></span> <span class="seg svelte-1195hbs"></span> <button class="link svelte-1195hbs" type="button">sections</button> <button class="link svelte-1195hbs" type="button">leave</button></div> <h2 class="svelte-1195hbs"><!></h2> <!> <!> <!> <div><!> <!> <span class="grow"></span> <!> <button type="button"> </button></div></div>`,1);function ct(s,l){y(l,!0);let m=!!E.session?.tutorial,_=Ve.map(e=>m&&e.local?{...e,...e.local}:e),T=x(()=>$.left),D=x(()=>$.part>=0?_[$.part]:null),O=e(!1),k=x(()=>{let e=o(D)?.steps[$.at];return e?{...e,...o(O)?e.phone:{}}:null}),A=x(()=>!!(o(k)?.until||o(k)?.check)),j=x(()=>o(D)!==null&&$.at===o(D).steps.length-1),ce=(e,t)=>$.ticks[e]?.includes(t)??!1,M=x(()=>o(D)!==null&&ce(o(D).key,$.at)),N=e(null),P=e(void 0),F=e(!1),I=e(!1),L=e(!1),R=e(0),z=e(!1);async function B(e){$.at=e,$.mistake=``,u(z,!1),u(I,!0),setTimeout(()=>u(I,!1),200);let t=_[$.part].steps[e],n=(o(O)?t.phone?.go:void 0)??t.go;n&&await ae(`#${typeof n==`string`?n:await n()}`),He.snap=oe().catch(()=>null)}function V(e){ze(),$.part=e,$.left=!1,B(0)}function H(){o(D)&&(o(A)||Ue(o(D).key,$.at),o(j)?$.part=-1:B($.at+1))}function le(){$.at>0&&B($.at-1)}async function ue(){let e=await He.snap;if(e&&!o(L)){u(L,!0);try{await se(e)}finally{u(L,!1)}await B($.at)}}function U(e){return e?typeof e==`function`?e():[...document.querySelectorAll(e)]:[]}ne(()=>{let e=matchMedia(`(max-width: 600px)`);u(O,e.matches,!0);let t=()=>{u(O,e.matches,!0)};e.addEventListener(`change`,t);let n=()=>{o(D)&&Ue(o(D).key,$.at),H()},r=E.on(e=>{!o(T)&&o(k)?.until?.(e)&&n()}),i=0,a=()=>{if(i=requestAnimationFrame(a),o(T)||!o(k)){u(N,null);return}if(u(R,0),o(O))for(let e of document.querySelectorAll(`.seed, .foot, .changes, .deck, [data-pane="iso"] .composer`)){let t=e.getBoundingClientRect();t.height&&t.top>innerHeight/2&&t.left<innerWidth&&t.right>0&&u(R,Math.max(o(R),innerHeight-t.top+8),!0)}let e=1/0,t=1/0,n=-1/0,r=-1/0;for(let i of U(o(k).target)){let a=i.getBoundingClientRect();a.width&&a.height&&(e=Math.min(e,a.left),t=Math.min(t,a.top),n=Math.max(n,a.right),r=Math.max(r,a.bottom))}if(u(N,e<n?{x:e,y:t,w:n-e,h:r-t}:null),!o(O)&&o(P)){let e=o(P).getBoundingClientRect(),t=e.width,n=e.height,r=innerHeight-48-n,i=e=>o(N)?Math.max(0,Math.min(e+t,o(N).x+o(N).w)-Math.max(e,o(N).x))*Math.max(0,Math.min(r+n,o(N).y+o(N).h)-Math.max(r,o(N).y)):0,a=i(innerWidth-24-t),s=i(24);u(F,a>0&&s<a,!0)}};a();let s=setInterval(()=>{if(!(o(T)||!o(k)||o(L))){if(o(k).fill){let e=document.querySelector(`#iso-box`);e&&!e.value&&e.dataset.filled!==o(k).fill&&(e.dataset.filled=o(k).fill,e.value=o(k).fill,e.dispatchEvent(new Event(`input`,{bubbles:!0})))}o(k).check?.()?n():$.mistake=o(k).wrong?.()??``}},250);return()=>{r(),cancelAnimationFrame(i),clearInterval(s),e.removeEventListener(`change`,t)}});var W=t(),de=a(W),G=e=>{var t=Ke();r(`click`,t,()=>{$.left=!1,$.part=-1}),v(e,t)},fe=e=>{var t=Ze(),a=f(b(t),4),s=b(a),l=e=>{var t=c(`Iso and the agent are scripted, and nothing leaves your machine; what you change is kept in the tutorial's folder.`);v(e,t)},u=e=>{var t=c(`Iso is scripted, and nothing leaves this page; a reload starts it all again.`);v(e,t)};w(s,e=>{m?e(l):e(u,-1)}),C(a);var d=f(a,2);ie(d,23,()=>_,e=>e.key,(e,t,a)=>{let s=x(()=>$.ticks[o(t).key]?.length??0);var l=Xe(),u=b(l),d=e=>{var l=Je(),u=b(l),d=p(u,!0),m=f(u,2),h=b(m),g=p(h,!0),_=f(h),te=p(_,!0),ne=f(_),y=e=>{var t=qe();v(e,t)};w(ne,e=>{o(t).earlier&&e(y)}),C(m);var re=f(m,2),x=b(re),ie=e=>{We(e)},ae=e=>{var r=c();i(()=>n(r,`${o(s)??``} of ${o(t).steps.length??``}`)),v(e,r)};w(x,e=>{o(s)===o(t).steps.length?e(ie):o(s)&&e(ae,1)}),ee(),C(re),C(l),i(()=>{S(l,`aria-label`,`${o(t).key??``}: ${o(t).title??``}${o(s)?`, ${o(s)} of ${o(t).steps.length} done`:``}`),n(d,o(t).key),n(g,o(t).title),n(te,o(t).about)}),r(`click`,l,()=>V(o(a))),v(e,l)},m=e=>{var r=Ye(),a=b(r),s=p(a,!0),c=f(a,2),l=b(c),u=p(l,!0),d=f(l),m=p(d,!0);ee(),C(c),C(r),i(()=>{S(r,`aria-label`,`${o(t).key??``}: ${o(t).title??``}, coming`),n(s,o(t).key),n(u,o(t).title),n(m,o(t).about)}),v(e,r)};w(u,e=>{o(t).steps.length?e(d):e(m,-1)}),C(l),v(e,l)}),C(d);var h=f(d,2),g=f(b(h));C(h),C(t),r(`click`,g,()=>$.left=!0),v(e,t)},K=e=>{var s=st(),l=a(s),m=e=>{var t=Qe();let n;i(()=>{n=g(t,1,`spot svelte-1195hbs`,null,n,{easing:o(I)}),te(t,`left:${o(N).x-8}px;top:${o(N).y-8}px;width:${o(N).w+16}px;height:${o(N).h+16}px`)}),v(e,t)};w(l,e=>{o(N)&&e(m)});var h=f(l,2);let _,ne;var y=b(h),x=b(y),ae=p(x),T=f(x,3);ie(T,21,()=>o(D).steps,d,(e,t,n)=>{var r=$e();let a;i(e=>a=g(r,1,`svelte-1195hbs`,null,a,{d:e,at:n===$.at}),[()=>ce(o(D).key,n)]),v(e,r)}),C(T);var E=f(T,2),oe=f(E,2);C(y);var se=f(y,2),B=b(se),V=e=>{var t=et(),a=p(t,!0);i(()=>{S(t,`aria-expanded`,!o(z)),n(a,o(k).title)}),r(`click`,t,()=>u(z,!o(z))),v(e,t)},U=e=>{var t=c();i(()=>n(t,o(k).title)),v(e,t)};w(B,e=>{o(O)?e(V):e(U,-1)}),C(se);var W=f(se,2),de=e=>{var t=tt(),r=p(t,!0);i(()=>n(r,o(k).text)),v(e,t)};w(W,e=>{o(z)||e(de)});var G=f(W,2),fe=e=>{var t=nt(),r=b(t),a=p(r,!0);C(t),i(()=>{S(r,`href`,o(k).link.href),n(a,o(k).link.text)}),v(e,t)};w(G,e=>{o(k).link&&!o(z)&&e(fe)});var K=f(G,2),pe=e=>{var t=rt(),r=p(t,!0);i(()=>n(r,$.mistake)),v(e,t)};w(K,e=>{$.mistake&&!o(z)&&e(pe)});var me=f(K,2);let he;var ge=b(me),_e=e=>{var t=it();r(`click`,t,le),v(e,t)};w(ge,e=>{$.at>0&&e(_e)});var ve=f(ge,2),ye=e=>{var n=t(),r=a(n),i=e=>{var t=at();We(b(t)),ee(),C(t),v(e,t)};w(r,e=>{o(M)&&e(i)}),v(e,n)};w(ve,e=>{o(A)&&e(ye)});var be=f(ve,4),q=e=>{var t=ot(),a=p(t,!0);i(()=>{t.disabled=o(L),n(a,o(L)?`redoing…`:`redo`)}),r(`click`,t,ue),v(e,t)};w(be,e=>{o(A)&&e(q)});var J=f(be,2),Y=p(J,!0);C(me),C(h),re(h,e=>u(P,e),()=>o(P)),i(e=>{_=g(h,1,`coach frame svelte-1195hbs`,null,_,{small:o(z),left:o(F)&&!o(O)}),ne=te(h,``,ne,{bottom:o(R)?`${o(R)}px`:null}),n(ae,`${o(D).key??``} · ${e??``}`),S(T,`aria-label`,`step ${$.at+1} of ${o(D).steps.length??``}, ${$.ticks[o(D).key]?.length??0??``} done`),he=g(me,1,`row actions svelte-1195hbs`,null,he,{hidden:o(z)}),g(J,1,`btn ${o(A)&&!o(M)?`quiet`:`primary`}`,`svelte-1195hbs`),n(Y,o(j)?`done`:`next ›`)},[()=>o(D).title.toLowerCase()]),r(`click`,E,()=>$.part=-1),r(`click`,oe,()=>$.left=!0),r(`click`,J,H),v(e,s)};w(de,e=>{o(T)?e(G):o(D)?o(k)&&e(K,2):e(fe,1)}),v(s,W),h()}l([`click`]);export{ct as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,D as t,F as n,H as r,I as i,L as a,P as o,Q as s,U as c,X as l,Y as u,at as d,c as f,ft as p,j as m,k as h,l as g,nt as _,ot as v,q as y,tt as b,u as x,ut as S,w as C,x as w}from"./C8UdwlAg.js";import{t as T}from"./Cw2GjAJR.js";import"./xihTtKlq.js";import{n as E,r as D,t as O}from"./DjBHskLm.js";import{t as k}from"./b-AOhhy1.js";var A=m(`<p class="problem svelte-btgyzc" role="alert"> </p>`),j=m(`<form class="frame new svelte-btgyzc"><span class="frame-title">a new note</span> <label class="svelte-btgyzc"><span class="label">title</span> <input class="field" placeholder="Entropy" autocomplete="off"/></label> <label for="new-folder" class="svelte-btgyzc"><span class="label">folder</span></label> <!> <p class="faint path svelte-btgyzc"> </p> <!> <div class="row svelte-btgyzc"><button class="btn primary" type="submit">make it</button><button class="btn quiet" type="button">cancel</button></div></form>`),M=m(`<p class="soft empty svelte-btgyzc">This base has no notes yet. Make the first one.</p>`),N=m(`<span class="soft desc svelte-btgyzc"> </span>`),P=m(`<li class="svelte-btgyzc"><a class="svelte-btgyzc"><span class="serif title svelte-btgyzc"> </span><!></a></li>`),ee=m(`<section><h2 class="svelte-btgyzc"><span class="label"> </span><button class="btn quiet add svelte-btgyzc" type="button">+</button></h2> <ul class="svelte-btgyzc"></ul></section>`),te=m(`<li class="svelte-btgyzc"><a class="svelte-btgyzc"><span class="serif title svelte-btgyzc"> </span><span class="soft desc svelte-btgyzc"> </span></a></li>`),ne=m(`<section><h2 class="svelte-btgyzc"><span class="label">in the text</span></h2> <ul class="svelte-btgyzc"></ul></section>`),re=m(`<p class="soft empty svelte-btgyzc">No note matches.</p>`),ie=m(`<div class="notes svelte-btgyzc"><div class="top svelte-btgyzc"><label class="hidden-label" for="filter">Find a note</label> <input id="filter" class="field grow" type="search" placeholder="find a note" autocomplete="off"/> <button class="btn primary" type="button" data-tour="new-note">new note</button></div> <!> <!> <!> <!> <!></div>`);function F(o,m){v(m,!0);let F=e(``),I=e([]),L=e(!1),R=e(``),z=e(``),B=e(``),V=b(()=>a(F).trim().toLowerCase().split(/\s+/).filter(Boolean)),H=e=>a(V).every(t=>`${e.title}\n${e.id}\n${e.description}`.toLowerCase().includes(t)),U=b(()=>a(V).length?O.listing.notes.filter(H):O.listing.notes),ae=b(()=>{let e=new Map;if(!a(V).length)for(let t of O.listing.dirs)e.set(t,[]);for(let t of a(U))e.set(t.dir,[...e.get(t.dir)??[],t]);return[...e].sort(([e],[t])=>e<t?-1:+(e>t))}),W=b(()=>a(V).length?a(I).filter(e=>!a(U).some(t=>t.id===e.id)):[]);c(()=>{let e=a(F).trim();if(e.length<2){s(I,[]);return}let t=setTimeout(()=>{O.api.search(e).then(t=>{a(F).trim()===e&&s(I,t)},()=>void 0)},200);return()=>clearTimeout(t)});let G=b(()=>[a(z).trim().replace(/^\/+|\/+$/g,``),D(a(R))].filter(Boolean).join(`/`));function K(e=``){s(L,!0),s(z,e,!0),s(R,``),s(B,``)}async function oe(e){if(e.preventDefault(),!D(a(R)))s(B,`Give the note a title.`);else try{await O.api.createNote(a(G),`---\ntype: Concept\ntitle: ${JSON.stringify(a(R).trim())}\n---\n\n`),await O.refresh(),await T(E(a(G)))}catch(e){s(B,e.message,!0)}}var q=ie(),J=y(q),Y=l(y(J),2);g(Y),_(Y,!0);var se=l(Y,2);S(J);var X=l(J,2),ce=e=>{var o=j(),c=l(y(o),2),d=l(y(c),2);g(d),_(d,!0),S(c);var p=l(c,4);k(p,{id:`new-folder`,label:`folder`,placeholder:`none: the top of the base`,get value(){return a(z)},set value(e){s(z,e,!0)}});var m=l(p,2),v=u(m,!0),b=l(m,2),x=e=>{var n=A(),i=u(n,!0);r(()=>t(i,a(B))),h(e,n)};C(b,e=>{a(B)&&e(x)});var w=l(b,2),T=l(y(w));S(w),S(o),r(()=>t(v,a(G)?`${a(G)}.md`:` `)),i(`submit`,o,oe),f(d,()=>a(R),e=>s(R,e)),n(`click`,T,()=>s(L,!1)),h(e,o)};C(X,e=>{a(L)&&e(ce)});var Z=l(X,2),le=e=>{var t=M();h(e,t)};C(Z,e=>{!O.listing.notes.length&&!a(L)&&e(le)});var Q=l(Z,2);w(Q,17,()=>a(ae),([e,t])=>e,(e,i)=>{var o=b(()=>p(a(i),2));let s=()=>a(o)[0],c=()=>a(o)[1];var d=ee(),f=y(d),m=y(f),g=u(m,!0),_=l(m);S(f);var v=l(f,2);w(v,21,c,e=>e.id,(e,n)=>{var i=P(),o=y(i),s=y(o),c=u(s,!0),d=l(s),f=e=>{var i=N(),o=u(i,!0);r(()=>t(o,a(n).description)),h(e,i)};C(d,e=>{a(n).description&&e(f)}),S(o),S(i),r(e=>{x(o,`href`,e),t(c,a(n).title)},[()=>E(a(n).id)]),h(e,i)}),S(v),S(d),r(()=>{t(g,s()||`the top of the base`),x(_,`aria-label`,`New note in ${s()||`the top of the base`}`)}),n(`click`,_,()=>K(s())),h(e,d)});var $=l(Q,2),ue=e=>{var n=ne(),i=l(y(n),2);w(i,21,()=>a(W),e=>e.id,(e,n)=>{var i=te(),o=y(i),s=y(o),c=u(s,!0),d=l(s),f=u(d,!0);S(o),S(i),r(e=>{x(o,`href`,e),t(c,a(n).title),t(f,a(n).snippet)},[()=>E(a(n).id)]),h(e,i)}),S(i),S(n),h(e,n)};C($,e=>{a(W).length&&e(ue)});var de=l($,2),fe=e=>{var t=re();h(e,t)};C(de,e=>{a(V).length&&!a(U).length&&!a(W).length&&e(fe)}),S(q),f(Y,()=>a(F),e=>s(F,e)),n(`click`,se,()=>K()),h(o,q),d()}o([`click`]);export{F as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,L as t,Q as n,R as r,a as i,n as a,t as o,z as s}from"./C8UdwlAg.js";var c=class{constructor(e,t){this.status=e,this.body=typeof t==`string`?{message:t}:t||{message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function ee(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function h(){}function g(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function _(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var te=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&v.delete(b(e)),te(e,t));var v=new Map;function y(e,t){let n=b(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent);r.getAttribute(`data-b64`)!==null&&(e=_(e));let i=r.getAttribute(`data-ttl`);return i&&v.set(n,{body:e,init:t,ttl:1e3*Number(i)}),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function ne(e,t,n){if(v.size>0){let t=b(e,n),r=v.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);v.delete(t)}}return window.fetch(t,n)}function b(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${g(...e)}"]`}return n}var re=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,ie=/^\/\((?:[^)]+)\)$/;function ae(e){let t=[];return{pattern:e===`/`||ie.test(e)?/^\/$/:RegExp(`^${se(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return le(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return le(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=re.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return le(e)}).join(``)}).join(``)}/?$`),params:t}}function oe(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function se(e){return e.slice(1).split(`/`).filter(oe)}function ce(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0){if(s.rest)c=``;else continue}if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0)}else if(s.optional&&s.chained)o++;else return}if(!o)return r}function le(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}var ue=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function de(e,t){let n=se(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(ue,(n,r,i,a)=>{let o=t[a];if(!o){if(r||i&&o!==void 0)return``;throw Error(`Missing parameter '${a}' in route ${e}`)}if(o.startsWith(`/`)||o.endsWith(`/`))throw Error(`Parameter '${a}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return o})).filter(Boolean).join(`/`)+(r?`/`:``)}function fe({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ae(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ce(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function pe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function me(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var x=globalThis.__sveltekit_1tkk252?.base??``,he=globalThis.__sveltekit_1tkk252?.assets??x??``,ge=`#`;function _e(...e){if(!e[0].startsWith(`/`))throw Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return x+ge+de(e[0],e[1])}var ve=`1792725761097`,ye=`sveltekit:snapshot`,be=`sveltekit:scroll`,xe=`sveltekit:states`,S=`sveltekit:history`,C=`sveltekit:navigation`,w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Se=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function T(){return{x:pageXOffset,y:pageYOffset}}function E(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var we={...w,"":w.hover};function Te(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ee(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Te(e)}}function De(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||D(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===Se&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function Oe(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=E(s,`preload-code`)),i===null&&(i=E(s,`preload-data`)),t===null&&(t=E(s,`keepfocus`)),n===null&&(n=E(s,`noscroll`)),a===null&&(a=E(s,`reload`)),o===null&&(o=E(s,`replacestate`)),s=Te(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:we[r??`off`],preload_data:we[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function ke(e){let t=i(e),n=!0;function r(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:a,subscribe:o}}var Ae={v:h};function je(){let{set:e,subscribe:t}=i(!1),n;async function r(){clearTimeout(n);try{let t=await fetch(`${he}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let r=(await t.json()).version!==ve;return r&&(e(!0),Ae.v(),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:r}}function D(e,t,n){return e.origin!==Se||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Me(e){}var Ne=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Ne],[...new Set([...Ne])];function Pe(e){return e.filter(e=>e!=null)}function O(e,t){return e+`/`+t}function Fe(e){return e instanceof c||e instanceof u?e.status:500}function Ie(e){return e instanceof u?e.text:`Internal Error`}var k,A,Le,Re=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),ze=`a:`;Re?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ze)},A={current:null},Le={current:!1}):(k=new class{#e=e({});get data(){return t(this.#e)}set data(e){n(this.#e,e)}#t=e(null);get form(){return t(this.#t)}set form(e){n(this.#t,e)}#n=e(null);get error(){return t(this.#n)}set error(e){n(this.#n,e)}#r=e({});get params(){return t(this.#r)}set params(e){n(this.#r,e)}#i=e({id:null});get route(){return t(this.#i)}set route(e){n(this.#i,e)}#a=e({});get state(){return t(this.#a)}set state(e){n(this.#a,e)}#o=e(-1);get status(){return t(this.#o)}set status(e){n(this.#o,e)}#s=e(new URL(ze));get url(){return t(this.#s)}set url(e){n(this.#s,e)}},A=new class{#e=e(null);get current(){return t(this.#e)}set current(e){n(this.#e,e)}},Le=new class{#e=e(!1);get current(){return t(this.#e)}set current(e){n(this.#e,e)}},Ae.v=()=>Le.current=!0);function Be(e){Object.assign(k,e)}var Ve={spanContext(){return He},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},He={traceId:``,spanId:``,traceFlags:0},{onMount:Ue,tick:We}=o,Ge=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),j=null,M=pe(`sveltekit:scroll`)??{},N=pe(`sveltekit:snapshot`)??{},P={url:ke({}),page:ke({}),navigating:i(null),updated:je()};function Ke(e){M[e]=T()}function qe(e,t){let n=e+1;for(;M[n];)delete M[n],n+=1;for(n=t+1;N[n];)delete N[n],n+=1}function F(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(h)}async function Je(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(x||`/`);e&&await e.update()}}var Ye,Xe,I,L,Ze,R,Qe={},$e={},z=[],B=[],V=null;function H(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var et=new Map,tt=new Set,nt=new Set,U=new Set,W={branch:[],error:null,url:null,nav:null},rt=!1,it=!1,at=!0,G=!1,K=!1,ot=!1,st=!1,ct,q,J,Y,lt=new Set,ut=new Map,dt=new Map;async function ft(e,t,n){if(globalThis.__sveltekit_1tkk252.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_1tkk252.data;for(let t in e)Qe[t]=e[t];for(let e in n)Qe[e]=n[e];for(let e in r)Qe[e]=r[e];for(let e in t)$e[e]=t[e]}document.URL!==location.href&&(location.href=location.href),R=e,await e.hooks.init?.(),Ye=fe(e),L=document.documentElement,Ze=t,Xe=e.nodes[0],I=e.nodes[1],Xe(),I(),q=history.state?.[S],J=history.state?.[C],q||(q=J=Date.now(),history.replaceState({...history.state,[S]:q,[C]:J},``));let r=M[q];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Bt(Ze,n)):(await Z({type:`enter`,url:Ce(R.hash?Kt(new URL(location.href)):location.href),replace_state:!0}),i()),zt()}function pt(){z.length=0,st=!1}function mt(e){B.some(e=>e?.snapshot)&&(N[e]=B.map(e=>e?.snapshot?.capture()))}function ht(e){N[e]?.forEach((e,t)=>{B[t]?.snapshot?.restore(e)})}function gt(){Ke(q),me(be,M),mt(J),me(ye,N)}async function _t(e,t,n,r){let i,a;t.invalidateAll&&H(),await Z({type:`goto`,url:Ce(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{if(t.invalidateAll){st=!0,i=new Set;for(let[e,t]of ut)for(let[n,r]of t)r.resource?.reset(),i.add(O(e,n));a=new Set;for(let[e,t]of dt)for(let n of t.keys())a.add(O(e,n))}t.invalidate&&t.invalidate.forEach(Rt)}}),t.invalidateAll&&s().then(s).then(()=>{for(let[e,t]of ut)for(let[n,{resource:r}]of t)i?.has(O(e,n))&&r.start();for(let[e,t]of dt)for(let[n,{resource:r}]of t)a?.has(O(e,n))&&r.reconnect()})}async function vt(e){if(e.id!==V?.id){H();let t={};lt.add(t),V={id:e.id,token:t,promise:Ot({...e,preload:t}).then(e=>(lt.delete(t),e.type===`loaded`&&e.state.error&&H(),e)),fork:null}}return V.promise}async function yt(e){let t=(await X(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function bt(e,t,n){let r={params:W.params,route:{id:W.route?.id??null},url:new URL(location.href)};if(W={...e.state,nav:r},Be(e.props.page),ct=new R.root({target:t,props:{...e.props,stores:P,components:B},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:M[q]??T()},willUnload:!1,type:`enter`,complete:Promise.resolve()};U.forEach(t=>t(e))}ht(J),it=!0}async function xt({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(x&&(e.pathname===x||e.pathname===x+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Pe(n).map(e=>e.node.component),page:Gt(k)}};s!==void 0&&(l.props.form=s);let u={},f=!k,p=0;for(let e=0;e<Math.max(n.length,W.branch.length);e+=1){let t=n[e],r=W.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!W.url||e.href!==W.url.href||W.error!==a||s!==void 0&&s!==k.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:k.data}),l}async function St({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Ve,current:Ve},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:ee(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=Ct(t,r,n);return s&&e(i.href),a},setHeaders:h,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function Ct(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:it?ne(r,i.href,t):y(r,t)}}function wt(e,t,n,r,i,a){if(st)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==W.params[e])return!0;for(let e of i.dependencies)if(z.some(t=>t(new URL(e))))return!0;return!1}function Tt(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Et(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Dt({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Gt(k),constructors:[]}}}async function Ot({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(V?.id===e)return lt.delete(V.token),V.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(h)),d.forEach(e=>e?.[1]().catch(h));let f=W.url?e!==Nt(W.url):!1,p=W.route?i.id!==W.route.id:!1,m=Et(W.url,n),ee=!1,g=d.map(async(e,t)=>{if(!e)return;let a=W.branch[t];return e[1]===a?.loader&&!wt(ee,p,f,m,a.universal?.uses,r)?a:(ee=!0,St({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await g[n])?.data);return e},server_data_node:Tt(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of g)e.catch(h);let _=[];for(let e=0;e<d.length;e+=1)if(d[e])try{_.push(await g[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(a&<.has(a))return Dt({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Fe(t),u;if(t instanceof c)u=t.body;else{if(await P.updated.check())return await Je(),await F(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await kt(e,_,o);return d?xt({url:n,params:r,branch:_.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Ft(n,{id:i.id},u,s)}else _.push(void 0);return xt({url:n,params:r,branch:_,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function kt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function At({status:e,error:t,url:n,route:r}){let i={};try{return xt({url:n,params:i,branch:[await St({loader:Xe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Tt(null)}),{node:await I(),loader:I,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(t){if(t instanceof l){await _t(new URL(t.location,location.href),{},0);return}let a=await R.get_error_template(),o=await $(t,{url:n,params:i,route:r}),s=a({status:e,message:String(o?.message??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),t}}async function jt(e){let t=e.href;if(et.has(t))return et.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Ct(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();et.set(t,r),n=await r}catch{et.delete(t);return}return n}async function X(e,t){if(e&&!D(e,x,R.hash)){let n=await jt(e);if(!n)return;let r=Mt(n);for(let n of Ye){let i=n.exec(r);if(i)return{id:Nt(e),invalidating:t,route:n,params:p(i),url:e}}}}function Mt(e){return f(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(x.length))||`/`}function Nt(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Pt({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Wt(W,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return G||tt.forEach(e=>e(c)),o?null:s}async function Z({type:e,url:t,popped:n,keepfocus:i,noscroll:a,replace_state:o,state:c={},redirect_count:l=0,nav_token:d={},accept:f=h,block:p=h,event:m}){let ee=Y;Y=d;let g=await X(t,!1),_=e===`enter`?Wt(W,g,t,e):Pt({url:t,type:e,delta:n?.delta,intent:g,scroll:n?.scroll,event:m});if(!_){p(),Y===d&&(Y=ee);return}let te=q,v=J;f(),G=!0,it&&_.navigation.type!==`enter`&&P.navigating.set(A.current=_.navigation);let y=g&&await Ot(g);if(!y){if(D(t,x,R.hash))return await F(t,o);y=await Ft(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,o)}if(t=g?.url||t,Y!==d){_.reject(Error(`navigation aborted`));return}if(!y)return;if(y.type===`redirect`){if(l<20){await Z({type:e,url:new URL(y.location,t),popped:n,keepfocus:i,noscroll:a,replace_state:o,state:c,redirect_count:l+1,nav_token:d}),_.fulfil(void 0);return}if(y=await At({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!y)return}else if(y.props.page.status>=400&&await P.updated.check())return await Je(),await F(t,o);if(pt(),Ke(te),mt(v),y.props.page.url.pathname!==t.pathname&&(t.pathname=y.props.page.url.pathname),c=n?n.state:c,!n){let e=+!o,n={[S]:q+=e,[C]:J+=e,[xe]:c};(o?history.replaceState:history.pushState).call(history,n,``,t),o||qe(q,J)}let ne=g&&V?.id===g.id?V.fork:null;V?.fork&&!ne?H():(V=null,Q={element:void 0,href:void 0}),y.props.page.state=c;let b;if(it){let e=(await Promise.all(Array.from(nt,e=>e(_.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{U.delete(e)})}e.push(t),e.forEach(e=>{U.add(e)})}let n=_.navigation.to;W={...y.state,nav:{params:n.params,route:n.route,url:n.url}},y.props.page&&(y.props.page.url=t),!i&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();let a=ne&&await ne;a?b=a.commit():(j=null,ct.$set(y.props),j&&Object.assign(y.props.page,j),Be(y.props.page),b=r?.()),ot=!0}else await bt(y,Ze,!1);let{activeElement:re}=document;if(await b,await s(),await s(),Y!==d){_.reject(Error(`navigation aborted`));return}y.props.page&&j&&Object.assign(y.props.page,j);let ie=null;if(at){let e=n?n.scroll:a?T():null;e?scrollTo(e.x,e.y):(ie=t.hash&&document.getElementById(qt(t)))?ie.scrollIntoView():scrollTo(0,0)}let ae=document.activeElement!==re&&document.activeElement!==document.body;!i&&!ae&&Ut(t,!ie),at=!0,G=!1,_.fulfil(void 0),_.navigation.to&&(_.navigation.to.scroll=T()),U.forEach(e=>e(_.navigation)),e===`popstate`&&ht(J),P.navigating.set(A.current=null)}async function Ft(e,t,n,r,i){return e.origin===Se&&e.pathname===location.pathname&&!rt?await At({status:r,error:n,url:e,route:t}):await F(e,i)}var Q={element:void 0,href:void 0};function It(){let e,t;L.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,w.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],w.tap)}L.addEventListener(`mousedown`,n),L.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(yt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Ee(e,L),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=De(r,x,R.hash);if(o||s)return;let c=Oe(r),l=a&&Nt(W.url)===Nt(a);if(!(c.reload||l)){if(n<=c.preload_data){Q={element:r,href:r.href},t=w.tap;let e=await X(a,!1);if(!e)return;vt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,yt(a))}}function a(){r.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:i}=De(e,x,R.hash);if(n||i)continue;let a=Oe(e);a.reload||(a.preload_code===w.viewport&&r.observe(e),a.preload_code===w.eager&&yt(t))}}U.add(a),a()}function $(e,t){if(e instanceof c)return e.body;let n=Fe(e),r=Ie(e);return R.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Lt(e,t={}){return e=new URL(Ce(e)),e.origin===Se?_t(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Rt(e){if(typeof e==`function`)z.push(e);else{let{href:t}=new URL(e,location.href);z.push(e=>e.href===t)}}function zt(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(gt(),!G){let e=Wt(W,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};tt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&>()}),navigator.connection?.saveData||It(),L.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Ee(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=De(n,x,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=Oe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l))Pt({url:r,type:`link`,event:t})?G=!0:t.preventDefault();else{if(l!==void 0&&u){let[,i]=W.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(K=!0,Ke(q),e(r),!s.replace_state)return;K=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(D(r,x,!1))return;let i=e.target,a=Oe(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Ht){if(t.state?.[`sveltekit:history`]){let n=t.state[S];if(Y={},n===q)return;let r=M[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[C],s=W.url?m(location)===m(W.url):!1;if(o===J&&(ot||s)){i!==k.state&&(k.state=i),e(a),M[q]=T(),r&&scrollTo(r.x,r.y),q=n;return}let c=n-q;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{q=n,J=o},block:()=>{history.go(-c)},nav_token:Y,event:t})}else K||(e(new URL(location.href)),R.hash&&location.reload())}}),addEventListener(`hashchange`,()=>{K&&(K=!1,history.replaceState({...history.state,[S]:++q,[C]:J},``,location.href))});for(let e of document.querySelectorAll(`link`))Ge.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&P.navigating.set(A.current=null)});function e(e){W.url=k.url=e,P.page.set(Gt(k)),P.page.notify()}}async function Bt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){rt=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await X(u,!1)||{}),d=Ye.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Vt(r.uses)),St({loader:R.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Tt(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await xt({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l)return await F(new URL(t.location,location.href));f=await At({status:Fe(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f&&(f.props.page&&(f.props.page.state={}),await bt(f,e,p))}function Vt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Ht=!1;function Ut(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=qt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=T();setTimeout(()=>{let a=history.state;Ht=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Ht=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Wt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(h),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:T()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Gt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Kt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function qt(e){let t;if(R.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Me as a,k as i,ft as n,_e as o,A as r,Lt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,L as t,Q as n}from"./C8UdwlAg.js";import{o as r}from"./Cw2GjAJR.js";var i=class extends Error{status;current;constructor(e,t,n){super(e),this.status=t,this.current=n}};function a(e=new URL(`api/`,document.baseURI).href){let t=null,n=async(t,n)=>{let r;try{r=await fetch(e+t,n)}catch{throw new i(`isorite is not answering`,0)}let a=await r.json().catch(()=>({}));if(!r.ok)throw new i(a.error??r.statusText,r.status,a.current);return a},r=()=>n(`session`),a=async(e,i,a)=>{t??=r().then(e=>e.token);let o={"Content-Type":`application/json`,"x-isorite-token":await t};return n(i,{method:e,headers:o,body:JSON.stringify(a)})},o=e=>`?id=${encodeURIComponent(e)}`;return{session:async()=>{let{token:e,...n}=await r();return t=Promise.resolve(e),n},notes:()=>n(`notes`),readNote:e=>n(`note`+o(e)),saveNote:(e,t)=>a(`PUT`,`note`+o(e),t),createNote:(e,t)=>a(`POST`,`note`+o(e),{text:t}),journal:e=>n(`journal`+o(e)),version:async(e,t)=>(await n(`version`+o(e)+`&entry=`+encodeURIComponent(t))).text,moveNote:(e,t,n)=>a(`POST`,`note/move`+o(e),{to:t,base:n}),deleteNote:async(e,t)=>{await a(`POST`,`note/delete`+o(e),{base:t})},restore:(e,t,n)=>a(`POST`,`note/restore`+o(e),{entry:t,base:n}),map:()=>n(`map`),timeline:()=>n(`timeline`),search:e=>n(`search?q=${encodeURIComponent(e)}`),ask:e=>a(`POST`,`iso/ask`,e),converse:e=>a(`POST`,`iso/converse`,e),understanding:e=>n(`understanding`+o(e)),saveScratchpad:(e,t,n)=>a(`POST`,`understanding/scratchpad`+o(e),{scratchpad:t,base:n}),undoTurn:(e,t)=>a(`POST`,`iso/undo`,{conversation:e,turn:t}),answer:async(e,t,n)=>{await a(`POST`,`iso/answer`,{turn:e,permission:t,decision:n})},conversation:async e=>{let t=await n(`conversation`+(e?o(e):``));return t.id?t:null},turnContext:e=>n(`turn/context?turn=${encodeURIComponent(JSON.stringify(e))}`),stop:async e=>{await a(`POST`,`iso/stop`,{request:e})},keep:(e,t,n)=>a(`POST`,`proposal/keep`+o(e),{proposal:t,...n===void 0?{}:{region:n}}),revise:async(e,t,n)=>{await a(`POST`,`proposal/revise`+o(e),{proposal:t,text:n})},discard:async(e,t,n)=>{await a(`POST`,`proposal/discard`+o(e),{proposal:t,...n===void 0?{}:{region:n}})},drafts:()=>n(`drafts`),createDraft:()=>a(`POST`,`drafts`,{}),keepDraft:(e,t,n)=>a(`POST`,`draft/keep`+o(e),{proposal:t,folder:n}),discardDraft:async e=>{await a(`POST`,`draft/discard`+o(e),{})},createExerciseDraft:(e,t,n)=>a(`POST`,`exercise/draft`,{folder:e,tests:t,after:n??null}),keepExercise:(e,t)=>a(`POST`,`exercise/keep`+o(e),{proposal:t}),study:()=>n(`study`),windBack:async e=>{await a(`POST`,`exercise/wind-back`+o(e),{})},context:(e,t)=>n(`context`+(e?o(e):``)+(t?`${e?`&`:`?`}choice=${encodeURIComponent(JSON.stringify(t))}`:``)),clearConversation:async()=>{await a(`POST`,`context/clear`,{})},settings:()=>n(`settings`),setKey:e=>a(`PUT`,`settings/key`,{key:e}),connect:e=>a(`POST`,`settings/connect`,{callback:e}),connected:(e,t)=>a(`POST`,`settings/connected`,{code:e,state:t}),agentTools:()=>n(`agent/tools`),agentLook:e=>a(`POST`,`agent/look`,e),agentWrite:e=>a(`POST`,`agent/write`,e),agentSend:e=>a(`POST`,`agent/send`,e),agentReceived:async(e,t)=>{await a(`POST`,`agent/received`,{id:e,agent:t})},agentStatus:async(e,t,n)=>{await a(`POST`,`agent/status`,{agent:e,session:t,busy:n})},terminal:{view:()=>n(`terminal`),prompt:async(e,t)=>{await a(`POST`,`terminal/prompt`,{asked:e,given:t})},stop:async()=>{await a(`POST`,`terminal/stop`,{})},reply:async(e,t)=>{await a(`POST`,`terminal/permission`,{id:e,decision:t})}},events(t){let n=new EventSource(e+`events`),r=e=>{try{t(JSON.parse(e.data))}catch{}};for(let e of[`note-changed`,`journal`,`record`,`iso-start`,`iso-step`,`iso-text`,`iso-item`,`iso-answer`,`iso-done`,`iso-stopped`,`iso-failed`,`agent-start`,`agent-step`,`agent-done`,`agent-sent`,`agent-received`,`terminal`])n.addEventListener(e,r);return()=>n.close()}}}var o=class{api;#e=e(null);get session(){return t(this.#e)}set session(e){n(this.#e,e)}#t=e({notes:[],dirs:[]});get listing(){return t(this.#t)}set listing(e){n(this.#t,e)}#n=e(``);get error(){return t(this.#n)}set error(e){n(this.#n,e,!0)}#r=e(``);get open(){return t(this.#r)}set open(e){n(this.#r,e,!0)}#i=e(``);get here(){return t(this.#i)}set here(e){n(this.#i,e,!0)}#a=e(null);get saving(){return t(this.#a)}set saving(e){n(this.#a,e,!0)}#o=e(null);get atlas(){return t(this.#o)}set atlas(e){n(this.#o,e)}#s=e(null);get exercise(){return t(this.#s)}set exercise(e){n(this.#s,e)}#c=e(!1);get studying(){return t(this.#c)}set studying(e){n(this.#c,e,!0)}#l=e(null);get signIn(){return t(this.#l)}set signIn(e){n(this.#l,e)}#u=e(null);get iso(){return t(this.#u)}set iso(e){n(this.#u,e)}watching=``;listeners=new Set;relist=null;async load(e=a()){this.api=e;try{[this.session,this.listing]=await Promise.all([e.session(),e.notes()])}catch(e){this.error=e.message;return}await this.signedIn(),e.events(e=>{this.follow(e);for(let t of this.listeners)t(e);e.type===`note-changed`&&(this.relist&&clearTimeout(this.relist),this.relist=setTimeout(()=>{this.refresh()},300))})}async startSignIn(){let{url:e}=await this.api.connect(location.origin+location.pathname);try{sessionStorage.setItem(s,location.hash)}catch{}location.assign(e)}async signedIn(){let e=new URLSearchParams(location.search),t,n;try{if(e.has(`code`)||e.has(`state`)||e.has(`error`)){let t=sessionStorage.getItem(s)??location.hash;return sessionStorage.removeItem(s),sessionStorage.setItem(c,JSON.stringify({code:e.get(`code`),state:e.get(`state`)})),location.replace(location.pathname+t),new Promise(()=>void 0)}let r=sessionStorage.getItem(c);if(r===null)return;sessionStorage.removeItem(c),{code:t,state:n}=JSON.parse(r)}catch{if({code:t,state:n}={code:e.get(`code`),state:e.get(`state`)},!t&&!n)return}if(!t||!n)this.signIn={ok:!1,message:`No key was made: the sign-in was left or refused.`};else try{let e=await this.api.connected(t,n);this.signIn={ok:!0,message:`Signed in at ${e.provider}: a key was made for isorite, and is held on this device.`}}catch(e){this.signIn={ok:!1,message:e.message}}}async refresh(){try{this.listing=await this.api.notes()}catch{}}follow(e){if(e.type===`iso-start`){this.iso={request:e.request,note:e.note,agent:null,state:`reading`,steps:[],message:``,start:e,text:``};return}if((e.type===`agent-start`||e.type===`agent-step`)&&this.iso?.request!==e.request){if(this.iso&&!this.iso.agent&&(this.iso.state===`reading`||this.iso.state===`writing`))return;this.iso={request:e.request,note:``,agent:e.agent,state:`reading`,steps:[],message:``}}let t=this.iso;t&&`request`in e&&e.request===t.request&&(e.type===`iso-step`||e.type===`agent-step`?this.iso={...t,state:`reading`,steps:[...t.steps,e.step]}:e.type===`iso-text`?this.iso={...t,state:`writing`,text:e.again?e.delta:(t.text??``)+e.delta}:e.type===`iso-done`||e.type===`agent-done`?this.iso={...t,state:`done`}:e.type===`iso-stopped`?this.iso={...t,state:`stopped`}:e.type===`iso-failed`&&(this.iso={...t,state:`failed`,message:e.message}))}on(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}},s=`isorite.sign-in.back`,c=`isorite.sign-in.code`,l=new o,u=e=>r(`/n/[...id]`,{id:e});function d(e){return e.normalize(`NFKD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,`-`).replace(/^-+|-+$/g,``)}export{i,u as n,d as r,l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ct as e}from"./C8UdwlAg.js";e();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,L as t,Q as n,Z as r}from"./C8UdwlAg.js";import{o as i,t as a}from"./Cw2GjAJR.js";import{n as o}from"./DjBHskLm.js";var s=(e,t)=>{try{return localStorage.getItem(e)??t}catch{return t}},c=(e,t)=>{try{localStorage.setItem(e,t)}catch{}},l=(e,t)=>{try{return{...t,...JSON.parse(s(e,`{}`))}}catch{return t}},u=[`note`,`atlas`,`iso`],d=[`cols`,`stack`,`one`],f=[`normal`,`iso`,`understand`],p=[`ask`,`write`,`build`,`understand`],m={note:1.25,atlas:1,iso:1.05},h={min:.4,max:3},g=new class{#e=e(r(d.includes(s(`isorite.layout`,``))?s(`isorite.layout`,``):`cols`));get layout(){return t(this.#e)}set layout(e){n(this.#e,e,!0)}#t=e(r(l(`isorite.show`,{note:!0,atlas:!0,iso:!0})));get show(){return t(this.#t)}set show(e){n(this.#t,e,!0)}#n=e(r(l(`isorite.widths`,m)));get widths(){return t(this.#n)}set widths(e){n(this.#n,e,!0)}#r=e(r(l(`isorite.lens`,{note:`normal`,atlas:`normal`})));get lens(){return t(this.#r)}set lens(e){n(this.#r,e,!0)}#i=e(r(p.includes(s(`isorite.mode`,``))?s(`isorite.mode`,``):`ask`));get mode(){return t(this.#i)}set mode(e){n(this.#i,e,!0)}#a=e(`note`);get focus(){return t(this.#a)}set focus(e){n(this.#a,e,!0)}#o=e(!1);get narrow(){return t(this.#o)}set narrow(e){n(this.#o,e,!0)}#s=e(r({}));get waiting(){return t(this.#s)}set waiting(e){n(this.#s,e,!0)}#c=e(0);get unseen(){return t(this.#c)}set unseen(e){n(this.#c,e,!0)}#l=e(!1);get tree(){return t(this.#l)}set tree(e){n(this.#l,e,!0)}#u=e(``);get fresh(){return t(this.#u)}set fresh(e){n(this.#u,e,!0)}#d=e(null);get settings(){return t(this.#d)}set settings(e){n(this.#d,e,!0)}#f=e(r(s(`isorite.last`,``)));get last(){return t(this.#f)}set last(e){n(this.#f,e,!0)}get standing(){if(this.narrow)return[...u];let e=u.filter(e=>this.show[e]);return this.layout===`one`?[e.includes(this.focus)?this.focus:e[0]??`note`]:e}layoutChanges=0;setLayout(e){e!==this.layout&&this.layoutChanges++,this.layout=e,c(`isorite.layout`,e)}nextLayout(){this.setLayout(d[(d.indexOf(this.layout)+1)%d.length])}toggle(e){this.show[e]&&u.filter(e=>this.show[e]).length===1||(this.show[e]=!this.show[e],c(`isorite.show`,JSON.stringify(this.show)),!this.show[e]&&this.focus===e&&(this.focus=u.find(e=>this.show[e])))}setWidth(e,t){this.widths[e]=Math.min(h.max,Math.max(h.min,t)),c(`isorite.widths`,JSON.stringify(this.widths))}to(e){!this.narrow&&!this.show[e]&&this.toggle(e),this.focus=e,e===`iso`&&(this.unseen=0),this.scroll?.(e)}scroll=null;step(e){let t=this.narrow?[...u]:u.filter(e=>this.show[e]),n=t.indexOf(this.focus);this.to(t[(n+e+t.length)%t.length])}setLens(e,t){this.lens[e]=t,delete this.waiting[e],c(`isorite.lens`,JSON.stringify(this.lens))}stepLens(e,t){this.setLens(e,f[(f.indexOf(this.lens[e])+t+f.length)%f.length])}want(e,t,n){this.lens[e]!==t&&(n?this.waiting[e]=t:this.setLens(e,t))}busy(e){let t=typeof document>`u`?null:document.activeElement;return!!t&&!!t.closest(`[data-pane="${e}"]`)&&(t.matches(`input, textarea, [contenteditable=true]`)||!!t.closest(`.cm-editor`))}#p=e(r([`ask`,`write`,`understand`]));get modes(){return t(this.#p)}set modes(e){n(this.#p,e,!0)}setBuild(e){e!==this.modes.includes(`build`)&&(this.modes=e?[`ask`,`write`,`build`,`understand`]:[`ask`,`write`,`understand`]),!e&&this.mode===`build`&&this.setMode(`ask`)}setMode(e){this.mode=e,c(`isorite.mode`,e),this.onMode?.()}onMode=null;stepMode(e){let t=this.modes;this.setMode(t[(t.indexOf(this.mode)+e+t.length)%t.length])}setLast(e){e&&!e.startsWith(`@`)&&(this.last=e,c(`isorite.last`,e))}async open(e,t=this.narrow){await a(o(e)),t&&this.to(`note`)}async home(){await a(i(`/notes`))}};export{g as i,f as n,u as r,d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,D as t,F as n,H as r,I as i,L as a,P as o,Q as s,X as c,Y as l,at as u,c as d,h as f,i as p,j as m,k as h,l as g,ot as _,q as v,tt as y,u as b,ut as x,w as S,x as C}from"./C8UdwlAg.js";import"./xihTtKlq.js";import{t as w}from"./DjBHskLm.js";var T=m(`<li role="option"><button type="button" tabindex="-1" class="svelte-35e6rs"><span class="dir svelte-35e6rs"> </span><span class="detail svelte-35e6rs"> </span></button></li>`),E=m(`<ul class="suggest svelte-35e6rs" role="listbox" aria-label="folders"></ul>`),D=m(`<span class="field-wrap svelte-35e6rs"><input autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list"/> <!></span>`);function O(o,m){_(m,!0);let O=p(m,`value`,15,``),k=p(m,`placeholder`,3,``),A=p(m,`id`,3,`folder`),j=p(m,`quiet`,3,!1),M=e(!1),N=e(0),P=y(()=>O().trim().replace(/^\/+|\/+$/g,``).toLowerCase()),F=e=>w.listing.notes.filter(t=>t.dir===e).length,I=y(()=>{let e=w.listing.dirs.filter(e=>e.toLowerCase().includes(a(P))),t=e=>e.split(`/`).at(-1).toLowerCase().startsWith(a(P))?0:e.toLowerCase().startsWith(a(P))?1:2,n=e.sort((e,n)=>t(e)-t(n)||e.localeCompare(n)).map(e=>({dir:e,made:!1}));return a(P)&&!w.listing.dirs.some(e=>e.toLowerCase()===a(P))&&n.push({dir:O().trim().replace(/^\/+|\/+$/g,``),made:!0}),n.slice(0,8)});function L(e){O(e),s(M,!1),m.onpick?.(e)}function R(e){if(a(M)&&a(I).length){if(e.key===`ArrowDown`){s(N,(a(N)+1)%a(I).length),e.preventDefault();return}if(e.key===`ArrowUp`){s(N,(a(N)-1+a(I).length)%a(I).length),e.preventDefault();return}if((e.key===`Enter`||e.key===`Tab`)&&a(I)[a(N)]&&(e.key===`Enter`||a(P))){e.key===`Enter`&&e.preventDefault(),L(a(I)[a(N)].dir);return}if(e.key===`Escape`){s(M,!1),e.stopPropagation();return}}m.onkeydown?.(e)}var z=D(),B=v(z);g(B);let V;var H=c(B,2),U=e=>{var o=E();C(o,23,()=>a(I),e=>e.dir+e.made,(e,o,u)=>{var d=T();let p;var m=v(d),g=v(m),_=l(g,!0),y=c(g),S=l(y,!0);x(m),x(d),r(e=>{b(d,`id`,`${A()??``}-opt-${a(u)??``}`),b(d,`aria-selected`,a(u)===a(N)),p=f(d,1,`svelte-35e6rs`,null,p,{at:a(u)===a(N)}),t(_,a(o).dir),t(S,e)},[()=>a(o).made?`new folder`:`${F(a(o).dir)} ${F(a(o).dir)===1?`note`:`notes`}`]),n(`mousedown`,m,e=>e.preventDefault()),n(`click`,m,()=>L(a(o).dir)),i(`mouseenter`,m,()=>s(N,a(u),!0)),h(e,d)}),x(o),r(()=>b(o,`id`,`${A()??``}-list`)),h(e,o)};S(H,e=>{a(M)&&a(I).length&&e(U)}),x(z),r(()=>{b(B,`id`,A()),V=f(B,1,`mono svelte-35e6rs`,null,V,{field:!j(),quiet:j()}),b(B,`placeholder`,k()),b(B,`aria-label`,m.label),b(B,`aria-expanded`,a(M)&&a(I).length>0),b(B,`aria-controls`,`${A()??``}-list`),b(B,`aria-activedescendant`,a(M)&&a(I)[a(N)]?`${A()}-opt-${a(N)}`:void 0)}),i(`focus`,B,()=>{s(M,!0),s(N,0)}),n(`input`,B,()=>{s(M,!0),s(N,0)}),i(`blur`,B,()=>setTimeout(()=>s(M,!1),120)),n(`keydown`,B,R),d(B,O),h(o,z),u()}o([`input`,`keydown`,`mousedown`,`click`]);export{O as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,D as t,F as n,H as r,I as i,J as a,L as o,P as s,X as c,Y as l,at as u,h as d,i as f,j as p,k as m,ot as h,q as g,tt as _,u as v,ut as y,w as b,x}from"./C8UdwlAg.js";import"./xihTtKlq.js";import{a as S}from"./B_nIecMW.js";var C={wrote:`wrote the note`,found:`found`,edited:`edited`,kept:`kept`,offered:`offered`,discarded:`removed`,restored:`restored an earlier version`,moved:`moved the note`,"changed elsewhere":`changed elsewhere`,marked:`marked`};function w(e){let t=e.who===`you`?`you`:e.who===`external`?`outside isorite`:e.who.startsWith(`agent:`)?S(e.who):`Iso`;return e.what===`marked`?`Iso marked: ${e.result??`done`}`:e.asked===void 0?e.who===`external`?e.what===`found`?`found as it was, outside isorite`:`changed outside isorite`:`${t} ${C[e.what]}`:`${t} · “${e.asked.length>80?e.asked.slice(0,80)+`…`:e.asked}” · ${e.what===`offered`?`not kept yet`:C[e.what]}`}function T(e,t=Date.now()){let n=Math.max(0,(t-Date.parse(e))/1e3),[r,i]=n<90?[0,`now`]:n<5400?[Math.round(n/60),`minute`]:n<129600?[Math.round(n/3600),`hour`]:[Math.round(n/86400),`day`];return i===`now`?`just now`:`${r} ${i}${r===1?``:`s`} ago`}var E=e=>e.ids.at(-1),D=p(`<i aria-hidden="true"></i>`);function O(t,n){h(n,!0);let i=_(()=>n.moment.who.startsWith(`iso:`)),s=_(()=>n.moment.who.startsWith(`agent:`));var c=e(),l=a(c),f=e=>{var t=D();let i;r(()=>i=d(t,1,`pip`,null,i,{ok:n.moment.result===`right`,part:n.moment.result===`partly`,no:n.moment.result===`wrong`})),m(e,t)},p=e=>{var t=D();let i;r(()=>i=d(t,1,`dia svelte-1jroppb`,null,i,{open:n.moment.what===`offered`||n.moment.what===`discarded`,gone:n.moment.what===`discarded`,agent:o(s)})),m(e,t)},g=e=>{var t=D();let i;r(()=>i=d(t,1,`sq`,null,i,{empty:n.moment.who===`external`})),m(e,t)};b(l,e=>{n.moment.what===`marked`?e(f):o(i)||o(s)?e(p,1):e(g,-1)}),m(t,c),u()}var k=p(`<span class="asked svelte-112n2zp" aria-hidden="true"> </span>`),A=p(`<li class="svelte-112n2zp"><button type="button"><!></button> <!></li>`),j=p(`<ol></ol>`);function M(e,a){h(a,!0);let s=f(a,`label`,3,e=>e.asked===void 0?void 0:`“${e.asked}”`),p=f(a,`name`,3,`The note's timeline`),S=f(a,`leftward`,3,!1);var C=j();let D;x(C,21,()=>a.moments,e=>e.ids[0],(e,u)=>{var f=A(),p=g(f);let h;O(g(p),{get moment(){return o(u)}}),y(p);var x=c(p,2),S=e=>{var n=k(),i=l(n,!0);r(e=>t(i,e),[()=>s()(o(u))]),m(e,n)},C=_(()=>a.pointed===o(u)&&s()(o(u))!==void 0);b(x,e=>{o(C)&&e(S)}),y(f),r((e,t,n,r)=>{h=d(p,1,`moment svelte-112n2zp`,null,h,{at:e}),v(p,`aria-current`,t),v(p,`aria-label`,`${n??``}, ${r??``}`)},[()=>a.at===E(o(u)),()=>a.at===E(o(u))?`step`:void 0,()=>w(o(u)),()=>T(o(u).at)]),i(`pointerenter`,p,()=>a.point(o(u))),i(`pointerleave`,p,()=>a.point(null)),i(`focus`,p,()=>a.point(o(u))),i(`blur`,p,()=>a.point(null)),n(`click`,p,()=>a.pick(o(u))),m(e,f)}),y(C),r(()=>{D=d(C,1,`timeline svelte-112n2zp`,null,D,{leftward:S()}),v(C,`aria-label`,p())}),m(e,C),u()}s([`click`]);export{E as i,T as n,w as r,M as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DP4c84Wn.js","../chunks/C8UdwlAg.js","../chunks/Cw2GjAJR.js","../chunks/CRzLMJPS.js","../chunks/xihTtKlq.js","../chunks/DjBHskLm.js","../chunks/B_nIecMW.js","../chunks/UM_L7-f7.js","../chunks/k55859zq.js","../assets/Timeline.KTc3LKuK.css","../chunks/BEVz4Dgg.js","../chunks/BEk5idXo.js","../chunks/CcRs965g.js","../chunks/b-AOhhy1.js","../assets/FolderField._A4_sc1Z.css","../assets/NoteList.F579Zvj_.css","../chunks/B0NIb88Q.js","../assets/0.s5xqevrq.css","../nodes/1.BcwcVDJZ.js","../nodes/2.DgGnQZ7P.js","../chunks/Dm229u8R.js","../nodes/3.BudzO7We.js","../nodes/4.DmswyrSt.js","../chunks/B7ZjnqOt.js","../assets/NoteEditor.ChlpmyHO.css","../assets/4.PVZR2_N5.css","../nodes/5.DjXsfjL5.js","../assets/5.DCxNIgyW.css","../nodes/6.uBh-sdQx.js","../nodes/7.BYBNXM1A.js","../assets/7.ljiu9bn5.css","../nodes/8.Tbz9Rh77.js","../assets/8.C0NYkyNY.css","../nodes/9.NF5w8YC2.js","../assets/9.CFA9_nYZ.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,D as n,H as r,J as i,L as a,N as o,Q as s,U as c,W as l,X as u,at as d,i as f,j as p,k as m,n as h,ot as g,q as _,r as v,s as y,tt as b,ut as x,v as S,w as C,z as w}from"../chunks/C8UdwlAg.js";import{t as T}from"../chunks/CRzLMJPS.js";import"../chunks/xihTtKlq.js";var E={},D=p(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),O=p(`<!> <!>`,1);function k(p,v){g(v,!0);let T=f(v,`components`,23,()=>[]),E=f(v,`data_0`,3,null),k=f(v,`data_1`,3,null);l(()=>v.stores.page.set(v.page)),c(()=>{v.stores,v.page,v.constructors,T(),v.form,E(),k(),v.stores.page.notify()});let A=e(!1),j=e(!1),M=e(null);h(()=>{let e=v.stores.page.subscribe(()=>{a(A)&&(s(j,!0),w().then(()=>{s(M,document.title||`untitled page`,!0)}))});return s(A,!0),e});let N=b(()=>v.constructors[1]);var P=O(),F=i(P),I=e=>{let n=b(()=>v.constructors[0]);var r=t(),o=i(r);S(o,()=>a(n),(e,n)=>{y(n(e,{get data(){return E()},get form(){return v.form},get params(){return v.page.params},children:(e,n)=>{var r=t(),o=i(r);S(o,()=>a(N),(e,t)=>{y(t(e,{get data(){return k()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),m(e,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),m(e,r)},L=e=>{let n=b(()=>v.constructors[0]);var r=t(),o=i(r);S(o,()=>a(n),(e,t)=>{y(t(e,{get data(){return E()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),m(e,r)};C(F,e=>{v.constructors[1]?e(I):e(L,-1)});var R=u(F,2),z=e=>{var t=D(),i=_(t),s=e=>{var t=o();r(()=>n(t,a(M))),m(e,t)};C(i,e=>{a(j)&&e(s)}),x(t),m(e,t)};C(R,e=>{a(A)&&e(z)}),m(p,P),d()}var A=v(k),j=[()=>T(()=>import(`../nodes/0.DP4c84Wn.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url),()=>T(()=>import(`../nodes/1.BcwcVDJZ.js`),__vite__mapDeps([18,1,4,10,2]),import.meta.url),()=>T(()=>import(`../nodes/2.DgGnQZ7P.js`),__vite__mapDeps([19,1,2,4,5,7,20]),import.meta.url),()=>T(()=>import(`../nodes/3.BudzO7We.js`),__vite__mapDeps([21,1,2,4,5,10,7,20]),import.meta.url),()=>T(()=>import(`../nodes/4.DmswyrSt.js`),__vite__mapDeps([22,1,2,4,5,6,7,10,20,23,24,25]),import.meta.url),()=>T(()=>import(`../nodes/5.DjXsfjL5.js`),__vite__mapDeps([26,1,2,4,5,6,7,8,9,10,13,14,23,24,27]),import.meta.url),()=>T(()=>import(`../nodes/6.uBh-sdQx.js`),__vite__mapDeps([28,1,4,12,2,5,13,14,15,20]),import.meta.url),()=>T(()=>import(`../nodes/7.BYBNXM1A.js`),__vite__mapDeps([29,1,4,16,20,30]),import.meta.url),()=>T(()=>import(`../nodes/8.Tbz9Rh77.js`),__vite__mapDeps([31,1,2,4,5,10,32]),import.meta.url),()=>T(()=>import(`../nodes/9.NF5w8YC2.js`),__vite__mapDeps([33,1,4,34]),import.meta.url)],M=[],N={"/":[2],"/atlas":[3],"/draft/[id]":[4],"/notes":[6],"/n/[...id]":[5],"/parts":[7],"/study":[8],"/terminal":[9]},P={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},F=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.decode])),I=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.encode])),L=!0,R=(e,t)=>F[e](t),z=()=>T(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{R as decode,F as decoders,N as dictionary,I as encoders,z as get_error_template,L as hash,P as hooks,E as matchers,j as nodes,A as root,M as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as load_css,n as start}from"../chunks/Cw2GjAJR.js";
|