{"size": 1153, "ext": "js", "max_stars_repo_path": "app/unbundled-webcomponents/app/dist/build/es6/node_modules/@vaadin/vaadin-themable-mixin/node_modules/lit-html/directives/until.js", "max_stars_repo_name": "hayden-angello/hax11ty", "max_stars_repo_stars_event_min_datetime": "2019-03-31T02:57:01.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-17T10:49:02.000Z", "max_issues_repo_path": "app/unbundled-webcomponents/app/dist/build/es6/node_modules/@vaadin/vaadin-themable-mixin/node_modules/lit-html/directives/until.js", "max_issues_repo_name": "hayden-angello/hax11ty", "max_issues_repo_issues_event_min_datetime": "2019-03-13T18:08:53.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-22T10:57:55.000Z", "max_forks_repo_path": "app/unbundled-webcomponents/app/dist/build/es6/node_modules/@vaadin/vaadin-themable-mixin/node_modules/lit-html/directives/until.js", "max_forks_repo_name": "hayden-angello/hax11ty", "max_forks_repo_forks_event_min_datetime": "2019-03-13T17:49:12.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-15T20:50:55.000Z"}
{"max_stars_count": 111, "max_issues_count": 453, "max_forks_count": 43, "avg_line_length": 82.3571428571, "max_line_length": 608, "alphanum_fraction": 0.7155247181}
/**
 * @license
 * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt
 * The complete set of authors may be found at
 * http://polymer.github.io/AUTHORS.txt
 * The complete set of contributors may be found at
 * http://polymer.github.io/CONTRIBUTORS.txt
 * Code distributed by Google as part of the polymer project is also
 * subject to an additional IP rights grant found at
 * http://polymer.github.io/PATENTS.txt
 */
import{isPrimitive as e}from"../lib/parts.js";import{directive as t}from"../lit-html.js";const n=new WeakMap;export const until=t(((...t)=>s=>{let l=n.get(s);void 0===l&&(l={lastRenderedIndex:2147483647,values:[]},n.set(s,l));const d=l.values;let o=d.length;l.values=t;for(let n=0;n<t.length&&!(n>l.lastRenderedIndex);n++){const a=t[n];if(e(a)||"function"!=typeof a.then){s.setValue(a),l.lastRenderedIndex=n;break}n<o&&a===d[n]||(l.lastRenderedIndex=2147483647,o=0,Promise.resolve(a).then((e=>{const t=l.values.indexOf(a);t>-1&&t<l.lastRenderedIndex&&(l.lastRenderedIndex=t,s.setValue(e),s.commit())})))}}));