Anvil/assets/lifecycle-e76756ca.js
André Jaenisch d68288c44d
Updates
2024-02-12 12:40:14 +01:00

1 line
7 KiB
JavaScript

var w=Object.defineProperty;var $=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var f=(e,t,n)=>($(e,typeof t!="symbol"?t+"":t,n),n);let h=!1;function I(){h=!0}function z(){h=!1}function C(e,t,n,i){for(;e<t;){const l=e+(t-e>>1);n(l)<=i?e=l+1:t=l}return e}function D(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const c=[];for(let u=0;u<t.length;u++){const a=t[u];a.claim_order!==void 0&&c.push(a)}t=c}const n=new Int32Array(t.length+1),i=new Int32Array(t.length);n[0]=-1;let l=0;for(let c=0;c<t.length;c++){const u=t[c].claim_order,a=(l>0&&t[n[l]].claim_order<=u?l+1:C(1,l,b=>t[n[b]].claim_order,u))-1;i[c]=n[a]+1;const g=a+1;n[g]=c,l=Math.max(g,l)}const r=[],s=[];let o=t.length-1;for(let c=n[l]+1;c!=0;c=i[c-1]){for(r.push(t[c-1]);o>=c;o--)s.push(t[o]);o--}for(;o>=0;o--)s.push(t[o]);r.reverse(),s.sort((c,u)=>c.claim_order-u.claim_order);for(let c=0,u=0;c<s.length;c++){for(;u<r.length&&s[c].claim_order>=r[u].claim_order;)u++;const a=u<r.length?r[u]:null;e.insertBefore(s[c],a)}}function H(e,t){e.appendChild(t)}function L(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function F(e){const t=y("style");return t.textContent="/* empty */",S(L(e),t),t.sheet}function S(e,t){return H(e.head||e,t),t.sheet}function M(e,t){if(h){for(D(e),(e.actual_end_child===void 0||e.actual_end_child!==null&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);e.actual_end_child!==null&&e.actual_end_child.claim_order===void 0;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?(t.claim_order!==void 0||t.parentNode!==e)&&e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else(t.parentNode!==e||t.nextSibling!==null)&&e.appendChild(t)}function P(e,t,n){e.insertBefore(t,n||null)}function k(e,t,n){h&&!n?M(e,t):(t.parentNode!==e||t.nextSibling!=n)&&e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function J(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function y(e){return document.createElement(e)}function E(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function x(e){return document.createTextNode(e)}function K(){return x(" ")}function Q(){return x("")}function U(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function O(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const B=["width","height"];function W(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)t[i]==null?e.removeAttribute(i):i==="style"?e.style.cssText=t[i]:i==="__value"?e.value=e[i]=t[i]:n[i]&&n[i].set&&B.indexOf(i)===-1?e[i]=t[i]:O(e,i,t[i])}function V(e){return e.dataset.svelteH}function X(e){let t;return{p(...n){t=n,t.forEach(i=>e.push(i))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function Y(e){return e===""?null:+e}function Z(e){return Array.from(e.childNodes)}function T(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function N(e,t,n,i,l=!1){T(e);const r=(()=>{for(let s=e.claim_info.last_index;s<e.length;s++){const o=e[s];if(t(o)){const c=n(o);return c===void 0?e.splice(s,1):e[s]=c,l||(e.claim_info.last_index=s),o}}for(let s=e.claim_info.last_index-1;s>=0;s--){const o=e[s];if(t(o)){const c=n(o);return c===void 0?e.splice(s,1):e[s]=c,l?c===void 0&&e.claim_info.last_index--:e.claim_info.last_index=s,o}}return i()})();return r.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,r}function A(e,t,n,i){return N(e,l=>l.nodeName===t,l=>{const r=[];for(let s=0;s<l.attributes.length;s++){const o=l.attributes[s];n[o.name]||r.push(o.name)}r.forEach(s=>l.removeAttribute(s))},()=>i(t))}function ee(e,t,n){return A(e,t,n,y)}function te(e,t,n){return A(e,t,n,E)}function R(e,t){return N(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>x(t),!0)}function ne(e){return R(e," ")}function v(e,t,n){for(let i=n;i<e.length;i+=1){const l=e[i];if(l.nodeType===8&&l.textContent.trim()===t)return i}return-1}function ie(e,t){const n=v(e,"HTML_TAG_START",0),i=v(e,"HTML_TAG_END",n+1);if(n===-1||i===-1)return new d(t);T(e);const l=e.splice(n,i-n+1);m(l[0]),m(l[l.length-1]);const r=l.slice(1,l.length-1);if(r.length===0)return new d(t);for(const s of r)s.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new d(t,r)}function le(e,t){t=""+t,e.data!==t&&(e.data=t)}function se(e,t){e.value=t??""}function ce(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function re(e,t,n){for(let i=0;i<e.options.length;i+=1){const l=e.options[i];if(l.__value===t){l.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function oe(e,t){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];i.selected=~t.indexOf(i.__value)}}function ue(e){const t=e.querySelector(":checked");return t&&t.__value}function ae(e){return[].map.call(e.querySelectorAll(":checked"),t=>t.__value)}function fe(e,t,n){e.classList.toggle(t,!!n)}function j(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function _e(e,t){const n=[];let i=0;for(const l of t.childNodes)if(l.nodeType===8){const r=l.textContent.trim();r===`HEAD_${e}_END`?(i-=1,n.push(l)):r===`HEAD_${e}_START`&&(i+=1,n.push(l))}else i>0&&n.push(l);return n}class q{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,i=null){this.e||(this.is_svg?this.e=E(n.nodeName):this.e=y(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)P(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(m)}}class d extends q{constructor(n=!1,i){super(n);f(this,"l");this.e=this.n=null,this.l=i}c(n){this.l?this.n=this.l:super.c(n)}i(n){for(let i=0;i<this.n.length;i+=1)k(this.t,this.n[i],n)}}function he(e,t){return new e(t)}let p;function de(e){p=e}function _(){if(!p)throw new Error("Function called outside component initialization");return p}function me(e){_().$$.on_mount.push(e)}function pe(e){_().$$.after_update.push(e)}function ye(e){_().$$.on_destroy.push(e)}function xe(){const e=_();return(t,n,{cancelable:i=!1}={})=>{const l=e.$$.callbacks[t];if(l){const r=j(t,n,{cancelable:i});return l.slice().forEach(s=>{s.call(e,r)}),!r.defaultPrevented}return!0}}function ge(e,t){return _().$$.context.set(e,t),t}function ve(e){return _().$$.context.get(e)}function Ee(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(i=>i.call(this,t))}export{j as A,I as B,z as C,X as D,W as E,ce as F,E as G,d as H,te as I,pe as J,fe as K,J as L,oe as M,se as N,ae as O,re as P,ue as Q,Y as R,ye as S,_e as T,K as a,Z as b,ee as c,V as d,y as e,ne as f,ve as g,m as h,O as i,k as j,M as k,xe as l,R as m,le as n,me as o,U as p,Ee as q,Q as r,ge as s,x as t,ie as u,he as v,L as w,F as x,de as y,p as z};