skatejs-named-slots
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.skatejsNamedSlots=t():e.skatejsNamedSlots=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.v1=void 0,n(1);var i=n(2),o=n(3),u=r(o);i.shadowDomV1||(0,u["default"])(),t.v1=u["default"]},function(e,t){try{var n=new window.CustomEvent("test");if(n.preventDefault(),n.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch(r){var i=function(e,t){var n,r;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent"),n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};i.prototype=window.Event.prototype,window.CustomEvent=i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=document.createElement("div");t.shadowDomV1=!!n.attachShadow},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=document.createElement("div");if(H["default"])return t.__innerHTML=e,t;for(var n=je.parseFromString("<div>"+e+"</div>","text/html").body.firstChild;n.hasChildNodes();){var r=n.firstChild;n.removeChild(r),t.appendChild(r)}return document.importNode(t,!0)}function o(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n}})}function u(e){return this[e]}function a(e){return e.item=u,e}function l(e){return!!me.get(e)}function s(e){return l(e)?"host":(0,K["default"])(e)?"slot":(0,z["default"])(e)?"root":"node"}function d(e,t){for(;e&&e!==document;){if(t(e))return e;e=e.parentNode}}function c(e){return e.getAttribute&&e.getAttribute("name")||"default"}function f(e){return e.getAttribute&&e.getAttribute("slot")||"default"}function h(e,t,n){if(_e.indexOf(t.nodeType)!==-1){var r=e.assignedNodes(),i=0===r.length,o=r.indexOf(n);Ce.set(t,e),i&&se.call(e.childNodes,function(t){return e.__removeChild(t)}),o>-1?(e.__insertBefore(t,void 0!==n?n:null),r.splice(o,0,t)):(e.__appendChild(t),r.push(t)),e.____triggerSlotChangeEvent()}}function v(e){var t=Ce.get(e);if(t){var n=t.assignedNodes(),r=n.indexOf(e);if(r>-1){var i=1===n.length;n.splice(r,1),Ce.set(e,null),t.__removeChild(e),i&&se.call(t.childNodes,function(e){return t.__appendChild(e)}),t.____triggerSlotChangeEvent()}}}function p(e,t){for(var n=e.childNodes,r=n.length,i=0;i<r;i++)if(n[i]===t)return i;return-1}function _(e,t,n,r){var i=p(e,n);(0,k.eachNodeOrFragmentNodes)(t,function(t,n){r(t,n),H["default"]?be.set(t,e):o(t,"parentNode",e),i>-1?le.splice.call(e.childNodes,i+n,0,t):le.push.call(e.childNodes,t)})}function g(e,t,n){var r=p(e,t);r>-1&&(n(t,0),H["default"]?be.set(t,null):o(t,"parentNode",null),le.splice.call(e.childNodes,r,1))}function N(e,t,n){_(e,t,n,function(t){e.__insertBefore(t,void 0!==n?n:null)})}function m(e,t,n){_(e,t,n,function(t){var r=me.get(e),i=we.get(r),o=i[f(t)];o&&h(o,t,n)})}function y(e,t){var n=c(t);H["default"]||Array.isArray(t.childNodes)||o(t,"childNodes",(0,Z["default"])(t.childNodes)),we.get(e)[n]=t,Ee.has(t)||Ee.set(t,e),(0,k.eachChildNode)(Oe.get(e),function(e){e.assignedSlot||n!==f(e)||h(t,e)})}function b(e,t,n){(0,k.eachNodeOrFragmentNodes)(t,function(t){if((0,K["default"])(t))y(e,t);else{var n=(0,$["default"])(t);if(n)for(var r=n.length,i=0;i<r;i++)y(e,n[i])}}),N(e,t,n)}function C(e,t,n){var r=0===e.assignedNodes().length;_(e,t,n,function(t){r&&e.__insertBefore(t,void 0!==n?n:null)})}function O(e,t){var n=0===e.assignedNodes().length;g(e,t,function(){n&&e.__removeChild(t)})}function w(e,t){g(e,t,function(){e.__removeChild(t)})}function E(e,t){g(e,t,function(){v(t)})}function j(e,t){var n=Array.prototype.slice.call(t.assignedNodes());n.forEach(v),delete we.get(e)[c(t)],Ee["delete"](t)}function M(e,t){g(e,t,function(){if((0,K["default"])(t))j(e,t);else{var n=(0,$["default"])(t);if(n)for(var r=0;r<n.length;r++)j(e,n[r])}e.__removeChild(t)})}function T(e){if((0,z["default"])(e))return e;if(e.parentNode)return T(e.parentNode)}function x(e,t,n){var r=s(e),i=t.parentNode,u=T(e);return H["default"]||Array.isArray(e.childNodes)||o(e,"childNodes",(0,Z["default"])(e.childNodes)),u&&"slot"===s(t)&&y(u,t),i&&"host"===s(i)&&(H["default"]?be.set(t,null):o(t,"parentNode",null)),!H["default"]&&i&&i.removeChild(t),"node"===r?H["default"]?(be.set(t,e),e.__insertBefore(t,void 0!==n?n:null)):N(e,t,n):"slot"===r?C(e,t,n):"host"===r?m(e,t,n):"root"===r?b(e,t,n):void 0}function P(e){if(H["default"]&&"slot"===s(e)&&e.__childNodes.length!==e.childNodes.length){for(;e.hasChildNodes();)e.removeChild(e.firstChild);se.call(e.__childNodes,function(t){return e.appendChild(t)})}}Object.defineProperty(t,"__esModule",{value:!0});var L=n(4),S=r(L),A=n(6),D=r(A),k=n(7),F=n(8),H=r(F),W=n(9),B=r(W),R=n(10),V=r(R),G=n(11),I=r(G),X=n(12),U=r(X),Y=n(13),$=r(Y),q=n(15),z=r(q),J=n(14),K=r(J),Q=n(16),Z=r(Q),ee=window,te=ee.Comment,ne=ee.CustomEvent,re=ee.DOMParser,ie=ee.HTMLElement,oe=ee.Node,ue=ee.SVGElement,ae=ee.Text,le=Array.prototype,se=le.forEach,de="_shadow_root_",ce=["childNodes","parentNode"],fe=["textContent"],he=["assignedSlot"],ve=["textContent"],pe=[],_e=[oe.ELEMENT_NODE,oe.TEXT_NODE],ge=new D["default"],Ne=new D["default"],me=new D["default"],ye=new D["default"],be=new D["default"],Ce=new D["default"],Oe=new D["default"],we=new D["default"],Ee=new D["default"],je=new re,Me={____assignedNodes:{get:function(){return this.______assignedNodes||(this.______assignedNodes=[])}},____isInFallbackMode:{get:function(){return 0===this.assignedNodes().length}},____slotChangeListeners:{get:function(){return"undefined"==typeof this.______slotChangeListeners&&(this.______slotChangeListeners=0),this.______slotChangeListeners},set:function(e){this.______slotChangeListeners=e}},____triggerSlotChangeEvent:{value:(0,S["default"])(function(){this.____slotChangeListeners&&this.dispatchEvent(new ne("slotchange",{bubbles:!1,cancelable:!1}))})},addEventListener:{value:function(e,t,n){return"slotchange"===e&&(0,K["default"])(this)&&this.____slotChangeListeners++,this.__addEventListener(e,t,n)}},appendChild:{value:function(e){return x(this,e),e}},assignedSlot:{get:function(){var e=Ce.get(this);if(!e)return null;var t=Ee.get(e),n=Oe.get(t),r=Ne.get(n);return"open"===r?e:null}},attachShadow:{value:function(e){var t=this,n=e&&e.mode;if("closed"!==n&&"open"!==n)throw new Error('You must specify { mode } as "open" or "closed" to attachShadow().');var r=me.get(this);if(r)return r;var i=a([].slice.call(this.childNodes)),u=document.createElement(e.polyfillShadowRootTagName||de);return Ne.set(this,n),me.set(this,u),Oe.set(u,this),we.set(u,{}),H["default"]?ye.set(this,i):o(this,"childNodes",i),i.forEach(function(e){t.__removeChild(e),H["default"]?be.set(e,t):o(e,"parentNode",t)}),this.__appendChild(u)}},childElementCount:{get:function(){return this.children.length}},childNodes:{get:function(){if(H["default"]&&"node"===s(this))return this.__childNodes;var e=ye.get(this);return e||ye.set(this,e=a([])),e}},children:{get:function(){var e=[];return(0,k.eachChildNode)(this,function(t){1===t.nodeType&&e.push(t)}),a(e)}},firstChild:{get:function(){return this.childNodes[0]||null}},firstElementChild:{get:function(){return this.children[0]||null}},assignedNodes:{value:function(){if((0,K["default"])(this)){var e=ge.get(this);return e||ge.set(this,e=[]),e}}},hasChildNodes:{value:function(){return this.childNodes.length>0}},innerHTML:{get:function(){function e(e){return e.nodeType===oe.ELEMENT_NODE&&e.nodeName.toLowerCase()in i}var t="",n=function(e){return e.outerHTML},r={};r[oe.ELEMENT_NODE]=n,r[oe.COMMENT_NODE]=U["default"];var i={style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,noscript:!0,plaintext:!0},o=e(this);return(0,k.eachChildNode)(this,function(e){var i=void 0;i=e.nodeType===oe.TEXT_NODE?o?I["default"]:V["default"]:r[e.nodeType]||n,t+=i(e)}),t},set:function(e){for(var t=i(e);this.hasChildNodes();)this.removeChild(this.firstChild);var n=(0,$["default"])(t);for(se.call(n,function(e){return P(e)});t.hasChildNodes();){var r=t.firstChild;t.removeChild(r),this.appendChild(r)}}},insertBefore:{value:function(e,t){return x(this,e,t),e}},lastChild:{get:function(){var e=this.childNodes;return e[e.length-1]||null}},lastElementChild:{get:function(){var e=this.children;return e[e.length-1]||null}},name:{get:function(){return this.getAttribute("name")},set:function(e){var t=this.name,n=this.__setAttribute("name",e);if(e===t)return n;if(!(0,K["default"])(this))return n;var r=Ee.get(this);return r&&(j(r,this),y(r,this)),n}},nextSibling:{get:function(){var e=this;return(0,k.eachChildNode)(this.parentNode,function(t,n,r){if(e===t)return r[n+1]||null})}},nextElementSibling:{get:function(){var e=this,t=void 0;return(0,k.eachChildNode)(this.parentNode,function(n){return t&&1===n.nodeType?n:void(e===n&&(t=!0))})}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t=Array.prototype.slice.call(this.attributes).map(function(e){return" "+e.name+(e.value?'="'+e.value+'"':"")}).join("");return"<"+e+t+">"+this.innerHTML+"</"+e+">"},set:function(e){if(this.parentNode){var t=i(e);this.parentNode.replaceChild(t.firstChild,this)}else{if(!H["default"])throw new Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");this.__outerHTML=e}}},parentElement:{get:function(){return d(this.parentNode,function(e){return 1===e.nodeType})}},parentNode:{get:function(){return be.get(this)||this.__parentNode||null}},previousSibling:{get:function(){var e=this;return(0,k.eachChildNode)(this.parentNode,function(t,n,r){if(e===t)return r[n-1]||null})}},previousElementSibling:{get:function(){var e=this,t=void 0;return(0,k.eachChildNode)(this.parentNode,function(n){return t&&e===n?t:void(1===n.nodeType&&(t=n))})}},removeChild:{value:function(e){var t=s(this);switch(t){case"node":if(H["default"])return be.set(e,null),this.__removeChild(e);w(this,e);break;case"slot":O(this,e);break;case"host":E(this,e);break;case"root":M(this,e)}return e}},removeEventListener:{value:function(e,t,n){return"slotchange"===e&&this.____slotChangeListeners&&(0,K["default"])(this)&&this.____slotChangeListeners--,this.__removeEventListener(e,t,n)}},replaceChild:{value:function(e,t){return this.insertBefore(e,t),this.removeChild(t)}},setAttribute:{value:function(e,t){return"slot"===e&&(this[e]=t),(0,K["default"])(this)&&"name"===e&&(this[e]=t),this.__setAttribute(e,t)}},shadowRoot:{get:function(){return"open"===Ne.get(this)?me.get(this):null}},slot:{get:function(){return this.getAttribute("slot")},set:function(e){var t=this.name,n=this.__setAttribute("slot",e);if(t===e)return n;var r=Ce.get(this),i=r&&Ee.get(r),o=i&&Oe.get(i);return o&&(E(o,this),m(o,this)),n}},textContent:{get:function(){var e="";return(0,k.eachChildNode)(this,function(t){t.nodeType!==oe.COMMENT_NODE&&(e+=t.textContent)}),e},set:function(e){for(;this.hasChildNodes();)this.removeChild(this.firstChild);e&&this.appendChild(document.createTextNode(e))}}};t["default"]=function(){var e=te.prototype,t=ie.prototype,n=ue&&ue.prototype,r=ae.prototype,i=document.createTextNode(""),o=document.createComment("");Object.keys(Me).forEach(function(u){var a=Me[u];if(a.configurable=!0,a.enumerable=!0,a.hasOwnProperty("value")&&(a.writable=!0),H["default"]||ce.indexOf(u)===-1){var l=(0,B["default"])(t,u),s=(0,B["default"])(r,u),d=(0,B["default"])(e,u),c=u in i&&fe.indexOf(u)===-1||~he.indexOf(u),f=u in o&&ve.indexOf(u)===-1||~pe.indexOf(u),h="__"+u;Object.defineProperty(t,u,a),n&&Object.defineProperty(n,u,a),l&&(Object.defineProperty(t,h,l),n&&Object.defineProperty(n,h,l)),c&&Object.defineProperty(r,u,a),c&&s&&Object.defineProperty(r,h,s),f&&Object.defineProperty(e,u,a),f&&d&&Object.defineProperty(e,h,d)}})}},function(e,t,n){var r=n(5);e.exports=function(e,t,n){function i(){var d=r()-l;d<t&&d>0?o=setTimeout(i,t-d):(o=null,n||(s=e.apply(a,u),o||(a=u=null)))}var o,u,a,l,s;return null==t&&(t=100),function(){a=this,u=arguments,l=r();var d=n&&!o;return o||(o=setTimeout(i,t)),d&&(s=e.apply(a,u),a=u=null),s}}},function(e,t){function n(){return(new Date).getTime()}e.exports=Date.now||n},function(e,t,n){void function(t,n,r){function i(e,t,n){return"function"==typeof t&&(n=t,t=o(n).replace(/_$/,"")),l(e,t,{configurable:!0,writable:!0,value:n})}function o(e){return"function"!=typeof e?"":"name"in e?e.name:s.call(e).match(f)[1]}function u(e){function t(t,i){return i||2===arguments.length?n.set(t,i):(i=n.get(t),i===r&&(i=e(t),n.set(t,i))),i}var n=new v;return e||(e=p),t}var a=Object.getOwnPropertyNames,l=Object.defineProperty,s=Function.prototype.toString,d=Object.create,c=Object.prototype.hasOwnProperty,f=/^\n?function\s?(\w*)?_?\(/,h=function(){function e(){var e=u(),r={};this.unlock=function(i){var o=f(i);if(c.call(o,e))return o[e](r);var u=d(null,t);return l(o,e,{value:new Function("s","l",n)(r,u)}),u}}var t={value:{writable:!0,value:r}},n="return function(k){if(k===s)return l}",o=d(null),u=function(){var e=Math.random().toString(36).slice(2);return e in o?u():o[e]=e},s=u(),f=function(e){if(c.call(e,s))return e[s];if(!Object.isExtensible(e))throw new TypeError("Object must be extensible");var t=d(null);return l(e,s,{value:t}),t};return i(Object,function(e){var t=a(e);return c.call(e,s)&&t.splice(t.indexOf(s),1),t}),i(e.prototype,function(e){return this.unlock(e).value}),i(e.prototype,function(e,t){this.unlock(e).value=t}),e}(),v=function(e){function u(e){return this===t||null==this||this===u.prototype?new u(e):(v(this,new h),void _(this,e))}function a(e){f(e);var t=p(this).get(e);return t===n?r:t}function l(e,t){f(e),p(this).set(e,t===r?n:t)}function s(e){return f(e),p(this).get(e)!==r}function d(e){f(e);var t=p(this),n=t.get(e)!==r;return t.set(e,r),n}function c(){return p(this),"[object WeakMap]"}var f=function(e){if(null==e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Invalid WeakMap key")},v=function(t,n){var r=e.unlock(t);if(r.value)throw new TypeError("Object is already a WeakMap");r.value=n},p=function(t){var n=e.unlock(t).value;if(!n)throw new TypeError("WeakMap is not generic");return n},_=function(e,t){null!==t&&"object"==typeof t&&"function"==typeof t.forEach&&t.forEach(function(n,r){n instanceof Array&&2===n.length&&l.call(e,t[r][0],t[r][1])})};try{var g=("return "+d).replace("e_","\\u0065"),N=new Function("unwrap","validate",g)(p,f)}catch(m){var N=d}var g=(""+Object).split("Object"),y=function(){return g[0]+o(this)+g[1]};i(y,y);var b={__proto__:[]}instanceof Array?function(e){e.__proto__=y}:function(e){i(e,y)};return b(u),[c,a,l,s,N].forEach(function(e){i(u.prototype,e),b(e)}),u}(new h),p=Object.create?function(){return Object.create(null)}:function(){return{}};e.exports=v,v.createStorage=u,t.WeakMap&&(t.WeakMap.createStorage=u)}((0,eval)("this"))},function(e,t){"use strict";function n(e,t){if(e)for(var n=e.childNodes,r=n.length,i=0;i<r;i++){var o=t(n[i],i,n);if("undefined"!=typeof o)return o}}function r(e){for(var t=[],n=e.length-1;n>=0;n--)t.push(e[n]);return t}function i(e,t){if(e instanceof u)for(var n=e.childNodes,i=n.length,o=i-1;o>=0;o--){var a=r(e.childNodes)[o];t(a,o)}else t(e,0)}Object.defineProperty(t,"__esModule",{value:!0}),t.eachChildNode=n,t.eachNodeOrFragmentNodes=i;var o=window,u=o.DocumentFragment},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=r(i),u=window,a=u.Element,l=(0,o["default"])(a.prototype,"innerHTML");t["default"]=!!l},function(e,t){"use strict";function n(e,t){for(var n=void 0;e&&!(n=Object.getOwnPropertyDescriptor(e,t));)e=Object.getPrototypeOf(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){e instanceof i&&(e=o);var r=n(e,t);if(r){var u=r.get,a=r.set,l={configurable:!0,enumerable:!0};if(u)return l.get=u,l.set=a,l;if("function"==typeof e[t])return l.value=e[t],l}var s=Object.getOwnPropertyDescriptor(e,t);if(s&&s.get)return s};var r=window,i=r.Node,o=document.createElement("div")},function(e,t){"use strict";function n(e){return e.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return e.textContent}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return e.text||"<!--"+e.textContent+"-->"}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.childNodes;if(!n||[l.ELEMENT_NODE,l.DOCUMENT_FRAGMENT_NODE].indexOf(e.nodeType)===-1)return t;for(var r=n.length,o=0;o<r;o++){var a=n[o];(0,u["default"])(a)&&t.push(a),i(a,t)}return t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(14),u=r(o),a=window,l=a.Node},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return"SLOT"===e.tagName}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return"_SHADOW_ROOT_"===e.tagName}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return Array.prototype.slice.call(e)}}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.skatejsNamedSlots=t():e.skatejsNamedSlots=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.v1=void 0,n(1);var i=n(2),o=n(3),u=r(o);i.shadowDomV1||(0,u["default"])(),t.v1=u["default"]},function(e,t){try{var n=new window.CustomEvent("test");if(n.preventDefault(),n.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch(r){var i=function(e,t){var n,r;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent"),n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};i.prototype=window.Event.prototype,window.CustomEvent=i}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=document.createElement("div");t.shadowDomV1=!!n.attachShadow},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=document.createElement("div");if(F["default"])return t.__innerHTML=e,t;for(var n=je.parseFromString("<div>"+e+"</div>","text/html").body.firstChild;n.hasChildNodes();){var r=n.firstChild;n.removeChild(r),t.appendChild(r)}return document.importNode(t,!0)}function o(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n}})}function u(e){return this[e]}function a(e){return e.item=u,e}function s(e){return!!be.get(e)}function l(e){return s(e)?"host":(0,Q["default"])(e)?"slot":(0,J["default"])(e)?"root":"node"}function d(e,t){for(;e&&e!==document;){if(t(e))return e;e=e.parentNode}}function f(e){return e.getAttribute&&e.getAttribute("name")||"default"}function c(e){return e.getAttribute&&e.getAttribute("slot")||"default"}function h(e,t,n){if(ve.indexOf(t.nodeType)!==-1){var r=e.assignedNodes(),i=0===r.length,o=r.indexOf(n);Oe.set(t,e),i&&le.call(e.childNodes,function(t){return e.__removeChild(t)}),o>-1?(e.__insertBefore(t,void 0!==n?n:null),r.splice(o,0,t)):(e.__appendChild(t),r.push(t)),e.____triggerSlotChangeEvent()}}function _(e){var t=Oe.get(e);if(t){var n=t.assignedNodes(),r=n.indexOf(e);if(r>-1){var i=1===n.length;n.splice(r,1),Oe.set(e,null),t.__removeChild(e),i&&le.call(t.childNodes,function(e){return t.__appendChild(e)}),t.____triggerSlotChangeEvent()}}}function p(e,t){for(var n=e.childNodes,r=n.length,i=0;i<r;i++)if(n[i]===t)return i;return-1}function v(e,t,n,r){var i=p(e,n);(0,S.eachNodeOrFragmentNodes)(t,function(t,n){r(t,n),F["default"]?Ne.set(t,e):o(t,"parentNode",e),i>-1?se.splice.call(e.childNodes,i+n,0,t):se.push.call(e.childNodes,t)})}function g(e,t,n){var r=p(e,t);r>-1&&(n(t,0),F["default"]?Ne.set(t,null):o(t,"parentNode",null),se.splice.call(e.childNodes,r,1))}function y(e,t,n){v(e,t,n,function(t){e.__insertBefore(t,void 0!==n?n:null)})}function b(e,t,n){v(e,t,n,function(t){var r=be.get(e),i=we.get(r),o=i[c(t)];o&&h(o,t,n)})}function m(e,t){var n=f(t);F["default"]||Array.isArray(t.childNodes)||o(t,"childNodes",(0,$["default"])(t.childNodes)),we.get(e)[n]=t,Ee.has(t)||Ee.set(t,e),(0,S.eachChildNode)(Ce.get(e),function(e){e.assignedSlot||n!==c(e)||h(t,e)})}function N(e,t,n){(0,S.eachNodeOrFragmentNodes)(t,function(t){if((0,Q["default"])(t))m(e,t);else{var n=(0,Y["default"])(t);if(n)for(var r=n.length,i=0;i<r;i++)m(e,n[i])}}),y(e,t,n)}function O(e,t,n){var r=0===e.assignedNodes().length;v(e,t,n,function(t){r&&e.__insertBefore(t,void 0!==n?n:null)})}function C(e,t){var n=0===e.assignedNodes().length;g(e,t,function(){n&&e.__removeChild(t)})}function w(e,t){g(e,t,function(){e.__removeChild(t)})}function E(e,t){g(e,t,function(){_(t)})}function j(e,t){var n=Array.prototype.slice.call(t.assignedNodes());n.forEach(_),delete we.get(e)[f(t)],Ee["delete"](t)}function x(e,t){g(e,t,function(){if((0,Q["default"])(t))j(e,t);else{var n=(0,Y["default"])(t);if(n)for(var r=0;r<n.length;r++)j(e,n[r])}e.__removeChild(t)})}function M(e){if((0,J["default"])(e))return e;if(e.parentNode)return M(e.parentNode)}function P(e,t,n){var r=l(e),i=t.parentNode,u=M(e);return F["default"]||Array.isArray(e.childNodes)||o(e,"childNodes",(0,$["default"])(e.childNodes)),u&&"slot"===l(t)&&m(u,t),i&&"host"===l(i)&&(F["default"]?Ne.set(t,null):o(t,"parentNode",null)),!F["default"]&&i&&i.removeChild(t),"node"===r?F["default"]?(Ne.set(t,e),e.__insertBefore(t,void 0!==n?n:null)):y(e,t,n):"slot"===r?O(e,t,n):"host"===r?b(e,t,n):"root"===r?N(e,t,n):void 0}function T(e){if(F["default"]&&"slot"===l(e)&&e.__childNodes.length!==e.childNodes.length){for(;e.hasChildNodes();)e.removeChild(e.firstChild);le.call(e.__childNodes,function(t){return e.appendChild(t)})}}Object.defineProperty(t,"__esModule",{value:!0});var L=n(4),A=r(L),k=n(6),D=r(k),S=n(7),H=n(8),F=r(H),W=n(9),B=r(W),R=n(10),V=r(R),z=n(11),U=r(z),G=n(12),X=r(G),I=n(13),Y=r(I),q=n(15),J=r(q),K=n(14),Q=r(K),Z=n(16),$=r(Z),ee=window,te=ee.Comment,ne=ee.CustomEvent,re=ee.DOMParser,ie=ee.HTMLElement,oe=ee.Node,ue=ee.SVGElement,ae=ee.Text,se=Array.prototype,le=se.forEach,de="_shadow_root_",fe=["childNodes","parentNode"],ce=["textContent"],he=["assignedSlot"],_e=["textContent"],pe=[],ve=[oe.ELEMENT_NODE,oe.TEXT_NODE],ge=new D["default"],ye=new D["default"],be=new D["default"],me=new D["default"],Ne=new D["default"],Oe=new D["default"],Ce=new D["default"],we=new D["default"],Ee=new D["default"],je=new re,xe={____assignedNodes:{get:function(){return this.______assignedNodes||(this.______assignedNodes=[])}},____isInFallbackMode:{get:function(){return 0===this.assignedNodes().length}},____slotChangeListeners:{get:function(){return"undefined"==typeof this.______slotChangeListeners&&(this.______slotChangeListeners=0),this.______slotChangeListeners},set:function(e){this.______slotChangeListeners=e}},____triggerSlotChangeEvent:{value:(0,A["default"])(function(){this.____slotChangeListeners&&this.dispatchEvent(new ne("slotchange",{bubbles:!1,cancelable:!1}))})},addEventListener:{value:function(e,t,n){return"slotchange"===e&&(0,Q["default"])(this)&&this.____slotChangeListeners++,this.__addEventListener(e,t,n)}},appendChild:{value:function(e){return P(this,e),e}},assignedSlot:{get:function(){var e=Oe.get(this);if(!e)return null;var t=Ee.get(e),n=Ce.get(t),r=ye.get(n);return"open"===r?e:null}},attachShadow:{value:function(e){var t=this,n=e&&e.mode;if("closed"!==n&&"open"!==n)throw new Error('You must specify { mode } as "open" or "closed" to attachShadow().');var r=be.get(this);if(r)return r;var i=a([].slice.call(this.childNodes)),u=document.createElement(e.polyfillShadowRootTagName||de);return ye.set(this,n),be.set(this,u),Ce.set(u,this),we.set(u,{}),F["default"]?me.set(this,i):o(this,"childNodes",i),i.forEach(function(e){t.__removeChild(e),F["default"]?Ne.set(e,t):o(e,"parentNode",t)}),this.__appendChild(u)}},childElementCount:{get:function(){return this.children.length}},childNodes:{get:function(){if(F["default"]&&"node"===l(this))return this.__childNodes;var e=me.get(this);return e||me.set(this,e=a([])),e}},children:{get:function(){var e=[];return(0,S.eachChildNode)(this,function(t){1===t.nodeType&&e.push(t)}),a(e)}},firstChild:{get:function(){return this.childNodes[0]||null}},firstElementChild:{get:function(){return this.children[0]||null}},assignedNodes:{value:function(){if((0,Q["default"])(this)){var e=ge.get(this);return e||ge.set(this,e=[]),e}}},hasChildNodes:{value:function(){return this.childNodes.length>0}},innerHTML:{get:function(){function e(e){return e.nodeType===oe.ELEMENT_NODE&&e.nodeName.toLowerCase()in i}var t="",n=function(e){return e.outerHTML},r={};r[oe.ELEMENT_NODE]=n,r[oe.COMMENT_NODE]=X["default"];var i={style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,noscript:!0,plaintext:!0},o=e(this);return(0,S.eachChildNode)(this,function(e){var i=void 0;i=e.nodeType===oe.TEXT_NODE?o?U["default"]:V["default"]:r[e.nodeType]||n,t+=i(e)}),t},set:function(e){for(var t=i(e);this.hasChildNodes();)this.removeChild(this.firstChild);var n=(0,Y["default"])(t);for(le.call(n,function(e){return T(e)});t.hasChildNodes();){var r=t.firstChild;t.removeChild(r),this.appendChild(r)}}},insertBefore:{value:function(e,t){return P(this,e,t),e}},lastChild:{get:function(){var e=this.childNodes;return e[e.length-1]||null}},lastElementChild:{get:function(){var e=this.children;return e[e.length-1]||null}},name:{get:function(){return this.getAttribute("name")},set:function(e){var t=this.name,n=this.__setAttribute("name",e);if(e===t)return n;if(!(0,Q["default"])(this))return n;var r=Ee.get(this);return r&&(j(r,this),m(r,this)),n}},nextSibling:{get:function(){var e=this;return(0,S.eachChildNode)(this.parentNode,function(t,n,r){if(e===t)return r[n+1]||null})}},nextElementSibling:{get:function(){var e=this,t=void 0;return(0,S.eachChildNode)(this.parentNode,function(n){return t&&1===n.nodeType?n:void(e===n&&(t=!0))})}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t=Array.prototype.slice.call(this.attributes).map(function(e){return" "+e.name+(e.value?'="'+e.value+'"':"")}).join("");return"<"+e+t+">"+this.innerHTML+"</"+e+">"},set:function(e){if(this.parentNode){var t=i(e);this.parentNode.replaceChild(t.firstChild,this)}else{if(!F["default"])throw new Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");this.__outerHTML=e}}},parentElement:{get:function(){return d(this.parentNode,function(e){return 1===e.nodeType})}},parentNode:{get:function(){return Ne.get(this)||this.__parentNode||null}},previousSibling:{get:function(){var e=this;return(0,S.eachChildNode)(this.parentNode,function(t,n,r){if(e===t)return r[n-1]||null})}},previousElementSibling:{get:function(){var e=this,t=void 0;return(0,S.eachChildNode)(this.parentNode,function(n){return t&&e===n?t:void(1===n.nodeType&&(t=n))})}},removeChild:{value:function(e){var t=l(this);switch(t){case"node":if(F["default"])return Ne.set(e,null),this.__removeChild(e);w(this,e);break;case"slot":C(this,e);break;case"host":E(this,e);break;case"root":x(this,e)}return e}},removeEventListener:{value:function(e,t,n){return"slotchange"===e&&this.____slotChangeListeners&&(0,Q["default"])(this)&&this.____slotChangeListeners--,this.__removeEventListener(e,t,n)}},replaceChild:{value:function(e,t){return this.insertBefore(e,t),this.removeChild(t)}},setAttribute:{value:function(e,t){return"slot"===e&&(this[e]=t),(0,Q["default"])(this)&&"name"===e&&(this[e]=t),this.__setAttribute(e,t)}},shadowRoot:{get:function(){return"open"===ye.get(this)?be.get(this):null}},slot:{get:function(){return this.getAttribute("slot")},set:function(e){var t=this.name,n=this.__setAttribute("slot",e);if(t===e)return n;var r=Oe.get(this),i=r&&Ee.get(r),o=i&&Ce.get(i);return o&&(E(o,this),b(o,this)),n}},textContent:{get:function(){var e="";return(0,S.eachChildNode)(this,function(t){t.nodeType!==oe.COMMENT_NODE&&(e+=t.textContent)}),e},set:function(e){for(;this.hasChildNodes();)this.removeChild(this.firstChild);e&&this.appendChild(document.createTextNode(e))}}};t["default"]=function(){var e=te.prototype,t=ie.prototype,n=ue&&ue.prototype,r=ae.prototype,i=document.createTextNode(""),o=document.createComment("");Object.keys(xe).forEach(function(u){var a=xe[u];if(a.configurable=!0,a.enumerable=!0,a.hasOwnProperty("value")&&(a.writable=!0),F["default"]||fe.indexOf(u)===-1){var s=(0,B["default"])(t,u),l=(0,B["default"])(r,u),d=(0,B["default"])(e,u),f=u in i&&ce.indexOf(u)===-1||~he.indexOf(u),c=u in o&&_e.indexOf(u)===-1||~pe.indexOf(u),h="__"+u;Object.defineProperty(t,u,a),n&&Object.defineProperty(n,u,a),s&&(Object.defineProperty(t,h,s),n&&Object.defineProperty(n,h,s)),f&&Object.defineProperty(r,u,a),f&&l&&Object.defineProperty(r,h,l),c&&Object.defineProperty(e,u,a),c&&d&&Object.defineProperty(e,h,d)}})}},function(e,t,n){var r=n(5);e.exports=function(e,t,n){function i(){var d=r()-s;d<t&&d>0?o=setTimeout(i,t-d):(o=null,n||(l=e.apply(a,u),o||(a=u=null)))}var o,u,a,s,l;return null==t&&(t=100),function(){a=this,u=arguments,s=r();var d=n&&!o;return o||(o=setTimeout(i,t)),d&&(l=e.apply(a,u),a=u=null),l}}},function(e,t){function n(){return(new Date).getTime()}e.exports=Date.now||n},function(e,t){!function(){"use strict";function t(e){e.permitHostObjects___&&e.permitHostObjects___(t)}function n(e){return!(e.substr(0,h.length)==h&&"___"===e.substr(e.length-3))}function r(e){if(e!==Object(e))throw new TypeError("Not an object: "+e);var t=e[_];if(t&&t.key===e)return t;if(c(e)){t={key:e};try{return f(e,_,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch(n){return}}}function i(e){return e.prototype=null,Object.freeze(e)}function o(){y||"undefined"==typeof console||(y=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}if("undefined"==typeof ses||!ses.ok||ses.ok()){"undefined"!=typeof ses&&(ses.weakMapPermitHostObjects=t);var u=!1;if("function"==typeof WeakMap){var a=WeakMap;if("undefined"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var s=new a,l=Object.freeze({});if(s.set(l,1),1===s.get(l))return void(e.exports=WeakMap);u=!0}}var d=(Object.prototype.hasOwnProperty,Object.getOwnPropertyNames),f=Object.defineProperty,c=Object.isExtensible,h="weakmap:",_=h+"ident:"+Math.random()+"___";if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues&&"function"==typeof ArrayBuffer&&"function"==typeof Uint8Array){var p=new ArrayBuffer(25),v=new Uint8Array(p);crypto.getRandomValues(v),_=h+"rand:"+Array.prototype.map.call(v,function(e){return(e%36).toString(36)}).join("")+"___"}if(f(Object,"getOwnPropertyNames",{value:function(e){return d(e).filter(n)}}),"getPropertyNames"in Object){var g=Object.getPropertyNames;f(Object,"getPropertyNames",{value:function(e){return g(e).filter(n)}})}!function(){var e=Object.freeze;f(Object,"freeze",{value:function(t){return r(t),e(t)}});var t=Object.seal;f(Object,"seal",{value:function(e){return r(e),t(e)}});var n=Object.preventExtensions;f(Object,"preventExtensions",{value:function(e){return r(e),n(e)}})}();var y=!1,b=0,m=function(){function e(e,t){var n,i=r(e);return i?l in i?i[l]:t:(n=a.indexOf(e),n>=0?s[n]:t)}function t(e){var t=r(e);return t?l in t:a.indexOf(e)>=0}function n(e,t){var n,i=r(e);return i?i[l]=t:(n=a.indexOf(e),n>=0?s[n]=t:(n=a.length,s[n]=t,a[n]=e)),this}function u(e){var t,n,i=r(e);return i?l in i&&delete i[l]:(t=a.indexOf(e),!(t<0)&&(n=a.length-1,a[t]=void 0,s[t]=s[n],a[t]=a[n],a.length=n,s.length=n,!0))}this instanceof m||o();var a=[],s=[],l=b++;return Object.create(m.prototype,{get___:{value:i(e)},has___:{value:i(t)},set___:{value:i(n)},delete___:{value:i(u)}})};m.prototype=Object.create(Object.prototype,{get:{value:function(e,t){return this.get___(e,t)},writable:!0,configurable:!0},has:{value:function(e){return this.has___(e)},writable:!0,configurable:!0},set:{value:function(e,t){return this.set___(e,t)},writable:!0,configurable:!0},"delete":{value:function(e){return this.delete___(e)},writable:!0,configurable:!0}}),"function"==typeof a?!function(){function n(){function e(e,t){return d?l.has(e)?l.get(e):d.get___(e,t):l.get(e,t)}function n(e){return l.has(e)||!!d&&d.has___(e)}function r(e){var t=!!l["delete"](e);return d?d.delete___(e)||t:t}this instanceof m||o();var s,l=new a,d=void 0,f=!1;return s=u?function(e,t){return l.set(e,t),l.has(e)||(d||(d=new m),d.set(e,t)),this}:function(e,t){if(f)try{l.set(e,t)}catch(n){d||(d=new m),d.set___(e,t)}else l.set(e,t);return this},Object.create(m.prototype,{get___:{value:i(e)},has___:{value:i(n)},set___:{value:i(s)},delete___:{value:i(r)},permitHostObjects___:{value:i(function(e){if(e!==t)throw new Error("bogus call to permitHostObjects___");f=!0})}})}u&&"undefined"!=typeof Proxy&&(Proxy=void 0),n.prototype=m.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!=typeof Proxy&&(Proxy=void 0),e.exports=m)}}()},function(e,t){"use strict";function n(e,t){if(e)for(var n=e.childNodes,r=n.length,i=0;i<r;i++){var o=t(n[i],i,n);if("undefined"!=typeof o)return o}}function r(e){for(var t=[],n=e.length-1;n>=0;n--)t.push(e[n]);return t}function i(e,t){if(e instanceof u)for(var n=e.childNodes,i=n.length,o=i-1;o>=0;o--){var a=r(e.childNodes)[o];t(a,o)}else t(e,0)}Object.defineProperty(t,"__esModule",{value:!0}),t.eachChildNode=n,t.eachNodeOrFragmentNodes=i;var o=window,u=o.DocumentFragment},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=r(i),u=window,a=u.Element,s=(0,o["default"])(a.prototype,"innerHTML");t["default"]=!!s},function(e,t){"use strict";function n(e,t){for(var n=void 0;e&&!(n=Object.getOwnPropertyDescriptor(e,t));)e=Object.getPrototypeOf(e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t){e instanceof i&&(e=o);var r=n(e,t);if(r){var u=r.get,a=r.set,s={configurable:!0,enumerable:!0};if(u)return s.get=u,s.set=a,s;if("function"==typeof e[t])return s.value=e[t],s}var l=Object.getOwnPropertyDescriptor(e,t);if(l&&l.get)return l};var r=window,i=r.Node,o=document.createElement("div")},function(e,t){"use strict";function n(e){return e.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return e.textContent}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return e.text||"<!--"+e.textContent+"-->"}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.childNodes;if(!n||[s.ELEMENT_NODE,s.DOCUMENT_FRAGMENT_NODE].indexOf(e.nodeType)===-1)return t;for(var r=n.length,o=0;o<r;o++){var a=n[o];(0,u["default"])(a)&&t.push(a),i(a,t)}return t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var o=n(14),u=r(o),a=window,s=a.Node},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return"SLOT"===e.tagName}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return"_SHADOW_ROOT_"===e.tagName}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){return Array.prototype.slice.call(e)}}])}); | ||
//# sourceMappingURL=index-with-deps.min.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('custom-event-polyfill'), require('debounce'), require('weakmap')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'custom-event-polyfill', 'debounce', 'weakmap'], factory) : | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('custom-event-polyfill'), require('debounce'), require('weak-map')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'custom-event-polyfill', 'debounce', 'weak-map'], factory) : | ||
(factory((global.skatejsNamedSlots = global.skatejsNamedSlots || {}),global.customEventPolyfill,global.debounce,global.WeakMap)); | ||
@@ -5,0 +5,0 @@ }(this, (function (exports,customEventPolyfill,debounce,WeakMap) { |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("custom-event-polyfill"),require("debounce"),require("weakmap")):"function"==typeof define&&define.amd?define(["exports","custom-event-polyfill","debounce","weakmap"],t):t(e.skatejsNamedSlots=e.skatejsNamedSlots||{},e.customEventPolyfill,e.debounce,e.WeakMap)}(this,function(e,t,n,i){function r(e,t){if(e)for(var n=e.childNodes,i=n.length,r=0;r<i;r++){var o=t(n[r],r,n);if("undefined"!=typeof o)return o}}function o(e){for(var t=[],n=e.length-1;n>=0;n--)t.push(e[n]);return t}function s(e,t){if(e instanceof W)for(var n=e.childNodes,i=n.length,r=i-1;r>=0;r--){var s=o(e.childNodes)[r];t(s,r)}else t(e,0)}function u(e,t){for(var n=void 0;e&&!(n=Object.getOwnPropertyDescriptor(e,t));)e=Object.getPrototypeOf(e);return n}function l(e){return e.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function d(e){return e.textContent}function a(e){return e.text||"<!--"+e.textContent+"-->"}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.childNodes;if(!n||[$.ELEMENT_NODE,$.DOCUMENT_FRAGMENT_NODE].indexOf(e.nodeType)===-1)return t;for(var i=n.length,r=0;r<i;r++){var o=n[r];Q(o)&&t.push(o),h(o,t)}return t}function c(e){var t=document.createElement("div");if(K)return t.__innerHTML=e,t;for(var n=xe.parseFromString("<div>"+e+"</div>","text/html").body.firstChild;n.hasChildNodes();){var i=n.firstChild;n.removeChild(i),t.appendChild(i)}return document.importNode(t,!0)}function f(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n}})}function _(e){return this[e]}function v(e){return e.item=_,e}function g(e){return!!Ee.get(e)}function p(e){return g(e)?"host":Q(e)?"slot":ee(e)?"root":"node"}function N(e,t){for(;e&&e!==document;){if(t(e))return e;e=e.parentNode}}function m(e){return e.getAttribute&&e.getAttribute("name")||"default"}function C(e){return e.getAttribute&&e.getAttribute("slot")||"default"}function E(e,t,n){if(Ne.indexOf(t.nodeType)!==-1){var i=e.assignedNodes(),r=0===i.length,o=i.indexOf(n);Oe.set(t,e),r&&he.call(e.childNodes,function(t){return e.__removeChild(t)}),o>-1?(e.__insertBefore(t,void 0!==n?n:null),i.splice(o,0,t)):(e.__appendChild(t),i.push(t)),e.____triggerSlotChangeEvent()}}function y(e){var t=Oe.get(e);if(t){var n=t.assignedNodes(),i=n.indexOf(e);if(i>-1){var r=1===n.length;n.splice(i,1),Oe.set(e,null),t.__removeChild(e),r&&he.call(t.childNodes,function(e){return t.__appendChild(e)}),t.____triggerSlotChangeEvent()}}}function b(e,t){for(var n=e.childNodes,i=n.length,r=0;r<i;r++)if(n[r]===t)return r;return-1}function O(e,t,n,i){var r=b(e,n);s(t,function(t,n){i(t,n),K?be.set(t,e):f(t,"parentNode",e),r>-1?ae.splice.call(e.childNodes,r+n,0,t):ae.push.call(e.childNodes,t)})}function w(e,t,n){var i=b(e,t);i>-1&&(n(t,0),K?be.set(t,null):f(t,"parentNode",null),ae.splice.call(e.childNodes,i,1))}function T(e,t,n){O(e,t,n,function(t){e.__insertBefore(t,void 0!==n?n:null)})}function L(e,t,n){O(e,t,n,function(t){var i=Ee.get(e),r=Te.get(i),o=r[C(t)];o&&E(o,t,n)})}function x(e,t){var n=m(t);K||Array.isArray(t.childNodes)||f(t,"childNodes",te(t.childNodes)),Te.get(e)[n]=t,Le.has(t)||Le.set(t,e),r(we.get(e),function(e){e.assignedSlot||n!==C(e)||E(t,e)})}function M(e,t,n){s(t,function(t){if(Q(t))x(e,t);else{var n=h(t);if(n)for(var i=n.length,r=0;r<i;r++)x(e,n[r])}}),T(e,t,n)}function A(e,t,n){var i=0===e.assignedNodes().length;O(e,t,n,function(t){i&&e.__insertBefore(t,void 0!==n?n:null)})}function S(e,t){var n=0===e.assignedNodes().length;w(e,t,function(){n&&e.__removeChild(t)})}function j(e,t){w(e,t,function(){e.__removeChild(t)})}function P(e,t){w(e,t,function(){y(t)})}function D(e,t){var n=Array.prototype.slice.call(t.assignedNodes());n.forEach(y),delete Te.get(e)[m(t)],Le.delete(t)}function k(e,t){w(e,t,function(){if(Q(t))D(e,t);else{var n=h(t);if(n)for(var i=0;i<n.length;i++)D(e,n[i])}e.__removeChild(t)})}function H(e){if(ee(e))return e;if(e.parentNode)return H(e.parentNode)}function B(e,t,n){var i=p(e),r=t.parentNode,o=H(e);return K||Array.isArray(e.childNodes)||f(e,"childNodes",te(e.childNodes)),o&&"slot"===p(t)&&x(o,t),r&&"host"===p(r)&&(K?be.set(t,null):f(t,"parentNode",null)),!K&&r&&r.removeChild(t),"node"===i?K?(be.set(t,e),e.__insertBefore(t,void 0!==n?n:null)):T(e,t,n):"slot"===i?A(e,t,n):"host"===i?L(e,t,n):"root"===i?M(e,t,n):void 0}function F(e){if(K&&"slot"===p(e)&&e.__childNodes.length!==e.childNodes.length){for(;e.hasChildNodes();)e.removeChild(e.firstChild);he.call(e.__childNodes,function(t){return e.appendChild(t)})}}n="default"in n?n.default:n,i="default"in i?i.default:i;var R=document.createElement("div"),q=!!R.attachShadow,G=window,W=G.DocumentFragment,X=window,I=X.Node,U=document.createElement("div"),V=function(e,t){e instanceof I&&(e=U);var n=u(e,t);if(n){var i=n.get,r=n.set,o={configurable:!0,enumerable:!0};if(i)return o.get=i,o.set=r,o;if("function"==typeof e[t])return o.value=e[t],o}var s=Object.getOwnPropertyDescriptor(e,t);if(s&&s.get)return s},Y=window,z=Y.Element,J=V(z.prototype,"innerHTML"),K=!!J,Q=function(e){return"SLOT"===e.tagName},Z=window,$=Z.Node,ee=function(e){return"_SHADOW_ROOT_"===e.tagName},te=function(e){return Array.prototype.slice.call(e)},ne=window,ie=ne.Comment,re=ne.CustomEvent,oe=ne.DOMParser,se=ne.HTMLElement,ue=ne.Node,le=ne.SVGElement,de=ne.Text,ae=Array.prototype,he=ae.forEach,ce="_shadow_root_",fe=["childNodes","parentNode"],_e=["textContent"],ve=["assignedSlot"],ge=["textContent"],pe=[],Ne=[ue.ELEMENT_NODE,ue.TEXT_NODE],me=new i,Ce=new i,Ee=new i,ye=new i,be=new i,Oe=new i,we=new i,Te=new i,Le=new i,xe=new oe,Me={____assignedNodes:{get:function(){return this.______assignedNodes||(this.______assignedNodes=[])}},____isInFallbackMode:{get:function(){return 0===this.assignedNodes().length}},____slotChangeListeners:{get:function(){return"undefined"==typeof this.______slotChangeListeners&&(this.______slotChangeListeners=0),this.______slotChangeListeners},set:function(e){this.______slotChangeListeners=e}},____triggerSlotChangeEvent:{value:n(function(){this.____slotChangeListeners&&this.dispatchEvent(new re("slotchange",{bubbles:!1,cancelable:!1}))})},addEventListener:{value:function(e,t,n){return"slotchange"===e&&Q(this)&&this.____slotChangeListeners++,this.__addEventListener(e,t,n)}},appendChild:{value:function(e){return B(this,e),e}},assignedSlot:{get:function(){var e=Oe.get(this);if(!e)return null;var t=Le.get(e),n=we.get(t),i=Ce.get(n);return"open"===i?e:null}},attachShadow:{value:function(e){var t=this,n=e&&e.mode;if("closed"!==n&&"open"!==n)throw new Error('You must specify { mode } as "open" or "closed" to attachShadow().');var i=Ee.get(this);if(i)return i;var r=v([].slice.call(this.childNodes)),o=document.createElement(e.polyfillShadowRootTagName||ce);return Ce.set(this,n),Ee.set(this,o),we.set(o,this),Te.set(o,{}),K?ye.set(this,r):f(this,"childNodes",r),r.forEach(function(e){t.__removeChild(e),K?be.set(e,t):f(e,"parentNode",t)}),this.__appendChild(o)}},childElementCount:{get:function(){return this.children.length}},childNodes:{get:function(){if(K&&"node"===p(this))return this.__childNodes;var e=ye.get(this);return e||ye.set(this,e=v([])),e}},children:{get:function(){var e=[];return r(this,function(t){1===t.nodeType&&e.push(t)}),v(e)}},firstChild:{get:function(){return this.childNodes[0]||null}},firstElementChild:{get:function(){return this.children[0]||null}},assignedNodes:{value:function(){if(Q(this)){var e=me.get(this);return e||me.set(this,e=[]),e}}},hasChildNodes:{value:function(){return this.childNodes.length>0}},innerHTML:{get:function(){function e(e){return e.nodeType===ue.ELEMENT_NODE&&e.nodeName.toLowerCase()in o}var t="",n=function(e){return e.outerHTML},i={};i[ue.ELEMENT_NODE]=n,i[ue.COMMENT_NODE]=a;var o={style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,noscript:!0,plaintext:!0},s=e(this);return r(this,function(e){var r=void 0;r=e.nodeType===ue.TEXT_NODE?s?d:l:i[e.nodeType]||n,t+=r(e)}),t},set:function(e){for(var t=c(e);this.hasChildNodes();)this.removeChild(this.firstChild);var n=h(t);for(he.call(n,function(e){return F(e)});t.hasChildNodes();){var i=t.firstChild;t.removeChild(i),this.appendChild(i)}}},insertBefore:{value:function(e,t){return B(this,e,t),e}},lastChild:{get:function(){var e=this.childNodes;return e[e.length-1]||null}},lastElementChild:{get:function(){var e=this.children;return e[e.length-1]||null}},name:{get:function(){return this.getAttribute("name")},set:function(e){var t=this.name,n=this.__setAttribute("name",e);if(e===t)return n;if(!Q(this))return n;var i=Le.get(this);return i&&(D(i,this),x(i,this)),n}},nextSibling:{get:function(){var e=this;return r(this.parentNode,function(t,n,i){if(e===t)return i[n+1]||null})}},nextElementSibling:{get:function(){var e=this,t=void 0;return r(this.parentNode,function(n){return t&&1===n.nodeType?n:void(e===n&&(t=!0))})}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t=Array.prototype.slice.call(this.attributes).map(function(e){return" "+e.name+(e.value?'="'+e.value+'"':"")}).join("");return"<"+e+t+">"+this.innerHTML+"</"+e+">"},set:function(e){if(this.parentNode){var t=c(e);this.parentNode.replaceChild(t.firstChild,this)}else{if(!K)throw new Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");this.__outerHTML=e}}},parentElement:{get:function(){return N(this.parentNode,function(e){return 1===e.nodeType})}},parentNode:{get:function(){return be.get(this)||this.__parentNode||null}},previousSibling:{get:function(){var e=this;return r(this.parentNode,function(t,n,i){if(e===t)return i[n-1]||null})}},previousElementSibling:{get:function(){var e=this,t=void 0;return r(this.parentNode,function(n){return t&&e===n?t:void(1===n.nodeType&&(t=n))})}},removeChild:{value:function(e){var t=p(this);switch(t){case"node":if(K)return be.set(e,null),this.__removeChild(e);j(this,e);break;case"slot":S(this,e);break;case"host":P(this,e);break;case"root":k(this,e)}return e}},removeEventListener:{value:function(e,t,n){return"slotchange"===e&&this.____slotChangeListeners&&Q(this)&&this.____slotChangeListeners--,this.__removeEventListener(e,t,n)}},replaceChild:{value:function(e,t){return this.insertBefore(e,t),this.removeChild(t)}},setAttribute:{value:function(e,t){return"slot"===e&&(this[e]=t),Q(this)&&"name"===e&&(this[e]=t),this.__setAttribute(e,t)}},shadowRoot:{get:function(){return"open"===Ce.get(this)?Ee.get(this):null}},slot:{get:function(){return this.getAttribute("slot")},set:function(e){var t=this.name,n=this.__setAttribute("slot",e);if(t===e)return n;var i=Oe.get(this),r=i&&Le.get(i),o=r&&we.get(r);return o&&(P(o,this),L(o,this)),n}},textContent:{get:function(){var e="";return r(this,function(t){t.nodeType!==ue.COMMENT_NODE&&(e+=t.textContent)}),e},set:function(e){for(;this.hasChildNodes();)this.removeChild(this.firstChild);e&&this.appendChild(document.createTextNode(e))}}},Ae=function(){var e=ie.prototype,t=se.prototype,n=le&&le.prototype,i=de.prototype,r=document.createTextNode(""),o=document.createComment("");Object.keys(Me).forEach(function(s){var u=Me[s];if(u.configurable=!0,u.enumerable=!0,u.hasOwnProperty("value")&&(u.writable=!0),K||fe.indexOf(s)===-1){var l=V(t,s),d=V(i,s),a=V(e,s),h=s in r&&_e.indexOf(s)===-1||~ve.indexOf(s),c=s in o&&ge.indexOf(s)===-1||~pe.indexOf(s),f="__"+s;Object.defineProperty(t,s,u),n&&Object.defineProperty(n,s,u),l&&(Object.defineProperty(t,f,l),n&&Object.defineProperty(n,f,l)),h&&Object.defineProperty(i,s,u),h&&d&&Object.defineProperty(i,f,d),c&&Object.defineProperty(e,s,u),c&&a&&Object.defineProperty(e,f,a)}})};q||Ae(),e.v1=Ae,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("custom-event-polyfill"),require("debounce"),require("weak-map")):"function"==typeof define&&define.amd?define(["exports","custom-event-polyfill","debounce","weak-map"],t):t(e.skatejsNamedSlots=e.skatejsNamedSlots||{},e.customEventPolyfill,e.debounce,e.WeakMap)}(this,function(e,t,n,i){function r(e,t){if(e)for(var n=e.childNodes,i=n.length,r=0;r<i;r++){var o=t(n[r],r,n);if("undefined"!=typeof o)return o}}function o(e){for(var t=[],n=e.length-1;n>=0;n--)t.push(e[n]);return t}function s(e,t){if(e instanceof W)for(var n=e.childNodes,i=n.length,r=i-1;r>=0;r--){var s=o(e.childNodes)[r];t(s,r)}else t(e,0)}function u(e,t){for(var n=void 0;e&&!(n=Object.getOwnPropertyDescriptor(e,t));)e=Object.getPrototypeOf(e);return n}function l(e){return e.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function d(e){return e.textContent}function a(e){return e.text||"<!--"+e.textContent+"-->"}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.childNodes;if(!n||[$.ELEMENT_NODE,$.DOCUMENT_FRAGMENT_NODE].indexOf(e.nodeType)===-1)return t;for(var i=n.length,r=0;r<i;r++){var o=n[r];Q(o)&&t.push(o),h(o,t)}return t}function c(e){var t=document.createElement("div");if(K)return t.__innerHTML=e,t;for(var n=xe.parseFromString("<div>"+e+"</div>","text/html").body.firstChild;n.hasChildNodes();){var i=n.firstChild;n.removeChild(i),t.appendChild(i)}return document.importNode(t,!0)}function f(e,t,n){Object.defineProperty(e,t,{configurable:!0,get:function(){return n}})}function _(e){return this[e]}function v(e){return e.item=_,e}function g(e){return!!Ee.get(e)}function p(e){return g(e)?"host":Q(e)?"slot":ee(e)?"root":"node"}function N(e,t){for(;e&&e!==document;){if(t(e))return e;e=e.parentNode}}function m(e){return e.getAttribute&&e.getAttribute("name")||"default"}function C(e){return e.getAttribute&&e.getAttribute("slot")||"default"}function E(e,t,n){if(Ne.indexOf(t.nodeType)!==-1){var i=e.assignedNodes(),r=0===i.length,o=i.indexOf(n);Oe.set(t,e),r&&he.call(e.childNodes,function(t){return e.__removeChild(t)}),o>-1?(e.__insertBefore(t,void 0!==n?n:null),i.splice(o,0,t)):(e.__appendChild(t),i.push(t)),e.____triggerSlotChangeEvent()}}function y(e){var t=Oe.get(e);if(t){var n=t.assignedNodes(),i=n.indexOf(e);if(i>-1){var r=1===n.length;n.splice(i,1),Oe.set(e,null),t.__removeChild(e),r&&he.call(t.childNodes,function(e){return t.__appendChild(e)}),t.____triggerSlotChangeEvent()}}}function b(e,t){for(var n=e.childNodes,i=n.length,r=0;r<i;r++)if(n[r]===t)return r;return-1}function O(e,t,n,i){var r=b(e,n);s(t,function(t,n){i(t,n),K?be.set(t,e):f(t,"parentNode",e),r>-1?ae.splice.call(e.childNodes,r+n,0,t):ae.push.call(e.childNodes,t)})}function w(e,t,n){var i=b(e,t);i>-1&&(n(t,0),K?be.set(t,null):f(t,"parentNode",null),ae.splice.call(e.childNodes,i,1))}function T(e,t,n){O(e,t,n,function(t){e.__insertBefore(t,void 0!==n?n:null)})}function L(e,t,n){O(e,t,n,function(t){var i=Ee.get(e),r=Te.get(i),o=r[C(t)];o&&E(o,t,n)})}function x(e,t){var n=m(t);K||Array.isArray(t.childNodes)||f(t,"childNodes",te(t.childNodes)),Te.get(e)[n]=t,Le.has(t)||Le.set(t,e),r(we.get(e),function(e){e.assignedSlot||n!==C(e)||E(t,e)})}function M(e,t,n){s(t,function(t){if(Q(t))x(e,t);else{var n=h(t);if(n)for(var i=n.length,r=0;r<i;r++)x(e,n[r])}}),T(e,t,n)}function A(e,t,n){var i=0===e.assignedNodes().length;O(e,t,n,function(t){i&&e.__insertBefore(t,void 0!==n?n:null)})}function S(e,t){var n=0===e.assignedNodes().length;w(e,t,function(){n&&e.__removeChild(t)})}function j(e,t){w(e,t,function(){e.__removeChild(t)})}function P(e,t){w(e,t,function(){y(t)})}function D(e,t){var n=Array.prototype.slice.call(t.assignedNodes());n.forEach(y),delete Te.get(e)[m(t)],Le.delete(t)}function k(e,t){w(e,t,function(){if(Q(t))D(e,t);else{var n=h(t);if(n)for(var i=0;i<n.length;i++)D(e,n[i])}e.__removeChild(t)})}function H(e){if(ee(e))return e;if(e.parentNode)return H(e.parentNode)}function B(e,t,n){var i=p(e),r=t.parentNode,o=H(e);return K||Array.isArray(e.childNodes)||f(e,"childNodes",te(e.childNodes)),o&&"slot"===p(t)&&x(o,t),r&&"host"===p(r)&&(K?be.set(t,null):f(t,"parentNode",null)),!K&&r&&r.removeChild(t),"node"===i?K?(be.set(t,e),e.__insertBefore(t,void 0!==n?n:null)):T(e,t,n):"slot"===i?A(e,t,n):"host"===i?L(e,t,n):"root"===i?M(e,t,n):void 0}function F(e){if(K&&"slot"===p(e)&&e.__childNodes.length!==e.childNodes.length){for(;e.hasChildNodes();)e.removeChild(e.firstChild);he.call(e.__childNodes,function(t){return e.appendChild(t)})}}n="default"in n?n.default:n,i="default"in i?i.default:i;var R=document.createElement("div"),q=!!R.attachShadow,G=window,W=G.DocumentFragment,X=window,I=X.Node,U=document.createElement("div"),V=function(e,t){e instanceof I&&(e=U);var n=u(e,t);if(n){var i=n.get,r=n.set,o={configurable:!0,enumerable:!0};if(i)return o.get=i,o.set=r,o;if("function"==typeof e[t])return o.value=e[t],o}var s=Object.getOwnPropertyDescriptor(e,t);if(s&&s.get)return s},Y=window,z=Y.Element,J=V(z.prototype,"innerHTML"),K=!!J,Q=function(e){return"SLOT"===e.tagName},Z=window,$=Z.Node,ee=function(e){return"_SHADOW_ROOT_"===e.tagName},te=function(e){return Array.prototype.slice.call(e)},ne=window,ie=ne.Comment,re=ne.CustomEvent,oe=ne.DOMParser,se=ne.HTMLElement,ue=ne.Node,le=ne.SVGElement,de=ne.Text,ae=Array.prototype,he=ae.forEach,ce="_shadow_root_",fe=["childNodes","parentNode"],_e=["textContent"],ve=["assignedSlot"],ge=["textContent"],pe=[],Ne=[ue.ELEMENT_NODE,ue.TEXT_NODE],me=new i,Ce=new i,Ee=new i,ye=new i,be=new i,Oe=new i,we=new i,Te=new i,Le=new i,xe=new oe,Me={____assignedNodes:{get:function(){return this.______assignedNodes||(this.______assignedNodes=[])}},____isInFallbackMode:{get:function(){return 0===this.assignedNodes().length}},____slotChangeListeners:{get:function(){return"undefined"==typeof this.______slotChangeListeners&&(this.______slotChangeListeners=0),this.______slotChangeListeners},set:function(e){this.______slotChangeListeners=e}},____triggerSlotChangeEvent:{value:n(function(){this.____slotChangeListeners&&this.dispatchEvent(new re("slotchange",{bubbles:!1,cancelable:!1}))})},addEventListener:{value:function(e,t,n){return"slotchange"===e&&Q(this)&&this.____slotChangeListeners++,this.__addEventListener(e,t,n)}},appendChild:{value:function(e){return B(this,e),e}},assignedSlot:{get:function(){var e=Oe.get(this);if(!e)return null;var t=Le.get(e),n=we.get(t),i=Ce.get(n);return"open"===i?e:null}},attachShadow:{value:function(e){var t=this,n=e&&e.mode;if("closed"!==n&&"open"!==n)throw new Error('You must specify { mode } as "open" or "closed" to attachShadow().');var i=Ee.get(this);if(i)return i;var r=v([].slice.call(this.childNodes)),o=document.createElement(e.polyfillShadowRootTagName||ce);return Ce.set(this,n),Ee.set(this,o),we.set(o,this),Te.set(o,{}),K?ye.set(this,r):f(this,"childNodes",r),r.forEach(function(e){t.__removeChild(e),K?be.set(e,t):f(e,"parentNode",t)}),this.__appendChild(o)}},childElementCount:{get:function(){return this.children.length}},childNodes:{get:function(){if(K&&"node"===p(this))return this.__childNodes;var e=ye.get(this);return e||ye.set(this,e=v([])),e}},children:{get:function(){var e=[];return r(this,function(t){1===t.nodeType&&e.push(t)}),v(e)}},firstChild:{get:function(){return this.childNodes[0]||null}},firstElementChild:{get:function(){return this.children[0]||null}},assignedNodes:{value:function(){if(Q(this)){var e=me.get(this);return e||me.set(this,e=[]),e}}},hasChildNodes:{value:function(){return this.childNodes.length>0}},innerHTML:{get:function(){function e(e){return e.nodeType===ue.ELEMENT_NODE&&e.nodeName.toLowerCase()in o}var t="",n=function(e){return e.outerHTML},i={};i[ue.ELEMENT_NODE]=n,i[ue.COMMENT_NODE]=a;var o={style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,noscript:!0,plaintext:!0},s=e(this);return r(this,function(e){var r=void 0;r=e.nodeType===ue.TEXT_NODE?s?d:l:i[e.nodeType]||n,t+=r(e)}),t},set:function(e){for(var t=c(e);this.hasChildNodes();)this.removeChild(this.firstChild);var n=h(t);for(he.call(n,function(e){return F(e)});t.hasChildNodes();){var i=t.firstChild;t.removeChild(i),this.appendChild(i)}}},insertBefore:{value:function(e,t){return B(this,e,t),e}},lastChild:{get:function(){var e=this.childNodes;return e[e.length-1]||null}},lastElementChild:{get:function(){var e=this.children;return e[e.length-1]||null}},name:{get:function(){return this.getAttribute("name")},set:function(e){var t=this.name,n=this.__setAttribute("name",e);if(e===t)return n;if(!Q(this))return n;var i=Le.get(this);return i&&(D(i,this),x(i,this)),n}},nextSibling:{get:function(){var e=this;return r(this.parentNode,function(t,n,i){if(e===t)return i[n+1]||null})}},nextElementSibling:{get:function(){var e=this,t=void 0;return r(this.parentNode,function(n){return t&&1===n.nodeType?n:void(e===n&&(t=!0))})}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t=Array.prototype.slice.call(this.attributes).map(function(e){return" "+e.name+(e.value?'="'+e.value+'"':"")}).join("");return"<"+e+t+">"+this.innerHTML+"</"+e+">"},set:function(e){if(this.parentNode){var t=c(e);this.parentNode.replaceChild(t.firstChild,this)}else{if(!K)throw new Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");this.__outerHTML=e}}},parentElement:{get:function(){return N(this.parentNode,function(e){return 1===e.nodeType})}},parentNode:{get:function(){return be.get(this)||this.__parentNode||null}},previousSibling:{get:function(){var e=this;return r(this.parentNode,function(t,n,i){if(e===t)return i[n-1]||null})}},previousElementSibling:{get:function(){var e=this,t=void 0;return r(this.parentNode,function(n){return t&&e===n?t:void(1===n.nodeType&&(t=n))})}},removeChild:{value:function(e){var t=p(this);switch(t){case"node":if(K)return be.set(e,null),this.__removeChild(e);j(this,e);break;case"slot":S(this,e);break;case"host":P(this,e);break;case"root":k(this,e)}return e}},removeEventListener:{value:function(e,t,n){return"slotchange"===e&&this.____slotChangeListeners&&Q(this)&&this.____slotChangeListeners--,this.__removeEventListener(e,t,n)}},replaceChild:{value:function(e,t){return this.insertBefore(e,t),this.removeChild(t)}},setAttribute:{value:function(e,t){return"slot"===e&&(this[e]=t),Q(this)&&"name"===e&&(this[e]=t),this.__setAttribute(e,t)}},shadowRoot:{get:function(){return"open"===Ce.get(this)?Ee.get(this):null}},slot:{get:function(){return this.getAttribute("slot")},set:function(e){var t=this.name,n=this.__setAttribute("slot",e);if(t===e)return n;var i=Oe.get(this),r=i&&Le.get(i),o=r&&we.get(r);return o&&(P(o,this),L(o,this)),n}},textContent:{get:function(){var e="";return r(this,function(t){t.nodeType!==ue.COMMENT_NODE&&(e+=t.textContent)}),e},set:function(e){for(;this.hasChildNodes();)this.removeChild(this.firstChild);e&&this.appendChild(document.createTextNode(e))}}},Ae=function(){var e=ie.prototype,t=se.prototype,n=le&&le.prototype,i=de.prototype,r=document.createTextNode(""),o=document.createComment("");Object.keys(Me).forEach(function(s){var u=Me[s];if(u.configurable=!0,u.enumerable=!0,u.hasOwnProperty("value")&&(u.writable=!0),K||fe.indexOf(s)===-1){var l=V(t,s),d=V(i,s),a=V(e,s),h=s in r&&_e.indexOf(s)===-1||~ve.indexOf(s),c=s in o&&ge.indexOf(s)===-1||~pe.indexOf(s),f="__"+s;Object.defineProperty(t,s,u),n&&Object.defineProperty(n,s,u),l&&(Object.defineProperty(t,f,l),n&&Object.defineProperty(n,f,l)),h&&Object.defineProperty(i,s,u),h&&d&&Object.defineProperty(i,f,d),c&&Object.defineProperty(e,s,u),c&&a&&Object.defineProperty(e,f,a)}})};q||Ae(),e.v1=Ae,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=index.min.js.map |
@@ -46,3 +46,3 @@ { | ||
"debounce": "^1.0.0", | ||
"weakmap": "0.0.6" | ||
"weak-map": "^1.0.5" | ||
}, | ||
@@ -54,3 +54,3 @@ "config": { | ||
}, | ||
"version": "2.0.1" | ||
"version": "2.0.2" | ||
} |
import debounce from 'debounce'; | ||
import WeakMap from 'weakmap'; | ||
import WeakMap from 'weak-map'; | ||
import { eachChildNode, eachNodeOrFragmentNodes } from '../util/each'; | ||
@@ -4,0 +4,0 @@ import canPatchNativeAccessors from '../util/can-patch-native-accessors'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
546824
4023
+ Addedweak-map@^1.0.5
+ Addedweak-map@1.0.8(transitive)
- Removedweakmap@0.0.6
- Removedweakmap@0.0.6(transitive)