@pie-players/pie-section-player 1.0.0-beta.0 → 1.0.0-beta.2
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/README.md +16 -3
- package/dist/browser/assets/{evaluation-worker-0xRDVTJx.js → evaluation-worker-B336Lsun.js} +48398 -46681
- package/dist/browser/chunks/calculator-element-271c142f.js +4 -4
- package/dist/browser/chunks/dist-41b39e7f.js +1 -1
- package/dist/browser/chunks/dist-ca9b9622.js +1 -1
- package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -1
- package/dist/browser/chunks/mathjax-BKrHE4xs-3ca05bf6.js +1 -1
- package/dist/browser/chunks/{runtime-YFqnU6ic-d5c0cb49.js → runtime-BCz9m_IT-7b48a036.js} +305 -292
- package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +5 -5
- package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +5 -5
- package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +5 -5
- package/dist/browser/chunks/tool-dictionary-cecff3b4.js +3 -3
- package/dist/browser/chunks/tool-graph-cb0338e8.js +4 -4
- package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +3 -3
- package/dist/browser/chunks/tool-periodic-table-43b133b8.js +4 -4
- package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +3 -3
- package/dist/browser/chunks/tool-protractor-23f77028.js +6 -6
- package/dist/browser/chunks/tool-ruler-1d9a03a6.js +6 -6
- package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +4 -4
- package/dist/browser/chunks/versioned-tag-54a76be9.js +1 -1
- package/dist/browser/pie-section-player.js +57 -44
- package/dist/components/shared/card-title.d.ts +18 -0
- package/dist/contracts/card-title-formatters.d.ts +8 -1
- package/dist/pie-section-player.js +10123 -9887
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{t as Xi}from"./attribute-coercion-b93b482c.js";import{a as Gi,r as Ji}from"./tool-host-contract-fae1c415.js";import{n as Ki,r as Zi,s as Qi}from"./overlay-containment-edaaff13.js";import{t as to}from"./pointer-gesture-ce75f0a7.js";import{i as eo}from"./provider-4c704118.js";import{t as no}from"./ToolCoordinator-0a6c4088.js";if(typeof window<"u"){var or,sr;((or=(sr=window).__svelte??(sr.__svelte={})).v??(or.v=new Set)).add("5")}var Zt={},z=Symbol("uninitialized"),ro=Array.isArray,io=Array.prototype.indexOf,mn=Array.prototype.includes,oo=Array.from,Fe=Object.keys,ce=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,so=Object.getOwnPropertyDescriptors,ao=Object.prototype,lo=Array.prototype,Wr=Object.getPrototypeOf,ar=Object.isExtensible,uo=()=>{};function fo(t){for(var e=0;e<t.length;e++)t[e]()}function Ar(){var t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function de(t){"@babel/helpers - typeof";return de=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(t)}function ho(t,e){if(de(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(de(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function co(t){var e=ho(t,"string");return de(e)=="symbol"?e:e+""}function E(t,e,n){return(e=co(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G=1024,ot=2048,Ht=4096,jn=8192,vo=16384,zn=32768,lr=1<<25,On=65536,re=1<<19,po=1<<20,ur=1<<21,wo=1<<22,Ie=1<<23,ue=Symbol("$state"),Er=Symbol("component"),Tr=Symbol("legacy props"),mo=Symbol(""),gn=Symbol("attributes"),go=Symbol("class"),bn=Symbol("style"),Ne=Symbol("text"),ge=new class extends Error{constructor(...t){super(...t),E(this,"name","StaleReactionError"),E(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},bo=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function yo(){console.warn("https://svelte.dev/e/derived_inert")}function Qe(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function $o(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var T=!1;function Xt(t){T=t}var W;function it(t){if(t===null)throw Qe(),Zt;return W=t}function Dn(){return it(yt(W))}function Pr(t){if(T){if(yt(W)!==null)throw Qe(),Zt;W=t}}function ko(t=1){if(T){for(var e=t,n=W;e--;)n=yt(n);W=n}}function Rr(t=!0){for(var e=0,n=W;;){if(n.nodeType===8){var r=n.data;if(r==="]"){if(e===0)return n;e-=1}else(r==="["||r==="[!"||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=yt(n);t&&n.remove(),n=i}}function _o(t){if(!t||t.nodeType!==8)throw Qe(),Zt;return t.data}function jr(t){return t===this.v}function xo(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function zr(t){return!xo(t,this.v)}function Mo(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function So(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wo(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ao(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Eo(t){throw new Error("https://svelte.dev/e/effect_orphan")}function To(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Po(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ro(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function jo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Oo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Do(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var tn=!1,be=!1,P=null;function Qt(t){P=t}function Or(t,e=!1,n){P={p:P,i:!1,c:null,e:null,s:t,x:null,r:k,l:be&&!e?{s:null,u:null,$:[]}:null}}function Dr(t){var e=P,n=e.e;if(n!==null){e.e=null;for(var r of n)ni(r)}return t!==void 0&&(e.x=t),e.i=!0,P=e.p,Ln(t)}function Ln(t={}){return ce(t,Er,{value:!0}),t}function ye(){return!be||P!==null&&P.l===null}var Rt=[];function Lr(){var t=Rt;Rt=[],fo(t)}function Ct(t){if(Rt.length===0&&!fe){var e=Rt;queueMicrotask(()=>{e===Rt&&Lr()})}Rt.push(t)}function Lo(){for(;Rt.length>0;)Lr()}var Co=~(ot|Ht|G);function R(t,e){t.f=t.f&Co|e}function Cn(t){(t.f&512)!==0||t.deps===null?R(t,G):R(t,Ht)}function Cr(t,e,n){(t.f&2048)!==0?e.add(t):t.f&4096&&n.add(t),R(t,G)}function en(t){var e=M,n=k;J(null),dt(null);try{return t()}finally{J(e),dt(n)}}function No(t,e,n,r){const i=ye()?ve:Hr;var o=t.filter(p=>!p.settled),a=e.map(i);if(n.length===0&&o.length===0){r(a);return}var l=k,h=Ho(),u=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(p=>p.promise)):null;function d(p){if((l.f&16384)===0){h();try{r([...a,...p])}catch(m){ct(m,l)}qe()}}var v=Nr();if(n.length===0){u.then(()=>d([])).finally(v);return}function w(){Promise.all(n.map(p=>Bo(p))).then(d).catch(p=>ct(p,l)).finally(v)}u?u.then(()=>{h(),w(),qe()}):w()}function Ho(){var t=k,e=M,n=P,r=x;return function(i=!0){dt(t),J(e),Qt(n),i&&!(t.f&16384)&&(r?.activate(),r?.apply())}}function qe(t=!0){dt(null),J(null),Qt(null),t&&x?.deactivate()}function Nr(){var t=k,e=t.b,n=x,r=!!e?.is_rendered();return e?.update_pending_count(1,n),n.increment(r,t),()=>{e?.update_pending_count(-1,n),n.decrement(r,t)}}function ve(t){var e=2|ot;return k!==null&&(k.f|=re),{ctx:P,deps:null,effects:null,equals:jr,f:e,fn:t,reactions:null,rv:0,v:z,wv:0,parent:k,ac:null}}var ae=Symbol("obsolete");function Bo(t,e,n){let r=k;r===null&&So();var i=void 0,o=$e(z),a=!M,l=new Set;return as(()=>{var h=k,u=Ar();i=u.promise;try{Promise.resolve(t()).then(u.resolve,p=>{p!==ge&&u.reject(p)}).finally(qe)}catch(p){u.reject(p),qe()}var d=x;if(a){if((h.f&32768)!==0)var v=Nr();if(r.b?.is_rendered())d.async_deriveds.get(h)?.reject(ae);else for(const p of l.values())p.reject(ae);l.add(u),d.async_deriveds.set(h,u)}const w=(p,m=void 0)=>{v?.(),l.delete(u),m!==ae&&(d.activate(),m?(o.f|=Ie,Je(o,m)):(o.f&8388608&&(o.f^=Ie),Je(o,p)),d.deactivate())};u.promise.then(w,p=>w(null,p||"unknown"))}),is(()=>{for(const h of l)h.reject(ae)}),new Promise(h=>{function u(d){function v(){d===i?h(o):u(i)}d.then(v,v)}u(i)})}function sn(t){const e=ve(t);return fi(e),e}function Hr(t){const e=ve(t);return e.equals=zr,e}function Fo(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)I(e[n])}}function Nn(t){var e,n=k,r=t.parent;if(!bt&&r!==null&&t.v!==z&&(r.f&24576)!==0)return yo(),t.v;dt(r);try{Fo(t),e=vi(t)}finally{dt(n)}return e}function Br(t){var e=Nn(t);if(!t.equals(e)&&(t.wv=ci(),(!x?.is_fork||t.deps===null)&&(x!==null?(x.capture(t,e,!0),$n?.capture(t,e,!0)):t.v=e,t.deps===null))){R(t,G);return}bt||(H!==null?(In()||x?.is_fork)&&H.set(t,e):Cn(t))}function Io(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&en(()=>{e.ac.abort(ge),e.ac=null}),e.fn!==null&&(e.teardown=uo),we(e,0),Un(e))}function Fr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&ee(e)}function Ir(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Hn(t,e){Ir(t,e),e.add(t)}function b(t,e,n){Ir(t,e),e.set(t,n)}function y(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function g(t,e,n){return t.set(y(t,e),n),n}function s(t,e){return t.get(y(t,e))}var qr,yn=null,qt=null,x=null,$n=null,H=null,kn=null,fe=!1,an=!1,pe=null,Ue=null,Ur=0,qo=1,_n=new WeakMap,Ot=new WeakMap,Gt=new WeakMap,Ve=new WeakMap,Re=new WeakMap,Ut=new WeakMap,Et=new WeakMap,le=new WeakMap,ut=new WeakMap,fr=new WeakMap,te=new WeakMap,wt=new WeakMap,kt=new WeakMap,ln=new WeakMap,je=new WeakMap,j=new WeakSet,Bt=class Vr{constructor(){Hn(this,j),E(this,"id",qo++),b(this,_n,!1),E(this,"linked",!0),b(this,Ot,null),b(this,Gt,null),E(this,"async_deriveds",new Map),E(this,"current",new Map),E(this,"previous",new Map),b(this,Ve,new Set),b(this,Re,new Set),b(this,Ut,0),b(this,Et,new Map),b(this,le,null),b(this,ut,[]),b(this,fr,[]),b(this,te,new Set),b(this,wt,new Set),b(this,kt,new Map),b(this,ln,new Set),E(this,"is_fork",!1),b(this,je,!1),qt===null?yn=qt=this:(g(Gt,qt,this),g(Ot,this,qt)),qt=this}skip_effect(e){s(kt,this).has(e)||s(kt,this).set(e,{d:[],m:[]}),s(ln,this).delete(e)}unskip_effect(e,n=r=>this.schedule(r)){var r=s(kt,this).get(e);if(r){s(kt,this).delete(e);for(var i of r.d)R(i,ot),n(i);for(i of r.m)R(i,Ht),n(i)}s(ln,this).add(e)}capture(e,n,r=!1){e.v!==z&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[n,r]),H?.set(e,n)),this.is_fork||(e.v=n)}activate(){x=this}deactivate(){x=null,H=null}flush(){try{an=!0,x=this,y(j,this,Ye).call(this)}finally{Ur=0,kn=null,pe=null,Ue=null,an=!1,x=null,H=null,ht.clear()}}discard(){for(const e of s(Re,this))e(this);s(Re,this).clear();for(const e of this.async_deriveds.values())e.reject(ae);y(j,this,Xe).call(this),s(le,this)?.resolve()}register_created_effect(e){s(fr,this).push(e)}increment(e,n){if(g(Ut,this,s(Ut,this)+1),e){let r=s(Et,this).get(n)??0;s(Et,this).set(n,r+1)}}decrement(e,n){if(g(Ut,this,s(Ut,this)-1),e){let r=s(Et,this).get(n)??0;r===1?s(Et,this).delete(n):s(Et,this).set(n,r-1)}s(je,this)||(g(je,this,!0),Ct(()=>{g(je,this,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const r of e)s(te,this).add(r);for(const r of n)s(wt,this).add(r);e.clear(),n.clear()}oncommit(e){s(Ve,this).add(e)}ondiscard(e){s(Re,this).add(e)}settled(){return(s(le,this)??g(le,this,Ar())).promise}static ensure(){if(x===null){const e=x=new Vr;!an&&!fe&&Ct(()=>{s(_n,e)||e.flush()})}return x}apply(){if(!tn||!this.is_fork&&s(Ot,this)===null&&s(Gt,this)===null){H=null;return}H=new Map;for(const[n,[r]]of this.current)H.set(n,r);for(let n=yn;n!==null;n=s(Gt,n))if(!(n===this||n.is_fork)){var e=!1;if(n.id<this.id){for(const[r,[,i]]of n.current)if(!i&&this.current.has(r)){e=!0;break}}if(!e)for(const[r,i]of n.previous)H.has(r)||H.set(r,i)}}schedule(e){if(kn=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}s(ut,this).push(e)}};qr=Bt;function hr(){if(this.is_fork)return!0;for(const n of s(Et,this).keys()){for(var t=n,e=!1;t.parent!==null;){if(s(kt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function Uo(){var t=[];for(const i of s(ut,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,n=!1;e.parent!==null;){e=e.parent;var r=e.f;if((r&96)!==0){if((r&1024)===0){n=!0;break}e.f^=G}}n||t.push(e)}return g(ut,this,[]),t}function Ye(){g(_n,this,!0);for(const a of s(te,this))s(wt,this).delete(a),R(a,ot),this.schedule(a);for(const a of s(wt,this))R(a,Ht),this.schedule(a);this.apply();for(var t=pe=[],e=[],n=Ue=[];s(ut,this).length>0;){Ur++>1e3&&(y(j,this,Xe).call(this),Go());for(const a of y(j,this,Uo).call(this))try{y(j,this,Vo).call(this,a,t,e)}catch(l){throw Gr(a),y(j,this,hr).call(this)||this.discard(),l}}if(x=null,n.length>0){var r=qr.ensure();for(const a of n)r.schedule(a)}if(pe=null,Ue=null,y(j,this,hr).call(this)){y(j,this,ze).call(this,e),y(j,this,ze).call(this,t);for(const[a,l]of s(kt,this))Xr(a,l);n.length>0&&y(j,x,Ye).call(x);return}const i=y(j,this,Yo).call(this);if(i){y(j,this,ze).call(this,e),y(j,this,ze).call(this,t),y(j,i,Xo).call(i,this);return}s(te,this).clear(),s(wt,this).clear();for(const a of s(Ve,this))a(this);s(Ve,this).clear(),$n=this,cr(e),cr(t),$n=null,s(le,this)?.resolve();var o=x;if(s(Ut,this)===0&&(s(ut,this).length===0||o!==null)&&y(j,this,Xe).call(this),s(ut,this).length>0)if(o!==null){for(const a of s(ut,this))s(ut,o).push(a);g(ut,this,[])}else o=this;o!==null&&(ht.clear(),y(j,o,Ye).call(o))}function Vo(t,e,n){t.f^=G;for(var r=t.first;r!==null;){var i=r.f,o=(i&96)!==0;if(!(o&&(i&1024)!==0||(i&8192)!==0||s(kt,this).has(r))&&r.fn!==null){o?r.f^=G:(i&4)!==0?e.push(r):tn&&(i&16777224)!==0?n.push(r):_e(r)&&(i&16&&s(wt,this).add(r),ee(r));var a=r.first;if(a!==null){r=a;continue}}for(;r!==null;){var l=r.next;if(l!==null){r=l;break}r=r.parent}}}function Yo(){for(var t=s(Ot,this);t!==null;){if(!t.is_fork){for(const[e,[,n]]of this.current)if(t.current.has(e)&&!n)return t}t=s(Ot,t)}return null}function Xo(t){for(const[n,r]of t.current)!this.previous.has(n)&&t.previous.has(n)&&this.previous.set(n,t.previous.get(n)),this.current.set(n,r);for(const[n,r]of t.async_deriveds){const i=this.async_deriveds.get(n);i&&r.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(s(te,t),s(wt,t));const e=n=>{var r=n.reactions;if(r!==null&&!((n.f&2)!==0&&(n.f&6144)===0))for(const a of r){var i=a.f;if((i&2)!==0)e(a);else{var o=a;i&4194320&&!this.async_deriveds.has(o)&&(s(wt,this).delete(o),R(o,ot),this.schedule(o))}}};for(const n of this.current.keys())e(n);this.oncommit(()=>t.discard()),y(j,t,Xe).call(t),x=this,y(j,this,Ye).call(this)}function ze(t){for(var e=0;e<t.length;e+=1)Cr(t[e],s(te,this),s(wt,this))}function Xe(){if(this.linked){var t=s(Ot,this),e=s(Gt,this);t===null?yn=e:g(Gt,t,e),e===null?qt=t:g(Ot,e,t),this.linked=!1}}function xn(t){var e=fe;fe=!0;try{var n;for(t&&(x!==null&&!x.is_fork&&x.flush(),n=t());;){if(Lo(),x===null)return n;x.flush()}}finally{fe=e}}function Go(){try{To()}catch(t){ct(t,kn)}}var lt=null;function cr(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&24576)===0&&_e(r)&&(lt=new Set,ee(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&si(r),lt?.size>0)){ht.clear();for(const i of lt){if((i.f&24576)!==0)continue;const o=[i];let a=i.parent;for(;a!==null;)lt.has(a)&&(lt.delete(a),o.push(a)),a=a.parent;for(let l=o.length-1;l>=0;l--){const h=o[l];!(h.f&24576)&&ee(h)}}lt.clear()}}lt=null}}function Yr(t){x.schedule(t)}function Xr(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),R(t,G);for(var n=t.first;n!==null;)Xr(n,e),n=n.next}}function Gr(t){R(t,G);for(var e=t.first;e!==null;)Gr(e),e=e.next}var Ge=new Set,ht=new Map,Jr=!1;function $e(t,e){return{f:0,v:t,reactions:null,equals:jr,rv:0,wv:0}}function C(t,e){const n=$e(t,e);return fi(n),n}function Jo(t,e=!1,n=!0){const r=$e(t);if(e||(r.equals=zr),be&&n&&P!==null&&P.l!==null){var i;((i=P.l).s??(i.s=[])).push(r)}return r}function S(t,e,n=!1){return M!==null&&(!Q||M.f&131072)&&ye()&&M.f&4325394&&(et===null||!et.has(t))&&Oo(),Je(t,n?_t(e):e,Ue)}var Pt=null,Mn=0;function Je(t,e,n=null){if(!t.equals(e)){bt?ht.set(t,e):ht.has(t)||ht.set(t,t.v);var r=Bt.ensure();if(r.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Nn(i),H===null&&Cn(i)}t.wv=ci(),Pt=null,Mn=0,Kr(t,ot,n),Pt=null,ye()&&k!==null&&k.f&1024&&!(k.f&96)&&(X===null?cs([t]):X.push(t)),!r.is_fork&&Ge.size>0&&!Jr&&Ko()}return e}function Ko(){Jr=!1;for(const t of Ge){t.f&1024&&R(t,Ht);let e;try{e=_e(t)}catch{e=!0}e&&ee(t)}Ge.clear()}function he(t){S(t,t.v+1)}function Kr(t,e,n){var r=t.reactions;if(r!==null){var i=ye(),o=r.length;if(Mn+=o,Mn>1e5&&Pt===null&&(Pt=new Set),Pt!==null){if(Pt.has(t))return;Pt.add(t)}for(var a=0;a<o;a++){var l=r[a],h=l.f;if(!(!i&&l===k)){var u=(h&ot)===0;if(u&&R(l,e),(h&131072)!==0)Ge.add(l);else if((h&2)!==0){var d=l;H?.delete(d),Kr(d,Ht,n)}else if(u){var v=l;h&16&<!==null&<.add(v),n!==null?n.push(v):Yr(v)}}}}}function _t(t){if(typeof t!="object"||t===null||ue in t||Er in t)return t;const e=Wr(t);if(e!==ao&&e!==lo)return t;var n=new Map,r=ro(t),i=C(0),o=null,a=Dt,l=h=>{if(Dt===a)return h();var u=M,d=Dt;J(null),mr(a);var v=h();return J(u),mr(d),v};return r&&n.set("length",C(t.length,o)),new Proxy(t,{defineProperty(h,u,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&jo();var v=n.get(u);return v===void 0?l(()=>{var w=C(d.value,o);return n.set(u,w),w}):S(v,d.value,!0),!0},deleteProperty(h,u){var d=n.get(u);if(d===void 0){if(u in h){const v=l(()=>C(z,o));n.set(u,v),he(i)}}else S(d,z),he(i);return!0},get(h,u,d){if(u===ue)return t;var v=n.get(u),w=u in h;if(v===void 0&&(!w||zt(h,u)?.writable)&&(v=l(()=>C(_t(w?h[u]:z),o)),n.set(u,v)),v!==void 0){var p=f(v);return p===z?void 0:p}return Reflect.get(h,u,d)},getOwnPropertyDescriptor(h,u){this.has?.(h,u);var d=Reflect.getOwnPropertyDescriptor(h,u),v=n.get(u);if(v!==void 0){var w=f(v);if(w===z)return;if(d&&"value"in d)d.value=w;else return{enumerable:!0,configurable:!0,value:w,writable:!0}}return d},has(h,u){if(u===ue)return!0;var d=n.get(u),v=d!==void 0&&d.v!==z||Reflect.has(h,u);return(d!==void 0||k!==null&&(!v||zt(h,u)?.writable))&&(d===void 0&&(d=l(()=>C(v?_t(h[u]):z,o)),n.set(u,d)),f(d)===z)?!1:v},set(h,u,d,v){var w=n.get(u),p=u in h;if(r&&u==="length")for(var m=d;m<w.v;m+=1){var _=n.get(m+"");_!==void 0?S(_,z):m in h&&(_=l(()=>C(z,o)),n.set(m+"",_))}if(w===void 0)(!p||zt(h,u)?.writable)&&(w=l(()=>C(void 0,o)),S(w,_t(d)),n.set(u,w));else{p=w.v!==z;var A=l(()=>_t(d));S(w,A)}var D=Reflect.getOwnPropertyDescriptor(h,u);if(D?.set&&D.set.call(v,d),!p){if(r&&typeof u=="string"){var B=n.get("length"),K=Number(u);Number.isInteger(K)&&K>=B.v&&S(B,K+1)}he(i)}return!0},ownKeys(h){f(i);var u=Reflect.ownKeys(h).filter(w=>{var p=n.get(w);return p===void 0||p.v!==z});for(var[d,v]of n)v.v!==z&&!(d in h)&&u.push(d);return u},setPrototypeOf(){zo()}})}var dr,Zr,Qr,ti;function Sn(){if(dr===void 0){dr=window,Zr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Qr=zt(e,"firstChild").get,ti=zt(e,"nextSibling").get,ar(t)&&(t[go]=void 0,t[gn]=null,t[bn]=void 0,t.__e=void 0),ar(n)&&(n[Ne]=void 0)}}function mt(t=""){return document.createTextNode(t)}function Nt(t){return Qr.call(t)}function yt(t){return ti.call(t)}function ei(t,e){if(!T)return Nt(t);var n=Nt(W);if(n===null)n=W.appendChild(mt());else if(e&&n.nodeType!==3){var r=mt();return n?.before(r),it(r),r}return e&&Fn(n),it(n),n}function vr(t,e=!1){if(!T){var n=Nt(t);return n instanceof Comment&&n.data===""?yt(n):n}if(e){if(W?.nodeType!==3){var r=mt();return W?.before(r),it(r),r}Fn(W)}return W}function Zo(t,e=!1){if(!T)return Nt(t);var n=ei(t,e);return Pr(t),n}function Oe(t,e=1,n=!1){let r=T?W:t;for(var i;e--;)i=r,r=yt(r);if(!T)return r;if(n){if(r?.nodeType!==3){var o=mt();return r===null?i?.after(o):r.before(o),it(o),o}Fn(r)}return it(r),r}function Qo(t){t.textContent=""}function ts(){return!tn||lt!==null?!1:(k.f&zn)!==0}function Bn(t,e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?n?document.createElement(t,{is:n}):document.createElement(t):n?document.createElementNS(e,t,{is:n}):document.createElementNS(e,t)}function Fn(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function es(t){var e=k;if(e===null)return M.f|=Ie,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;ct(t,e)}function ct(t,e){if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}}function ns(t){k===null&&(M===null&&Eo(t),Ao()),bt&&Wo(t)}function rs(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function vt(t,e){var n=k;n!==null&&n.f&8192&&(t|=jn);var r={ctx:P,deps:null,nodes:null,f:t|ot|512,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};x?.register_created_effect(r);var i=r;if((t&4)!==0)pe!==null?pe.push(r):Bt.ensure().schedule(r);else if(e!==null){try{ee(r)}catch(a){throw I(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=On))}if(i!==null&&(i.parent=n,n!==null&&rs(i,n),M!==null&&(M.f&2)!==0&&(t&64)===0)){var o=M;(o.effects??(o.effects=[])).push(i)}return r}function In(){return M!==null&&!Q}function is(t){const e=vt(8,null);return R(e,G),e.teardown=t,e}function Tt(t){ns("$effect");var e=k.f;if(!M&&(e&32)!==0&&P!==null&&!P.i){var n=P;(n.e??(n.e=[])).push(t)}else return ni(t)}function ni(t){return vt(4|po,t)}function os(t){Bt.ensure();const e=vt(64|re,t);return()=>{I(e)}}function ss(t){Bt.ensure();const e=vt(64|re,t);return(n={})=>new Promise(r=>{n.outro?ke(e,()=>{I(e),r(void 0)}):(I(e),r(void 0))})}function ri(t){return vt(4,t)}function as(t){return vt(wo|re,t)}function qn(t,e=0){return vt(8|e,t)}function ls(t,e=[],n=[],r=[]){No(r,e,n,i=>{vt(8,()=>{t(...i.map(f))})})}function ii(t,e=0){return vt(16|e,t)}function gt(t){return vt(32|re,t)}function oi(t){var e=t.teardown;if(e!==null){const n=bt,r=M;wr(!0),J(null);try{e.call(null)}catch(i){ct(i,t.parent)}finally{wr(n),J(r)}}}function Un(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&en(()=>{i.abort(ge)});var r=n.next;(n.f&64)!==0?n.parent=null:I(n,e),n=r}}function us(t){for(var e=t.first;e!==null;){var n=e.next;!(e.f&32)&&I(e),e=n}}function I(t,e=!0){var n=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(fs(t.nodes.start,t.nodes.end),n=!0),t.f|=lr,Un(t,e&&!n),we(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const o of r)o.stop();oi(t),t.f^=lr,t.f|=vo;var i=t.parent;i!==null&&i.first!==null&&si(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function fs(t,e){for(;t!==null;){var n=t===e?null:yt(t);t.remove(),t=n}}function si(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ke(t,e,n=!0){var r=[];t.f|=256,ai(t,r,!0);var i=()=>{n&&I(t),e&&e()},o=r.length;if(o>0){var a=()=>--o||i();for(var l of r)l.out(a)}else i()}function ai(t,e,n){if((t.f&8192)===0){t.f^=jn;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&e.push(l);for(var i=t.first;i!==null;){var o=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;ai(i,e,a?n:!1)}i=o}}}function pr(t){t.f&=-257,li(t,!0)}function li(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=jn,!(t.f&1024)&&(R(t,ot),Bt.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&65536)!==0||(n.f&32)!==0;li(n,i?e:!1),n=r}var o=t.nodes&&t.nodes.t;if(o!==null)for(const a of o)(a.is_global||e)&&a.in()}}function ui(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:yt(n);e.append(n),n=i}}var hs=null,He=!1,bt=!1;function wr(t){bt=t}var M=null,Q=!1;function J(t){M=t}var k=null;function dt(t){k=t}var et=null;function fi(t){M!==null&&(M.f&2097152||M.f&2)&&(et??(et=new Set)).add(t)}var F=null,U=0,X=null;function cs(t){X=t}var hi=1,jt=0,Dt=jt;function mr(t){Dt=t}function ci(){return++hi}function _e(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var o=n[i];if(_e(o)&&Br(o),o.wv>t.wv)return!0}e&512&&H===null&&R(t,G)}return!1}function di(t,e,n=!0){var r=t.reactions;if(r!==null&&!(!tn&&et!==null&&et.has(t)))for(var i=0;i<r.length;i++){var o=r[i];(o.f&2)!==0?di(o,e,!1):e===o&&(n?R(o,ot):o.f&1024&&R(o,Ht),Yr(o))}}function vi(t){var e=F,n=U,r=X,i=M,o=et,a=P,l=Q,h=Dt,u=t.f;F=null,U=0,X=null,M=(u&96)===0?t:null,et=null,Qt(t.ctx),Q=!1,Dt=++jt,t.ac!==null&&(en(()=>{t.ac.abort(ge)}),t.ac=null);try{t.f|=ur;var d=t.fn,v=d();t.f|=zn;var w=gr(t);if(ye()&&X!==null&&!Q&&w!==null&&(t.f&6146)===0)for(var p=0;p<X.length;p++)di(X[p],t);if(i!==null&&i!==t){if(jt++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=jt;if(e!==null)for(const m of e)m.rv=jt;X!==null&&(r===null?r=X:r.push(...X))}return t.f&8388608&&(t.f^=Ie),v}catch(m){return gr(t),es(m)}finally{t.f^=ur,F=e,U=n,X=r,M=i,et=o,Qt(a),Q=l,Dt=h}}function gr(t){var e=t.deps,n=x?.is_fork;if(F!==null){var r;if(n||we(t,U),e!==null&&U>0)for(e.length=U+F.length,r=0;r<F.length;r++)e[U+r]=F[r];else t.deps=e=F;if(In()&&(t.f&512)!==0)for(r=U;r<e.length;r++){var i;((i=e[r]).reactions??(i.reactions=[])).push(t)}}else!n&&e!==null&&U<e.length&&(we(t,U),e.length=U);return e}function ds(t,e){let n=e.reactions;if(n!==null){var r=io.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&2)!==0&&(F===null||!mn.call(F,e))){var o=e;o.f&512&&(o.f^=512),o.v!==z&&Cn(o),o.ac!==null&&en(()=>{o.ac.abort(ge),o.ac=null,R(o,ot)}),Io(o),we(o,0)}}function we(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)ds(t,n[r])}function ee(t){var e=t.f;if((e&16384)===0){R(t,G);var n=k,r=He;k=t,He=(e&96)===0;try{(e&16777232)!==0?us(t):Un(t),oi(t);var i=vi(t);t.teardown=typeof i=="function"?i:null,t.wv=hi}finally{He=r,k=n}}}function f(t){var e=(t.f&2)!==0;if(hs?.add(t),M!==null&&!Q&&!(k!==null&&(k.f&16384)!==0)&&(et===null||!et.has(t))){var n=M.deps;if((M.f&2097152)!==0)t.rv<jt&&(t.rv=jt,F===null&&n!==null&&n[U]===t?U++:F===null?F=[t]:F.push(t));else{var r;(r=M).deps??(r.deps=[]),mn.call(M.deps,t)||M.deps.push(t);var i=t.reactions;i===null?t.reactions=[M]:mn.call(i,M)||i.push(M)}}if(bt&&ht.has(t))return ht.get(t);if(e){var o=t;if(bt){var a=o.v;return(!(o.f&1024)&&o.reactions!==null||wi(o))&&(a=Nn(o)),ht.set(o,a),a}var l=(o.f&512)===0&&!Q&&M!==null&&(He||(M.f&512)!==0),h=(o.f&zn)===0;_e(o)&&(l&&(o.f|=512),Br(o)),l&&!h&&(Fr(o),pi(o))}if(H?.has(t))return H.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function pi(t){if(t.f|=512,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&2&&!(e.f&512)&&(Fr(e),pi(e))}function wi(t){if(t.v===z)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ht.has(e)||(e.f&2)!==0&&wi(e))return!0;return!1}function ne(t){var e=Q;try{return Q=!0,t()}finally{Q=e}}var Jt=Symbol("events"),mi=new Set,Wn=new Set;function oe(t,e,n){(e[Jt]??(e[Jt]={}))[t]=n}function vs(t){for(var e=0;e<t.length;e++)mi.add(t[e]);for(var n of Wn)n(t)}var un=null,fn=!1;function br(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;un=t,fn||(fn=!0,setTimeout(()=>{fn=!1,un=null}));var a=0,l=un===t&&t[Jt];if(l){var h=i.indexOf(l);if(h!==-1&&(e===document||e===window)){t[Jt]=e;return}var u=i.indexOf(e);if(u===-1)return;h<=u&&(a=h)}if(o=i[a]||t.target,o!==e){ce(t,"currentTarget",{configurable:!0,get(){return o||n}});var d=M,v=k;J(null),dt(null);try{for(var w,p=[];o!==null&&o!==e;){try{var m=o[Jt]?.[r];m!=null&&(!o.disabled||t.target===o)&&m.call(o,t)}catch(_){w?p.push(_):w=_}if(t.cancelBubble)break;a++,o=a<i.length?i[a]:null}if(w){for(let _ of p)queueMicrotask(()=>{throw _});throw w}}finally{t[Jt]=e,delete t.currentTarget,J(d),dt(v)}}}var ps=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ws(t){return ps?.createHTML(t)??t}function ms(t){var e=Bn("template");return e.innerHTML=ws(t.replaceAll("<!>","<!---->")),e.content}function Kt(t,e){var n=k;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function gs(t,e){var n=(e&1)!==0,r=(e&2)!==0,i,o=!t.startsWith("<!>");return()=>{if(T)return Kt(W,null),W;i===void 0&&(i=ms(o?t:"<!>"+t),n||(i=Nt(i)));var a=r||Zr?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Nt(a),h=a.lastChild;Kt(l,h)}else Kt(a,a);return a}}function bs(){if(T)return Kt(W,null),W;var t=document.createDocumentFragment(),e=document.createComment(""),n=mt();return t.append(e,n),Kt(e,n),t}function An(t,e){if(T){var n=k;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=W),Dn();return}t!==null&&t.before(e)}var ys=["touchstart","touchmove"];function $s(t){return ys.includes(t)}function ks(t){let e=0,n=$e(0),r;return()=>{In()&&(f(n),qn(()=>(e===0&&(r=ne(()=>t(()=>he(n)))),e+=1,()=>{Ct(()=>{e-=1,e===0&&(r?.(),r=void 0,he(n))})})))}}var _s=On|re;function xs(t,e,n,r){new Ms(t,e,n,r)}var nt=new WeakMap,En=new WeakMap,ft=new WeakMap,me=new WeakMap,V=new WeakMap,rt=new WeakMap,Y=new WeakMap,tt=new WeakMap,xt=new WeakMap,Vt=new WeakMap,Lt=new WeakMap,De=new WeakMap,Tn=new WeakMap,Pn=new WeakMap,Wt=new WeakMap,yr=new WeakMap,O=new WeakSet,Ms=class{constructor(t,e,n,r){Hn(this,O),E(this,"parent",void 0),E(this,"is_pending",!1),E(this,"transform_error",void 0),b(this,nt,void 0),b(this,En,T?W:null),b(this,ft,void 0),b(this,me,void 0),b(this,V,void 0),b(this,rt,null),b(this,Y,null),b(this,tt,null),b(this,xt,null),b(this,Vt,0),b(this,Lt,0),b(this,De,!1),b(this,Tn,new Set),b(this,Pn,new Set),b(this,Wt,null),b(this,yr,ks(()=>(g(Wt,this,$e(s(Vt,this))),()=>{g(Wt,this,null)}))),g(nt,this,t),g(ft,this,e),g(me,this,i=>{var o=k;o.b=this,o.f|=128,n(i)}),this.parent=k.b,this.transform_error=r??this.parent?.transform_error??(i=>i),g(V,this,ii(()=>{if(T){const i=s(En,this);Dn();const o=i.data==="[!";if(i.data.startsWith("[?")){const a=JSON.parse(i.data.slice(2));y(O,this,Ws).call(this,a)}else o?y(O,this,As).call(this):y(O,this,Ss).call(this)}else y(O,this,bi).call(this)},_s)),T&&g(nt,this,W)}defer_effect(t){Cr(t,s(Tn,this),s(Pn,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(ft,this).pending}update_pending_count(t,e){y(O,this,yi).call(this,t,e),g(Vt,this,s(Vt,this)+t),s(Wt,this)&&!s(De,this)&&(g(De,this,!0),Ct(()=>{g(De,this,!1),s(Wt,this)&&Je(s(Wt,this),s(Vt,this))}))}get_effect_pending(){return s(yr,this).call(this),f(s(Wt,this))}error(t){if(!s(ft,this).onerror&&!s(ft,this).failed)throw t;x?.is_fork?(s(rt,this)&&x.skip_effect(s(rt,this)),s(Y,this)&&x.skip_effect(s(Y,this)),s(tt,this)&&x.skip_effect(s(tt,this)),x.oncommit(()=>{y(O,this,$r).call(this,t)})):y(O,this,$r).call(this,t)}};function Ss(){try{g(rt,this,gt(()=>s(me,this).call(this,s(nt,this))))}catch(t){this.error(t)}}function Ws(t){const e=s(ft,this).failed,{reset:n,invoke_onerror:r}=y(O,this,gi).call(this,t);Ct(r),e&&g(tt,this,gt(()=>{e(s(nt,this),()=>t,()=>n)}))}function gi(t){var e=!1,n=!1;const r=()=>{if(e){$o();return}e=!0,n&&Do(),s(tt,this)!==null&&ke(s(tt,this),()=>{g(tt,this,null)}),y(O,this,Vn).call(this,()=>{y(O,this,bi).call(this)})};return{reset:r,invoke_onerror:()=>{try{n=!0,s(ft,this).onerror?.(t,r),n=!1}catch(i){ct(i,s(V,this)&&s(V,this).parent)}}}}function As(){const t=s(ft,this).pending;t&&(this.is_pending=!0,g(Y,this,gt(()=>t(s(nt,this)))),Ct(()=>{var e=g(xt,this,document.createDocumentFragment()),n=mt(),r=!1;if(e.append(n),g(rt,this,y(O,this,Vn).call(this,()=>{try{return gt(()=>s(me,this).call(this,n))}catch(i){try{this.error(i),r=!0}catch(o){ct(o,s(V,this).parent)}return null}})),s(rt,this)===null){g(xt,this,null),r&&y(O,this,Ke).call(this,x);return}s(Lt,this)===0&&(s(nt,this).before(e),g(xt,this,null),ke(s(Y,this),()=>{g(Y,this,null)}),y(O,this,Ke).call(this,x))}))}function bi(){try{if(this.is_pending=this.has_pending_snippet(),g(Lt,this,0),g(Vt,this,0),g(rt,this,gt(()=>{s(me,this).call(this,s(nt,this))})),s(Lt,this)>0){var t=g(xt,this,document.createDocumentFragment());ui(s(rt,this),t);const e=s(ft,this).pending;g(Y,this,gt(()=>e(s(nt,this))))}else y(O,this,Ke).call(this,x)}catch(e){this.error(e)}}function Ke(t){this.is_pending=!1,t.transfer_effects(s(Tn,this),s(Pn,this))}function Vn(t){var e=k,n=M,r=P;dt(s(V,this)),J(s(V,this)),Qt(s(V,this).ctx);try{return Bt.ensure(),t()}finally{dt(e),J(n),Qt(r)}}function yi(t,e){if(!this.has_pending_snippet()){if(this.parent){var n;y(O,n=this.parent,yi).call(n,t,e)}return}g(Lt,this,s(Lt,this)+t),s(Lt,this)===0&&(y(O,this,Ke).call(this,e),s(Y,this)&&ke(s(Y,this),()=>{g(Y,this,null)}),s(xt,this)&&(s(nt,this).before(s(xt,this)),g(xt,this,null)))}function $r(t){s(rt,this)&&(I(s(rt,this)),g(rt,this,null)),s(Y,this)&&(I(s(Y,this)),g(Y,this,null)),s(tt,this)&&(I(s(tt,this)),g(tt,this,null)),T&&(it(s(En,this)),ko(),it(Rr()));let e=s(ft,this).failed;const n=r=>{const{reset:i,invoke_onerror:o}=y(O,this,gi).call(this,r);o(),e&&g(tt,this,y(O,this,Vn).call(this,()=>{try{return gt(()=>{var a=k;a.b=this,a.f|=128,e(s(nt,this),()=>r,()=>i)})}catch(a){return ct(a,s(V,this).parent),null}}))};Ct(()=>{var r;try{r=this.transform_error(t)}catch(i){ct(i,s(V,this)&&s(V,this).parent);return}r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(n,i=>ct(i,s(V,this)&&s(V,this).parent)):n(r)})}function Es(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[Ne]??(t[Ne]=t.nodeValue))&&(t[Ne]=n,t.nodeValue=`${n}`)}function $i(t,e){return ki(t,e)}function Ts(t,e){Sn(),e.intro=e.intro??!1;const n=e.target,r=T,i=W;try{for(var o=Nt(n);o&&(o.nodeType!==8||o.data!=="[");)o=yt(o);if(!o)throw Zt;Xt(!0),it(o);const a=ki(t,{...e,anchor:o});return Xt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Zt&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Po(),Sn(),Qo(n),Xt(!1),$i(t,e)}finally{Xt(r),it(i)}}var Le=new Map;function ki(t,{target:e,anchor:n,props:r={},events:i,context:o,intro:a=!0,transformError:l}){Sn();var h=void 0,u=ss(()=>{var d=n??e.appendChild(mt());xs(d,{pending:()=>{}},p=>{Or({});var m=P;if(o&&(m.c=o),i&&(r.$$events=i),T&&Kt(p,null),h=t(p,r)||Ln(),T&&(k.nodes.end=W,W===null||W.nodeType!==8||W.data!=="]"))throw Qe(),Zt;Dr()},l);var v=new Set,w=p=>{for(var m=0;m<p.length;m++){var _=p[m];if(!v.has(_)){v.add(_);var A=$s(_);for(const K of[e,document]){var D=Le.get(K);D===void 0&&(D=new Map,Le.set(K,D));var B=D.get(_);B===void 0?(K.addEventListener(_,br,{passive:A}),D.set(_,1)):D.set(_,B+1)}}}};return w(oo(mi)),Wn.add(w),()=>{for(var p of v)for(const A of[e,document]){var m=Le.get(A),_=m.get(p);--_==0?(A.removeEventListener(p,br),m.delete(p),m.size===0&&Le.delete(A)):m.set(p,_)}Wn.delete(w),d!==n&&d.parentNode?.removeChild(d)}});return Rn.set(h,u),h}var Rn=new WeakMap;function Ps(t,e){const n=Rn.get(t);return n?(Rn.delete(t),n(e)):Promise.resolve()}var pt=new WeakMap,$t=new WeakMap,Z=new WeakMap,se=new WeakMap,hn=new WeakMap,cn=new WeakMap,kr=new WeakMap,Rs=class{constructor(t,e=!0){E(this,"anchor",void 0),b(this,pt,new Map),b(this,$t,new Map),b(this,Z,new Map),b(this,se,new Set),b(this,hn,!0),b(this,cn,n=>{if(s(pt,this).has(n)){var r=s(pt,this).get(n),i=s($t,this).get(r);if(i)pr(i),s(se,this).delete(r);else{var o=s(Z,this).get(r);o&&(pr(o.effect),s($t,this).set(r,o.effect),s(Z,this).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),i=o.effect)}for(const[a,l]of s(pt,this)){if(s(pt,this).delete(a),a===n)break;const h=s(Z,this).get(l);h&&(I(h.effect),s(Z,this).delete(l))}for(const[a,l]of s($t,this)){if(a===r||s(se,this).has(a))continue;const h=()=>{if(Array.from(s(pt,this).values()).includes(a)){var u=document.createDocumentFragment();ui(l,u),u.append(mt()),s(Z,this).set(a,{effect:l,fragment:u})}else I(l);s(se,this).delete(a),s($t,this).delete(a)};s(hn,this)||!i?(s(se,this).add(a),ke(l,h,!1)):h()}}}),b(this,kr,n=>{s(pt,this).delete(n);const r=Array.from(s(pt,this).values());for(const[i,o]of s(Z,this))r.includes(i)||(I(o.effect),s(Z,this).delete(i))}),this.anchor=t,g(hn,this,e)}ensure(t,e){var n=x,r=ts();if(e&&!s($t,this).has(t)&&!s(Z,this).has(t))if(r){var i=document.createDocumentFragment(),o=mt();i.append(o),s(Z,this).set(t,{effect:gt(()=>e(o)),fragment:i})}else s($t,this).set(t,gt(()=>e(this.anchor)));if(s(pt,this).set(n,t),r){for(const[a,l]of s($t,this))a===t?n.unskip_effect(l):n.skip_effect(l);for(const[a,l]of s(Z,this))a===t?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(s(cn,this)),n.ondiscard(s(kr,this))}else T&&(this.anchor=W),s(cn,this).call(this,n)}};function js(t){P===null&&Mo("onMount"),be&&P.l!==null?zs(P).m.push(t):Tt(()=>{const e=ne(t);if(typeof e=="function")return e})}function zs(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}function Os(t,e,n=!1){var r;T&&(r=W,Dn());var i=new Rs(t),o=n?On:0;function a(l,h){if(T){var u=_o(r);if(l!==parseInt(u.substring(1))){var d=Rr();it(d),i.anchor=d,Xt(!1),i.ensure(l,h),Xt(!0);return}}i.ensure(l,h)}ii(()=>{var l=!1;e((h,u=0)=>{l=!0,a(u,h)}),l||a(-1,null)},o)}function Ds(t,e){ri(()=>{t=k?.parent?.nodes?.start??t;var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=Bn("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function _r(t,e=!1){var n=e?" !important;":";",r="";for(var i of Object.keys(t)){var o=t[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function dn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ls(t,e){if(e){var n="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,t){t=String(t).replaceAll(/\/\*.*?\*\//g,"").trim();var o=!1,a=0,l=!1,h=[];r&&h.push(...Object.keys(r).map(dn)),i&&h.push(...Object.keys(i).map(dn));var u=0,d=-1;const _=t.length;for(var v=0;v<_;v++){var w=t[v];if(l?w==="/"&&t[v-1]==="*"&&(l=!1):o?o===w&&(o=!1):w==="/"&&t[v+1]==="*"?l=!0:w==='"'||w==="'"?o=w:w==="("?a++:w===")"&&a--,!l&&o===!1&&a===0){if(w===":"&&d===-1)d=v;else if(w===";"||v===_-1){if(d!==-1){var p=dn(t.substring(u,d).trim());if(!h.includes(p)){w!==";"&&v++;var m=t.substring(u,v).trim();n+=" "+m+";"}}u=v+1,d=-1}}}}return r&&(n+=_r(r)),i&&(n+=_r(i,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function vn(t,e={},n,r){for(var i in n){var o=n[i];e[i]!==o&&(n[i]==null?t.style.removeProperty(i):t.style.setProperty(i,o,r))}}function Cs(t,e,n,r){var i=t[bn];if(T||i!==e){var o=Ls(e,r);(!T||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t[bn]=e}else r&&(Array.isArray(r)?(vn(t,n?.[0],r[0]),vn(t,n?.[1],r[1],"important")):vn(t,n,r));return r}var Ns=Symbol("is custom element"),Hs=Symbol("is html"),Bs=bo?"link":"LINK";function st(t,e,n,r){var i=Fs(t);T&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Bs)||i[e]!==(i[e]=n)&&(e==="loading"&&(t[mo]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Is(t).has(e)?t[e]=n:t.setAttribute(e,n))}function Fs(t){return t[gn]??(t[gn]={[Ns]:t.nodeName.includes("-"),[Hs]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var xr=new Map;function Is(t){var e=t.getAttribute("is")||t.nodeName,n=xr.get(e);if(n)return n;xr.set(e,n=new Set);for(var r,i=t,o=Element.prototype;o!==i;){r=so(i);for(var a in r)r[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&n.add(a);i=Wr(i)}return n}var _i,Yt=new WeakMap,Ze=new WeakMap,pn=new WeakMap,Mr=new WeakSet,xi=class{constructor(t){Hn(this,Mr),b(this,Yt,new WeakMap),b(this,Ze,void 0),b(this,pn,void 0),g(pn,this,t)}observe(t,e){var n=s(Yt,this).get(t)||new Set;return n.add(e),s(Yt,this).set(t,n),y(Mr,this,qs).call(this).observe(t,s(pn,this)),()=>{var r=s(Yt,this).get(t);r.delete(e),r.size===0&&(s(Yt,this).delete(t),s(Ze,this).unobserve(t))}}};_i=xi;function qs(){return s(Ze,this)??g(Ze,this,new ResizeObserver(t=>{for(var e of t){_i.entries.set(e.target,e);for(var n of s(Yt,this).get(e.target)||[])n(e)}}))}E(xi,"entries",new WeakMap);function wn(t,e){return t===e||t?.[ue]===e}function Us(t=Ln(),e,n,r){var i=P.r,o=k;return ri(()=>{var a,l;return qn(()=>{a=l,l=r?.()||[],ne(()=>{wn(n(...l),t)||(e(t,...l),a&&wn(n(...a),t)&&e(null,...a))})}),()=>{let h=o;for(;h!==i&&h.parent!==null&&h.parent.f&33554432;)h=h.parent;const u=()=>{l&&wn(n(...l),t)&&e(null,...l)},d=h.teardown;h.teardown=()=>{u(),d?.()}}}),t}var Ce=!1;function Vs(t){var e=Ce;try{return Ce=!1,[t(),Ce]}finally{Ce=e}}function Sr(t,e,n,r){var i=!be||(n&2)!==0,o=(n&8)!==0,a=(n&16)!==0,l=r,h=!0,u=void 0,d=()=>a&&i?(u??(u=ve(r)),f(u)):(h&&(h=!1,l=a?ne(r):r),l);let v;if(o){var w=ue in t||Tr in t;v=zt(t,e)?.set??(w&&e in t?L=>t[e]=L:void 0)}var p,m=!1;o?[p,m]=Vs(()=>t[e]):p=t[e],p===void 0&&r!==void 0&&(p=d(),v&&(i&&Ro(e),v(p)));var _;if(i?_=()=>{var L=t[e];return L===void 0?d():(h=!0,L)}:_=()=>{var L=t[e];return L!==void 0&&(l=void 0),L===void 0?l:L},i&&(n&4)===0)return _;if(v){var A=t.$$legacy;return(function(L,Ft){return arguments.length>0?((!i||!Ft||A||m)&&v(Ft?_():L),L):_()})}var D=!1,B=((n&1)!==0?ve:Hr)(()=>(D=!1,_()));o&&f(B);var K=k;return(function(L,Ft){if(arguments.length>0){const xe=Ft?f(B):i&&o?_t(L):L;return S(B,xe),D=!0,l!==void 0&&(l=xe),L}return bt&&D||(K.f&16384)!==0?B.v:f(B)})}function Ys(t){return new Xs(t)}var At=new WeakMap,at=new WeakMap,Xs=class{constructor(t){b(this,At,void 0),b(this,at,void 0);var e=new Map,n=(i,o)=>{var a=Jo(o,!1,!1);return e.set(i,a),a};const r=new Proxy({...t.props||{},$$events:{}},{get(i,o){return f(e.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Tr?!0:(f(e.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return S(e.get(o)??n(o,a),a),Reflect.set(i,o,a)}});g(at,this,(t.hydrate?Ts:$i)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&xn(),g(At,this,r.$$events);for(const i of Object.keys(s(at,this)))i==="$set"||i==="$destroy"||i==="$on"||ce(this,i,{get(){return s(at,this)[i]},set(o){s(at,this)[i]=o},enumerable:!0});s(at,this).$set=i=>{Object.assign(r,i)},s(at,this).$destroy=()=>{Ps(s(at,this))}}$set(t){s(at,this).$set(t)}$on(t,e){s(At,this)[t]=s(At,this)[t]||[];const n=(...r)=>e.call(this,...r);return s(At,this)[t].push(n),()=>{s(At,this)[t]=s(At,this)[t].filter(r=>r!==n)}}$destroy(){s(at,this).$destroy()}},Mi;typeof HTMLElement=="function"&&(Mi=class extends HTMLElement{constructor(t,e,n){super(),E(this,"$$ctor",void 0),E(this,"$$s",void 0),E(this,"$$c",void 0),E(this,"$$cn",!1),E(this,"$$d",{}),E(this,"$$r",!1),E(this,"$$p_d",{}),E(this,"$$l",{}),E(this,"$$l_u",new Map),E(this,"$$me",void 0),E(this,"$$shadowRoot",null),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const o=Bn("slot");r!=="default"&&(o.name=r),An(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Gs(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Be(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ys({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=os(()=>{qn(()=>{this.$$r=!0;for(const r of Fe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Be(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const o=this.$$c.$on(r,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Be(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Fe(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Be(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Gs(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Js(t,e,n,r,i,o){let a=class extends Mi{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Fe(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Fe(e).forEach(l=>{ce(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(h){h=Be(l,h,e),this.$$d[l]=h;var u=this.$$c;u&&(zt(u,l)?.get?u[l]=h:u.$set({[l]:h}))}})}),r.forEach(l=>{ce(a.prototype,l,{get(){return this.$$c?.[l]}})}),o&&(a=o(a)),t.element=a,a}var Ks=gs('<div class="pie-sr-only svelte-a1a4bp" role="status" aria-live="polite" aria-atomic="true"> </div> <div class="pie-tool-line-reader svelte-a1a4bp" role="group" tabindex="0"><div class="pie-tool-line-reader__frame svelte-a1a4bp" aria-hidden="true"></div> <div class="pie-tool-line-reader__outline svelte-a1a4bp" aria-hidden="true"></div> <button type="button" class="pie-tool-line-reader__button pie-tool-line-reader__close svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M1 1 L11 11 M11 1 L1 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--pane svelte-a1a4bp"><svg width="14" height="8" viewBox="0 0 14 8" aria-hidden="true" focusable="false"><path d="M1 2.5 H13 M1 5.5 H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--frame svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M11 4 L4 11 M11 8 L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button></div>',1),Zs={hash:"svelte-a1a4bp",code:`.pie-sr-only.svelte-a1a4bp {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-a1a4bp {border:none;border-radius:4px;
|
|
1
|
+
import{t as Ji}from"./attribute-coercion-b93b482c.js";import{a as Ki,r as Zi}from"./tool-host-contract-fae1c415.js";import{n as Qi,r as to,s as eo}from"./overlay-containment-edaaff13.js";import{t as ro}from"./pointer-gesture-ce75f0a7.js";import{i as no}from"./provider-4c704118.js";import{t as io}from"./ToolCoordinator-0a6c4088.js";if(typeof window<"u"){var sn,an;((sn=(an=window).__svelte??(an.__svelte={})).v??(sn.v=new Set)).add("5")}var Mt={},C=Symbol("uninitialized"),oo=Array.isArray,so=Array.prototype.indexOf,qe=Array.prototype.includes,ao=Array.from,Ie=Object.keys,ve=Object.defineProperty,Ct=Object.getOwnPropertyDescriptor,lo=Object.getOwnPropertyDescriptors,uo=Object.prototype,fo=Array.prototype,Wn=Object.getPrototypeOf,ln=Object.isExtensible,ho=()=>{};function co(t){for(var e=0;e<t.length;e++)t[e]()}function An(){var t,e;return{promise:new Promise((r,n)=>{t=r,e=n}),resolve:t,reject:e}}function pe(t){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(t)}function vo(t,e){if(pe(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(pe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function po(t){var e=vo(t,"string");return pe(e)=="symbol"?e:e+""}function T(t,e,r){return(e=po(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G=1024,ot=2048,Bt=4096,jr=8192,En=16384,zr=32768,br=1<<25,Cr=65536,oe=1<<19,wo=1<<20,un=1<<21,mo=1<<22,Ye=1<<23,he=Symbol("$state"),Tn=Symbol("component"),Pn=Symbol("legacy props"),go=Symbol(""),yr=Symbol("attributes"),bo=Symbol("class"),$r=Symbol("style"),Fe=Symbol("text"),ye=new class extends Error{constructor(...t){super(...t),T(this,"name","StaleReactionError"),T(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},yo=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function $o(){console.warn("https://svelte.dev/e/derived_inert")}function rr(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ko(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var P=!1;function Jt(t){P=t}var W;function it(t){if(t===null)throw rr(),Mt;return W=t}function Or(){return it(yt(W))}function Rn(t){if(P){if(yt(W)!==null)throw rr(),Mt;W=t}}function _o(t=1){if(P){for(var e=t,r=W;e--;)r=yt(r);W=r}}function jn(t=!0){for(var e=0,r=W;;){if(r.nodeType===8){var n=r.data;if(n==="]"){if(e===0)return r;e-=1}else(n==="["||n==="[!"||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(e+=1)}var i=yt(r);t&&r.remove(),r=i}}function zn(t){if(!t||t.nodeType!==8)throw rr(),Mt;return t.data}function Cn(t){return t===this.v}function xo(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function On(t){return!xo(t,this.v)}function Mo(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function So(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wo(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ao(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Eo(t){throw new Error("https://svelte.dev/e/effect_orphan")}function To(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Po(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ro(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function jo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Co(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Oo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var nr=!1,$e=!1,R=null;function ee(t){R=t}function Dn(t,e=!1,r){R={p:R,i:!1,c:null,e:null,s:t,x:null,r:k,l:$e&&!e?{s:null,u:null,$:[]}:null}}function Ln(t){var e=R,r=e.e;if(r!==null){e.e=null;for(var n of r)ii(n)}return t!==void 0&&(e.x=t),e.i=!0,R=e.p,Dr(t)}function Dr(t={}){return ve(t,Tn,{value:!0}),t}function ke(){return!$e||R!==null&&R.l===null}var jt=[];function Nn(){var t=jt;jt=[],co(t)}function Ht(t){if(jt.length===0&&!ce){var e=jt;queueMicrotask(()=>{e===jt&&Nn()})}jt.push(t)}function Do(){for(;jt.length>0;)Nn()}var Lo=~(ot|Bt|G);function j(t,e){t.f=t.f&Lo|e}function Lr(t){(t.f&512)!==0||t.deps===null?j(t,G):j(t,Bt)}function Hn(t,e,r){(t.f&2048)!==0?e.add(t):t.f&4096&&r.add(t),j(t,G)}function ir(t){var e=x,r=k;J(null),dt(null);try{return t()}finally{J(e),dt(r)}}function No(t,e,r,n){const i=ke()?we:Bn;var o=t.filter(p=>!p.settled),a=e.map(i);if(r.length===0&&o.length===0){n(a);return}var l=k,h=Ho(),u=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(p=>p.promise)):null;function d(p){if((l.f&16384)===0){h();try{n([...a,...p])}catch(m){ct(m,l)}Ue()}}var v=Fn();if(r.length===0){u.then(()=>d([])).finally(v);return}function w(){Promise.all(r.map(p=>Fo(p))).then(d).catch(p=>ct(p,l)).finally(v)}u?u.then(()=>{if((l.f&16384)!==0){v();return}h(),w(),Ue()}):w()}function Ho(){var t=k,e=x,r=R,n=M;return function(i=!0){dt(t),J(e),ee(r),i&&!(t.f&16384)&&(n?.activate(),n?.apply())}}function Ue(t=!0){dt(null),J(null),ee(null),t&&M?.deactivate()}function Fn(){var t=k,e=t.b,r=M,n=!!e?.is_rendered();return e?.update_pending_count(1,r),r.increment(n,t),()=>{e?.update_pending_count(-1,r),r.decrement(n,t)}}function we(t){var e=2|ot;return k!==null&&(k.f|=oe),{ctx:R,deps:null,effects:null,equals:Cn,f:e,fn:t,reactions:null,rv:0,v:C,wv:0,parent:k,ac:null}}var ue=Symbol("obsolete");function Fo(t,e,r){let n=k;n===null&&So();var i=void 0,o=_e(C),a=!x,l=new Set;return as(()=>{var h=k,u=An();i=u.promise;try{Promise.resolve(t()).then(u.resolve,p=>{p!==ye&&u.reject(p)}).finally(Ue)}catch(p){u.reject(p),Ue()}var d=M;if(a){if((h.f&32768)!==0)var v=Fn();if(n.b?.is_rendered())d.async_deriveds.get(h)?.reject(ue);else for(const p of l.values())p.reject(ue);l.add(u),d.async_deriveds.set(h,u)}const w=(p,m=void 0)=>{v?.(),l.delete(u),m!==ue&&(d.activate(),m?(o.f|=Ye,Qe(o,m)):(o.f&8388608&&(o.f^=Ye),Qe(o,p)),d.deactivate())};u.promise.then(w,p=>w(null,p||"unknown"))}),is(()=>{for(const h of l)h.reject(ue)}),new Promise(h=>{function u(d){function v(){d===i?h(o):u(i)}d.then(v,v)}u(i)})}function lr(t){const e=we(t);return ci(e),e}function Bn(t){const e=we(t);return e.equals=On,e}function Bo(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)I(e[r])}}function Nr(t){var e,r=k,n=t.parent;if(!bt&&n!==null&&t.v!==C&&(n.f&24576)!==0)return $o(),t.v;dt(n);try{Bo(t),e=wi(t)}finally{dt(r)}return e}function qn(t){var e=Nr(t);if(!t.equals(e)&&(t.wv=vi(),(!M?.is_fork||t.deps===null)&&(M!==null?(M.capture(t,e,!0),Qt?.capture(t,e,!0)):t.v=e,t.deps===null))){j(t,G);return}bt||(H!==null?(qr()||M?.is_fork)&&H.set(t,e):Lr(t))}function qo(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&ir(()=>{e.ac.abort(ye),e.ac=null}),e.fn!==null&&(e.teardown=ho),ge(e,0),Yr(e))}function In(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&ne(e)}function Yn(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Hr(t,e){Yn(t,e),e.add(t)}function y(t,e,r){Yn(t,e),e.set(t,r)}function b(t,e,r){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function g(t,e,r){return t.set(b(t,e),r),r}function s(t,e){return t.get(b(t,e))}var Un,kr=null,Ut=null,M=null,Qt=null,H=null,_r=null,ce=!1,ur=!1,me=null,Ve=null,Vn=0,Io=1,xr=new WeakMap,Ot=new WeakMap,Kt=new WeakMap,Xe=new WeakMap,ze=new WeakMap,Vt=new WeakMap,Tt=new WeakMap,fe=new WeakMap,ut=new WeakMap,fn=new WeakMap,re=new WeakMap,wt=new WeakMap,kt=new WeakMap,fr=new WeakMap,Ce=new WeakMap,z=new WeakSet,qt=class Xn{constructor(){Hr(this,z),T(this,"id",Io++),y(this,xr,!1),T(this,"linked",!0),y(this,Ot,null),y(this,Kt,null),T(this,"async_deriveds",new Map),T(this,"current",new Map),T(this,"previous",new Map),y(this,Xe,new Set),y(this,ze,new Set),y(this,Vt,0),y(this,Tt,new Map),y(this,fe,null),y(this,ut,[]),y(this,fn,[]),y(this,re,new Set),y(this,wt,new Set),y(this,kt,new Map),y(this,fr,new Set),T(this,"is_fork",!1),y(this,Ce,!1),Ut===null?kr=Ut=this:(g(Kt,Ut,this),g(Ot,this,Ut)),Ut=this}skip_effect(e){s(kt,this).has(e)||s(kt,this).set(e,{d:[],m:[]}),s(fr,this).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=s(kt,this).get(e);if(n){s(kt,this).delete(e);for(var i of n.d)j(i,ot),r(i);for(i of n.m)j(i,Bt),r(i)}s(fr,this).add(e)}capture(e,r,n=!1){e.v!==C&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[r,n]),H?.set(e,r)),this.is_fork||(e.v=r)}activate(){M=this}deactivate(){M=null,H=null}flush(){try{ur=!0,M=this,b(z,this,Ge).call(this)}finally{Vn=0,_r=null,me=null,Ve=null,ur=!1,M=null,H=null,ht.clear()}}discard(){for(const e of s(ze,this))e(this);s(ze,this).clear();for(const e of this.async_deriveds.values())e.reject(ue);b(z,this,Je).call(this),s(fe,this)?.resolve()}register_created_effect(e){s(fn,this).push(e)}increment(e,r){if(g(Vt,this,s(Vt,this)+1),e){let n=s(Tt,this).get(r)??0;s(Tt,this).set(r,n+1)}}decrement(e,r){if(g(Vt,this,s(Vt,this)-1),e){let n=s(Tt,this).get(r)??0;n===1?s(Tt,this).delete(r):s(Tt,this).set(r,n-1)}s(Ce,this)||(g(Ce,this,!0),Ht(()=>{g(Ce,this,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)s(re,this).add(n);for(const n of r)s(wt,this).add(n);e.clear(),r.clear()}oncommit(e){s(Xe,this).add(e)}ondiscard(e){s(ze,this).add(e)}settled(){return(s(fe,this)??g(fe,this,An())).promise}static ensure(){if(M===null){const e=M=new Xn;!ur&&!ce&&Ht(()=>{s(xr,e)||e.flush()})}return M}apply(){if(!nr||!this.is_fork&&s(Ot,this)===null&&s(Kt,this)===null){H=null;return}H=new Map;for(const[r,[n]]of this.current)H.set(r,n);for(let r=kr;r!==null;r=s(Kt,r))if(!(r===this||r.is_fork)){var e=!1;if(r.id<this.id){for(const[n,[,i]]of r.current)if(!i&&this.current.has(n)){e=!0;break}}if(!e)for(const[n,i]of r.previous)H.has(n)||H.set(n,i)}}schedule(e){if(_r=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}s(ut,this).push(e)}};Un=qt;function hn(){if(this.is_fork)return!0;for(const r of s(Tt,this).keys()){for(var t=r,e=!1;t.parent!==null;){if(s(kt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function Yo(){var t=[];for(const i of s(ut,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,r=!1;e.parent!==null;){e=e.parent;var n=e.f;if((n&96)!==0){if((n&1024)===0){r=!0;break}e.f^=G}}r||t.push(e)}return g(ut,this,[]),t}function Ge(){g(xr,this,!0);for(const a of s(re,this))s(wt,this).delete(a),j(a,ot),this.schedule(a);for(const a of s(wt,this))j(a,Bt),this.schedule(a);this.apply();for(var t=me=[],e=[],r=Ve=[];s(ut,this).length>0;){Vn++>1e3&&(b(z,this,Je).call(this),Go());for(const a of b(z,this,Yo).call(this))try{b(z,this,Uo).call(this,a,t,e)}catch(l){throw Kn(a),b(z,this,hn).call(this)||this.discard(),l}}if(M=null,r.length>0){var n=Un.ensure();for(const a of r)n.schedule(a)}if(me=null,Ve=null,b(z,this,hn).call(this)){b(z,this,Oe).call(this,e),b(z,this,Oe).call(this,t);for(const[a,l]of s(kt,this))Jn(a,l);r.length>0&&b(z,M,Ge).call(M);return}const i=b(z,this,Vo).call(this);if(i){b(z,this,Oe).call(this,e),b(z,this,Oe).call(this,t),b(z,i,Xo).call(i,this);return}s(re,this).clear(),s(wt,this).clear();for(const a of s(Xe,this))a(this);s(Xe,this).clear(),Qt=this,cn(e),cn(t),Qt=null,s(fe,this)?.resolve();var o=M;if(s(Vt,this)===0&&(s(ut,this).length===0||o!==null)&&b(z,this,Je).call(this),s(ut,this).length>0)if(o!==null){for(const a of s(ut,this))s(ut,o).push(a);g(ut,this,[])}else o=this;o!==null&&(ht.clear(),b(z,o,Ge).call(o))}function Uo(t,e,r){t.f^=G;for(var n=t.first;n!==null;){var i=n.f,o=(i&96)!==0;if(!(o&&(i&1024)!==0||(i&8192)!==0||s(kt,this).has(n))&&n.fn!==null){o?n.f^=G:(i&4)!==0?e.push(n):nr&&(i&16777224)!==0?r.push(n):Me(n)&&(i&16&&s(wt,this).add(n),ne(n));var a=n.first;if(a!==null){n=a;continue}}for(;n!==null;){var l=n.next;if(l!==null){n=l;break}n=n.parent}}}function Vo(){for(var t=s(Ot,this);t!==null;){if(!t.is_fork){for(const[e,[,r]]of this.current)if(t.current.has(e)&&!r)return t}t=s(Ot,t)}return null}function Xo(t){for(const[r,n]of t.current)!this.previous.has(r)&&t.previous.has(r)&&this.previous.set(r,t.previous.get(r)),this.current.set(r,n);for(const[r,n]of t.async_deriveds){const i=this.async_deriveds.get(r);i&&n.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(s(re,t),s(wt,t));const e=r=>{var n=r.reactions;if(n!==null&&!((r.f&2)!==0&&(r.f&6144)===0))for(const a of n){var i=a.f;if((i&2)!==0)e(a);else{var o=a;i&4194320&&!this.async_deriveds.has(o)&&(s(wt,this).delete(o),j(o,ot),this.schedule(o))}}};for(const r of this.current.keys())e(r);this.oncommit(()=>t.discard()),b(z,t,Je).call(t),M=this,b(z,this,Ge).call(this)}function Oe(t){for(var e=0;e<t.length;e+=1)Hn(t[e],s(re,this),s(wt,this))}function Je(){if(this.linked){var t=s(Ot,this),e=s(Kt,this);t===null?kr=e:g(Kt,t,e),e===null?Ut=t:g(Ot,e,t),this.linked=!1}}function Ke(t){var e=ce,r=Qt;Qt=null,ce=!0;try{var n;for(t&&(Ke(),n=t());;){if(Do(),M===null)return n;M.flush()}}finally{ce=e,Qt=r}}function Go(){try{To()}catch(t){ct(t,_r)}}var lt=null;function cn(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&24576)===0&&Me(n)&&(lt=new Set,ne(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&li(n),lt?.size>0)){ht.clear();for(const i of lt){if((i.f&24576)!==0)continue;const o=[i];let a=i.parent;for(;a!==null;)lt.has(a)&&(lt.delete(a),o.push(a)),a=a.parent;for(let l=o.length-1;l>=0;l--){const h=o[l];!(h.f&24576)&&ne(h)}}lt.clear()}}lt=null}}function Gn(t){M.schedule(t)}function Jn(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),j(t,G);for(var r=t.first;r!==null;)Jn(r,e),r=r.next}}function Kn(t){j(t,G);for(var e=t.first;e!==null;)Kn(e),e=e.next}var Ze=new Set,ht=new Map,Zn=!1;function _e(t,e){return{f:0,v:t,reactions:null,equals:Cn,rv:0,wv:0}}function L(t,e){const r=_e(t,e);return ci(r),r}function Jo(t,e=!1,r=!0){const n=_e(t);if(e||(n.equals=On),$e&&r&&R!==null&&R.l!==null){var i;((i=R.l).s??(i.s=[])).push(n)}return n}function S(t,e,r=!1){return x!==null&&(!Q||x.f&131072)&&ke()&&x.f&4325394&&(et===null||!et.has(t))&&Co(),Qe(t,r?_t(e):e,Ve)}var Rt=null,Mr=0;function Qe(t,e,r=null){if(!t.equals(e)){bt?ht.set(t,e):ht.has(t)||ht.set(t,t.v);var n=qt.ensure();if(n.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Nr(i),H===null&&Lr(i)}t.wv=vi(),Rt=null,Mr=0,Qn(t,ot,r),Rt=null,ke()&&k!==null&&k.f&1024&&!(k.f&96)&&(X===null?cs([t]):X.push(t)),!n.is_fork&&Ze.size>0&&!Zn&&Ko()}return e}function Ko(){Zn=!1;for(const t of Ze){t.f&1024&&j(t,Bt);let e;try{e=Me(t)}catch{e=!0}e&&ne(t)}Ze.clear()}function de(t){S(t,t.v+1)}function Qn(t,e,r){var n=t.reactions;if(n!==null){var i=ke(),o=n.length;if(Mr+=o,Mr>1e5&&Rt===null&&(Rt=new Set),Rt!==null){if(Rt.has(t))return;Rt.add(t)}for(var a=0;a<o;a++){var l=n[a],h=l.f;if(!(!i&&l===k)){var u=(h&ot)===0;if(u&&j(l,e),(h&131072)!==0)Ze.add(l);else if((h&2)!==0){var d=l;H?.delete(d),Qn(d,Bt,r)}else if(u){var v=l;h&16&<!==null&<.add(v),r!==null?r.push(v):Gn(v)}}}}}function _t(t){if(typeof t!="object"||t===null||he in t||Tn in t)return t;const e=Wn(t);if(e!==uo&&e!==fo)return t;var r=new Map,n=oo(t),i=L(0),o=null,a=Dt,l=h=>{if(Dt===a)return h();var u=x,d=Dt;J(null),mn(a);var v=h();return J(u),mn(d),v};return n&&r.set("length",L(t.length,o)),new Proxy(t,{defineProperty(h,u,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&jo();var v=r.get(u);return v===void 0?l(()=>{var w=L(d.value,o);return r.set(u,w),w}):S(v,d.value,!0),!0},deleteProperty(h,u){var d=r.get(u);if(d===void 0){if(u in h){const v=l(()=>L(C,o));r.set(u,v),de(i)}}else S(d,C),de(i);return!0},get(h,u,d){if(u===he)return t;var v=r.get(u),w=u in h;if(v===void 0&&(!w||Ct(h,u)?.writable)&&(v=l(()=>L(_t(w?h[u]:C),o)),r.set(u,v)),v!==void 0){var p=f(v);return p===C?void 0:p}return Reflect.get(h,u,d)},getOwnPropertyDescriptor(h,u){this.has?.(h,u);var d=Reflect.getOwnPropertyDescriptor(h,u),v=r.get(u);if(v!==void 0){var w=f(v);if(w===C)return;if(d&&"value"in d)d.value=w;else return{enumerable:!0,configurable:!0,value:w,writable:!0}}return d},has(h,u){if(u===he)return!0;var d=r.get(u),v=d!==void 0&&d.v!==C||Reflect.has(h,u);return(d!==void 0||k!==null&&(!v||Ct(h,u)?.writable))&&(d===void 0&&(d=l(()=>L(v?_t(h[u]):C,o)),r.set(u,d)),f(d)===C)?!1:v},set(h,u,d,v){var w=r.get(u),p=u in h;if(n&&u==="length")for(var m=d;m<w.v;m+=1){var _=r.get(m+"");_!==void 0?S(_,C):m in h&&(_=l(()=>L(C,o)),r.set(m+"",_))}if(w===void 0)(!p||Ct(h,u)?.writable)&&(w=l(()=>L(void 0,o)),S(w,_t(d)),r.set(u,w));else{p=w.v!==C;var A=l(()=>_t(d));S(w,A)}var O=Reflect.getOwnPropertyDescriptor(h,u);if(O?.set&&O.set.call(v,d),!p){if(n&&typeof u=="string"){var F=r.get("length"),K=Number(u);Number.isInteger(K)&&K>=F.v&&S(F,K+1)}de(i)}return!0},ownKeys(h){f(i);var u=Reflect.ownKeys(h).filter(w=>{var p=r.get(w);return p===void 0||p.v!==C});for(var[d,v]of r)v.v!==C&&!(d in h)&&u.push(d);return u},setPrototypeOf(){zo()}})}var dn,ti,ei,ri;function Sr(){if(dn===void 0){dn=window,ti=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;ei=Ct(e,"firstChild").get,ri=Ct(e,"nextSibling").get,ln(t)&&(t[bo]=void 0,t[yr]=null,t[$r]=void 0,t.__e=void 0),ln(r)&&(r[Fe]=void 0)}}function mt(t=""){return document.createTextNode(t)}function Ft(t){return ei.call(t)}function yt(t){return ri.call(t)}function ni(t,e){if(!P)return Ft(t);var r=Ft(W);if(r===null)r=W.appendChild(mt());else if(e&&r.nodeType!==3){var n=mt();return r?.before(n),it(n),n}return e&&Br(r),it(r),r}function vn(t,e=!1){if(!P){var r=Ft(t);return r instanceof Comment&&r.data===""?yt(r):r}if(e){if(W?.nodeType!==3){var n=mt();return W?.before(n),it(n),n}Br(W)}return W}function Zo(t,e=!1){if(!P)return Ft(t);var r=ni(t,e);return Rn(t),r}function De(t,e=1,r=!1){let n=P?W:t;for(var i;e--;)i=n,n=yt(n);if(!P)return n;if(r){if(n?.nodeType!==3){var o=mt();return n===null?i?.after(o):n.before(o),it(o),o}Br(n)}return it(n),n}function Qo(t){t.textContent=""}function ts(){return!nr||lt!==null?!1:(k.f&zr)!==0}function Fr(t,e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?r?document.createElement(t,{is:r}):document.createElement(t):r?document.createElementNS(e,t,{is:r}):document.createElementNS(e,t)}function Br(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function es(t){var e=k;if(e===null)return x.f|=Ye,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;ct(t,e)}function ct(t,e){if(t===Mt)throw t;if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}}function rs(t){k===null&&(x===null&&Eo(t),Ao()),bt&&Wo(t)}function ns(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function vt(t,e){var r=k;r!==null&&r.f&8192&&(t|=jr);var n={ctx:R,deps:null,nodes:null,f:t|ot|512,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};M?.register_created_effect(n);var i=n;if((t&4)!==0)me!==null?me.push(n):qt.ensure().schedule(n);else if(e!==null){try{ne(n)}catch(a){throw I(n),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=Cr))}if(i!==null&&(i.parent=r,r!==null&&ns(i,r),x!==null&&(x.f&2)!==0&&(t&64)===0)){var o=x;(o.effects??(o.effects=[])).push(i)}return n}function qr(){return x!==null&&!Q}function is(t){const e=vt(8,null);return j(e,G),e.teardown=t,e}function Pt(t){rs("$effect");var e=k.f;if(!x&&(e&32)!==0&&R!==null&&!R.i){var r=R;(r.e??(r.e=[])).push(t)}else return ii(t)}function ii(t){return vt(4|wo,t)}function os(t){qt.ensure();const e=vt(64|oe,t);return()=>{I(e)}}function ss(t){qt.ensure();const e=vt(64|oe,t);return(r={})=>new Promise(n=>{r.outro?xe(e,()=>{I(e),n(void 0)}):(I(e),n(void 0))})}function oi(t){return vt(4,t)}function as(t){return vt(mo|oe,t)}function Ir(t,e=0){return vt(8|e,t)}function ls(t,e=[],r=[],n=[]){No(n,e,r,i=>{vt(8,()=>{t(...i.map(f))})})}function si(t,e=0){return vt(16|e,t)}function gt(t){return vt(32|oe,t)}function ai(t){var e=t.teardown;if(e!==null){const r=bt,n=x;wn(!0),J(null);try{e.call(null)}catch(i){ct(i,t.parent)}finally{wn(r),J(n)}}}function Yr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&ir(()=>{i.abort(ye)});var n=r.next;(r.f&64)!==0?r.parent=null:I(r,e),r=n}}function us(t){for(var e=t.first;e!==null;){var r=e.next;!(e.f&32)&&I(e),e=r}}function I(t,e=!0){var r=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(fs(t.nodes.start,t.nodes.end),r=!0),t.f|=br,Yr(t,e&&!r),ge(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const o of n)o.stop();ai(t),t.f^=br,t.f|=En;var i=t.parent;i!==null&&i.first!==null&&li(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function fs(t,e){for(;t!==null;){var r=t===e?null:yt(t);t.remove(),t=r}}function li(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function xe(t,e,r=!0){var n=[];t.f|=256,ui(t,n,!0);var i=()=>{r&&I(t),e&&e()},o=n.length;if(o>0){var a=()=>--o||i();for(var l of n)l.out(a)}else i()}function ui(t,e,r){if((t.f&8192)===0){t.f^=jr;var n=t.nodes&&t.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&e.push(l);for(var i=t.first;i!==null;){var o=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;ui(i,e,a?r:!1)}i=o}}}function pn(t){t.f&=-257,fi(t,!0)}function fi(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=jr,!(t.f&1024)&&(j(t,ot),qt.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;fi(r,i?e:!1),r=n}var o=t.nodes&&t.nodes.t;if(o!==null)for(const a of o)(a.is_global||e)&&a.in()}}function hi(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:yt(r);e.append(r),r=i}}var hs=null,bt=!1;function wn(t){bt=t}var x=null,Q=!1;function J(t){x=t}var k=null;function dt(t){k=t}var et=null;function ci(t){x!==null&&(x.f&2097152||x.f&2)&&(et??(et=new Set)).add(t)}var B=null,U=0,X=null;function cs(t){X=t}var di=1,zt=0,Dt=zt;function mn(t){Dt=t}function vi(){return++di}function Me(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var r=t.deps,n=r.length,i=0;i<n;i++){var o=r[i];if(Me(o)&&qn(o),o.wv>t.wv)return!0}e&512&&H===null&&j(t,G)}return!1}function pi(t,e,r=!0){var n=t.reactions;if(n!==null&&!(!nr&&et!==null&&et.has(t)))for(var i=0;i<n.length;i++){var o=n[i];(o.f&2)!==0?pi(o,e,!1):e===o&&(r?j(o,ot):o.f&1024&&j(o,Bt),Gn(o))}}function wi(t){var e=B,r=U,n=X,i=x,o=et,a=R,l=Q,h=Dt,u=t.f;B=null,U=0,X=null,x=(u&96)===0?t:null,et=null,ee(t.ctx),Q=!1,Dt=++zt,t.ac!==null&&(ir(()=>{t.ac.abort(ye)}),t.ac=null);try{t.f|=un;var d=t.fn,v=d();t.f|=zr;var w=gn(t);if(ke()&&X!==null&&!Q&&w!==null&&(t.f&6146)===0)for(var p=0;p<X.length;p++)pi(X[p],t);if(i!==null&&i!==t){if(zt++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=zt;if(e!==null)for(const m of e)m.rv=zt;X!==null&&(n===null?n=X:n.push(...X))}return t.f&8388608&&(t.f^=Ye),v}catch(m){return gn(t),es(m)}finally{t.f^=un,B=e,U=r,X=n,x=i,et=o,ee(a),Q=l,Dt=h}}function gn(t){var e=t.deps,r=M?.is_fork;if(B!==null){var n;if(r||ge(t,U),e!==null&&U>0)for(e.length=U+B.length,n=0;n<B.length;n++)e[U+n]=B[n];else t.deps=e=B;if(qr()&&(t.f&512)!==0)for(n=U;n<e.length;n++){var i;((i=e[n]).reactions??(i.reactions=[])).push(t)}}else!r&&e!==null&&U<e.length&&(ge(t,U),e.length=U);return e}function ds(t,e){let r=e.reactions;if(r!==null){var n=so.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(e.f&2)!==0&&(B===null||!qe.call(B,e))){var o=e;o.f&512&&(o.f^=512),o.v!==C&&Lr(o),o.ac!==null&&ir(()=>{o.ac.abort(ye),o.ac=null,j(o,ot)}),qo(o),ge(o,0)}}function ge(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)ds(t,r[n])}function ne(t){var e=t.f;if((e&16384)===0){j(t,G);var r=k;k=t;try{(e&16777232)!==0?us(t):Yr(t),ai(t);var n=wi(t);t.teardown=typeof n=="function"?n:null,t.wv=di}finally{k=r}}}function f(t){var e=(t.f&2)!==0;if(hs?.add(t),x!==null&&!Q&&!(k!==null&&(k.f&16384)!==0)&&(et===null||!et.has(t))){var r=x.deps;if((x.f&2097152)!==0)t.rv<zt&&(t.rv=zt,B===null&&r!==null&&r[U]===t?U++:B===null?B=[t]:B.push(t));else{var n;(n=x).deps??(n.deps=[]),qe.call(x.deps,t)||x.deps.push(t);var i=t.reactions;i===null?t.reactions=[x]:qe.call(i,x)||i.push(x)}}if(bt&&ht.has(t))return ht.get(t);if(e){var o=t;if(bt){var a=o.v;return(!(o.f&1024)&&o.reactions!==null||gi(o))&&(a=Nr(o)),ht.set(o,a),a}var l=(o.f&512)===0&&!Q&&x!==null&&(x.f&512)!==0,h=(o.f&zr)===0;Me(o)&&(l&&(o.f|=512),qn(o)),l&&!h&&(In(o),mi(o))}if(H?.has(t))return H.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function mi(t){if(t.f|=512,t.deps!==null)for(const r of t.deps){var e=r.reactions;e===null?r.reactions=[t]:qe.call(e,t)||e.push(t),r.f&2&&!(r.f&512)&&(In(r),mi(r))}}function gi(t){if(t.v===C)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ht.has(e)||(e.f&2)!==0&&gi(e))return!0;return!1}function ie(t){var e=Q;try{return Q=!0,t()}finally{Q=e}}var Zt=Symbol("events"),bi=new Set,Wr=new Set;function ae(t,e,r){(e[Zt]??(e[Zt]={}))[t]=r}function vs(t){for(var e=0;e<t.length;e++)bi.add(t[e]);for(var r of Wr)r(t)}var hr=null,cr=!1;function bn(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;hr=t,cr||(cr=!0,setTimeout(()=>{cr=!1,hr=null}));var a=0,l=hr===t&&t[Zt];if(l){var h=i.indexOf(l);if(h!==-1&&(e===document||e===window)){t[Zt]=e;return}var u=i.indexOf(e);if(u===-1)return;h<=u&&(a=h)}if(o=i[a]||t.target,o!==e){ve(t,"currentTarget",{configurable:!0,get(){return o||r}});var d=x,v=k;J(null),dt(null);try{for(var w,p=[];o!==null&&o!==e;){try{var m=o[Zt]?.[n];m!=null&&(!o.disabled||t.target===o)&&m.call(o,t)}catch(_){w?p.push(_):w=_}if(t.cancelBubble)break;a++,o=a<i.length?i[a]:null}if(w){for(let _ of p)queueMicrotask(()=>{throw _});throw w}}finally{t[Zt]=e,delete t.currentTarget,J(d),dt(v)}}}var ps=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ws(t){return ps?.createHTML(t)??t}function ms(t){var e=Fr("template");return e.innerHTML=ws(t.replaceAll("<!>","<!---->")),e.content}function te(t,e){var r=k;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function gs(t,e){var r=(e&1)!==0,n=(e&2)!==0,i,o=!t.startsWith("<!>");return()=>{if(P)return te(W,null),W;i===void 0&&(i=ms(o?t:"<!>"+t),r||(i=Ft(i)));var a=n||ti?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Ft(a),h=a.lastChild;te(l,h)}else te(a,a);return a}}function bs(){if(P)return te(W,null),W;var t=document.createDocumentFragment(),e=document.createComment(""),r=mt();return t.append(e,r),te(e,r),t}function Ar(t,e){if(P){var r=k;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=W),Or();return}t!==null&&t.before(e)}var ys=["touchstart","touchmove"];function $s(t){return ys.includes(t)}function ks(t){let e=0,r=_e(0),n;return()=>{qr()&&(f(r),Ir(()=>(e===0&&(n=ie(()=>t(()=>de(r)))),e+=1,()=>{Ht(()=>{e-=1,e===0&&(n?.(),n=void 0,de(r))})})))}}var _s=Cr|oe;function xs(t,e,r,n){new Ms(t,e,r,n)}var rt=new WeakMap,Er=new WeakMap,ft=new WeakMap,be=new WeakMap,q=new WeakMap,nt=new WeakMap,V=new WeakMap,tt=new WeakMap,xt=new WeakMap,Xt=new WeakMap,Lt=new WeakMap,Le=new WeakMap,Tr=new WeakMap,Pr=new WeakMap,At=new WeakMap,yn=new WeakMap,E=new WeakSet,Ms=class{constructor(t,e,r,n){Hr(this,E),T(this,"parent",void 0),T(this,"is_pending",!1),T(this,"transform_error",void 0),y(this,rt,void 0),y(this,Er,P?W:null),y(this,ft,void 0),y(this,be,void 0),y(this,q,void 0),y(this,nt,null),y(this,V,null),y(this,tt,null),y(this,xt,null),y(this,Xt,0),y(this,Lt,0),y(this,Le,!1),y(this,Tr,new Set),y(this,Pr,new Set),y(this,At,null),y(this,yn,ks(()=>(g(At,this,_e(s(Xt,this))),()=>{g(At,this,null)}))),g(rt,this,t),g(ft,this,e),g(be,this,i=>{var o=k;o.b=this,o.f|=128,r(i)}),this.parent=k.b,this.transform_error=n??this.parent?.transform_error??(i=>i),g(q,this,si(()=>{if(P){const i=zn(s(Er,this));Or();const o=i==="[!";if(i.startsWith("[?")){const a=JSON.parse(i.slice(2));b(E,this,Ws).call(this,a)}else o?b(E,this,As).call(this):b(E,this,Ss).call(this)}else b(E,this,$i).call(this)},_s)),P&&g(rt,this,W)}defer_effect(t){Hn(t,s(Tr,this),s(Pr,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(ft,this).pending}update_pending_count(t,e){b(E,this,ki).call(this,t,e),g(Xt,this,s(Xt,this)+t),s(At,this)&&!s(Le,this)&&(g(Le,this,!0),Ht(()=>{g(Le,this,!1),s(At,this)&&Qe(s(At,this),s(Xt,this))}))}get_effect_pending(){return s(yn,this).call(this),f(s(At,this))}error(t){if(t===Mt||!s(ft,this).onerror&&!s(ft,this).failed)throw t;M?.is_fork?(s(nt,this)&&M.skip_effect(s(nt,this)),s(V,this)&&M.skip_effect(s(V,this)),s(tt,this)&&M.skip_effect(s(tt,this)),M.oncommit(()=>{b(E,this,Nt).call(this)||b(E,this,$n).call(this,t)})):b(E,this,$n).call(this,t)}};function Ss(){try{g(nt,this,gt(()=>s(be,this).call(this,s(rt,this))))}catch(t){this.error(t)}}function Ws(t){const e=s(ft,this).failed,{reset:r,invoke_onerror:n}=b(E,this,yi).call(this,t);Ht(n),e&&g(tt,this,gt(()=>{e(s(rt,this),()=>t,()=>r)}))}function yi(t){var e=!1,r=!1;const n=()=>{if(!b(E,this,Nt).call(this)){if(e){ko();return}e=!0,r&&Oo(),s(tt,this)!==null&&xe(s(tt,this),()=>{g(tt,this,null)}),b(E,this,Ur).call(this,()=>{b(E,this,$i).call(this)})}};return{reset:n,invoke_onerror:()=>{if(!b(E,this,Nt).call(this))try{r=!0,s(ft,this).onerror?.(t,n),r=!1}catch(i){ct(i,s(q,this)&&s(q,this).parent)}}}}function Nt(){return(s(q,this).f&(En|br))!==0}function As(){const t=s(ft,this).pending;t&&(this.is_pending=!0,g(V,this,gt(()=>t(s(rt,this)))),Ht(()=>{if(!b(E,this,Nt).call(this)){var e=g(xt,this,document.createDocumentFragment()),r=mt(),n=!1;if(e.append(r),g(nt,this,b(E,this,Ur).call(this,()=>{try{return gt(()=>s(be,this).call(this,r))}catch(i){try{this.error(i),n=!0}catch(o){ct(o,s(q,this).parent)}return null}})),s(nt,this)===null){g(xt,this,null),n&&b(E,this,tr).call(this,M);return}s(Lt,this)===0&&(s(rt,this).before(e),g(xt,this,null),xe(s(V,this),()=>{g(V,this,null)}),b(E,this,tr).call(this,M))}}))}function $i(){try{if(this.is_pending=this.has_pending_snippet(),g(Lt,this,0),g(Xt,this,0),g(nt,this,gt(()=>{s(be,this).call(this,s(rt,this))})),s(Lt,this)>0){var t=g(xt,this,document.createDocumentFragment());hi(s(nt,this),t);const e=s(ft,this).pending;g(V,this,gt(()=>e(s(rt,this))))}else b(E,this,tr).call(this,M)}catch(e){this.error(e)}}function tr(t){this.is_pending=!1,t.transfer_effects(s(Tr,this),s(Pr,this))}function Ur(t){var e=k,r=x,n=R;dt(s(q,this)),J(s(q,this)),ee(s(q,this).ctx);try{return qt.ensure(),t()}finally{dt(e),J(r),ee(n)}}function ki(t,e){if(!this.has_pending_snippet()){if(this.parent){var r;b(E,r=this.parent,ki).call(r,t,e)}return}g(Lt,this,s(Lt,this)+t),s(Lt,this)===0&&(b(E,this,tr).call(this,e),s(V,this)&&xe(s(V,this),()=>{g(V,this,null)}),s(xt,this)&&(s(rt,this).before(s(xt,this)),g(xt,this,null)))}function $n(t){s(nt,this)&&(I(s(nt,this)),g(nt,this,null)),s(V,this)&&(I(s(V,this)),g(V,this,null)),s(tt,this)&&(I(s(tt,this)),g(tt,this,null)),P&&(it(s(Er,this)),_o(),it(jn()));let e=s(ft,this).failed;const r=n=>{if(b(E,this,Nt).call(this))return;const{reset:i,invoke_onerror:o}=b(E,this,yi).call(this,n);o(),e&&!b(E,this,Nt).call(this)&&g(tt,this,b(E,this,Ur).call(this,()=>{try{return gt(()=>{var a=k;a.b=this,a.f|=128,e(s(rt,this),()=>n,()=>i)})}catch(a){return ct(a,s(q,this).parent),null}}))};Ht(()=>{if(!b(E,this,Nt).call(this)){var n;try{n=this.transform_error(t)}catch(i){ct(i,s(q,this)&&s(q,this).parent);return}n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(r,i=>ct(i,s(q,this)&&s(q,this).parent)):r(n)}})}function Es(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Fe]??(t[Fe]=t.nodeValue))&&(t[Fe]=r,t.nodeValue=`${r}`)}function _i(t,e){return xi(t,e)}function Ts(t,e){Sr(),e.intro=e.intro??!1;const r=e.target,n=P,i=W;try{for(var o=Ft(r);o&&(o.nodeType!==8||o.data!=="[");)o=yt(o);if(!o)throw Mt;Jt(!0),it(o);const a=xi(t,{...e,anchor:o});return Jt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Mt&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Po(),Sr(),Qo(r),Jt(!1),_i(t,e)}finally{Jt(n),it(i)}}var Ne=new Map;function xi(t,{target:e,anchor:r,props:n={},events:i,context:o,intro:a=!0,transformError:l}){Sr();var h=void 0,u=ss(()=>{var d=r??e.appendChild(mt());xs(d,{pending:()=>{}},p=>{Dn({});var m=R;if(o&&(m.c=o),i&&(n.$$events=i),P&&te(p,null),h=t(p,n)||Dr(),P&&(k.nodes.end=W,W===null||W.nodeType!==8||W.data!=="]"))throw rr(),Mt;Ln()},l);var v=new Set,w=p=>{for(var m=0;m<p.length;m++){var _=p[m];if(!v.has(_)){v.add(_);var A=$s(_);for(const K of[e,document]){var O=Ne.get(K);O===void 0&&(O=new Map,Ne.set(K,O));var F=O.get(_);F===void 0?(K.addEventListener(_,bn,{passive:A}),O.set(_,1)):O.set(_,F+1)}}}};return w(ao(bi)),Wr.add(w),()=>{for(var p of v)for(const A of[e,document]){var m=Ne.get(A),_=m.get(p);--_==0?(A.removeEventListener(p,bn),m.delete(p),m.size===0&&Ne.delete(A)):m.set(p,_)}Wr.delete(w),d!==r&&d.parentNode?.removeChild(d)}});return Rr.set(h,u),h}var Rr=new WeakMap;function Ps(t,e){const r=Rr.get(t);return r?(Rr.delete(t),r(e)):Promise.resolve()}var pt=new WeakMap,$t=new WeakMap,Z=new WeakMap,le=new WeakMap,dr=new WeakMap,vr=new WeakMap,kn=new WeakMap,Rs=class{constructor(t,e=!0){T(this,"anchor",void 0),y(this,pt,new Map),y(this,$t,new Map),y(this,Z,new Map),y(this,le,new Set),y(this,dr,!0),y(this,vr,r=>{if(s(pt,this).has(r)){var n=s(pt,this).get(r),i=s($t,this).get(n);if(i)pn(i),s(le,this).delete(n);else{var o=s(Z,this).get(n);o&&(pn(o.effect),s($t,this).set(n,o.effect),s(Z,this).delete(n),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),i=o.effect)}for(const[a,l]of s(pt,this)){if(s(pt,this).delete(a),a===r)break;const h=s(Z,this).get(l);h&&(I(h.effect),s(Z,this).delete(l))}for(const[a,l]of s($t,this)){if(a===n||s(le,this).has(a))continue;const h=()=>{if(Array.from(s(pt,this).values()).includes(a)){var u=document.createDocumentFragment();hi(l,u),u.append(mt()),s(Z,this).set(a,{effect:l,fragment:u})}else I(l);s(le,this).delete(a),s($t,this).delete(a)};s(dr,this)||!i?(s(le,this).add(a),xe(l,h,!1)):h()}}}),y(this,kn,r=>{s(pt,this).delete(r);const n=Array.from(s(pt,this).values());for(const[i,o]of s(Z,this))n.includes(i)||(I(o.effect),s(Z,this).delete(i))}),this.anchor=t,g(dr,this,e)}ensure(t,e){var r=M,n=ts();if(e&&!s($t,this).has(t)&&!s(Z,this).has(t))if(n){var i=document.createDocumentFragment(),o=mt();i.append(o),s(Z,this).set(t,{effect:gt(()=>e(o)),fragment:i})}else s($t,this).set(t,gt(()=>e(this.anchor)));if(s(pt,this).set(r,t),n){for(const[a,l]of s($t,this))a===t?r.unskip_effect(l):r.skip_effect(l);for(const[a,l]of s(Z,this))a===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(s(vr,this)),r.ondiscard(s(kn,this))}else P&&(this.anchor=W),s(vr,this).call(this,r)}};function js(t){R===null&&Mo("onMount"),$e&&R.l!==null?zs(R).m.push(t):Pt(()=>{const e=ie(t);if(typeof e=="function")return e})}function zs(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}function Cs(t,e,r=!1){var n;P&&(n=W,Or());var i=new Rs(t),o=r?Cr:0;function a(l,h){if(P){var u=zn(n);if(l!==parseInt(u.substring(1))){var d=jn();it(d),i.anchor=d,Jt(!1),i.ensure(l,h),Jt(!0);return}}i.ensure(l,h)}si(()=>{var l=!1;e((h,u=0)=>{l=!0,a(u,h)}),l||a(-1,null)},o)}function Os(t,e){oi(()=>{t=k?.parent?.nodes?.start??t;var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=Fr("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}function _n(t,e=!1){var r=e?" !important;":";",n="";for(var i of Object.keys(t)){var o=t[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function pr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ds(t,e){if(e){var r="",n,i;if(Array.isArray(e)?(n=e[0],i=e[1]):n=e,t){t=String(t).replaceAll(/\/\*.*?\*\//g,"").trim();var o=!1,a=0,l=!1,h=[];n&&h.push(...Object.keys(n).map(pr)),i&&h.push(...Object.keys(i).map(pr));var u=0,d=-1;const _=t.length;for(var v=0;v<_;v++){var w=t[v];if(l?w==="/"&&t[v-1]==="*"&&(l=!1):o?o===w&&(o=!1):w==="/"&&t[v+1]==="*"?l=!0:w==='"'||w==="'"?o=w:w==="("?a++:w===")"&&a--,!l&&o===!1&&a===0){if(w===":"&&d===-1)d=v;else if(w===";"||v===_-1){if(d!==-1){var p=pr(t.substring(u,d).trim());if(!h.includes(p)){w!==";"&&v++;var m=t.substring(u,v).trim();r+=" "+m+";"}}u=v+1,d=-1}}}}return n&&(r+=_n(n)),i&&(r+=_n(i,!0)),r=r.trim(),r===""?null:r}return t==null?null:String(t)}function wr(t,e={},r,n){for(var i in r){var o=r[i];e[i]!==o&&(r[i]==null?t.style.removeProperty(i):t.style.setProperty(i,o,n))}}function Ls(t,e,r,n){var i=t[$r];if(P||i!==e){var o=Ds(e,n);(!P||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t[$r]=e}else n&&(Array.isArray(n)?(wr(t,r?.[0],n[0]),wr(t,r?.[1],n[1],"important")):wr(t,r,n));return n}var Ns=Symbol("is custom element"),Hs=Symbol("is html"),Fs=yo?"link":"LINK";function st(t,e,r,n){var i=Bs(t);P&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Fs)||i[e]!==(i[e]=r)&&(e==="loading"&&(t[go]=r),r==null?t.removeAttribute(e):typeof r!="string"&&qs(t).has(e)?t[e]=r:t.setAttribute(e,r))}function Bs(t){return t[yr]??(t[yr]={[Ns]:t.nodeName.includes("-"),[Hs]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var xn=new Map;function qs(t){var e=t.getAttribute("is")||t.nodeName,r=xn.get(e);if(r)return r;xn.set(e,r=new Set);for(var n,i=t,o=Element.prototype;o!==i;){n=lo(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=Wn(i)}return r}var Mi,Gt=new WeakMap,er=new WeakMap,mr=new WeakMap,Mn=new WeakSet,Si=class{constructor(t){Hr(this,Mn),y(this,Gt,new WeakMap),y(this,er,void 0),y(this,mr,void 0),g(mr,this,t)}observe(t,e){var r=s(Gt,this).get(t)||new Set;return r.add(e),s(Gt,this).set(t,r),b(Mn,this,Is).call(this).observe(t,s(mr,this)),()=>{var n=s(Gt,this).get(t);n.delete(e),n.size===0&&(s(Gt,this).delete(t),s(er,this).unobserve(t))}}};Mi=Si;function Is(){return s(er,this)??g(er,this,new ResizeObserver(t=>{for(var e of t){Mi.entries.set(e.target,e);for(var r of s(Gt,this).get(e.target)||[])r(e)}}))}T(Si,"entries",new WeakMap);function gr(t,e){return t===e||t?.[he]===e}function Ys(t=Dr(),e,r,n){var i=R.r,o=k;return oi(()=>{var a,l;return Ir(()=>{a=l,l=n?.()||[],ie(()=>{gr(r(...l),t)||(e(t,...l),a&&gr(r(...a),t)&&e(null,...a))})}),()=>{let h=o;for(;h!==i&&h.parent!==null&&h.parent.f&33554432;)h=h.parent;const u=()=>{l&&gr(r(...l),t)&&e(null,...l)},d=h.teardown;h.teardown=()=>{u(),d?.()}}}),t}var He=!1;function Us(t){var e=He;try{return He=!1,[t(),He]}finally{He=e}}function Sn(t,e,r,n){var i=!$e||(r&2)!==0,o=(r&8)!==0,a=(r&16)!==0,l=n,h=!0,u=void 0,d=()=>a&&i?(u??(u=we(n)),f(u)):(h&&(h=!1,l=a?ie(n):n),l);let v;if(o){var w=he in t||Pn in t;v=Ct(t,e)?.set??(w&&e in t?D=>t[e]=D:void 0)}var p,m=!1;o?[p,m]=Us(()=>t[e]):p=t[e],p===void 0&&n!==void 0&&(p=d(),v&&(i&&Ro(e),v(p)));var _;if(i?_=()=>{var D=t[e];return D===void 0?d():(h=!0,D)}:_=()=>{var D=t[e];return D!==void 0&&(l=void 0),D===void 0?l:D},i&&(r&4)===0)return _;if(v){var A=t.$$legacy;return(function(D,It){return arguments.length>0?((!i||!It||A||m)&&v(It?_():D),D):_()})}var O=!1,F=((r&1)!==0?we:Bn)(()=>(O=!1,_()));o&&f(F);var K=k;return(function(D,It){if(arguments.length>0){const Se=It?f(F):i&&o?_t(D):D;return S(F,Se),O=!0,l!==void 0&&(l=Se),D}return bt&&O||(K.f&16384)!==0?F.v:f(F)})}function Vs(t){return new Xs(t)}var Et=new WeakMap,at=new WeakMap,Xs=class{constructor(t){y(this,Et,void 0),y(this,at,void 0);var e=new Map,r=(i,o)=>{var a=Jo(o,!1,!1);return e.set(i,a),a};const n=new Proxy({...t.props||{},$$events:{}},{get(i,o){return f(e.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===Pn?!0:(f(e.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return S(e.get(o)??r(o,a),a),Reflect.set(i,o,a)}});g(at,this,(t.hydrate?Ts:_i)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&Ke(),g(Et,this,n.$$events);for(const i of Object.keys(s(at,this)))i==="$set"||i==="$destroy"||i==="$on"||ve(this,i,{get(){return s(at,this)[i]},set(o){s(at,this)[i]=o},enumerable:!0});s(at,this).$set=i=>{Object.assign(n,i)},s(at,this).$destroy=()=>{Ps(s(at,this))}}$set(t){s(at,this).$set(t)}$on(t,e){s(Et,this)[t]=s(Et,this)[t]||[];const r=(...n)=>e.call(this,...n);return s(Et,this)[t].push(r),()=>{s(Et,this)[t]=s(Et,this)[t].filter(n=>n!==r)}}$destroy(){s(at,this).$destroy()}},Wi;typeof HTMLElement=="function"&&(Wi=class extends HTMLElement{constructor(t,e,r){super(),T(this,"$$ctor",void 0),T(this,"$$s",void 0),T(this,"$$c",void 0),T(this,"$$cn",!1),T(this,"$$d",{}),T(this,"$$r",!1),T(this,"$$p_d",{}),T(this,"$$l",{}),T(this,"$$l_u",new Map),T(this,"$$me",void 0),T(this,"$$shadowRoot",null),this.$$ctor=t,this.$$s=e,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return i=>{const o=Fr("slot");n!=="default"&&(o.name=n),Ar(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Gs(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Be(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Vs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=os(()=>{Ir(()=>{this.$$r=!0;for(const n of Ie(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Be(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const o=this.$$c.$on(n,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Be(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ie(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Be(t,e,r,n){const i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Gs(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Js(t,e,r,n,i,o){let a=class extends Wi{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Ie(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Ie(e).forEach(l=>{ve(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(h){h=Be(l,h,e),this.$$d[l]=h;var u=this.$$c;u&&(Ct(u,l)?.get?u[l]=h:u.$set({[l]:h}))}})}),n.forEach(l=>{ve(a.prototype,l,{get(){return this.$$c?.[l]}})}),o&&(a=o(a)),t.element=a,a}var Ks=gs('<div class="pie-sr-only svelte-a1a4bp" role="status" aria-live="polite" aria-atomic="true"> </div> <div class="pie-tool-line-reader svelte-a1a4bp" role="group" tabindex="0"><div class="pie-tool-line-reader__frame svelte-a1a4bp" aria-hidden="true"></div> <div class="pie-tool-line-reader__outline svelte-a1a4bp" aria-hidden="true"></div> <button type="button" class="pie-tool-line-reader__button pie-tool-line-reader__close svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M1 1 L11 11 M11 1 L1 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--pane svelte-a1a4bp"><svg width="14" height="8" viewBox="0 0 14 8" aria-hidden="true" focusable="false"><path d="M1 2.5 H13 M1 5.5 H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button> <button type="button" class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--frame svelte-a1a4bp"><svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M11 4 L4 11 M11 8 L8 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button></div>',1),Zs={hash:"svelte-a1a4bp",code:`.pie-sr-only.svelte-a1a4bp {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-a1a4bp {border:none;border-radius:4px;
|
|
3
3
|
/*
|
|
4
4
|
* Ink-derived rather than fixed black: on a dark scheme this reads as a soft
|
|
5
5
|
* halo separating the window from the page instead of vanishing into it.
|
|
@@ -59,4 +59,4 @@ import{t as Xi}from"./attribute-coercion-b93b482c.js";import{a as Gi,r as Ji}fro
|
|
|
59
59
|
|
|
60
60
|
/* Resizes the reading window: vertical only, centred on the bottom band. */.pie-tool-line-reader__resize-handle--pane.svelte-a1a4bp {bottom:4px;left:50%;margin-left:-12px;cursor:ns-resize;}
|
|
61
61
|
|
|
62
|
-
/* Resizes the frame bands and the overall width, so it reads as a corner grip. */.pie-tool-line-reader__resize-handle--frame.svelte-a1a4bp {bottom:4px;right:4px;cursor:nwse-resize;}.pie-tool-line-reader.svelte-a1a4bp:active {cursor:grabbing;}`};function Qs(t,e){
|
|
62
|
+
/* Resizes the frame bands and the overall width, so it reads as a corner grip. */.pie-tool-line-reader__resize-handle--frame.svelte-a1a4bp {bottom:4px;right:4px;cursor:nwse-resize;}.pie-tool-line-reader.svelte-a1a4bp:active {cursor:grabbing;}`};function Qs(t,e){Dn(e,!0),Os(t,Zs);let r=Sn(e,"visible",7,!1),n=Sn(e,"toolId",7,"lineReader");const i=typeof window<"u";let o=L(void 0),a=L(null);const l=lr(()=>f(a)?.toolCoordinator);let h=L(null),u=L(_t({x:0,y:0})),d=!1;const v=eo({getPosition:()=>f(u),setPosition:c=>{S(u,Wt(c),!0)},onDragStart:c=>f(l)?.bringToFront(c)});let w=L(600),p=L(24),m=L(48),_=L(_t({paneHeight:0,frameBandHeight:0,width:0,mouseX:0,mouseY:0}));const A=lr(()=>no(f(a)));let O=L("");const F=Ki("Line Reader",io.TOOL),K=12,D=200,It=32,Se=240,Vr=200,Xr=2e3,Gr=4,We=10,or=10,Ai=20,Jr=lr(()=>f(p)+f(m)*2);Pt(()=>{if(f(o))return Zi(f(o),c=>{S(a,c,!0)})});let Yt=null;function St(c){Yt!==null&&clearTimeout(Yt),S(O,c,!0),Yt=setTimeout(()=>{S(O,""),Yt=null},1e3)}function Kr(c){return Math.max(K,Math.min(D,c))}function Zr(c){return Math.max(It,Math.min(Se,c))}function Ae(c){const $=tn()?.width,Y=$===void 0?Xr:Math.min(Xr,$-Gr*2);return Math.max(Vr,Math.min(Math.max(Vr,Y),c))}function Qr(){return to(f(o))}function tn(){const c=Qr();return c&&{width:c.width,height:c.height}}function Ei(){const c=Qr();if(!c)return;const $=Math.max(c.left,0),Y=Math.max(c.top,0),Pe=Math.min(c.right,window.innerWidth),N=Math.min(c.bottom,window.innerHeight);return Pe<=$||N<=Y?{x:c.width/2,y:c.height/2}:{x:($+Pe)/2-c.left,y:(Y+N)/2-c.top}}function Wt(c){const $=tn();return $?Qi(c,{width:f(w),height:f(Jr)},$,Gr):c}function se(){S(u,Wt(f(u)),!0)}function Ee(c){S(p,Kr(f(p)+c),!0),se(),St(f(A).t("tools.lineReader.windowHeightAnnounce",{pixels:f(p)}))}function en(c){S(m,Zr(f(m)+c),!0),se(),St(f(A).t("tools.lineReader.frameHeightAnnounce",{pixels:f(m)}))}function rn(c){S(w,Ae(f(w)+c),!0),se(),St(f(A).t("tools.lineReader.widthAnnounce",{pixels:f(w)}))}function nn(){f(l)&&n()&&f(l).hideTool(n())}function Ti(c){const $=c.target,Y=$.closest(".pie-tool-line-reader__resize-handle");if(Y){Ri(c,Y.classList.contains("pie-tool-line-reader__resize-handle--frame")?"frame":"pane",Y);return}$.closest("button")||Pi(c)}const Te=ro({onMove:ji,onEnd:()=>{v.endDragging(),S(h,null)}});function Pi(c){!f(o)||!Te.begin(c,f(o))||(f(o).focus({preventScroll:!0}),v.startDragging(c,f(o)))}function Ri(c,$,Y){c.stopPropagation(),f(o)&&Te.begin(c,f(o))&&(f(o).setPointerCapture(c.pointerId),Y.focus({preventScroll:!0}),S(h,$,!0),S(_,{paneHeight:f(p),frameBandHeight:f(m),width:f(w),mouseX:c.clientX,mouseY:c.clientY},!0),f(l)?.bringToFront(f(o)))}function ji(c){if(v.isDragging()){v.handlePointerMove(c);return}if(!f(h))return;const $=c.clientY-f(_).mouseY;if(f(h)==="pane"){S(p,Kr(f(_).paneHeight+$*2),!0);return}S(m,Zr(f(_).frameBandHeight+$),!0),S(w,Ae(f(_).width+(c.clientX-f(_).mouseX)*2),!0),se()}function zi(c){let $=!1;switch(c.key){case"ArrowUp":S(u,Wt({x:f(u).x,y:f(u).y-We}),!0),St(f(A).t("toolkit.announce.movedUp",{position:Math.round(f(u).y)})),$=!0;break;case"ArrowDown":S(u,Wt({x:f(u).x,y:f(u).y+We}),!0),St(f(A).t("toolkit.announce.movedDown",{position:Math.round(f(u).y)})),$=!0;break;case"ArrowLeft":S(u,Wt({x:f(u).x-We,y:f(u).y}),!0),St(f(A).t("toolkit.announce.movedLeft",{position:Math.round(f(u).x)})),$=!0;break;case"ArrowRight":S(u,Wt({x:f(u).x+We,y:f(u).y}),!0),St(f(A).t("toolkit.announce.movedRight",{position:Math.round(f(u).x)})),$=!0;break;case"+":case"=":Ee(or),$=!0;break;case"-":case"_":Ee(-10),$=!0;break;case"Escape":nn(),$=!0}$&&c.preventDefault()}function Ci(c){let $=!1;switch(c.key){case"ArrowUp":Ee(-10),$=!0;break;case"ArrowDown":Ee(or),$=!0}$&&(c.preventDefault(),c.stopPropagation())}function Oi(c){let $=!1;switch(c.key){case"ArrowUp":en(-10),$=!0;break;case"ArrowDown":en(or),$=!0;break;case"ArrowLeft":rn(-20),$=!0;break;case"ArrowRight":rn(Ai),$=!0}$&&(c.preventDefault(),c.stopPropagation())}Pt(()=>F.sync(f(l),n())),js(()=>()=>{Yt!==null&&clearTimeout(Yt),Te.release(),F.release()}),Pt(()=>{f(l)&&f(o)&&n()&&f(l).updateToolElement(n(),f(o))});function Di(){if(d)return;const c=Ei();c&&(d=!0,S(w,Ae(f(w)),!0),S(u,Wt(c),!0))}Pt(()=>{r()||ie(()=>Te.release())}),Pt(()=>{if(!r()||!f(o))return;ie(Di);const c=setTimeout(()=>f(o)?.focus({preventScroll:!0}),100);return()=>clearTimeout(c)}),Pt(()=>{if(!i||!r())return;const c=()=>{S(w,Ae(f(w)),!0),se()};return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)});var Li={get visible(){return r()},set visible(c=!1){r(c),Ke()},get toolId(){return n()},set toolId(c="lineReader"){n(c),Ke()}},on=bs(),Ni=vn(on),Hi=c=>{var $=Ks(),Y=vn($),Pe=Zo(Y,!0),N=De(Y,2),Re=De(ni(N),4),je=De(Re,2),sr=De(je,2);Rn(N),Ys(N,ar=>S(o,ar),()=>f(o)),ls((ar,Fi,Bi,qi,Ii,Yi,Ui,Vi,Xi,Gi)=>{Es(Pe,f(O)),Ls(N,`left: ${f(u).x??""}px; top: ${f(u).y??""}px; width: ${f(w)??""}px; height: ${f(Jr)??""}px; --pie-tool-line-reader-band-height: ${f(m)??""}px; --pie-tool-line-reader-side-width: 12px;`),st(N,"lang",ar),st(N,"dir",Fi),st(N,"aria-label",Bi),st(N,"aria-roledescription",qi),st(Re,"title",Ii),st(Re,"aria-label",Yi),st(je,"title",Ui),st(je,"aria-label",Vi),st(sr,"title",Xi),st(sr,"aria-label",Gi),N.dir=N.dir},[()=>f(A).getLocale(),()=>f(A).getDirection?.()??"ltr",()=>f(A).t("tools.lineReader.applicationA11y",{paneHeight:f(p),frameHeight:f(m)}),()=>f(A).t("tools.lineReader.roleA11y"),()=>f(A).t("tools.lineReader.close"),()=>f(A).t("tools.lineReader.close"),()=>f(A).t("tools.lineReader.resizeWindowA11y"),()=>f(A).t("tools.lineReader.resizeWindowFullA11y",{paneHeight:f(p)}),()=>f(A).t("tools.lineReader.resizeFrameA11y"),()=>f(A).t("tools.lineReader.resizeFrameFullA11y",{frameHeight:f(m),width:f(w)})]),ae("pointerdown",N,Ti),ae("keydown",N,zi),ae("click",Re,nn),ae("keydown",je,Ci),ae("keydown",sr,Oi),Ar(c,$)};return Cs(Ni,c=>{r()&&c(Hi)}),Ar(t,on),Ln(Li)}vs(["pointerdown","keydown","click"]);ta("pie-tool-line-reader",Js(Qs,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"}},[],[],{mode:"open"},Ji));function ta(t,e){customElements.get(t)||customElements.define(t,e)}export{Qs as default};
|