"use strict";(self.webpackChunkcnblogs_theme_simplememorye_2_1_0=self.webpackChunkcnblogs_theme_simplememorye_2_1_0||[]).push([[2315],{9830:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var l=n(25317),o=n(71606);function c(e,t,n,c,i,d){const m=document.getElementById(e);let a=[],r=!1;for(let e in t)(new Image).src=t[e];for(let e=0;e<n;e++){let l=document.createElement("div");l.className="part";let o=document.createElement("div");o.className="section";let c=document.createElement("img");c.src=t[d],o.appendChild(c),l.style.setProperty("--x",-100/n*e+"vw"),l.appendChild(o),m.appendChild(l),a.push(l)}let s={duration:2.3,ease:l.Yp.easeInOut};window.setInterval((()=>{!function(n){if(!r){function l(t,n){t.appendChild(n),o.p8.to(t,{...s,y:-1*document.getElementById(e).offsetHeight}).then((function(){t.children[0].remove(),o.p8.to(t,{duration:0,y:0})}))}function c(t,n){t.prepend(n),o.p8.to(t,{duration:0,y:-1*document.getElementById(e).offsetHeight}),o.p8.to(t,{...s,y:0}).then((function(){t.children[1].remove(),r=!1}))}r=!0,d+n<0?d=t.length-1:d+n>=t.length?d=0:d+=n;for(let i in a){let m=a[i],u=document.createElement("div");u.className="section";let p=document.createElement("img");p.src=t[d],u.appendChild(p),(i-Math.max(0,n))%2?c(m,u):l(m,u)}}}(i)}),c)}}}]);