@pie-players/pie-section-player 1.0.0-beta.1 → 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/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/pie-section-player.js +52 -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 +8789 -8699
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Ci}from"./attribute-coercion-b93b482c.js";import{a as Ii,i as Fi,n as Vi,r as Bi,t as Hi}from"./term-lookup-632cf6b1.js";if(typeof window<"u"){var sn,on;((sn=(on=window).__svelte??(on.__svelte={})).v??(sn.v=new Set)).add("5")}var le={},z=Symbol("uninitialized"),qn=Array.isArray,Ji=Array.prototype.indexOf,Er=Array.prototype.includes,cr=Array.from,Ge=Object.keys,Te=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Ui=Object.getOwnPropertyDescriptors,Ki=Object.prototype,Qi=Array.prototype,Tn=Object.getPrototypeOf,an=Object.isExtensible,Zi=()=>{};function Xi(t){for(var e=0;e<t.length;e++)t[e]()}function Pn(){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 Gi(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 Yi(t){var e=Gi(t,"string");return Pe(e)=="symbol"?e:e+""}function T(t,e,r){return(e=Yi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var et=1024,ht=2048,Zt=4096,Cr=8192,ts=16384,Ir=32768,ln=1<<25,Fr=65536,ve=1<<19,es=1<<20,Se=1<<25,un=1<<21,rs=1<<22,Ye=1<<23,Ke=Symbol("$state"),Ln=Symbol("component"),jn=Symbol("legacy props"),ns=Symbol(""),Wr=Symbol("attributes"),is=Symbol("class"),ss=Symbol("style"),Qe=Symbol("text"),Ee=Symbol("form reset"),ze=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")}},os=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function as(){console.warn("https://svelte.dev/e/derived_inert")}function hr(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ls(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var q=!1;function Et(t){q=t}var W;function H(t){if(t===null)throw hr(),le;return W=t}function vr(){return H(_t(W))}function Rt(t){if(q){if(_t(W)!==null)throw hr(),le;W=t}}function us(t=1){if(q){for(var e=t,r=W;e--;)r=_t(r);W=r}}function tr(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=_t(r);t&&r.remove(),r=i}}function An(t){if(!t||t.nodeType!==8)throw hr(),le;return t.data}function On(t){return t===this.v}function fs(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Nn(t){return!fs(t,this.v)}function cs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hs(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function vs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ds(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ps(t){throw new Error("https://svelte.dev/e/effect_orphan")}function gs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ms(){throw new Error("https://svelte.dev/e/hydration_failed")}function ws(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ys(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $s(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _s(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var de=!1,dr=!1,D=null;function ue(t){D=t}function zn(t,e=!1,r){D={p:D,i:!1,c:null,e:null,s:t,x:null,r:x,l:dr&&!e?{s:null,u:null,$:[]}:null}}function Rn(t){var e=D,r=e.e;if(r!==null){e.e=null;for(var n of r)li(n)}return t!==void 0&&(e.x=t),e.i=!0,D=e.p,Dn(t)}function Dn(t={}){return Te(t,Ln,{value:!0}),t}function Re(){return!dr||D!==null&&D.l===null}var Ft=[];function Cn(){var t=Ft;Ft=[],Xi(t)}function bt(t){if(Ft.length===0&&!We){var e=Ft;queueMicrotask(()=>{e===Ft&&Cn()})}Ft.push(t)}function ks(){for(;Ft.length>0;)Cn()}var xs=~(ht|Zt|et);function A(t,e){t.f=t.f&xs|e}function Vr(t){(t.f&512)!==0||t.deps===null?A(t,et):A(t,Zt)}function In(t,e,r){(t.f&2048)!==0?e.add(t):t.f&4096&&r.add(t),A(t,et)}var fn=!1;function Fn(){fn||(fn=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[Ee]?.()})},{capture:!0}))}function pe(t){var e=S,r=x;nt(null),$t(null);try{return t()}finally{nt(e),$t(r)}}function Ms(t,e,r,n=r){t.addEventListener(e,()=>pe(r));const i=t[Ee];i?t[Ee]=()=>{i(),n(!0)}:t[Ee]=()=>n(!0),Fn()}function Ss(t,e,r,n){const i=Re()?Le:Br;var s=t.filter(h=>!h.settled),a=e.map(i);if(r.length===0&&s.length===0){n(a);return}var l=x,f=Es(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function c(h){if((l.f&16384)===0){f();try{n([...a,...h])}catch(w){yt(w,l)}er()}}var v=Vn();if(r.length===0){u.then(()=>c([])).finally(v);return}function d(){Promise.all(r.map(h=>Ws(h))).then(c).catch(h=>yt(h,l)).finally(v)}u?u.then(()=>{f(),d(),er()}):d()}function Es(){var t=x,e=S,r=D,n=$;return function(i=!0){$t(t),nt(e),ue(r),i&&!(t.f&16384)&&(n?.activate(),n?.apply())}}function er(t=!0){$t(null),nt(null),ue(null),t&&$?.deactivate()}function Vn(){var t=x,e=t.b,r=$,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 Le(t){var e=2|ht;return x!==null&&(x.f|=ve),{ctx:D,deps:null,effects:null,equals:On,f:e,fn:t,reactions:null,rv:0,v:z,wv:0,parent:x,ac:null}}var ke=Symbol("obsolete");function Ws(t,e,r){let n=x;n===null&&cs();var i=void 0,s=Qt(z),a=!S,l=new Set;return Hs(()=>{var f=x,u=Pn();i=u.promise;try{Promise.resolve(t()).then(u.resolve,h=>{h!==ze&&u.reject(h)}).finally(er)}catch(h){u.reject(h),er()}var c=$;if(a){if((f.f&32768)!==0)var v=Vn();if(n.b?.is_rendered())c.async_deriveds.get(f)?.reject(ke);else for(const h of l.values())h.reject(ke);l.add(u),c.async_deriveds.set(f,u)}const d=(h,w=void 0)=>{v?.(),l.delete(u),w!==ke&&(c.activate(),w?(s.f|=Ye,ce(s,w)):(s.f&8388608&&(s.f^=Ye),ce(s,h)),c.deactivate())};u.promise.then(d,h=>d(null,h||"unknown"))}),ai(()=>{for(const f of l)f.reject(ke)}),new Promise(f=>{function u(c){function v(){c===i?f(s):u(i)}c.then(v,v)}u(i)})}function cn(t){const e=Le(t);return vi(e),e}function Br(t){const e=Le(t);return e.equals=Nn,e}function qs(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)F(e[r])}}function Hr(t){var e,r=x,n=t.parent;if(!qt&&n!==null&&t.v!==z&&(n.f&24576)!==0)return as(),t.v;$t(n);try{qs(t),e=mi(t)}finally{$t(r)}return e}function Bn(t){var e=Hr(t);if(!t.equals(e)&&(t.wv=pi(),(!$?.is_fork||t.deps===null)&&($!==null?($.capture(t,e,!0),rr?.capture(t,e,!0)):t.v=e,t.deps===null))){A(t,et);return}qt||(I!==null?(Qr()||$?.is_fork)&&I.set(t,e):Vr(t))}function Ts(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&pe(()=>{e.ac.abort(ze),e.ac=null}),e.fn!==null&&(e.teardown=Zi),Ae(e,0),Gr(e))}function Hn(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&he(e)}function Jn(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jr(t,e){Jn(t,e),e.add(t)}function b(t,e,r){Jn(t,e),e.set(t,r)}function k(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 y(t,e,r){return t.set(k(t,e),r),r}function o(t,e){return t.get(k(t,e))}var Un,qr=null,ee=null,$=null,rr=null,I=null,Tr=null,We=!1,mr=!1,je=null,nr=null,Kn=0,Ps=1,Pr=new WeakMap,Jt=new WeakMap,oe=new WeakMap,ir=new WeakMap,Ce=new WeakMap,re=new WeakMap,Dt=new WeakMap,xe=new WeakMap,gt=new WeakMap,hn=new WeakMap,fe=new WeakMap,Wt=new WeakMap,Lt=new WeakMap,wr=new WeakMap,Ie=new WeakMap,N=new WeakSet,Xt=class Qn{constructor(){Jr(this,N),T(this,"id",Ps++),b(this,Pr,!1),T(this,"linked",!0),b(this,Jt,null),b(this,oe,null),T(this,"async_deriveds",new Map),T(this,"current",new Map),T(this,"previous",new Map),b(this,ir,new Set),b(this,Ce,new Set),b(this,re,0),b(this,Dt,new Map),b(this,xe,null),b(this,gt,[]),b(this,hn,[]),b(this,fe,new Set),b(this,Wt,new Set),b(this,Lt,new Map),b(this,wr,new Set),T(this,"is_fork",!1),b(this,Ie,!1),ee===null?qr=ee=this:(y(oe,ee,this),y(Jt,this,ee)),ee=this}skip_effect(e){o(Lt,this).has(e)||o(Lt,this).set(e,{d:[],m:[]}),o(wr,this).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=o(Lt,this).get(e);if(n){o(Lt,this).delete(e);for(var i of n.d)A(i,ht),r(i);for(i of n.m)A(i,Zt),r(i)}o(wr,this).add(e)}capture(e,r,n=!1){e.v!==z&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[r,n]),I?.set(e,r)),this.is_fork||(e.v=r)}activate(){$=this}deactivate(){$=null,I=null}flush(){try{mr=!0,$=this,k(N,this,sr).call(this)}finally{Kn=0,Tr=null,je=null,nr=null,mr=!1,$=null,I=null,wt.clear()}}discard(){for(const e of o(Ce,this))e(this);o(Ce,this).clear();for(const e of this.async_deriveds.values())e.reject(ke);k(N,this,or).call(this),o(xe,this)?.resolve()}register_created_effect(e){o(hn,this).push(e)}increment(e,r){if(y(re,this,o(re,this)+1),e){let n=o(Dt,this).get(r)??0;o(Dt,this).set(r,n+1)}}decrement(e,r){if(y(re,this,o(re,this)-1),e){let n=o(Dt,this).get(r)??0;n===1?o(Dt,this).delete(r):o(Dt,this).set(r,n-1)}o(Ie,this)||(y(Ie,this,!0),bt(()=>{y(Ie,this,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)o(fe,this).add(n);for(const n of r)o(Wt,this).add(n);e.clear(),r.clear()}oncommit(e){o(ir,this).add(e)}ondiscard(e){o(Ce,this).add(e)}settled(){return(o(xe,this)??y(xe,this,Pn())).promise}static ensure(){if($===null){const e=$=new Qn;!mr&&!We&&bt(()=>{o(Pr,e)||e.flush()})}return $}apply(){if(!de||!this.is_fork&&o(Jt,this)===null&&o(oe,this)===null){I=null;return}I=new Map;for(const[r,[n]]of this.current)I.set(r,n);for(let r=qr;r!==null;r=o(oe,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)I.has(n)||I.set(n,i)}}schedule(e){if(Tr=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}o(gt,this).push(e)}};Un=Xt;function vn(){if(this.is_fork)return!0;for(const r of o(Dt,this).keys()){for(var t=r,e=!1;t.parent!==null;){if(o(Lt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function Ls(){var t=[];for(const i of o(gt,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^=et}}r||t.push(e)}return y(gt,this,[]),t}function sr(){y(Pr,this,!0);for(const a of o(fe,this))o(Wt,this).delete(a),A(a,ht),this.schedule(a);for(const a of o(Wt,this))A(a,Zt),this.schedule(a);this.apply();for(var t=je=[],e=[],r=nr=[];o(gt,this).length>0;){Kn++>1e3&&(k(N,this,or).call(this),Ns());for(const a of k(N,this,Ls).call(this))try{k(N,this,js).call(this,a,t,e)}catch(l){throw Gn(a),k(N,this,vn).call(this)||this.discard(),l}}if($=null,r.length>0){var n=Un.ensure();for(const a of r)n.schedule(a)}if(je=null,nr=null,k(N,this,vn).call(this)){k(N,this,Fe).call(this,e),k(N,this,Fe).call(this,t);for(const[a,l]of o(Lt,this))Xn(a,l);r.length>0&&k(N,$,sr).call($);return}const i=k(N,this,As).call(this);if(i){k(N,this,Fe).call(this,e),k(N,this,Fe).call(this,t),k(N,i,Os).call(i,this);return}o(fe,this).clear(),o(Wt,this).clear();for(const a of o(ir,this))a(this);o(ir,this).clear(),rr=this,dn(e),dn(t),rr=null,o(xe,this)?.resolve();var s=$;if(o(re,this)===0&&(o(gt,this).length===0||s!==null)&&k(N,this,or).call(this),o(gt,this).length>0)if(s!==null){for(const a of o(gt,this))o(gt,s).push(a);y(gt,this,[])}else s=this;s!==null&&(wt.clear(),k(N,s,sr).call(s))}function js(t,e,r){t.f^=et;for(var n=t.first;n!==null;){var i=n.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||o(Lt,this).has(n))&&n.fn!==null){s?n.f^=et:(i&4)!==0?e.push(n):de&&(i&16777224)!==0?r.push(n):De(n)&&(i&16&&o(Wt,this).add(n),he(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 As(){for(var t=o(Jt,this);t!==null;){if(!t.is_fork){for(const[e,[,r]]of this.current)if(t.current.has(e)&&!r)return t}t=o(Jt,t)}return null}function Os(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(o(fe,t),o(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 s=a;i&4194320&&!this.async_deriveds.has(s)&&(o(Wt,this).delete(s),A(s,ht),this.schedule(s))}}};for(const r of this.current.keys())e(r);this.oncommit(()=>t.discard()),k(N,t,or).call(t),$=this,k(N,this,sr).call(this)}function Fe(t){for(var e=0;e<t.length;e+=1)In(t[e],o(fe,this),o(Wt,this))}function or(){if(this.linked){var t=o(Jt,this),e=o(oe,this);t===null?qr=e:y(oe,t,e),e===null?ee=t:y(Jt,e,t),this.linked=!1}}function ot(t){var e=We;We=!0;try{var r;for(t&&($!==null&&!$.is_fork&&$.flush(),r=t());;){if(ks(),$===null)return r;$.flush()}}finally{We=e}}function Ns(){try{gs()}catch(t){yt(t,Tr)}}var pt=null;function dn(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&24576)===0&&De(n)&&(pt=new Set,he(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&fi(n),pt?.size>0)){wt.clear();for(const i of pt){if((i.f&24576)!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)pt.has(a)&&(pt.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];!(f.f&24576)&&he(f)}}pt.clear()}}pt=null}}function Zn(t){$.schedule(t)}function Xn(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),A(t,et);for(var r=t.first;r!==null;)Xn(r,e),r=r.next}}function Gn(t){A(t,et);for(var e=t.first;e!==null;)Gn(e),e=e.next}var ar=new Set,wt=new Map,Yn=!1;function Qt(t,e){return{f:0,v:t,reactions:null,equals:On,rv:0,wv:0}}function dt(t,e){const r=Qt(t,e);return vi(r),r}function ti(t,e=!1,r=!0){const n=Qt(t);if(e||(n.equals=Nn),dr&&r&&D!==null&&D.l!==null){var i;((i=D.l).s??(i.s=[])).push(n)}return n}function Y(t,e,r=!1){return S!==null&&(!at||S.f&131072)&&Re()&&S.f&4325394&&(ut===null||!ut.has(t))&&$s(),ce(t,r?Vt(e):e,nr)}var Ct=null,Lr=0;function ce(t,e,r=null){if(!t.equals(e)){qt?wt.set(t,e):wt.has(t)||wt.set(t,t.v);var n=Xt.ensure();if(n.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Hr(i),I===null&&Vr(i)}t.wv=pi(),Ct=null,Lr=0,ei(t,ht,r),Ct=null,Re()&&x!==null&&x.f&1024&&!(x.f&96)&&(G===null?Qs([t]):G.push(t)),!n.is_fork&&ar.size>0&&!Yn&&zs()}return e}function zs(){Yn=!1;for(const t of ar){t.f&1024&&A(t,Zt);let e;try{e=De(t)}catch{e=!0}e&&he(t)}ar.clear()}function qe(t){Y(t,t.v+1)}function ei(t,e,r){var n=t.reactions;if(n!==null){var i=Re(),s=n.length;if(Lr+=s,Lr>1e5&&Ct===null&&(Ct=new Set),Ct!==null){if(Ct.has(t))return;Ct.add(t)}for(var a=0;a<s;a++){var l=n[a],f=l.f;if(!(!i&&l===x)){var u=(f&ht)===0;if(u&&A(l,e),(f&131072)!==0)ar.add(l);else if((f&2)!==0){var c=l;I?.delete(c),ei(c,Zt,r)}else if(u){var v=l;f&16&&pt!==null&&pt.add(v),r!==null?r.push(v):Zn(v)}}}}}function Vt(t){if(typeof t!="object"||t===null||Ke in t||Ln in t)return t;const e=Tn(t);if(e!==Ki&&e!==Qi)return t;var r=new Map,n=qn(t),i=dt(0),s=null,a=Ut,l=f=>{if(Ut===a)return f();var u=S,c=Ut;nt(null),wn(a);var v=f();return nt(u),wn(c),v};return n&&r.set("length",dt(t.length,s)),new Proxy(t,{defineProperty(f,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&ys();var v=r.get(u);return v===void 0?l(()=>{var d=dt(c.value,s);return r.set(u,d),d}):Y(v,c.value,!0),!0},deleteProperty(f,u){var c=r.get(u);if(c===void 0){if(u in f){const v=l(()=>dt(z,s));r.set(u,v),qe(i)}}else Y(c,z),qe(i);return!0},get(f,u,c){if(u===Ke)return t;var v=r.get(u),d=u in f;if(v===void 0&&(!d||Ht(f,u)?.writable)&&(v=l(()=>dt(Vt(d?f[u]:z),s)),r.set(u,v)),v!==void 0){var h=_(v);return h===z?void 0:h}return Reflect.get(f,u,c)},getOwnPropertyDescriptor(f,u){this.has?.(f,u);var c=Reflect.getOwnPropertyDescriptor(f,u),v=r.get(u);if(v!==void 0){var d=_(v);if(d===z)return;if(c&&"value"in c)c.value=d;else return{enumerable:!0,configurable:!0,value:d,writable:!0}}return c},has(f,u){if(u===Ke)return!0;var c=r.get(u),v=c!==void 0&&c.v!==z||Reflect.has(f,u);return(c!==void 0||x!==null&&(!v||Ht(f,u)?.writable))&&(c===void 0&&(c=l(()=>dt(v?Vt(f[u]):z,s)),r.set(u,c)),_(c)===z)?!1:v},set(f,u,c,v){var d=r.get(u),h=u in f;if(n&&u==="length")for(var w=c;w<d.v;w+=1){var M=r.get(w+"");M!==void 0?Y(M,z):w in f&&(M=l(()=>dt(z,s)),r.set(w+"",M))}if(d===void 0)(!h||Ht(f,u)?.writable)&&(d=l(()=>dt(void 0,s)),Y(d,Vt(c)),r.set(u,d));else{h=d.v!==z;var p=l(()=>Vt(c));Y(d,p)}var g=Reflect.getOwnPropertyDescriptor(f,u);if(g?.set&&g.set.call(v,c),!h){if(n&&typeof u=="string"){var j=r.get("length"),P=Number(u);Number.isInteger(P)&&P>=j.v&&Y(j,P+1)}qe(i)}return!0},ownKeys(f){_(i);var u=Reflect.ownKeys(f).filter(d=>{var h=r.get(d);return h===void 0||h.v!==z});for(var[c,v]of r)v.v!==z&&!(c in f)&&u.push(c);return u},setPrototypeOf(){bs()}})}var pn,ri,ni,ii;function jr(){if(pn===void 0){pn=window,ri=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;ni=Ht(e,"firstChild").get,ii=Ht(e,"nextSibling").get,an(t)&&(t[is]=void 0,t[Wr]=null,t[ss]=void 0,t.__e=void 0),an(r)&&(r[Qe]=void 0)}}function tt(t=""){return document.createTextNode(t)}function At(t){return ni.call(t)}function _t(t){return ii.call(t)}function ne(t,e){if(!q)return At(t);var r=At(W);if(r===null)r=W.appendChild(tt());else if(e&&r.nodeType!==3){var n=tt();return r?.before(n),H(n),n}return e&&Kr(r),H(r),r}function Rs(t,e=!1){if(!q){var r=At(t);return r instanceof Comment&&r.data===""?_t(r):r}if(e){if(W?.nodeType!==3){var n=tt();return W?.before(n),H(n),n}Kr(W)}return W}function we(t,e=!1){if(!q)return At(t);var r=ne(t,e);return Rt(t),r}function ye(t,e=1,r=!1){let n=q?W:t;for(var i;e--;)i=n,n=_t(n);if(!q)return n;if(r){if(n?.nodeType!==3){var s=tt();return n===null?i?.after(s):n.before(s),H(s),s}Kr(n)}return H(n),n}function si(t){t.textContent=""}function oi(){return!de||pt!==null?!1:(x.f&Ir)!==0}function Ur(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 Kr(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 Ds(t){var e=x;if(e===null)return S.f|=Ye,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;yt(t,e)}function yt(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(r){t=r}}e=e.parent}throw t}}function Cs(t){x===null&&(S===null&&ps(t),ds()),qt&&vs(t)}function Is(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function kt(t,e){var r=x;r!==null&&r.f&8192&&(t|=Cr);var n={ctx:D,deps:null,nodes:null,f:t|ht|512,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};$?.register_created_effect(n);var i=n;if((t&4)!==0)je!==null?je.push(n):Xt.ensure().schedule(n);else if(e!==null){try{he(n)}catch(a){throw F(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|=Fr))}if(i!==null&&(i.parent=r,r!==null&&Is(i,r),S!==null&&(S.f&2)!==0&&(t&64)===0)){var s=S;(s.effects??(s.effects=[])).push(i)}return n}function Qr(){return S!==null&&!at}function ai(t){const e=kt(8,null);return A(e,et),e.teardown=t,e}function gn(t){Cs("$effect");var e=x.f;if(!S&&(e&32)!==0&&D!==null&&!D.i){var r=D;(r.e??(r.e=[])).push(t)}else return li(t)}function li(t){return kt(4|es,t)}function Fs(t){Xt.ensure();const e=kt(64|ve,t);return()=>{F(e)}}function Vs(t){Xt.ensure();const e=kt(64|ve,t);return(r={})=>new Promise(n=>{r.outro?Gt(e,()=>{F(e),n(void 0)}):(F(e),n(void 0))})}function Bs(t){return kt(4,t)}function Hs(t){return kt(rs|ve,t)}function Zr(t,e=0){return kt(8|e,t)}function te(t,e=[],r=[],n=[]){Ss(n,e,r,i=>{kt(8,()=>{t(...i.map(_))})})}function Xr(t,e=0){return kt(16|e,t)}function rt(t){return kt(32|ve,t)}function ui(t){var e=t.teardown;if(e!==null){const r=qt,n=S;mn(!0),nt(null);try{e.call(null)}catch(i){yt(i,t.parent)}finally{mn(r),nt(n)}}}function Gr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&pe(()=>{i.abort(ze)});var n=r.next;(r.f&64)!==0?r.parent=null:F(r,e),r=n}}function Js(t){for(var e=t.first;e!==null;){var r=e.next;!(e.f&32)&&F(e),e=r}}function F(t,e=!0){var r=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(Us(t.nodes.start,t.nodes.end),r=!0),t.f|=ln,Gr(t,e&&!r),Ae(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();ui(t),t.f^=ln,t.f|=ts;var i=t.parent;i!==null&&i.first!==null&&fi(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Us(t,e){for(;t!==null;){var r=t===e?null:_t(t);t.remove(),t=r}}function fi(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 Gt(t,e,r=!0){var n=[];t.f|=256,ci(t,n,!0);var i=()=>{r&&F(t),e&&e()},s=n.length;if(s>0){var a=()=>--s||i();for(var l of n)l.out(a)}else i()}function ci(t,e,r){if((t.f&8192)===0){t.f^=Cr;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 s=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;ci(i,e,a?r:!1)}i=s}}}function lr(t){t.f&=-257,hi(t,!0)}function hi(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Cr,!(t.f&1024)&&(A(t,ht),Xt.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;hi(r,i?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(const a of s)(a.is_global||e)&&a.in()}}function Yr(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:_t(r);e.append(r),r=i}}var Ks=null,Ze=!1,qt=!1;function mn(t){qt=t}var S=null,at=!1;function nt(t){S=t}var x=null;function $t(t){x=t}var ut=null;function vi(t){S!==null&&(S.f&2097152||S.f&2)&&(ut??(ut=new Set)).add(t)}var B=null,U=0,G=null;function Qs(t){G=t}var di=1,Bt=0,Ut=Bt;function wn(t){Ut=t}function pi(){return++di}function De(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 s=r[i];if(De(s)&&Bn(s),s.wv>t.wv)return!0}e&512&&I===null&&A(t,et)}return!1}function gi(t,e,r=!0){var n=t.reactions;if(n!==null&&!(!de&&ut!==null&&ut.has(t)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&2)!==0?gi(s,e,!1):e===s&&(r?A(s,ht):s.f&1024&&A(s,Zt),Zn(s))}}function mi(t){var e=B,r=U,n=G,i=S,s=ut,a=D,l=at,f=Ut,u=t.f;B=null,U=0,G=null,S=(u&96)===0?t:null,ut=null,ue(t.ctx),at=!1,Ut=++Bt,t.ac!==null&&(pe(()=>{t.ac.abort(ze)}),t.ac=null);try{t.f|=un;var c=t.fn,v=c();t.f|=Ir;var d=yn(t);if(Re()&&G!==null&&!at&&d!==null&&(t.f&6146)===0)for(var h=0;h<G.length;h++)gi(G[h],t);if(i!==null&&i!==t){if(Bt++,i.deps!==null)for(let w=0;w<r;w+=1)i.deps[w].rv=Bt;if(e!==null)for(const w of e)w.rv=Bt;G!==null&&(n===null?n=G:n.push(...G))}return t.f&8388608&&(t.f^=Ye),v}catch(w){return yn(t),Ds(w)}finally{t.f^=un,B=e,U=r,G=n,S=i,ut=s,ue(a),at=l,Ut=f}}function yn(t){var e=t.deps,r=$?.is_fork;if(B!==null){var n;if(r||Ae(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&&(Ae(t,U),e.length=U);return e}function Zs(t,e){let r=e.reactions;if(r!==null){var n=Ji.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||!Er.call(B,e))){var s=e;s.f&512&&(s.f^=512),s.v!==z&&Vr(s),s.ac!==null&&pe(()=>{s.ac.abort(ze),s.ac=null,A(s,ht)}),Ts(s),Ae(s,0)}}function Ae(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Zs(t,r[n])}function he(t){var e=t.f;if((e&16384)===0){A(t,et);var r=x,n=Ze;x=t,Ze=(e&96)===0;try{(e&16777232)!==0?Js(t):Gr(t),ui(t);var i=mi(t);t.teardown=typeof i=="function"?i:null,t.wv=di}finally{Ze=n,x=r}}}async function Xs(){if(de)return new Promise(t=>{requestAnimationFrame(()=>t()),setTimeout(()=>t())});await Promise.resolve(),ot()}function _(t){var e=(t.f&2)!==0;if(Ks?.add(t),S!==null&&!at&&!(x!==null&&(x.f&16384)!==0)&&(ut===null||!ut.has(t))){var r=S.deps;if((S.f&2097152)!==0)t.rv<Bt&&(t.rv=Bt,B===null&&r!==null&&r[U]===t?U++:B===null?B=[t]:B.push(t));else{var n;(n=S).deps??(n.deps=[]),Er.call(S.deps,t)||S.deps.push(t);var i=t.reactions;i===null?t.reactions=[S]:Er.call(i,S)||i.push(S)}}if(qt&&wt.has(t))return wt.get(t);if(e){var s=t;if(qt){var a=s.v;return(!(s.f&1024)&&s.reactions!==null||yi(s))&&(a=Hr(s)),wt.set(s,a),a}var l=(s.f&512)===0&&!at&&S!==null&&(Ze||(S.f&512)!==0),f=(s.f&Ir)===0;De(s)&&(l&&(s.f|=512),Bn(s)),l&&!f&&(Hn(s),wi(s))}if(I?.has(t))return I.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function wi(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)&&(Hn(e),wi(e))}function yi(t){if(t.v===z)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(wt.has(e)||(e.f&2)!==0&&yi(e))return!0;return!1}function Oe(t){var e=at;try{return at=!0,t()}finally{at=e}}var Ve=Symbol("events"),Gs=new Set,bn=new Set;function Ys(t,e,r,n={}){function i(s){if(n.capture||Ar.call(e,s),!s.cancelBubble)return pe(()=>r?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?(i.__removed=!1,bt(()=>{i.__removed||e.addEventListener(t,i,n)})):e.addEventListener(t,i,n),i}function to(t,e,r,n,i){var s={capture:n,passive:i},a=Ys(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ai(()=>{a.__removed=!0,e.removeEventListener(t,a,s)})}var yr=null,br=!1;function Ar(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;yr=t,br||(br=!0,setTimeout(()=>{br=!1,yr=null}));var a=0,l=yr===t&&t[Ve];if(l){var f=i.indexOf(l);if(f!==-1&&(e===document||e===window)){t[Ve]=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(a=f)}if(s=i[a]||t.target,s!==e){Te(t,"currentTarget",{configurable:!0,get(){return s||r}});var c=S,v=x;nt(null),$t(null);try{for(var d,h=[];s!==null&&s!==e;){try{var w=s[Ve]?.[n];w!=null&&(!s.disabled||t.target===s)&&w.call(s,t)}catch(M){d?h.push(M):d=M}if(t.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(d){for(let M of h)queueMicrotask(()=>{throw M});throw d}}finally{t[Ve]=e,delete t.currentTarget,nt(c),$t(v)}}}var eo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ro(t){return eo?.createHTML(t)??t}function no(t){var e=Ur("template");return e.innerHTML=ro(t.replaceAll("<!>","<!---->")),e.content}function ae(t,e){var r=x;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Ot(t,e){var r=(e&1)!==0,n=(e&2)!==0,i,s=!t.startsWith("<!>");return()=>{if(q)return ae(W,null),W;i===void 0&&(i=no(s?t:"<!>"+t),r||(i=At(i)));var a=n||ri?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=At(a),f=a.lastChild;ae(l,f)}else ae(a,a);return a}}function io(){if(q)return ae(W,null),W;var t=document.createDocumentFragment(),e=document.createComment(""),r=tt();return t.append(e,r),ae(e,r),t}function st(t,e){if(q){var r=x;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=W),vr();return}t!==null&&t.before(e)}var so=["touchstart","touchmove"];function oo(t){return so.includes(t)}function ao(t){let e=0,r=Qt(0),n;return()=>{Qr()&&(_(r),Zr(()=>(e===0&&(n=Oe(()=>t(()=>qe(r)))),e+=1,()=>{bt(()=>{e-=1,e===0&&(n?.(),n=void 0,qe(r))})})))}}var lo=Fr|ve;function uo(t,e,r,n){new fo(t,e,r,n)}var ft=new WeakMap,Or=new WeakMap,mt=new WeakMap,Ne=new WeakMap,K=new WeakMap,ct=new WeakMap,Q=new WeakMap,lt=new WeakMap,jt=new WeakMap,ie=new WeakMap,Kt=new WeakMap,Be=new WeakMap,Nr=new WeakMap,zr=new WeakMap,Nt=new WeakMap,$n=new WeakMap,R=new WeakSet,fo=class{constructor(t,e,r,n){Jr(this,R),T(this,"parent",void 0),T(this,"is_pending",!1),T(this,"transform_error",void 0),b(this,ft,void 0),b(this,Or,q?W:null),b(this,mt,void 0),b(this,Ne,void 0),b(this,K,void 0),b(this,ct,null),b(this,Q,null),b(this,lt,null),b(this,jt,null),b(this,ie,0),b(this,Kt,0),b(this,Be,!1),b(this,Nr,new Set),b(this,zr,new Set),b(this,Nt,null),b(this,$n,ao(()=>(y(Nt,this,Qt(o(ie,this))),()=>{y(Nt,this,null)}))),y(ft,this,t),y(mt,this,e),y(Ne,this,i=>{var s=x;s.b=this,s.f|=128,r(i)}),this.parent=x.b,this.transform_error=n??this.parent?.transform_error??(i=>i),y(K,this,Xr(()=>{if(q){const i=o(Or,this);vr();const s=i.data==="[!";if(i.data.startsWith("[?")){const a=JSON.parse(i.data.slice(2));k(R,this,ho).call(this,a)}else s?k(R,this,vo).call(this):k(R,this,co).call(this)}else k(R,this,$i).call(this)},lo)),q&&y(ft,this,W)}defer_effect(t){In(t,o(Nr,this),o(zr,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!o(mt,this).pending}update_pending_count(t,e){k(R,this,_i).call(this,t,e),y(ie,this,o(ie,this)+t),o(Nt,this)&&!o(Be,this)&&(y(Be,this,!0),bt(()=>{y(Be,this,!1),o(Nt,this)&&ce(o(Nt,this),o(ie,this))}))}get_effect_pending(){return o($n,this).call(this),_(o(Nt,this))}error(t){if(!o(mt,this).onerror&&!o(mt,this).failed)throw t;$?.is_fork?(o(ct,this)&&$.skip_effect(o(ct,this)),o(Q,this)&&$.skip_effect(o(Q,this)),o(lt,this)&&$.skip_effect(o(lt,this)),$.oncommit(()=>{k(R,this,_n).call(this,t)})):k(R,this,_n).call(this,t)}};function co(){try{y(ct,this,rt(()=>o(Ne,this).call(this,o(ft,this))))}catch(t){this.error(t)}}function ho(t){const e=o(mt,this).failed,{reset:r,invoke_onerror:n}=k(R,this,bi).call(this,t);bt(n),e&&y(lt,this,rt(()=>{e(o(ft,this),()=>t,()=>r)}))}function bi(t){var e=!1,r=!1;const n=()=>{if(e){ls();return}e=!0,r&&_s(),o(lt,this)!==null&&Gt(o(lt,this),()=>{y(lt,this,null)}),k(R,this,tn).call(this,()=>{k(R,this,$i).call(this)})};return{reset:n,invoke_onerror:()=>{try{r=!0,o(mt,this).onerror?.(t,n),r=!1}catch(i){yt(i,o(K,this)&&o(K,this).parent)}}}}function vo(){const t=o(mt,this).pending;t&&(this.is_pending=!0,y(Q,this,rt(()=>t(o(ft,this)))),bt(()=>{var e=y(jt,this,document.createDocumentFragment()),r=tt(),n=!1;if(e.append(r),y(ct,this,k(R,this,tn).call(this,()=>{try{return rt(()=>o(Ne,this).call(this,r))}catch(i){try{this.error(i),n=!0}catch(s){yt(s,o(K,this).parent)}return null}})),o(ct,this)===null){y(jt,this,null),n&&k(R,this,ur).call(this,$);return}o(Kt,this)===0&&(o(ft,this).before(e),y(jt,this,null),Gt(o(Q,this),()=>{y(Q,this,null)}),k(R,this,ur).call(this,$))}))}function $i(){try{if(this.is_pending=this.has_pending_snippet(),y(Kt,this,0),y(ie,this,0),y(ct,this,rt(()=>{o(Ne,this).call(this,o(ft,this))})),o(Kt,this)>0){var t=y(jt,this,document.createDocumentFragment());Yr(o(ct,this),t);const e=o(mt,this).pending;y(Q,this,rt(()=>e(o(ft,this))))}else k(R,this,ur).call(this,$)}catch(e){this.error(e)}}function ur(t){this.is_pending=!1,t.transfer_effects(o(Nr,this),o(zr,this))}function tn(t){var e=x,r=S,n=D;$t(o(K,this)),nt(o(K,this)),ue(o(K,this).ctx);try{return Xt.ensure(),t()}finally{$t(e),nt(r),ue(n)}}function _i(t,e){if(!this.has_pending_snippet()){if(this.parent){var r;k(R,r=this.parent,_i).call(r,t,e)}return}y(Kt,this,o(Kt,this)+t),o(Kt,this)===0&&(k(R,this,ur).call(this,e),o(Q,this)&&Gt(o(Q,this),()=>{y(Q,this,null)}),o(jt,this)&&(o(ft,this).before(o(jt,this)),y(jt,this,null)))}function _n(t){o(ct,this)&&(F(o(ct,this)),y(ct,this,null)),o(Q,this)&&(F(o(Q,this)),y(Q,this,null)),o(lt,this)&&(F(o(lt,this)),y(lt,this,null)),q&&(H(o(Or,this)),us(),H(tr()));let e=o(mt,this).failed;const r=n=>{const{reset:i,invoke_onerror:s}=k(R,this,bi).call(this,n);s(),e&&y(lt,this,k(R,this,tn).call(this,()=>{try{return rt(()=>{var a=x;a.b=this,a.f|=128,e(o(ft,this),()=>n,()=>i)})}catch(a){return yt(a,o(K,this).parent),null}}))};bt(()=>{var n;try{n=this.transform_error(t)}catch(i){yt(i,o(K,this)&&o(K,this).parent);return}n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(r,i=>yt(i,o(K,this)&&o(K,this).parent)):r(n)})}function be(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Qe]??(t[Qe]=t.nodeValue))&&(t[Qe]=r,t.nodeValue=`${r}`)}function ki(t,e){return xi(t,e)}function po(t,e){jr(),e.intro=e.intro??!1;const r=e.target,n=q,i=W;try{for(var s=At(r);s&&(s.nodeType!==8||s.data!=="[");)s=_t(s);if(!s)throw le;Et(!0),H(s);const a=xi(t,{...e,anchor:s});return Et(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==le&&console.warn("Failed to hydrate: ",a),e.recover===!1&&ms(),jr(),si(r),Et(!1),ki(t,e)}finally{Et(n),H(i)}}var He=new Map;function xi(t,{target:e,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:l}){jr();var f=void 0,u=Vs(()=>{var c=r??e.appendChild(tt());uo(c,{pending:()=>{}},h=>{zn({});var w=D;if(s&&(w.c=s),i&&(n.$$events=i),q&&ae(h,null),f=t(h,n)||Dn(),q&&(x.nodes.end=W,W===null||W.nodeType!==8||W.data!=="]"))throw hr(),le;Rn()},l);var v=new Set,d=h=>{for(var w=0;w<h.length;w++){var M=h[w];if(!v.has(M)){v.add(M);var p=oo(M);for(const P of[e,document]){var g=He.get(P);g===void 0&&(g=new Map,He.set(P,g));var j=g.get(M);j===void 0?(P.addEventListener(M,Ar,{passive:p}),g.set(M,1)):g.set(M,j+1)}}}};return d(cr(Gs)),bn.add(d),()=>{for(var h of v)for(const p of[e,document]){var w=He.get(p),M=w.get(h);--M==0?(p.removeEventListener(h,Ar),w.delete(h),w.size===0&&He.delete(p)):w.set(h,M)}bn.delete(d),c!==r&&c.parentNode?.removeChild(c)}});return Rr.set(f,u),f}var Rr=new WeakMap;function go(t,e){const r=Rr.get(t);return r?(Rr.delete(t),r(e)):Promise.resolve()}var Mt=new WeakMap,Tt=new WeakMap,it=new WeakMap,$e=new WeakMap,$r=new WeakMap,_r=new WeakMap,kn=new WeakMap,mo=class{constructor(t,e=!0){T(this,"anchor",void 0),b(this,Mt,new Map),b(this,Tt,new Map),b(this,it,new Map),b(this,$e,new Set),b(this,$r,!0),b(this,_r,r=>{if(o(Mt,this).has(r)){var n=o(Mt,this).get(r),i=o(Tt,this).get(n);if(i)lr(i),o($e,this).delete(n);else{var s=o(it,this).get(n);s&&(lr(s.effect),o(Tt,this).set(n,s.effect),o(it,this).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[a,l]of o(Mt,this)){if(o(Mt,this).delete(a),a===r)break;const f=o(it,this).get(l);f&&(F(f.effect),o(it,this).delete(l))}for(const[a,l]of o(Tt,this)){if(a===n||o($e,this).has(a))continue;const f=()=>{if(Array.from(o(Mt,this).values()).includes(a)){var u=document.createDocumentFragment();Yr(l,u),u.append(tt()),o(it,this).set(a,{effect:l,fragment:u})}else F(l);o($e,this).delete(a),o(Tt,this).delete(a)};o($r,this)||!i?(o($e,this).add(a),Gt(l,f,!1)):f()}}}),b(this,kn,r=>{o(Mt,this).delete(r);const n=Array.from(o(Mt,this).values());for(const[i,s]of o(it,this))n.includes(i)||(F(s.effect),o(it,this).delete(i))}),this.anchor=t,y($r,this,e)}ensure(t,e){var r=$,n=oi();if(e&&!o(Tt,this).has(t)&&!o(it,this).has(t))if(n){var i=document.createDocumentFragment(),s=tt();i.append(s),o(it,this).set(t,{effect:rt(()=>e(s)),fragment:i})}else o(Tt,this).set(t,rt(()=>e(this.anchor)));if(o(Mt,this).set(r,t),n){for(const[a,l]of o(Tt,this))a===t?r.unskip_effect(l):r.skip_effect(l);for(const[a,l]of o(it,this))a===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(o(_r,this)),r.ondiscard(o(kn,this))}else q&&(this.anchor=W),o(_r,this).call(this,r)}};function kr(t,e,r=!1){var n;q&&(n=W,vr());var i=new mo(t),s=r?Fr:0;function a(l,f){if(q){var u=An(n);if(l!==parseInt(u.substring(1))){var c=tr();H(c),i.anchor=c,Et(!1),i.ensure(l,f),Et(!0);return}}i.ensure(l,f)}Xr(()=>{var l=!1;e((f,u=0)=>{l=!0,a(u,f)}),l||a(-1,null)},s)}function wo(t,e,r){for(var n=[],i=e.length,s,a=e.length,l=0;l<i;l++){let v=e[l];Gt(v,()=>{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var d=t.outrogroups;Dr(t,cr(s.done)),d.delete(s),d.size===0&&(t.outrogroups=null)}}else a-=1},!1)}if(a===0){var f=n.length===0&&r!==null&&t.pending.size===0;if(f){var u=r,c=u.parentNode;si(c),c.append(u),t.items.clear()}Dr(t,e,!f)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function Dr(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const a of t.pending.values())for(const l of a)n.add(t.items.get(l).e)}for(var i=0;i<e.length;i++){var s=e[i];n?.has(s)?(s.f|=Se,Yr(s,document.createDocumentFragment())):F(e[i],r)}}var Je;function yo(t,e,r,n,i,s=null){var a=t,l=new Map;if((e&4)!==0){var f=t;a=q?H(At(f)):f.appendChild(tt())}q&&vr();var u=null,c=Br(()=>{var g=r();return qn(g)?g:g==null?[]:cr(g)}),v,d=new Map,h=!0;function w(g){!(p.effect.f&16384)&&(p.pending.delete(g),p.fallback=u,bo(p,v,a,e,n),u!==null&&(v.length===0?(u.f&33554432)===0?lr(u):(u.f^=Se,Me(u,null,a)):Gt(u,()=>{u=null})))}function M(g){p.pending.delete(g)}var p={effect:Xr(()=>{v=_(c);var g=v.length;let j=!1;q&&An(a)==="[!"!=(g===0)&&(a=tr(),H(a),Et(!1),j=!0);for(var P=new Set,E=$,Z=oi(),m=0;m<g;m+=1){q&&W.nodeType===8&&W.data==="]"&&(a=W,j=!0,Et(!1));var O=v[m],C=n(O,m),V=h?null:l.get(C);V?(V.v&&ce(V.v,O),V.i&&ce(V.i,m),Z&&E.unskip_effect(V.e)):(V=$o(l,h?a:Je??(Je=tt()),O,C,m,i,e,r),h||(V.e.f|=Se),l.set(C,V)),P.add(C)}if(g===0&&s&&!u&&(h?u=rt(()=>s(a)):(u=rt(()=>s(Je??(Je=tt()))),u.f|=Se)),g>P.size&&hs("","",""),q&&g>0&&H(tr()),!h)if(d.set(E,P),Z){for(const[J,pr]of l)P.has(J)||E.skip_effect(pr.e);E.oncommit(w),E.ondiscard(M)}else w(E);j&&Et(!0),_(c)}),flags:e,items:l,pending:d,outrogroups:null,fallback:u};h=!1,q&&(a=W)}function _e(t){for(;t!==null&&(t.f&32)===0;)t=t.next;return t}function bo(t,e,r,n,i){var s=(n&8)!==0,a=e.length,l=t.items,f=_e(t.effect.first),u,c=null,v,d=[],h=[],w,M,p,g;if(s)for(g=0;g<a;g+=1)w=e[g],M=i(w,g),p=l.get(M).e,!(p.f&33554432)&&(p.nodes?.a?.measure(),(v??(v=new Set)).add(p));for(g=0;g<a;g+=1){if(w=e[g],M=i(w,g),p=l.get(M).e,t.outrogroups!==null)for(const J of t.outrogroups)J.pending.delete(p),J.done.delete(p);if(p.f&8192&&(lr(p),s&&(p.nodes?.a?.unfix(),(v??(v=new Set)).delete(p))),(p.f&33554432)!==0)if(p.f^=Se,p===f)Me(p,null,r);else{var j=c?c.next:f;p===t.effect.last&&(t.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Pt(t,c,p),Pt(t,p,j),Me(p,j,r),c=p,d=[],h=[],f=_e(c.next);continue}if(p!==f){if(u!==void 0&&u.has(p)){if(d.length<h.length){var P=h[0],E;c=P.prev;var Z=d[0],m=d[d.length-1];for(E=0;E<d.length;E+=1)Me(d[E],P,r);for(E=0;E<h.length;E+=1)u.delete(h[E]);Pt(t,Z.prev,m.next),Pt(t,c,Z),Pt(t,m,P),f=P,c=m,g-=1,d=[],h=[]}else u.delete(p),Me(p,f,r),Pt(t,p.prev,p.next),Pt(t,p,c===null?t.effect.first:c.next),Pt(t,c,p),c=p;continue}for(d=[],h=[];f!==null&&f!==p;)(u??(u=new Set)).add(f),h.push(f),f=_e(f.next);if(f===null)continue}!(p.f&33554432)&&d.push(p),c=p,f=_e(p.next)}if(t.outrogroups!==null){for(const J of t.outrogroups)J.pending.size===0&&(Dr(t,cr(J.done)),t.outrogroups?.delete(J));t.outrogroups.size===0&&(t.outrogroups=null)}if(f!==null||u!==void 0){var O=[];if(u!==void 0)for(p of u)!(p.f&8192)&&O.push(p);for(;f!==null;)!(f.f&8192)&&f!==t.fallback&&O.push(f),f=_e(f.next);var C=O.length;if(C>0){var V=(n&4)!==0&&a===0?r:null;if(s){for(g=0;g<C;g+=1)O[g].nodes?.a?.measure();for(g=0;g<C;g+=1)O[g].nodes?.a?.fix()}wo(t,O,V)}}s&&bt(()=>{if(v!==void 0)for(p of v)p.nodes?.a?.apply()})}function $o(t,e,r,n,i,s,a,l){var f=(a&1)!==0?(a&16)===0?ti(r,!1,!1):Qt(r):null,u=(a&2)!==0?Qt(i):null;return{v:f,i:u,e:rt(()=>(s(e,f??r,u??i,l),()=>{t.delete(n)}))}}function Me(t,e,r){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end,s=e&&(e.f&33554432)===0?e.nodes.start:r;n!==null;){var a=_t(n);if(s.before(n),n===i)return;n=a}}function Pt(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function _o(t,e){Bs(()=>{t=x?.parent?.nodes?.start??t;var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=Ur("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}var ko=Symbol("is custom element"),xo=Symbol("is html"),Mo=os?"link":"LINK";function So(t){if(q){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;It(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var i=t.checked;It(t,"checked",null),t.checked=i}}};t[Ee]=r,bt(r),Fn()}}function It(t,e,r,n){var i=Eo(t);q&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Mo)||i[e]!==(i[e]=r)&&(e==="loading"&&(t[ns]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Wo(t).has(e)?t[e]=r:t.setAttribute(e,r))}function Eo(t){return t[Wr]??(t[Wr]={[ko]:t.nodeName.includes("-"),[xo]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var xn=new Map;function Wo(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,s=Element.prototype;s!==i;){n=Ui(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=Tn(i)}return r}function qo(t,e,r=e){var n=new WeakSet;Ms(t,"input",async i=>{var s=i?t.defaultValue:t.value;if(s=xr(t)?Mr(s):s,r(s),$!==null&&n.add($),await Xs(),s!==(s=e())){var a=t.selectionStart,l=t.selectionEnd,f=t.value.length;if(t.value=s??"",l!==null){var u=t.value.length;a===l&&l===f&&u>f?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=a,t.selectionEnd=Math.min(l,u))}}}),(q&&t.defaultValue!==t.value||Oe(e)==null&&t.value)&&(r(xr(t)?Mr(t.value):t.value),$!==null&&n.add($)),Zr(()=>{var i=e();if(t===document.activeElement){var s=de?rr:$;if(n.has(s))return}xr(t)&&i===Mr(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function xr(t){var e=t.type;return e==="number"||e==="range"}function Mr(t){return t===""?null:+t}var Mi,se=new WeakMap,fr=new WeakMap,Sr=new WeakMap,Mn=new WeakSet,Si=class{constructor(t){Jr(this,Mn),b(this,se,new WeakMap),b(this,fr,void 0),b(this,Sr,void 0),y(Sr,this,t)}observe(t,e){var r=o(se,this).get(t)||new Set;return r.add(e),o(se,this).set(t,r),k(Mn,this,To).call(this).observe(t,o(Sr,this)),()=>{var n=o(se,this).get(t);n.delete(e),n.size===0&&(o(se,this).delete(t),o(fr,this).unobserve(t))}}};Mi=Si;function To(){return o(fr,this)??y(fr,this,new ResizeObserver(t=>{for(var e of t){Mi.entries.set(e.target,e);for(var r of o(se,this).get(e.target)||[])r(e)}}))}T(Si,"entries",new WeakMap);var Ue=!1;function Po(t){var e=Ue;try{return Ue=!1,[t(),Ue]}finally{Ue=e}}function St(t,e,r,n){var i=!dr||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,l=n,f=!0,u=void 0,c=()=>a&&i?(u??(u=Le(n)),_(u)):(f&&(f=!1,l=a?Oe(n):n),l);let v;if(s){var d=Ke in t||jn in t;v=Ht(t,e)?.set??(d&&e in t?E=>t[e]=E:void 0)}var h,w=!1;s?[h,w]=Po(()=>t[e]):h=t[e],h===void 0&&n!==void 0&&(h=c(),v&&(i&&ws(e),v(h)));var M;if(i?M=()=>{var E=t[e];return E===void 0?c():(f=!0,E)}:M=()=>{var E=t[e];return E!==void 0&&(l=void 0),E===void 0?l:E},i&&(r&4)===0)return M;if(v){var p=t.$$legacy;return(function(E,Z){return arguments.length>0?((!i||!Z||p||w)&&v(Z?M():E),E):M()})}var g=!1,j=((r&1)!==0?Le:Br)(()=>(g=!1,M()));s&&_(j);var P=x;return(function(E,Z){if(arguments.length>0){const m=Z?_(j):i&&s?Vt(E):E;return Y(j,m),g=!0,l!==void 0&&(l=m),E}return qt&&g||(P.f&16384)!==0?j.v:_(j)})}function Lo(t){return new jo(t)}var zt=new WeakMap,vt=new WeakMap,jo=class{constructor(t){b(this,zt,void 0),b(this,vt,void 0);var e=new Map,r=(i,s)=>{var a=ti(s,!1,!1);return e.set(i,a),a};const n=new Proxy({...t.props||{},$$events:{}},{get(i,s){return _(e.get(s)??r(s,Reflect.get(i,s)))},has(i,s){return s===jn?!0:(_(e.get(s)??r(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,a){return Y(e.get(s)??r(s,a),a),Reflect.set(i,s,a)}});y(vt,this,(t.hydrate?po:ki)(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)&&ot(),y(zt,this,n.$$events);for(const i of Object.keys(o(vt,this)))i==="$set"||i==="$destroy"||i==="$on"||Te(this,i,{get(){return o(vt,this)[i]},set(s){o(vt,this)[i]=s},enumerable:!0});o(vt,this).$set=i=>{Object.assign(n,i)},o(vt,this).$destroy=()=>{go(o(vt,this))}}$set(t){o(vt,this).$set(t)}$on(t,e){o(zt,this)[t]=o(zt,this)[t]||[];const r=(...n)=>e.call(this,...n);return o(zt,this)[t].push(r),()=>{o(zt,this)[t]=o(zt,this)[t].filter(n=>n!==r)}}$destroy(){o(vt,this).$destroy()}},Ei;typeof HTMLElement=="function"&&(Ei=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 s=Ur("slot");n!=="default"&&(s.name=n),st(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ao(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]=Xe(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=Lo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Fs(()=>{Zr(()=>{this.$$r=!0;for(const n of Ge(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Xe(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 s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Xe(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 Ge(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Xe(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 Ao(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Oo(t,e,r,n,i,s){let a=class extends Ei{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Ge(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Ge(e).forEach(l=>{Te(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Xe(l,f,e),this.$$d[l]=f;var u=this.$$c;u&&(Ht(u,l)?.get?u[l]=f:u.$set({[l]:f}))}})}),n.forEach(l=>{Te(a.prototype,l,{get(){return this.$$c?.[l]}})}),s&&(a=s(a)),t.element=a,a}var Wi="picture dictionary";function No(t){const e=t.trim();return e?e.startsWith("//")||/^https:\/\//iu.test(e)?!0:e.startsWith("/")?zo(e):!1:!1}var Sn="https://pie-picture-dictionary.invalid";function zo(t){try{return new URL(t,Sn).origin===Sn}catch{return!1}}function En(t){return typeof t=="string"?t.trim():""}function Ro(t){if(!t||typeof t!="object")return null;const e=t,r=En(e.url)||En(e.image);return No(r)?{url:r,caption:typeof e.caption=="string"&&e.caption.trim()?e.caption.trim():void 0,width:typeof e.width=="number"?e.width:void 0,height:typeof e.height=="number"?e.height:void 0}:null}function Do(t){return Fi(t,{serviceLabel:Wi,keys:["pictures","images"],toItem:Ro})}function Co(t){return Vi({...t,serviceLabel:Wi,readResponse:Do})}var Io=Ot('<p class="pie-tool-picture-dictionary__notice svelte-rpoqcp">No picture dictionary service is configured for this assessment.</p>'),Fo=Ot('<p class="pie-tool-picture-dictionary__notice svelte-rpoqcp">Type a word to see a picture of it.</p>'),Wn=Ot('<p class="pie-tool-picture-dictionary__notice svelte-rpoqcp"> </p>'),Vo=Ot('<p class="pie-tool-picture-dictionary__error svelte-rpoqcp" role="alert"> </p>'),Bo=Ot('<span class="pie-tool-picture-dictionary__caption svelte-rpoqcp" aria-hidden="true"> </span>'),Ho=Ot('<li class="pie-tool-picture-dictionary__cell svelte-rpoqcp"><img class="pie-tool-picture-dictionary__image svelte-rpoqcp" loading="lazy" decoding="async"/> <!></li>'),Jo=Ot('<ul class="pie-tool-picture-dictionary__grid svelte-rpoqcp"></ul>'),Uo=Ot('<div class="pie-tool-picture-dictionary svelte-rpoqcp" role="dialog" aria-label="Picture Dictionary"><form class="pie-tool-picture-dictionary__search svelte-rpoqcp"><label class="pie-tool-picture-dictionary__label svelte-rpoqcp" for="pie-tool-picture-dictionary-term">Word or phrase</label> <div class="pie-tool-picture-dictionary__row svelte-rpoqcp"><input id="pie-tool-picture-dictionary-term" class="pie-tool-picture-dictionary__input svelte-rpoqcp" type="text" autocomplete="off" spellcheck="false"/> <button class="pie-tool-picture-dictionary__submit svelte-rpoqcp" type="submit">Look up</button></div></form> <div class="pie-tool-picture-dictionary__status svelte-rpoqcp" role="status" aria-live="polite"> </div> <div class="pie-tool-picture-dictionary__body svelte-rpoqcp"><!></div></div>'),Ko={hash:"svelte-rpoqcp",code:`.pie-tool-picture-dictionary.svelte-rpoqcp {display:flex;flex-direction:column;gap:0.5rem;height:100%;min-height:0;padding:0.75rem;box-sizing:border-box;color:var(--pie-text, #1f2937);background:var(--pie-background, #fff);font-size:0.95rem;}.pie-tool-picture-dictionary__search.svelte-rpoqcp {display:flex;flex-direction:column;gap:0.25rem;}.pie-tool-picture-dictionary__label.svelte-rpoqcp {font-size:0.8rem;font-weight:600;}.pie-tool-picture-dictionary__row.svelte-rpoqcp {display:flex;gap:0.5rem;}.pie-tool-picture-dictionary__input.svelte-rpoqcp {flex:1 1 auto;min-width:0;padding:0.35rem 0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background, #fff);color:inherit;font:inherit;}.pie-tool-picture-dictionary__submit.svelte-rpoqcp {flex:0 0 auto;padding:0.35rem 0.75rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-secondary-background, #f9fafb);color:inherit;font:inherit;cursor:pointer;}.pie-tool-picture-dictionary__submit.svelte-rpoqcp:disabled {opacity:0.5;cursor:not-allowed;}.pie-tool-picture-dictionary__input.svelte-rpoqcp:focus-visible,
|
|
1
|
+
import{t as Fi}from"./attribute-coercion-b93b482c.js";import{a as Ii,i as Vi,n as Bi,r as Ui,t as Hi}from"./term-lookup-632cf6b1.js";if(typeof window<"u"){var an,ln;((an=(ln=window).__svelte??(ln.__svelte={})).v??(an.v=new Set)).add("5")}var Lt={},N=Symbol("uninitialized"),Tn=Array.isArray,Ki=Array.prototype.indexOf,Ye=Array.prototype.includes,hr=Array.from,tr=Object.keys,je=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Ji=Object.getOwnPropertyDescriptors,Qi=Object.prototype,Xi=Array.prototype,Pn=Object.getPrototypeOf,un=Object.isExtensible,Zi=()=>{};function Gi(t){for(var e=0;e<t.length;e++)t[e]()}function jn(){var t,e;return{promise:new Promise((r,n)=>{t=r,e=n}),resolve:t,reject:e}}function Ae(t){"@babel/helpers - typeof";return Ae=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},Ae(t)}function Yi(t,e){if(Ae(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ae(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ts(t){var e=Yi(t,"string");return Ae(e)=="symbol"?e:e+""}function P(t,e,r){return(e=ts(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rt=1024,ht=2048,Yt=4096,Fr=8192,An=16384,Ir=32768,Er=1<<25,Vr=65536,pe=1<<19,es=1<<20,Ee=1<<25,fn=1<<21,rs=1<<22,er=1<<23,Xe=Symbol("$state"),Ln=Symbol("component"),On=Symbol("legacy props"),ns=Symbol(""),qr=Symbol("attributes"),is=Symbol("class"),ss=Symbol("style"),Ze=Symbol("text"),qe=Symbol("form reset"),ze=new class extends Error{constructor(...t){super(...t),P(this,"name","StaleReactionError"),P(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},os=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function as(){console.warn("https://svelte.dev/e/derived_inert")}function vr(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ls(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var q=!1;function Wt(t){q=t}var E;function H(t){if(t===null)throw vr(),Lt;return E=t}function dr(){return H(_t(E))}function zt(t){if(q){if(_t(E)!==null)throw vr(),Lt;E=t}}function us(t=1){if(q){for(var e=t,r=E;e--;)r=_t(r);E=r}}function rr(t=!0){for(var e=0,r=E;;){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=_t(r);t&&r.remove(),r=i}}function Br(t){if(!t||t.nodeType!==8)throw vr(),Lt;return t.data}function Rn(t){return t===this.v}function fs(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Cn(t){return!fs(t,this.v)}function cs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hs(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function vs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ds(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ps(t){throw new Error("https://svelte.dev/e/effect_orphan")}function gs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ms(){throw new Error("https://svelte.dev/e/hydration_failed")}function ys(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ws(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function bs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $s(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _s(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var ge=!1,pr=!1,z=null;function ce(t){z=t}function Nn(t,e=!1,r){z={p:z,i:!1,c:null,e:null,s:t,x:null,r:M,l:pr&&!e?{s:null,u:null,$:[]}:null}}function zn(t){var e=z,r=e.e;if(r!==null){e.e=null;for(var n of r)ui(n)}return t!==void 0&&(e.x=t),e.i=!0,z=e.p,Dn(t)}function Dn(t={}){return je(t,Ln,{value:!0}),t}function De(){return!pr||z!==null&&z.l===null}var Vt=[];function Fn(){var t=Vt;Vt=[],Gi(t)}function bt(t){if(Vt.length===0&&!Te){var e=Vt;queueMicrotask(()=>{e===Vt&&Fn()})}Vt.push(t)}function ks(){for(;Vt.length>0;)Fn()}var xs=~(ht|Yt|rt);function O(t,e){t.f=t.f&xs|e}function Ur(t){(t.f&512)!==0||t.deps===null?O(t,rt):O(t,Yt)}function In(t,e,r){(t.f&2048)!==0?e.add(t):t.f&4096&&r.add(t),O(t,rt)}var cn=!1;function Vn(){cn||(cn=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e[qe]?.()})},{capture:!0}))}function me(t){var e=S,r=M;it(null),$t(null);try{return t()}finally{it(e),$t(r)}}function Ms(t,e,r,n=r){t.addEventListener(e,()=>me(r));const i=t[qe];i?t[qe]=()=>{i(),n(!0)}:t[qe]=()=>n(!0),Vn()}function Ss(t,e,r,n){const i=De()?Le:Hr;var s=t.filter(p=>!p.settled),a=e.map(i);if(r.length===0&&s.length===0){n(a);return}var l=M,f=Ws(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(p=>p.promise)):null;function c(p){if((l.f&16384)===0){f();try{n([...a,...p])}catch(y){wt(y,l)}nr()}}var v=Bn();if(r.length===0){u.then(()=>c([])).finally(v);return}function h(){Promise.all(r.map(p=>Es(p))).then(c).catch(p=>wt(p,l)).finally(v)}u?u.then(()=>{if((l.f&16384)!==0){v();return}f(),h(),nr()}):h()}function Ws(){var t=M,e=S,r=z,n=x;return function(i=!0){$t(t),it(e),ce(r),i&&!(t.f&16384)&&(n?.activate(),n?.apply())}}function nr(t=!0){$t(null),it(null),ce(null),t&&x?.deactivate()}function Bn(){var t=M,e=t.b,r=x,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 Le(t){var e=2|ht;return M!==null&&(M.f|=pe),{ctx:z,deps:null,effects:null,equals:Rn,f:e,fn:t,reactions:null,rv:0,v:N,wv:0,parent:M,ac:null}}var Me=Symbol("obsolete");function Es(t,e,r){let n=M;n===null&&cs();var i=void 0,s=Gt(N),a=!S,l=new Set;return Us(()=>{var f=M,u=jn();i=u.promise;try{Promise.resolve(t()).then(u.resolve,p=>{p!==ze&&u.reject(p)}).finally(nr)}catch(p){u.reject(p),nr()}var c=x;if(a){if((f.f&32768)!==0)var v=Bn();if(n.b?.is_rendered())c.async_deriveds.get(f)?.reject(Me);else for(const p of l.values())p.reject(Me);l.add(u),c.async_deriveds.set(f,u)}const h=(p,y=void 0)=>{v?.(),l.delete(u),y!==Me&&(c.activate(),y?(s.f|=er,ve(s,y)):(s.f&8388608&&(s.f^=er),ve(s,p)),c.deactivate())};u.promise.then(h,p=>h(null,p||"unknown"))}),li(()=>{for(const f of l)f.reject(Me)}),new Promise(f=>{function u(c){function v(){c===i?f(s):u(i)}c.then(v,v)}u(i)})}function hn(t){const e=Le(t);return di(e),e}function Hr(t){const e=Le(t);return e.equals=Cn,e}function qs(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)I(e[r])}}function Kr(t){var e,r=M,n=t.parent;if(!qt&&n!==null&&t.v!==N&&(n.f&24576)!==0)return as(),t.v;$t(n);try{qs(t),e=yi(t)}finally{$t(r)}return e}function Un(t){var e=Kr(t);if(!t.equals(e)&&(t.wv=gi(),(!x?.is_fork||t.deps===null)&&(x!==null?(x.capture(t,e,!0),Kt?.capture(t,e,!0)):t.v=e,t.deps===null))){O(t,rt);return}qt||(F!==null?(Zr()||x?.is_fork)&&F.set(t,e):Ur(t))}function Ts(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&me(()=>{e.ac.abort(ze),e.ac=null}),e.fn!==null&&(e.teardown=Zi),Re(e,0),tn(e))}function Hn(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&de(e)}function Kn(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jr(t,e){Kn(t,e),e.add(t)}function $(t,e,r){Kn(t,e),e.set(t,r)}function w(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 m(t,e,r){return t.set(w(t,e),r),r}function o(t,e){return t.get(w(t,e))}var Jn,Tr=null,ie=null,x=null,Kt=null,F=null,Pr=null,Te=!1,yr=!1,Oe=null,ir=null,Qn=0,Ps=1,jr=new WeakMap,Jt=new WeakMap,ue=new WeakMap,sr=new WeakMap,Ie=new WeakMap,se=new WeakMap,Dt=new WeakMap,Se=new WeakMap,gt=new WeakMap,vn=new WeakMap,he=new WeakMap,Et=new WeakMap,jt=new WeakMap,wr=new WeakMap,Ve=new WeakMap,C=new WeakSet,te=class Xn{constructor(){Jr(this,C),P(this,"id",Ps++),$(this,jr,!1),P(this,"linked",!0),$(this,Jt,null),$(this,ue,null),P(this,"async_deriveds",new Map),P(this,"current",new Map),P(this,"previous",new Map),$(this,sr,new Set),$(this,Ie,new Set),$(this,se,0),$(this,Dt,new Map),$(this,Se,null),$(this,gt,[]),$(this,vn,[]),$(this,he,new Set),$(this,Et,new Set),$(this,jt,new Map),$(this,wr,new Set),P(this,"is_fork",!1),$(this,Ve,!1),ie===null?Tr=ie=this:(m(ue,ie,this),m(Jt,this,ie)),ie=this}skip_effect(e){o(jt,this).has(e)||o(jt,this).set(e,{d:[],m:[]}),o(wr,this).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=o(jt,this).get(e);if(n){o(jt,this).delete(e);for(var i of n.d)O(i,ht),r(i);for(i of n.m)O(i,Yt),r(i)}o(wr,this).add(e)}capture(e,r,n=!1){e.v!==N&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[r,n]),F?.set(e,r)),this.is_fork||(e.v=r)}activate(){x=this}deactivate(){x=null,F=null}flush(){try{yr=!0,x=this,w(C,this,or).call(this)}finally{Qn=0,Pr=null,Oe=null,ir=null,yr=!1,x=null,F=null,yt.clear()}}discard(){for(const e of o(Ie,this))e(this);o(Ie,this).clear();for(const e of this.async_deriveds.values())e.reject(Me);w(C,this,ar).call(this),o(Se,this)?.resolve()}register_created_effect(e){o(vn,this).push(e)}increment(e,r){if(m(se,this,o(se,this)+1),e){let n=o(Dt,this).get(r)??0;o(Dt,this).set(r,n+1)}}decrement(e,r){if(m(se,this,o(se,this)-1),e){let n=o(Dt,this).get(r)??0;n===1?o(Dt,this).delete(r):o(Dt,this).set(r,n-1)}o(Ve,this)||(m(Ve,this,!0),bt(()=>{m(Ve,this,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)o(he,this).add(n);for(const n of r)o(Et,this).add(n);e.clear(),r.clear()}oncommit(e){o(sr,this).add(e)}ondiscard(e){o(Ie,this).add(e)}settled(){return(o(Se,this)??m(Se,this,jn())).promise}static ensure(){if(x===null){const e=x=new Xn;!yr&&!Te&&bt(()=>{o(jr,e)||e.flush()})}return x}apply(){if(!ge||!this.is_fork&&o(Jt,this)===null&&o(ue,this)===null){F=null;return}F=new Map;for(const[r,[n]]of this.current)F.set(r,n);for(let r=Tr;r!==null;r=o(ue,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)F.has(n)||F.set(n,i)}}schedule(e){if(Pr=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}o(gt,this).push(e)}};Jn=te;function dn(){if(this.is_fork)return!0;for(const r of o(Dt,this).keys()){for(var t=r,e=!1;t.parent!==null;){if(o(jt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function js(){var t=[];for(const i of o(gt,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^=rt}}r||t.push(e)}return m(gt,this,[]),t}function or(){m(jr,this,!0);for(const a of o(he,this))o(Et,this).delete(a),O(a,ht),this.schedule(a);for(const a of o(Et,this))O(a,Yt),this.schedule(a);this.apply();for(var t=Oe=[],e=[],r=ir=[];o(gt,this).length>0;){Qn++>1e3&&(w(C,this,ar).call(this),Rs());for(const a of w(C,this,js).call(this))try{w(C,this,As).call(this,a,t,e)}catch(l){throw Yn(a),w(C,this,dn).call(this)||this.discard(),l}}if(x=null,r.length>0){var n=Jn.ensure();for(const a of r)n.schedule(a)}if(Oe=null,ir=null,w(C,this,dn).call(this)){w(C,this,Be).call(this,e),w(C,this,Be).call(this,t);for(const[a,l]of o(jt,this))Gn(a,l);r.length>0&&w(C,x,or).call(x);return}const i=w(C,this,Ls).call(this);if(i){w(C,this,Be).call(this,e),w(C,this,Be).call(this,t),w(C,i,Os).call(i,this);return}o(he,this).clear(),o(Et,this).clear();for(const a of o(sr,this))a(this);o(sr,this).clear(),Kt=this,pn(e),pn(t),Kt=null,o(Se,this)?.resolve();var s=x;if(o(se,this)===0&&(o(gt,this).length===0||s!==null)&&w(C,this,ar).call(this),o(gt,this).length>0)if(s!==null){for(const a of o(gt,this))o(gt,s).push(a);m(gt,this,[])}else s=this;s!==null&&(yt.clear(),w(C,s,or).call(s))}function As(t,e,r){t.f^=rt;for(var n=t.first;n!==null;){var i=n.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||o(jt,this).has(n))&&n.fn!==null){s?n.f^=rt:(i&4)!==0?e.push(n):ge&&(i&16777224)!==0?r.push(n):Fe(n)&&(i&16&&o(Et,this).add(n),de(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 Ls(){for(var t=o(Jt,this);t!==null;){if(!t.is_fork){for(const[e,[,r]]of this.current)if(t.current.has(e)&&!r)return t}t=o(Jt,t)}return null}function Os(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(o(he,t),o(Et,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 s=a;i&4194320&&!this.async_deriveds.has(s)&&(o(Et,this).delete(s),O(s,ht),this.schedule(s))}}};for(const r of this.current.keys())e(r);this.oncommit(()=>t.discard()),w(C,t,ar).call(t),x=this,w(C,this,or).call(this)}function Be(t){for(var e=0;e<t.length;e+=1)In(t[e],o(he,this),o(Et,this))}function ar(){if(this.linked){var t=o(Jt,this),e=o(ue,this);t===null?Tr=e:m(ue,t,e),e===null?ie=t:m(Jt,e,t),this.linked=!1}}function G(t){var e=Te,r=Kt;Kt=null,Te=!0;try{var n;for(t&&(G(),n=t());;){if(ks(),x===null)return n;x.flush()}}finally{Te=e,Kt=r}}function Rs(){try{gs()}catch(t){wt(t,Pr)}}var pt=null;function pn(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&24576)===0&&Fe(n)&&(pt=new Set,de(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&ci(n),pt?.size>0)){yt.clear();for(const i of pt){if((i.f&24576)!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)pt.has(a)&&(pt.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];!(f.f&24576)&&de(f)}}pt.clear()}}pt=null}}function Zn(t){x.schedule(t)}function Gn(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),O(t,rt);for(var r=t.first;r!==null;)Gn(r,e),r=r.next}}function Yn(t){O(t,rt);for(var e=t.first;e!==null;)Yn(e),e=e.next}var lr=new Set,yt=new Map,ti=!1;function Gt(t,e){return{f:0,v:t,reactions:null,equals:Rn,rv:0,wv:0}}function dt(t,e){const r=Gt(t,e);return di(r),r}function ei(t,e=!1,r=!0){const n=Gt(t);if(e||(n.equals=Cn),pr&&r&&z!==null&&z.l!==null){var i;((i=z.l).s??(i.s=[])).push(n)}return n}function tt(t,e,r=!1){return S!==null&&(!at||S.f&131072)&&De()&&S.f&4325394&&(ut===null||!ut.has(t))&&$s(),ve(t,r?Bt(e):e,ir)}var Ft=null,Ar=0;function ve(t,e,r=null){if(!t.equals(e)){qt?yt.set(t,e):yt.has(t)||yt.set(t,t.v);var n=te.ensure();if(n.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Kr(i),F===null&&Ur(i)}t.wv=gi(),Ft=null,Ar=0,ri(t,ht,r),Ft=null,De()&&M!==null&&M.f&1024&&!(M.f&96)&&(Y===null?Qs([t]):Y.push(t)),!n.is_fork&&lr.size>0&&!ti&&Cs()}return e}function Cs(){ti=!1;for(const t of lr){t.f&1024&&O(t,Yt);let e;try{e=Fe(t)}catch{e=!0}e&&de(t)}lr.clear()}function Pe(t){tt(t,t.v+1)}function ri(t,e,r){var n=t.reactions;if(n!==null){var i=De(),s=n.length;if(Ar+=s,Ar>1e5&&Ft===null&&(Ft=new Set),Ft!==null){if(Ft.has(t))return;Ft.add(t)}for(var a=0;a<s;a++){var l=n[a],f=l.f;if(!(!i&&l===M)){var u=(f&ht)===0;if(u&&O(l,e),(f&131072)!==0)lr.add(l);else if((f&2)!==0){var c=l;F?.delete(c),ri(c,Yt,r)}else if(u){var v=l;f&16&&pt!==null&&pt.add(v),r!==null?r.push(v):Zn(v)}}}}}function Bt(t){if(typeof t!="object"||t===null||Xe in t||Ln in t)return t;const e=Pn(t);if(e!==Qi&&e!==Xi)return t;var r=new Map,n=Tn(t),i=dt(0),s=null,a=Qt,l=f=>{if(Qt===a)return f();var u=S,c=Qt;it(null),wn(a);var v=f();return it(u),wn(c),v};return n&&r.set("length",dt(t.length,s)),new Proxy(t,{defineProperty(f,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&ws();var v=r.get(u);return v===void 0?l(()=>{var h=dt(c.value,s);return r.set(u,h),h}):tt(v,c.value,!0),!0},deleteProperty(f,u){var c=r.get(u);if(c===void 0){if(u in f){const v=l(()=>dt(N,s));r.set(u,v),Pe(i)}}else tt(c,N),Pe(i);return!0},get(f,u,c){if(u===Xe)return t;var v=r.get(u),h=u in f;if(v===void 0&&(!h||Ht(f,u)?.writable)&&(v=l(()=>dt(Bt(h?f[u]:N),s)),r.set(u,v)),v!==void 0){var p=_(v);return p===N?void 0:p}return Reflect.get(f,u,c)},getOwnPropertyDescriptor(f,u){this.has?.(f,u);var c=Reflect.getOwnPropertyDescriptor(f,u),v=r.get(u);if(v!==void 0){var h=_(v);if(h===N)return;if(c&&"value"in c)c.value=h;else return{enumerable:!0,configurable:!0,value:h,writable:!0}}return c},has(f,u){if(u===Xe)return!0;var c=r.get(u),v=c!==void 0&&c.v!==N||Reflect.has(f,u);return(c!==void 0||M!==null&&(!v||Ht(f,u)?.writable))&&(c===void 0&&(c=l(()=>dt(v?Bt(f[u]):N,s)),r.set(u,c)),_(c)===N)?!1:v},set(f,u,c,v){var h=r.get(u),p=u in f;if(n&&u==="length")for(var y=c;y<h.v;y+=1){var k=r.get(y+"");k!==void 0?tt(k,N):y in f&&(k=l(()=>dt(N,s)),r.set(y+"",k))}if(h===void 0)(!p||Ht(f,u)?.writable)&&(h=l(()=>dt(void 0,s)),tt(h,Bt(c)),r.set(u,h));else{p=h.v!==N;var d=l(()=>Bt(c));tt(h,d)}var b=Reflect.getOwnPropertyDescriptor(f,u);if(b?.set&&b.set.call(v,c),!p){if(n&&typeof u=="string"){var L=r.get("length"),j=Number(u);Number.isInteger(j)&&j>=L.v&&tt(L,j+1)}Pe(i)}return!0},ownKeys(f){_(i);var u=Reflect.ownKeys(f).filter(h=>{var p=r.get(h);return p===void 0||p.v!==N});for(var[c,v]of r)v.v!==N&&!(c in f)&&u.push(c);return u},setPrototypeOf(){bs()}})}var gn,ni,ii,si;function Lr(){if(gn===void 0){gn=window,ni=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;ii=Ht(e,"firstChild").get,si=Ht(e,"nextSibling").get,un(t)&&(t[is]=void 0,t[qr]=null,t[ss]=void 0,t.__e=void 0),un(r)&&(r[Ze]=void 0)}}function et(t=""){return document.createTextNode(t)}function Ot(t){return ii.call(t)}function _t(t){return si.call(t)}function oe(t,e){if(!q)return Ot(t);var r=Ot(E);if(r===null)r=E.appendChild(et());else if(e&&r.nodeType!==3){var n=et();return r?.before(n),H(n),n}return e&&Xr(r),H(r),r}function Ns(t,e=!1){if(!q){var r=Ot(t);return r instanceof Comment&&r.data===""?_t(r):r}if(e){if(E?.nodeType!==3){var n=et();return E?.before(n),H(n),n}Xr(E)}return E}function be(t,e=!1){if(!q)return Ot(t);var r=oe(t,e);return zt(t),r}function $e(t,e=1,r=!1){let n=q?E:t;for(var i;e--;)i=n,n=_t(n);if(!q)return n;if(r){if(n?.nodeType!==3){var s=et();return n===null?i?.after(s):n.before(s),H(s),s}Xr(n)}return H(n),n}function oi(t){t.textContent=""}function ai(){return!ge||pt!==null?!1:(M.f&Ir)!==0}function Qr(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 Xr(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 zs(t){var e=M;if(e===null)return S.f|=er,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;wt(t,e)}function wt(t,e){if(t===Lt)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 Ds(t){M===null&&(S===null&&ps(t),ds()),qt&&vs(t)}function Fs(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function kt(t,e){var r=M;r!==null&&r.f&8192&&(t|=Fr);var n={ctx:z,deps:null,nodes:null,f:t|ht|512,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};x?.register_created_effect(n);var i=n;if((t&4)!==0)Oe!==null?Oe.push(n):te.ensure().schedule(n);else if(e!==null){try{de(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|=Vr))}if(i!==null&&(i.parent=r,r!==null&&Fs(i,r),S!==null&&(S.f&2)!==0&&(t&64)===0)){var s=S;(s.effects??(s.effects=[])).push(i)}return n}function Zr(){return S!==null&&!at}function li(t){const e=kt(8,null);return O(e,rt),e.teardown=t,e}function mn(t){Ds("$effect");var e=M.f;if(!S&&(e&32)!==0&&z!==null&&!z.i){var r=z;(r.e??(r.e=[])).push(t)}else return ui(t)}function ui(t){return kt(4|es,t)}function Is(t){te.ensure();const e=kt(64|pe,t);return()=>{I(e)}}function Vs(t){te.ensure();const e=kt(64|pe,t);return(r={})=>new Promise(n=>{r.outro?ee(e,()=>{I(e),n(void 0)}):(I(e),n(void 0))})}function Bs(t){return kt(4,t)}function Us(t){return kt(rs|pe,t)}function Gr(t,e=0){return kt(8|e,t)}function ne(t,e=[],r=[],n=[]){Ss(n,e,r,i=>{kt(8,()=>{t(...i.map(_))})})}function Yr(t,e=0){return kt(16|e,t)}function nt(t){return kt(32|pe,t)}function fi(t){var e=t.teardown;if(e!==null){const r=qt,n=S;yn(!0),it(null);try{e.call(null)}catch(i){wt(i,t.parent)}finally{yn(r),it(n)}}}function tn(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&me(()=>{i.abort(ze)});var n=r.next;(r.f&64)!==0?r.parent=null:I(r,e),r=n}}function Hs(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&&(Ks(t.nodes.start,t.nodes.end),r=!0),t.f|=Er,tn(t,e&&!r),Re(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();fi(t),t.f^=Er,t.f|=An;var i=t.parent;i!==null&&i.first!==null&&ci(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Ks(t,e){for(;t!==null;){var r=t===e?null:_t(t);t.remove(),t=r}}function ci(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 ee(t,e,r=!0){var n=[];t.f|=256,hi(t,n,!0);var i=()=>{r&&I(t),e&&e()},s=n.length;if(s>0){var a=()=>--s||i();for(var l of n)l.out(a)}else i()}function hi(t,e,r){if((t.f&8192)===0){t.f^=Fr;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 s=i.next;if((i.f&64)===0){var a=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;hi(i,e,a?r:!1)}i=s}}}function ur(t){t.f&=-257,vi(t,!0)}function vi(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Fr,!(t.f&1024)&&(O(t,ht),te.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;vi(r,i?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(const a of s)(a.is_global||e)&&a.in()}}function en(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:_t(r);e.append(r),r=i}}var Js=null,qt=!1;function yn(t){qt=t}var S=null,at=!1;function it(t){S=t}var M=null;function $t(t){M=t}var ut=null;function di(t){S!==null&&(S.f&2097152||S.f&2)&&(ut??(ut=new Set)).add(t)}var B=null,J=0,Y=null;function Qs(t){Y=t}var pi=1,Ut=0,Qt=Ut;function wn(t){Qt=t}function gi(){return++pi}function Fe(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 s=r[i];if(Fe(s)&&Un(s),s.wv>t.wv)return!0}e&512&&F===null&&O(t,rt)}return!1}function mi(t,e,r=!0){var n=t.reactions;if(n!==null&&!(!ge&&ut!==null&&ut.has(t)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&2)!==0?mi(s,e,!1):e===s&&(r?O(s,ht):s.f&1024&&O(s,Yt),Zn(s))}}function yi(t){var e=B,r=J,n=Y,i=S,s=ut,a=z,l=at,f=Qt,u=t.f;B=null,J=0,Y=null,S=(u&96)===0?t:null,ut=null,ce(t.ctx),at=!1,Qt=++Ut,t.ac!==null&&(me(()=>{t.ac.abort(ze)}),t.ac=null);try{t.f|=fn;var c=t.fn,v=c();t.f|=Ir;var h=bn(t);if(De()&&Y!==null&&!at&&h!==null&&(t.f&6146)===0)for(var p=0;p<Y.length;p++)mi(Y[p],t);if(i!==null&&i!==t){if(Ut++,i.deps!==null)for(let y=0;y<r;y+=1)i.deps[y].rv=Ut;if(e!==null)for(const y of e)y.rv=Ut;Y!==null&&(n===null?n=Y:n.push(...Y))}return t.f&8388608&&(t.f^=er),v}catch(y){return bn(t),zs(y)}finally{t.f^=fn,B=e,J=r,Y=n,S=i,ut=s,ce(a),at=l,Qt=f}}function bn(t){var e=t.deps,r=x?.is_fork;if(B!==null){var n;if(r||Re(t,J),e!==null&&J>0)for(e.length=J+B.length,n=0;n<B.length;n++)e[J+n]=B[n];else t.deps=e=B;if(Zr()&&(t.f&512)!==0)for(n=J;n<e.length;n++){var i;((i=e[n]).reactions??(i.reactions=[])).push(t)}}else!r&&e!==null&&J<e.length&&(Re(t,J),e.length=J);return e}function Xs(t,e){let r=e.reactions;if(r!==null){var n=Ki.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||!Ye.call(B,e))){var s=e;s.f&512&&(s.f^=512),s.v!==N&&Ur(s),s.ac!==null&&me(()=>{s.ac.abort(ze),s.ac=null,O(s,ht)}),Ts(s),Re(s,0)}}function Re(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xs(t,r[n])}function de(t){var e=t.f;if((e&16384)===0){O(t,rt);var r=M;M=t;try{(e&16777232)!==0?Hs(t):tn(t),fi(t);var n=yi(t);t.teardown=typeof n=="function"?n:null,t.wv=pi}finally{M=r}}}async function Zs(){if(ge)return new Promise(t=>{requestAnimationFrame(()=>t()),setTimeout(()=>t())});await Promise.resolve(),G()}function _(t){var e=(t.f&2)!==0;if(Js?.add(t),S!==null&&!at&&!(M!==null&&(M.f&16384)!==0)&&(ut===null||!ut.has(t))){var r=S.deps;if((S.f&2097152)!==0)t.rv<Ut&&(t.rv=Ut,B===null&&r!==null&&r[J]===t?J++:B===null?B=[t]:B.push(t));else{var n;(n=S).deps??(n.deps=[]),Ye.call(S.deps,t)||S.deps.push(t);var i=t.reactions;i===null?t.reactions=[S]:Ye.call(i,S)||i.push(S)}}if(qt&&yt.has(t))return yt.get(t);if(e){var s=t;if(qt){var a=s.v;return(!(s.f&1024)&&s.reactions!==null||bi(s))&&(a=Kr(s)),yt.set(s,a),a}var l=(s.f&512)===0&&!at&&S!==null&&(S.f&512)!==0,f=(s.f&Ir)===0;Fe(s)&&(l&&(s.f|=512),Un(s)),l&&!f&&(Hn(s),wi(s))}if(F?.has(t))return F.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function wi(t){if(t.f|=512,t.deps!==null)for(const r of t.deps){var e=r.reactions;e===null?r.reactions=[t]:Ye.call(e,t)||e.push(t),r.f&2&&!(r.f&512)&&(Hn(r),wi(r))}}function bi(t){if(t.v===N)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(yt.has(e)||(e.f&2)!==0&&bi(e))return!0;return!1}function Ce(t){var e=at;try{return at=!0,t()}finally{at=e}}var Ue=Symbol("events"),Gs=new Set,$n=new Set;function Ys(t,e,r,n={}){function i(s){if(n.capture||Or.call(e,s),!s.cancelBubble)return me(()=>r?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?(i.__removed=!1,bt(()=>{i.__removed||e.addEventListener(t,i,n)})):e.addEventListener(t,i,n),i}function to(t,e,r,n,i){var s={capture:n,passive:i},a=Ys(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&li(()=>{a.__removed=!0,e.removeEventListener(t,a,s)})}var br=null,$r=!1;function Or(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;br=t,$r||($r=!0,setTimeout(()=>{$r=!1,br=null}));var a=0,l=br===t&&t[Ue];if(l){var f=i.indexOf(l);if(f!==-1&&(e===document||e===window)){t[Ue]=e;return}var u=i.indexOf(e);if(u===-1)return;f<=u&&(a=f)}if(s=i[a]||t.target,s!==e){je(t,"currentTarget",{configurable:!0,get(){return s||r}});var c=S,v=M;it(null),$t(null);try{for(var h,p=[];s!==null&&s!==e;){try{var y=s[Ue]?.[n];y!=null&&(!s.disabled||t.target===s)&&y.call(s,t)}catch(k){h?p.push(k):h=k}if(t.cancelBubble)break;a++,s=a<i.length?i[a]:null}if(h){for(let k of p)queueMicrotask(()=>{throw k});throw h}}finally{t[Ue]=e,delete t.currentTarget,it(c),$t(v)}}}var eo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ro(t){return eo?.createHTML(t)??t}function no(t){var e=Qr("template");return e.innerHTML=ro(t.replaceAll("<!>","<!---->")),e.content}function fe(t,e){var r=M;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Rt(t,e){var r=(e&1)!==0,n=(e&2)!==0,i,s=!t.startsWith("<!>");return()=>{if(q)return fe(E,null),E;i===void 0&&(i=no(s?t:"<!>"+t),r||(i=Ot(i)));var a=n||ni?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Ot(a),f=a.lastChild;fe(l,f)}else fe(a,a);return a}}function io(){if(q)return fe(E,null),E;var t=document.createDocumentFragment(),e=document.createComment(""),r=et();return t.append(e,r),fe(e,r),t}function ot(t,e){if(q){var r=M;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=E),dr();return}t!==null&&t.before(e)}var so=["touchstart","touchmove"];function oo(t){return so.includes(t)}function ao(t){let e=0,r=Gt(0),n;return()=>{Zr()&&(_(r),Gr(()=>(e===0&&(n=Ce(()=>t(()=>Pe(r)))),e+=1,()=>{bt(()=>{e-=1,e===0&&(n?.(),n=void 0,Pe(r))})})))}}var lo=Vr|pe;function uo(t,e,r,n){new fo(t,e,r,n)}var ft=new WeakMap,Rr=new WeakMap,mt=new WeakMap,Ne=new WeakMap,U=new WeakMap,ct=new WeakMap,Q=new WeakMap,lt=new WeakMap,At=new WeakMap,ae=new WeakMap,Xt=new WeakMap,He=new WeakMap,Cr=new WeakMap,Nr=new WeakMap,Ct=new WeakMap,_n=new WeakMap,T=new WeakSet,fo=class{constructor(t,e,r,n){Jr(this,T),P(this,"parent",void 0),P(this,"is_pending",!1),P(this,"transform_error",void 0),$(this,ft,void 0),$(this,Rr,q?E:null),$(this,mt,void 0),$(this,Ne,void 0),$(this,U,void 0),$(this,ct,null),$(this,Q,null),$(this,lt,null),$(this,At,null),$(this,ae,0),$(this,Xt,0),$(this,He,!1),$(this,Cr,new Set),$(this,Nr,new Set),$(this,Ct,null),$(this,_n,ao(()=>(m(Ct,this,Gt(o(ae,this))),()=>{m(Ct,this,null)}))),m(ft,this,t),m(mt,this,e),m(Ne,this,i=>{var s=M;s.b=this,s.f|=128,r(i)}),this.parent=M.b,this.transform_error=n??this.parent?.transform_error??(i=>i),m(U,this,Yr(()=>{if(q){const i=Br(o(Rr,this));dr();const s=i==="[!";if(i.startsWith("[?")){const a=JSON.parse(i.slice(2));w(T,this,ho).call(this,a)}else s?w(T,this,vo).call(this):w(T,this,co).call(this)}else w(T,this,_i).call(this)},lo)),q&&m(ft,this,E)}defer_effect(t){In(t,o(Cr,this),o(Nr,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!o(mt,this).pending}update_pending_count(t,e){w(T,this,ki).call(this,t,e),m(ae,this,o(ae,this)+t),o(Ct,this)&&!o(He,this)&&(m(He,this,!0),bt(()=>{m(He,this,!1),o(Ct,this)&&ve(o(Ct,this),o(ae,this))}))}get_effect_pending(){return o(_n,this).call(this),_(o(Ct,this))}error(t){if(t===Lt||!o(mt,this).onerror&&!o(mt,this).failed)throw t;x?.is_fork?(o(ct,this)&&x.skip_effect(o(ct,this)),o(Q,this)&&x.skip_effect(o(Q,this)),o(lt,this)&&x.skip_effect(o(lt,this)),x.oncommit(()=>{w(T,this,Zt).call(this)||w(T,this,kn).call(this,t)})):w(T,this,kn).call(this,t)}};function co(){try{m(ct,this,nt(()=>o(Ne,this).call(this,o(ft,this))))}catch(t){this.error(t)}}function ho(t){const e=o(mt,this).failed,{reset:r,invoke_onerror:n}=w(T,this,$i).call(this,t);bt(n),e&&m(lt,this,nt(()=>{e(o(ft,this),()=>t,()=>r)}))}function $i(t){var e=!1,r=!1;const n=()=>{if(!w(T,this,Zt).call(this)){if(e){ls();return}e=!0,r&&_s(),o(lt,this)!==null&&ee(o(lt,this),()=>{m(lt,this,null)}),w(T,this,rn).call(this,()=>{w(T,this,_i).call(this)})}};return{reset:n,invoke_onerror:()=>{if(!w(T,this,Zt).call(this))try{r=!0,o(mt,this).onerror?.(t,n),r=!1}catch(i){wt(i,o(U,this)&&o(U,this).parent)}}}}function Zt(){return(o(U,this).f&(An|Er))!==0}function vo(){const t=o(mt,this).pending;t&&(this.is_pending=!0,m(Q,this,nt(()=>t(o(ft,this)))),bt(()=>{if(!w(T,this,Zt).call(this)){var e=m(At,this,document.createDocumentFragment()),r=et(),n=!1;if(e.append(r),m(ct,this,w(T,this,rn).call(this,()=>{try{return nt(()=>o(Ne,this).call(this,r))}catch(i){try{this.error(i),n=!0}catch(s){wt(s,o(U,this).parent)}return null}})),o(ct,this)===null){m(At,this,null),n&&w(T,this,fr).call(this,x);return}o(Xt,this)===0&&(o(ft,this).before(e),m(At,this,null),ee(o(Q,this),()=>{m(Q,this,null)}),w(T,this,fr).call(this,x))}}))}function _i(){try{if(this.is_pending=this.has_pending_snippet(),m(Xt,this,0),m(ae,this,0),m(ct,this,nt(()=>{o(Ne,this).call(this,o(ft,this))})),o(Xt,this)>0){var t=m(At,this,document.createDocumentFragment());en(o(ct,this),t);const e=o(mt,this).pending;m(Q,this,nt(()=>e(o(ft,this))))}else w(T,this,fr).call(this,x)}catch(e){this.error(e)}}function fr(t){this.is_pending=!1,t.transfer_effects(o(Cr,this),o(Nr,this))}function rn(t){var e=M,r=S,n=z;$t(o(U,this)),it(o(U,this)),ce(o(U,this).ctx);try{return te.ensure(),t()}finally{$t(e),it(r),ce(n)}}function ki(t,e){if(!this.has_pending_snippet()){if(this.parent){var r;w(T,r=this.parent,ki).call(r,t,e)}return}m(Xt,this,o(Xt,this)+t),o(Xt,this)===0&&(w(T,this,fr).call(this,e),o(Q,this)&&ee(o(Q,this),()=>{m(Q,this,null)}),o(At,this)&&(o(ft,this).before(o(At,this)),m(At,this,null)))}function kn(t){o(ct,this)&&(I(o(ct,this)),m(ct,this,null)),o(Q,this)&&(I(o(Q,this)),m(Q,this,null)),o(lt,this)&&(I(o(lt,this)),m(lt,this,null)),q&&(H(o(Rr,this)),us(),H(rr()));let e=o(mt,this).failed;const r=n=>{if(w(T,this,Zt).call(this))return;const{reset:i,invoke_onerror:s}=w(T,this,$i).call(this,n);s(),e&&!w(T,this,Zt).call(this)&&m(lt,this,w(T,this,rn).call(this,()=>{try{return nt(()=>{var a=M;a.b=this,a.f|=128,e(o(ft,this),()=>n,()=>i)})}catch(a){return wt(a,o(U,this).parent),null}}))};bt(()=>{if(!w(T,this,Zt).call(this)){var n;try{n=this.transform_error(t)}catch(i){wt(i,o(U,this)&&o(U,this).parent);return}n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(r,i=>wt(i,o(U,this)&&o(U,this).parent)):r(n)}})}function _e(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Ze]??(t[Ze]=t.nodeValue))&&(t[Ze]=r,t.nodeValue=`${r}`)}function xi(t,e){return Mi(t,e)}function po(t,e){Lr(),e.intro=e.intro??!1;const r=e.target,n=q,i=E;try{for(var s=Ot(r);s&&(s.nodeType!==8||s.data!=="[");)s=_t(s);if(!s)throw Lt;Wt(!0),H(s);const a=Mi(t,{...e,anchor:s});return Wt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Lt&&console.warn("Failed to hydrate: ",a),e.recover===!1&&ms(),Lr(),oi(r),Wt(!1),xi(t,e)}finally{Wt(n),H(i)}}var Ke=new Map;function Mi(t,{target:e,anchor:r,props:n={},events:i,context:s,intro:a=!0,transformError:l}){Lr();var f=void 0,u=Vs(()=>{var c=r??e.appendChild(et());uo(c,{pending:()=>{}},p=>{Nn({});var y=z;if(s&&(y.c=s),i&&(n.$$events=i),q&&fe(p,null),f=t(p,n)||Dn(),q&&(M.nodes.end=E,E===null||E.nodeType!==8||E.data!=="]"))throw vr(),Lt;zn()},l);var v=new Set,h=p=>{for(var y=0;y<p.length;y++){var k=p[y];if(!v.has(k)){v.add(k);var d=oo(k);for(const j of[e,document]){var b=Ke.get(j);b===void 0&&(b=new Map,Ke.set(j,b));var L=b.get(k);L===void 0?(j.addEventListener(k,Or,{passive:d}),b.set(k,1)):b.set(k,L+1)}}}};return h(hr(Gs)),$n.add(h),()=>{for(var p of v)for(const d of[e,document]){var y=Ke.get(d),k=y.get(p);--k==0?(d.removeEventListener(p,Or),y.delete(p),y.size===0&&Ke.delete(d)):y.set(p,k)}$n.delete(h),c!==r&&c.parentNode?.removeChild(c)}});return zr.set(f,u),f}var zr=new WeakMap;function go(t,e){const r=zr.get(t);return r?(zr.delete(t),r(e)):Promise.resolve()}var Mt=new WeakMap,Tt=new WeakMap,st=new WeakMap,ke=new WeakMap,_r=new WeakMap,kr=new WeakMap,xn=new WeakMap,mo=class{constructor(t,e=!0){P(this,"anchor",void 0),$(this,Mt,new Map),$(this,Tt,new Map),$(this,st,new Map),$(this,ke,new Set),$(this,_r,!0),$(this,kr,r=>{if(o(Mt,this).has(r)){var n=o(Mt,this).get(r),i=o(Tt,this).get(n);if(i)ur(i),o(ke,this).delete(n);else{var s=o(st,this).get(n);s&&(ur(s.effect),o(Tt,this).set(n,s.effect),o(st,this).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[a,l]of o(Mt,this)){if(o(Mt,this).delete(a),a===r)break;const f=o(st,this).get(l);f&&(I(f.effect),o(st,this).delete(l))}for(const[a,l]of o(Tt,this)){if(a===n||o(ke,this).has(a))continue;const f=()=>{if(Array.from(o(Mt,this).values()).includes(a)){var u=document.createDocumentFragment();en(l,u),u.append(et()),o(st,this).set(a,{effect:l,fragment:u})}else I(l);o(ke,this).delete(a),o(Tt,this).delete(a)};o(_r,this)||!i?(o(ke,this).add(a),ee(l,f,!1)):f()}}}),$(this,xn,r=>{o(Mt,this).delete(r);const n=Array.from(o(Mt,this).values());for(const[i,s]of o(st,this))n.includes(i)||(I(s.effect),o(st,this).delete(i))}),this.anchor=t,m(_r,this,e)}ensure(t,e){var r=x,n=ai();if(e&&!o(Tt,this).has(t)&&!o(st,this).has(t))if(n){var i=document.createDocumentFragment(),s=et();i.append(s),o(st,this).set(t,{effect:nt(()=>e(s)),fragment:i})}else o(Tt,this).set(t,nt(()=>e(this.anchor)));if(o(Mt,this).set(r,t),n){for(const[a,l]of o(Tt,this))a===t?r.unskip_effect(l):r.skip_effect(l);for(const[a,l]of o(st,this))a===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(o(kr,this)),r.ondiscard(o(xn,this))}else q&&(this.anchor=E),o(kr,this).call(this,r)}};function xr(t,e,r=!1){var n;q&&(n=E,dr());var i=new mo(t),s=r?Vr:0;function a(l,f){if(q){var u=Br(n);if(l!==parseInt(u.substring(1))){var c=rr();H(c),i.anchor=c,Wt(!1),i.ensure(l,f),Wt(!0);return}}i.ensure(l,f)}Yr(()=>{var l=!1;e((f,u=0)=>{l=!0,a(u,f)}),l||a(-1,null)},s)}function yo(t,e,r){for(var n=[],i=e.length,s,a=e.length,l=0;l<i;l++){let v=e[l];ee(v,()=>{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var h=t.outrogroups;Dr(t,hr(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else a-=1},!1)}if(a===0){var f=n.length===0&&r!==null&&t.pending.size===0;if(f){var u=r,c=u.parentNode;oi(c),c.append(u),t.items.clear()}Dr(t,e,!f)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function Dr(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const a of t.pending.values())for(const l of a)n.add(t.items.get(l).e)}for(var i=0;i<e.length;i++){var s=e[i];n?.has(s)?(s.f|=Ee,en(s,document.createDocumentFragment())):I(e[i],r)}}var Je;function wo(t,e,r,n,i,s=null){var a=t,l=new Map;if((e&4)!==0){var f=t;a=q?H(Ot(f)):f.appendChild(et())}q&&dr();var u=null,c=Hr(()=>{var d=r();return Tn(d)?d:d==null?[]:hr(d)}),v=new Map,h=!0;function p(d){if((k.effect.f&16384)===0){k.pending.delete(d);var b=_(c);k.fallback=u,bo(k,b,a,e,n),u!==null&&(b.length===0?(u.f&33554432)===0?ur(u):(u.f^=Ee,We(u,null,a)):ee(u,()=>{u=null}))}}function y(d){k.pending.delete(d)}var k={effect:Yr(()=>{var d=_(c),b=d.length;let L=!1;q&&Br(a)==="[!"!=(b===0)&&(a=rr(),H(a),Wt(!1),L=!0);for(var j=new Set,W=x,X=ai(),g=0;g<b;g+=1){q&&E.nodeType===8&&E.data==="]"&&(a=E,L=!0,Wt(!1));var R=d[g],D=n(R,g),V=h?null:l.get(D);V?(V.v&&ve(V.v,R),V.i&&ve(V.i,g),X&&W.unskip_effect(V.e)):(V=$o(l,h?a:Je??(Je=et()),R,D,g,i,e,r),h||(V.e.f|=Ee),l.set(D,V)),j.add(D)}if(b===0&&s&&!u&&(h?u=nt(()=>s(a)):(u=nt(()=>s(Je??(Je=et()))),u.f|=Ee)),b>j.size&&hs("","",""),q&&b>0&&H(rr()),!h)if(v.set(W,j),X){for(const[K,gr]of l)j.has(K)||W.skip_effect(gr.e);W.oncommit(p),W.ondiscard(y)}else p(W);L&&Wt(!0),_(c)}),flags:e,items:l,pending:v,outrogroups:null,fallback:u};h=!1,q&&(a=E)}function xe(t){for(;t!==null&&(t.f&32)===0;)t=t.next;return t}function bo(t,e,r,n,i){var s=(n&8)!==0,a=e.length,l=t.items,f=xe(t.effect.first),u,c=null,v,h=[],p=[],y,k,d,b;if(s)for(b=0;b<a;b+=1)y=e[b],k=i(y,b),d=l.get(k).e,!(d.f&33554432)&&(d.nodes?.a?.measure(),(v??(v=new Set)).add(d));for(b=0;b<a;b+=1){if(y=e[b],k=i(y,b),d=l.get(k).e,t.outrogroups!==null)for(const K of t.outrogroups)K.pending.delete(d),K.done.delete(d);if(d.f&8192&&(ur(d),s&&(d.nodes?.a?.unfix(),(v??(v=new Set)).delete(d))),(d.f&33554432)!==0)if(d.f^=Ee,d===f)We(d,null,r);else{var L=c?c.next:f;d===t.effect.last&&(t.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),Pt(t,c,d),Pt(t,d,L),We(d,L,r),c=d,h=[],p=[],f=xe(c.next);continue}if(d!==f){if(u!==void 0&&u.has(d)){if(h.length<p.length){var j=p[0],W;c=j.prev;var X=h[0],g=h[h.length-1];for(W=0;W<h.length;W+=1)We(h[W],j,r);for(W=0;W<p.length;W+=1)u.delete(p[W]);Pt(t,X.prev,g.next),Pt(t,c,X),Pt(t,g,j),f=j,c=g,b-=1,h=[],p=[]}else u.delete(d),We(d,f,r),Pt(t,d.prev,d.next),Pt(t,d,c===null?t.effect.first:c.next),Pt(t,c,d),c=d;continue}for(h=[],p=[];f!==null&&f!==d;)(u??(u=new Set)).add(f),p.push(f),f=xe(f.next);if(f===null)continue}!(d.f&33554432)&&h.push(d),c=d,f=xe(d.next)}if(t.outrogroups!==null){for(const K of t.outrogroups)K.pending.size===0&&(Dr(t,hr(K.done)),t.outrogroups?.delete(K));t.outrogroups.size===0&&(t.outrogroups=null)}if(f!==null||u!==void 0){var R=[];if(u!==void 0)for(d of u)!(d.f&8192)&&R.push(d);for(;f!==null;)!(f.f&8192)&&f!==t.fallback&&R.push(f),f=xe(f.next);var D=R.length;if(D>0){var V=(n&4)!==0&&a===0?r:null;if(s){for(b=0;b<D;b+=1)R[b].nodes?.a?.measure();for(b=0;b<D;b+=1)R[b].nodes?.a?.fix()}yo(t,R,V)}}s&&bt(()=>{if(v!==void 0)for(d of v)d.nodes?.a?.apply()})}function $o(t,e,r,n,i,s,a,l){var f=(a&1)!==0?(a&16)===0?ei(r,!1,!1):Gt(r):null,u=(a&2)!==0?Gt(i):null;return{v:f,i:u,e:nt(()=>(s(e,f??r,u??i,l),()=>{t.delete(n)}))}}function We(t,e,r){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end,s=e&&(e.f&33554432)===0?e.nodes.start:r;n!==null;){var a=_t(n);if(s.before(n),n===i)return;n=a}}function Pt(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function _o(t,e){Bs(()=>{t=M?.parent?.nodes?.start??t;var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=Qr("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}var ko=Symbol("is custom element"),xo=Symbol("is html"),Mo=os?"link":"LINK";function So(t){if(q){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;It(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var i=t.checked;It(t,"checked",null),t.checked=i}}};t[qe]=r,bt(r),Vn()}}function It(t,e,r,n){var i=Wo(t);q&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Mo)||i[e]!==(i[e]=r)&&(e==="loading"&&(t[ns]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Eo(t).has(e)?t[e]=r:t.setAttribute(e,r))}function Wo(t){return t[qr]??(t[qr]={[ko]:t.nodeName.includes("-"),[xo]:t.namespaceURI==="http://www.w3.org/1999/xhtml"})}var Mn=new Map;function Eo(t){var e=t.getAttribute("is")||t.nodeName,r=Mn.get(e);if(r)return r;Mn.set(e,r=new Set);for(var n,i=t,s=Element.prototype;s!==i;){n=Ji(i);for(var a in n)n[a].set&&a!=="innerHTML"&&a!=="textContent"&&a!=="innerText"&&r.add(a);i=Pn(i)}return r}function qo(t,e,r=e){var n=new WeakSet;Ms(t,"input",async i=>{var s=i?t.defaultValue:t.value;if(s=Mr(t)?Sr(s):s,r(s),x!==null&&n.add(x),await Zs(),s!==(s=e())){var a=t.selectionStart,l=t.selectionEnd,f=t.value.length;if(t.value=s??"",l!==null){var u=t.value.length;a===l&&l===f&&u>f?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=a,t.selectionEnd=Math.min(l,u))}}}),(q&&t.defaultValue!==t.value||Ce(e)==null&&t.value)&&(r(Mr(t)?Sr(t.value):t.value),x!==null&&n.add(x)),Gr(()=>{var i=e();if(t===document.activeElement){var s=ge?Kt:x;if(n.has(s))return}Mr(t)&&i===Sr(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function Mr(t){var e=t.type;return e==="number"||e==="range"}function Sr(t){return t===""?null:+t}var Si,le=new WeakMap,cr=new WeakMap,Wr=new WeakMap,Sn=new WeakSet,Wi=class{constructor(t){Jr(this,Sn),$(this,le,new WeakMap),$(this,cr,void 0),$(this,Wr,void 0),m(Wr,this,t)}observe(t,e){var r=o(le,this).get(t)||new Set;return r.add(e),o(le,this).set(t,r),w(Sn,this,To).call(this).observe(t,o(Wr,this)),()=>{var n=o(le,this).get(t);n.delete(e),n.size===0&&(o(le,this).delete(t),o(cr,this).unobserve(t))}}};Si=Wi;function To(){return o(cr,this)??m(cr,this,new ResizeObserver(t=>{for(var e of t){Si.entries.set(e.target,e);for(var r of o(le,this).get(e.target)||[])r(e)}}))}P(Wi,"entries",new WeakMap);var Qe=!1;function Po(t){var e=Qe;try{return Qe=!1,[t(),Qe]}finally{Qe=e}}function St(t,e,r,n){var i=!pr||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,l=n,f=!0,u=void 0,c=()=>a&&i?(u??(u=Le(n)),_(u)):(f&&(f=!1,l=a?Ce(n):n),l);let v;if(s){var h=Xe in t||On in t;v=Ht(t,e)?.set??(h&&e in t?W=>t[e]=W:void 0)}var p,y=!1;s?[p,y]=Po(()=>t[e]):p=t[e],p===void 0&&n!==void 0&&(p=c(),v&&(i&&ys(e),v(p)));var k;if(i?k=()=>{var W=t[e];return W===void 0?c():(f=!0,W)}:k=()=>{var W=t[e];return W!==void 0&&(l=void 0),W===void 0?l:W},i&&(r&4)===0)return k;if(v){var d=t.$$legacy;return(function(W,X){return arguments.length>0?((!i||!X||d||y)&&v(X?k():W),W):k()})}var b=!1,L=((r&1)!==0?Le:Hr)(()=>(b=!1,k()));s&&_(L);var j=M;return(function(W,X){if(arguments.length>0){const g=X?_(L):i&&s?Bt(W):W;return tt(L,g),b=!0,l!==void 0&&(l=g),W}return qt&&b||(j.f&16384)!==0?L.v:_(L)})}function jo(t){return new Ao(t)}var Nt=new WeakMap,vt=new WeakMap,Ao=class{constructor(t){$(this,Nt,void 0),$(this,vt,void 0);var e=new Map,r=(i,s)=>{var a=ei(s,!1,!1);return e.set(i,a),a};const n=new Proxy({...t.props||{},$$events:{}},{get(i,s){return _(e.get(s)??r(s,Reflect.get(i,s)))},has(i,s){return s===On?!0:(_(e.get(s)??r(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,a){return tt(e.get(s)??r(s,a),a),Reflect.set(i,s,a)}});m(vt,this,(t.hydrate?po:xi)(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)&&G(),m(Nt,this,n.$$events);for(const i of Object.keys(o(vt,this)))i==="$set"||i==="$destroy"||i==="$on"||je(this,i,{get(){return o(vt,this)[i]},set(s){o(vt,this)[i]=s},enumerable:!0});o(vt,this).$set=i=>{Object.assign(n,i)},o(vt,this).$destroy=()=>{go(o(vt,this))}}$set(t){o(vt,this).$set(t)}$on(t,e){o(Nt,this)[t]=o(Nt,this)[t]||[];const r=(...n)=>e.call(this,...n);return o(Nt,this)[t].push(r),()=>{o(Nt,this)[t]=o(Nt,this)[t].filter(n=>n!==r)}}$destroy(){o(vt,this).$destroy()}},Ei;typeof HTMLElement=="function"&&(Ei=class extends HTMLElement{constructor(t,e,r){super(),P(this,"$$ctor",void 0),P(this,"$$s",void 0),P(this,"$$c",void 0),P(this,"$$cn",!1),P(this,"$$d",{}),P(this,"$$r",!1),P(this,"$$p_d",{}),P(this,"$$l",{}),P(this,"$$l_u",new Map),P(this,"$$me",void 0),P(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 s=Qr("slot");n!=="default"&&(s.name=n),ot(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Lo(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]=Ge(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=jo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Is(()=>{Gr(()=>{this.$$r=!0;for(const n of tr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ge(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 s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ge(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 tr(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Ge(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 Lo(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Oo(t,e,r,n,i,s){let a=class extends Ei{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return tr(e).map(l=>(e[l].attribute||l).toLowerCase())}};return tr(e).forEach(l=>{je(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Ge(l,f,e),this.$$d[l]=f;var u=this.$$c;u&&(Ht(u,l)?.get?u[l]=f:u.$set({[l]:f}))}})}),n.forEach(l=>{je(a.prototype,l,{get(){return this.$$c?.[l]}})}),s&&(a=s(a)),t.element=a,a}var qi="picture dictionary";function Ro(t){const e=t.trim();return e?e.startsWith("//")||/^https:\/\//iu.test(e)?!0:e.startsWith("/")?Co(e):!1:!1}var Wn="https://pie-picture-dictionary.invalid";function Co(t){try{return new URL(t,Wn).origin===Wn}catch{return!1}}function En(t){return typeof t=="string"?t.trim():""}function No(t){if(!t||typeof t!="object")return null;const e=t,r=En(e.url)||En(e.image);return Ro(r)?{url:r,caption:typeof e.caption=="string"&&e.caption.trim()?e.caption.trim():void 0,width:typeof e.width=="number"?e.width:void 0,height:typeof e.height=="number"?e.height:void 0}:null}function zo(t){return Vi(t,{serviceLabel:qi,keys:["pictures","images"],toItem:No})}function Do(t){return Bi({...t,serviceLabel:qi,readResponse:zo})}var Fo=Rt('<p class="pie-tool-picture-dictionary__notice svelte-rpoqcp">No picture dictionary service is configured for this assessment.</p>'),Io=Rt('<p class="pie-tool-picture-dictionary__notice svelte-rpoqcp">Type a word to see a picture of it.</p>'),qn=Rt('<p class="pie-tool-picture-dictionary__notice svelte-rpoqcp"> </p>'),Vo=Rt('<p class="pie-tool-picture-dictionary__error svelte-rpoqcp" role="alert"> </p>'),Bo=Rt('<span class="pie-tool-picture-dictionary__caption svelte-rpoqcp" aria-hidden="true"> </span>'),Uo=Rt('<li class="pie-tool-picture-dictionary__cell svelte-rpoqcp"><img class="pie-tool-picture-dictionary__image svelte-rpoqcp" loading="lazy" decoding="async"/> <!></li>'),Ho=Rt('<ul class="pie-tool-picture-dictionary__grid svelte-rpoqcp"></ul>'),Ko=Rt('<div class="pie-tool-picture-dictionary svelte-rpoqcp" role="dialog" aria-label="Picture Dictionary"><form class="pie-tool-picture-dictionary__search svelte-rpoqcp"><label class="pie-tool-picture-dictionary__label svelte-rpoqcp" for="pie-tool-picture-dictionary-term">Word or phrase</label> <div class="pie-tool-picture-dictionary__row svelte-rpoqcp"><input id="pie-tool-picture-dictionary-term" class="pie-tool-picture-dictionary__input svelte-rpoqcp" type="text" autocomplete="off" spellcheck="false"/> <button class="pie-tool-picture-dictionary__submit svelte-rpoqcp" type="submit">Look up</button></div></form> <div class="pie-tool-picture-dictionary__status svelte-rpoqcp" role="status" aria-live="polite"> </div> <div class="pie-tool-picture-dictionary__body svelte-rpoqcp"><!></div></div>'),Jo={hash:"svelte-rpoqcp",code:`.pie-tool-picture-dictionary.svelte-rpoqcp {display:flex;flex-direction:column;gap:0.5rem;height:100%;min-height:0;padding:0.75rem;box-sizing:border-box;color:var(--pie-text, #1f2937);background:var(--pie-background, #fff);font-size:0.95rem;}.pie-tool-picture-dictionary__search.svelte-rpoqcp {display:flex;flex-direction:column;gap:0.25rem;}.pie-tool-picture-dictionary__label.svelte-rpoqcp {font-size:0.8rem;font-weight:600;}.pie-tool-picture-dictionary__row.svelte-rpoqcp {display:flex;gap:0.5rem;}.pie-tool-picture-dictionary__input.svelte-rpoqcp {flex:1 1 auto;min-width:0;padding:0.35rem 0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-background, #fff);color:inherit;font:inherit;}.pie-tool-picture-dictionary__submit.svelte-rpoqcp {flex:0 0 auto;padding:0.35rem 0.75rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;background:var(--pie-secondary-background, #f9fafb);color:inherit;font:inherit;cursor:pointer;}.pie-tool-picture-dictionary__submit.svelte-rpoqcp:disabled {opacity:0.5;cursor:not-allowed;}.pie-tool-picture-dictionary__input.svelte-rpoqcp:focus-visible,
|
|
3
3
|
.pie-tool-picture-dictionary__submit.svelte-rpoqcp:focus-visible {outline:2px solid var(--pie-button-focus-outline, #2563eb);outline-offset:2px;}.pie-tool-picture-dictionary__status.svelte-rpoqcp {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}.pie-tool-picture-dictionary__body.svelte-rpoqcp {flex:1 1 auto;min-height:0;overflow-y:auto;}.pie-tool-picture-dictionary__notice.svelte-rpoqcp,
|
|
4
|
-
.pie-tool-picture-dictionary__error.svelte-rpoqcp {margin:0.25rem 0;}.pie-tool-picture-dictionary__grid.svelte-rpoqcp {display:grid;grid-template-columns:repeat(auto-fill, minmax(9rem, 1fr));gap:0.75rem;margin:0;padding:0;list-style:none;}.pie-tool-picture-dictionary__cell.svelte-rpoqcp {display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;}.pie-tool-picture-dictionary__image.svelte-rpoqcp {max-width:100%;height:auto;}.pie-tool-picture-dictionary__caption.svelte-rpoqcp {text-align:center;font-size:0.85rem;opacity:0.85;}`};function Qo(t,e){
|
|
4
|
+
.pie-tool-picture-dictionary__error.svelte-rpoqcp {margin:0.25rem 0;}.pie-tool-picture-dictionary__grid.svelte-rpoqcp {display:grid;grid-template-columns:repeat(auto-fill, minmax(9rem, 1fr));gap:0.75rem;margin:0;padding:0;list-style:none;}.pie-tool-picture-dictionary__cell.svelte-rpoqcp {display:flex;flex-direction:column;align-items:center;gap:0.25rem;padding:0.5rem;border:1px solid var(--pie-border-light, #e5e7eb);border-radius:0.375rem;}.pie-tool-picture-dictionary__image.svelte-rpoqcp {max-width:100%;height:auto;}.pie-tool-picture-dictionary__caption.svelte-rpoqcp {text-align:center;font-size:0.85rem;opacity:0.85;}`};function Qo(t,e){Nn(e,!0),_o(t,Jo);let r=St(e,"visible",7,!1),n=St(e,"toolId",7,"pictureDictionary"),i=St(e,"term",7,""),s=St(e,"termRequestId",7,void 0),a=St(e,"endpoint",7,""),l=St(e,"language",7,""),f=St(e,"lookup",7,void 0),u=St(e,"headers",7,void 0),c=St(e,"credentials",7,void 0),v=dt(""),h=dt(Bt({kind:"idle"}));const p=hn(()=>f()??(a()?Do({endpoint:a(),headers:u(),credentials:c()}):null)),y=new Hi({resolver:()=>_(p),max:4,language:()=>l(),onState:g=>{tt(h,g,!0)}});mn(()=>{_(p),Ce(()=>y.syncConfigured(_(h)))}),mn(()=>{const g=Ui(i()),R=s(),D=r();Ce(()=>{y.syncRequestedTerm({term:g,requestId:R,visible:D})&&tt(v,g,!0)})});function k(g){g.preventDefault(),y.run(_(v))}function d(g,R){return g.caption??R}const b=hn(()=>Ii(_(h),{countLabel:g=>`${g} ${g===1?"picture":"pictures"}`,emptyLabel:g=>`No picture for ${g}`}));var L={get visible(){return r()},set visible(g=!1){r(g),G()},get toolId(){return n()},set toolId(g="pictureDictionary"){n(g),G()},get term(){return i()},set term(g=""){i(g),G()},get termRequestId(){return s()},set termRequestId(g=void 0){s(g),G()},get endpoint(){return a()},set endpoint(g=""){a(g),G()},get language(){return l()},set language(g=""){l(g),G()},get lookup(){return f()},set lookup(g=void 0){f(g),G()},get headers(){return u()},set headers(g=void 0){u(g),G()},get credentials(){return c()},set credentials(g=void 0){c(g),G()}},j=io(),W=Ns(j),X=g=>{var R=Ko(),D=oe(R),V=$e(oe(D),2),K=oe(V);So(K);var gr=$e(K,2);zt(V),zt(D);var nn=$e(D,2),Ti=be(nn,!0),sn=$e(nn,2),Pi=oe(sn),ji=A=>{ot(A,Fo())},Ai=A=>{ot(A,Io())},Li=A=>{var Z=qn(),xt=be(Z);ne(()=>_e(xt,`Looking up “${_(h).term??""}”…`)),ot(A,Z)},Oi=A=>{var Z=qn(),xt=be(Z);ne(()=>_e(xt,`No picture for “${_(h).term??""}”.`)),ot(A,Z)},Ri=A=>{var Z=Vo(),xt=be(Z,!0);ne(()=>_e(xt,_(h).reason)),ot(A,Z)},Ci=A=>{var Z=Ho();wo(Z,21,()=>_(h).items,xt=>xt.url,(xt,re)=>{var mr=Uo(),ye=oe(mr),Ni=$e(ye,2),zi=we=>{var on=Bo(),Di=be(on,!0);ne(()=>_e(Di,_(re).caption)),ot(we,on)};xr(Ni,we=>{_(re).caption&&we(zi)}),zt(mr),ne(we=>{It(ye,"src",_(re).url),It(ye,"alt",we),It(ye,"width",_(re).width),It(ye,"height",_(re).height)},[()=>d(_(re),_(h).term)]),ot(xt,mr)}),zt(Z),ot(A,Z)};xr(Pi,A=>{_(h).kind==="unconfigured"?A(ji):_(h).kind==="idle"?A(Ai,1):_(h).kind==="searching"?A(Li,2):_(h).kind==="empty"?A(Oi,3):_(h).kind==="error"?A(Ri,4):A(Ci,-1)}),zt(sn),zt(R),ne(A=>{It(R,"data-pie-tool-id",n()),K.disabled=_(h).kind==="unconfigured",gr.disabled=A,_e(Ti,_(b))},[()=>_(h).kind==="unconfigured"||!_(v).trim()]),to("submit",D,k),qo(K,()=>_(v),A=>tt(v,A)),ot(g,R)};return xr(W,g=>{r()&&g(X)}),ot(t,j),zn(L)}Xo("pie-tool-picture-dictionary",Oo(Qo,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"},term:{attribute:"term",type:"String"},endpoint:{attribute:"endpoint",type:"String"},language:{attribute:"language",type:"String"},termRequestId:{},lookup:{},headers:{},credentials:{}},[],[],{mode:"open"},Fi));function Xo(t,e){customElements.get(t)||customElements.define(t,e)}export{Qo as default};
|