Anvil/assets/lifecycle-1566062d.js
André Jaenisch 5cbc208247
Updates
2024-02-08 10:52:22 +01:00

1 line
3.8 KiB
JavaScript

let f=!1;function C(){f=!0}function k(){f=!1}function x(n,e,t,r){for(;n<e;){const c=n+(e-n>>1);t(c)<=r?n=c+1:e=c}return n}function y(n){if(n.hydrate_init)return;n.hydrate_init=!0;let e=n.childNodes;if(n.nodeName==="HEAD"){const l=[];for(let o=0;o<e.length;o++){const s=e[o];s.claim_order!==void 0&&l.push(s)}e=l}const t=new Int32Array(e.length+1),r=new Int32Array(e.length);t[0]=-1;let c=0;for(let l=0;l<e.length;l++){const o=e[l].claim_order,s=(c>0&&e[t[c]].claim_order<=o?c+1:x(1,c,b=>e[t[b]].claim_order,o))-1;r[l]=t[s]+1;const h=s+1;t[h]=l,c=Math.max(h,c)}const u=[],i=[];let a=e.length-1;for(let l=t[c]+1;l!=0;l=r[l-1]){for(u.push(e[l-1]);a>=l;a--)i.push(e[a]);a--}for(;a>=0;a--)i.push(e[a]);u.reverse(),i.sort((l,o)=>l.claim_order-o.claim_order);for(let l=0,o=0;l<i.length;l++){for(;o<u.length&&i[l].claim_order>=u[o].claim_order;)o++;const s=o<u.length?u[o]:null;n.insertBefore(i[l],s)}}function v(n,e){if(f){for(y(n),(n.actual_end_child===void 0||n.actual_end_child!==null&&n.actual_end_child.parentNode!==n)&&(n.actual_end_child=n.firstChild);n.actual_end_child!==null&&n.actual_end_child.claim_order===void 0;)n.actual_end_child=n.actual_end_child.nextSibling;e!==n.actual_end_child?(e.claim_order!==void 0||e.parentNode!==n)&&n.insertBefore(e,n.actual_end_child):n.actual_end_child=e.nextSibling}else(e.parentNode!==n||e.nextSibling!==null)&&n.appendChild(e)}function S(n,e,t){f&&!t?v(n,e):(e.parentNode!==n||e.nextSibling!=t)&&n.insertBefore(e,t||null)}function j(n){n.parentNode&&n.parentNode.removeChild(n)}function N(n){return document.createElement(n)}function m(n){return document.createTextNode(n)}function B(){return m(" ")}function T(){return m("")}function g(n,e,t,r){return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}function q(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function D(n){return n.dataset.svelteH}function H(n){return Array.from(n.childNodes)}function E(n){n.claim_info===void 0&&(n.claim_info={last_index:0,total_claimed:0})}function p(n,e,t,r,c=!1){E(n);const u=(()=>{for(let i=n.claim_info.last_index;i<n.length;i++){const a=n[i];if(e(a)){const l=t(a);return l===void 0?n.splice(i,1):n[i]=l,c||(n.claim_info.last_index=i),a}}for(let i=n.claim_info.last_index-1;i>=0;i--){const a=n[i];if(e(a)){const l=t(a);return l===void 0?n.splice(i,1):n[i]=l,c?l===void 0&&n.claim_info.last_index--:n.claim_info.last_index=i,a}}return r()})();return u.claim_order=n.claim_info.total_claimed,n.claim_info.total_claimed+=1,u}function $(n,e,t,r){return p(n,c=>c.nodeName===e,c=>{const u=[];for(let i=0;i<c.attributes.length;i++){const a=c.attributes[i];t[a.name]||u.push(a.name)}u.forEach(i=>c.removeAttribute(i))},()=>r(e))}function I(n,e,t){return $(n,e,t,N)}function A(n,e){return p(n,t=>t.nodeType===3,t=>{const r=""+e;if(t.data.startsWith(r)){if(t.data.length!==r.length)return t.splitText(r.length)}else t.data=r},()=>m(e),!0)}function L(n){return A(n," ")}function M(n,e){e=""+e,n.data!==e&&(n.data=e)}function w(n,e,{bubbles:t=!1,cancelable:r=!1}={}){return new CustomEvent(n,{detail:e,bubbles:t,cancelable:r})}function z(n,e){return new n(e)}let d;function F(n){d=n}function _(){if(!d)throw new Error("Function called outside component initialization");return d}function P(n){_().$$.on_mount.push(n)}function W(){const n=_();return(e,t,{cancelable:r=!1}={})=>{const c=n.$$.callbacks[e];if(c){const u=w(e,t,{cancelable:r});return c.slice().forEach(i=>{i.call(n,u)}),!u.defaultPrevented}return!0}}function G(n,e){return _().$$.context.set(n,e),e}function J(n){return _().$$.context.get(n)}function K(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(r=>r.call(this,e))}export{B as a,H as b,I as c,D as d,N as e,L as f,J as g,j as h,q as i,S as j,v as k,W as l,A as m,M as n,P as o,g as p,K as q,T as r,G as s,m as t,z as u,F as v,d as w,C as x,k as y};