1 line
527 KiB
JavaScript
1 line
527 KiB
JavaScript
|
|
(function(){"use strict";var l=new function(){},a=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function i(l){var i=a.has(l);return l=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(l),!i&&l}function t(l){var a=l.isConnected;if(void 0!==a)return a;for(;l&&!(l.__CE_isImportDocument||l instanceof Document);)l=l.parentNode||(window.ShadowRoot&&l instanceof ShadowRoot?l.host:void 0);return!(!l||!(l.__CE_isImportDocument||l instanceof Document))}function e(l,a){for(;a&&a!==l&&!a.nextSibling;)a=a.parentNode;return a&&a!==l?a.nextSibling:null}function s(l,a,i){i=i||new Set;for(var t=l;t;){if(t.nodeType===Node.ELEMENT_NODE){var c=t;a(c);var n=c.localName;if("link"===n&&"import"===c.getAttribute("rel")){if((t=c.import)instanceof Node&&!i.has(t))for(i.add(t),t=t.firstChild;t;t=t.nextSibling)s(t,a,i);t=e(l,c);continue}if("template"===n){t=e(l,c);continue}if(c=c.__CE_shadowRoot)for(c=c.firstChild;c;c=c.nextSibling)s(c,a,i)}t=t.firstChild?t.firstChild:e(l,t)}}function c(l,a,i){l[a]=i}function n(){this.a=new Map,this.o=new Map,this.f=[],this.b=!1}function r(l,a){l.b=!0,l.f.push(a)}function d(l,a){l.b&&s(a,function(a){return o(l,a)})}function o(l,a){if(l.b&&!a.__CE_patched){a.__CE_patched=!0;for(var i=0;i<l.f.length;i++)l.f[i](a)}}function h(l,a){var i=[];for(s(a,function(l){return i.push(l)}),a=0;a<i.length;a++){var t=i[a];1===t.__CE_state?l.connectedCallback(t):g(l,t)}}function p(l,a){var i=[];for(s(a,function(l){return i.push(l)}),a=0;a<i.length;a++){var t=i[a];1===t.__CE_state&&l.disconnectedCallback(t)}}function u(l,a,i){var t=(i=i||{}).w||new Set,e=i.s||function(a){return g(l,a)},c=[];if(s(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var i=a.import;i instanceof Node&&(i.__CE_isImportDocument=!0,i.__CE_hasRegistry=!0),i&&"complete"===i.readyState?i.__CE_documentLoadHandled=!0:a.addEventListener("load",function(){var i=a.import;if(!i.__CE_documentLoadHandled){i.__CE_documentLoadHandled=!0;var s=new Set(t);s.delete(i),u(l,i,{w:s,s:e})}})}else c.push(a)},t),l.b)for(a=0;a<c.length;a++)o(l,c[a]);for(a=0;a<c.length;a++)e(c[a])}function g(l,a){if(void 0===a.__CE_state){var i=a.ownerDocument;if((i.defaultView||i.__CE_isImportDocument&&i.__CE_hasRegistry)&&(i=l.a.get(a.localName))){i.constructionStack.push(a);var e=i.constructor;try{try{if(new e!==a)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{i.constructionStack.pop()}}catch(l){throw a.__CE_state=2,l}if(a.__CE_state=1,a.__CE_definition=i,i.attributeChangedCallback)for(i=i.observedAttributes,e=0;e<i.length;e++){var s=i[e],c=a.getAttribute(s);null!==c&&l.attributeChangedCallback(a,s,null,c,null)}t(a)&&l.connectedCallback(a)}}}function H(l,a){this.c=l,this.a=a,this.b=void 0,u(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function w(l){l.b&&l.b.disconnect()}function A(l){if(l.a)throw Error("Already resolved.");l.a=void 0,l.b&&l.b(void 0)}function V(l){this.i=!1,this.c=l,this.m=new Map,this.j=function(l){return l()},this.g=!1,this.l=[],this.u=new H(l,document)}n.prototype.connectedCallback=function(l){var a=l.__CE_definition;a.connectedCallback&&a.connectedCallback.call(l)},n.prototype.disconnectedCallback=function(l){var a=l.__CE_definition;a.disconnectedCallback&&a.disconnectedCallback.call(l)},n.prototype.attributeChangedCallback=function(l,a,i,t,e){var s=l.__CE_definition;s.attributeChangedCallback&&-1<s.observedAttributes.indexOf(a)&&s.attributeChangedCallback.call(l,a,i,t,e)},H.prototype.f=function(l){var a=this.a.readyState;for("interactive"!==a&&"complete"!==a||w(this),a=0;a<l.length;a++)for(var i=l[a].addedNodes,t=0;t<i.length;t++)u(this.c,i[t])},V.prototype.define=function(l,a){var t,e,s,c,n,r=this;if(!(a instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!i(l))throw new SyntaxError("The element name '"+l+"' is not valid.");if(this.c.a.get(l))throw Error("A custom element with name '"+
|