@papu1337/builder 0.0.4 → 1.0.1

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 (124) hide show
  1. package/dist/builder/BuilderView.svelte +158 -0
  2. package/dist/builder/BuilderView.svelte.d.ts +8 -0
  3. package/dist/builder/builder.vanilla.es.js +6514 -0
  4. package/dist/builder/builder.vanilla.umd.js +89 -0
  5. package/dist/builder/canvas/canvas.svelte +92 -0
  6. package/dist/builder/canvas/canvas.svelte.d.ts +17 -0
  7. package/dist/builder/canvas/styles.css +63 -0
  8. package/dist/builder/createBuilder.svelte.d.ts +9 -0
  9. package/dist/builder/createBuilder.svelte.js +17 -0
  10. package/dist/builder/index.d.ts +8 -0
  11. package/dist/builder/index.js +7 -0
  12. package/dist/builder/leftbar/leftBar.svelte +740 -0
  13. package/dist/builder/leftbar/leftBar.svelte.d.ts +8 -0
  14. package/dist/builder/leftbar/styles.css +152 -0
  15. package/dist/builder/pageMeta.svelte.d.ts +13 -0
  16. package/dist/builder/pageMeta.svelte.js +25 -0
  17. package/dist/builder/rightbar/rightBar.svelte +100 -0
  18. package/dist/builder/rightbar/rightBar.svelte.d.ts +10 -0
  19. package/dist/builder/rightbar/styles.css +167 -0
  20. package/dist/builder/topbar/TopBar.svelte +337 -0
  21. package/dist/builder/topbar/TopBar.svelte.d.ts +12 -0
  22. package/dist/builder/topbar/styles.css +123 -0
  23. package/dist/builder/viewport.svelte.d.ts +9 -0
  24. package/dist/builder/viewport.svelte.js +17 -0
  25. package/dist/elements/_shared/Arrow.svelte +58 -0
  26. package/dist/elements/_shared/Arrow.svelte.d.ts +11 -0
  27. package/dist/elements/_shared/GradientBorder.svelte +55 -0
  28. package/dist/elements/_shared/GradientBorder.svelte.d.ts +10 -0
  29. package/dist/elements/banner/bannerElement.svelte +120 -24
  30. package/dist/elements/banner/settings.d.ts +15 -3
  31. package/dist/elements/banner/settings.js +93 -8
  32. package/dist/elements/button/buttonElement.svelte +31 -21
  33. package/dist/elements/button/settings.d.ts +12 -9
  34. package/dist/elements/button/settings.js +21 -38
  35. package/dist/elements/globalSettings.js +5 -4
  36. package/dist/elements/howItWorks/howItWorksElement.svelte +221 -0
  37. package/dist/elements/howItWorks/howItWorksElement.svelte.d.ts +7 -0
  38. package/dist/elements/howItWorks/settings.d.ts +16 -0
  39. package/dist/elements/howItWorks/settings.js +70 -0
  40. package/dist/elements/steps/settings.d.ts +17 -0
  41. package/dist/elements/steps/settings.js +69 -0
  42. package/dist/elements/steps/stepsElement.svelte +220 -0
  43. package/dist/elements/steps/stepsElement.svelte.d.ts +7 -0
  44. package/dist/elements/terms/settings.d.ts +8 -5
  45. package/dist/elements/terms/settings.js +26 -33
  46. package/dist/elements/terms/termsElement.svelte +164 -79
  47. package/dist/elements/text/settings.d.ts +5 -3
  48. package/dist/elements/text/settings.js +22 -8
  49. package/dist/elements/text/textElement.svelte +25 -20
  50. package/dist/hooks/index.d.ts +1 -0
  51. package/dist/hooks/index.js +1 -0
  52. package/dist/hooks/useTranslation.svelte.d.ts +9 -0
  53. package/dist/hooks/useTranslation.svelte.js +10 -0
  54. package/dist/index.d.ts +3 -0
  55. package/dist/index.js +3 -0
  56. package/dist/renderer/BuilderRenderer.svelte +30 -2
  57. package/dist/renderer/registry.js +7 -13
  58. package/dist/renderer/renderer.vanilla.es.js +1395 -1218
  59. package/dist/renderer/renderer.vanilla.umd.js +64 -31
  60. package/dist/renderer/resolve.d.ts +1 -1
  61. package/dist/renderer/resolve.js +28 -14
  62. package/dist/renderer/types.d.ts +2 -0
  63. package/dist/service/element.action.svelte.d.ts +21 -0
  64. package/dist/service/element.action.svelte.js +125 -0
  65. package/dist/service/element.history.svelte.d.ts +8 -0
  66. package/dist/service/element.history.svelte.js +36 -0
  67. package/dist/service/element.io.svelte.d.ts +4 -0
  68. package/dist/service/element.io.svelte.js +232 -0
  69. package/dist/service/element.reader.svelte.d.ts +4 -0
  70. package/dist/service/element.reader.svelte.js +51 -0
  71. package/dist/service/element.translate.svelte.d.ts +12 -0
  72. package/dist/service/element.translate.svelte.js +81 -0
  73. package/dist/service/index.d.ts +5 -0
  74. package/dist/service/index.js +5 -0
  75. package/dist/service/types.d.ts +13 -0
  76. package/dist/service/types.js +1 -0
  77. package/dist/settings/base.svelte.d.ts +6 -1
  78. package/dist/settings/base.svelte.js +64 -22
  79. package/dist/settings/components/ColorSettings.svelte +174 -45
  80. package/dist/settings/components/ColorSettings.svelte.d.ts +3 -2
  81. package/dist/settings/components/ListSettings.svelte +11 -12
  82. package/dist/settings/components/NumberSettings.svelte +121 -24
  83. package/dist/settings/components/RepeaterSettings.svelte +145 -0
  84. package/dist/settings/components/RepeaterSettings.svelte.d.ts +14 -0
  85. package/dist/settings/components/SegmentSettings.svelte +85 -0
  86. package/dist/settings/components/SegmentSettings.svelte.d.ts +5 -0
  87. package/dist/settings/components/SelectSettings.svelte +6 -7
  88. package/dist/settings/components/SettingsGroup.svelte +13 -68
  89. package/dist/settings/components/SettingsRenderer.svelte +76 -0
  90. package/dist/settings/components/SettingsRenderer.svelte.d.ts +8 -0
  91. package/dist/settings/components/TextSettings.svelte +52 -2
  92. package/dist/settings/components/TranslatableSettings.svelte +16 -17
  93. package/dist/settings/components/UploadSettings.svelte +7 -8
  94. package/dist/settings/groups.d.ts +23 -7
  95. package/dist/settings/groups.js +48 -24
  96. package/dist/settings/implementation.svelte.js +4 -0
  97. package/dist/settings/index.d.ts +2 -0
  98. package/dist/settings/index.js +2 -0
  99. package/dist/settings/mode.svelte.d.ts +4 -0
  100. package/dist/settings/mode.svelte.js +4 -0
  101. package/dist/settings/repeater.svelte.d.ts +26 -0
  102. package/dist/settings/repeater.svelte.js +70 -0
  103. package/dist/settings/types.d.ts +28 -2
  104. package/package.json +11 -5
  105. package/dist/elements/auth/authElement.svelte +0 -115
  106. package/dist/elements/auth/authElement.svelte.d.ts +0 -7
  107. package/dist/elements/auth/settings.d.ts +0 -25
  108. package/dist/elements/auth/settings.js +0 -63
  109. package/dist/elements/badge/badgeElement.svelte +0 -48
  110. package/dist/elements/badge/badgeElement.svelte.d.ts +0 -7
  111. package/dist/elements/badge/settings.d.ts +0 -13
  112. package/dist/elements/badge/settings.js +0 -57
  113. package/dist/elements/cards/cardsElement.svelte +0 -136
  114. package/dist/elements/cards/cardsElement.svelte.d.ts +0 -7
  115. package/dist/elements/cards/settings.d.ts +0 -14
  116. package/dist/elements/cards/settings.js +0 -52
  117. package/dist/elements/divider/dividerElement.svelte +0 -34
  118. package/dist/elements/divider/dividerElement.svelte.d.ts +0 -7
  119. package/dist/elements/divider/settings.d.ts +0 -7
  120. package/dist/elements/divider/settings.js +0 -15
  121. package/dist/elements/products/productsElement.svelte +0 -283
  122. package/dist/elements/products/productsElement.svelte.d.ts +0 -7
  123. package/dist/elements/products/settings.d.ts +0 -16
  124. package/dist/elements/products/settings.js +0 -56
@@ -1,31 +1,64 @@
1
- (function(je,rt){typeof exports=="object"&&typeof module<"u"?rt(exports):typeof define=="function"&&define.amd?define(["exports"],rt):(je=typeof globalThis<"u"?globalThis:je||self,rt(je.BuilderRenderer={}))})(this,(function(je){"use strict";const L=Symbol(),Bt="http://www.w3.org/1999/xhtml",Yn=!1;var qt=Array.isArray,Gn=Array.prototype.indexOf,Pe=Array.prototype.includes,it=Array.from,Kn=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Wn=Object.getOwnPropertyDescriptors,Xn=Object.prototype,Jn=Array.prototype,Ht=Object.getPrototypeOf,Ut=Object.isExtensible;const Zn=()=>{};function Qn(e){for(var t=0;t<e.length;t++)e[t]()}function Vt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const P=2,Fe=4,st=8,Yt=1<<24,_e=16,$=32,Te=64,vt=128,K=512,O=1024,q=2048,le=4096,Y=8192,ee=16384,Ce=32768,Gt=1<<25,Se=65536,Kt=1<<17,$n=1<<18,Le=1<<19,er=1<<20,ae=1<<25,Ae=65536,ht=1<<21,pt=1<<22,xe=1<<23,gt=Symbol("$state"),tr=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function nr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function rr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ir(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function sr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function lr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ar(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function or(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ur(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function dr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function cr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Wt(e){return e===this.v}function vr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Xt(e){return!vr(e,this.v)}let hr=!1,W=null;function Be(e){W=e}function te(e,t=!1,n){W={p:W,i:!1,c:null,e:null,s:e,x:null,r:k,l:null}}function ne(e){var t=W,n=t.e;if(n!==null){t.e=null;for(var r of n)mn(r)}return t.i=!0,W=t.p,{}}function Jt(){return!0}let qe=[];function pr(){var e=qe;qe=[],Qn(e)}function Me(e){if(qe.length===0){var t=qe;queueMicrotask(()=>{t===qe&&pr()})}qe.push(e)}function Zt(e){var t=k;if(t===null)return b.f|=xe,e;if((t.f&Ce)===0&&(t.f&Fe)===0)throw e;me(e,t)}function me(e,t){for(;t!==null;){if((t.f&vt)!==0){if((t.f&Ce)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const gr=-7169;function R(e,t){e.f=e.f&gr|t}function _t(e){(e.f&K)!==0||e.deps===null?R(e,O):R(e,le)}function Qt(e){if(e!==null)for(const t of e)(t.f&P)===0||(t.f&Ae)===0||(t.f^=Ae,Qt(t.deps))}function $t(e,t,n){(e.f&q)!==0?t.add(e):(e.f&le)!==0&&n.add(e),Qt(e.deps),R(e,O)}const we=new Set;let S=null,re=null,xt=null,mt=!1,He=null,lt=null;var en=0;let _r=1;class be{id=_r++;current=new Map;previous=new Map;#t=new Set;#o=new Set;#e=new Map;#r=new Map;#i=null;#n=[];#s=new Set;#l=new Set;#a=new Map;is_fork=!1;#d=!1;#f=new Set;#c(){return this.is_fork||this.#r.size>0}#h(){for(const r of this.#f)for(const i of r.#r.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)R(r,q),this.schedule(r);for(r of n.m)R(r,le),this.schedule(r)}}#v(){if(en++>1e3&&(we.delete(this),xr()),!this.#c()){for(const a of this.#s)this.#l.delete(a),R(a,q),this.schedule(a);for(const a of this.#l)R(a,le),this.schedule(a)}const t=this.#n;this.#n=[],this.apply();var n=He=[],r=[],i=lt=[];for(const a of t)try{this.#u(a,n,r)}catch(l){throw ln(a),l}if(S=null,i.length>0){var s=be.ensure();for(const a of i)s.schedule(a)}if(He=null,lt=null,this.#c()||this.#h()){this.#p(r),this.#p(n);for(const[a,l]of this.#a)sn(a,l)}else{this.#e.size===0&&we.delete(this),this.#s.clear(),this.#l.clear();for(const a of this.#t)a(this);this.#t.clear(),tn(r),tn(n),this.#i?.resolve()}var o=S;if(this.#n.length>0){const a=o??=this;a.#n.push(...this.#n.filter(l=>!a.#n.includes(l)))}o!==null&&(we.add(o),o.#v()),we.has(this)||this.#x()}#u(t,n,r){t.f^=O;for(var i=t.first;i!==null;){var s=i.f,o=(s&($|Te))!==0,a=o&&(s&O)!==0,l=a||(s&Y)!==0||this.#a.has(i);if(!l&&i.fn!==null){o?i.f^=O:(s&Fe)!==0?n.push(i):Xe(i)&&((s&_e)!==0&&this.#l.add(i),Ve(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)$t(t[n],this.#s,this.#l)}capture(t,n,r=!1){n!==L&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&xe)===0&&(this.current.set(t,[t.v,r]),re?.set(t,t.v))}activate(){S=this}deactivate(){S=null,re=null}flush(){try{mt=!0,S=this,this.#v()}finally{en=0,xt=null,He=null,lt=null,mt=!1,S=null,re=null,ye.clear()}}discard(){for(const t of this.#o)t(this);this.#o.clear(),we.delete(this)}#x(){for(const f of we){var t=f.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,c]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,o=new Map;for(var a of n)nn(a,i,s,o);if(f.#n.length>0){f.apply();for(var l of f.#n)f.#u(l,[],[]);f.#n=[]}f.deactivate()}}for(const f of we)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#c()&&(f.activate(),f.#v()))}increment(t,n){let r=this.#e.get(n)??0;if(this.#e.set(n,r+1),t){let i=this.#r.get(n)??0;this.#r.set(n,i+1)}}decrement(t,n,r){let i=this.#e.get(n)??0;if(i===1?this.#e.delete(n):this.#e.set(n,i-1),t){let s=this.#r.get(n)??0;s===1?this.#r.delete(n):this.#r.set(n,s-1)}this.#d||r||(this.#d=!0,Me(()=>{this.#d=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#s.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#o.add(t)}settled(){return(this.#i??=Vt()).promise}static ensure(){if(S===null){const t=S=new be;mt||(we.add(S),Me(()=>{S===t&&t.flush()}))}return S}apply(){{re=null;return}}schedule(t){if(xt=t,t.b?.is_pending&&(t.f&(Fe|st|Yt))!==0&&(t.f&Ce)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(He!==null&&n===k&&(b===null||(b.f&P)===0))return;if((r&(Te|$))!==0){if((r&O)===0)return;n.f^=O}}this.#n.push(n)}}function xr(){try{ar()}catch(e){me(e,xt)}}let de=null;function tn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ee|Y))===0&&Xe(r)&&(de=new Set,Ve(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bn(r),de?.size>0)){ye.clear();for(const i of de){if((i.f&(ee|Y))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)de.has(o)&&(de.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(ee|Y))===0&&Ve(l)}}de.clear()}}de=null}}function nn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&P)!==0?nn(i,t,n,r):(s&(pt|_e))!==0&&(s&q)===0&&rn(i,t,r)&&(R(i,q),wt(i))}}function rn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(Pe.call(t,i))return!0;if((i.f&P)!==0&&rn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function wt(e){S.schedule(e)}function sn(e,t){if(!((e.f&$)!==0&&(e.f&O)!==0)){(e.f&q)!==0?t.d.push(e):(e.f&le)!==0&&t.m.push(e),R(e,O);for(var n=e.first;n!==null;)sn(n,t),n=n.next}}function ln(e){R(e,O);for(var t=e.first;t!==null;)ln(t),t=t.next}function mr(e){let t=0,n=Re(0),r;return()=>{Tt()&&(_(n),qr(()=>(t===0&&(r=Gr(()=>e(()=>Ke(n)))),t+=1,()=>{Me(()=>{t-=1,t===0&&(r?.(),r=void 0,Ke(n))})})))}}var wr=Se|Le;function br(e,t,n,r){new yr(e,t,n,r)}class yr{parent;is_pending=!1;transform_error;#t;#o=null;#e;#r;#i;#n=null;#s=null;#l=null;#a=null;#d=0;#f=0;#c=!1;#h=new Set;#v=new Set;#u=null;#p=mr(()=>(this.#u=Re(this.#d),()=>{this.#u=null}));constructor(t,n,r,i){this.#t=t,this.#e=n,this.#r=s=>{var o=k;o.b=this,o.f|=vt,r(s)},this.parent=k.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#i=ft(()=>{this.#m()},wr)}#x(){try{this.#n=X(()=>this.#r(this.#t))}catch(t){this.error(t)}}#b(t){const n=this.#e.failed;n&&(this.#l=X(()=>{n(this.#t,()=>t,()=>()=>{})}))}#y(){const t=this.#e.pending;t&&(this.is_pending=!0,this.#s=X(()=>t(this.#t)),Me(()=>{var n=this.#a=document.createDocumentFragment(),r=Ee();n.append(r),this.#n=this.#_(()=>X(()=>this.#r(r))),this.#f===0&&(this.#t.before(n),this.#a=null,Ne(this.#s,()=>{this.#s=null}),this.#g(S))}))}#m(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#d=0,this.#n=X(()=>{this.#r(this.#t)}),this.#f>0){var t=this.#a=document.createDocumentFragment();At(this.#n,t);const n=this.#e.pending;this.#s=X(()=>n(this.#t))}else this.#g(S)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){$t(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#_(t){var n=k,r=b,i=W;oe(this.#i),J(this.#i),Be(this.#i.ctx);try{return be.ensure(),t()}catch(s){return Zt(s),null}finally{oe(n),J(r),Be(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#f+=t,this.#f===0&&(this.#g(n),this.#s&&Ne(this.#s,()=>{this.#s=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#w(t,n),this.#d+=t,!(!this.#u||this.#c)&&(this.#c=!0,Me(()=>{this.#c=!1,this.#u&&Ue(this.#u,this.#d)}))}get_effect_pending(){return this.#p(),_(this.#u)}error(t){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw t;this.#n&&(U(this.#n),this.#n=null),this.#s&&(U(this.#s),this.#s=null),this.#l&&(U(this.#l),this.#l=null);var i=!1,s=!1;const o=()=>{if(i){cr();return}i=!0,s&&dr(),this.#l!==null&&Ne(this.#l,()=>{this.#l=null}),this.#_(()=>{this.#m()})},a=l=>{try{s=!0,n?.(l,o),s=!1}catch(f){me(f,this.#i&&this.#i.parent)}r&&(this.#l=this.#_(()=>{try{return X(()=>{var f=k;f.b=this,f.f|=vt,r(this.#t,()=>l,()=>o)})}catch(f){return me(f,this.#i.parent),null}}))};Me(()=>{var l;try{l=this.transform_error(t)}catch(f){me(f,this.#i&&this.#i.parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(a,f=>me(f,this.#i&&this.#i.parent)):a(l)})}}function Er(e,t,n,r){const i=bt;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=k,a=kr(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){a();try{r(c)}catch(g){(o.f&ee)===0&&me(g,o)}at()}if(n.length===0){l.then(()=>f(t.map(i)));return}var u=an();function h(){Promise.all(n.map(c=>Tr(c))).then(c=>f([...t.map(i),...c])).catch(c=>me(c,o)).finally(()=>u())}l?l.then(()=>{a(),h(),at()}):h()}function kr(){var e=k,t=b,n=W,r=S;return function(s=!0){oe(e),J(t),Be(n),s&&(e.f&ee)===0&&(r?.activate(),r?.apply())}}function at(e=!0){oe(null),J(null),Be(null),e&&S?.deactivate()}function an(){var e=k,t=e.b,n=S,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function bt(e){var t=P|q,n=b!==null&&(b.f&P)!==0?b:null;return k!==null&&(k.f|=Le),{ctx:W,deps:null,effects:null,equals:Wt,f:t,fn:e,reactions:null,rv:0,v:L,wv:0,parent:n??k,ac:null}}function Tr(e,t,n){let r=k;r===null&&nr();var i=void 0,s=Re(L),o=!b,a=new Map;return Br(()=>{var l=k,f=Vt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(at)}catch(g){f.reject(g),at()}var u=S;if(o){if((l.f&Ce)!==0)var h=an();if(r.b.is_rendered())a.get(u)?.reject(ue),a.delete(u);else{for(const g of a.values())g.reject(ue);a.clear()}a.set(u,f)}const c=(g,p=void 0)=>{if(h){var w=p===ue;h(w)}if(!(p===ue||(l.f&ee)!==0)){if(u.activate(),p)s.f|=xe,Ue(s,p);else{(s.f&xe)!==0&&(s.f^=xe),Ue(s,g);for(const[d,v]of a){if(a.delete(d),d===u)break;v.reject(ue)}}u.deactivate()}};f.promise.then(c,g=>c(null,g||"unknown"))}),jr(()=>{for(const l of a.values())l.reject(ue)}),new Promise(l=>{function f(u){function h(){u===i?l(s):f(i)}u.then(h,h)}f(i)})}function Ge(e){const t=bt(e);return Tn(t),t}function Cr(e){const t=bt(e);return t.equals=Xt,t}function Sr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function Ar(e){for(var t=e.parent;t!==null;){if((t.f&P)===0)return(t.f&ee)===0?t:null;t=t.parent}return null}function yt(e){var t,n=k;oe(Ar(e));try{e.f&=~Ae,Sr(e),t=Rn(e)}finally{oe(n)}return t}function on(e){var t=e.v,n=yt(e);if(!e.equals(n)&&(e.wv=An(),(!S?.is_fork||e.deps===null)&&(e.v=n,S?.capture(e,t,!0),e.deps===null))){R(e,O);return}Oe||(re!==null?(Tt()||S?.is_fork)&&re.set(e,n):_t(e))}function Mr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ue),t.teardown=Zn,t.ac=null,Je(t,0),Ct(t))}function fn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ve(t)}let Et=new Set;const ye=new Map;let un=!1;function Re(e,t){var n={f:0,v:e,reactions:null,equals:Wt,rv:0,wv:0};return n}function H(e,t){const n=Re(e);return Tn(n),n}function Rr(e,t=!1,n=!0){const r=Re(e);return t||(r.equals=Xt),r}function B(e,t,n=!1){b!==null&&(!ie||(b.f&Kt)!==0)&&Jt()&&(b.f&(P|_e|pt|Kt))!==0&&(Z===null||!Pe.call(Z,e))&&ur();let r=n?ce(t):t;return Ue(e,r,lt)}function Ue(e,t,n=null){if(!e.equals(t)){var r=e.v;Oe?ye.set(e,t):ye.set(e,r),e.v=t;var i=be.ensure();if(i.capture(e,r),(e.f&P)!==0){const s=e;(e.f&q)!==0&&yt(s),re===null&&_t(s)}e.wv=An(),dn(e,q,n),k!==null&&(k.f&O)!==0&&(k.f&($|Te))===0&&(Q===null?Vr([e]):Q.push(e)),!i.is_fork&&Et.size>0&&!un&&Nr()}return t}function Nr(){un=!1;for(const e of Et)(e.f&O)!==0&&R(e,le),Xe(e)&&Ve(e);Et.clear()}function Ke(e){B(e,e.v+1)}function dn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],a=o.f,l=(a&q)===0;if(l&&R(o,t),(a&P)!==0){var f=o;re?.delete(f),(a&Ae)===0&&(a&K&&(o.f|=Ae),dn(f,le,n))}else if(l){var u=o;(a&_e)!==0&&de!==null&&de.add(u),n!==null?n.push(u):wt(u)}}}function ce(e){if(typeof e!="object"||e===null||gt in e)return e;const t=Ht(e);if(t!==Xn&&t!==Jn)return e;var n=new Map,r=qt(e),i=H(0),s=ze,o=a=>{if(ze===s)return a();var l=b,f=ze;J(null),Sn(s);var u=a();return J(l),Sn(f),u};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&or();var u=n.get(l);return u===void 0?o(()=>{var h=H(f.value);return n.set(l,h),h}):B(u,f.value,!0),!0},deleteProperty(a,l){var f=n.get(l);if(f===void 0){if(l in a){const u=o(()=>H(L));n.set(l,u),Ke(i)}}else B(f,L),Ke(i);return!0},get(a,l,f){if(l===gt)return e;var u=n.get(l),h=l in a;if(u===void 0&&(!h||Ye(a,l)?.writable)&&(u=o(()=>{var g=ce(h?a[l]:L),p=H(g);return p}),n.set(l,u)),u!==void 0){var c=_(u);return c===L?void 0:c}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var u=n.get(l);u&&(f.value=_(u))}else if(f===void 0){var h=n.get(l),c=h?.v;if(h!==void 0&&c!==L)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,l){if(l===gt)return!0;var f=n.get(l),u=f!==void 0&&f.v!==L||Reflect.has(a,l);if(f!==void 0||k!==null&&(!u||Ye(a,l)?.writable)){f===void 0&&(f=o(()=>{var c=u?ce(a[l]):L,g=H(c);return g}),n.set(l,f));var h=_(f);if(h===L)return!1}return u},set(a,l,f,u){var h=n.get(l),c=l in a;if(r&&l==="length")for(var g=f;g<h.v;g+=1){var p=n.get(g+"");p!==void 0?B(p,L):g in a&&(p=o(()=>H(L)),n.set(g+"",p))}if(h===void 0)(!c||Ye(a,l)?.writable)&&(h=o(()=>H(void 0)),B(h,ce(f)),n.set(l,h));else{c=h.v!==L;var w=o(()=>ce(f));B(h,w)}var d=Reflect.getOwnPropertyDescriptor(a,l);if(d?.set&&d.set.call(u,f),!c){if(r&&typeof l=="string"){var v=n.get("length"),E=Number(l);Number.isInteger(E)&&E>=v.v&&B(v,E+1)}Ke(i)}return!0},ownKeys(a){_(i);var l=Reflect.ownKeys(a).filter(h=>{var c=n.get(h);return c===void 0||c.v!==L});for(var[f,u]of n)u.v!==L&&!(f in a)&&l.push(f);return l},setPrototypeOf(){fr()}})}var cn,vn,hn,pn;function Or(){if(cn===void 0){cn=window,vn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;hn=Ye(t,"firstChild").get,pn=Ye(t,"nextSibling").get,Ut(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ut(n)&&(n.__t=void 0)}}function Ee(e=""){return document.createTextNode(e)}function ot(e){return hn.call(e)}function We(e){return pn.call(e)}function m(e,t){return ot(e)}function kt(e,t=!1){{var n=ot(e);return n instanceof Comment&&n.data===""?We(n):n}}function D(e,t=1,n=!1){let r=e;for(;t--;)r=We(r);return r}function Dr(e){e.textContent=""}function gn(){return!1}function _n(e,t,n){return document.createElementNS(Bt,e,void 0)}function xn(e){var t=b,n=k;J(null),oe(null);try{return e()}finally{J(t),oe(n)}}function zr(e){k===null&&(b===null&&lr(),sr()),Oe&&ir()}function Ir(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ve(e,t){var n=k;n!==null&&(n.f&Y)!==0&&(e|=Y);var r={ctx:W,deps:null,nodes:null,f:e|q|K,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Fe)!==0)He!==null?He.push(r):be.ensure().schedule(r);else if(t!==null){try{Ve(r)}catch(o){throw U(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Le)===0&&(i=i.first,(e&_e)!==0&&(e&Se)!==0&&i!==null&&(i.f|=Se))}if(i!==null&&(i.parent=n,n!==null&&Ir(i,n),b!==null&&(b.f&P)!==0&&(e&Te)===0)){var s=b;(s.effects??=[]).push(i)}return r}function Tt(){return b!==null&&!ie}function jr(e){const t=ve(st,null);return R(t,O),t.teardown=e,t}function Pr(e){zr();var t=k.f,n=!b&&(t&$)!==0&&(t&Ce)===0;if(n){var r=W;(r.e??=[]).push(e)}else return mn(e)}function mn(e){return ve(Fe|er,e)}function Fr(e){be.ensure();const t=ve(Te|Le,e);return(n={})=>new Promise(r=>{n.outro?Ne(t,()=>{U(t),r(void 0)}):(U(t),r(void 0))})}function Lr(e){return ve(Fe,e)}function Br(e){return ve(pt|Le,e)}function qr(e,t=0){return ve(st|t,e)}function N(e,t=[],n=[],r=[]){Er(r,t,n,i=>{ve(st,()=>e(...i.map(_)))})}function ft(e,t=0){var n=ve(_e|t,e);return n}function X(e){return ve($|Le,e)}function wn(e){var t=e.teardown;if(t!==null){const n=Oe,r=b;kn(!0),J(null);try{t.call(null)}finally{kn(n),J(r)}}}function Ct(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&xn(()=>{i.abort(ue)});var r=n.next;(n.f&Te)!==0?n.parent=null:U(n,t),n=r}}function Hr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&$)===0&&U(t),t=n}}function U(e,t=!0){var n=!1;(t||(e.f&$n)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ur(e.nodes.start,e.nodes.end),n=!0),R(e,Gt),Ct(e,t&&!n),Je(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();wn(e),e.f^=Gt,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&bn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Ur(e,t){for(;e!==null;){var n=e===t?null:We(e);e.remove(),e=n}}function bn(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 Ne(e,t,n=!0){var r=[];yn(e,r,!0);var i=()=>{n&&U(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var a of r)a.out(o)}else i()}function yn(e,t,n){if((e.f&Y)===0){e.f^=Y;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Se)!==0||(i.f&$)!==0&&(e.f&_e)!==0;yn(i,t,o?n:!1),i=s}}}function St(e){En(e,!0)}function En(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&O)===0&&(R(e,q),be.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Se)!==0||(n.f&$)!==0;En(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function At(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:We(n);t.append(n),n=i}}let ut=!1,Oe=!1;function kn(e){Oe=e}let b=null,ie=!1;function J(e){b=e}let k=null;function oe(e){k=e}let Z=null;function Tn(e){b!==null&&(Z===null?Z=[e]:Z.push(e))}let V=null,G=0,Q=null;function Vr(e){Q=e}let Cn=1,De=0,ze=De;function Sn(e){ze=e}function An(){return++Cn}function Xe(e){var t=e.f;if((t&q)!==0)return!0;if(t&P&&(e.f&=~Ae),(t&le)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Xe(s)&&on(s),s.wv>e.wv)return!0}(t&K)!==0&&re===null&&R(e,O)}return!1}function Mn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Z!==null&&Pe.call(Z,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&P)!==0?Mn(s,t,!1):t===s&&(n?R(s,q):(s.f&O)!==0&&R(s,le),wt(s))}}function Rn(e){var t=V,n=G,r=Q,i=b,s=Z,o=W,a=ie,l=ze,f=e.f;V=null,G=0,Q=null,b=(f&($|Te))===0?e:null,Z=null,Be(e.ctx),ie=!1,ze=++De,e.ac!==null&&(xn(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=ht;var u=e.fn,h=u();e.f|=Ce;var c=e.deps,g=S?.is_fork;if(V!==null){var p;if(g||Je(e,G),c!==null&&G>0)for(c.length=G+V.length,p=0;p<V.length;p++)c[G+p]=V[p];else e.deps=c=V;if(Tt()&&(e.f&K)!==0)for(p=G;p<c.length;p++)(c[p].reactions??=[]).push(e)}else!g&&c!==null&&G<c.length&&(Je(e,G),c.length=G);if(Jt()&&Q!==null&&!ie&&c!==null&&(e.f&(P|le|q))===0)for(p=0;p<Q.length;p++)Mn(Q[p],e);if(i!==null&&i!==e){if(De++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=De;if(t!==null)for(const w of t)w.rv=De;Q!==null&&(r===null?r=Q:r.push(...Q))}return(e.f&xe)!==0&&(e.f^=xe),h}catch(w){return Zt(w)}finally{e.f^=ht,V=t,G=n,Q=r,b=i,Z=s,Be(o),ie=a,ze=l}}function Yr(e,t){let n=t.reactions;if(n!==null){var r=Gn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&P)!==0&&(V===null||!Pe.call(V,t))){var s=t;(s.f&K)!==0&&(s.f^=K,s.f&=~Ae),_t(s),Mr(s),Je(s,0)}}function Je(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Yr(e,n[r])}function Ve(e){var t=e.f;if((t&ee)===0){R(e,O);var n=k,r=ut;k=e,ut=!0;try{(t&(_e|Yt))!==0?Hr(e):Ct(e),wn(e);var i=Rn(e);e.teardown=typeof i=="function"?i:null,e.wv=Cn;var s;Yn&&hr&&(e.f&q)!==0&&e.deps}finally{ut=r,k=n}}}function _(e){var t=e.f,n=(t&P)!==0;if(b!==null&&!ie){var r=k!==null&&(k.f&ee)!==0;if(!r&&(Z===null||!Pe.call(Z,e))){var i=b.deps;if((b.f&ht)!==0)e.rv<De&&(e.rv=De,V===null&&i!==null&&i[G]===e?G++:V===null?V=[e]:V.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:Pe.call(s,b)||s.push(b)}}}if(Oe&&ye.has(e))return ye.get(e);if(n){var o=e;if(Oe){var a=o.v;return((o.f&O)===0&&o.reactions!==null||On(o))&&(a=yt(o)),ye.set(o,a),a}var l=(o.f&K)===0&&!ie&&b!==null&&(ut||(b.f&K)!==0),f=(o.f&Ce)===0;Xe(o)&&(l&&(o.f|=K),on(o)),l&&!f&&(fn(o),Nn(o))}if(re?.has(e))return re.get(e);if((e.f&xe)!==0)throw e.v;return e.v}function Nn(e){if(e.f|=K,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&P)!==0&&(t.f&K)===0&&(fn(t),Nn(t))}function On(e){if(e.v===L)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ye.has(t)||(t.f&P)!==0&&On(t))return!0;return!1}function Gr(e){var t=ie;try{return ie=!0,e()}finally{ie=t}}const Ze=Symbol("events"),Dn=new Set,Mt=new Set;function Kr(e,t,n){(t[Ze]??={})[e]=n}function Wr(e){for(var t=0;t<e.length;t++)Dn.add(e[t]);for(var n of Mt)n(e)}let zn=null;function In(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;zn=e;var o=0,a=zn===e&&e[Ze];if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e[Ze]=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=i[o]||e.target,s!==t){Kn(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=b,h=k;J(null),oe(null);try{for(var c,g=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[Ze]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(d){c?g.push(d):c=d}if(e.cancelBubble||p===t||p===null)break;s=p}if(c){for(let d of g)queueMicrotask(()=>{throw d});throw c}}finally{e[Ze]=t,delete e.currentTarget,J(u),oe(h)}}}const Xr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Jr(e){return Xr?.createHTML(e)??e}function Zr(e){var t=_n("template");return t.innerHTML=Jr(e.replaceAll("<!>","<!---->")),t.content}function Rt(e,t){var n=k;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function C(e,t){var n=(t&1)!==0,r=(t&2)!==0,i,s=!e.startsWith("<!>");return()=>{i===void 0&&(i=Zr(s?e:"<!>"+e),n||(i=ot(i)));var o=r||vn?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=ot(o),l=o.lastChild;Rt(a,l)}else Rt(o,o);return o}}function jn(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Ee();return e.append(t,n),Rt(t,n),e}function T(e,t){e!==null&&e.before(t)}const Qr=["touchstart","touchmove"];function $r(e){return Qr.includes(e)}function A(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function ei(e,t){return ti(e,t)}const dt=new Map;function ti(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:a}){Or();var l=void 0,f=Fr(()=>{var u=n??t.appendChild(Ee());br(u,{pending:()=>{}},g=>{te({});var p=W;s&&(p.c=s),i&&(r.$$events=i),l=e(g,r)||{},ne()},a);var h=new Set,c=g=>{for(var p=0;p<g.length;p++){var w=g[p];if(!h.has(w)){h.add(w);var d=$r(w);for(const x of[t,document]){var v=dt.get(x);v===void 0&&(v=new Map,dt.set(x,v));var E=v.get(w);E===void 0?(x.addEventListener(w,In,{passive:d}),v.set(w,1)):v.set(w,E+1)}}}};return c(it(Dn)),Mt.add(c),()=>{for(var g of h)for(const d of[t,document]){var p=dt.get(d),w=p.get(g);--w==0?(d.removeEventListener(g,In),p.delete(g),p.size===0&&dt.delete(d)):p.set(g,w)}Mt.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return Nt.set(l,f),l}let Nt=new WeakMap;function ni(e,t){const n=Nt.get(e);return n?(Nt.delete(e),n(t)):Promise.resolve()}class Pn{anchor;#t=new Map;#o=new Map;#e=new Map;#r=new Set;#i=!0;constructor(t,n=!0){this.anchor=t,this.#i=n}#n=t=>{if(this.#t.has(t)){var n=this.#t.get(t),r=this.#o.get(n);if(r)St(r),this.#r.delete(n);else{var i=this.#e.get(n);i&&(this.#o.set(n,i.effect),this.#e.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#e.get(o);a&&(U(a.effect),this.#e.delete(o))}for(const[s,o]of this.#o){if(s===n||this.#r.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();At(o,f),f.append(Ee()),this.#e.set(s,{effect:o,fragment:f})}else U(o);this.#r.delete(s),this.#o.delete(s)};this.#i||!r?(this.#r.add(s),Ne(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#e)n.includes(r)||(U(i.effect),this.#e.delete(r))};ensure(t,n){var r=S,i=gn();if(n&&!this.#o.has(t)&&!this.#e.has(t))if(i){var s=document.createDocumentFragment(),o=Ee();s.append(o),this.#e.set(t,{effect:X(()=>n(o)),fragment:s})}else this.#o.set(t,X(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[a,l]of this.#o)a===t?r.unskip_effect(l):r.skip_effect(l);for(const[a,l]of this.#e)a===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(this.#n),r.ondiscard(this.#s)}else this.#n(r)}}function Ie(e,t,n=!1){var r=new Pn(e),i=n?Se:0;function s(o,a){r.ensure(o,a)}ft(()=>{var o=!1;t((a,l=0)=>{o=!0,s(l,a)}),o||s(-1,null)},i)}function Ot(e,t){return t}function ri(e,t,n){for(var r=[],i=t.length,s,o=t.length,a=0;a<i;a++){let h=t[a];Ne(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var c=e.outrogroups;Dt(e,it(s.done)),c.delete(s),c.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var f=n,u=f.parentNode;Dr(u),u.append(f),e.items.clear()}Dt(e,t,!l)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Dt(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const o of e.pending.values())for(const a of o)r.add(e.items.get(a).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ae;const o=document.createDocumentFragment();At(s,o)}else U(t[i],n)}}var Fn;function Qe(e,t,n,r,i,s=null){var o=e,a=new Map,l=(t&4)!==0;if(l){var f=e;o=f.appendChild(Ee())}var u=null,h=Cr(()=>{var x=n();return qt(x)?x:x==null?[]:it(x)}),c,g=new Map,p=!0;function w(x){(E.effect.f&ee)===0&&(E.pending.delete(x),E.fallback=u,ii(E,c,o,t,r),u!==null&&(c.length===0?(u.f&ae)===0?St(u):(u.f^=ae,et(u,null,o)):Ne(u,()=>{u=null})))}function d(x){E.pending.delete(x)}var v=ft(()=>{c=_(h);for(var x=c.length,M=new Set,F=S,z=gn(),I=0;I<x;I+=1){var se=c[I],fe=r(se,I),j=p?null:a.get(fe);j?(j.v&&Ue(j.v,se),j.i&&Ue(j.i,I),z&&F.unskip_effect(j.e)):(j=si(a,p?o:Fn??=Ee(),se,fe,I,i,t,n),p||(j.e.f|=ae),a.set(fe,j)),M.add(fe)}if(x===0&&s&&!u&&(p?u=X(()=>s(o)):(u=X(()=>s(Fn??=Ee())),u.f|=ae)),x>M.size&&rr(),!p)if(g.set(F,M),z){for(const[It,tt]of a)M.has(It)||F.skip_effect(tt.e);F.oncommit(w),F.ondiscard(d)}else w(F);_(h)}),E={effect:v,items:a,pending:g,outrogroups:null,fallback:u};p=!1}function $e(e){for(;e!==null&&(e.f&$)===0;)e=e.next;return e}function ii(e,t,n,r,i){var s=(r&8)!==0,o=t.length,a=e.items,l=$e(e.effect.first),f,u=null,h,c=[],g=[],p,w,d,v;if(s)for(v=0;v<o;v+=1)p=t[v],w=i(p,v),d=a.get(w).e,(d.f&ae)===0&&(d.nodes?.a?.measure(),(h??=new Set).add(d));for(v=0;v<o;v+=1){if(p=t[v],w=i(p,v),d=a.get(w).e,e.outrogroups!==null)for(const j of e.outrogroups)j.pending.delete(d),j.done.delete(d);if((d.f&Y)!==0&&(St(d),s&&(d.nodes?.a?.unfix(),(h??=new Set).delete(d))),(d.f&ae)!==0)if(d.f^=ae,d===l)et(d,null,n);else{var E=u?u.next:l;d===e.effect.last&&(e.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),ke(e,u,d),ke(e,d,E),et(d,E,n),u=d,c=[],g=[],l=$e(u.next);continue}if(d!==l){if(f!==void 0&&f.has(d)){if(c.length<g.length){var x=g[0],M;u=x.prev;var F=c[0],z=c[c.length-1];for(M=0;M<c.length;M+=1)et(c[M],x,n);for(M=0;M<g.length;M+=1)f.delete(g[M]);ke(e,F.prev,z.next),ke(e,u,F),ke(e,z,x),l=x,u=z,v-=1,c=[],g=[]}else f.delete(d),et(d,l,n),ke(e,d.prev,d.next),ke(e,d,u===null?e.effect.first:u.next),ke(e,u,d),u=d;continue}for(c=[],g=[];l!==null&&l!==d;)(f??=new Set).add(l),g.push(l),l=$e(l.next);if(l===null)continue}(d.f&ae)===0&&c.push(d),u=d,l=$e(d.next)}if(e.outrogroups!==null){for(const j of e.outrogroups)j.pending.size===0&&(Dt(e,it(j.done)),e.outrogroups?.delete(j));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||f!==void 0){var I=[];if(f!==void 0)for(d of f)(d.f&Y)===0&&I.push(d);for(;l!==null;)(l.f&Y)===0&&l!==e.fallback&&I.push(l),l=$e(l.next);var se=I.length;if(se>0){var fe=(r&4)!==0&&o===0?n:null;if(s){for(v=0;v<se;v+=1)I[v].nodes?.a?.measure();for(v=0;v<se;v+=1)I[v].nodes?.a?.fix()}ri(e,I,fe)}}s&&Me(()=>{if(h!==void 0)for(d of h)d.nodes?.a?.apply()})}function si(e,t,n,r,i,s,o,a){var l=(o&1)!==0?(o&16)===0?Rr(n,!1,!1):Re(n):null,f=(o&2)!==0?Re(i):null;return{v:l,i:f,e:X(()=>(s(t,l??n,f??i,a),()=>{e.delete(r)}))}}function et(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ae)===0?t.nodes.start:n;r!==null;){var o=We(r);if(s.before(r),r===i)return;r=o}}function ke(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function li(e,t,n){var r=new Pn(e);ft(()=>{var i=t()??null;r.ensure(i,i&&(s=>n(s,i)))},Se)}function he(e,t){Lr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=_n("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Ln(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ln(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ai(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ln(e))&&(r&&(r+=" "),r+=t);return r}function oi(e){return typeof e=="object"?ai(e):e??""}const Bn=[...`
2
- \r\f \v\uFEFF`];function fi(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+s;(o===0||Bn.includes(r[o-1]))&&(a===r.length||Bn.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function ui(e,t){return e==null?null:String(e)}function qn(e,t,n,r,i,s){var o=e.__className;if(o!==n||o===void 0){var a=fi(n,r,s);a==null?e.removeAttribute("class"):e.className=a,e.__className=n}else if(s&&i!==s)for(var l in s){var f=!!s[l];(i==null||f!==!!i[l])&&e.classList.toggle(l,f)}return s}function y(e,t,n,r){var i=e.__style;if(i!==t){var s=ui(t);s==null?e.removeAttribute("style"):e.style.cssText=s,e.__style=t}return r}const di=Symbol("is custom element"),ci=Symbol("is html");function ct(e,t,n,r){var i=vi(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[tr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&hi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function vi(e){return e.__attributes??={[di]:e.nodeName.includes("-"),[ci]:e.namespaceURI===Bt}}var Hn=new Map;function hi(e){var t=e.getAttribute("is")||e.nodeName,n=Hn.get(t);if(n)return n;Hn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Wn(i);for(var o in r)r[o].set&&n.push(o);i=Ht(i)}return n}function zt(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var l;return l=()=>{var f=e[t];return f===void 0?o():(s=!0,f)},l}const pi="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(pi);var gi=C('<div class="text-wrapper svelte-qvulfy"><p class="text-element svelte-qvulfy"> </p></div>');const _i={hash:"svelte-qvulfy",code:".text-wrapper.svelte-qvulfy {width:100%;margin-left:auto;margin-right:auto;}.text-element.svelte-qvulfy {margin:0;word-wrap:break-word;white-space:pre-wrap;}"};function xi(e,t){te(t,!0),he(e,_i);var n=gi(),r=m(n),i=m(r);N(()=>{y(r,`
3
- font-size: ${t.settings.fontSize??""}px;
4
- font-weight: ${t.settings.fontWeight??""};
5
- line-height: ${t.settings.lineHeight??""};
6
- letter-spacing: ${t.settings.letterSpacing??""}px;
7
- `),A(i,t.settings.text)}),T(e,n),ne()}var mi=C('<div class="button-wrapper svelte-1xlikgk"><button class="cta-button svelte-1xlikgk"> </button></div>');const wi={hash:"svelte-1xlikgk",code:".button-wrapper.svelte-1xlikgk {display:flex;justify-content:center;width:100%;max-width:750px;margin:0 auto;}.cta-button.svelte-1xlikgk {font-weight:700;border:none;cursor:pointer;letter-spacing:0.02em;transition:opacity 0.2s ease;}.cta-button.svelte-1xlikgk:hover {opacity:0.9;}"};function bi(e,t){te(t,!0),he(e,wi);var n=mi(),r=m(n),i=m(r);N(()=>{y(n,`margin-top: ${t.settings.marginTop??""}px;`),y(r,`
8
- background: ${t.settings.backgroundColor??""};
9
- color: ${t.settings.textColor??""};
10
- border-radius: ${t.settings.borderRadius??""}px;
11
- padding: ${t.settings.paddingY??""}px ${t.settings.paddingX??""}px;
12
- font-size: ${t.settings.fontSize??""}px;
13
- `),A(i,t.settings.text)}),T(e,n),ne()}var yi=C('<div class="auth-banner svelte-l4l5xk"><div class="auth-left svelte-l4l5xk"><div class="auth-icon svelte-l4l5xk"><svg width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z"></path></svg></div> <p class="auth-prompt svelte-l4l5xk"> </p></div> <div class="auth-buttons svelte-l4l5xk"><button class="auth-btn login-btn svelte-l4l5xk"> </button> <button class="auth-btn signup-btn svelte-l4l5xk"> </button></div></div>');const Ei={hash:"svelte-l4l5xk",code:`.auth-banner.svelte-l4l5xk {display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:10px;border:1.5px solid;max-width:750px;width:100%;margin:0 auto;}.auth-left.svelte-l4l5xk {display:flex;align-items:center;gap:16px;flex:1;}.auth-icon.svelte-l4l5xk {display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:2px solid;flex-shrink:0;}.auth-prompt.svelte-l4l5xk {font-size:0.95rem;line-height:1.4;margin:0;}.auth-buttons.svelte-l4l5xk {display:flex;gap:12px;flex-shrink:0;}.auth-btn.svelte-l4l5xk {height:48px;border-radius:8px;padding:13px 32px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;border:none;cursor:pointer;white-space:nowrap;}
14
-
15
- @media (max-width: 640px) {.auth-banner.svelte-l4l5xk {flex-direction:column;text-align:center;}.auth-left.svelte-l4l5xk {flex-direction:column;}.auth-buttons.svelte-l4l5xk {width:100%;}.auth-btn.svelte-l4l5xk {flex:1;}
16
- }`};function ki(e,t){te(t,!0),he(e,Ei);var n=yi(),r=m(n),i=m(r),s=m(i),o=m(s),a=D(i,2),l=m(a),f=D(r,2),u=m(f),h=m(u),c=D(u,2),g=m(c);N(()=>{y(n,`border-color: ${t.settings.borderColor??""}; background: ${t.settings.backgroundColor??""}; margin-top: ${t.settings.marginTop??""}px; padding: ${t.settings.padding??""}px;`),y(i,`border-color: ${t.settings.iconColor??""};`),ct(o,"fill",t.settings.iconColor),y(a,`color: ${t.settings.textColor??""};`),A(l,t.settings.promptText),y(u,`background: ${t.settings.loginButtonBackground??""}; color: ${t.settings.loginButtonColor??""};`),A(h,t.settings.loginButtonText),y(c,`background: ${t.settings.signupButtonBackground??""}; color: ${t.settings.signupButtonColor??""};`),A(g,t.settings.signupButtonText)}),T(e,n),ne()}var Ti=C('<img alt="Banner" class="banner-image svelte-pvxr6w"/>'),Ci=C('<div class="banner-placeholder svelte-pvxr6w"><span class="placeholder-icon svelte-pvxr6w">&#128444;</span> <span class="placeholder-text svelte-pvxr6w">No image — select this element and upload one</span></div>');const Si={hash:"svelte-pvxr6w",code:".banner-image.svelte-pvxr6w {display:block;width:100%;height:auto;max-height:480px;object-fit:cover;}.banner-placeholder.svelte-pvxr6w {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:48px 24px;border:1.5px dashed rgba(255, 255, 255, 0.12);background:rgba(255, 255, 255, 0.03);}.placeholder-icon.svelte-pvxr6w {font-size:2rem;opacity:0.3;}.placeholder-text.svelte-pvxr6w {font-size:0.8rem;color:rgba(255, 255, 255, 0.3);text-align:center;}"};function Ai(e,t){te(t,!0),he(e,Si);var n=jn(),r=kt(n);{var i=o=>{var a=Ti();N(()=>ct(a,"src",t.settings.image)),T(o,a)},s=o=>{var a=Ci();T(o,a)};Ie(r,o=>{t.settings.image?o(i):o(s,-1)})}T(e,n),ne()}var Mi=C('<div class="badge-wrapper svelte-1ym3cq2"><span class="badge svelte-1ym3cq2"> </span></div>');const Ri={hash:"svelte-1ym3cq2",code:".badge-wrapper.svelte-1ym3cq2 {display:flex;max-width:750px;width:100%;margin:0 auto;}.badge.svelte-1ym3cq2 {display:inline-block;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;line-height:1;white-space:nowrap;}"};function Ni(e,t){te(t,!0),he(e,Ri);const n={left:"flex-start",center:"center",right:"flex-end"};var r=Mi(),i=m(r),s=m(i);N(()=>{y(r,`justify-content: ${n[t.settings.align]??"center"??""}; margin-top: ${t.settings.marginTop??""}px;`),y(i,`
17
- background: ${t.settings.backgroundColor??""};
18
- color: ${t.settings.textColor??""};
19
- border-radius: ${t.settings.borderRadius??""}px;
20
- padding: ${t.settings.paddingY??""}px ${t.settings.paddingX??""}px;
21
- font-size: ${t.settings.fontSize??""}px;
22
- `),A(s,t.settings.text)}),T(e,r),ne()}var Oi=C('<div class="arrow svelte-ixrd3u"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M9 6l6 6-6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>'),Di=C('<!> <div class="card svelte-ixrd3u"><h3 class="card-title svelte-ixrd3u"> </h3> <p class="card-content svelte-ixrd3u"> </p></div>',1),zi=C('<div class="cards-row svelte-ixrd3u"></div>'),Ii=C('<div class="cards-footer svelte-ixrd3u"><p class="svelte-ixrd3u"> </p></div>'),ji=C('<div class="cards-wrapper svelte-ixrd3u"><!> <!></div>');const Pi={hash:"svelte-ixrd3u",code:`.cards-wrapper.svelte-ixrd3u {display:flex;flex-direction:column;gap:12px;max-width:750px;width:100%;margin:0 auto;}.cards-row.svelte-ixrd3u {display:flex;align-items:stretch;gap:0;}.arrow.svelte-ixrd3u {display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0 6px;}.card.svelte-ixrd3u {flex:1;max-width:calc(33.333% - 12px);border-radius:10px;padding:24px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;}.card-title.svelte-ixrd3u {margin:0;font-size:0.95rem;font-weight:800;text-transform:uppercase;letter-spacing:0.03em;}.card-content.svelte-ixrd3u {margin:0;font-size:0.85rem;line-height:1.5;}.cards-footer.svelte-ixrd3u {border-radius:8px;padding:14px 20px;text-align:center;}.cards-footer.svelte-ixrd3u p:where(.svelte-ixrd3u) {margin:0;font-size:0.85rem;line-height:1.5;font-style:italic;}
23
-
24
- @media (max-width: 640px) {.cards-row.svelte-ixrd3u {flex-direction:column;gap:12px;}.card.svelte-ixrd3u {max-width:100%;}.arrow.svelte-ixrd3u {transform:rotate(90deg);padding:4px 0;}
25
- }`};function Fi(e,t){te(t,!0),he(e,Pi);const n=Ge(()=>()=>{const a=t.settings.cards,l=[];for(let f=0;f<a.length;f+=3)l.push(a.slice(f,f+3));return l});var r=ji(),i=m(r);Qe(i,17,()=>_(n)(),Ot,(a,l)=>{var f=zi();Qe(f,21,()=>_(l),Ot,(u,h,c)=>{var g=Di(),p=kt(g);{var w=F=>{var z=Oi();N(()=>y(z,`color: ${t.settings.arrowColor??""};`)),T(F,z)};Ie(p,F=>{c>0&&F(w)})}var d=D(p,2),v=m(d),E=m(v),x=D(v,2),M=m(x);N(()=>{y(d,`background: ${t.settings.backgroundColor??""}; border: 1px solid ${t.settings.borderColor??""};`),y(v,`color: ${t.settings.titleColor??""};`),A(E,_(h).title),y(x,`color: ${t.settings.contentColor??""};`),A(M,_(h).content)}),T(u,g)}),T(a,f)});var s=D(i,2);{var o=a=>{var l=Ii(),f=m(l),u=m(f);N(()=>{y(l,`background: ${t.settings.footerBackground??""}; color: ${t.settings.footerTextColor??""};`),A(u,t.settings.footerText)}),T(a,l)};Ie(s,a=>{t.settings.footerText&&a(o)})}N(()=>y(r,`margin-top: ${t.settings.marginTop??""}px;`)),T(e,r),ne()}var Li=C('<div class="divider svelte-16e49gq"><div class="divider-line svelte-16e49gq"></div> <span class="divider-text svelte-16e49gq"> </span> <div class="divider-line svelte-16e49gq"></div></div>');const Bi={hash:"svelte-16e49gq",code:".divider.svelte-16e49gq {display:flex;align-items:center;justify-content:center;gap:20px;max-width:750px;width:100%;margin:0 auto;}.divider-line.svelte-16e49gq {flex:1;height:1px;}.divider-text.svelte-16e49gq {font-size:14px;font-weight:800;white-space:nowrap;}"};function qi(e,t){te(t,!0),he(e,Bi);var n=Li(),r=m(n),i=D(r,2),s=m(i),o=D(i,2);N(()=>{y(n,`color: ${t.settings.textColor??""};`),y(r,`background: ${t.settings.lineColor??""};`),A(s,t.settings.text),y(o,`background: ${t.settings.lineColor??""};`)}),T(e,n),ne()}var Hi=C('<div class="terms-content svelte-1t3p06a"><p class="svelte-1t3p06a"> </p></div>'),Ui=C('<div class="terms-section svelte-1t3p06a"><button class="terms-header svelte-1t3p06a"><span class="terms-title svelte-1t3p06a"> </span> <div><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M8 11L3 5.5h10L8 11z" fill="currentColor"></path></svg></div></button> <!></div>'),Vi=C('<div class="terms-wrapper svelte-1t3p06a"><div class="terms-container svelte-1t3p06a"><div class="terms-main-header svelte-1t3p06a"><span class="terms-main-title svelte-1t3p06a"> </span></div> <!></div></div>');const Yi={hash:"svelte-1t3p06a",code:".terms-wrapper.svelte-1t3p06a {max-width:750px;width:100%;margin:0 auto;}.terms-container.svelte-1t3p06a {border-radius:8px;overflow:hidden;}.terms-main-header.svelte-1t3p06a {padding:18px 20px;border-bottom:1px solid rgba(177, 202, 223, 0.1);}.terms-main-title.svelte-1t3p06a {font-size:1.15rem;font-weight:600;}.terms-section.svelte-1t3p06a {border-top:1px solid;}.terms-section.svelte-1t3p06a:first-of-type {border-top:none;}.terms-header.svelte-1t3p06a {display:flex;width:100%;align-items:center;justify-content:space-between;padding:16px 20px;background:none;border:none;cursor:pointer;}.terms-title.svelte-1t3p06a {font-size:1rem;font-weight:500;text-align:start;}.terms-arrow.svelte-1t3p06a {display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;padding:4px;transition:transform 0.2s ease;flex-shrink:0;}.terms-arrow.rotated.svelte-1t3p06a {transform:rotate(180deg);}.terms-content.svelte-1t3p06a {padding:0 20px 20px;font-size:0.875rem;line-height:1.6;opacity:0.8;}.terms-content.svelte-1t3p06a p:where(.svelte-1t3p06a) {margin:0;}"};function Gi(e,t){te(t,!0),he(e,Yi);let n=H(ce(new Set));function r(u){_(n).has(u)?_(n).delete(u):_(n).add(u),B(n,new Set(_(n)),!0)}var i=Vi(),s=m(i),o=m(s),a=m(o),l=m(a),f=D(o,2);Qe(f,17,()=>t.settings.sections,Ot,(u,h,c)=>{var g=Ui(),p=m(g),w=m(p),d=m(w),v=D(w,2);let E;var x=D(p,2);{var M=z=>{var I=Hi(),se=m(I),fe=m(se);N(()=>{y(I,`color: ${t.settings.textColor??""};`),A(fe,_(h).content)}),T(z,I)},F=Ge(()=>_(n).has(c));Ie(x,z=>{_(F)&&z(M)})}N(z=>{y(g,`border-color: ${t.settings.borderColor??""};`),y(p,`color: ${t.settings.textColor??""};`),A(d,_(h).title),E=qn(v,1,"terms-arrow svelte-1t3p06a",null,E,z),y(v,`background: ${t.settings.arrowBackground??""};`)},[()=>({rotated:_(n).has(c)})]),Kr("click",p,()=>r(c)),T(u,g)}),N(()=>{y(i,`margin-top: ${t.settings.marginTop??""}px;`),y(s,`background-color: ${t.settings.backgroundColor??""}; border: 1px solid ${t.settings.borderColor??""};`),y(o,`color: ${t.settings.textColor??""};`),A(l,t.settings.title)}),T(e,i),ne()}Wr(["click"]);var Ki=C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-icon svelte-1x15dd8">&#128722;</span> <span class="placeholder-text svelte-1x15dd8">Enter an API URL in settings to load products</span></div>'),Wi=C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8">Loading products...</span></div>'),Xi=C('<div class="placeholder error svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8"> </span></div>'),Ji=C('<div class="placeholder svelte-1x15dd8"><span class="placeholder-text svelte-1x15dd8">No products found</span></div>'),Zi=C('<span class="discount-badge svelte-1x15dd8"> </span>'),Qi=C('<span class="old-price svelte-1x15dd8"> </span>'),$i=C('<div class="product-card svelte-1x15dd8"><div class="product-image-wrap svelte-1x15dd8"><img class="product-image svelte-1x15dd8"/> <!></div> <div class="product-info svelte-1x15dd8"><span class="product-brand svelte-1x15dd8"> </span> <h4 class="product-title svelte-1x15dd8"> </h4> <p class="product-desc svelte-1x15dd8"> </p> <div class="product-rating svelte-1x15dd8"> <span class="rating-num svelte-1x15dd8"> </span></div> <div class="product-price svelte-1x15dd8"><span class="current-price svelte-1x15dd8"> </span> <!></div></div></div>'),es=C('<div class="products-grid svelte-1x15dd8"></div>'),ts=C('<div class="products-wrapper svelte-1x15dd8"><!></div>');const ns={hash:"svelte-1x15dd8",code:`.products-wrapper.svelte-1x15dd8 {max-width:750px;width:100%;margin:0 auto;}.placeholder.svelte-1x15dd8 {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:48px 24px;border:1.5px dashed rgba(255, 255, 255, 0.12);border-radius:8px;background:rgba(255, 255, 255, 0.03);}.placeholder.error.svelte-1x15dd8 {border-color:rgba(239, 68, 68, 0.3);}.placeholder-icon.svelte-1x15dd8 {font-size:2rem;opacity:0.3;}.placeholder-text.svelte-1x15dd8 {font-size:0.8rem;color:rgba(255, 255, 255, 0.3);text-align:center;}.products-grid.svelte-1x15dd8 {display:grid;gap:14px;}.product-card.svelte-1x15dd8 {border-radius:10px;overflow:hidden;display:flex;flex-direction:column;}.product-image-wrap.svelte-1x15dd8 {position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:rgba(0, 0, 0, 0.2);}.product-image.svelte-1x15dd8 {width:100%;height:100%;object-fit:cover;}.discount-badge.svelte-1x15dd8 {position:absolute;top:8px;right:8px;padding:3px 8px;border-radius:6px;font-size:0.7rem;font-weight:700;}.product-info.svelte-1x15dd8 {padding:14px;display:flex;flex-direction:column;gap:6px;flex:1;}.product-brand.svelte-1x15dd8 {font-size:0.65rem;text-transform:uppercase;letter-spacing:0.08em;color:rgba(255, 255, 255, 0.35);font-weight:600;}.product-title.svelte-1x15dd8 {margin:0;font-size:0.85rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.product-desc.svelte-1x15dd8 {margin:0;font-size:0.75rem;line-height:1.4;}.product-rating.svelte-1x15dd8 {font-size:0.75rem;display:flex;align-items:center;gap:4px;}.rating-num.svelte-1x15dd8 {font-size:0.7rem;opacity:0.6;color:rgba(255, 255, 255, 0.5);}.product-price.svelte-1x15dd8 {display:flex;align-items:baseline;gap:8px;margin-top:auto;padding-top:6px;}.current-price.svelte-1x15dd8 {font-size:1rem;font-weight:700;}.old-price.svelte-1x15dd8 {font-size:0.8rem;text-decoration:line-through;}
26
-
27
- @media (max-width: 640px) {.products-grid.svelte-1x15dd8 {grid-template-columns:repeat(2, 1fr) !important;}
28
- }
29
-
30
- @media (max-width: 400px) {.products-grid.svelte-1x15dd8 {grid-template-columns:1fr !important;}
31
- }`};function rs(e,t){te(t,!0),he(e,ns);let n=H(ce([])),r=H(!1),i=H(""),s=H("");Pr(()=>{const d=t.settings.apiUrl;!d||d===_(s)||(B(s,d,!0),o(d))});async function o(d){B(r,!0),B(i,"");try{const v=await fetch(d);if(!v.ok)throw new Error(`HTTP ${v.status}`);const E=await v.json();B(n,E.products??E.data??(Array.isArray(E)?E:[]),!0)}catch(v){B(i,v instanceof Error?v.message:"Failed to fetch",!0),B(n,[],!0)}finally{B(r,!1)}}function a(d,v){return`${v==="USD"?"$":v} ${d}`}function l(d){const v=Math.floor(d),E=d-v>=.5?1:0,x=5-v-E;return"★".repeat(v)+(E?"½":"")+"☆".repeat(x)}var f=ts(),u=m(f);{var h=d=>{var v=Ki();T(d,v)},c=d=>{var v=Wi();T(d,v)},g=d=>{var v=Xi(),E=m(v),x=m(E);N(()=>A(x,`Error: ${_(i)??""}`)),T(d,v)},p=d=>{var v=Ji();T(d,v)},w=d=>{var v=es();Qe(v,21,()=>_(n),E=>E._id,(E,x)=>{var M=$i(),F=m(M),z=m(F),I=D(z,2);{var se=pe=>{var ge=Zi(),nt=m(ge);N(()=>{y(ge,`background: ${t.settings.discountBadgeBackground??""}; color: ${t.settings.discountBadgeColor??""};`),A(nt,`-${_(x).price.discountPercentage??""}%`)}),T(pe,ge)};Ie(I,pe=>{_(x).price.discountPercentage>0&&pe(se)})}var fe=D(F,2),j=m(fe),It=m(j),tt=D(j,2),us=m(tt),jt=D(tt,2),ds=m(jt),Pt=D(jt,2),Vn=m(Pt),cs=D(Vn),vs=m(cs),hs=D(Pt,2),Ft=m(hs),ps=m(Ft),gs=D(Ft,2);{var _s=pe=>{var ge=Qi(),nt=m(ge);N(Lt=>{y(ge,`color: ${t.settings.oldPriceColor??""};`),A(nt,Lt)},[()=>a(_(x).price.beforeDiscount,_(x).price.currency)]),T(pe,ge)};Ie(gs,pe=>{_(x).price.beforeDiscount>_(x).price.current&&pe(_s)})}N((pe,ge,nt,Lt)=>{y(M,`background: ${t.settings.cardBackground??""}; border: 1px solid ${t.settings.cardBorder??""};`),ct(z,"src",_(x).thumbnail),ct(z,"alt",_(x).title),A(It,_(x).brand),y(tt,`color: ${t.settings.titleColor??""};`),A(us,_(x).title),y(jt,`color: ${t.settings.descriptionColor??""};`),A(ds,pe),y(Pt,`color: ${t.settings.ratingColor??""};`),A(Vn,`${ge??""} `),A(vs,nt),y(Ft,`color: ${t.settings.priceColor??""};`),A(ps,Lt)},[()=>_(x).description.length>80?_(x).description.slice(0,80)+"...":_(x).description,()=>l(_(x).rating),()=>_(x).rating.toFixed(1),()=>a(_(x).price.current,_(x).price.currency)]),T(E,M)}),N(()=>y(v,`grid-template-columns: repeat(${t.settings.columns??""}, 1fr);`)),T(d,v)};Ie(u,d=>{t.settings.apiUrl?_(r)?d(c,1):_(i)?d(g,2):_(n).length===0?d(p,3):d(w,-1):d(h)})}N(()=>y(f,`margin-top: ${t.settings.marginTop??""}px;`)),T(e,f),ne()}const is={text:xi,button:bi,auth:ki,banner:Ai,badge:Ni,cards:Fi,divider:qi,terms:Gi,products:rs};function Un(e){return e===null||typeof e!="object"||Array.isArray(e)?!1:typeof e.en=="string"}function ss(e,t){return Un(e)?e[t]??e.en??"":Array.isArray(e)?e.map(n=>{if(n===null||typeof n!="object")return n;const r={};for(const[i,s]of Object.entries(n))r[i]=Un(s)?s[t]??s.en??"":s;return r}):e}function ls(e,t){const n={};for(const[r,i]of Object.entries(e))n[r]=ss(i,t);return n}var as=C("<div></div>");function os(e,t){te(t,!0);let n=zt(t,"locale",3,"en"),r=zt(t,"containerClass",3,""),i=zt(t,"containerStyle",3,"");const s=Ge(()=>()=>{const l=t.data.global;return[`background: ${l.background??"#ffffff"}`,`padding-top: ${l.paddingTop??0}px`,`padding-bottom: ${l.paddingBottom??0}px`,`padding-left: ${l.paddingLeft??0}px`,`padding-right: ${l.paddingRight??0}px`,i()].filter(Boolean).join("; ")}),o=Ge(()=>t.data.components.map(l=>({component:is[l.name],settings:ls(l.settings,n()),name:l.name})).filter(l=>l.component!==void 0));var a=as();Qe(a,21,()=>_(o),({component:l,settings:f,name:u})=>u+JSON.stringify(f),(l,f)=>{let u=()=>_(f).component,h=()=>_(f).settings;const c=Ge(u);var g=jn(),p=kt(g);li(p,()=>_(c),(w,d)=>{d(w,{get settings(){return h()}})}),T(l,g)}),N(l=>{qn(a,1,oi(r())),y(a,l)},[()=>_(s)()]),T(e,a),ne()}function fs(e,t,n="en"){let r=H(ce(t)),i=H(ce(n));const s=ei(os,{target:e,props:{get data(){return _(r)},get locale(){return _(i)}}});return{update(o){B(r,o,!0)},setLocale(o){B(i,o,!0)},destroy(){ni(s)}}}je.createRenderer=fs,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(Le,ft){typeof exports=="object"&&typeof module<"u"?ft(exports):typeof define=="function"&&define.amd?define(["exports"],ft):(Le=typeof globalThis<"u"?globalThis:Le||self,ft(Le.BuilderRenderer={}))})(this,(function(Le){"use strict";const P=Symbol(),Ht="http://www.w3.org/1999/xhtml",Zn=!1;var Vt=Array.isArray,Qn=Array.prototype.indexOf,Pe=Array.prototype.includes,ut=Array.from,$n=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,er=Object.getOwnPropertyDescriptors,tr=Object.prototype,nr=Array.prototype,Ut=Object.getPrototypeOf,Wt=Object.isExtensible;const rr=()=>{};function ir(e){for(var t=0;t<e.length;t++)e[t]()}function Yt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const L=2,Be=4,ct=8,Kt=1<<24,ve=16,re=32,Se=64,wt=128,J=512,D=1024,q=2048,le=4096,U=8192,ie=16384,Ce=32768,Xt=1<<25,he=65536,Jt=1<<17,sr=1<<18,qe=1<<19,ar=1<<20,fe=1<<25,Me=65536,bt=1<<21,yt=1<<22,pe=1<<23,kt=Symbol("$state"),lr=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function or(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function ur(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function cr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function dr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function pr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _r(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Zt(e){return e===this.v}function xr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Qt(e){return!xr(e,this.v)}let wr=!1,Z=null;function Ge(e){Z=e}function ge(e,t=!1,n){Z={p:Z,i:!1,c:null,e:null,s:e,x:null,r:k,l:null}}function _e(e){var t=Z,n=t.e;if(n!==null){t.e=null;for(var r of n)kn(r)}return t.i=!0,Z=t.p,{}}function $t(){return!0}let He=[];function br(){var e=He;He=[],ir(e)}function Ve(e){if(He.length===0){var t=He;queueMicrotask(()=>{t===He&&br()})}He.push(e)}function en(e){var t=k;if(t===null)return b.f|=pe,e;if((t.f&Ce)===0&&(t.f&Be)===0)throw e;me(e,t)}function me(e,t){for(;t!==null;){if((t.f&wt)!==0){if((t.f&Ce)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const yr=-7169;function F(e,t){e.f=e.f&yr|t}function Et(e){(e.f&J)!==0||e.deps===null?F(e,D):F(e,le)}function tn(e){if(e!==null)for(const t of e)(t.f&L)===0||(t.f&Me)===0||(t.f^=Me,tn(t.deps))}function nn(e,t,n){(e.f&q)!==0?t.add(e):(e.f&le)!==0&&n.add(e),tn(e.deps),F(e,D)}const xe=new Set;let M=null,se=null,Tt=null,At=!1,Ue=null,dt=null;var rn=0;let kr=1;class we{id=kr++;current=new Map;previous=new Map;#t=new Set;#o=new Set;#e=new Map;#r=new Map;#i=null;#n=[];#s=new Set;#a=new Set;#l=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#r.size>0}#h(){for(const r of this.#f)for(const i of r.#r.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#l.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#l.get(t);if(n){this.#l.delete(t);for(var r of n.d)F(r,q),this.schedule(r);for(r of n.m)F(r,le),this.schedule(r)}}#v(){if(rn++>1e3&&(xe.delete(this),Er()),!this.#d()){for(const a of this.#s)this.#a.delete(a),F(a,q),this.schedule(a);for(const a of this.#a)F(a,le),this.schedule(a)}const t=this.#n;this.#n=[],this.apply();var n=Ue=[],r=[],i=dt=[];for(const a of t)try{this.#u(a,n,r)}catch(f){throw fn(a),f}if(M=null,i.length>0){var s=we.ensure();for(const a of i)s.schedule(a)}if(Ue=null,dt=null,this.#d()||this.#h()){this.#p(r),this.#p(n);for(const[a,f]of this.#l)on(a,f)}else{this.#e.size===0&&xe.delete(this),this.#s.clear(),this.#a.clear();for(const a of this.#t)a(this);this.#t.clear(),sn(r),sn(n),this.#i?.resolve()}var o=M;if(this.#n.length>0){const a=o??=this;a.#n.push(...this.#n.filter(f=>!a.#n.includes(f)))}o!==null&&(xe.add(o),o.#v()),xe.has(this)||this.#m()}#u(t,n,r){t.f^=D;for(var i=t.first;i!==null;){var s=i.f,o=(s&(re|Se))!==0,a=o&&(s&D)!==0,f=a||(s&U)!==0||this.#l.has(i);if(!f&&i.fn!==null){o?i.f^=D:(s&Be)!==0?n.push(i):tt(i)&&((s&ve)!==0&&this.#a.add(i),Ke(i));var l=i.first;if(l!==null){i=l;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)nn(t[n],this.#s,this.#a)}capture(t,n,r=!1){n!==P&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&pe)===0&&(this.current.set(t,[t.v,r]),se?.set(t,t.v))}activate(){M=this}deactivate(){M=null,se=null}flush(){try{At=!0,M=this,this.#v()}finally{rn=0,Tt=null,Ue=null,dt=null,At=!1,M=null,se=null,be.clear()}}discard(){for(const t of this.#o)t(this);this.#o.clear(),xe.delete(this)}#m(){for(const l of xe){var t=l.id<this.id,n=[];for(const[u,[d,v]]of this.current){if(l.current.has(u)){var r=l.current.get(u)[0];if(t&&d!==r)l.current.set(u,[d,v]);else continue}n.push(u)}var i=[...l.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&l.discard();else if(n.length>0){l.activate();var s=new Set,o=new Map;for(var a of n)an(a,i,s,o);if(l.#n.length>0){l.apply();for(var f of l.#n)l.#u(f,[],[]);l.#n=[]}l.deactivate()}}for(const l of xe)l.#f.has(this)&&(l.#f.delete(this),l.#f.size===0&&!l.#d()&&(l.activate(),l.#v()))}increment(t,n){let r=this.#e.get(n)??0;if(this.#e.set(n,r+1),t){let i=this.#r.get(n)??0;this.#r.set(n,i+1)}}decrement(t,n,r){let i=this.#e.get(n)??0;if(i===1?this.#e.delete(n):this.#e.set(n,i-1),t){let s=this.#r.get(n)??0;s===1?this.#r.delete(n):this.#r.set(n,s-1)}this.#c||r||(this.#c=!0,Ve(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#s.add(r);for(const r of n)this.#a.add(r);t.clear(),n.clear()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#o.add(t)}settled(){return(this.#i??=Yt()).promise}static ensure(){if(M===null){const t=M=new we;At||(xe.add(M),Ve(()=>{M===t&&t.flush()}))}return M}apply(){{se=null;return}}schedule(t){if(Tt=t,t.b?.is_pending&&(t.f&(Be|ct|Kt))!==0&&(t.f&Ce)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ue!==null&&n===k&&(b===null||(b.f&L)===0))return;if((r&(Se|re))!==0){if((r&D)===0)return;n.f^=D}}this.#n.push(n)}}function Er(){try{vr()}catch(e){me(e,Tt)}}let ce=null;function sn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ie|U))===0&&tt(r)&&(ce=new Set,Ke(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),ce?.size>0)){be.clear();for(const i of ce){if((i.f&(ie|U))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)ce.has(o)&&(ce.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const f=s[a];(f.f&(ie|U))===0&&Ke(f)}}ce.clear()}}ce=null}}function an(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&L)!==0?an(i,t,n,r):(s&(yt|ve))!==0&&(s&q)===0&&ln(i,t,r)&&(F(i,q),St(i))}}function ln(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(Pe.call(t,i))return!0;if((i.f&L)!==0&&ln(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function St(e){M.schedule(e)}function on(e,t){if(!((e.f&re)!==0&&(e.f&D)!==0)){(e.f&q)!==0?t.d.push(e):(e.f&le)!==0&&t.m.push(e),F(e,D);for(var n=e.first;n!==null;)on(n,t),n=n.next}}function fn(e){F(e,D);for(var t=e.first;t!==null;)fn(t),t=t.next}function Tr(e){let t=0,n=Ne(0),r;return()=>{Rt()&&(p(n),Wr(()=>(t===0&&(r=Zr(()=>e(()=>Qe(n)))),t+=1,()=>{Ve(()=>{t-=1,t===0&&(r?.(),r=void 0,Qe(n))})})))}}var Ar=he|qe;function Sr(e,t,n,r){new Cr(e,t,n,r)}class Cr{parent;is_pending=!1;transform_error;#t;#o=null;#e;#r;#i;#n=null;#s=null;#a=null;#l=null;#c=0;#f=0;#d=!1;#h=new Set;#v=new Set;#u=null;#p=Tr(()=>(this.#u=Ne(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#t=t,this.#e=n,this.#r=s=>{var o=k;o.b=this,o.f|=wt,r(s)},this.parent=k.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#i=et(()=>{this.#x()},Ar)}#m(){try{this.#n=Q(()=>this.#r(this.#t))}catch(t){this.error(t)}}#b(t){const n=this.#e.failed;n&&(this.#a=Q(()=>{n(this.#t,()=>t,()=>()=>{})}))}#y(){const t=this.#e.pending;t&&(this.is_pending=!0,this.#s=Q(()=>t(this.#t)),Ve(()=>{var n=this.#l=document.createDocumentFragment(),r=ye();n.append(r),this.#n=this.#_(()=>Q(()=>this.#r(r))),this.#f===0&&(this.#t.before(n),this.#l=null,Ie(this.#s,()=>{this.#s=null}),this.#g(M))}))}#x(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=Q(()=>{this.#r(this.#t)}),this.#f>0){var t=this.#l=document.createDocumentFragment();jt(this.#n,t);const n=this.#e.pending;this.#s=Q(()=>n(this.#t))}else this.#g(M)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){nn(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#_(t){var n=k,r=b,i=Z;oe(this.#i),$(this.#i),Ge(this.#i.ctx);try{return we.ensure(),t()}catch(s){return en(s),null}finally{oe(n),$(r),Ge(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#f+=t,this.#f===0&&(this.#g(n),this.#s&&Ie(this.#s,()=>{this.#s=null}),this.#l&&(this.#t.before(this.#l),this.#l=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,Ve(()=>{this.#d=!1,this.#u&&We(this.#u,this.#c)}))}get_effect_pending(){return this.#p(),p(this.#u)}error(t){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw t;this.#n&&(H(this.#n),this.#n=null),this.#s&&(H(this.#s),this.#s=null),this.#a&&(H(this.#a),this.#a=null);var i=!1,s=!1;const o=()=>{if(i){mr();return}i=!0,s&&_r(),this.#a!==null&&Ie(this.#a,()=>{this.#a=null}),this.#_(()=>{this.#x()})},a=f=>{try{s=!0,n?.(f,o),s=!1}catch(l){me(l,this.#i&&this.#i.parent)}r&&(this.#a=this.#_(()=>{try{return Q(()=>{var l=k;l.b=this,l.f|=wt,r(this.#t,()=>f,()=>o)})}catch(l){return me(l,this.#i.parent),null}}))};Ve(()=>{var f;try{f=this.transform_error(t)}catch(l){me(l,this.#i&&this.#i.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(a,l=>me(l,this.#i&&this.#i.parent)):a(f)})}}function Mr(e,t,n,r){const i=Ct;var s=e.filter(v=>!v.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=k,a=Nr(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function l(v){a();try{r(v)}catch(g){(o.f&ie)===0&&me(g,o)}vt()}if(n.length===0){f.then(()=>l(t.map(i)));return}var u=un();function d(){Promise.all(n.map(v=>Rr(v))).then(v=>l([...t.map(i),...v])).catch(v=>me(v,o)).finally(()=>u())}f?f.then(()=>{a(),d(),vt()}):d()}function Nr(){var e=k,t=b,n=Z,r=M;return function(s=!0){oe(e),$(t),Ge(n),s&&(e.f&ie)===0&&(r?.activate(),r?.apply())}}function vt(e=!0){oe(null),$(null),Ge(null),e&&M?.deactivate()}function un(){var e=k,t=e.b,n=M,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ct(e){var t=L|q,n=b!==null&&(b.f&L)!==0?b:null;return k!==null&&(k.f|=qe),{ctx:Z,deps:null,effects:null,equals:Zt,f:t,fn:e,reactions:null,rv:0,v:P,wv:0,parent:n??k,ac:null}}function Rr(e,t,n){let r=k;r===null&&or();var i=void 0,s=Ne(P),o=!b,a=new Map;return Ur(()=>{var f=k,l=Yt();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).finally(vt)}catch(g){l.reject(g),vt()}var u=M;if(o){if((f.f&Ce)!==0)var d=un();if(r.b.is_rendered())a.get(u)?.reject(ue),a.delete(u);else{for(const g of a.values())g.reject(ue);a.clear()}a.set(u,l)}const v=(g,c=void 0)=>{if(d){var h=c===ue;d(h)}if(!(c===ue||(f.f&ie)!==0)){if(u.activate(),c)s.f|=pe,We(s,c);else{(s.f&pe)!==0&&(s.f^=pe),We(s,g);for(const[m,w]of a){if(a.delete(m),m===u)break;w.reject(ue)}}u.deactivate()}};l.promise.then(v,g=>v(null,g||"unknown"))}),Gr(()=>{for(const f of a.values())f.reject(ue)}),new Promise(f=>{function l(u){function d(){u===i?f(s):l(i)}u.then(d,d)}l(i)})}function W(e){const t=Ct(e);return Mn(t),t}function Ir(e){const t=Ct(e);return t.equals=Qt,t}function Or(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function jr(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return(t.f&ie)===0?t:null;t=t.parent}return null}function Mt(e){var t,n=k;oe(jr(e));try{e.f&=~Me,Or(e),t=jn(e)}finally{oe(n)}return t}function cn(e){var t=e.v,n=Mt(e);if(!e.equals(n)&&(e.wv=In(),(!M?.is_fork||e.deps===null)&&(e.v=n,M?.capture(e,t,!0),e.deps===null))){F(e,D);return}Oe||(se!==null?(Rt()||M?.is_fork)&&se.set(e,n):Et(e))}function Fr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ue),t.teardown=rr,t.ac=null,nt(t,0),It(t))}function dn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ke(t)}let Nt=new Set;const be=new Map;let vn=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:Zt,rv:0,wv:0};return n}function Y(e,t){const n=Ne(e);return Mn(n),n}function zr(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=Qt),r}function K(e,t,n=!1){b!==null&&(!ae||(b.f&Jt)!==0)&&$t()&&(b.f&(L|ve|yt|Jt))!==0&&(ee===null||!Pe.call(ee,e))&&gr();let r=n?Re(t):t;return We(e,r,dt)}function We(e,t,n=null){if(!e.equals(t)){var r=e.v;Oe?be.set(e,t):be.set(e,r),e.v=t;var i=we.ensure();if(i.capture(e,r),(e.f&L)!==0){const s=e;(e.f&q)!==0&&Mt(s),se===null&&Et(s)}e.wv=In(),hn(e,q,n),k!==null&&(k.f&D)!==0&&(k.f&(re|Se))===0&&(te===null?Xr([e]):te.push(e)),!i.is_fork&&Nt.size>0&&!vn&&Dr()}return t}function Dr(){vn=!1;for(const e of Nt)(e.f&D)!==0&&F(e,le),tt(e)&&Ke(e);Nt.clear()}function Qe(e){K(e,e.v+1)}function hn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],a=o.f,f=(a&q)===0;if(f&&F(o,t),(a&L)!==0){var l=o;se?.delete(l),(a&Me)===0&&(a&J&&(o.f|=Me),hn(l,le,n))}else if(f){var u=o;(a&ve)!==0&&ce!==null&&ce.add(u),n!==null?n.push(u):St(u)}}}function Re(e){if(typeof e!="object"||e===null||kt in e)return e;const t=Ut(e);if(t!==tr&&t!==nr)return e;var n=new Map,r=Vt(e),i=Y(0),s=Fe,o=a=>{if(Fe===s)return a();var f=b,l=Fe;$(null),Rn(s);var u=a();return $(f),Rn(l),u};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(a,f,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&hr();var u=n.get(f);return u===void 0?o(()=>{var d=Y(l.value);return n.set(f,d),d}):K(u,l.value,!0),!0},deleteProperty(a,f){var l=n.get(f);if(l===void 0){if(f in a){const u=o(()=>Y(P));n.set(f,u),Qe(i)}}else K(l,P),Qe(i);return!0},get(a,f,l){if(f===kt)return e;var u=n.get(f),d=f in a;if(u===void 0&&(!d||Ze(a,f)?.writable)&&(u=o(()=>{var g=Re(d?a[f]:P),c=Y(g);return c}),n.set(f,u)),u!==void 0){var v=p(u);return v===P?void 0:v}return Reflect.get(a,f,l)},getOwnPropertyDescriptor(a,f){var l=Reflect.getOwnPropertyDescriptor(a,f);if(l&&"value"in l){var u=n.get(f);u&&(l.value=p(u))}else if(l===void 0){var d=n.get(f),v=d?.v;if(d!==void 0&&v!==P)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return l},has(a,f){if(f===kt)return!0;var l=n.get(f),u=l!==void 0&&l.v!==P||Reflect.has(a,f);if(l!==void 0||k!==null&&(!u||Ze(a,f)?.writable)){l===void 0&&(l=o(()=>{var v=u?Re(a[f]):P,g=Y(v);return g}),n.set(f,l));var d=p(l);if(d===P)return!1}return u},set(a,f,l,u){var d=n.get(f),v=f in a;if(r&&f==="length")for(var g=l;g<d.v;g+=1){var c=n.get(g+"");c!==void 0?K(c,P):g in a&&(c=o(()=>Y(P)),n.set(g+"",c))}if(d===void 0)(!v||Ze(a,f)?.writable)&&(d=o(()=>Y(void 0)),K(d,Re(l)),n.set(f,d));else{v=d.v!==P;var h=o(()=>Re(l));K(d,h)}var m=Reflect.getOwnPropertyDescriptor(a,f);if(m?.set&&m.set.call(u,l),!v){if(r&&typeof f=="string"){var w=n.get("length"),_=Number(f);Number.isInteger(_)&&_>=w.v&&K(w,_+1)}Qe(i)}return!0},ownKeys(a){p(i);var f=Reflect.ownKeys(a).filter(d=>{var v=n.get(d);return v===void 0||v.v!==P});for(var[l,u]of n)u.v!==P&&!(l in a)&&f.push(l);return f},setPrototypeOf(){pr()}})}var pn,gn,_n,mn;function Lr(){if(pn===void 0){pn=window,gn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;_n=Ze(t,"firstChild").get,mn=Ze(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 ye(e=""){return document.createTextNode(e)}function Ye(e){return _n.call(e)}function $e(e){return mn.call(e)}function x(e,t){return Ye(e)}function ht(e,t=!1){{var n=Ye(e);return n instanceof Comment&&n.data===""?$e(n):n}}function j(e,t=1,n=!1){let r=e;for(;t--;)r=$e(r);return r}function Pr(e){e.textContent=""}function xn(){return!1}function wn(e,t,n){return document.createElementNS(Ht,e,void 0)}function bn(e){var t=b,n=k;$(null),oe(null);try{return e()}finally{$(t),oe(n)}}function Br(e){k===null&&(b===null&&dr(),cr()),Oe&&ur()}function qr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function de(e,t){var n=k;n!==null&&(n.f&U)!==0&&(e|=U);var r={ctx:Z,deps:null,nodes:null,f:e|q|J,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Be)!==0)Ue!==null?Ue.push(r):we.ensure().schedule(r);else if(t!==null){try{Ke(r)}catch(o){throw H(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&qe)===0&&(i=i.first,(e&ve)!==0&&(e&he)!==0&&i!==null&&(i.f|=he))}if(i!==null&&(i.parent=n,n!==null&&qr(i,n),b!==null&&(b.f&L)!==0&&(e&Se)===0)){var s=b;(s.effects??=[]).push(i)}return r}function Rt(){return b!==null&&!ae}function Gr(e){const t=de(ct,null);return F(t,D),t.teardown=e,t}function yn(e){Br();var t=k.f,n=!b&&(t&re)!==0&&(t&Ce)===0;if(n){var r=Z;(r.e??=[]).push(e)}else return kn(e)}function kn(e){return de(Be|ar,e)}function Hr(e){we.ensure();const t=de(Se|qe,e);return(n={})=>new Promise(r=>{n.outro?Ie(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Vr(e){return de(Be,e)}function Ur(e){return de(yt|qe,e)}function Wr(e,t=0){return de(ct|t,e)}function S(e,t=[],n=[],r=[]){Mr(r,t,n,i=>{de(ct,()=>e(...i.map(p)))})}function et(e,t=0){var n=de(ve|t,e);return n}function Q(e){return de(re|qe,e)}function En(e){var t=e.teardown;if(t!==null){const n=Oe,r=b;Cn(!0),$(null);try{t.call(null)}finally{Cn(n),$(r)}}}function It(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&bn(()=>{i.abort(ue)});var r=n.next;(n.f&Se)!==0?n.parent=null:H(n,t),n=r}}function Yr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&re)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&sr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Kr(e.nodes.start,e.nodes.end),n=!0),F(e,Xt),It(e,t&&!n),nt(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();En(e),e.f^=Xt,e.f|=ie;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Kr(e,t){for(;e!==null;){var n=e===t?null:$e(e);e.remove(),e=n}}function Tn(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 Ie(e,t,n=!0){var r=[];An(e,r,!0);var i=()=>{n&&H(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var a of r)a.out(o)}else i()}function An(e,t,n){if((e.f&U)===0){e.f^=U;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&he)!==0||(i.f&re)!==0&&(e.f&ve)!==0;An(i,t,o?n:!1),i=s}}}function Ot(e){Sn(e,!0)}function Sn(e,t){if((e.f&U)!==0){e.f^=U,(e.f&D)===0&&(F(e,q),we.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&he)!==0||(n.f&re)!==0;Sn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function jt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:$e(n);t.append(n),n=i}}let pt=!1,Oe=!1;function Cn(e){Oe=e}let b=null,ae=!1;function $(e){b=e}let k=null;function oe(e){k=e}let ee=null;function Mn(e){b!==null&&(ee===null?ee=[e]:ee.push(e))}let V=null,X=0,te=null;function Xr(e){te=e}let Nn=1,je=0,Fe=je;function Rn(e){Fe=e}function In(){return++Nn}function tt(e){var t=e.f;if((t&q)!==0)return!0;if(t&L&&(e.f&=~Me),(t&le)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(tt(s)&&cn(s),s.wv>e.wv)return!0}(t&J)!==0&&se===null&&F(e,D)}return!1}function On(e,t,n=!0){var r=e.reactions;if(r!==null&&!(ee!==null&&Pe.call(ee,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&L)!==0?On(s,t,!1):t===s&&(n?F(s,q):(s.f&D)!==0&&F(s,le),St(s))}}function jn(e){var t=V,n=X,r=te,i=b,s=ee,o=Z,a=ae,f=Fe,l=e.f;V=null,X=0,te=null,b=(l&(re|Se))===0?e:null,ee=null,Ge(e.ctx),ae=!1,Fe=++je,e.ac!==null&&(bn(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=bt;var u=e.fn,d=u();e.f|=Ce;var v=e.deps,g=M?.is_fork;if(V!==null){var c;if(g||nt(e,X),v!==null&&X>0)for(v.length=X+V.length,c=0;c<V.length;c++)v[X+c]=V[c];else e.deps=v=V;if(Rt()&&(e.f&J)!==0)for(c=X;c<v.length;c++)(v[c].reactions??=[]).push(e)}else!g&&v!==null&&X<v.length&&(nt(e,X),v.length=X);if($t()&&te!==null&&!ae&&v!==null&&(e.f&(L|le|q))===0)for(c=0;c<te.length;c++)On(te[c],e);if(i!==null&&i!==e){if(je++,i.deps!==null)for(let h=0;h<n;h+=1)i.deps[h].rv=je;if(t!==null)for(const h of t)h.rv=je;te!==null&&(r===null?r=te:r.push(...te))}return(e.f&pe)!==0&&(e.f^=pe),d}catch(h){return en(h)}finally{e.f^=bt,V=t,X=n,te=r,b=i,ee=s,Ge(o),ae=a,Fe=f}}function Jr(e,t){let n=t.reactions;if(n!==null){var r=Qn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&L)!==0&&(V===null||!Pe.call(V,t))){var s=t;(s.f&J)!==0&&(s.f^=J,s.f&=~Me),Et(s),Fr(s),nt(s,0)}}function nt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Jr(e,n[r])}function Ke(e){var t=e.f;if((t&ie)===0){F(e,D);var n=k,r=pt;k=e,pt=!0;try{(t&(ve|Kt))!==0?Yr(e):It(e),En(e);var i=jn(e);e.teardown=typeof i=="function"?i:null,e.wv=Nn;var s;Zn&&wr&&(e.f&q)!==0&&e.deps}finally{pt=r,k=n}}}function p(e){var t=e.f,n=(t&L)!==0;if(b!==null&&!ae){var r=k!==null&&(k.f&ie)!==0;if(!r&&(ee===null||!Pe.call(ee,e))){var i=b.deps;if((b.f&bt)!==0)e.rv<je&&(e.rv=je,V===null&&i!==null&&i[X]===e?X++:V===null?V=[e]:V.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:Pe.call(s,b)||s.push(b)}}}if(Oe&&be.has(e))return be.get(e);if(n){var o=e;if(Oe){var a=o.v;return((o.f&D)===0&&o.reactions!==null||zn(o))&&(a=Mt(o)),be.set(o,a),a}var f=(o.f&J)===0&&!ae&&b!==null&&(pt||(b.f&J)!==0),l=(o.f&Ce)===0;tt(o)&&(f&&(o.f|=J),cn(o)),f&&!l&&(dn(o),Fn(o))}if(se?.has(e))return se.get(e);if((e.f&pe)!==0)throw e.v;return e.v}function Fn(e){if(e.f|=J,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&L)!==0&&(t.f&J)===0&&(dn(t),Fn(t))}function zn(e){if(e.v===P)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(be.has(t)||(t.f&L)!==0&&zn(t))return!0;return!1}function Zr(e){var t=ae;try{return ae=!0,e()}finally{ae=t}}const rt=Symbol("events"),Dn=new Set,Ft=new Set;function Ln(e,t,n){(t[rt]??={})[e]=n}function Qr(e){for(var t=0;t<e.length;t++)Dn.add(e[t]);for(var n of Ft)n(e)}let Pn=null;function Bn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Pn=e;var o=0,a=Pn===e&&e[rt];if(a){var f=i.indexOf(a);if(f!==-1&&(t===document||t===window)){e[rt]=t;return}var l=i.indexOf(t);if(l===-1)return;f<=l&&(o=f)}if(s=i[o]||e.target,s!==t){$n(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=b,d=k;$(null),oe(null);try{for(var v,g=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var h=s[rt]?.[r];h!=null&&(!s.disabled||e.target===s)&&h.call(s,e)}catch(m){v?g.push(m):v=m}if(e.cancelBubble||c===t||c===null)break;s=c}if(v){for(let m of g)queueMicrotask(()=>{throw m});throw v}}finally{e[rt]=t,delete e.currentTarget,$(u),oe(d)}}}const $r=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ei(e){return $r?.createHTML(e)??e}function qn(e){var t=wn("template");return t.innerHTML=ei(e.replaceAll("<!>","<!---->")),t.content}function gt(e,t){var n=k;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function E(e,t){var n=(t&1)!==0,r=(t&2)!==0,i,s=!e.startsWith("<!>");return()=>{i===void 0&&(i=qn(s?e:"<!>"+e),n||(i=Ye(i)));var o=r||gn?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Ye(o),f=o.lastChild;gt(a,f)}else gt(o,o);return o}}function ti(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,s;return()=>{if(!s){var o=qn(i),a=Ye(o);s=Ye(a)}var f=s.cloneNode(!0);return gt(f,f),f}}function ni(e,t){return ti(e,t,"svg")}function Gn(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ye();return e.append(t,n),gt(t,n),e}function y(e,t){e!==null&&e.before(t)}const ri=["touchstart","touchmove"];function ii(e){return ri.includes(e)}function B(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function si(e,t){return ai(e,t)}const _t=new Map;function ai(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:a}){Lr();var f=void 0,l=Hr(()=>{var u=n??t.appendChild(ye());Sr(u,{pending:()=>{}},g=>{ge({});var c=Z;s&&(c.c=s),i&&(r.$$events=i),f=e(g,r)||{},_e()},a);var d=new Set,v=g=>{for(var c=0;c<g.length;c++){var h=g[c];if(!d.has(h)){d.add(h);var m=ii(h);for(const A of[t,document]){var w=_t.get(A);w===void 0&&(w=new Map,_t.set(A,w));var _=w.get(h);_===void 0?(A.addEventListener(h,Bn,{passive:m}),w.set(h,1)):w.set(h,_+1)}}}};return v(ut(Dn)),Ft.add(v),()=>{for(var g of d)for(const m of[t,document]){var c=_t.get(m),h=c.get(g);--h==0?(m.removeEventListener(g,Bn),c.delete(g),c.size===0&&_t.delete(m)):c.set(g,h)}Ft.delete(v),u!==n&&u.parentNode?.removeChild(u)}});return zt.set(f,l),f}let zt=new WeakMap;function li(e,t){const n=zt.get(e);return n?(zt.delete(e),n(t)):Promise.resolve()}class Dt{anchor;#t=new Map;#o=new Map;#e=new Map;#r=new Set;#i=!0;constructor(t,n=!0){this.anchor=t,this.#i=n}#n=t=>{if(this.#t.has(t)){var n=this.#t.get(t),r=this.#o.get(n);if(r)Ot(r),this.#r.delete(n);else{var i=this.#e.get(n);i&&(this.#o.set(n,i.effect),this.#e.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#e.get(o);a&&(H(a.effect),this.#e.delete(o))}for(const[s,o]of this.#o){if(s===n||this.#r.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var l=document.createDocumentFragment();jt(o,l),l.append(ye()),this.#e.set(s,{effect:o,fragment:l})}else H(o);this.#r.delete(s),this.#o.delete(s)};this.#i||!r?(this.#r.add(s),Ie(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#e)n.includes(r)||(H(i.effect),this.#e.delete(r))};ensure(t,n){var r=M,i=xn();if(n&&!this.#o.has(t)&&!this.#e.has(t))if(i){var s=document.createDocumentFragment(),o=ye();s.append(o),this.#e.set(t,{effect:Q(()=>n(o)),fragment:s})}else this.#o.set(t,Q(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[a,f]of this.#o)a===t?r.unskip_effect(f):r.skip_effect(f);for(const[a,f]of this.#e)a===t?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#n),r.ondiscard(this.#s)}else this.#n(r)}}function oi(e,t,...n){var r=new Dt(e);et(()=>{const i=t()??null;r.ensure(i,i&&(s=>i(s,...n)))},he)}function G(e,t,n=!1){var r=new Dt(e),i=n?he:0;function s(o,a){r.ensure(o,a)}et(()=>{var o=!1;t((a,f=0)=>{o=!0,s(f,a)}),o||s(-1,null)},i)}function it(e,t){return t}function fi(e,t,n){for(var r=[],i=t.length,s,o=t.length,a=0;a<i;a++){let d=t[a];Ie(d,()=>{if(s){if(s.pending.delete(d),s.done.add(d),s.pending.size===0){var v=e.outrogroups;Lt(e,ut(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var f=r.length===0&&n!==null;if(f){var l=n,u=l.parentNode;Pr(u),u.append(l),e.items.clear()}Lt(e,t,!f)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Lt(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const o of e.pending.values())for(const a of o)r.add(e.items.get(a).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=fe;const o=document.createDocumentFragment();jt(s,o)}else H(t[i],n)}}var Hn;function Xe(e,t,n,r,i,s=null){var o=e,a=new Map;{var f=e;o=f.appendChild(ye())}var l=null,u=Ir(()=>{var _=n();return Vt(_)?_:_==null?[]:ut(_)}),d,v=new Map,g=!0;function c(_){(w.effect.f&ie)===0&&(w.pending.delete(_),w.fallback=l,ui(w,d,o,t,r),l!==null&&(d.length===0?(l.f&fe)===0?Ot(l):(l.f^=fe,at(l,null,o)):Ie(l,()=>{l=null})))}function h(_){w.pending.delete(_)}var m=et(()=>{d=p(u);for(var _=d.length,A=new Set,I=M,R=xn(),T=0;T<_;T+=1){var z=d[T],C=r(z,T),O=g?null:a.get(C);O?(O.v&&We(O.v,z),O.i&&We(O.i,T),R&&I.unskip_effect(O.e)):(O=ci(a,g?o:Hn??=ye(),z,C,T,i,t,n),g||(O.e.f|=fe),a.set(C,O)),A.add(C)}if(_===0&&s&&!l&&(g?l=Q(()=>s(o)):(l=Q(()=>s(Hn??=ye())),l.f|=fe)),_>A.size&&fr(),!g)if(v.set(I,A),R){for(const[Ae,lt]of a)A.has(Ae)||I.skip_effect(lt.e);I.oncommit(c),I.ondiscard(h)}else c(I);p(u)}),w={effect:m,items:a,pending:v,outrogroups:null,fallback:l};g=!1}function st(e){for(;e!==null&&(e.f&re)===0;)e=e.next;return e}function ui(e,t,n,r,i){var s=t.length,o=e.items,a=st(e.effect.first),f,l=null,u=[],d=[],v,g,c,h;for(h=0;h<s;h+=1){if(v=t[h],g=i(v,h),c=o.get(g).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(c),C.done.delete(c);if((c.f&U)!==0&&Ot(c),(c.f&fe)!==0)if(c.f^=fe,c===a)at(c,null,n);else{var m=l?l.next:a;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),ke(e,l,c),ke(e,c,m),at(c,m,n),l=c,u=[],d=[],a=st(l.next);continue}if(c!==a){if(f!==void 0&&f.has(c)){if(u.length<d.length){var w=d[0],_;l=w.prev;var A=u[0],I=u[u.length-1];for(_=0;_<u.length;_+=1)at(u[_],w,n);for(_=0;_<d.length;_+=1)f.delete(d[_]);ke(e,A.prev,I.next),ke(e,l,A),ke(e,I,w),a=w,l=I,h-=1,u=[],d=[]}else f.delete(c),at(c,a,n),ke(e,c.prev,c.next),ke(e,c,l===null?e.effect.first:l.next),ke(e,l,c),l=c;continue}for(u=[],d=[];a!==null&&a!==c;)(f??=new Set).add(a),d.push(a),a=st(a.next);if(a===null)continue}(c.f&fe)===0&&u.push(c),l=c,a=st(c.next)}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Lt(e,ut(C.done)),e.outrogroups?.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||f!==void 0){var R=[];if(f!==void 0)for(c of f)(c.f&U)===0&&R.push(c);for(;a!==null;)(a.f&U)===0&&a!==e.fallback&&R.push(a),a=st(a.next);var T=R.length;if(T>0){var z=s===0?n:null;fi(e,R,z)}}}function ci(e,t,n,r,i,s,o,a){var f=(o&1)!==0?(o&16)===0?zr(n,!1,!1):Ne(n):null,l=(o&2)!==0?Ne(i):null;return{v:f,i:l,e:Q(()=>(s(t,f??n,l??i,a),()=>{e.delete(r)}))}}function at(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&fe)===0?t.nodes.start:n;r!==null;){var o=$e(r);if(s.before(r),r===i)return;r=o}}function ke(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function di(e,t,n){var r=new Dt(e);et(()=>{var i=t()??null;r.ensure(i,i&&(s=>n(s,i)))},he)}function Ee(e,t){Vr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=wn("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Vn(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Vn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vi(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Vn(e))&&(r&&(r+=" "),r+=t);return r}function hi(e){return typeof e=="object"?vi(e):e??""}const Un=[...`
2
+ \r\f \v\uFEFF`];function pi(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+s;(o===0||Un.includes(r[o-1]))&&(a===r.length||Un.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function gi(e,t){return e==null?null:String(e)}function mt(e,t,n,r,i,s){var o=e.__className;if(o!==n||o===void 0){var a=pi(n,r,s);a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a),e.__className=n}else if(s&&i!==s)for(var f in s){var l=!!s[f];(i==null||l!==!!i[f])&&e.classList.toggle(f,l)}return s}function N(e,t,n,r){var i=e.__style;if(i!==t){var s=gi(t);s==null?e.removeAttribute("style"):e.style.cssText=s,e.__style=t}return r}const _i=Symbol("is custom element"),mi=Symbol("is html");function Te(e,t,n,r){var i=xi(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[lr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&wi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function xi(e){return e.__attributes??={[_i]:e.nodeName.includes("-"),[mi]:e.namespaceURI===Ht}}var Wn=new Map;function wi(e){var t=e.getAttribute("is")||e.nodeName,n=Wn.get(t);if(n)return n;Wn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=er(i);for(var o in r)r[o].set&&n.push(o);i=Ut(i)}return n}function ne(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var f;return f=()=>{var l=e[t];return l===void 0?o():(s=!0,l)},f}const bi="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(bi);var yi=E('<img class="banner-img banner-desktop svelte-pvxr6w" alt="Banner"/>'),ki=E('<img class="banner-img banner-mobile svelte-pvxr6w" alt="Banner"/>'),Ei=E("<!> <!>",1),Ti=E('<div class="banner-empty svelte-pvxr6w">Banner image</div>'),Ai=E('<div class="banner-scrim svelte-pvxr6w"></div>'),Si=E('<span class="banner-layer-text svelte-pvxr6w"> </span>'),Ci=E('<div class="banner-stack svelte-pvxr6w"></div>'),Mi=E('<div class="banner-root svelte-pvxr6w"><div class="banner-media svelte-pvxr6w"><!> <!></div> <!></div>');const Ni={hash:"svelte-pvxr6w",code:`.banner-root.svelte-pvxr6w {position:relative;width:100%;}.banner-media.svelte-pvxr6w {position:relative;width:100%;overflow:hidden;}.banner-img.svelte-pvxr6w {display:block;width:100%;}.banner-mobile.svelte-pvxr6w {display:none;}
3
+
4
+ @container page (max-width: 767px) {.banner-desktop.svelte-pvxr6w {display:none;}.banner-mobile.svelte-pvxr6w {display:block;}
5
+ }.banner-empty.svelte-pvxr6w {display:flex;align-items:center;justify-content:center;min-height:280px;font-size:0.85rem;color:rgba(255, 255, 255, 0.5);background:rgba(255, 255, 255, 0.04);border:1px dashed rgba(255, 255, 255, 0.15);}.banner-scrim.svelte-pvxr6w {position:absolute;inset:0;pointer-events:none;}.banner-stack.svelte-pvxr6w {position:absolute;left:0;right:0;transform:translateY(-50%);display:flex;flex-direction:column;padding:0 1.5rem;pointer-events:none;}.banner-layer-text.svelte-pvxr6w {display:inline-block;line-height:1.1;max-width:100%;}`};function Ri(e,t){ge(t,!0),Ee(e,Ni);const n=W(()=>!!(t.settings.desktopImage||t.settings.mobileImage)),r=W(()=>t.settings.layers??[]),i=W(()=>t.settings.textAlign==="left"?"flex-start":t.settings.textAlign==="right"?"flex-end":"center"),s=h=>/gradient\(/i.test(h)?`background-image: ${h}; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;`:`color: ${h};`;var o=Mi(),a=x(o),f=x(a);{var l=h=>{var m=Ei(),w=ht(m);{var _=R=>{var T=yi();S(()=>{Te(T,"src",t.settings.desktopImage),N(T,`object-fit: ${t.settings.objectFit??""};`)}),y(R,T)};G(w,R=>{t.settings.desktopImage&&R(_)})}var A=j(w,2);{var I=R=>{var T=ki();S(()=>{Te(T,"src",t.settings.mobileImage),N(T,`object-fit: ${t.settings.objectFit??""};`)}),y(R,T)};G(A,R=>{t.settings.mobileImage&&R(I)})}y(h,m)},u=h=>{var m=Ti();y(h,m)};G(f,h=>{p(n)?h(l):h(u,-1)})}var d=j(f,2);{var v=h=>{var m=Ai();S(()=>N(m,`background: ${t.settings.overlayColor??""};`)),y(h,m)};G(d,h=>{t.settings.overlayColor&&t.settings.overlayColor!=="rgba(0,0,0,0)"&&h(v)})}var g=j(a,2);{var c=h=>{var m=Ci();Xe(m,21,()=>p(r),it,(w,_)=>{var A=Gn(),I=ht(A);{var R=T=>{var z=Si(),C=x(z);S(O=>{N(z,`
6
+ font-size: ${p(_).fontSize??""}px;
7
+ font-weight: ${p(_).fontWeight??""};
8
+ ${O??""}
9
+ `),B(C,p(_).text)},[()=>s(p(_).color)]),y(T,z)};G(I,T=>{p(_).text&&T(R)})}y(w,A)}),S(()=>N(m,`
10
+ top: ${t.settings.verticalPosition??""}%;
11
+ align-items: ${p(i)??""};
12
+ text-align: ${t.settings.textAlign??""};
13
+ gap: ${t.settings.gap??""}px;
14
+ `)),y(h,m)};G(g,h=>{p(r).length>0&&h(c)})}S(()=>N(o,`margin-top: ${t.settings.marginTop??""}px;`)),y(e,o),_e()}var Ii=E('<p class="text-element svelte-qvulfy"> </p>');const Oi={hash:"svelte-qvulfy",code:".text-element.svelte-qvulfy {margin:0 auto;width:100%;max-width:750px;line-height:1.4;word-wrap:break-word;white-space:pre-wrap;}"};function ji(e,t){ge(t,!0),Ee(e,Oi);const n=W(()=>/gradient\(/i.test(t.settings.typography.color)),r=W(()=>p(n)?`background-image: ${t.settings.typography.color}; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;`:`color: ${t.settings.typography.color};`);var i=Ii(),s=x(i);S(()=>{N(i,`
15
+ margin-top: ${t.settings.marginTop??""}px;
16
+ text-align: ${t.settings.align??""};
17
+ font-size: ${t.settings.typography.fontSize??""}px;
18
+ font-weight: ${t.settings.typography.fontWeight??""};
19
+ font-family: ${t.settings.typography.fontFamily??""};
20
+ ${p(r)??""}
21
+ `),B(s,t.settings.typography.text)}),y(e,i),_e()}var Fi=E('<div class="button-wrap svelte-1xlikgk"><a class="button-element svelte-1xlikgk"> </a></div>');const zi={hash:"svelte-1xlikgk",code:".button-wrap.svelte-1xlikgk {display:flex;justify-content:center;width:100%;}.button-element.svelte-1xlikgk {display:inline-flex;align-items:center;justify-content:center;padding:0.75rem 2rem;text-decoration:none;text-align:center;letter-spacing:0.02em;cursor:pointer;transition:filter 0.2s ease;}.button-element.svelte-1xlikgk:hover {filter:brightness(1.05);}"};function Di(e,t){ge(t,!0),Ee(e,zi);const n=W(()=>/gradient\(/i.test(t.settings.background)),r=W(()=>p(n)?`background-image: ${t.settings.background};`:`background: ${t.settings.background};`);var i=Fi(),s=x(i),o=x(s);S(()=>{N(i,`margin-top: ${t.settings.marginTop??""}px;`),Te(s,"href",t.settings.link||void 0),N(s,`
22
+ ${p(r)??""}
23
+ color: ${t.settings.typography.color??""};
24
+ border-radius: ${t.settings.border.borderRadius??""}px;
25
+ border: ${t.settings.border.borderWidth??""}px solid ${t.settings.border.borderColor??""};
26
+ font-size: ${t.settings.typography.fontSize??""}px;
27
+ font-weight: ${t.settings.typography.fontWeight??""};
28
+ font-family: ${t.settings.typography.fontFamily??""};
29
+ `),B(o,t.settings.typography.text)}),y(e,i),_e()}var Li=E('<div><div class="lgb-mask svelte-17lkflg"></div> <!></div>');const Pi={hash:"svelte-17lkflg",code:`.lgb-wrapper.svelte-17lkflg {position:relative;}.lgb-mask.svelte-17lkflg {display:none;position:absolute;inset:0;pointer-events:none;z-index:2;}
30
+
31
+ @supports (
32
+ (-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)) and
33
+ (mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)) and
34
+ (-webkit-mask-composite: destination-out) and (mask-composite: exclude)
35
+ ) {.lgb-mask.svelte-17lkflg {display:block;mask:linear-gradient(#fff 0 0) content-box,
36
+ linear-gradient(#fff 0 0);-webkit-mask:linear-gradient(#fff 0 0) content-box,
37
+ linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask-composite:destination-out;}
38
+ }`};function Yn(e,t){Ee(e,Pi);let n=ne(t,"backgroundGradient",3,"linear-gradient(180deg, #EC491200, #B7350D 100%)"),r=ne(t,"width",3,"1px"),i=ne(t,"className",3,"");var s=Li(),o=x(s),a=j(o,2);oi(a,()=>t.children),S(()=>{mt(s,1,`lgb-wrapper ${i()??""}`,"svelte-17lkflg"),N(s,`padding: ${r()??""};`),N(o,`background: ${n()??""}; padding: ${r()??""}; border-radius: inherit;`)}),y(e,s)}var Bi=ni('<svg viewBox="0 0 19 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 6L9.5 12L16 6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');const qi={hash:"svelte-av1ifv",code:`.arrow.svelte-av1ifv {transition:transform 0.2s ease;}.arrow-up.svelte-av1ifv {transform:rotate(180deg);}.arrow-left.svelte-av1ifv {transform:rotate(90deg);}.arrow-right.svelte-av1ifv {transform:rotate(-90deg);}.arrow-down.svelte-av1ifv {transform:rotate(0deg);}
39
+
40
+ @container page (min-width: 768px) {.arrow.md-rotate-left.svelte-av1ifv {transform:rotate(-90deg);}
41
+ }`};function Pt(e,t){Ee(e,qi);let n=ne(t,"width",3,19),r=ne(t,"height",3,17),i=ne(t,"direction",3,"down"),s=ne(t,"stroke",3,"currentColor"),o=ne(t,"className",3,"");var a=Bi(),f=x(a);S(()=>{Te(a,"width",n()),Te(a,"height",r()),mt(a,0,`arrow arrow-${i()??""} ${o()??""}`,"svelte-av1ifv"),Te(f,"stroke",s())}),y(e,a)}var Gi=E('<h2 class="hiw-title svelte-w7peaa"> </h2>'),Hi=E('<p class="hiw-step-highlight svelte-w7peaa"> </p>'),Vi=E('<div class="hiw-step svelte-w7peaa"><div class="hiw-step-glow svelte-w7peaa"></div> <div class="hiw-step-content svelte-w7peaa"><div class="hiw-step-head svelte-w7peaa"><h3 class="hiw-step-title svelte-w7peaa"> </h3> <p class="hiw-step-text svelte-w7peaa"> </p></div> <!></div> <div class="hiw-step-line svelte-w7peaa"></div></div>'),Ui=E('<div class="hiw-arrow svelte-w7peaa"><!></div>'),Wi=E("<!> <!>",1),Yi=E('<div class="hiw-footer svelte-w7peaa"><p class="hiw-footer-text svelte-w7peaa"> </p></div>'),Ki=E('<div class="hiw svelte-w7peaa"><!> <div class="hiw-steps svelte-w7peaa"></div> <!></div>');const Xi={hash:"svelte-w7peaa",code:`.hiw.svelte-w7peaa {position:relative;width:100%;margin:0 auto;max-width:56rem;min-width:0;}.hiw-title.svelte-w7peaa {margin:0 0 1rem;font-size:1.5rem;font-weight:700;text-align:center;color:inherit;}.hiw-steps.svelte-w7peaa {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;min-width:0;}
42
+
43
+ @container page (min-width: 768px) {.hiw-steps.svelte-w7peaa {flex-direction:row;align-items:stretch;}
44
+ }.hiw-step-border {width:100%;max-width:320px;flex:1 1 0;min-width:0;border-radius:1rem;}
45
+
46
+ @container page (min-width: 768px) {.hiw-step-border {max-width:273px;}
47
+ }.hiw-step.svelte-w7peaa {position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:1rem;overflow:hidden;border-radius:1rem;background:rgba(13, 25, 35, 0.7);padding:1rem;min-height:145px;height:100%;width:100%;}.hiw-step-glow.svelte-w7peaa {pointer-events:none;position:absolute;right:-270px;top:-150px;height:175px;width:445px;transform:rotate(17deg);border-radius:9999px;filter:blur(48px);}.hiw-step-content.svelte-w7peaa {position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:0.25rem;text-align:center;}.hiw-step-head.svelte-w7peaa {display:flex;flex-direction:column;gap:0.5rem;}.hiw-step-title.svelte-w7peaa {margin:0;font-size:1.25rem;font-weight:700;line-height:1.1;letter-spacing:-0.025em;color:#fff;}.hiw-step-text.svelte-w7peaa {margin:0;font-size:0.875rem;font-weight:400;line-height:1.6;color:rgba(210, 216, 231, 0.92);}.hiw-step-highlight.svelte-w7peaa {margin:0;font-size:0.875rem;line-height:1.25rem;letter-spacing:-0.01em;font-weight:400;}.hiw-step-line.svelte-w7peaa {position:absolute;bottom:0;left:50%;height:1px;width:200px;transform:translateX(-50%);}.hiw-arrow.svelte-w7peaa {display:flex;align-items:center;justify-content:center;border-radius:9999px;border:1px solid rgba(255, 255, 255, 0.05);background:rgba(13, 25, 35, 0.6);padding:0.375rem;}
48
+
49
+ @container page (min-width: 768px) {.hiw-arrow.svelte-w7peaa {align-self:center;}
50
+ }.hiw-footer.svelte-w7peaa {position:relative;margin:0 auto;max-width:800px;border-radius:0 0 1.5rem 1.5rem;border:1px solid #355d80;border-top:0;background:linear-gradient(to bottom, #10202d, #162a3b);padding:1.25rem 0.75rem;text-align:center;backdrop-filter:blur(4px);}.hiw-footer-text.svelte-w7peaa {margin:0;font-size:0.875rem;line-height:1.5;font-weight:400;color:#fff;}`};function Ji(e,t){ge(t,!0),Ee(e,Xi);const n="linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(13,25,35,0) 100%)",r=u=>`linear-gradient(90deg, rgba(22,45,63,0) 0%, ${u} 50%, rgba(22,45,63,0) 100%)`;var i=Ki(),s=x(i);{var o=u=>{var d=Gi(),v=x(d);S(()=>B(v,t.settings.title)),y(u,d)};G(s,u=>{t.settings.title&&u(o)})}var a=j(s,2);Xe(a,21,()=>t.settings.steps,it,(u,d,v)=>{var g=Wi(),c=ht(g);{let w=W(()=>p(d).borderColor||n);Yn(c,{className:"hiw-step-border",get backgroundGradient(){return p(w)},children:(_,A)=>{var I=Vi(),R=x(I),T=j(R,2),z=x(T),C=x(z),O=x(C),Ae=j(C,2),lt=x(Ae),Je=j(z,2);{var xt=ze=>{var ot=Hi(),De=x(ot);S(()=>{N(ot,`color: ${p(d).highlightColor??""};`),B(De,p(d).highlight)}),y(ze,ot)};G(Je,ze=>{p(d).highlight&&ze(xt)})}var Gt=j(T,2);S(ze=>{N(R,`background: ${p(d).glowColor??""};`),B(O,p(d).title),B(lt,p(d).description),N(Gt,`background: ${ze??""};`)},[()=>r(p(d).accentColor||p(d).highlightColor)]),y(_,I)},$$slots:{default:!0}})}var h=j(c,2);{var m=w=>{var _=Ui(),A=x(_);Pt(A,{width:10,height:10,direction:"down",className:"md-rotate-left",stroke:"#fff"}),y(w,_)};G(h,w=>{v<t.settings.steps.length-1&&w(m)})}y(u,g)});var f=j(a,2);{var l=u=>{var d=Yi(),v=x(d),g=x(v);S(()=>B(g,t.settings.footer)),y(u,d)};G(f,u=>{t.settings.footer&&u(l)})}S(()=>N(i,`margin-top: ${t.settings.marginTop??""}px;`)),y(e,i),_e()}var Zi=E('<p class="steps-highlight svelte-1nxdixu"> </p>'),Qi=E('<div class="steps-item svelte-1nxdixu"><div class="steps-rail svelte-1nxdixu"><div class="steps-badge svelte-1nxdixu"><div class="steps-badge__ring svelte-1nxdixu"><span class="steps-badge__number svelte-1nxdixu"> </span></div></div> <div class="steps-connector svelte-1nxdixu" aria-hidden="true"></div></div> <div class="steps-body svelte-1nxdixu"><h3 class="steps-title svelte-1nxdixu"> </h3> <p class="steps-description svelte-1nxdixu"> </p> <!></div></div>'),$i=E('<span class="steps-example__label svelte-1nxdixu"> </span>'),es=E('<div class="steps-example-wrap svelte-1nxdixu"><div class="steps-example svelte-1nxdixu"><p class="steps-example__text svelte-1nxdixu"><!><span> </span></p></div></div>'),ts=E('<div class="steps svelte-1nxdixu"><div class="steps-grid svelte-1nxdixu"></div> <!></div>');const ns={hash:"svelte-1nxdixu",code:`.steps.svelte-1nxdixu {position:relative;width:100%;min-width:0;}.steps-grid.svelte-1nxdixu {display:grid;grid-template-columns:1fr;gap:24px;}
51
+
52
+ @container page (min-width: 768px) {.steps-grid.svelte-1nxdixu {grid-template-columns:repeat(3, 1fr);gap:32px;}
53
+ }.steps-item.svelte-1nxdixu {display:flex;align-items:flex-start;gap:8px;min-width:0;}.steps-rail.svelte-1nxdixu {display:flex;flex-direction:column;align-items:center;gap:12px;width:100px;flex-shrink:0;}.steps-badge.svelte-1nxdixu {position:relative;width:72px;height:72px;border-radius:9999px;}.steps-badge__ring.svelte-1nxdixu {position:absolute;inset:0;border-radius:9999px;border:1px solid rgba(255, 255, 255, 0.18);}.steps-badge__number.svelte-1nxdixu {position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);white-space:nowrap;font-size:30px;font-weight:700;line-height:1.2;letter-spacing:-0.8px;}.steps-connector.svelte-1nxdixu {width:2px;height:72px;flex-shrink:0;}.steps-body.svelte-1nxdixu {display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding-top:19px;}.steps-title.svelte-1nxdixu {margin:0;width:100%;font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-0.8px;text-transform:uppercase;color:#fff;}.steps-description.svelte-1nxdixu {margin:0;width:100%;font-size:18px;line-height:1.5;color:#b1cadf;}.steps-highlight.svelte-1nxdixu {margin:0;width:100%;font-size:18px;font-weight:600;line-height:1.4;}
54
+
55
+ @container page (min-width: 768px) {.steps-body.svelte-1nxdixu {padding-top:0;}.steps-title.svelte-1nxdixu {font-size:30px;}.steps-description.svelte-1nxdixu {font-size:16px;}.steps-highlight.svelte-1nxdixu {font-size:16px;}
56
+ }.steps-example-wrap.svelte-1nxdixu {display:flex;justify-content:center;margin-top:18px;}
57
+
58
+ @container page (min-width: 768px) {.steps-example-wrap.svelte-1nxdixu {margin-top:0;}
59
+ }.steps-example.svelte-1nxdixu {position:relative;width:100%;max-width:800px;padding:12px 16px;border:1px solid rgba(177, 202, 223, 0.2);border-radius:24px;background:linear-gradient(
60
+ 180deg,
61
+ rgba(13, 25, 35, 0) 0%,
62
+ rgba(177, 202, 223, 0.1) 100%
63
+ );backdrop-filter:blur(7.5px);-webkit-backdrop-filter:blur(7.5px);text-align:center;}.steps-example__text.svelte-1nxdixu {margin:0;font-size:14px;line-height:1.5;font-weight:400;color:#fff;}.steps-example__label.svelte-1nxdixu {font-weight:700;margin-right:4px;}`};function rs(e,t){ge(t,!0),Ee(e,ns);const n=f=>`linear-gradient(135deg, color-mix(in srgb, ${f} 18%, transparent) 0%, rgba(255,255,255,0.04) 55%, rgba(0,0,0,0) 100%)`,r=(f,l)=>`linear-gradient(180deg, ${f||l} 0%, #142636 100%)`;var i=ts(),s=x(i);Xe(s,21,()=>t.settings.steps,it,(f,l)=>{var u=Qi(),d=x(u),v=x(d),g=x(v),c=x(g),h=x(c),m=j(v,2),w=j(d,2),_=x(w),A=x(_),I=j(_,2),R=x(I),T=j(I,2);{var z=C=>{var O=Zi(),Ae=x(O);S(()=>{N(O,`color: ${p(l).highlightColor??""};`),B(Ae,p(l).highlight)}),y(C,O)};G(T,C=>{p(l).highlight&&C(z)})}S((C,O)=>{N(g,`background-image: ${C??""};`),N(c,`color: ${p(l).accentColor??""};`),B(h,p(l).number),N(m,`background: ${O??""};`),B(A,p(l).title),B(R,p(l).description)},[()=>n(p(l).accentColor),()=>r(p(l).barColor,p(l).accentColor)]),y(f,u)});var o=j(s,2);{var a=f=>{var l=es(),u=x(l),d=x(u),v=x(d);{var g=m=>{var w=$i(),_=x(w);S(()=>{N(w,`color: ${t.settings.exampleLabelColor??""};`),B(_,t.settings.exampleLabel)}),y(m,w)};G(v,m=>{t.settings.exampleLabel&&m(g)})}var c=j(v),h=x(c);S(()=>B(h,t.settings.exampleText)),y(f,l)};G(o,f=>{(t.settings.exampleText||t.settings.exampleLabel)&&f(a)})}S(()=>N(i,`margin-top: ${t.settings.marginTop??""}px;`)),y(e,i),_e()}var is=E('<p class="section-line svelte-1t3p06a"> </p>'),ss=E('<div class="section-body svelte-1t3p06a"></div>'),as=E('<div class="terms-section svelte-1t3p06a"><div class="section-toggle svelte-1t3p06a"><span class="section-title svelte-1t3p06a"> </span> <button type="button"><!></button></div> <!></div>'),ls=E('<div class="terms-list svelte-1t3p06a"></div>'),os=E('<div class="terms-panel svelte-1t3p06a"><div class="terms-toggle svelte-1t3p06a"><span class="terms-toggle-label svelte-1t3p06a"> </span> <button type="button" class="terms-toggle-icon svelte-1t3p06a"><!></button></div> <!></div>'),fs=E('<div class="terms-root svelte-1t3p06a"><!></div>');const us={hash:"svelte-1t3p06a",code:".terms-root.svelte-1t3p06a {margin-left:auto;margin-right:auto;width:100%;max-width:56rem;display:flex;flex-direction:column;gap:0.5rem;}.terms-border {overflow:hidden;border-radius:8px;}.terms-panel.svelte-1t3p06a {padding:0 16px;border-radius:inherit;}.terms-toggle.svelte-1t3p06a {width:100%;display:flex;align-items:center;justify-content:space-between;background:transparent;border:none;padding:12px 0;border-radius:8px;color:var(--terms-text-color, #b1cadf);}.terms-toggle-label.svelte-1t3p06a {font-size:1.125rem;font-weight:800;line-height:125%;color:var(--terms-text-color, #b1cadf);}.terms-toggle-icon.svelte-1t3p06a {min-width:30px;min-height:30px;padding:0;margin:0;font:inherit;color:inherit;appearance:none;display:flex;align-items:center;justify-content:center;border-radius:9999px;background:rgba(228, 246, 255, 0.1);border:1px solid rgba(177, 202, 223, 0.1);cursor:pointer;transition:background 0.15s ease;}.terms-toggle-icon.svelte-1t3p06a:hover {background:rgba(228, 246, 255, 0.2);}.terms-list.svelte-1t3p06a {margin-top:1px;padding:1rem 0;color:var(--terms-text-color, #fff);border-radius:0 0 8px 8px;}.terms-section.svelte-1t3p06a {overflow:hidden;border-top:1px solid rgba(177, 202, 223, 0.2);}.section-toggle.svelte-1t3p06a {width:100%;display:flex;justify-content:space-between;align-items:center;background:transparent;border:none;padding:12px 0;border-radius:8px;color:var(--terms-text-color, #fff);}.section-title.svelte-1t3p06a {text-align:left;color:var(--terms-text-color, #b1cadf);font-size:0.95rem;font-weight:600;}.section-icon.svelte-1t3p06a {height:30px;min-width:30px;padding:0;margin:0;font:inherit;appearance:none;display:flex;align-items:center;justify-content:center;border-radius:100%;background:transparent;border:1px solid transparent;color:inherit;cursor:pointer;transition:background 0.2s ease, border 0.2s ease;}.section-icon--active.svelte-1t3p06a {background:#1a364c;border-top:0.5px solid rgba(94, 131, 161, 0.1);backdrop-filter:blur(15px);}.section-body.svelte-1t3p06a {margin-top:1px;padding:0 0 12px;color:var(--terms-text-color, #fff);}.section-line.svelte-1t3p06a {margin:0 0 4px;font-size:14px;color:var(--terms-text-color, #b1cadf);line-height:1.5;}"};function cs(e,t){ge(t,!0),Ee(e,us);let n=Y(!1),r=Y(null);yn(()=>{K(n,t.settings.openByDefault==="true")});const i=()=>{K(n,!p(n))},s=l=>{K(r,p(r)===l?null:l,!0)},o=l=>l.split(`
64
+ `).filter(u=>u.length>0);var a=fs(),f=x(a);Yn(f,{className:"terms-border",get backgroundGradient(){return t.settings.borderColor},children:(l,u)=>{var d=os(),v=x(d),g=x(v),c=x(g),h=j(g,2),m=x(h);{let A=W(()=>p(n)?"up":"down");Pt(m,{get stroke(){return t.settings.textColor},width:19,height:17,get direction(){return p(A)}})}var w=j(v,2);{var _=A=>{var I=ls();Xe(I,21,()=>t.settings.sections,it,(R,T,z)=>{var C=as(),O=x(C),Ae=x(O),lt=x(Ae),Je=j(Ae,2);let xt;var Gt=x(Je);{let De=W(()=>p(r)===z?"up":"down");Pt(Gt,{get stroke(){return t.settings.textColor},width:19,height:17,get direction(){return p(De)}})}var ze=j(O,2);{var ot=De=>{var Xn=ss();Xe(Xn,21,()=>o(p(T).lines),it,(ms,xs)=>{var Jn=is(),ws=x(Jn);S(()=>B(ws,p(xs))),y(ms,Jn)}),y(De,Xn)};G(ze,De=>{p(r)===z&&De(ot)})}S(()=>{B(lt,p(T).title),xt=mt(Je,1,"section-icon svelte-1t3p06a",null,xt,{"section-icon--active":p(r)===z}),Te(Je,"aria-label",p(r)===z?"Collapse section":"Expand section")}),Ln("click",Je,()=>s(z)),y(R,C)}),y(A,I)};G(w,A=>{p(n)&&A(_)})}S(()=>{N(d,`background: ${t.settings.panelBgColor??""};`),B(c,t.settings.title),Te(h,"aria-label",p(n)?"Collapse terms":"Expand terms")}),Ln("click",h,i),y(l,d)},$$slots:{default:!0}}),S(()=>N(a,`margin-top: ${t.settings.marginTop??""}px; --terms-text-color: ${t.settings.textColor??""};`)),y(e,a),_e()}Qr(["click"]);const ds={banner:Ri,text:ji,button:Di,howItWorks:Ji,steps:rs,terms:cs};function vs(e){return e===null||typeof e!="object"||Array.isArray(e)?!1:typeof e.en=="string"}function Bt(e,t){if(vs(e))return e[t]??e.en??"";if(Array.isArray(e))return e.map(n=>Bt(n,t));if(e!==null&&typeof e=="object"){const n={};for(const[r,i]of Object.entries(e))n[r]=Bt(i,t);return n}return e}function Kn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function qt(e,t){if(t===void 0)return e;if(Array.isArray(e)&&Array.isArray(t))return e.map((n,r)=>r<t.length?qt(n,t[r]):n);if(Kn(e)&&Kn(t)){const n={...e};for(const[r,i]of Object.entries(t))n[r]=qt(e[r],i);return n}return t}function hs(e,t,n){const r=n?qt(e,n):e;return Bt(r,t)}var ps=E("<div></div>");function gs(e,t){ge(t,!0);let n=ne(t,"locale",3,"en"),r=ne(t,"containerClass",3,""),i=ne(t,"containerStyle",3,""),s=ne(t,"mobileBreakpoint",3,768),o=Y(!1);yn(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const u=window.matchMedia(`(max-width: ${s()}px)`),d=()=>{K(o,u.matches,!0)};return d(),u.addEventListener("change",d),()=>u.removeEventListener("change",d)});const a=W(()=>()=>{const u=t.data.global;return[`background: ${u.background??"#ffffff"}`,`padding-top: ${u.paddingTop??0}px`,`padding-bottom: ${u.paddingBottom??0}px`,`padding-left: ${u.paddingLeft??0}px`,`padding-right: ${u.paddingRight??0}px`,"display: flex","flex-direction: column","align-items: stretch","container-type: inline-size","container-name: page",i()].filter(Boolean).join("; ")}),f=W(()=>t.data.components.map(u=>({component:ds[u.name],settings:hs(u.settings,n(),p(o)?u.mobileSettings:void 0),name:u.name})).filter(u=>u.component!==void 0));var l=ps();Xe(l,21,()=>p(f),({component:u,settings:d,name:v})=>v+JSON.stringify(d),(u,d)=>{let v=()=>p(d).component,g=()=>p(d).settings;const c=W(v);var h=Gn(),m=ht(h);di(m,()=>p(c),(w,_)=>{_(w,{get settings(){return g()}})}),y(u,h)}),S(u=>{mt(l,1,hi(r())),N(l,u)},[()=>p(a)()]),y(e,l),_e()}function _s(e,t,n="en"){let r=Y(Re(t)),i=Y(Re(n));const s=si(gs,{target:e,props:{get data(){return p(r)},get locale(){return p(i)}}});return{update(o){K(r,o,!0)},setLocale(o){K(i,o,!0)},destroy(){li(s)}}}Le.createRenderer=_s,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})}));
@@ -1 +1 @@
1
- export declare function resolveSettings(settings: Record<string, unknown>, locale: string): Record<string, unknown>;
1
+ export declare function resolveSettings(settings: Record<string, unknown>, locale: string, mobileSettings?: Record<string, unknown>): Record<string, unknown>;
@@ -9,22 +9,36 @@ function resolveValue(value, locale) {
9
9
  return value[locale] ?? value['en'] ?? '';
10
10
  }
11
11
  if (Array.isArray(value)) {
12
- return value.map((item) => {
13
- if (item === null || typeof item !== 'object')
14
- return item;
15
- const resolved = {};
16
- for (const [k, v] of Object.entries(item)) {
17
- resolved[k] = isLocaleMap(v) ? (v[locale] ?? v['en'] ?? '') : v;
18
- }
19
- return resolved;
20
- });
12
+ return value.map((item) => resolveValue(item, locale));
13
+ }
14
+ if (value !== null && typeof value === 'object') {
15
+ const resolved = {};
16
+ for (const [key, entry] of Object.entries(value)) {
17
+ resolved[key] = resolveValue(entry, locale);
18
+ }
19
+ return resolved;
21
20
  }
22
21
  return value;
23
22
  }
24
- export function resolveSettings(settings, locale) {
25
- const result = {};
26
- for (const [key, value] of Object.entries(settings)) {
27
- result[key] = resolveValue(value, locale);
23
+ function isPlainObject(value) {
24
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
25
+ }
26
+ function mergeMobile(desktop, mobile) {
27
+ if (mobile === undefined)
28
+ return desktop;
29
+ if (Array.isArray(desktop) && Array.isArray(mobile)) {
30
+ return desktop.map((entry, index) => index < mobile.length ? mergeMobile(entry, mobile[index]) : entry);
28
31
  }
29
- return result;
32
+ if (isPlainObject(desktop) && isPlainObject(mobile)) {
33
+ const merged = { ...desktop };
34
+ for (const [key, value] of Object.entries(mobile)) {
35
+ merged[key] = mergeMobile(desktop[key], value);
36
+ }
37
+ return merged;
38
+ }
39
+ return mobile;
40
+ }
41
+ export function resolveSettings(settings, locale, mobileSettings) {
42
+ const source = mobileSettings ? mergeMobile(settings, mobileSettings) : settings;
43
+ return resolveValue(source, locale);
30
44
  }
@@ -1,6 +1,7 @@
1
1
  export interface ExportedEntry {
2
2
  name: string;
3
3
  settings: Record<string, unknown>;
4
+ mobileSettings?: Record<string, unknown>;
4
5
  }
5
6
  export interface ExportedState {
6
7
  global: Record<string, unknown>;
@@ -11,6 +12,7 @@ export interface RendererProps {
11
12
  locale?: string;
12
13
  containerClass?: string;
13
14
  containerStyle?: string;
15
+ mobileBreakpoint?: number;
14
16
  }
15
17
  export interface VanillaRendererInstance {
16
18
  update(data: ExportedState): void;
@@ -0,0 +1,21 @@
1
+ import { SvelteMap } from "svelte/reactivity";
2
+ import { undo as historyUndo, redo as historyRedo, canUndo, canRedo } from "./element.history.svelte";
3
+ import type { ElementEntry } from "./types";
4
+ export { canUndo, canRedo };
5
+ export declare const GLOBAL_KEY = "__global__";
6
+ export declare const components: ElementEntry[];
7
+ export declare const ComponentsInstance: SvelteMap<string, ElementEntry>;
8
+ export declare const mode: "edit" | "view";
9
+ export declare function cloneEntry(entry: ElementEntry, overrides?: Partial<ElementEntry>): ElementEntry;
10
+ export declare function trackSettings(entry: ElementEntry): void;
11
+ export declare function getGlobalSettings(): ElementEntry | null;
12
+ export declare function getSelectedComponent(): ElementEntry | null;
13
+ export declare function selectComponent(component: ElementEntry | null): void;
14
+ export declare function addComponent(component: ElementEntry): void;
15
+ export declare function deleteComponent(id: string): void;
16
+ export declare function handleDragAndDrop(items: {
17
+ id: string;
18
+ value: ElementEntry;
19
+ }[]): void;
20
+ export declare const undo: typeof historyUndo;
21
+ export declare const redo: typeof historyRedo;
@@ -0,0 +1,125 @@
1
+ import { SvelteMap } from "svelte/reactivity";
2
+ import { discoverGlobalSettings, elements } from "./element.reader.svelte";
3
+ import { initHistory, saveHistory, undo as historyUndo, redo as historyRedo, canUndo, canRedo, } from "./element.history.svelte";
4
+ import { Setting, Settings } from "../settings/base.svelte";
5
+ import { RepeaterSetting } from "../settings/repeater.svelte";
6
+ export { canUndo, canRedo };
7
+ export const GLOBAL_KEY = "__global__";
8
+ export const components = $state(elements);
9
+ export const ComponentsInstance = new SvelteMap();
10
+ export const mode = $state("edit");
11
+ let selectedComponent = $state(null);
12
+ export function cloneEntry(entry, overrides) {
13
+ return {
14
+ id: entry.id,
15
+ name: entry.name,
16
+ settings: entry.settings.clone(),
17
+ component: entry.component,
18
+ ...overrides,
19
+ };
20
+ }
21
+ export function trackSettings(entry) {
22
+ const walk = (settings) => {
23
+ for (const key in settings.entries) {
24
+ const item = settings.entries[key];
25
+ if (item instanceof Settings) {
26
+ walk(item);
27
+ }
28
+ else if (item instanceof RepeaterSetting) {
29
+ item.items.forEach(walk);
30
+ item.onItemsChange = (oldItems) => {
31
+ item.onItemsChange = null;
32
+ const newItems = item.items;
33
+ item.items = oldItems;
34
+ saveHistory();
35
+ item.items = newItems;
36
+ trackSettings(entry);
37
+ };
38
+ }
39
+ else {
40
+ const setting = item;
41
+ setting.onValueChange = (oldValue) => {
42
+ setting.onValueChange = null;
43
+ const mobile = setting.lastChangedMobile;
44
+ const newValue = mobile ? setting.mobileValue : setting.value;
45
+ if (mobile)
46
+ setting.mobileValue = oldValue;
47
+ else
48
+ setting.value = oldValue;
49
+ saveHistory();
50
+ if (mobile)
51
+ setting.mobileValue = newValue;
52
+ else
53
+ setting.value = newValue;
54
+ trackSettings(entry);
55
+ };
56
+ }
57
+ }
58
+ };
59
+ walk(entry.settings);
60
+ }
61
+ function captureState() {
62
+ const entries = [];
63
+ for (const [id, entry] of ComponentsInstance) {
64
+ entries.push([id, cloneEntry(entry)]);
65
+ }
66
+ return { entries, selectedId: selectedComponent?.id ?? null };
67
+ }
68
+ function restoreState(snapshot) {
69
+ const { entries, selectedId } = snapshot;
70
+ ComponentsInstance.clear();
71
+ for (const [id, entry] of entries) {
72
+ const restored = cloneEntry(entry);
73
+ ComponentsInstance.set(id, restored);
74
+ trackSettings(restored);
75
+ }
76
+ selectedComponent = selectedId
77
+ ? (ComponentsInstance.get(selectedId) ?? null)
78
+ : null;
79
+ }
80
+ const globalEntry = {
81
+ id: GLOBAL_KEY,
82
+ name: "Global",
83
+ settings: discoverGlobalSettings(),
84
+ component: null,
85
+ };
86
+ initHistory(captureState, restoreState);
87
+ ComponentsInstance.set(GLOBAL_KEY, globalEntry);
88
+ trackSettings(globalEntry);
89
+ export function getGlobalSettings() {
90
+ return ComponentsInstance.get(GLOBAL_KEY) ?? null;
91
+ }
92
+ export function getSelectedComponent() {
93
+ return selectedComponent;
94
+ }
95
+ export function selectComponent(component) {
96
+ selectedComponent = component;
97
+ }
98
+ export function addComponent(component) {
99
+ saveHistory();
100
+ const instance = cloneEntry(component, { id: crypto.randomUUID() });
101
+ ComponentsInstance.set(instance.id, instance);
102
+ trackSettings(instance);
103
+ selectComponent(instance);
104
+ }
105
+ export function deleteComponent(id) {
106
+ if (!ComponentsInstance.has(id))
107
+ return;
108
+ saveHistory();
109
+ ComponentsInstance.delete(id);
110
+ if (selectedComponent?.id === id) {
111
+ selectedComponent = null;
112
+ }
113
+ }
114
+ export function handleDragAndDrop(items) {
115
+ saveHistory();
116
+ const global = ComponentsInstance.get(GLOBAL_KEY);
117
+ ComponentsInstance.clear();
118
+ if (global)
119
+ ComponentsInstance.set(GLOBAL_KEY, global);
120
+ for (const item of items) {
121
+ ComponentsInstance.set(item.id, item.value);
122
+ }
123
+ }
124
+ export const undo = historyUndo;
125
+ export const redo = historyRedo;
@@ -0,0 +1,8 @@
1
+ type StateSnapshot = unknown;
2
+ export declare function initHistory(capture: () => StateSnapshot, restore: (snapshot: StateSnapshot) => void): void;
3
+ export declare function saveHistory(): void;
4
+ export declare function undo(): void;
5
+ export declare function redo(): void;
6
+ export declare function canUndo(): boolean;
7
+ export declare function canRedo(): boolean;
8
+ export {};