@mozaic-ds/web-components 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/Condition20.js +1 -1
  2. package/dist/attributes.js +1 -1
  3. package/dist/attributes.js.map +1 -1
  4. package/dist/branches.js +1 -1
  5. package/dist/branches.js.map +1 -1
  6. package/dist/components/accordionlist/AccordionList.js +2 -2
  7. package/dist/components/accordionlistItem/AccordionListItem.js +1 -1
  8. package/dist/components/actionbottombar/ActionBottomBar.js +2 -2
  9. package/dist/components/actionlistbox/ActionListbox.js +2 -2
  10. package/dist/components/actionlistbox/ActionListbox.js.map +1 -1
  11. package/dist/components/actionlistboxitem/ActionListboxItem.js +2 -2
  12. package/dist/components/avatar/Avatar.js +2 -2
  13. package/dist/components/breadcrumb/Breadcrumb.js +1 -1
  14. package/dist/components/builtinmenu/BuiltInMenu.js +2 -2
  15. package/dist/components/builtinmenuitem/BuiltInMenuItem.js +2 -2
  16. package/dist/components/button/Button.js +1 -1
  17. package/dist/components/callout/Callout.js +1 -1
  18. package/dist/components/carousel/Carousel.js +1 -1
  19. package/dist/components/checkbox/Checkbox.js +2 -2
  20. package/dist/components/checkboxgroup/CheckboxGroup.js +1 -1
  21. package/dist/components/checklistmenu/CheckListMenu.js +1 -1
  22. package/dist/components/circularprogressbar/CircularProgressbar.js +1 -1
  23. package/dist/components/combobox/Combobox.js +2 -2
  24. package/dist/components/combobox/Combobox.js.map +1 -1
  25. package/dist/components/combobox/Combobox.svelte +8 -2
  26. package/dist/components/combobox/Combobox.svelte.d.ts +7 -2
  27. package/dist/components/combobox/Combobox.svelte.d.ts.map +1 -1
  28. package/dist/components/combobox/README.md +1 -1
  29. package/dist/components/container/Container.js +2 -2
  30. package/dist/components/datepicker/Datepicker.js +2 -2
  31. package/dist/components/divider/Divider.js +2 -2
  32. package/dist/components/drawer/Drawer.js +2 -2
  33. package/dist/components/field/Field.js +2 -2
  34. package/dist/components/fileuploader/FileUploader.js +2 -2
  35. package/dist/components/fileuploader/FileUploader.js.map +1 -1
  36. package/dist/components/fileuploader/FileUploader.svelte +3 -0
  37. package/dist/components/fileuploader/FileUploader.svelte.d.ts +1 -0
  38. package/dist/components/fileuploader/FileUploader.svelte.d.ts.map +1 -1
  39. package/dist/components/fileuploaderitem/FileUploaderItem.js +2 -2
  40. package/dist/components/flag/Flag.js +2 -2
  41. package/dist/components/iconbutton/IconButton.js +1 -1
  42. package/dist/components/kpiitem/KpiItem.js +2 -2
  43. package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.js +2 -2
  44. package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.js +2 -2
  45. package/dist/components/link/Link.js +1 -1
  46. package/dist/components/loader/Loader.js +1 -1
  47. package/dist/components/loadingoverlay/LoadingOverlay.js +2 -2
  48. package/dist/components/modal/Modal.js +1 -1
  49. package/dist/components/numberbadge/NumberBadge.js +2 -2
  50. package/dist/components/optionlistbox/OptionListbox.js +2 -2
  51. package/dist/components/overlay/Overlay.js +2 -2
  52. package/dist/components/pageheader/PageHeader.js +2 -2
  53. package/dist/components/passwordinput/PasswordInput.js +2 -2
  54. package/dist/components/phonenumber/PhoneNumber.js +1 -1
  55. package/dist/components/pincode/Pincode.js +2 -2
  56. package/dist/components/pincode/Pincode.js.map +1 -1
  57. package/dist/components/pincode/Pincode.svelte +3 -2
  58. package/dist/components/pincode/Pincode.svelte.d.ts +2 -1
  59. package/dist/components/pincode/Pincode.svelte.d.ts.map +1 -1
  60. package/dist/components/pincode/README.md +1 -1
  61. package/dist/components/popover/Popover.js +2 -2
  62. package/dist/components/quantityselector/QuantitySelector.js +2 -2
  63. package/dist/components/radio/Radio.js +2 -2
  64. package/dist/components/radiogroup/RadioGroup.js +3 -3
  65. package/dist/components/radiogroup/RadioGroup.js.map +1 -1
  66. package/dist/components/radiogroup/RadioGroup.svelte +3 -2
  67. package/dist/components/radiogroup/RadioGroup.svelte.d.ts +1 -0
  68. package/dist/components/radiogroup/RadioGroup.svelte.d.ts.map +1 -1
  69. package/dist/components/segmentedcontrol/SegmentedControl.js +2 -2
  70. package/dist/components/select/Select.js +2 -2
  71. package/dist/components/sidebar/Sidebar.js +2 -2
  72. package/dist/components/sidebarfooter/SidebarFooter.js +2 -2
  73. package/dist/components/sidebarheader/SidebarHeader.js +2 -2
  74. package/dist/components/sidebarnavitem/SidebarNavItem.js +2 -2
  75. package/dist/components/sidebarshortcutitem/SidebarShortcutItem.js +2 -2
  76. package/dist/components/sidebarshortcuts/SidebarShortcuts.js +1 -1
  77. package/dist/components/starrating/StarRating.js +2 -2
  78. package/dist/components/statusbadge/StatusBadge.js +2 -2
  79. package/dist/components/statusdot/StatusDot.js +2 -2
  80. package/dist/components/statusmessage/StatusMessage.js +2 -2
  81. package/dist/components/statusnotification/StatusNotification.js +2 -2
  82. package/dist/components/stepperbottombar/StepperBottomBar.js +1 -1
  83. package/dist/components/steppercompact/StepperCompact.js +2 -2
  84. package/dist/components/stepperinline/StepperInline.js +1 -1
  85. package/dist/components/stepperstacked/StepperStacked.js +1 -1
  86. package/dist/components/tab/Tab.js +1 -1
  87. package/dist/components/tabs/Tabs.js +2 -2
  88. package/dist/components/tag/Tag.js +1 -1
  89. package/dist/components/textarea/README.md +1 -1
  90. package/dist/components/textarea/Textarea.js +2 -2
  91. package/dist/components/textarea/Textarea.js.map +1 -1
  92. package/dist/components/textarea/Textarea.svelte +1 -1
  93. package/dist/components/textarea/Textarea.svelte.d.ts +1 -1
  94. package/dist/components/textarea/Textarea.svelte.d.ts.map +1 -1
  95. package/dist/components/textinput/Textinput.js +2 -2
  96. package/dist/components/tile/Tile.js +2 -2
  97. package/dist/components/tileexpandable/TileExpandable.js +2 -2
  98. package/dist/components/tileexpandable/TileExpandable.js.map +1 -1
  99. package/dist/components/tileselectable/TileSelectable.js +2 -2
  100. package/dist/components/toaster/Toaster.js +2 -2
  101. package/dist/components/toggle/Toggle.js +2 -2
  102. package/dist/components/togglegroup/ToggleGroup.js +3 -3
  103. package/dist/components/togglegroup/ToggleGroup.js.map +1 -1
  104. package/dist/components/togglegroup/ToggleGroup.svelte +3 -2
  105. package/dist/components/togglegroup/ToggleGroup.svelte.d.ts +1 -0
  106. package/dist/components/togglegroup/ToggleGroup.svelte.d.ts.map +1 -1
  107. package/dist/components/tooltip/Tooltip.js +2 -2
  108. package/dist/custom-element.js +3 -3
  109. package/dist/custom-element.js.map +1 -1
  110. package/dist/each.js +1 -1
  111. package/dist/if.js +1 -1
  112. package/dist/index-client.js +1 -1
  113. package/dist/input.js +1 -1
  114. package/dist/input.js.map +1 -1
  115. package/dist/svelte-component.js +1 -1
  116. package/dist/svelte-element.js +1 -1
  117. package/dist/svelte-element.js.map +1 -1
  118. package/dist/this.js +1 -1
  119. package/dist/this.js.map +1 -1
  120. package/package.json +5 -4
@@ -1,4 +1,4 @@
1
- typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ss=1,is=2,fs=4,as=8,ls=16,Sn=1,Nn=4,On=8,Rn=16,xn=1,Cn=2,xt="[",Ct="[!",gt="[?",Pt="]",ye={},T=Symbol(),Pn="http://www.w3.org/1999/xhtml",us="http://www.w3.org/2000/svg",os="@attach",tt=!1;var kn=Array.isArray,Ln=Array.prototype.indexOf,Ee=Array.prototype.includes,In=Array.from,Ye=Object.keys,Ue=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,cs=Object.getOwnPropertyDescriptors,Mn=Object.prototype,Dn=Array.prototype,Fn=Object.getPrototypeOf,wt=Object.isExtensible;const jn=()=>{};function Hn(e){for(var t=0;t<e.length;t++)e[t]()}function kt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const N=2,Oe=4,Te=8,ze=1<<24,ue=16,K=32,oe=64,nt=128,L=512,A=1024,S=2048,V=4096,W=8192,J=16384,we=32768,Pe=65536,$t=1<<17,Vn=1<<18,$e=1<<19,Bn=1<<20,hs=1<<25,ge=65536,rt=1<<21,ot=1<<22,ie=1<<23,me=Symbol("$state"),Lt=Symbol("legacy props"),ds=Symbol(""),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},vs=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ps=1,Le=3,Ge=8;function qn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Yn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function gs(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Un(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Xn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Jn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ws(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function tr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function De(e){$=e}let w;function B(e){if(e===null)throw Ke(),ye;return w=e}function It(){return B(te(w))}function $s(e){if($){if(te(w)!==null)throw Ke(),ye;w=e}}function nr(e=1){if($){for(var t=e,n=w;t--;)n=te(n);w=n}}function rr(e=!0){for(var t=0,n=w;;){if(n.nodeType===Ge){var r=n.data;if(r===Pt){if(t===0)return n;t-=1}else(r===xt||r===Ct||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=te(n);e&&n.remove(),n=s}}function bs(e){if(!e||e.nodeType!==Ge)throw Ke(),ye;return e.data}function Mt(e){return e===this.v}function sr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Dt(e){return!sr(e,this.v)}let ir=!1,O=null;function Ae(e){O=e}function ms(e){return jt().get(e)}function ys(e,t){return jt().set(e,t),t}function fr(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,l:null}}function ar(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)sn(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Ft(){return!0}function jt(e){return O===null&&qn(),O.c??=new Map(lr(O)||void 0)}function lr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let de=[];function Ht(){var e=de;de=[],Hn(e)}function fe(e){if(de.length===0&&!xe){var t=de;queueMicrotask(()=>{t===de&&Ht()})}de.push(e)}function ur(){for(;de.length>0;)Ht()}function Vt(e){var t=p;if(t===null)return v.f|=ie,e;if((t.f&we)===0&&(t.f&Oe)===0)throw e;se(e,t)}function se(e,t){for(;t!==null;){if((t.f&nt)!==0){if((t.f&we)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const or=-7169;function m(e,t){e.f=e.f&or|t}function ct(e){(e.f&L)!==0||e.deps===null?m(e,A):m(e,V)}function Bt(e){if(e!==null)for(const t of e)(t.f&N)===0||(t.f&ge)===0||(t.f^=ge,Bt(t.deps))}function qt(e,t,n){(e.f&S)!==0?t.add(e):(e.f&V)!==0&&n.add(e),Bt(e.deps),m(e,A)}const Fe=new Set;let b=null,bt=null,F=null,R=[],Xe=null,xe=!1,Se=null,cr=1;class Z{id=cr++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#i=0;#l=0;#s=null;#f=new Set;#n=new Set;#r=new Map;is_fork=!1;#a=!1;#o(){return this.is_fork||this.#l>0}skip_effect(t){this.#r.has(t)||this.#r.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#r.get(t);if(n){this.#r.delete(t);for(var r of n.d)m(r,S),U(r);for(r of n.m)m(r,V),U(r)}}process(t){R=[],this.apply();var n=Se=[],r=[];for(const s of t)this.#u(s,n,r);if(Se=null,this.#o()){this.#c(r),this.#c(n);for(const[s,i]of this.#r)Gt(s,i)}else{bt=this,b=null;for(const s of this.#e)s(this);this.#e.clear(),this.#i===0&&this.#h(),mt(r),mt(n),this.#f.clear(),this.#n.clear(),bt=null,this.#s?.resolve()}F=null}#u(t,n,r){t.f^=A;for(var s=t.first;s!==null;){var i=s.f,f=(i&(K|oe))!==0,l=f&&(i&A)!==0,a=(i&W)!==0,u=l||this.#r.has(s);if(!u&&s.fn!==null){f?a||(s.f^=A):(i&Oe)!==0?n.push(s):(i&(Te|ze))!==0&&a?r.push(s):Me(s)&&(Ne(s),(i&ue)!==0&&(this.#n.add(s),a&&m(s,S)));var c=s.first;if(c!==null){s=c;continue}}for(;s!==null;){var o=s.next;if(o!==null){s=o;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)qt(t[n],this.#f,this.#n)}capture(t,n){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&ie)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){b=this,this.apply()}deactivate(){b===this&&(b=null,F=null)}flush(){if(R.length>0)b=this,Ut();else if(this.#i===0&&!this.is_fork){for(const t of this.#e)t(this);this.#e.clear(),this.#h(),this.#s?.resolve()}this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#h(){if(Fe.size>1){this.previous.clear();var t=b,n=F,r=!0;for(const i of Fe){if(i===this){r=!1;continue}const f=[];for(const[a,u]of this.current){if(i.current.has(a))if(r&&u!==i.current.get(a))i.current.set(a,u);else continue;f.push(a)}if(f.length===0)continue;const l=[...i.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var s=R;R=[];const a=new Set,u=new Map;for(const c of f)Wt(c,l,a,u);if(R.length>0){b=i,i.apply();for(const c of R)i.#u(c,[],[]);i.deactivate()}R=s}}b=t,F=n}this.#r.clear(),Fe.delete(this)}increment(t){this.#i+=1,t&&(this.#l+=1)}decrement(t){this.#i-=1,t&&(this.#l-=1),!this.#a&&(this.#a=!0,fe(()=>{this.#a=!1,this.#o()?R.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#f)this.#n.delete(t),m(t,S),U(t);for(const t of this.#n)m(t,V),U(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=kt()).promise}static ensure(){if(b===null){const t=b=new Z;Fe.add(b),xe||fe(()=>{b===t&&t.flush()})}return b}apply(){}}function Yt(e){var t=xe;xe=!0;try{for(var n;;){if(ur(),R.length===0&&(b?.flush(),R.length===0))return Xe=null,n;Ut()}}finally{xe=t}}function Ut(){var e=null;try{for(var t=0;R.length>0;){var n=Z.ensure();if(t++>1e3){var r,s;hr()}n.process(R),ae.clear()}}finally{R=[],Xe=null,Se=null}}function hr(){try{Gn()}catch(e){se(e,Xe)}}let X=null;function mt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(J|W))===0&&Me(r)&&(X=new Set,Ne(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&ln(r),X?.size>0)){ae.clear();for(const s of X){if((s.f&(J|W))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)X.has(f)&&(X.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const a=i[l];(a.f&(J|W))===0&&Ne(a)}}X.clear()}}X=null}}function Wt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&N)!==0?Wt(s,t,n,r):(i&(ot|ue))!==0&&(i&S)===0&&zt(s,t,r)&&(m(s,S),U(s))}}function zt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Ee.call(t,s))return!0;if((s.f&N)!==0&&zt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function U(e){var t=Xe=e,n=t.b;if(n?.is_pending&&(e.f&(Oe|Te|ze))!==0&&(e.f&we)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Se!==null&&t===p&&(e.f&Te)===0)return;if((r&(oe|K))!==0){if((r&A)===0)return;t.f^=A}}R.push(t)}function Gt(e,t){if(!((e.f&K)!==0&&(e.f&A)!==0)){(e.f&S)!==0?t.d.push(e):(e.f&V)!==0&&t.m.push(e),m(e,A);for(var n=e.first;n!==null;)Gt(n,t),n=n.next}}function dr(e){let t=0,n=Ie(0),r;return()=>{_t()&&(P(n),fn(()=>(t===0&&(r=wn(()=>e(()=>Ce(n)))),t+=1,()=>{fe(()=>{t-=1,t===0&&(r?.(),r=void 0,Ce(n))})})))}}var _r=Pe|$e;function vr(e,t,n,r){new pr(e,t,n,r)}class pr{parent;is_pending=!1;transform_error;#e;#t=$?w:null;#i;#l;#s;#f=null;#n=null;#r=null;#a=null;#o=0;#u=0;#c=!1;#h=new Set;#_=new Set;#d=null;#$=dr(()=>(this.#d=Ie(this.#o),()=>{this.#d=null}));constructor(t,n,r,s){this.#e=t,this.#i=n,this.#l=i=>{var f=p;f.b=this,f.f|=nt,r(i)},this.parent=p.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#s=Lr(()=>{if($){const i=this.#t;It();const f=i.data===Ct;if(i.data.startsWith(gt)){const a=JSON.parse(i.data.slice(gt.length));this.#m(a)}else f?this.#y():this.#b()}else this.#g()},_r),$&&(this.#e=w)}#b(){try{this.#f=ce(()=>this.#l(this.#e))}catch(t){this.error(t)}}#m(t){const n=this.#i.failed;n&&(this.#r=ce(()=>{n(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#i.pending;t&&(this.is_pending=!0,this.#n=ce(()=>t(this.#e)),fe(()=>{var n=this.#a=document.createDocumentFragment(),r=Q();n.append(r),this.#f=this.#p(()=>(Z.ensure(),ce(()=>this.#l(r)))),this.#u===0&&(this.#e.before(n),this.#a=null,Ve(this.#n,()=>{this.#n=null}),this.#v())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#o=0,this.#f=ce(()=>{this.#l(this.#e)}),this.#u>0){var t=this.#a=document.createDocumentFragment();Dr(this.#f,t);const n=this.#i.pending;this.#n=ce(()=>n(this.#e))}else this.#v()}catch(n){this.error(n)}}#v(){this.is_pending=!1;for(const t of this.#h)m(t,S),U(t);for(const t of this.#_)m(t,V),U(t);this.#h.clear(),this.#_.clear()}defer_effect(t){qt(t,this.#h,this.#_)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#p(t){var n=p,r=v,s=O;G(this.#s),M(this.#s),Ae(this.#s.ctx);try{return t()}catch(i){return Vt(i),null}finally{G(n),M(r),Ae(s)}}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#u+=t,this.#u===0&&(this.#v(),this.#n&&Ve(this.#n,()=>{this.#n=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#w(t),this.#o+=t,!(!this.#d||this.#c)&&(this.#c=!0,fe(()=>{this.#c=!1,this.#d&&We(this.#d,this.#o)}))}get_effect_pending(){return this.#$(),P(this.#d)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(!n&&!r)throw t;this.#f&&(H(this.#f),this.#f=null),this.#n&&(H(this.#n),this.#n=null),this.#r&&(H(this.#r),this.#r=null),$&&(B(this.#t),nr(),B(rr()));var s=!1,i=!1;const f=()=>{if(s){tr();return}s=!0,i&&er(),this.#r!==null&&Ve(this.#r,()=>{this.#r=null}),this.#p(()=>{Z.ensure(),this.#g()})},l=a=>{try{i=!0,n?.(a,f),i=!1}catch(u){se(u,this.#s&&this.#s.parent)}r&&(this.#r=this.#p(()=>{Z.ensure();try{return ce(()=>{var u=p;u.b=this,u.f|=nt,r(this.#e,()=>a,()=>f)})}catch(u){return se(u,this.#s.parent),null}}))};fe(()=>{var a;try{a=this.transform_error(t)}catch(u){se(u,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,u=>se(u,this.#s&&this.#s.parent)):l(a)})}}function gr(e,t,n,r){const s=Je;var i=e.filter(o=>!o.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var f=p,l=wr(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(o=>o.promise)):null;function u(o){l();try{r(o)}catch(h){(f.f&J)===0&&se(h,f)}st()}if(n.length===0){a.then(()=>u(t.map(s)));return}function c(){l(),Promise.all(n.map(o=>br(o))).then(o=>u([...t.map(s),...o])).catch(o=>se(o,f))}a?a.then(c):c()}function wr(){var e=p,t=v,n=O,r=b;return function(i=!0){G(e),M(t),Ae(n),i&&r?.activate()}}function st(e=!0){G(null),M(null),Ae(null),e&&b?.deactivate()}function $r(){var e=p.b,t=b,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function Je(e){var t=N|S,n=v!==null&&(v.f&N)!==0?v:null;return p!==null&&(p.f|=$e),{ctx:O,deps:null,effects:null,equals:Mt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??p,ac:null}}function br(e,t,n){p===null&&Yn();var s=void 0,i=Ie(T),f=!v,l=new Map;return kr(()=>{var a=kt();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(st)}catch(h){a.reject(h),st()}var u=b;if(f){var c=$r();l.get(u)?.reject(he),l.delete(u),l.set(u,a)}const o=(h,_=void 0)=>{if(u.activate(),_)_!==he&&(i.f|=ie,We(i,_));else{(i.f&ie)!==0&&(i.f^=ie),We(i,h);for(const[d,g]of l){if(l.delete(d),d===u)break;g.reject(he)}}c&&c()};a.promise.then(o,h=>o(null,h||"unknown"))}),rn(()=>{for(const a of l.values())a.reject(he)}),new Promise(a=>{function u(c){function o(){c===s?a(i):u(s)}c.then(o,o)}u(s)})}function Es(e){const t=Je(e);return cn(t),t}function mr(e){const t=Je(e);return t.equals=Dt,t}function yr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Er(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return(t.f&J)===0?t:null;t=t.parent}return null}function ht(e){var t,n=p;G(Er(e));try{e.f&=~ge,yr(e),t=vn(e)}finally{G(n)}return t}function Kt(e){var t=ht(e);if(!e.equals(t)&&(e.wv=dn(),(!b?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){m(e,A);return}le||(F!==null?(_t()||b?.is_fork)&&F.set(e,t):ct(e))}function Tr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=jn,t.ac=null,ke(t,0),vt(t))}function Xt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ne(t)}let it=new Set;const ae=new Map;let Jt=!1;function Ie(e,t){var n={f:0,v:e,reactions:null,equals:Mt,rv:0,wv:0};return n}function re(e,t){const n=Ie(e);return cn(n),n}function Ar(e,t=!1,n=!0){const r=Ie(e);return t||(r.equals=Dt),r}function Y(e,t,n=!1){v!==null&&(!j||(v.f&$t)!==0)&&Ft()&&(v.f&(N|ue|ot|$t))!==0&&(I===null||!Ee.call(I,e))&&Qn();let r=n?be(t):t;return We(e,r)}function We(e,t){if(!e.equals(t)){var n=e.v;le?ae.set(e,t):ae.set(e,n),e.v=t;var r=Z.ensure();if(r.capture(e,n),(e.f&N)!==0){const s=e;(e.f&S)!==0&&ht(s),ct(s)}e.wv=dn(),Zt(e,S),p!==null&&(p.f&A)!==0&&(p.f&(K|oe))===0&&(k===null?Fr([e]):k.push(e)),!r.is_fork&&it.size>0&&!Jt&&Sr()}return t}function Sr(){Jt=!1;for(const e of it)(e.f&A)!==0&&m(e,V),Me(e)&&Ne(e);it.clear()}function Ts(e,t=1){var n=P(e),r=t===1?n++:n--;return Y(e,n),r}function Ce(e){Y(e,e.v+1)}function Zt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,l=(f&S)===0;if(l&&m(i,t),(f&N)!==0){var a=i;F?.delete(a),(f&ge)===0&&(f&L&&(i.f|=ge),Zt(a,V))}else l&&((f&ue)!==0&&X!==null&&X.add(i),U(i))}}function be(e){if(typeof e!="object"||e===null||me in e)return e;const t=Fn(e);if(t!==Mn&&t!==Dn)return e;var n=new Map,r=kn(e),s=re(0),i=pe,f=l=>{if(pe===i)return l();var a=v,u=pe;M(null),St(i);var c=l();return M(a),St(u),c};return r&&n.set("length",re(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Jn();var c=n.get(a);return c===void 0?f(()=>{var o=re(u.value);return n.set(a,o),o}):Y(c,u.value,!0),!0},deleteProperty(l,a){var u=n.get(a);if(u===void 0){if(a in l){const c=f(()=>re(T));n.set(a,c),Ce(s)}}else Y(u,T),Ce(s);return!0},get(l,a,u){if(a===me)return e;var c=n.get(a),o=a in l;if(c===void 0&&(!o||ve(l,a)?.writable)&&(c=f(()=>{var _=be(o?l[a]:T),d=re(_);return d}),n.set(a,c)),c!==void 0){var h=P(c);return h===T?void 0:h}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var c=n.get(a);c&&(u.value=P(c))}else if(u===void 0){var o=n.get(a),h=o?.v;if(o!==void 0&&h!==T)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(l,a){if(a===me)return!0;var u=n.get(a),c=u!==void 0&&u.v!==T||Reflect.has(l,a);if(u!==void 0||p!==null&&(!c||ve(l,a)?.writable)){u===void 0&&(u=f(()=>{var h=c?be(l[a]):T,_=re(h);return _}),n.set(a,u));var o=P(u);if(o===T)return!1}return c},set(l,a,u,c){var o=n.get(a),h=a in l;if(r&&a==="length")for(var _=u;_<o.v;_+=1){var d=n.get(_+"");d!==void 0?Y(d,T):_ in l&&(d=f(()=>re(T)),n.set(_+"",d))}if(o===void 0)(!h||ve(l,a)?.writable)&&(o=f(()=>re(void 0)),Y(o,be(u)),n.set(a,o));else{h=o.v!==T;var g=f(()=>be(u));Y(o,g)}var y=Reflect.getOwnPropertyDescriptor(l,a);if(y?.set&&y.set.call(c,u),!h){if(r&&typeof a=="string"){var D=n.get("length"),E=Number(a);Number.isInteger(E)&&E>=D.v&&Y(D,E+1)}Ce(s)}return!0},ownKeys(l){P(s);var a=Reflect.ownKeys(l).filter(o=>{var h=n.get(o);return h===void 0||h.v!==T});for(var[u,c]of n)c.v!==T&&!(u in l)&&a.push(u);return a},setPrototypeOf(){Zn()}})}function yt(e){try{if(e!==null&&typeof e=="object"&&me in e)return e[me]}catch{}return e}function As(e,t){return Object.is(yt(e),yt(t))}var Et,Qt,en,tn;function ft(){if(Et===void 0){Et=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;en=ve(t,"firstChild").get,tn=ve(t,"nextSibling").get,wt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wt(n)&&(n.__t=void 0)}}function Q(e=""){return document.createTextNode(e)}function ee(e){return en.call(e)}function te(e){return tn.call(e)}function Ss(e,t){if(!$)return ee(e);var n=ee(w);if(n===null)n=w.appendChild(Q());else if(t&&n.nodeType!==Le){var r=Q();return n?.before(r),B(r),r}return t&&Ze(n),B(n),n}function Ns(e,t=!1){if(!$){var n=ee(e);return n instanceof Comment&&n.data===""?te(n):n}if(t){if(w?.nodeType!==Le){var r=Q();return w?.before(r),B(r),r}Ze(w)}return w}function Os(e,t=1,n=!1){let r=$?w:e;for(var s;t--;)s=r,r=te(r);if(!$)return r;if(n){if(r?.nodeType!==Le){var i=Q();return r===null?s?.after(i):r.before(i),B(i),i}Ze(r)}return B(r),r}function nn(e){e.textContent=""}function Rs(){return!1}function dt(e,t,n){return document.createElementNS(t??Pn,e,void 0)}function Ze(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Le;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function xs(e,t){if(t){const n=document.body;e.autofocus=!0,fe(()=>{document.activeElement===n&&e.focus()})}}function Cs(e){$&&ee(e)!==null&&nn(e)}let Tt=!1;function Nr(){Tt||(Tt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Qe(e){var t=v,n=p;M(null),G(null);try{return e()}finally{M(t),G(n)}}function Ps(e,t,n,r=n){e.addEventListener(t,()=>Qe(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Nr()}function Or(e){p===null&&(v===null&&zn(),Wn()),le&&Un()}function Rr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function q(e,t){var n=p;n!==null&&(n.f&W)!==0&&(e|=W);var r={ctx:O,deps:null,nodes:null,f:e|S|L,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&Oe)!==0)Se!==null?Se.push(r):U(r);else if(t!==null){try{Ne(r)}catch(f){throw H(r),f}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&$e)===0&&(s=s.first,(e&ue)!==0&&(e&Pe)!==0&&s!==null&&(s.f|=Pe))}if(s!==null&&(s.parent=n,n!==null&&Rr(s,n),v!==null&&(v.f&N)!==0&&(e&oe)===0)){var i=v;(i.effects??=[]).push(s)}return r}function _t(){return v!==null&&!j}function rn(e){const t=q(Te,null);return m(t,A),t.teardown=e,t}function ks(e){Or();var t=p.f,n=!v&&(t&K)!==0&&(t&we)===0;if(n){var r=O;(r.e??=[]).push(e)}else return sn(e)}function sn(e){return q(Oe|Bn,e)}function xr(e){Z.ensure();const t=q(oe|$e,e);return()=>{H(t)}}function Cr(e){Z.ensure();const t=q(oe|$e,e);return(n={})=>new Promise(r=>{n.outro?Ve(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Pr(e){return q(Oe,e)}function kr(e){return q(ot|$e,e)}function fn(e,t=0){return q(Te|t,e)}function Ls(e,t=[],n=[],r=[]){gr(r,t,n,s=>{q(Te,()=>e(...s.map(P)))})}function Lr(e,t=0){var n=q(ue|t,e);return n}function Is(e,t=0){var n=q(ze|t,e);return n}function ce(e){return q(K|$e,e)}function an(e){var t=e.teardown;if(t!==null){const n=le,r=v;At(!0),M(null);try{t.call(null)}finally{At(n),M(r)}}}function vt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Qe(()=>{s.abort(he)});var r=n.next;(n.f&oe)!==0?n.parent=null:H(n,t),n=r}}function Ir(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&K)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Vn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Mr(e.nodes.start,e.nodes.end),n=!0),vt(e,t&&!n),ke(e,0),m(e,J);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();an(e);var s=e.parent;s!==null&&s.first!==null&&ln(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Mr(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function ln(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ve(e,t,n=!0){var r=[];un(e,r,!0);var s=()=>{n&&H(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var l of r)l.out(f)}else s()}function un(e,t,n){if((e.f&W)===0){e.f^=W;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Pe)!==0||(s.f&K)!==0&&(e.f&ue)!==0;un(s,t,f?n:!1),s=i}}}function Ms(e){on(e,!0)}function on(e,t){if((e.f&W)!==0){e.f^=W;for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Pe)!==0||(n.f&K)!==0;on(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const f of i)(f.is_global||t)&&f.in()}}function Dr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:te(n);t.append(n),n=s}}let Be=!1,le=!1;function At(e){le=e}let v=null,j=!1;function M(e){v=e}let p=null;function G(e){p=e}let I=null;function cn(e){v!==null&&(I===null?I=[e]:I.push(e))}let x=null,C=0,k=null;function Fr(e){k=e}let hn=1,_e=0,pe=_e;function St(e){pe=e}function dn(){return++hn}function Me(e){var t=e.f;if((t&S)!==0)return!0;if(t&N&&(e.f&=~ge),(t&V)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Me(i)&&Kt(i),i.wv>e.wv)return!0}(t&L)!==0&&F===null&&m(e,A)}return!1}function _n(e,t,n=!0){var r=e.reactions;if(r!==null&&!(I!==null&&Ee.call(I,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&N)!==0?_n(i,t,!1):t===i&&(n?m(i,S):(i.f&A)!==0&&m(i,V),U(i))}}function vn(e){var t=x,n=C,r=k,s=v,i=I,f=O,l=j,a=pe,u=e.f;x=null,C=0,k=null,v=(u&(K|oe))===0?e:null,I=null,Ae(e.ctx),j=!1,pe=++_e,e.ac!==null&&(Qe(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=rt;var c=e.fn,o=c();e.f|=we;var h=e.deps,_=b?.is_fork;if(x!==null){var d;if(_||ke(e,C),h!==null&&C>0)for(h.length=C+x.length,d=0;d<x.length;d++)h[C+d]=x[d];else e.deps=h=x;if(_t()&&(e.f&L)!==0)for(d=C;d<h.length;d++)(h[d].reactions??=[]).push(e)}else!_&&h!==null&&C<h.length&&(ke(e,C),h.length=C);if(Ft()&&k!==null&&!j&&h!==null&&(e.f&(N|V|S))===0)for(d=0;d<k.length;d++)_n(k[d],e);if(s!==null&&s!==e){if(_e++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=_e;if(t!==null)for(const g of t)g.rv=_e;k!==null&&(r===null?r=k:r.push(...k))}return(e.f&ie)!==0&&(e.f^=ie),o}catch(g){return Vt(g)}finally{e.f^=rt,x=t,C=n,k=r,v=s,I=i,Ae(f),j=l,pe=a}}function jr(e,t){let n=t.reactions;if(n!==null){var r=Ln.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&N)!==0&&(x===null||!Ee.call(x,t))){var i=t;(i.f&L)!==0&&(i.f^=L,i.f&=~ge),ct(i),Tr(i),ke(i,0)}}function ke(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)jr(e,n[r])}function Ne(e){var t=e.f;if((t&J)===0){m(e,A);var n=p,r=Be;p=e,Be=!0;try{(t&(ue|ze))!==0?Ir(e):vt(e),an(e);var s=vn(e);e.teardown=typeof s=="function"?s:null,e.wv=hn;var i;tt&&ir&&(e.f&S)!==0&&e.deps}finally{Be=r,p=n}}}async function Ds(){await Promise.resolve(),Yt()}function P(e){var t=e.f,n=(t&N)!==0;if(v!==null&&!j){var r=p!==null&&(p.f&J)!==0;if(!r&&(I===null||!Ee.call(I,e))){var s=v.deps;if((v.f&rt)!==0)e.rv<_e&&(e.rv=_e,x===null&&s!==null&&s[C]===e?C++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:Ee.call(i,v)||i.push(v)}}}if(le&&ae.has(e))return ae.get(e);if(n){var f=e;if(le){var l=f.v;return((f.f&A)===0&&f.reactions!==null||gn(f))&&(l=ht(f)),ae.set(f,l),l}var a=(f.f&L)===0&&!j&&v!==null&&(Be||(v.f&L)!==0),u=(f.f&we)===0;Me(f)&&(a&&(f.f|=L),Kt(f)),a&&!u&&(Xt(f),pn(f))}if(F?.has(e))return F.get(e);if((e.f&ie)!==0)throw e.v;return e.v}function pn(e){if(e.f|=L,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&L)===0&&(Xt(t),pn(t))}function gn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&N)!==0&&gn(t))return!0;return!1}function wn(e){var t=j;try{return j=!0,e()}finally{j=t}}const Re=Symbol("events"),$n=new Set,at=new Set;function bn(e,t,n,r={}){function s(i){if(r.capture||lt.call(t,i),!i.cancelBubble)return Qe(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?fe(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Fs(e,t,n,r={}){var s=bn(t,e,n,r);return()=>{e.removeEventListener(t,s,r)}}function js(e,t,n,r,s){var i={capture:r,passive:s},f=bn(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rn(()=>{t.removeEventListener(e,f,i)})}function Hs(e,t,n){(t[Re]??={})[e]=n}function Vs(e){for(var t=0;t<e.length;t++)$n.add(e[t]);for(var n of at)n(e)}let Nt=null;function lt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Nt=e;var f=0,l=Nt===e&&e[Re];if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e[Re]=t;return}var u=s.indexOf(t);if(u===-1)return;a<=u&&(f=a)}if(i=s[f]||e.target,i!==t){Ue(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=v,o=p;M(null),G(null);try{for(var h,_=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[Re]?.[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(y){h?_.push(y):h=y}if(e.cancelBubble||d===t||d===null)break;i=d}if(h){for(let y of _)queueMicrotask(()=>{throw y});throw h}}finally{e[Re]=t,delete e.currentTarget,M(c),G(o)}}}const Hr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Vr(e){return Hr?.createHTML(e)??e}function mn(e){var t=dt("template");return t.innerHTML=Vr(e.replaceAll("<!>","<!---->")),t.content}function z(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Bs(e,t){var n=(t&xn)!==0,r=(t&Cn)!==0,s,i=!e.startsWith("<!>");return()=>{if($)return z(w,null),w;s===void 0&&(s=mn(i?e:"<!>"+e),n||(s=ee(s)));var f=r||Qt?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=ee(f),a=f.lastChild;z(l,a)}else z(f,f);return f}}function Br(e,t,n="svg"){var r=!e.startsWith("<!>"),s=`<${n}>${r?e:"<!>"+e}</${n}>`,i;return()=>{if($)return z(w,null),w;if(!i){var f=mn(s),l=ee(f);i=ee(l)}var a=i.cloneNode(!0);return z(a,a),a}}function qs(e,t){return Br(e,t,"svg")}function Ys(e=""){if(!$){var t=Q(e+"");return z(t,t),t}var n=w;return n.nodeType!==Le?(n.before(n=Q()),B(n)):Ze(n),z(n,n),n}function Us(){if($)return z(w,null),w;var e=document.createDocumentFragment(),t=document.createComment(""),n=Q();return e.append(t,n),z(t,n),e}function qr(e,t){if($){var n=p;((n.f&we)===0||n.nodes.end===null)&&(n.nodes.end=w),It();return}e!==null&&e.before(t)}function Ws(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Yr=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function zs(e){return Yr.includes(e)}const Ur={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Gs(e){return e=e.toLowerCase(),Ur[e]??e}const Wr=["touchstart","touchmove"];function zr(e){return Wr.includes(e)}const Gr=["textarea","script","style","title"];function Ks(e){return Gr.includes(e)}function Xs(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function yn(e,t){return En(e,t)}function Kr(e,t){ft(),t.intro=t.intro??!1;const n=t.target,r=$,s=w;try{for(var i=ee(n);i&&(i.nodeType!==Ge||i.data!==xt);)i=te(i);if(!i)throw ye;De(!0),B(i);const f=En(e,{...t,anchor:i});return De(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==ye&&console.warn("Failed to hydrate: ",f),t.recover===!1&&Kn(),ft(),nn(n),De(!1),yn(e,t)}finally{De(r),B(s)}}const je=new Map;function En(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0,transformError:l}){ft();var a=void 0,u=Cr(()=>{var c=n??t.appendChild(Q());vr(c,{pending:()=>{}},_=>{fr({});var d=O;if(i&&(d.c=i),s&&(r.$$events=s),$&&z(_,null),a=e(_,r)||{},$&&(p.nodes.end=w,w===null||w.nodeType!==Ge||w.data!==Pt))throw Ke(),ye;ar()},l);var o=new Set,h=_=>{for(var d=0;d<_.length;d++){var g=_[d];if(!o.has(g)){o.add(g);var y=zr(g);for(const ne of[t,document]){var D=je.get(ne);D===void 0&&(D=new Map,je.set(ne,D));var E=D.get(g);E===void 0?(ne.addEventListener(g,lt,{passive:y}),D.set(g,1)):D.set(g,E+1)}}}};return h(In($n)),at.add(h),()=>{for(var _ of o)for(const y of[t,document]){var d=je.get(y),g=d.get(_);--g==0?(y.removeEventListener(_,lt),d.delete(_),d.size===0&&je.delete(y)):d.set(_,g)}at.delete(h),c!==n&&c.parentNode?.removeChild(c)}});return ut.set(a,u),a}let ut=new WeakMap;function Xr(e,t){const n=ut.get(e);return n?(ut.delete(e),n(t)):Promise.resolve()}function Js(e,t){Pr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=dt("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Tn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Tn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Jr(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Tn(e))&&(r&&(r+=" "),r+=t);return r}function Zs(e){return typeof e=="object"?Jr(e):e??""}const Ot=[...`
3
- \r\f \v\uFEFF`];function Zr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var s of Object.keys(n))if(n[s])r=r?r+" "+s:s;else if(r.length)for(var i=s.length,f=0;(f=r.indexOf(s,f))>=0;){var l=f+i;(f===0||Ot.includes(r[f-1]))&&(l===r.length||Ot.includes(r[l]))?r=(f===0?"":r.substring(0,f))+r.substring(l+1):f=l}}return r===""?null:r}function Rt(e,t=!1){var n=t?" !important;":";",r="";for(var s of Object.keys(e)){var i=e[s];i!=null&&i!==""&&(r+=" "+s+": "+i+n)}return r}function et(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Qs(e,t){if(t){var n="",r,s;if(Array.isArray(t)?(r=t[0],s=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,f=0,l=!1,a=[];r&&a.push(...Object.keys(r).map(et)),s&&a.push(...Object.keys(s).map(et));var u=0,c=-1;const g=e.length;for(var o=0;o<g;o++){var h=e[o];if(l?h==="/"&&e[o-1]==="*"&&(l=!1):i?i===h&&(i=!1):h==="/"&&e[o+1]==="*"?l=!0:h==='"'||h==="'"?i=h:h==="("?f++:h===")"&&f--,!l&&i===!1&&f===0){if(h===":"&&c===-1)c=o;else if(h===";"||o===g-1){if(c!==-1){var _=et(e.substring(u,c).trim());if(!a.includes(_)){h!==";"&&o++;var d=e.substring(u,o).trim();n+=" "+d+";"}}u=o+1,c=-1}}}}return r&&(n+=Rt(r)),s&&(n+=Rt(s,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function ei(e,t,n,r,s,i){var f=e.__className;if($||f!==n||f===void 0){var l=Zr(n,r,i);(!$||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=n}else if(i&&s!==i)for(var a in i){var u=!!i[a];(s==null||u!==!!s[a])&&e.classList.toggle(a,u)}return i}let He=!1;function Qr(e){var t=He;try{return He=!1,[e(),He]}finally{He=t}}function ti(e,t=1){const n=e();return e(n+t),n}const es={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ni(e,t,n){return new Proxy({props:e,exclude:t},es)}function ri(e,t,n,r){var s=(n&On)!==0,i=(n&Rn)!==0,f=r,l=!0,a=()=>(l&&(l=!1,f=i?wn(r):r),f),u;if(s){var c=me in e||Lt in e;u=ve(e,t)?.set??(c&&t in e?E=>e[t]=E:void 0)}var o,h=!1;s?[o,h]=Qr(()=>e[t]):o=e[t],o===void 0&&r!==void 0&&(o=a(),u&&(Xn(),u(o)));var _;if(_=()=>{var E=e[t];return E===void 0?a():(l=!0,E)},(n&Nn)===0)return _;if(u){var d=e.$$legacy;return(function(E,ne){return arguments.length>0?((!ne||d||h)&&u(ne?_():E),E):_()})}var g=!1,y=((n&Sn)!==0?Je:mr)(()=>(g=!1,_()));s&&P(y);var D=p;return(function(E,ne){if(arguments.length>0){const pt=ne?P(y):s?be(E):E;return Y(y,pt),g=!0,f!==void 0&&(f=pt),E}return le&&g||(D.f&J)!==0?y.v:P(y)})}function ts(e){return new ns(e)}class ns{#e;#t;constructor(t){var n=new Map,r=(i,f)=>{var l=Ar(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return P(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Lt?!0:(P(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return Y(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#t=(t.hydrate?Kr:yn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Yt(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Ue(this,i,{get(){return this.#t[i]},set(f){this.#t[i]=f},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Xr(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...s)=>n.call(this,...s);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let An;typeof HTMLElement=="function"&&(An=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=dt("slot");r!=="default"&&(i.name=r),qr(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=rs(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=qe(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ts({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=xr(()=>{fn(()=>{this.$$r=!0;for(const r of Ye(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=qe(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=qe(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ye(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function qe(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function rs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function si(e,t,n,r,s,i){let f=class extends An{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ye(t).forEach(l=>{Ue(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=qe(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var c=ve(u,l)?.get;c?u[l]=a:u.$set({[l]:a})}}})}),r.forEach(l=>{Ue(f.prototype,l,{get(){return this.$$c?.[l]}})}),i&&(f=i(f)),e.element=f,f}export{Gs as $,ti as A,ks as B,js as C,ms as D,ys as E,dr as F,Fs as G,$ as H,It as I,Is as J,H as K,ce as L,Pr as M,Qs as N,kn as O,ws as P,As as Q,rn as R,Ps as S,b as T,bt as U,gr as V,os as W,vs as X,Ws as Y,bn as Z,xs as _,Js as a,T as a0,Pn as a1,Fn as a2,ds as a3,zs as a4,cs as a5,fe as a6,Nr as a7,De as a8,M as a9,K as aA,as as aB,nn as aC,Dr as aD,ee as aE,Ct as aF,Ge as aG,Pt as aH,te as aI,wn as aJ,fn as aK,Ds as aL,O as aM,qn as aN,xt as aO,me as aP,qs as aQ,dt as aR,us as aS,z as aT,ps as aU,Ks as aV,nr as aW,pe as aX,Ce as aY,Ys as aZ,Ts as a_,G as aa,v as ab,p as ac,Lr as ad,Pe as ae,bs as af,rr as ag,B as ah,w as ai,Q as aj,We as ak,hs as al,gs as am,Rs as an,fs as ao,mr as ap,In as aq,ss as ar,ls as as,Ar as at,Ie as au,is as av,J as aw,Ms as ax,Ve as ay,W as az,qr as b,si as c,ar as d,fr as e,Bs as f,be as g,Ss as h,P as i,ei as j,Xs as k,Zs as l,Yt as m,ni as n,Vs as o,ri as p,Y as q,$s as r,Os as s,Ls as t,Hs as u,re as v,Es as w,Ns as x,Us as y,Cs as z};
1
+ typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const is=1,as=2,ls=4,fs=8,us=16,Nn=1,On=4,Rn=8,xn=16,Cn=1,Pn=2,Ct="[",Pt="[!",gt="[?",It="]",me={},S=Symbol(),In="http://www.w3.org/1999/xhtml",os="http://www.w3.org/2000/svg",cs="@attach",Ln=!1;var kn=Array.isArray,Mn=Array.prototype.indexOf,ye=Array.prototype.includes,Dn=Array.from,Be=Object.keys,Ye=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,hs=Object.getOwnPropertyDescriptors,Fn=Object.prototype,jn=Array.prototype,Hn=Object.getPrototypeOf,$t=Object.isExtensible;const Vn=()=>{};function Bn(e){for(var t=0;t<e.length;t++)e[t]()}function Lt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const A=2,Ee=4,We=8,ft=1<<24,ue=16,z=32,le=64,et=128,L=512,T=1024,N=2048,V=4096,U=8192,j=16384,oe=32768,wt=1<<25,xe=65536,bt=1<<17,Yn=1<<18,ge=1<<19,qn=1<<20,ds=1<<25,pe=65536,tt=1<<21,ut=1<<22,se=1<<23,be=Symbol("$state"),kt=Symbol("legacy props"),_s=Symbol(""),X=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ps=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),gs=1,Pe=3,ze=8;function Un(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Wn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $s(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function zn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Kn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Xn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Zn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Qn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function er(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function tr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ge(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ws(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function rr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function ke(e){m=e}let $;function B(e){if(e===null)throw Ge(),me;return $=e}function Mt(){return B(ee($))}function bs(e){if(m){if(ee($)!==null)throw Ge(),me;$=e}}function sr(e=1){if(m){for(var t=e,n=$;t--;)n=ee(n);$=n}}function ir(e=!0){for(var t=0,n=$;;){if(n.nodeType===ze){var r=n.data;if(r===It){if(t===0)return n;t-=1}else(r===Ct||r===Pt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=ee(n);e&&n.remove(),n=s}}function ms(e){if(!e||e.nodeType!==ze)throw Ge(),me;return e.data}function Dt(e){return e===this.v}function ar(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ft(e){return!ar(e,this.v)}let lr=!1,O=null;function Te(e){O=e}function ys(e){return Ht().get(e)}function Es(e,t){return Ht().set(e,t),t}function fr(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function ur(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)an(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function jt(){return!0}function Ht(e){return O===null&&Un(),O.c??=new Map(or(O)||void 0)}function or(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let he=[];function Vt(){var e=he;he=[],Bn(e)}function ie(e){if(he.length===0&&!Oe){var t=he;queueMicrotask(()=>{t===he&&Vt()})}he.push(e)}function cr(){for(;he.length>0;)Vt()}function Bt(e){var t=p;if(t===null)return v.f|=se,e;if((t.f&oe)===0&&(t.f&Ee)===0)throw e;re(e,t)}function re(e,t){for(;t!==null;){if((t.f&et)!==0){if((t.f&oe)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const hr=-7169;function y(e,t){e.f=e.f&hr|t}function ot(e){(e.f&L)!==0||e.deps===null?y(e,T):y(e,V)}function Yt(e){if(e!==null)for(const t of e)(t.f&A)===0||(t.f&pe)===0||(t.f^=pe,Yt(t.deps))}function qt(e,t,n){(e.f&N)!==0?t.add(e):(e.f&V)!==0&&n.add(e),Yt(e.deps),y(e,T)}let Me=!1;function dr(e){var t=Me;try{return Me=!1,[e(),Me]}finally{Me=t}}const Se=new Set;let w=null,D=null,nt=null,Oe=!1,Ze=!1,$e=null,Fe=null;var mt=0;let _r=1;class J{id=_r++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#l=0;#f=0;#n=null;#a=[];#r=new Set;#s=new Set;#i=new Map;is_fork=!1;#u=!1;#o(){return this.is_fork||this.#f>0}skip_effect(t){this.#i.has(t)||this.#i.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#i.get(t);if(n){this.#i.delete(t);for(var r of n.d)y(r,N),this.schedule(r);for(r of n.m)y(r,V),this.schedule(r)}}#h(){mt++>1e3&&vr();const t=this.#a;this.#a=[],this.apply();var n=$e=[],r=[],s=Fe=[];for(const l of t)this.#d(l,n,r);if(w=null,s.length>0){var i=J.ensure();for(const l of s)i.schedule(l)}if($e=null,Fe=null,this.#o()){this.#_(r),this.#_(n);for(const[l,f]of this.#i)Gt(l,f)}else{this.#r.clear(),this.#s.clear();for(const l of this.#e)l(this);this.#e.clear(),yt(r),yt(n),this.#l===0&&this.#c(),this.#n?.resolve()}var a=w;a!==null&&(Se.add(a),a.#h())}#d(t,n,r){t.f^=T;for(var s=t.first;s!==null;){var i=s.f,a=(i&(z|le))!==0,l=a&&(i&T)!==0,f=l||(i&U)!==0||this.#i.has(s);if(!f&&s.fn!==null){a?s.f^=T:(i&Ee)!==0?n.push(s):Le(s)&&((i&ue)!==0&&this.#s.add(s),Ae(s));var u=s.first;if(u!==null){s=u;continue}}for(;s!==null;){var c=s.next;if(c!==null){s=c;break}s=s.parent}}}#_(t){for(var n=0;n<t.length;n+=1)qt(t[n],this.#r,this.#s)}capture(t,n){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&se)===0&&(this.current.set(t,t.v),D?.set(t,t.v))}activate(){w=this}deactivate(){w=null,D=null}flush(){try{if(Ze=!0,w=this,!this.#o()){for(const t of this.#r)this.#s.delete(t),y(t,N),this.schedule(t);for(const t of this.#s)y(t,V),this.schedule(t)}this.#h()}finally{mt=0,nt=null,$e=null,Fe=null,Ze=!1,w=null,D=null,ae.clear()}}discard(){for(const t of this.#t)t(this);this.#t.clear()}#c(){if(Se.size>1){this.previous.clear();var t=w,n=D,r=!0;for(const s of Se){if(s===this){r=!1;continue}const i=[];for(const[l,f]of this.current){if(s.current.has(l))if(r&&f!==s.current.get(l))s.current.set(l,f);else continue;i.push(l)}if(i.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){s.activate();const l=new Set,f=new Map;for(const u of i)Wt(u,a,l,f);if(s.#a.length>0){s.apply();for(const u of s.#a)s.#d(u,[],[])}s.deactivate()}}w=t,D=n}this.#i.clear(),Se.delete(this)}increment(t){this.#l+=1,t&&(this.#f+=1)}decrement(t,n){this.#l-=1,t&&(this.#f-=1),!(this.#u||n)&&(this.#u=!0,ie(()=>{this.#u=!1,this.flush()}))}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#n??=Lt()).promise}static ensure(){if(w===null){const t=w=new J;Ze||(Se.add(w),Oe||ie(()=>{w===t&&t.flush()}))}return w}apply(){}schedule(t){if(nt=t,t.b?.is_pending&&(t.f&(Ee|We|ft))!==0&&(t.f&oe)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if($e!==null&&n===p&&(v===null||(v.f&A)===0))return;if((r&(le|z))!==0){if((r&T)===0)return;n.f^=T}}this.#a.push(n)}}function Ut(e){var t=Oe;Oe=!0;try{for(var n;;){if(cr(),w===null)return n;w.flush()}}finally{Oe=t}}function vr(){try{Xn()}catch(e){re(e,nt)}}let K=null;function yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(j|U))===0&&Le(r)&&(K=new Set,Ae(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&un(r),K?.size>0)){ae.clear();for(const s of K){if((s.f&(j|U))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)K.has(a)&&(K.delete(a),i.push(a)),a=a.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&(j|U))===0&&Ae(f)}}K.clear()}}K=null}}function Wt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&A)!==0?Wt(s,t,n,r):(i&(ut|ue))!==0&&(i&N)===0&&zt(s,t,r)&&(y(s,N),ct(s))}}function zt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(ye.call(t,s))return!0;if((s.f&A)!==0&&zt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ct(e){w.schedule(e)}function Gt(e,t){if(!((e.f&z)!==0&&(e.f&T)!==0)){(e.f&N)!==0?t.d.push(e):(e.f&V)!==0&&t.m.push(e),y(e,T);for(var n=e.first;n!==null;)Gt(n,t),n=n.next}}function pr(e){let t=0,n=Ie(0),r;return()=>{_t()&&(P(n),ln(()=>(t===0&&(r=wn(()=>e(()=>Re(n)))),t+=1,()=>{ie(()=>{t-=1,t===0&&(r?.(),r=void 0,Re(n))})})))}}var gr=xe|ge;function $r(e,t,n,r){new wr(e,t,n,r)}class wr{parent;is_pending=!1;transform_error;#e;#t=m?$:null;#l;#f;#n;#a=null;#r=null;#s=null;#i=null;#u=0;#o=0;#h=!1;#d=new Set;#_=new Set;#c=null;#w=pr(()=>(this.#c=Ie(this.#u),()=>{this.#c=null}));constructor(t,n,r,s){this.#e=t,this.#l=n,this.#f=i=>{var a=p;a.b=this,a.f|=et,r(i)},this.parent=p.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#n=Mr(()=>{if(m){const i=this.#t;Mt();const a=i.data===Pt;if(i.data.startsWith(gt)){const f=JSON.parse(i.data.slice(gt.length));this.#m(f)}else a?this.#y():this.#b()}else this.#g()},gr),m&&(this.#e=$)}#b(){try{this.#a=ce(()=>this.#f(this.#e))}catch(t){this.error(t)}}#m(t){const n=this.#l.failed;n&&(this.#s=ce(()=>{n(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#l.pending;if(t){this.is_pending=!0,this.#r=ce(()=>t(this.#e));var n=w;ie(()=>{var r=this.#i=document.createDocumentFragment(),s=Z();r.append(s),this.#a=this.#p(()=>ce(()=>this.#f(s))),this.#o===0&&(this.#e.before(r),this.#i=null,je(this.#r,()=>{this.#r=null}),this.#v(n))})}}#g(){var t=w;try{if(this.is_pending=this.has_pending_snippet(),this.#o=0,this.#u=0,this.#a=ce(()=>{this.#f(this.#e)}),this.#o>0){var n=this.#i=document.createDocumentFragment();jr(this.#a,n);const r=this.#l.pending;this.#r=ce(()=>r(this.#e))}else this.#v(t)}catch(r){this.error(r)}}#v(t){this.is_pending=!1;for(const n of this.#d)y(n,N),t.schedule(n);for(const n of this.#_)y(n,V),t.schedule(n);this.#d.clear(),this.#_.clear()}defer_effect(t){qt(t,this.#d,this.#_)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#l.pending}#p(t){var n=p,r=v,s=O;G(this.#n),M(this.#n),Te(this.#n.ctx);try{return J.ensure(),t()}catch(i){return Bt(i),null}finally{G(n),M(r),Te(s)}}#$(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#$(t,n);return}this.#o+=t,this.#o===0&&(this.#v(n),this.#r&&je(this.#r,()=>{this.#r=null}),this.#i&&(this.#e.before(this.#i),this.#i=null))}update_pending_count(t,n){this.#$(t,n),this.#u+=t,!(!this.#c||this.#h)&&(this.#h=!0,ie(()=>{this.#h=!1,this.#c&&Ue(this.#c,this.#u)}))}get_effect_pending(){return this.#w(),P(this.#c)}error(t){var n=this.#l.onerror;let r=this.#l.failed;if(!n&&!r)throw t;this.#a&&(H(this.#a),this.#a=null),this.#r&&(H(this.#r),this.#r=null),this.#s&&(H(this.#s),this.#s=null),m&&(B(this.#t),sr(),B(ir()));var s=!1,i=!1;const a=()=>{if(s){rr();return}s=!0,i&&nr(),this.#s!==null&&je(this.#s,()=>{this.#s=null}),this.#p(()=>{this.#g()})},l=f=>{try{i=!0,n?.(f,a),i=!1}catch(u){re(u,this.#n&&this.#n.parent)}r&&(this.#s=this.#p(()=>{try{return ce(()=>{var u=p;u.b=this,u.f|=et,r(this.#e,()=>f,()=>a)})}catch(u){return re(u,this.#n.parent),null}}))};ie(()=>{var f;try{f=this.transform_error(t)}catch(u){re(u,this.#n&&this.#n.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(l,u=>re(u,this.#n&&this.#n.parent)):l(f)})}}function br(e,t,n,r){const s=Ke;var i=e.filter(o=>!o.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var a=p,l=mr(),f=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(o=>o.promise)):null;function u(o){l();try{r(o)}catch(d){(a.f&j)===0&&re(d,a)}qe()}if(n.length===0){f.then(()=>u(t.map(s)));return}var c=Kt();function h(){Promise.all(n.map(o=>yr(o))).then(o=>u([...t.map(s),...o])).catch(o=>re(o,a)).finally(()=>c())}f?f.then(()=>{l(),h(),qe()}):h()}function mr(){var e=p,t=v,n=O,r=w;return function(i=!0){G(e),M(t),Te(n),i&&(e.f&j)===0&&(r?.activate(),r?.apply())}}function qe(e=!0){G(null),M(null),Te(null),e&&w?.deactivate()}function Kt(){var e=p.b,t=w,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function Ke(e){var t=A|N,n=v!==null&&(v.f&A)!==0?v:null;return p!==null&&(p.f|=ge),{ctx:O,deps:null,effects:null,equals:Dt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??p,ac:null}}function yr(e,t,n){let r=p;r===null&&Wn();var s=void 0,i=Ie(S),a=!v,l=new Map;return kr(()=>{var f=p,u=Lt();s=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(qe)}catch(d){u.reject(d),qe()}var c=w;if(a){if((f.f&oe)!==0)var h=Kt();if(r.b.is_rendered())l.get(c)?.reject(X),l.delete(c);else{for(const d of l.values())d.reject(X);l.clear()}l.set(c,u)}const o=(d,_=void 0)=>{if(h){var g=_===X;h(g)}if(!(_===X||(f.f&j)!==0)){if(c.activate(),_)i.f|=se,Ue(i,_);else{(i.f&se)!==0&&(i.f^=se),Ue(i,d);for(const[b,x]of l){if(l.delete(b),b===c)break;x.reject(X)}}c.deactivate()}};u.promise.then(o,d=>o(null,d||"unknown"))}),sn(()=>{for(const f of l.values())f.reject(X)}),new Promise(f=>{function u(c){function h(){c===s?f(i):u(s)}c.then(h,h)}u(s)})}function Ts(e){const t=Ke(e);return hn(t),t}function Er(e){const t=Ke(e);return t.equals=Ft,t}function Tr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Ar(e){for(var t=e.parent;t!==null;){if((t.f&A)===0)return(t.f&j)===0?t:null;t=t.parent}return null}function ht(e){var t,n=p;G(Ar(e));try{e.f&=~pe,Tr(e),t=pn(e)}finally{G(n)}return t}function Xt(e){var t=ht(e);if(!e.equals(t)&&(e.wv=_n(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,T);return}fe||(D!==null?(_t()||w?.is_fork)&&D.set(e,t):ot(e))}function Sr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(X),t.teardown=Vn,t.ac=null,Ce(t,0),vt(t))}function Jt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ae(t)}let rt=new Set;const ae=new Map;let Zt=!1;function Ie(e,t){var n={f:0,v:e,reactions:null,equals:Dt,rv:0,wv:0};return n}function ne(e,t){const n=Ie(e);return hn(n),n}function Nr(e,t=!1,n=!0){const r=Ie(e);return t||(r.equals=Ft),r}function q(e,t,n=!1){v!==null&&(!F||(v.f&bt)!==0)&&jt()&&(v.f&(A|ue|ut|bt))!==0&&(k===null||!ye.call(k,e))&&tr();let r=n?we(t):t;return Ue(e,r,Fe)}function Ue(e,t,n=null){if(!e.equals(t)){var r=e.v;fe?ae.set(e,t):ae.set(e,r),e.v=t;var s=J.ensure();if(s.capture(e,r),(e.f&A)!==0){const i=e;(e.f&N)!==0&&ht(i),ot(i)}e.wv=_n(),Qt(e,N,n),p!==null&&(p.f&T)!==0&&(p.f&(z|le))===0&&(I===null?Hr([e]):I.push(e)),!s.is_fork&&rt.size>0&&!Zt&&Or()}return t}function Or(){Zt=!1;for(const e of rt)(e.f&T)!==0&&y(e,V),Le(e)&&Ae(e);rt.clear()}function As(e,t=1){var n=P(e),r=t===1?n++:n--;return q(e,n),r}function Re(e){q(e,e.v+1)}function Qt(e,t,n){var r=e.reactions;if(r!==null)for(var s=r.length,i=0;i<s;i++){var a=r[i],l=a.f,f=(l&N)===0;if(f&&y(a,t),(l&A)!==0){var u=a;D?.delete(u),(l&pe)===0&&(l&L&&(a.f|=pe),Qt(u,V,n))}else if(f){var c=a;(l&ue)!==0&&K!==null&&K.add(c),n!==null?n.push(c):ct(c)}}}function we(e){if(typeof e!="object"||e===null||be in e)return e;const t=Hn(e);if(t!==Fn&&t!==jn)return e;var n=new Map,r=kn(e),s=ne(0),i=ve,a=l=>{if(ve===i)return l();var f=v,u=ve;M(null),Nt(i);var c=l();return M(f),Nt(u),c};return r&&n.set("length",ne(e.length)),new Proxy(e,{defineProperty(l,f,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Qn();var c=n.get(f);return c===void 0?a(()=>{var h=ne(u.value);return n.set(f,h),h}):q(c,u.value,!0),!0},deleteProperty(l,f){var u=n.get(f);if(u===void 0){if(f in l){const c=a(()=>ne(S));n.set(f,c),Re(s)}}else q(u,S),Re(s);return!0},get(l,f,u){if(f===be)return e;var c=n.get(f),h=f in l;if(c===void 0&&(!h||_e(l,f)?.writable)&&(c=a(()=>{var d=we(h?l[f]:S),_=ne(d);return _}),n.set(f,c)),c!==void 0){var o=P(c);return o===S?void 0:o}return Reflect.get(l,f,u)},getOwnPropertyDescriptor(l,f){var u=Reflect.getOwnPropertyDescriptor(l,f);if(u&&"value"in u){var c=n.get(f);c&&(u.value=P(c))}else if(u===void 0){var h=n.get(f),o=h?.v;if(h!==void 0&&o!==S)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return u},has(l,f){if(f===be)return!0;var u=n.get(f),c=u!==void 0&&u.v!==S||Reflect.has(l,f);if(u!==void 0||p!==null&&(!c||_e(l,f)?.writable)){u===void 0&&(u=a(()=>{var o=c?we(l[f]):S,d=ne(o);return d}),n.set(f,u));var h=P(u);if(h===S)return!1}return c},set(l,f,u,c){var h=n.get(f),o=f in l;if(r&&f==="length")for(var d=u;d<h.v;d+=1){var _=n.get(d+"");_!==void 0?q(_,S):d in l&&(_=a(()=>ne(S)),n.set(d+"",_))}if(h===void 0)(!o||_e(l,f)?.writable)&&(h=a(()=>ne(void 0)),q(h,we(u)),n.set(f,h));else{o=h.v!==S;var g=a(()=>we(u));q(h,g)}var b=Reflect.getOwnPropertyDescriptor(l,f);if(b?.set&&b.set.call(c,u),!o){if(r&&typeof f=="string"){var x=n.get("length"),E=Number(f);Number.isInteger(E)&&E>=x.v&&q(x,E+1)}Re(s)}return!0},ownKeys(l){P(s);var f=Reflect.ownKeys(l).filter(h=>{var o=n.get(h);return o===void 0||o.v!==S});for(var[u,c]of n)c.v!==S&&!(u in l)&&f.push(u);return f},setPrototypeOf(){er()}})}function Et(e){try{if(e!==null&&typeof e=="object"&&be in e)return e[be]}catch{}return e}function Ss(e,t){return Object.is(Et(e),Et(t))}var Tt,en,tn,nn;function st(){if(Tt===void 0){Tt=window,en=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tn=_e(t,"firstChild").get,nn=_e(t,"nextSibling").get,$t(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),$t(n)&&(n.__t=void 0)}}function Z(e=""){return document.createTextNode(e)}function Q(e){return tn.call(e)}function ee(e){return nn.call(e)}function Ns(e,t){if(!m)return Q(e);var n=Q($);if(n===null)n=$.appendChild(Z());else if(t&&n.nodeType!==Pe){var r=Z();return n?.before(r),B(r),r}return t&&Xe(n),B(n),n}function Os(e,t=!1){if(!m){var n=Q(e);return n instanceof Comment&&n.data===""?ee(n):n}if(t){if($?.nodeType!==Pe){var r=Z();return $?.before(r),B(r),r}Xe($)}return $}function Rs(e,t=1,n=!1){let r=m?$:e;for(var s;t--;)s=r,r=ee(r);if(!m)return r;if(n){if(r?.nodeType!==Pe){var i=Z();return r===null?s?.after(i):r.before(i),B(i),i}Xe(r)}return B(r),r}function rn(e){e.textContent=""}function xs(){return!1}function dt(e,t,n){return document.createElementNS(t??In,e,void 0)}function Xe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Pe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Cs(e,t){if(t){const n=document.body;e.autofocus=!0,ie(()=>{document.activeElement===n&&e.focus()})}}function Ps(e){m&&Q(e)!==null&&rn(e)}let At=!1;function Rr(){At||(At=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Je(e){var t=v,n=p;M(null),G(null);try{return e()}finally{M(t),G(n)}}function Is(e,t,n,r=n){e.addEventListener(t,()=>Je(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Rr()}function xr(e){p===null&&(v===null&&Kn(),Gn()),fe&&zn()}function Cr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Y(e,t){var n=p;n!==null&&(n.f&U)!==0&&(e|=U);var r={ctx:O,deps:null,nodes:null,f:e|N|L,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&Ee)!==0)$e!==null?$e.push(r):J.ensure().schedule(r);else if(t!==null){try{Ae(r)}catch(a){throw H(r),a}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ge)===0&&(s=s.first,(e&ue)!==0&&(e&xe)!==0&&s!==null&&(s.f|=xe))}if(s!==null&&(s.parent=n,n!==null&&Cr(s,n),v!==null&&(v.f&A)!==0&&(e&le)===0)){var i=v;(i.effects??=[]).push(s)}return r}function _t(){return v!==null&&!F}function sn(e){const t=Y(We,null);return y(t,T),t.teardown=e,t}function Ls(e){xr();var t=p.f,n=!v&&(t&z)!==0&&(t&oe)===0;if(n){var r=O;(r.e??=[]).push(e)}else return an(e)}function an(e){return Y(Ee|qn,e)}function Pr(e){J.ensure();const t=Y(le|ge,e);return()=>{H(t)}}function Ir(e){J.ensure();const t=Y(le|ge,e);return(n={})=>new Promise(r=>{n.outro?je(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Lr(e){return Y(Ee,e)}function kr(e){return Y(ut|ge,e)}function ln(e,t=0){return Y(We|t,e)}function ks(e,t=[],n=[],r=[]){br(r,t,n,s=>{Y(We,()=>e(...s.map(P)))})}function Mr(e,t=0){var n=Y(ue|t,e);return n}function Ms(e,t=0){var n=Y(ft|t,e);return n}function ce(e){return Y(z|ge,e)}function fn(e){var t=e.teardown;if(t!==null){const n=fe,r=v;St(!0),M(null);try{t.call(null)}finally{St(n),M(r)}}}function vt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Je(()=>{s.abort(X)});var r=n.next;(n.f&le)!==0?n.parent=null:H(n,t),n=r}}function Dr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&z)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Yn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fr(e.nodes.start,e.nodes.end),n=!0),y(e,wt),vt(e,t&&!n),Ce(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();fn(e),e.f^=wt,e.f|=j;var s=e.parent;s!==null&&s.first!==null&&un(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Fr(e,t){for(;e!==null;){var n=e===t?null:ee(e);e.remove(),e=n}}function un(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function je(e,t,n=!0){var r=[];on(e,r,!0);var s=()=>{n&&H(e),t&&t()},i=r.length;if(i>0){var a=()=>--i||s();for(var l of r)l.out(a)}else s()}function on(e,t,n){if((e.f&U)===0){e.f^=U;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,a=(s.f&xe)!==0||(s.f&z)!==0&&(e.f&ue)!==0;on(s,t,a?n:!1),s=i}}}function Ds(e){cn(e,!0)}function cn(e,t){if((e.f&U)!==0){e.f^=U,(e.f&T)===0&&(y(e,N),J.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&xe)!==0||(n.f&z)!==0;cn(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function jr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:ee(n);t.append(n),n=s}}let He=!1,fe=!1;function St(e){fe=e}let v=null,F=!1;function M(e){v=e}let p=null;function G(e){p=e}let k=null;function hn(e){v!==null&&(k===null?k=[e]:k.push(e))}let R=null,C=0,I=null;function Hr(e){I=e}let dn=1,de=0,ve=de;function Nt(e){ve=e}function _n(){return++dn}function Le(e){var t=e.f;if((t&N)!==0)return!0;if(t&A&&(e.f&=~pe),(t&V)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Le(i)&&Xt(i),i.wv>e.wv)return!0}(t&L)!==0&&D===null&&y(e,T)}return!1}function vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(k!==null&&ye.call(k,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&A)!==0?vn(i,t,!1):t===i&&(n?y(i,N):(i.f&T)!==0&&y(i,V),ct(i))}}function pn(e){var t=R,n=C,r=I,s=v,i=k,a=O,l=F,f=ve,u=e.f;R=null,C=0,I=null,v=(u&(z|le))===0?e:null,k=null,Te(e.ctx),F=!1,ve=++de,e.ac!==null&&(Je(()=>{e.ac.abort(X)}),e.ac=null);try{e.f|=tt;var c=e.fn,h=c();e.f|=oe;var o=e.deps,d=w?.is_fork;if(R!==null){var _;if(d||Ce(e,C),o!==null&&C>0)for(o.length=C+R.length,_=0;_<R.length;_++)o[C+_]=R[_];else e.deps=o=R;if(_t()&&(e.f&L)!==0)for(_=C;_<o.length;_++)(o[_].reactions??=[]).push(e)}else!d&&o!==null&&C<o.length&&(Ce(e,C),o.length=C);if(jt()&&I!==null&&!F&&o!==null&&(e.f&(A|V|N))===0)for(_=0;_<I.length;_++)vn(I[_],e);if(s!==null&&s!==e){if(de++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=de;if(t!==null)for(const g of t)g.rv=de;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&se)!==0&&(e.f^=se),h}catch(g){return Bt(g)}finally{e.f^=tt,R=t,C=n,I=r,v=s,k=i,Te(a),F=l,ve=f}}function Vr(e,t){let n=t.reactions;if(n!==null){var r=Mn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&A)!==0&&(R===null||!ye.call(R,t))){var i=t;(i.f&L)!==0&&(i.f^=L,i.f&=~pe),ot(i),Sr(i),Ce(i,0)}}function Ce(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vr(e,n[r])}function Ae(e){var t=e.f;if((t&j)===0){y(e,T);var n=p,r=He;p=e,He=!0;try{(t&(ue|ft))!==0?Dr(e):vt(e),fn(e);var s=pn(e);e.teardown=typeof s=="function"?s:null,e.wv=dn;var i;Ln&&lr&&(e.f&N)!==0&&e.deps}finally{He=r,p=n}}}async function Fs(){await Promise.resolve(),Ut()}function P(e){var t=e.f,n=(t&A)!==0;if(v!==null&&!F){var r=p!==null&&(p.f&j)!==0;if(!r&&(k===null||!ye.call(k,e))){var s=v.deps;if((v.f&tt)!==0)e.rv<de&&(e.rv=de,R===null&&s!==null&&s[C]===e?C++:R===null?R=[e]:R.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:ye.call(i,v)||i.push(v)}}}if(fe&&ae.has(e))return ae.get(e);if(n){var a=e;if(fe){var l=a.v;return((a.f&T)===0&&a.reactions!==null||$n(a))&&(l=ht(a)),ae.set(a,l),l}var f=(a.f&L)===0&&!F&&v!==null&&(He||(v.f&L)!==0),u=(a.f&oe)===0;Le(a)&&(f&&(a.f|=L),Xt(a)),f&&!u&&(Jt(a),gn(a))}if(D?.has(e))return D.get(e);if((e.f&se)!==0)throw e.v;return e.v}function gn(e){if(e.f|=L,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&A)!==0&&(t.f&L)===0&&(Jt(t),gn(t))}function $n(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&A)!==0&&$n(t))return!0;return!1}function wn(e){var t=F;try{return F=!0,e()}finally{F=t}}const Ne=Symbol("events"),bn=new Set,it=new Set;function mn(e,t,n,r={}){function s(i){if(r.capture||at.call(t,i),!i.cancelBubble)return Je(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ie(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function js(e,t,n,r={}){var s=mn(t,e,n,r);return()=>{e.removeEventListener(t,s,r)}}function Hs(e,t,n,r,s){var i={capture:r,passive:s},a=mn(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&sn(()=>{t.removeEventListener(e,a,i)})}function Vs(e,t,n){(t[Ne]??={})[e]=n}function Bs(e){for(var t=0;t<e.length;t++)bn.add(e[t]);for(var n of it)n(e)}let Ot=null;function at(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Ot=e;var a=0,l=Ot===e&&e[Ne];if(l){var f=s.indexOf(l);if(f!==-1&&(t===document||t===window)){e[Ne]=t;return}var u=s.indexOf(t);if(u===-1)return;f<=u&&(a=f)}if(i=s[a]||e.target,i!==t){Ye(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=v,h=p;M(null),G(null);try{for(var o,d=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[Ne]?.[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(b){o?d.push(b):o=b}if(e.cancelBubble||_===t||_===null)break;i=_}if(o){for(let b of d)queueMicrotask(()=>{throw b});throw o}}finally{e[Ne]=t,delete e.currentTarget,M(c),G(h)}}}const Br=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Yr(e){return Br?.createHTML(e)??e}function yn(e){var t=dt("template");return t.innerHTML=Yr(e.replaceAll("<!>","<!---->")),t.content}function W(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ys(e,t){var n=(t&Cn)!==0,r=(t&Pn)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return W($,null),$;s===void 0&&(s=yn(i?e:"<!>"+e),n||(s=Q(s)));var a=r||en?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=Q(a),f=a.lastChild;W(l,f)}else W(a,a);return a}}function qr(e,t,n="svg"){var r=!e.startsWith("<!>"),s=`<${n}>${r?e:"<!>"+e}</${n}>`,i;return()=>{if(m)return W($,null),$;if(!i){var a=yn(s),l=Q(a);i=Q(l)}var f=i.cloneNode(!0);return W(f,f),f}}function qs(e,t){return qr(e,t,"svg")}function Us(e=""){if(!m){var t=Z(e+"");return W(t,t),t}var n=$;return n.nodeType!==Pe?(n.before(n=Z()),B(n)):Xe(n),W(n,n),n}function Ws(){if(m)return W($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),n=Z();return e.append(t,n),W(t,n),e}function Ur(e,t){if(m){var n=p;((n.f&oe)===0||n.nodes.end===null)&&(n.nodes.end=$),Mt();return}e!==null&&e.before(t)}function zs(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Wr=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Gs(e){return Wr.includes(e)}const zr={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ks(e){return e=e.toLowerCase(),zr[e]??e}const Gr=["touchstart","touchmove"];function Kr(e){return Gr.includes(e)}const Xr=["textarea","script","style","title"];function Xs(e){return Xr.includes(e)}function Js(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function En(e,t){return Tn(e,t)}function Jr(e,t){st(),t.intro=t.intro??!1;const n=t.target,r=m,s=$;try{for(var i=Q(n);i&&(i.nodeType!==ze||i.data!==Ct);)i=ee(i);if(!i)throw me;ke(!0),B(i);const a=Tn(e,{...t,anchor:i});return ke(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==me&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Jn(),st(),rn(n),ke(!1),En(e,t)}finally{ke(r),B(s)}}const De=new Map;function Tn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0,transformError:l}){st();var f=void 0,u=Ir(()=>{var c=n??t.appendChild(Z());$r(c,{pending:()=>{}},d=>{fr({});var _=O;if(i&&(_.c=i),s&&(r.$$events=s),m&&W(d,null),f=e(d,r)||{},m&&(p.nodes.end=$,$===null||$.nodeType!==ze||$.data!==It))throw Ge(),me;ur()},l);var h=new Set,o=d=>{for(var _=0;_<d.length;_++){var g=d[_];if(!h.has(g)){h.add(g);var b=Kr(g);for(const te of[t,document]){var x=De.get(te);x===void 0&&(x=new Map,De.set(te,x));var E=x.get(g);E===void 0?(te.addEventListener(g,at,{passive:b}),x.set(g,1)):x.set(g,E+1)}}}};return o(Dn(bn)),it.add(o),()=>{for(var d of h)for(const b of[t,document]){var _=De.get(b),g=_.get(d);--g==0?(b.removeEventListener(d,at),_.delete(d),_.size===0&&De.delete(b)):_.set(d,g)}it.delete(o),c!==n&&c.parentNode?.removeChild(c)}});return lt.set(f,u),f}let lt=new WeakMap;function Zr(e,t){const n=lt.get(e);return n?(lt.delete(e),n(t)):Promise.resolve()}function Zs(e,t){Lr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=dt("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function An(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=An(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Qr(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=An(e))&&(r&&(r+=" "),r+=t);return r}function Qs(e){return typeof e=="object"?Qr(e):e??""}const Rt=[...`
3
+ \r\f \v\uFEFF`];function es(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var s of Object.keys(n))if(n[s])r=r?r+" "+s:s;else if(r.length)for(var i=s.length,a=0;(a=r.indexOf(s,a))>=0;){var l=a+i;(a===0||Rt.includes(r[a-1]))&&(l===r.length||Rt.includes(r[l]))?r=(a===0?"":r.substring(0,a))+r.substring(l+1):a=l}}return r===""?null:r}function xt(e,t=!1){var n=t?" !important;":";",r="";for(var s of Object.keys(e)){var i=e[s];i!=null&&i!==""&&(r+=" "+s+": "+i+n)}return r}function Qe(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ei(e,t){if(t){var n="",r,s;if(Array.isArray(t)?(r=t[0],s=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,a=0,l=!1,f=[];r&&f.push(...Object.keys(r).map(Qe)),s&&f.push(...Object.keys(s).map(Qe));var u=0,c=-1;const g=e.length;for(var h=0;h<g;h++){var o=e[h];if(l?o==="/"&&e[h-1]==="*"&&(l=!1):i?i===o&&(i=!1):o==="/"&&e[h+1]==="*"?l=!0:o==='"'||o==="'"?i=o:o==="("?a++:o===")"&&a--,!l&&i===!1&&a===0){if(o===":"&&c===-1)c=h;else if(o===";"||h===g-1){if(c!==-1){var d=Qe(e.substring(u,c).trim());if(!f.includes(d)){o!==";"&&h++;var _=e.substring(u,h).trim();n+=" "+_+";"}}u=h+1,c=-1}}}}return r&&(n+=xt(r)),s&&(n+=xt(s,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function ti(e,t,n,r,s,i){var a=e.__className;if(m||a!==n||a===void 0){var l=es(n,r,i);(!m||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=n}else if(i&&s!==i)for(var f in i){var u=!!i[f];(s==null||u!==!!s[f])&&e.classList.toggle(f,u)}return i}function ni(e,t=1){const n=e();return e(n+t),n}const ts={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function ri(e,t,n){return new Proxy({props:e,exclude:t},ts)}function si(e,t,n,r){var s=(n&Rn)!==0,i=(n&xn)!==0,a=r,l=!0,f=()=>(l&&(l=!1,a=i?wn(r):r),a);let u;if(s){var c=be in e||kt in e;u=_e(e,t)?.set??(c&&t in e?E=>e[t]=E:void 0)}var h,o=!1;s?[h,o]=dr(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),u&&(Zn(),u(h)));var d;if(d=()=>{var E=e[t];return E===void 0?f():(l=!0,E)},(n&On)===0)return d;if(u){var _=e.$$legacy;return(function(E,te){return arguments.length>0?((!te||_||o)&&u(te?d():E),E):d()})}var g=!1,b=((n&Nn)!==0?Ke:Er)(()=>(g=!1,d()));s&&P(b);var x=p;return(function(E,te){if(arguments.length>0){const pt=te?P(b):s?we(E):E;return q(b,pt),g=!0,a!==void 0&&(a=pt),E}return fe&&g||(x.f&j)!==0?b.v:P(b)})}function ns(e){return new rs(e)}class rs{#e;#t;constructor(t){var n=new Map,r=(i,a)=>{var l=Nr(a,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return P(n.get(a)??r(a,Reflect.get(i,a)))},has(i,a){return a===kt?!0:(P(n.get(a)??r(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,l){return q(n.get(a)??r(a,l),l),Reflect.set(i,a,l)}});this.#t=(t.hydrate?Jr:En)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ut(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#t[i]},set(a){this.#t[i]=a},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Zr(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...s)=>n.call(this,...s);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let Sn;typeof HTMLElement=="function"&&(Sn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=dt("slot");r!=="default"&&(i.name=r),Ur(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ss(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Ve(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ns({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pr(()=>{ln(()=>{this.$$r=!0;for(const r of Be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Ve(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ve(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ve(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ss(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ii(e,t,n,r,s,i){let a=class extends Sn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Be(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Be(t).forEach(l=>{Ye(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Ve(l,f,t),this.$$d[l]=f;var u=this.$$c;if(u){var c=_e(u,l)?.get;c?u[l]=f:u.$set({[l]:f})}}})}),r.forEach(l=>{Ye(a.prototype,l,{get(){return this.$$c?.[l]}})}),i&&(a=i(a)),e.element=a,a}export{_s as $,ni as A,Ls as B,Hs as C,ys as D,Es as E,pr as F,js as G,m as H,Mt as I,Ms as J,H as K,ce as L,Lr as M,ei as N,Is as O,w as P,sn as Q,kn as R,ws as S,Ss as T,br as U,In as V,Hn as W,M as X,G as Y,v as Z,p as _,Zs as a,cs as a0,hs as a1,ps as a2,zs as a3,mn as a4,Cs as a5,Ks as a6,S as a7,ie as a8,Rr as a9,fs as aA,rn as aB,jr as aC,Q as aD,Pt as aE,ze as aF,It as aG,ee as aH,wn as aI,ln as aJ,Fs as aK,O as aL,Un as aM,Ct as aN,wt as aO,be as aP,qs as aQ,dt as aR,os as aS,W as aT,gs as aU,Xs as aV,sr as aW,ve as aX,Re as aY,Us as aZ,As as a_,ke as aa,Gs as ab,Mr as ac,xe as ad,ms as ae,ir as af,B as ag,$ as ah,Z as ai,Ue as aj,ds as ak,$s as al,xs as am,ls as an,Er as ao,Dn as ap,is as aq,us as ar,Nr as as,Ie as at,as as au,j as av,Ds as aw,je as ax,U as ay,z as az,Ur as b,ii as c,ur as d,fr as e,Ys as f,we as g,Ns as h,P as i,ti as j,Js as k,ri as l,Ut as m,Qs as n,Bs as o,si as p,q,bs as r,Rs as s,ks as t,Vs as u,ne as v,Ts as w,Os as x,Ws as y,Ps as z};
4
4
  //# sourceMappingURL=custom-element.js.map