티스토리 수익 글 보기

티스토리 수익 글 보기

import{ak as A,ax as H,ar as M,aH as B}from”./sp-button-group-B-hQqj2b-Ds8Lc0Vu.js”;import{x as C,g as p,B as v,b as g,p as D}from”./Textfield-BfqxzX1d-CazUbTmj.js”;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const b=(l,f,d)=>{const c=new Map;for(let e=f;e<=d;e++)c.set(l[e],e);return c},L=A(class extends H{constructor(l){if(super(l),l.type!==M.CHILD)throw Error("repeat() can only be used in text expressions")}dt(l,f,d){let c;d===void 0?d=f:f!==void 0&&(c=f);const e=[],r=[];let n=0;for(const u of l)e[n]=c?c(u,n):n,r[n]=d(u,n),n++;return{values:r,keys:e}}render(l,f,d){return this.dt(l,f,d).values}update(l,[f,d,c]){var k;const e=C(l),{values:r,keys:n}=this.dt(f,d,c);if(!Array.isArray(e))return this.ut=n,r;const u=(k=this.ut)!=null?k:this.ut=[],a=[];let y,m,t=0,o=e.length-1,s=0,i=r.length-1;for(;t<=o&&s<=i;)if(e[t]===null)t++;else if(e[o]===null)o--;else if(u[t]===n[s])a[s]=p(e[t],r[s]),t++,s++;else if(u[o]===n[i])a[i]=p(e[o],r[i]),o--,i--;else if(u[t]===n[i])a[i]=p(e[t],r[i]),v(l,a[i+1],e[t]),t++,i--;else if(u[o]===n[s])a[s]=p(e[o],r[s]),v(l,e[t],e[o]),o--,s++;else if(y===void 0&&(y=b(n,s,i),m=b(u,t,o)),y.has(u[t]))if(y.has(u[o])){const h=m.get(n[s]),x=h!==void 0?e[h]:null;if(x===null){const w=v(l,e[t]);p(w,r[s]),a[s]=w}else a[s]=p(x,r[s]),v(l,e[t],x),e[h]=null;s++}else g(e[o]),o--;else g(e[t]),t++;for(;s<=i;){const h=v(l,a[i+1]);p(h,r[s]),a[s++]=h}for(;t<=o;){const h=e[t++];h!==null&&g(h)}return this.ut=n,D(l,a),B}});export{L as M}; //# sourceMappingURL=repeat-0w4vgNOf-BaRnn0X7.js.map