@htmlbricks/hb-input-datetime 0.66.4 → 0.66.6
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 +1 -1
- package/manifest.json +2 -3
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(Ht){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const nr=1,rr=2,Bt="[",zt="[!",Yt="[?",Ut="]",ye={},q=Symbol(),Jt="http://www.w3.org/1999/xhtml",ir=!1;var sr=Array.isArray,lr=Array.prototype.indexOf,$e=Array.prototype.includes,or=Array.from,We=Object.keys,Ge=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyDescriptors,ur=Object.prototype,fr=Array.prototype,Wt=Object.getPrototypeOf,Gt=Object.isExtensible;const cr=()=>{};function dr(e){for(var t=0;t<e.length;t++)e[t]()}function Kt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const T=2,xe=4,Ke=8,Xt=1<<24,re=16,U=32,ie=64,ht=128,I=512,S=1024,A=2048,J=4096,W=8192,H=16384,se=32768,Zt=1<<25,Ee=65536,Qt=1<<17,hr=1<<18,he=1<<19,vr=1<<20,ve=65536,vt=1<<21,_t=1<<22,le=1<<23,pt=Symbol("$state"),_r=Symbol("legacy props"),X=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Xe=3,Ze=8;function pr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function mr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function gr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function br(e){throw new Error("https://svelte.dev/e/effect_orphan")}function wr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yr(){throw new Error("https://svelte.dev/e/hydration_failed")}function $r(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function kr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function xr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Sr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function oe(e){y=e}let b;function B(e){if(e===null)throw Qe(),ye;return b=e}function mt(){return B(te(b))}function Se(e){if(y){if(te(b)!==null)throw Qe(),ye;b=e}}function Tr(e=1){if(y){for(var t=e,n=b;t--;)n=te(n);b=n}}function en(e=!0){for(var t=0,n=b;;){if(n.nodeType===Ze){var r=n.data;if(r===Ut){if(t===0)return n;t-=1}else(r===Bt||r===zt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=te(n);e&&n.remove(),n=i}}function Nr(e){if(!e||e.nodeType!==Ze)throw Qe(),ye;return e.data}function tn(e){return e===this.v}function qr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ar(e){return!qr(e,this.v)}let Or=!1,L=null;function Te(e){L=e}function nn(e,t=!1,n){L={p:L,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function rn(e){var t=L,n=t.e;if(n!==null){t.e=null;for(var r of n)Tn(r)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function sn(){return!0}let _e=[];function ln(){var e=_e;_e=[],dr(e)}function pe(e){if(_e.length===0&&!Pe){var t=_e;queueMicrotask(()=>{t===_e&&ln()})}_e.push(e)}function Rr(){for(;_e.length>0;)ln()}function on(e){var t=g;if(t===null)return m.f|=le,e;if((t.f&se)===0&&(t.f&xe)===0)throw e;ae(e,t)}function ae(e,t){for(;t!==null;){if((t.f&ht)!==0){if((t.f&se)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Cr=-7169;function E(e,t){e.f=e.f&Cr|t}function gt(e){(e.f&I)!==0||e.deps===null?E(e,S):E(e,J)}function an(e){if(e!==null)for(const t of e)(t.f&T)===0||(t.f&ve)===0||(t.f^=ve,an(t.deps))}function un(e,t,n){(e.f&A)!==0?t.add(e):(e.f&J)!==0&&n.add(e),an(e.deps),E(e,S)}const ue=new Set;let $=null,z=null,bt=null,Pe=!1,wt=!1,Ne=null,et=null;var fn=0;let Mr=1;class Z{id=Mr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#u)for(const i of r.#i.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)E(r,A),this.schedule(r);for(r of n.m)E(r,J),this.schedule(r)}}#h(){if(fn++>1e3&&(ue.delete(this),Dr()),!this.#d()){for(const l of this.#l)this.#o.delete(l),E(l,A),this.schedule(l);for(const l of this.#o)E(l,J),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=Ne=[],r=[],i=et=[];for(const l of t)try{this.#f(l,n,r)}catch(a){throw _n(l),a}if($=null,i.length>0){var s=Z.ensure();for(const l of i)s.schedule(l)}if(Ne=null,et=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[l,a]of this.#a)vn(l,a)}else{this.#t.size===0&&ue.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),cn(r),cn(n),this.#s?.resolve()}var o=$;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}o!==null&&(ue.add(o),o.#h()),ue.has(this)||this.#p()}#f(t,n,r){t.f^=S;for(var i=t.first;i!==null;){var s=i.f,o=(s&(U|ie))!==0,l=o&&(s&S)!==0,a=l||(s&W)!==0||this.#a.has(i);if(!a&&i.fn!==null){o?i.f^=S:(s&xe)!==0?n.push(i):Be(i)&&((s&re)!==0&&this.#o.add(i),Re(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)un(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==q&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&le)===0&&(this.current.set(t,[t.v,r]),z?.set(t,t.v))}activate(){$=this}deactivate(){$=null,z=null}flush(){try{wt=!0,$=this,this.#h()}finally{fn=0,bt=null,Ne=null,et=null,wt=!1,$=null,z=null,fe.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ue.delete(this)}#p(){for(const u of ue){var t=u.id<this.id,n=[];for(const[f,[v,c]]of this.current){if(u.current.has(f)){var r=u.current.get(f)[0];if(t&&v!==r)u.current.set(f,[v,c]);else continue}n.push(f)}var i=[...u.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&u.discard();else if(n.length>0){u.activate();var s=new Set,o=new Map;for(var l of n)dn(l,i,s,o);if(u.#r.length>0){u.apply();for(var a of u.#r)u.#f(a,[],[]);u.#r=[]}u.deactivate()}}for(const u of ue)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#d()&&(u.activate(),u.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,pe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Kt()).promise}static ensure(){if($===null){const t=$=new Z;wt||(ue.add($),Pe||pe(()=>{$===t&&t.flush()}))}return $}apply(){{z=null;return}}schedule(t){if(bt=t,t.b?.is_pending&&(t.f&(xe|Ke|Xt))!==0&&(t.f&se)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ne!==null&&n===g&&(m===null||(m.f&T)===0))return;if((r&(ie|U))!==0){if((r&S)===0)return;n.f^=S}}this.#r.push(n)}}function tt(e){var t=Pe;Pe=!0;try{for(var n;;){if(Rr(),$===null)return n;$.flush()}}finally{Pe=t}}function Dr(){try{wr()}catch(e){ae(e,bt)}}let Q=null;function cn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|W))===0&&Be(r)&&(Q=new Set,Re(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&On(r),Q?.size>0)){fe.clear();for(const i of Q){if((i.f&(H|W))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)Q.has(o)&&(Q.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(H|W))===0&&Re(a)}}Q.clear()}}Q=null}}function dn(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&T)!==0?dn(i,t,n,r):(s&(_t|re))!==0&&(s&A)===0&&hn(i,t,r)&&(E(i,A),yt(i))}}function hn(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($e.call(t,i))return!0;if((i.f&T)!==0&&hn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function yt(e){$.schedule(e)}function vn(e,t){if(!((e.f&U)!==0&&(e.f&S)!==0)){(e.f&A)!==0?t.d.push(e):(e.f&J)!==0&&t.m.push(e),E(e,S);for(var n=e.first;n!==null;)vn(n,t),n=n.next}}function _n(e){E(e,S);for(var t=e.first;t!==null;)_n(t),t=t.next}function Pr(e){let t=0,n=Le(0),r;return()=>{qt()&&(d(n),Nn(()=>(t===0&&(r=oi(()=>e(()=>Fe(n)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(r?.(),r=void 0,Fe(n))})})))}}var Ir=Ee|he;function Lr(e,t,n,r){new Fr(e,t,n,r)}class Fr{parent;is_pending=!1;transform_error;#e;#n=y?b:null;#t;#i;#s;#r=null;#l=null;#o=null;#a=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=Pr(()=>(this.#f=Le(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var o=g;o.b=this,o.f|=ht,r(s)},this.parent=g.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=qn(()=>{if(y){const s=this.#n;mt();const o=s.data===zt;if(s.data.startsWith(Yt)){const a=JSON.parse(s.data.slice(Yt.length));this.#y(a)}else o?this.#$():this.#p()}else this.#b()},Ir),y&&(this.#e=b)}#p(){try{this.#r=ne(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#o=ne(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=ne(()=>t(this.#e)),pe(()=>{var n=this.#a=document.createDocumentFragment(),r=ee();n.append(r),this.#r=this.#g(()=>ne(()=>this.#i(r))),this.#u===0&&(this.#e.before(n),this.#a=null,He(this.#l,()=>{this.#l=null}),this.#m($))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#r=ne(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#a=document.createDocumentFragment();Mn(this.#r,t);const n=this.#t.pending;this.#l=ne(()=>n(this.#e))}else this.#m($)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){un(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var n=g,r=m,i=L;F(this.#s),R(this.#s),Te(this.#s.ctx);try{return Z.ensure(),t()}catch(s){return on(s),null}finally{F(n),R(r),Te(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#m(n),this.#l&&He(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,pe(()=>{this.#d=!1,this.#f&&rt(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),d(this.#f)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(O(this.#r),this.#r=null),this.#l&&(O(this.#l),this.#l=null),this.#o&&(O(this.#o),this.#o=null),y&&(B(this.#n),Tr(),B(en()));var i=!1,s=!1;const o=()=>{if(i){Sr();return}i=!0,s&&Er(),this.#o!==null&&He(this.#o,()=>{this.#o=null}),this.#g(()=>{this.#b()})},l=a=>{try{s=!0,n?.(a,o),s=!1}catch(u){ae(u,this.#s&&this.#s.parent)}r&&(this.#o=this.#g(()=>{try{return ne(()=>{var u=g;u.b=this,u.f|=ht,r(this.#e,()=>a,()=>o)})}catch(u){return ae(u,this.#s.parent),null}}))};pe(()=>{var a;try{a=this.transform_error(t)}catch(u){ae(u,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,u=>ae(u,this.#s&&this.#s.parent)):l(a)})}}function jr(e,t,n,r){const i=$t;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=g,l=Vr(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function u(c){l();try{r(c)}catch(_){(o.f&H)===0&&ae(_,o)}nt()}if(n.length===0){a.then(()=>u(t.map(i)));return}var f=pn();function v(){Promise.all(n.map(c=>Hr(c))).then(c=>u([...t.map(i),...c])).catch(c=>ae(c,o)).finally(()=>f())}a?a.then(()=>{l(),v(),nt()}):v()}function Vr(){var e=g,t=m,n=L,r=$;return function(s=!0){F(e),R(t),Te(n),s&&(e.f&H)===0&&(r?.activate(),r?.apply())}}function nt(e=!0){F(null),R(null),Te(null),e&&$?.deactivate()}function pn(){var e=g,t=e.b,n=$,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 $t(e){var t=T|A,n=m!==null&&(m.f&T)!==0?m:null;return g!==null&&(g.f|=he),{ctx:L,deps:null,effects:null,equals:tn,f:t,fn:e,reactions:null,rv:0,v:q,wv:0,parent:n??g,ac:null}}function Hr(e,t,n){let r=g;r===null&&pr();var i=void 0,s=Le(q),o=!m,l=new Map;return ti(()=>{var a=g,u=Kt();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(nt)}catch(_){u.reject(_),nt()}var f=$;if(o){if((a.f&se)!==0)var v=pn();if(r.b.is_rendered())l.get(f)?.reject(X),l.delete(f);else{for(const _ of l.values())_.reject(X);l.clear()}l.set(f,u)}const c=(_,h=void 0)=>{if(v){var w=h===X;v(w)}if(!(h===X||(a.f&H)!==0)){if(f.activate(),h)s.f|=le,rt(s,h);else{(s.f&le)!==0&&(s.f^=le),rt(s,_);for(const[x,N]of l){if(l.delete(x),x===f)break;N.reject(X)}}f.deactivate()}};u.promise.then(c,_=>c(null,_||"unknown"))}),En(()=>{for(const a of l.values())a.reject(X)}),new Promise(a=>{function u(f){function v(){f===i?a(s):u(i)}f.then(v,v)}u(i)})}function Ie(e){const t=$t(e);return Pn(t),t}function Br(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)O(t[n])}}function zr(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function kt(e){var t,n=g;F(zr(e));try{e.f&=~ve,Br(e),t=Vn(e)}finally{F(n)}return t}function mn(e){var t=e.v,n=kt(e);if(!e.equals(n)&&(e.wv=Fn(),(!$?.is_fork||e.deps===null)&&(e.v=n,$?.capture(e,t,!0),e.deps===null))){E(e,S);return}ce||(z!==null?(qt()||$?.is_fork)&&z.set(e,n):gt(e))}function Yr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(X),t.teardown=cr,t.ac=null,ze(t,0),At(t))}function gn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Re(t)}let xt=new Set;const fe=new Map;let bn=!1;function Le(e,t){var n={f:0,v:e,reactions:null,equals:tn,rv:0,wv:0};return n}function D(e,t){const n=Le(e);return Pn(n),n}function Ur(e,t=!1,n=!0){const r=Le(e);return t||(r.equals=Ar),r}function k(e,t,n=!1){m!==null&&(!Y||(m.f&Qt)!==0)&&sn()&&(m.f&(T|re|_t|Qt))!==0&&(j===null||!$e.call(j,e))&&xr();let r=n?je(t):t;return rt(e,r,et)}function rt(e,t,n=null){if(!e.equals(t)){var r=e.v;ce?fe.set(e,t):fe.set(e,r),e.v=t;var i=Z.ensure();if(i.capture(e,r),(e.f&T)!==0){const s=e;(e.f&A)!==0&&kt(s),z===null&>(s)}e.wv=Fn(),wn(e,A,n),g!==null&&(g.f&S)!==0&&(g.f&(U|ie))===0&&(V===null?si([e]):V.push(e)),!i.is_fork&&xt.size>0&&!bn&&Jr()}return t}function Jr(){bn=!1;for(const e of xt)(e.f&S)!==0&&E(e,J),Be(e)&&Re(e);xt.clear()}function Fe(e){k(e,e.v+1)}function wn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,a=(l&A)===0;if(a&&E(o,t),(l&T)!==0){var u=o;z?.delete(u),(l&ve)===0&&(l&I&&(o.f|=ve),wn(u,J,n))}else if(a){var f=o;(l&re)!==0&&Q!==null&&Q.add(f),n!==null?n.push(f):yt(f)}}}function je(e){if(typeof e!="object"||e===null||pt in e)return e;const t=Wt(e);if(t!==ur&&t!==fr)return e;var n=new Map,r=sr(e),i=D(0),s=ge,o=l=>{if(ge===s)return l();var a=m,u=ge;R(null),Ln(s);var f=l();return R(a),Ln(u),f};return r&&n.set("length",D(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&$r();var f=n.get(a);return f===void 0?o(()=>{var v=D(u.value);return n.set(a,v),v}):k(f,u.value,!0),!0},deleteProperty(l,a){var u=n.get(a);if(u===void 0){if(a in l){const f=o(()=>D(q));n.set(a,f),Fe(i)}}else k(u,q),Fe(i);return!0},get(l,a,u){if(a===pt)return e;var f=n.get(a),v=a in l;if(f===void 0&&(!v||ke(l,a)?.writable)&&(f=o(()=>{var _=je(v?l[a]:q),h=D(_);return h}),n.set(a,f)),f!==void 0){var c=d(f);return c===q?void 0:c}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var f=n.get(a);f&&(u.value=d(f))}else if(u===void 0){var v=n.get(a),c=v?.v;if(v!==void 0&&c!==q)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,a){if(a===pt)return!0;var u=n.get(a),f=u!==void 0&&u.v!==q||Reflect.has(l,a);if(u!==void 0||g!==null&&(!f||ke(l,a)?.writable)){u===void 0&&(u=o(()=>{var c=f?je(l[a]):q,_=D(c);return _}),n.set(a,u));var v=d(u);if(v===q)return!1}return f},set(l,a,u,f){var v=n.get(a),c=a in l;if(r&&a==="length")for(var _=u;_<v.v;_+=1){var h=n.get(_+"");h!==void 0?k(h,q):_ in l&&(h=o(()=>D(q)),n.set(_+"",h))}if(v===void 0)(!c||ke(l,a)?.writable)&&(v=o(()=>D(void 0)),k(v,je(u)),n.set(a,v));else{c=v.v!==q;var w=o(()=>je(u));k(v,w)}var x=Reflect.getOwnPropertyDescriptor(l,a);if(x?.set&&x.set.call(f,u),!c){if(r&&typeof a=="string"){var N=n.get("length"),de=Number(a);Number.isInteger(de)&&de>=N.v&&k(N,de+1)}Fe(i)}return!0},ownKeys(l){d(i);var a=Reflect.ownKeys(l).filter(v=>{var c=n.get(v);return c===void 0||c.v!==q});for(var[u,f]of n)f.v!==q&&!(u in l)&&a.push(u);return a},setPrototypeOf(){kr()}})}var yn,$n,kn,xn;function Et(){if(yn===void 0){yn=window,$n=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;kn=ke(t,"firstChild").get,xn=ke(t,"nextSibling").get,Gt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Gt(n)&&(n.__t=void 0)}}function ee(e=""){return document.createTextNode(e)}function qe(e){return kn.call(e)}function te(e){return xn.call(e)}function Ae(e,t){if(!y)return qe(e);var n=qe(b);if(n===null)n=b.appendChild(ee());else if(t&&n.nodeType!==Xe){var r=ee();return n?.before(r),B(r),r}return t&&Tt(n),B(n),n}function it(e,t=!1){if(!y){var n=qe(e);return n instanceof Comment&&n.data===""?te(n):n}if(t){if(b?.nodeType!==Xe){var r=ee();return b?.before(r),B(r),r}Tt(b)}return b}function Ve(e,t=1,n=!1){let r=y?b:e;for(var i;t--;)i=r,r=te(r);if(!y)return r;if(n){if(r?.nodeType!==Xe){var s=ee();return r===null?i?.after(s):r.before(s),B(s),s}Tt(r)}return B(r),r}function Wr(e){e.textContent=""}function Gr(){return!1}function St(e,t,n){return document.createElementNS(Jt,e,void 0)}function Tt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Xe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Nt(e){var t=m,n=g;R(null),F(null);try{return e()}finally{R(t),F(n)}}function Kr(e){g===null&&(m===null&&br(),gr()),ce&&mr()}function Xr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function G(e,t){var n=g;n!==null&&(n.f&W)!==0&&(e|=W);var r={ctx:L,deps:null,nodes:null,f:e|A|I,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&xe)!==0)Ne!==null?Ne.push(r):Z.ensure().schedule(r);else if(t!==null){try{Re(r)}catch(o){throw O(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&he)===0&&(i=i.first,(e&re)!==0&&(e&Ee)!==0&&i!==null&&(i.f|=Ee))}if(i!==null&&(i.parent=n,n!==null&&Xr(i,n),m!==null&&(m.f&T)!==0&&(e&ie)===0)){var s=m;(s.effects??=[]).push(i)}return r}function qt(){return m!==null&&!Y}function En(e){const t=G(Ke,null);return E(t,S),t.teardown=e,t}function Sn(e){Kr();var t=g.f,n=!m&&(t&U)!==0&&(t&se)===0;if(n){var r=L;(r.e??=[]).push(e)}else return Tn(e)}function Tn(e){return G(xe|vr,e)}function Zr(e){Z.ensure();const t=G(ie|he,e);return()=>{O(t)}}function Qr(e){Z.ensure();const t=G(ie|he,e);return(n={})=>new Promise(r=>{n.outro?He(t,()=>{O(t),r(void 0)}):(O(t),r(void 0))})}function ei(e){return G(xe,e)}function ti(e){return G(_t|he,e)}function Nn(e,t=0){return G(Ke|t,e)}function Oe(e,t=[],n=[],r=[]){jr(r,t,n,i=>{G(Ke,()=>e(...i.map(d)))})}function qn(e,t=0){var n=G(re|t,e);return n}function ne(e){return G(U|he,e)}function An(e){var t=e.teardown;if(t!==null){const n=ce,r=m;Dn(!0),R(null);try{t.call(null)}finally{Dn(n),R(r)}}}function At(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Nt(()=>{i.abort(X)});var r=n.next;(n.f&ie)!==0?n.parent=null:O(n,t),n=r}}function ni(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&O(t),t=n}}function O(e,t=!0){var n=!1;(t||(e.f&hr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ri(e.nodes.start,e.nodes.end),n=!0),E(e,Zt),At(e,t&&!n),ze(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();An(e),e.f^=Zt,e.f|=H;var i=e.parent;i!==null&&i.first!==null&&On(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ri(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function On(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 He(e,t,n=!0){var r=[];Rn(e,r,!0);var i=()=>{n&&O(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function Rn(e,t,n){if((e.f&W)===0){e.f^=W;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Ee)!==0||(i.f&U)!==0&&(e.f&re)!==0;Rn(i,t,o?n:!1),i=s}}}function ii(e){Cn(e,!0)}function Cn(e,t){if((e.f&W)!==0){e.f^=W,(e.f&S)===0&&(E(e,A),Z.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ee)!==0||(n.f&U)!==0;Cn(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 Mn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:te(n);t.append(n),n=i}}let st=!1,ce=!1;function Dn(e){ce=e}let m=null,Y=!1;function R(e){m=e}let g=null;function F(e){g=e}let j=null;function Pn(e){m!==null&&(j===null?j=[e]:j.push(e))}let C=null,P=0,V=null;function si(e){V=e}let In=1,me=0,ge=me;function Ln(e){ge=e}function Fn(){return++In}function Be(e){var t=e.f;if((t&A)!==0)return!0;if(t&T&&(e.f&=~ve),(t&J)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Be(s)&&mn(s),s.wv>e.wv)return!0}(t&I)!==0&&z===null&&E(e,S)}return!1}function jn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(j!==null&&$e.call(j,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&T)!==0?jn(s,t,!1):t===s&&(n?E(s,A):(s.f&S)!==0&&E(s,J),yt(s))}}function Vn(e){var t=C,n=P,r=V,i=m,s=j,o=L,l=Y,a=ge,u=e.f;C=null,P=0,V=null,m=(u&(U|ie))===0?e:null,j=null,Te(e.ctx),Y=!1,ge=++me,e.ac!==null&&(Nt(()=>{e.ac.abort(X)}),e.ac=null);try{e.f|=vt;var f=e.fn,v=f();e.f|=se;var c=e.deps,_=$?.is_fork;if(C!==null){var h;if(_||ze(e,P),c!==null&&P>0)for(c.length=P+C.length,h=0;h<C.length;h++)c[P+h]=C[h];else e.deps=c=C;if(qt()&&(e.f&I)!==0)for(h=P;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!_&&c!==null&&P<c.length&&(ze(e,P),c.length=P);if(sn()&&V!==null&&!Y&&c!==null&&(e.f&(T|J|A))===0)for(h=0;h<V.length;h++)jn(V[h],e);if(i!==null&&i!==e){if(me++,i.deps!==null)for(let w=0;w<n;w+=1)i.deps[w].rv=me;if(t!==null)for(const w of t)w.rv=me;V!==null&&(r===null?r=V:r.push(...V))}return(e.f&le)!==0&&(e.f^=le),v}catch(w){return on(w)}finally{e.f^=vt,C=t,P=n,V=r,m=i,j=s,Te(o),Y=l,ge=a}}function li(e,t){let n=t.reactions;if(n!==null){var r=lr.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&T)!==0&&(C===null||!$e.call(C,t))){var s=t;(s.f&I)!==0&&(s.f^=I,s.f&=~ve),gt(s),Yr(s),ze(s,0)}}function ze(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)li(e,n[r])}function Re(e){var t=e.f;if((t&H)===0){E(e,S);var n=g,r=st;g=e,st=!0;try{(t&(re|Xt))!==0?ni(e):At(e),An(e);var i=Vn(e);e.teardown=typeof i=="function"?i:null,e.wv=In;var s;ir&&Or&&(e.f&A)!==0&&e.deps}finally{st=r,g=n}}}function d(e){var t=e.f,n=(t&T)!==0;if(m!==null&&!Y){var r=g!==null&&(g.f&H)!==0;if(!r&&(j===null||!$e.call(j,e))){var i=m.deps;if((m.f&vt)!==0)e.rv<me&&(e.rv=me,C===null&&i!==null&&i[P]===e?P++:C===null?C=[e]:C.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:$e.call(s,m)||s.push(m)}}}if(ce&&fe.has(e))return fe.get(e);if(n){var o=e;if(ce){var l=o.v;return((o.f&S)===0&&o.reactions!==null||Bn(o))&&(l=kt(o)),fe.set(o,l),l}var a=(o.f&I)===0&&!Y&&m!==null&&(st||(m.f&I)!==0),u=(o.f&se)===0;Be(o)&&(a&&(o.f|=I),mn(o)),a&&!u&&(gn(o),Hn(o))}if(z?.has(e))return z.get(e);if((e.f&le)!==0)throw e.v;return e.v}function Hn(e){if(e.f|=I,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&I)===0&&(gn(t),Hn(t))}function Bn(e){if(e.v===q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(fe.has(t)||(t.f&T)!==0&&Bn(t))return!0;return!1}function oi(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const lt=Symbol("events"),ai=new Set,zn=new Set;function ui(e,t,n,r={}){function i(s){if(r.capture||Ot.call(t,s),!s.cancelBubble)return Nt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ot(e,t,n,r,i){var s={capture:r,passive:i},o=ui(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&En(()=>{t.removeEventListener(e,o,s)})}let Yn=null;function Ot(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Yn=e;var o=0,l=Yn===e&&e[lt];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[lt]=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(o=a)}if(s=i[o]||e.target,s!==t){Ge(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=m,v=g;R(null),F(null);try{for(var c,_=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var w=s[lt]?.[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(x){c?_.push(x):c=x}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let x of _)queueMicrotask(()=>{throw x});throw c}}finally{e[lt]=t,delete e.currentTarget,R(f),F(v)}}}const fi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ci(e){return fi?.createHTML(e)??e}function di(e){var t=St("template");return t.innerHTML=ci(e.replaceAll("<!>","<!---->")),t.content}function Ce(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function at(e,t){var n=(t&nr)!==0,r=(t&rr)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Ce(b,null),b;i===void 0&&(i=di(s?e:"<!>"+e),n||(i=qe(i)));var o=r||$n?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=qe(o),a=o.lastChild;Ce(l,a)}else Ce(o,o);return o}}function hi(){if(y)return Ce(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),n=ee();return e.append(t,n),Ce(t,n),e}function Me(e,t){if(y){var n=g;((n.f&se)===0||n.nodes.end===null)&&(n.nodes.end=b),mt();return}e!==null&&e.before(t)}const vi=["touchstart","touchmove"];function _i(e){return vi.includes(e)}function pi(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Un(e,t){return Jn(e,t)}function mi(e,t){Et(),t.intro=t.intro??!1;const n=t.target,r=y,i=b;try{for(var s=qe(n);s&&(s.nodeType!==Ze||s.data!==Bt);)s=te(s);if(!s)throw ye;oe(!0),B(s);const o=Jn(e,{...t,anchor:s});return oe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ye&&console.warn("Failed to hydrate: ",o),t.recover===!1&&yr(),Et(),Wr(n),oe(!1),Un(e,t)}finally{oe(r),B(i)}}const ut=new Map;function Jn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){Et();var a=void 0,u=Qr(()=>{var f=n??t.appendChild(ee());Lr(f,{pending:()=>{}},_=>{nn({});var h=L;if(s&&(h.c=s),i&&(r.$$events=i),y&&Ce(_,null),a=e(_,r)||{},y&&(g.nodes.end=b,b===null||b.nodeType!==Ze||b.data!==Ut))throw Qe(),ye;rn()},l);var v=new Set,c=_=>{for(var h=0;h<_.length;h++){var w=_[h];if(!v.has(w)){v.add(w);var x=_i(w);for(const Ue of[t,document]){var N=ut.get(Ue);N===void 0&&(N=new Map,ut.set(Ue,N));var de=N.get(w);de===void 0?(Ue.addEventListener(w,Ot,{passive:x}),N.set(w,1)):N.set(w,de+1)}}}};return c(or(ai)),zn.add(c),()=>{for(var _ of v)for(const x of[t,document]){var h=ut.get(x),w=h.get(_);--w==0?(x.removeEventListener(_,Ot),h.delete(_),h.size===0&&ut.delete(x)):h.set(_,w)}zn.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return Rt.set(a,u),a}let Rt=new WeakMap;function gi(e,t){const n=Rt.get(e);return n?(Rt.delete(e),n(t)):Promise.resolve()}class bi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)ii(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(O(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();Mn(o,u),u.append(ee()),this.#t.set(s,{effect:o,fragment:u})}else O(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),He(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(O(i.effect),this.#t.delete(r))};ensure(t,n){var r=$,i=Gr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=ee();s.append(o),this.#t.set(t,{effect:ne(()=>n(o)),fragment:s})}else this.#n.set(t,ne(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,a]of this.#n)l===t?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#t)l===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else y&&(this.anchor=b),this.#r(r)}}function ft(e,t,n=!1){var r;y&&(r=b,mt());var i=new bi(e),s=n?Ee:0;function o(l,a){if(y){var u=Nr(r);if(l!==parseInt(u.substring(1))){var f=en();B(f),i.anchor=f,oe(!1),i.ensure(l,a),oe(!0);return}}i.ensure(l,a)}qn(()=>{var l=!1;t((a,u=0)=>{l=!0,o(u,a)}),l||o(-1,null)},s)}function wi(e,t){ei(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=St("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function yi(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function Ye(e,t,n,r,i,s){var o=e.__className;if(y||o!==n||o===void 0){var l=yi(n,r);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const $i=Symbol("is custom element"),ki=Symbol("is html");function xi(e,t,n,r){var i=Ei(e);y&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Wn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ct(e,t,n){var r=m,i=g;let s=y;y&&oe(!1),R(null),F(null);try{t!=="style"&&(Ct.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Wn(e).includes(t):n&&typeof n=="object")?e[t]=n:xi(e,t,n==null?n:String(n))}finally{R(r),F(i),s&&oe(!0)}}function Ei(e){return e.__attributes??={[$i]:e.nodeName.includes("-"),[ki]:e.namespaceURI===Jt}}var Ct=new Map;function Wn(e){var t=e.getAttribute("is")||e.nodeName,n=Ct.get(t);if(n)return n;Ct.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ar(i);for(var o in r)r[o].set&&n.push(o);i=Wt(i)}return n}function Mt(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var a;a=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var u=!1,f=$t(()=>(u=!1,a())),v=g;return(function(c,_){if(arguments.length>0){const h=_?d(f):c;return k(f,h),u=!0,i!==void 0&&(i=h),c}return ce&&u||(v.f&H)!==0?f.v:d(f)})}function Si(e){return new Ti(e)}class Ti{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=Ur(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return d(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===_r?!0:(d(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return k(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?mi:Un)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Ge(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{gi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Gn;typeof HTMLElement=="function"&&(Gn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=St("slot");r!=="default"&&(s.name=r),Me(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ni(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=dt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Si({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zr(()=>{Nn(()=>{this.$$r=!0;for(const r of We(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=dt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=dt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return We(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function dt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ni(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function qi(e,t,n,r,i,s){let o=class extends Gn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return We(t).map(l=>(t[l].attribute||l).toLowerCase())}};return We(t).forEach(l=>{Ge(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=dt(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var f=ke(u,l)?.get;f?u[l]=a:u.$set({[l]:a})}}})}),r.forEach(l=>{Ge(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function Kn(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}const Xn={version:"0.66.
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==ye&&console.warn("Failed to hydrate: ",o),t.recover===!1&&yr(),Et(),Wr(n),oe(!1),Un(e,t)}finally{oe(r),B(i)}}const ut=new Map;function Jn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){Et();var a=void 0,u=Qr(()=>{var f=n??t.appendChild(ee());Lr(f,{pending:()=>{}},_=>{nn({});var h=L;if(s&&(h.c=s),i&&(r.$$events=i),y&&Ce(_,null),a=e(_,r)||{},y&&(g.nodes.end=b,b===null||b.nodeType!==Ze||b.data!==Ut))throw Qe(),ye;rn()},l);var v=new Set,c=_=>{for(var h=0;h<_.length;h++){var w=_[h];if(!v.has(w)){v.add(w);var x=_i(w);for(const Ue of[t,document]){var N=ut.get(Ue);N===void 0&&(N=new Map,ut.set(Ue,N));var de=N.get(w);de===void 0?(Ue.addEventListener(w,Ot,{passive:x}),N.set(w,1)):N.set(w,de+1)}}}};return c(or(ai)),zn.add(c),()=>{for(var _ of v)for(const x of[t,document]){var h=ut.get(x),w=h.get(_);--w==0?(x.removeEventListener(_,Ot),h.delete(_),h.size===0&&ut.delete(x)):h.set(_,w)}zn.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return Rt.set(a,u),a}let Rt=new WeakMap;function gi(e,t){const n=Rt.get(e);return n?(Rt.delete(e),n(t)):Promise.resolve()}class bi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)ii(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(O(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();Mn(o,u),u.append(ee()),this.#t.set(s,{effect:o,fragment:u})}else O(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),He(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(O(i.effect),this.#t.delete(r))};ensure(t,n){var r=$,i=Gr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=ee();s.append(o),this.#t.set(t,{effect:ne(()=>n(o)),fragment:s})}else this.#n.set(t,ne(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,a]of this.#n)l===t?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#t)l===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else y&&(this.anchor=b),this.#r(r)}}function ft(e,t,n=!1){var r;y&&(r=b,mt());var i=new bi(e),s=n?Ee:0;function o(l,a){if(y){var u=Nr(r);if(l!==parseInt(u.substring(1))){var f=en();B(f),i.anchor=f,oe(!1),i.ensure(l,a),oe(!0);return}}i.ensure(l,a)}qn(()=>{var l=!1;t((a,u=0)=>{l=!0,o(u,a)}),l||o(-1,null)},s)}function wi(e,t){ei(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=St("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function yi(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function Ye(e,t,n,r,i,s){var o=e.__className;if(y||o!==n||o===void 0){var l=yi(n,r);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const $i=Symbol("is custom element"),ki=Symbol("is html");function xi(e,t,n,r){var i=Ei(e);y&&(i[t]=e.getAttribute(t)),i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&Wn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ct(e,t,n){var r=m,i=g;let s=y;y&&oe(!1),R(null),F(null);try{t!=="style"&&(Ct.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Wn(e).includes(t):n&&typeof n=="object")?e[t]=n:xi(e,t,n==null?n:String(n))}finally{R(r),F(i),s&&oe(!0)}}function Ei(e){return e.__attributes??={[$i]:e.nodeName.includes("-"),[ki]:e.namespaceURI===Jt}}var Ct=new Map;function Wn(e){var t=e.getAttribute("is")||e.nodeName,n=Ct.get(t);if(n)return n;Ct.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ar(i);for(var o in r)r[o].set&&n.push(o);i=Wt(i)}return n}function Mt(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var a;a=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var u=!1,f=$t(()=>(u=!1,a())),v=g;return(function(c,_){if(arguments.length>0){const h=_?d(f):c;return k(f,h),u=!0,i!==void 0&&(i=h),c}return ce&&u||(v.f&H)!==0?f.v:d(f)})}function Si(e){return new Ti(e)}class Ti{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=Ur(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return d(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===_r?!0:(d(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return k(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?mi:Un)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Ge(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{gi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Gn;typeof HTMLElement=="function"&&(Gn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=St("slot");r!=="default"&&(s.name=r),Me(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ni(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=dt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Si({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zr(()=>{Nn(()=>{this.$$r=!0;for(const r of We(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=dt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=dt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return We(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function dt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ni(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function qi(e,t,n,r,i,s){let o=class extends Gn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return We(t).map(l=>(t[l].attribute||l).toLowerCase())}};return We(t).forEach(l=>{Ge(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=dt(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var f=ke(u,l)?.get;f?u[l]=a:u.$set({[l]:a})}}})}),r.forEach(l=>{Ge(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function Kn(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}const Xn={version:"0.66.6"};var Ai=at(': <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div>',3),Oi=at('<div style="margin-right:20px" class="input svelte-1x2sq1k"><hb-input-date></hb-input-date></div> <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div> : <div class="input svelte-1x2sq1k"><hb-input-number></hb-input-number></div> <!>',3),Ri=at('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1x2sq1k"> </div>'),Ci=at("<div><!></div> <!>",1);const Mi={hash:"svelte-1x2sq1k",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
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
package/manifest.json
CHANGED
|
@@ -259,8 +259,7 @@
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
],
|
|
262
|
-
"iifeIntegrity": "sha384-
|
|
263
|
-
"iifeIntegrityType": "sha384",
|
|
262
|
+
"iifeIntegrity": "sha384-PR0Ia18BorGd1HjOhyRhtMVTdfQFj7ZEF8WMXOjmfozXI/ocG9dTofsPoCKSx9AA",
|
|
264
263
|
"screenshots": [],
|
|
265
264
|
"licenses": [
|
|
266
265
|
{
|
|
@@ -279,5 +278,5 @@
|
|
|
279
278
|
"size": {},
|
|
280
279
|
"iifePath": "main.iife.js",
|
|
281
280
|
"repoName": "@htmlbricks/hb-input-datetime",
|
|
282
|
-
"version": "0.66.
|
|
281
|
+
"version": "0.66.6"
|
|
283
282
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-input-datetime",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.6",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Composes child web components `hb-input-date` and `hb-input-number` to edit date, hours, minutes, and (unless `params.removeSeconds`) seconds, then combines them into a single ISO string `value`. Honors `schemaentry.params.min` / `max` as date bounds when required. Registers `@htmlbricks/hb-input-date` and `@htmlbricks/hb-input-number` and dispatches `setVal` with `{ value, valid, id }`.",
|
|
6
6
|
"licenses": [
|