@haxtheweb/haxcms-nodejs
Version:
HAXcms single and multisite nodejs server, api, and administration
7 lines • 2.09 kB
JavaScript
var t;t=function(){
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
var t,n=new Set,o=new Map;null!==(t=globalThis.litHtmlPolyfillSupport)&&void 0!==t||(globalThis.litHtmlPolyfillSupport=function(t,i){if(void 0!==window.ShadyCSS&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){var d=function(t){return void 0!==t&&!n.has(t)},e=function(t){var n=o.get(t);return void 0===n&&o.set(t,n=[]),n},l=new Map,a=t.createElement;t.createElement=function(n,o){var i=a.call(t,n,o),l=null==o?void 0:o.scope;if(void 0!==l&&(window.ShadyCSS.nativeShadow||window.ShadyCSS.prepareTemplateDom(i,l),d(l))){var r=e(l),p=i.content.querySelectorAll("style");r.push.apply(r,Array.from(p).map((function(t){var n;return null===(n=t.parentNode)||void 0===n||n.removeChild(t),t.textContent})))}return i};var r=document.createDocumentFragment(),p=document.createComment(""),h=i.prototype,s=h._$AI;h._$AI=function(t,i){var l,a;void 0===i&&(i=this);var h=this._$AA.parentNode,v=null===(l=this.options)||void 0===l?void 0:l.scope;if(h instanceof ShadowRoot&&d(v)){var c=this._$AA,S=this._$AB;r.appendChild(p),this._$AA=p,this._$AB=null,s.call(this,t,i);var u=(null==t?void 0:t._$litType$)?this._$AH._$AD.el:document.createElement("template");if(function(t,i){var l,a=e(t),r=0!==a.length;r&&((l=document.createElement("style")).textContent=a.join("\n"),i.content.appendChild(l)),n.add(t),o.delete(t),window.ShadyCSS.prepareTemplateStyles(i,t),r&&window.ShadyCSS.nativeShadow&&null!==(l=i.content.querySelector("style"))&&i.content.appendChild(l)}(v,u),r.removeChild(p),null===(a=window.ShadyCSS)||void 0===a?void 0:a.nativeShadow){var w=u.content.querySelector("style");null!==w&&r.appendChild(w.cloneNode(!0))}h.insertBefore(r,S),this._$AA=c,this._$AB=S}else s.call(this,t,i)},h._$AC=function(n){var o,i=null===(o=this.options)||void 0===o?void 0:o.scope,a=l.get(i);void 0===a&&l.set(i,a=new Map);var r=a.get(n.strings);return void 0===r&&a.set(n.strings,r=new t(n,this.options)),r}}})},"function"==typeof define&&define.amd?define(t):t();