@htmlbricks/hb-paragraps-around-image 0.62.1 → 0.62.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Or=1,Lr=4,Dr=8,Mr=16,Ir=1,jr=2,Nt="[",ut="[!",Ct="]",Te={},T=Symbol(),Fr="http://www.w3.org/1999/xhtml",ct=!1;var qr=Array.isArray,Br=Array.prototype.indexOf,zr=Array.from,He=Object.keys,Ve=Object.defineProperty,he=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyDescriptors,Ur=Object.prototype,Hr=Array.prototype,Pt=Object.getPrototypeOf,Rt=Object.isExtensible;function Vr(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const b=2,ht=4,dt=8,Z=16,X=32,le=64,We=128,z=512,x=1024,P=2048,Q=4096,V=8192,ee=16384,Ge=32768,xe=65536,Lt=1<<17,_t=1<<18,de=1<<19,Wr=1<<20,_e=32768,vt=1<<21,pt=1<<22,fe=1<<23,Je=Symbol("$state"),Dt=Symbol("legacy props"),Gr=Symbol(""),Ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Mt=3,Se=8;function Jr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Kr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function rn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function an(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ln(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function W(e){m=e}let g;function L(e){if(e===null)throw Ke(),Te;return g=e}function gt(){return L(U(g))}function Ze(e){if(m){if(U(g)!==null)throw Ke(),Te;g=e}}function fn(e=1){if(m){for(var t=e,r=g;t--;)r=U(r);g=r}}function It(e=!0){for(var t=0,r=g;;){if(r.nodeType===Se){var n=r.data;if(n===Ct){if(t===0)return r;t-=1}else(n===Nt||n===ut)&&(t+=1)}var s=U(r);e&&r.remove(),r=s}}function on(e){if(!e||e.nodeType!==Se)throw Ke(),Te;return e.data}function jt(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ft(e){return!un(e,this.v)}let cn=!1,D=null;function ke(e){D=e}function qt(e,t=!1,r){D={p:D,i:!1,c:null,e:null,s:e,x:null,l:null}}function Bt(e){var t=D,r=t.e;if(r!==null){t.e=null;for(var n of r)ir(n)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function zt(){return!0}let ve=[];function Yt(){var e=ve;ve=[],Vr(e)}function Xe(e){if(ve.length===0&&!Ie){var t=ve;queueMicrotask(()=>{t===ve&&Yt()})}ve.push(e)}function hn(){for(;ve.length>0;)Yt()}function Ut(e){var t=v;if(t===null)return _.f|=fe,e;if((t.f&Ge)===0){if((t.f&We)===0)throw e;t.b.error(e)}else Ne(e,t)}function Ne(e,t){for(;t!==null;){if((t.f&We)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Qe=new Set;let $=null,M=null,I=[],et=null,mt=!1,Ie=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#f=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){I=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects)):($=null,Vt(r.render_effects),Vt(r.effects),this.#f?.resolve()),M=null}#a(t,r){t.f^=x;for(var n=t.first;n!==null;){var s=n.f,i=(s&(X|le))!==0,a=i&&(s&x)!==0,l=a||(s&V)!==0||this.skipped_effects.has(n);if((n.f&We)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){i?n.f^=x:(s&ht)!==0?r.effects.push(n):ze(n)&&((n.f&Z)!==0&&r.block_effects.push(n),Ye(n));var f=n.first;if(f!==null){n=f;continue}}var o=n.parent;for(n=n.next;n===null&&o!==null;)o===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects),r=r.parent),n=o.next,o=o.parent}}#l(t){for(const r of t)((r.f&P)!==0?this.#s:this.#i).push(r),this.#o(r.deps),S(r,x)}#o(t){if(t!==null)for(const r of t)(r.f&b)===0||(r.f&_e)===0||(r.f^=_e,this.#o(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&fe)===0&&(this.current.set(t,t.v),M?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,M=null)}flush(){if(this.activate(),I.length>0){if(Ht(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=M,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Qe){if(i===this){r=!1;continue}const a=[];for(const[f,o]of this.current){if(i.current.has(f))if(r&&o!==i.current.get(f))i.current.set(f,o);else continue;a.push(f)}if(a.length===0)continue;const l=[...i.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){var s=I;I=[];const f=new Set,o=new Map;for(const h of a)Wt(h,l,f,o);if(I.length>0){$=i,i.apply();for(const h of I)i.#a(h,n);i.deactivate()}I=s}}$=null,M=t}this.committed=!0,Qe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)S(t,P),pe(t);for(const t of this.#i)S(t,Q),pe(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=Ot()).promise}static ensure(){if($===null){const t=$=new Y;Qe.add($),Ie||Y.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Xe(t)}apply(){}}function tt(e){var t=Ie;Ie=!0;try{for(var r;;){if(hn(),I.length===0&&($?.flush(),I.length===0))return et=null,r;Ht()}}finally{Ie=t}}function Ht(){var e=ue;mt=!0;var t=null;try{var r=0;for(at(!0);I.length>0;){var n=Y.ensure();if(r++>1e3){var s,i;dn()}n.process(I),oe.clear()}}finally{mt=!1,at(e),et=null}}function dn(){try{Qr()}catch(e){Ne(e,et)}}let te=null;function Vt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ee|V))===0&&ze(n)&&(te=new Set,Ye(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?fr(n):n.fn=null),te?.size>0)){oe.clear();for(const s of te){if((s.f&(ee|V))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)te.has(a)&&(te.delete(a),i.push(a)),a=a.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&(ee|V))===0&&Ye(f)}}te.clear()}}te=null}}function Wt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&b)!==0?Wt(s,t,r,n):(i&(pt|Z))!==0&&(i&P)===0&&Gt(s,t,n)&&(S(s,P),pe(s))}}function Gt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&b)!==0&&Gt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function pe(e){for(var t=et=e;t.parent!==null;){t=t.parent;var r=t.f;if(mt&&t===v&&(r&Z)!==0&&(r&_t)===0)return;if((r&(le|X))!==0){if((r&x)===0)return;t.f^=x}}I.push(t)}function _n(e){let t=0,r=je(0),n;return()=>{st()&&(q(r),sr(()=>(t===0&&(n=yr(()=>e(()=>Fe(r)))),t+=1,()=>{Xe(()=>{t-=1,t===0&&(n?.(),n=void 0,Fe(r))})})))}}var vn=xe|de|We;function pn(e,t,r){new gn(e,t,r)}class gn{parent;#t=!1;#e;#r=m?g:null;#n;#f;#s;#i=null;#a=null;#l=null;#o=null;#u=null;#c=0;#h=0;#_=!1;#d=null;#w=_n(()=>(this.#d=je(this.#c),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#f=n,this.parent=v.b,this.#t=!!this.#n.pending,this.#s=Tt(()=>{if(v.b=this,m){const i=this.#r;gt(),i.nodeType===Se&&i.data===ut?this.#$():this.#y()}else{var s=this.#g();try{this.#i=se(()=>n(s))}catch(i){this.error(i)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},vn),m&&(this.#e=g)}#y(){try{this.#i=se(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#n.pending;t&&(this.#a=se(()=>t(this.#e)),Y.enqueue(()=>{var r=this.#g();this.#i=this.#v(()=>(Y.ensure(),se(()=>this.#f(r)))),this.#h>0?this.#p():(qe(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=ie(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#v(t){var r=v,n=_,s=D;j(this.#s),A(this.#s),ke(this.#s.ctx);try{return t()}catch(i){return Ut(i),null}finally{j(r),A(n),ke(s)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),cr(this.#i,this.#o)),this.#a===null&&(this.#a=se(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#a&&qe(this.#a,()=>{this.#a=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#d&&nt(this.#d,this.#c)}get_effect_pending(){return this.#w(),q(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#_||!r&&!n)throw t;this.#i&&(R(this.#i),this.#i=null),this.#a&&(R(this.#a),this.#a=null),this.#l&&(R(this.#l),this.#l=null),m&&(L(this.#r),fn(),L(It()));var s=!1,i=!1;const a=()=>{if(s){ln();return}s=!0,i&&an(),Y.ensure(),this.#c=0,this.#l!==null&&qe(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#v(()=>(this.#_=!1,se(()=>this.#f(this.#e)))),this.#h>0?this.#p():this.#t=!1};var l=_;try{A(null),i=!0,r?.(t,a),i=!1}catch(f){Ne(f,this.#s&&this.#s.parent)}finally{A(l)}n&&Xe(()=>{this.#l=this.#v(()=>{Y.ensure(),this.#_=!0;try{return se(()=>{n(this.#e,()=>t,()=>a)})}catch(f){return Ne(f,this.#s.parent),null}finally{this.#_=!1}})})}}function mn(e,t,r,n){const s=wt;if(r.length===0&&e.length===0){n(t.map(s));return}var i=$,a=v,l=wn();function f(){Promise.all(r.map(o=>yn(o))).then(o=>{l();try{n([...t.map(s),...o])}catch(h){(a.f&ee)===0&&Ne(h,a)}i?.deactivate(),rt()}).catch(o=>{Ne(o,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return f()}finally{i?.deactivate(),rt()}}):f()}function wn(){var e=v,t=_,r=D,n=$;return function(i=!0){j(e),A(t),ke(r),i&&n?.activate()}}function rt(){j(null),A(null),ke(null)}function wt(e){var t=b|P,r=_!==null&&(_.f&b)!==0?_:null;return v!==null&&(v.f|=de),{ctx:D,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:r??v,ac:null}}function yn(e,t){let r=v;r===null&&Jr();var n=r.b,s=void 0,i=je(T),a=!_,l=new Map;return Ln(()=>{var f=Ot();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{o===$&&o.committed&&o.deactivate(),rt()})}catch(u){f.reject(u),rt()}var o=$;if(a){var h=!n.is_pending();n.update_pending_count(1),o.increment(h),l.get(o)?.reject(Ae),l.delete(o),l.set(o,f)}const c=(u,d=void 0)=>{if(o.activate(),d)d!==Ae&&(i.f|=fe,nt(i,d));else{(i.f&fe)!==0&&(i.f^=fe),nt(i,u);for(const[w,C]of l){if(l.delete(w),w===o)break;C.reject(Ae)}}a&&(n.update_pending_count(-1),o.decrement(h))};f.promise.then(c,u=>c(null,u||"unknown"))}),nr(()=>{for(const f of l.values())f.reject(Ae)}),new Promise(f=>{function o(h){function c(){h===s?f(i):o(s)}h.then(c,c)}o(s)})}function $n(e){const t=wt(e);return t.equals=Ft,t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)R(t[r])}}function bn(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&ee)===0?t:null;t=t.parent}return null}function yt(e){var t,r=v;j(bn(e));try{e.f&=~_e,Jt(e),t=gr(e)}finally{j(r)}return t}function Kt(e){var t=yt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=vr()),!ye)if(M!==null)st()&&M.set(e,t);else{var r=(e.f&z)===0?Q:x;S(e,r)}}let $t=new Set;const oe=new Map;let Zt=!1;function je(e,t){var r={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return r}function re(e,t){const r=je(e);return Fn(r),r}function En(e,t=!1,r=!0){const n=je(e);return t||(n.equals=Ft),n}function ne(e,t,r=!1){_!==null&&(!J||(_.f&Lt)!==0)&&zt()&&(_.f&(b|Z|pt|Lt))!==0&&!ae?.includes(e)&&sn();let n=r?ge(t):t;return nt(e,n)}function nt(e,t){if(!e.equals(t)){var r=e.v;ye?oe.set(e,t):oe.set(e,r),e.v=t;var n=Y.ensure();n.capture(e,r),(e.f&b)!==0&&((e.f&P)!==0&&yt(e),S(e,(e.f&z)!==0?x:Q)),e.wv=vr(),Xt(e,P),v!==null&&(v.f&x)!==0&&(v.f&(X|le))===0&&(F===null?qn([e]):F.push(e)),!n.is_fork&&$t.size>0&&!Zt&&Tn()}return t}function Tn(){Zt=!1;var e=ue;at(!0);const t=Array.from($t);try{for(const r of t)(r.f&x)!==0&&S(r,Q),ze(r)&&Ye(r)}finally{at(e)}$t.clear()}function Fe(e){ne(e,e.v+1)}function Xt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],a=i.f,l=(a&P)===0;if(l&&S(i,t),(a&b)!==0){var f=i;M?.delete(f),(a&_e)===0&&(a&z&&(i.f|=_e),Xt(f,Q))}else l&&((a&Z)!==0&&te!==null&&te.add(i),pe(i))}}function ge(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Pt(e);if(t!==Ur&&t!==Hr)return e;var r=new Map,n=qr(e),s=re(0),i=$e,a=l=>{if($e===i)return l();var f=_,o=$e;A(null),_r(i);var h=l();return A(f),_r(o),h};return n&&r.set("length",re(e.length)),new Proxy(e,{defineProperty(l,f,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&rn();var h=r.get(f);return h===void 0?h=a(()=>{var c=re(o.value);return r.set(f,c),c}):ne(h,o.value,!0),!0},deleteProperty(l,f){var o=r.get(f);if(o===void 0){if(f in l){const h=a(()=>re(T));r.set(f,h),Fe(s)}}else ne(o,T),Fe(s);return!0},get(l,f,o){if(f===Je)return e;var h=r.get(f),c=f in l;if(h===void 0&&(!c||he(l,f)?.writable)&&(h=a(()=>{var d=ge(c?l[f]:T),w=re(d);return w}),r.set(f,h)),h!==void 0){var u=q(h);return u===T?void 0:u}return Reflect.get(l,f,o)},getOwnPropertyDescriptor(l,f){var o=Reflect.getOwnPropertyDescriptor(l,f);if(o&&"value"in o){var h=r.get(f);h&&(o.value=q(h))}else if(o===void 0){var c=r.get(f),u=c?.v;if(c!==void 0&&u!==T)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return o},has(l,f){if(f===Je)return!0;var o=r.get(f),h=o!==void 0&&o.v!==T||Reflect.has(l,f);if(o!==void 0||v!==null&&(!h||he(l,f)?.writable)){o===void 0&&(o=a(()=>{var u=h?ge(l[f]):T,d=re(u);return d}),r.set(f,o));var c=q(o);if(c===T)return!1}return h},set(l,f,o,h){var c=r.get(f),u=f in l;if(n&&f==="length")for(var d=o;d<c.v;d+=1){var w=r.get(d+"");w!==void 0?ne(w,T):d in l&&(w=a(()=>re(T)),r.set(d+"",w))}if(c===void 0)(!u||he(l,f)?.writable)&&(c=a(()=>re(void 0)),ne(c,ge(o)),r.set(f,c));else{u=c.v!==T;var C=a(()=>ge(o));ne(c,C)}var k=Reflect.getOwnPropertyDescriptor(l,f);if(k?.set&&k.set.call(h,o),!u){if(n&&typeof f=="string"){var Le=r.get("length"),E=Number(f);Number.isInteger(E)&&E>=Le.v&&ne(Le,E+1)}Fe(s)}return!0},ownKeys(l){q(s);var f=Reflect.ownKeys(l).filter(c=>{var u=r.get(c);return u===void 0||u.v!==T});for(var[o,h]of r)h.v!==T&&!(o in l)&&f.push(o);return f},setPrototypeOf(){nn()}})}var Qt,er,tr,rr;function bt(){if(Qt===void 0){Qt=window,er=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;tr=he(t,"firstChild").get,rr=he(t,"nextSibling").get,Rt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Rt(r)&&(r.__t=void 0)}}function ie(e=""){return document.createTextNode(e)}function me(e){return tr.call(e)}function U(e){return rr.call(e)}function it(e,t){if(!m)return me(e);var r=me(g);return r===null&&(r=g.appendChild(ie())),L(r),r}function xn(e,t=!1){if(!m){var r=me(e);return r instanceof Comment&&r.data===""?U(r):r}if(t&&g?.nodeType!==Mt){var n=ie();return g?.before(n),L(n),n}return g}function Ce(e,t=1,r=!1){let n=m?g:e;for(var s;t--;)s=n,n=U(n);if(!m)return n;if(r&&n?.nodeType!==Mt){var i=ie();return n===null?s?.after(i):n.before(i),L(i),i}return L(n),n}function An(e){e.textContent=""}function Sn(){return!1}function Et(e){var t=_,r=v;A(null),j(null);try{return e()}finally{A(t),j(r)}}function kn(e){v===null&&(_===null&&Xr(),Zr()),ye&&Kr()}function Nn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function G(e,t,r){var n=v;n!==null&&(n.f&V)!==0&&(e|=V);var s={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|P|z,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ye(s),s.f|=Ge}catch(l){throw R(s),l}else t!==null&&pe(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&de)===0&&(i=i.first,(e&Z)!==0&&(e&xe)!==0&&i!==null&&(i.f|=xe)),i!==null&&(i.parent=n,n!==null&&Nn(i,n),_!==null&&(_.f&b)!==0&&(e&le)===0)){var a=_;(a.effects??=[]).push(i)}return s}function st(){return _!==null&&!J}function nr(e){const t=G(dt,null,!1);return S(t,x),t.teardown=e,t}function Cn(e){kn();var t=v.f,r=!_&&(t&X)!==0&&(t&Ge)===0;if(r){var n=D;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return G(ht|Wr,e,!1)}function Pn(e){Y.ensure();const t=G(le|de,e,!0);return()=>{R(t)}}function Rn(e){Y.ensure();const t=G(le|de,e,!0);return(r={})=>new Promise(n=>{r.outro?qe(t,()=>{R(t),n(void 0)}):(R(t),n(void 0))})}function On(e){return G(ht,e,!1)}function Ln(e){return G(pt|de,e,!0)}function sr(e,t=0){return G(dt|t,e,!0)}function we(e,t=[],r=[],n=[]){mn(n,t,r,s=>{G(dt,()=>e(...s.map(q)),!0)})}function Tt(e,t=0){var r=G(Z|t,e,!0);return r}function se(e){return G(X|de,e,!0)}function ar(e){var t=e.teardown;if(t!==null){const r=ye,n=_;hr(!0),A(null);try{t.call(null)}finally{hr(r),A(n)}}}function lr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Et(()=>{s.abort(Ae)});var n=r.next;(r.f&le)!==0?r.parent=null:R(r,t),r=n}}function Dn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&X)===0&&R(t),t=r}}function R(e,t=!0){var r=!1;(t||(e.f&_t)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mn(e.nodes_start,e.nodes_end),r=!0),lr(e,t&&!r),lt(e,0),S(e,ee);var n=e.transitions;if(n!==null)for(const i of n)i.stop();ar(e);var s=e.parent;s!==null&&s.first!==null&&fr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Mn(e,t){for(;e!==null;){var r=e===t?null:U(e);e.remove(),e=r}}function fr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function qe(e,t,r=!0){var n=[];or(e,n,!0),In(n,()=>{r&&R(e),t&&t()})}function In(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function or(e,t,r){if((e.f&V)===0){if(e.f^=V,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&xe)!==0||(n.f&X)!==0&&(e.f&Z)!==0;or(n,t,i?r:!1),n=s}}}function jn(e){ur(e,!0)}function ur(e,t){if((e.f&V)!==0){e.f^=V,(e.f&x)===0&&(S(e,P),pe(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&xe)!==0||(r.f&X)!==0;ur(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function cr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:U(r);t.append(r),r=s}}let ue=!1;function at(e){ue=e}let ye=!1;function hr(e){ye=e}let _=null,J=!1;function A(e){_=e}let v=null;function j(e){v=e}let ae=null;function Fn(e){_!==null&&(ae===null?ae=[e]:ae.push(e))}let N=null,O=0,F=null;function qn(e){F=e}let dr=1,Be=0,$e=Be;function _r(e){$e=e}function vr(){return++dr}function ze(e){var t=e.f;if((t&P)!==0)return!0;if(t&b&&(e.f&=~_e),(t&Q)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(ze(i)&&Kt(i),i.wv>e.wv)return!0}(t&z)!==0&&M===null&&S(e,x)}return!1}function pr(e,t,r=!0){var n=e.reactions;if(n!==null&&!ae?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&b)!==0?pr(i,t,!1):t===i&&(r?S(i,P):(i.f&x)!==0&&S(i,Q),pe(i))}}function gr(e){var t=N,r=O,n=F,s=_,i=ae,a=D,l=J,f=$e,o=e.f;N=null,O=0,F=null,_=(o&(X|le))===0?e:null,ae=null,ke(e.ctx),J=!1,$e=++Be,e.ac!==null&&(Et(()=>{e.ac.abort(Ae)}),e.ac=null);try{e.f|=vt;var h=e.fn,c=h(),u=e.deps;if(N!==null){var d;if(lt(e,O),u!==null&&O>0)for(u.length=O+N.length,d=0;d<N.length;d++)u[O+d]=N[d];else e.deps=u=N;if(ue&&st()&&(e.f&z)!==0)for(d=O;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&O<u.length&&(lt(e,O),u.length=O);if(zt()&&F!==null&&!J&&u!==null&&(e.f&(b|Q|P))===0)for(d=0;d<F.length;d++)pr(F[d],e);return s!==null&&s!==e&&(Be++,F!==null&&(n===null?n=F:n.push(...F))),(e.f&fe)!==0&&(e.f^=fe),c}catch(w){return Ut(w)}finally{e.f^=vt,N=t,O=r,F=n,_=s,ae=i,ke(a),J=l,$e=f}}function Bn(e,t){let r=t.reactions;if(r!==null){var n=Br.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&b)!==0&&(N===null||!N.includes(t))&&(S(t,Q),(t.f&z)!==0&&(t.f^=z,t.f&=~_e),Jt(t),lt(t,0))}function lt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Bn(e,r[n])}function Ye(e){var t=e.f;if((t&ee)===0){S(e,x);var r=v,n=ue;v=e,ue=!0;try{(t&Z)!==0?Dn(e):lr(e),ar(e);var s=gr(e);e.teardown=typeof s=="function"?s:null,e.wv=dr;var i;ct&&cn&&(e.f&P)!==0&&e.deps}finally{ue=n,v=r}}}function q(e){var t=e.f,r=(t&b)!==0;if(_!==null&&!J){var n=v!==null&&(v.f&ee)!==0;if(!n&&!ae?.includes(e)){var s=_.deps;if((_.f&vt)!==0)e.rv<Be&&(e.rv=Be,N===null&&s!==null&&s[O]===e?O++:N===null?N=[e]:N.includes(e)||N.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(ye){if(oe.has(e))return oe.get(e);if(r){var a=e,l=a.v;return((a.f&x)===0&&a.reactions!==null||wr(a))&&(l=yt(a)),oe.set(a,l),l}}else r&&!M?.has(e)&&(a=e,ze(a)&&Kt(a),ue&&st()&&(a.f&z)===0&&mr(a));if(M?.has(e))return M.get(e);if((e.f&fe)!==0)throw e.v;return e.v}function mr(e){if(e.deps!==null){e.f^=z;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&b)!==0&&(t.f&z)===0&&mr(t)}}function wr(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&b)!==0&&wr(t))return!0;return!1}function yr(e){var t=J;try{return J=!0,e()}finally{J=t}}const zn=-7169;function S(e,t){e.f=e.f&zn|t}const Yn=new Set,$r=new Set;function Un(e,t,r,n={}){function s(i){if(n.capture||Ue.call(t,i),!i.cancelBubble)return Et(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Xe(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Pe(e,t,r,n,s){var i={capture:n,passive:s},a=Un(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&nr(()=>{t.removeEventListener(e,a,i)})}let br=null;function Ue(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;br=e;var a=0,l=br===e&&e.__root;if(l){var f=s.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var o=s.indexOf(t);if(o===-1)return;f<=o&&(a=f)}if(i=s[a]||e.target,i!==t){Ve(e,"currentTarget",{configurable:!0,get(){return i||r}});var h=_,c=v;A(null),j(null);try{for(var u,d=[];i!==null;){var w=i.assignedSlot||i.parentNode||i.host||null;try{var C=i["__"+n];C!=null&&(!i.disabled||e.target===i)&&C.call(i,e)}catch(k){u?d.push(k):u=k}if(e.cancelBubble||w===t||w===null)break;i=w}if(u){for(let k of d)queueMicrotask(()=>{throw k});throw u}}finally{e.__root=t,delete e.currentTarget,A(h),j(c)}}}function Hn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Re(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ce(e,t){var r=(t&Ir)!==0,n=(t&jr)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return Re(g,null),g;s===void 0&&(s=Hn(i?e:"<!>"+e),r||(s=me(s)));var a=n||er?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=me(a),f=a.lastChild;Re(l,f)}else Re(a,a);return a}}function Vn(){if(m)return Re(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),r=ie();return e.append(t,r),Re(t,r),e}function K(e,t){if(m){var r=v;((r.f&Ge)===0||r.nodes_end===null)&&(r.nodes_end=g),gt();return}e!==null&&e.before(t)}const Wn=["touchstart","touchmove"];function Gn(e){return Wn.includes(e)}function Er(e,t){return Tr(e,t)}function Jn(e,t){bt(),t.intro=t.intro??!1;const r=t.target,n=m,s=g;try{for(var i=me(r);i&&(i.nodeType!==Se||i.data!==Nt);)i=U(i);if(!i)throw Te;W(!0),L(i);const a=Tr(e,{...t,anchor:i});return W(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Te&&console.warn("Failed to hydrate: ",a),t.recover===!1&&en(),bt(),An(r),W(!1),Er(e,t)}finally{W(n),L(s)}}const Oe=new Map;function Tr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:a=!0}){bt();var l=new Set,f=c=>{for(var u=0;u<c.length;u++){var d=c[u];if(!l.has(d)){l.add(d);var w=Gn(d);t.addEventListener(d,Ue,{passive:w});var C=Oe.get(d);C===void 0?(document.addEventListener(d,Ue,{passive:w}),Oe.set(d,1)):Oe.set(d,C+1)}}};f(zr(Yn)),$r.add(f);var o=void 0,h=Rn(()=>{var c=r??t.appendChild(ie());return pn(c,{pending:()=>{}},u=>{if(i){qt({});var d=D;d.c=i}if(s&&(n.$$events=s),m&&Re(u,null),o=e(u,n)||{},m&&(v.nodes_end=g,g===null||g.nodeType!==Se||g.data!==Ct))throw Ke(),Te;i&&Bt()}),()=>{for(var u of l){t.removeEventListener(u,Ue);var d=Oe.get(u);--d===0?(document.removeEventListener(u,Ue),Oe.delete(u)):Oe.set(u,d)}$r.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return xt.set(o,h),o}let xt=new WeakMap;function Kn(e,t){const r=xt.get(e);return r?(xt.delete(e),r(t)):Promise.resolve()}class Zn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#f=!0;constructor(t,r=!0){this.anchor=t,this.#f=r}#s=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)jn(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,a]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#r.get(a);l&&(R(l.effect),this.#r.delete(a))}for(const[i,a]of this.#e){if(i===r||this.#n.has(i))continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var o=document.createDocumentFragment();cr(a,o),o.append(ie()),this.#r.set(i,{effect:a,fragment:o})}else R(a);this.#n.delete(i),this.#e.delete(i)};this.#f||!n?(this.#n.add(i),qe(a,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(R(s.effect),this.#r.delete(n))};ensure(t,r){var n=$,s=Sn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),a=ie();i.append(a),this.#r.set(t,{effect:se(()=>r(a)),fragment:i})}else this.#e.set(t,se(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[l,f]of this.#e)l===t?n.skipped_effects.delete(f):n.skipped_effects.add(f);for(const[l,f]of this.#r)l===t?n.skipped_effects.delete(f.effect):n.skipped_effects.add(f.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else m&&(this.anchor=g),this.#s()}}function be(e,t,r=!1){m&&gt();var n=new Zn(e),s=r?xe:0;function i(a,l){if(m){const o=on(e)===ut;if(a===o){var f=It();L(f),n.anchor=f,W(!1),n.ensure(a,l),W(!0);return}}n.ensure(a,l)}Tt(()=>{var a=!1;t((l,f=!0)=>{a=!0,i(f,l)}),a||i(!1,null)},s)}function Xn(e,t){let r=null,n=m;var s;if(m){r=g;for(var i=me(document.head);i!==null&&(i.nodeType!==Se||i.data!==e);)i=U(i);if(i===null)W(!1);else{var a=U(i);i.remove(),L(a)}}m||(s=document.head.appendChild(ie()));try{Tt(()=>t(s),_t)}finally{n&&(W(!0),L(r))}}function Qn(e,t){On(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const ei=Symbol("is custom element"),ti=Symbol("is html");function xr(e,t,r,n){var s=ri(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Gr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ar(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function B(e,t,r){var n=_,s=v;let i=m;m&&W(!1),A(null),j(null);try{t!=="style"&&(At.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ar(e).includes(t):r&&typeof r=="object")?e[t]=r:xr(e,t,r==null?r:String(r))}finally{A(n),j(s),i&&W(!0)}}function ri(e){return e.__attributes??={[ei]:e.nodeName.includes("-"),[ti]:e.namespaceURI===Fr}}var At=new Map;function Ar(e){var t=e.getAttribute("is")||e.nodeName,r=At.get(t);if(r)return r;At.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Yr(s);for(var a in n)n[a].set&&r.push(a);s=Pt(s)}return r}let ft=!1;function ni(e){var t=ft;try{return ft=!1,[e(),ft]}finally{ft=t}}function St(e,t,r,n){var s=(r&Dr)!==0,i=(r&Mr)!==0,a=n,l=!0,f=()=>(l&&(l=!1,a=i?yr(n):n),a),o;if(s){var h=Je in e||Dt in e;o=he(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var c,u=!1;s?[c,u]=ni(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=f(),o&&(tn(),o(c)));var d;if(d=()=>{var E=e[t];return E===void 0?f():(l=!0,E)},(r&Lr)===0)return d;if(o){var w=e.$$legacy;return(function(E,De){return arguments.length>0?((!De||w||u)&&o(De?d():E),E):d()})}var C=!1,k=((r&Or)!==0?wt:$n)(()=>(C=!1,d()));s&&q(k);var Le=v;return(function(E,De){if(arguments.length>0){const Me=De?q(k):s?ge(E):E;return ne(k,Me),C=!0,a!==void 0&&(a=Me),E}return ye&&C||(Le.f&ee)!==0?k.v:q(k)})}function ii(e){return new si(e)}class si{#t;#e;constructor(t){var r=new Map,n=(i,a)=>{var l=En(a,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return q(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===Dt?!0:(q(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,l){return ne(r.get(a)??n(a,l),l),Reflect.set(i,a,l)}});this.#e=(t.hydrate?Jn:Er)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ve(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Kn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Sr;typeof HTMLElement=="function"&&(Sr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),K(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ai(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ot(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pn(()=>{sr(()=>{this.$$r=!0;for(const n of He(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=ot(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ot(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ot(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function li(e,t,r,n,s,i){let a=class extends Sr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return He(t).map(l=>(t[l].attribute||l).toLowerCase())}};return He(t).forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=ot(l,f,t),this.$$d[l]=f;var o=this.$$c;if(o){var h=he(o,l)?.get;h?o[l]=f:o.$set({[l]:f})}}})}),n.forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var Ee={},kr;function fi(){if(kr)return Ee;kr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.LanguageTranslator=void 0,Ee.getChildStyleToPass=e,Ee.addComponent=t;function e(n,s){var i,a,l="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((a=s?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||a===void 0)&&a.length))for(var f=function(u){var d=s?.filter(function(w){return w.name===u&&w.defaultValue!==n[u]});d&&(l+="".concat(u,":").concat(n[u],";"))},o=0,h=Object.keys(n);o<h.length;o++){var c=h[o];f(c)}}catch(u){console.error("error getting child style to pass",u)}finally{return l}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var l=document.createElement("script");if(l.id=i+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var f=i.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(i.replace(f+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(o){console.warn(o)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,a){return n.formatDate(s,i,a||this.lang)},n.getDefaultLang=function(){var s,i,a,l="en";return navigator?.languages&&(!((a=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(s,i,a){var l;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(a&&(!((l=i[a])===null||l===void 0)&&l[s]))return i[a][s];var f="",o=n.getDefaultLang();if(!a||o!==a){var h=i?.[o];h?.[s]&&(f=h[s])}return f},n.formatDate=function(s,i,a){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),i);return l.format(s)},n})();return Ee.LanguageTranslator=r,Ee}var oi=fi();const ui={version:"0.62.1"};var ci=ce('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),hi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),di=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),_i=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),vi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),pi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),gi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),mi=ce('<div id="container" class="svelte-1ttf3z"><div class="col svelte-1ttf3z" id="left"><!> <!> <!></div> <div class="col svelte-1ttf3z" id="center"><img id="center_image" alt="" class="svelte-1ttf3z"/></div> <div class="col svelte-1ttf3z" id="right"><!> <!> <!></div></div>');const wi={hash:"svelte-1ttf3z",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Te&&console.warn("Failed to hydrate: ",a),t.recover===!1&&en(),bt(),An(r),W(!1),Er(e,t)}finally{W(n),L(s)}}const Oe=new Map;function Tr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:a=!0}){bt();var l=new Set,f=c=>{for(var u=0;u<c.length;u++){var d=c[u];if(!l.has(d)){l.add(d);var w=Gn(d);t.addEventListener(d,Ue,{passive:w});var C=Oe.get(d);C===void 0?(document.addEventListener(d,Ue,{passive:w}),Oe.set(d,1)):Oe.set(d,C+1)}}};f(zr(Yn)),$r.add(f);var o=void 0,h=Rn(()=>{var c=r??t.appendChild(ie());return pn(c,{pending:()=>{}},u=>{if(i){qt({});var d=D;d.c=i}if(s&&(n.$$events=s),m&&Re(u,null),o=e(u,n)||{},m&&(v.nodes_end=g,g===null||g.nodeType!==Se||g.data!==Ct))throw Ke(),Te;i&&Bt()}),()=>{for(var u of l){t.removeEventListener(u,Ue);var d=Oe.get(u);--d===0?(document.removeEventListener(u,Ue),Oe.delete(u)):Oe.set(u,d)}$r.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return xt.set(o,h),o}let xt=new WeakMap;function Kn(e,t){const r=xt.get(e);return r?(xt.delete(e),r(t)):Promise.resolve()}class Zn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#f=!0;constructor(t,r=!0){this.anchor=t,this.#f=r}#s=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)jn(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,a]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#r.get(a);l&&(R(l.effect),this.#r.delete(a))}for(const[i,a]of this.#e){if(i===r||this.#n.has(i))continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var o=document.createDocumentFragment();cr(a,o),o.append(ie()),this.#r.set(i,{effect:a,fragment:o})}else R(a);this.#n.delete(i),this.#e.delete(i)};this.#f||!n?(this.#n.add(i),qe(a,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(R(s.effect),this.#r.delete(n))};ensure(t,r){var n=$,s=Sn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),a=ie();i.append(a),this.#r.set(t,{effect:se(()=>r(a)),fragment:i})}else this.#e.set(t,se(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[l,f]of this.#e)l===t?n.skipped_effects.delete(f):n.skipped_effects.add(f);for(const[l,f]of this.#r)l===t?n.skipped_effects.delete(f.effect):n.skipped_effects.add(f.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else m&&(this.anchor=g),this.#s()}}function be(e,t,r=!1){m&&gt();var n=new Zn(e),s=r?xe:0;function i(a,l){if(m){const o=on(e)===ut;if(a===o){var f=It();L(f),n.anchor=f,W(!1),n.ensure(a,l),W(!0);return}}n.ensure(a,l)}Tt(()=>{var a=!1;t((l,f=!0)=>{a=!0,i(f,l)}),a||i(!1,null)},s)}function Xn(e,t){let r=null,n=m;var s;if(m){r=g;for(var i=me(document.head);i!==null&&(i.nodeType!==Se||i.data!==e);)i=U(i);if(i===null)W(!1);else{var a=U(i);i.remove(),L(a)}}m||(s=document.head.appendChild(ie()));try{Tt(()=>t(s),_t)}finally{n&&(W(!0),L(r))}}function Qn(e,t){On(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const ei=Symbol("is custom element"),ti=Symbol("is html");function xr(e,t,r,n){var s=ri(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Gr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ar(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function B(e,t,r){var n=_,s=v;let i=m;m&&W(!1),A(null),j(null);try{t!=="style"&&(At.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ar(e).includes(t):r&&typeof r=="object")?e[t]=r:xr(e,t,r==null?r:String(r))}finally{A(n),j(s),i&&W(!0)}}function ri(e){return e.__attributes??={[ei]:e.nodeName.includes("-"),[ti]:e.namespaceURI===Fr}}var At=new Map;function Ar(e){var t=e.getAttribute("is")||e.nodeName,r=At.get(t);if(r)return r;At.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Yr(s);for(var a in n)n[a].set&&r.push(a);s=Pt(s)}return r}let ft=!1;function ni(e){var t=ft;try{return ft=!1,[e(),ft]}finally{ft=t}}function St(e,t,r,n){var s=(r&Dr)!==0,i=(r&Mr)!==0,a=n,l=!0,f=()=>(l&&(l=!1,a=i?yr(n):n),a),o;if(s){var h=Je in e||Dt in e;o=he(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var c,u=!1;s?[c,u]=ni(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=f(),o&&(tn(),o(c)));var d;if(d=()=>{var E=e[t];return E===void 0?f():(l=!0,E)},(r&Lr)===0)return d;if(o){var w=e.$$legacy;return(function(E,De){return arguments.length>0?((!De||w||u)&&o(De?d():E),E):d()})}var C=!1,k=((r&Or)!==0?wt:$n)(()=>(C=!1,d()));s&&q(k);var Le=v;return(function(E,De){if(arguments.length>0){const Me=De?q(k):s?ge(E):E;return ne(k,Me),C=!0,a!==void 0&&(a=Me),E}return ye&&C||(Le.f&ee)!==0?k.v:q(k)})}function ii(e){return new si(e)}class si{#t;#e;constructor(t){var r=new Map,n=(i,a)=>{var l=En(a,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return q(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===Dt?!0:(q(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,l){return ne(r.get(a)??n(a,l),l),Reflect.set(i,a,l)}});this.#e=(t.hydrate?Jn:Er)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ve(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Kn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Sr;typeof HTMLElement=="function"&&(Sr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),K(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ai(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ot(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pn(()=>{sr(()=>{this.$$r=!0;for(const n of He(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=ot(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ot(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return He(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ot(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function li(e,t,r,n,s,i){let a=class extends Sr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return He(t).map(l=>(t[l].attribute||l).toLowerCase())}};return He(t).forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=ot(l,f,t),this.$$d[l]=f;var o=this.$$c;if(o){var h=he(o,l)?.get;h?o[l]=f:o.$set({[l]:f})}}})}),n.forEach(l=>{Ve(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var Ee={},kr;function fi(){if(kr)return Ee;kr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.LanguageTranslator=void 0,Ee.getChildStyleToPass=e,Ee.addComponent=t;function e(n,s){var i,a,l="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((a=s?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||a===void 0)&&a.length))for(var f=function(u){var d=s?.filter(function(w){return w.name===u&&w.defaultValue!==n[u]});d&&(l+="".concat(u,":").concat(n[u],";"))},o=0,h=Object.keys(n);o<h.length;o++){var c=h[o];f(c)}}catch(u){console.error("error getting child style to pass",u)}finally{return l}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var l=document.createElement("script");if(l.id=i+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var f=i.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(i.replace(f+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(o){console.warn(o)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,a){return n.formatDate(s,i,a||this.lang)},n.getDefaultLang=function(){var s,i,a,l="en";return navigator?.languages&&(!((a=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(s,i,a){var l;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(a&&(!((l=i[a])===null||l===void 0)&&l[s]))return i[a][s];var f="",o=n.getDefaultLang();if(!a||o!==a){var h=i?.[o];h?.[s]&&(f=h[s])}return f},n.formatDate=function(s,i,a){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),i);return l.format(s)},n})();return Ee.LanguageTranslator=r,Ee}var oi=fi();const ui={version:"0.62.3"};var ci=ce('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),hi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),di=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),_i=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),vi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),pi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),gi=ce("<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>",2),mi=ce('<div id="container" class="svelte-1ttf3z"><div class="col svelte-1ttf3z" id="left"><!> <!> <!></div> <div class="col svelte-1ttf3z" id="center"><img id="center_image" alt="" class="svelte-1ttf3z"/></div> <div class="col svelte-1ttf3z" id="right"><!> <!> <!></div></div>');const wi={hash:"svelte-1ttf3z",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
3
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;display:block;}
4
4
  @media screen and (min-width: 900px) {#container.svelte-1ttf3z {margin:auto;display:flex;flex-direction:row;}
5
5
  }.col.svelte-1ttf3z {flex:1;padding:20px;}#center.svelte-1ttf3z {display:flex;justify-content:center;}#center_image.svelte-1ttf3z {margin:auto;}`};function Nr(e,t){qt(t,!0),Qn(e,wi),oi.addComponent({repoName:"@htmlbricks/hb-paragraps-around-image-cell",version:ui.version});function r(c,u){t.$$host.dispatchEvent(new CustomEvent(c,{detail:u}))}let n=St(t,"id",7,""),s=St(t,"img",7,""),i=St(t,"paragraphs",23,()=>[]);ge({}),Cn(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}catch(c){console.error("error parsing paragraphs",c)}});function a(c){r("paragraphPressed",c.detail)}var l={get id(){return n()},set id(c=""){n(c),tt()},get img(){return s()},set img(c=""){s(c),tt()},get paragraphs(){return i()},set paragraphs(c=[]){i(c),tt()}},f=Vn();Xn("1ttf3z",c=>{var u=ci();K(c,u)});var o=xn(f);{var h=c=>{var u=mi(),d=it(u),w=it(d);{var C=y=>{var p=hi();we(()=>B(p,"paragraph",i()[0])),B(p,"max_lines","8"),Pe("paragraphPressed",p,H=>a(H)),K(y,p)};be(w,y=>{i()[0]&&y(C)})}var k=Ce(w,2);{var Le=y=>{var p=di();we(()=>B(p,"paragraph",i()[2])),B(p,"max_lines","8"),Pe("paragraphPressed",p,H=>a(H)),K(y,p)};be(k,y=>{i()[2]&&y(Le)})}var E=Ce(k,2);{var De=y=>{var p=_i();we(()=>B(p,"paragraph",i()[4])),B(p,"max_lines","8"),Pe("paragraphPressed",p,H=>a(H)),K(y,p)};be(E,y=>{i()[4]&&y(De)})}Ze(d);var Me=Ce(d,2),yi=it(Me);Ze(Me);var Cr=Ce(Me,2),Pr=it(Cr);{var $i=y=>{var p=vi();we(()=>B(p,"paragraph",i()[1])),B(p,"max_lines","8"),Pe("paragraphPressed",p,H=>a(H)),K(y,p)};be(Pr,y=>{i()[1]&&y($i)})}var Rr=Ce(Pr,2);{var bi=y=>{var p=pi();we(()=>B(p,"paragraph",i()[3])),B(p,"max_lines","8"),Pe("paragraphPressed",p,H=>a(H)),K(y,p)};be(Rr,y=>{i()[3]&&y(bi)})}var Ei=Ce(Rr,2);{var Ti=y=>{var p=gi();we(()=>B(p,"paragraph",i()[5])),B(p,"max_lines","8"),Pe("paragraphPressed",p,H=>a(H)),K(y,p)};be(Ei,y=>{i()[5]&&y(Ti)})}Ze(Cr),Ze(u),we(()=>xr(yi,"src",s())),K(c,u)};be(o,c=>{i()?.length&&s()&&c(h)})}return K(e,f),Bt(l)}customElements.define("hb-paragraps-around-image",li(Nr,{id:{},img:{},paragraphs:{}},[],[],!0)),kt.Component=Nr,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this["paragraps-around-image"]=this["paragraps-around-image"]||{});
package/manifest.json CHANGED
@@ -232,5 +232,5 @@
232
232
  "size": {},
233
233
  "iifePath": "main.iife.js",
234
234
  "repoName": "@htmlbricks/hb-paragraps-around-image",
235
- "version": "0.62.1"
235
+ "version": "0.62.3"
236
236
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-paragraps-around-image",
3
- "version": "0.62.1",
3
+ "version": "0.62.3",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [