@manifoldco/shadowcat
Advanced tools
Comparing version 0.0.2 to 0.1.2-test.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
const __chunk_1 = require('./chunk-93d86c38.js'); | ||
const __chunk_1 = require('./chunk-8ab7ab54.js'); | ||
@@ -8,0 +8,0 @@ const defineCustomElements = (win, options) => { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const __chunk_1 = require('./chunk-93d86c38.js'); | ||
const __chunk_1 = require('./chunk-8ab7ab54.js'); | ||
@@ -13,3 +13,8 @@ class ManifoldOauth { | ||
this.tokenListener = (ev) => { | ||
this.receiveManifoldToken.emit(ev.data); | ||
const pumaToken = ev.data; | ||
this.receiveManifoldToken.emit({ | ||
token: pumaToken.access_token, | ||
expiry: pumaToken.expiry, | ||
error: pumaToken.error | ||
}); | ||
}; | ||
@@ -16,0 +21,0 @@ this.receiveManifoldToken = __chunk_1.createEvent(this, "receiveManifoldToken", 7); |
'use strict'; | ||
const __chunk_1 = require('./chunk-93d86c38.js'); | ||
const __chunk_1 = require('./chunk-8ab7ab54.js'); | ||
__chunk_1.patchBrowser().then(resourcesUrl => { | ||
return __chunk_1.bootstrapLazy([["manifold-oauth.cjs",[[0,"manifold-oauth",{"oauthUrl":[1,"oauth-url"]}]]]], { resourcesUrl }); | ||
__chunk_1.patchBrowser().then(options => { | ||
return __chunk_1.bootstrapLazy([["manifold-oauth.cjs",[[0,"manifold-oauth",{"oauthUrl":[1,"oauth-url"]}]]]], options); | ||
}); |
@@ -7,4 +7,4 @@ { | ||
"name": "@stencil/core", | ||
"version": "1.1.6", | ||
"typescriptVersion": "3.5.2" | ||
"version": "1.2.3", | ||
"typescriptVersion": "3.5.3" | ||
}, | ||
@@ -11,0 +11,0 @@ "collections": [], |
@@ -6,3 +6,8 @@ import { h } from "@stencil/core"; | ||
this.tokenListener = (ev) => { | ||
this.receiveManifoldToken.emit(ev.data); | ||
const pumaToken = ev.data; | ||
this.receiveManifoldToken.emit({ | ||
token: pumaToken.access_token, | ||
expiry: pumaToken.expiry, | ||
error: pumaToken.error | ||
}); | ||
}; | ||
@@ -51,7 +56,12 @@ } | ||
"complexType": { | ||
"original": "any", | ||
"resolved": "any", | ||
"references": {} | ||
"original": "AuthToken", | ||
"resolved": "AuthToken", | ||
"references": { | ||
"AuthToken": { | ||
"location": "import", | ||
"path": "../../interface" | ||
} | ||
} | ||
} | ||
}]; } | ||
} |
@@ -1,2 +0,2 @@ | ||
import { r as registerInstance, c as createEvent, h } from './chunk-1164485d.js'; | ||
import { r as registerInstance, c as createEvent, h } from './chunk-0b47c027.js'; | ||
@@ -8,3 +8,8 @@ class ManifoldOauth { | ||
this.tokenListener = (ev) => { | ||
this.receiveManifoldToken.emit(ev.data); | ||
const pumaToken = ev.data; | ||
this.receiveManifoldToken.emit({ | ||
token: pumaToken.access_token, | ||
expiry: pumaToken.expiry, | ||
error: pumaToken.error | ||
}); | ||
}; | ||
@@ -11,0 +16,0 @@ this.receiveManifoldToken = createEvent(this, "receiveManifoldToken", 7); |
export function applyPolyfills() { | ||
var win = window; | ||
/*! | ||
es6-promise - a tiny implementation of Promises/A+. | ||
Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) | ||
Licensed under MIT license | ||
See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE | ||
v4.2.4+314e4831 | ||
*/ | ||
(win.ES6Promise=function(){function t(){var t=setTimeout;return function(){return t(r,1)}}function r(){for(var t=0;t<y;t+=2)(0,C[t])(C[t+1]),C[t]=void 0,C[t+1]=void 0;y=0}function e(t,r){var e=this,n=new this.constructor(o);void 0===n[O]&&_(n);var i=e._state;if(i){var s=arguments[i-1];g(function(){return v(i,n,s,e._result)})}else l(e,n,t,r);return n}function n(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var r=new this(o);return u(r,t),r}function o(){}function i(t){try{return t.then}catch(t){return q.error=t,q}}function s(t,r,o){r.constructor===t.constructor&&o===e&&r.constructor.resolve===n?function(t,r){r._state===x?a(t,r._result):r._state===F?f(t,r._result):l(r,void 0,function(r){return u(t,r)},function(r){return f(t,r)})}(t,r):o===q?(f(t,q.error),q.error=null):void 0===o?a(t,r):"function"==typeof o?function(t,r,e){g(function(t){var n=!1,o=function(t,r,e,n){try{t.call(r,e,n)}catch(t){return t}}(e,r,function(e){n||(n=!0,r!==e?u(t,e):a(t,e))},function(r){n||(n=!0,f(t,r))},t._label);!n&&o&&(n=!0,f(t,o))},t)}(t,r,o):a(t,r)}function u(t,r){if(t===r)f(t,new TypeError("cannot resolve promise w/ itself"));else{var e=typeof r;null===r||"object"!==e&&"function"!==e?a(t,r):s(t,r,i(r))}}function c(t){t._onerror&&t._onerror(t._result),h(t)}function a(t,r){t._state===P&&(t._result=r,t._state=x,0!==t._subscribers.length&&g(h,t))}function f(t,r){t._state===P&&(t._state=F,t._result=r,g(c,t))}function l(t,r,e,n){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=r,o[i+x]=e,o[i+F]=n,0===i&&t._state&&g(h,t)}function h(t){var r=t._subscribers,e=t._state;if(0!==r.length){for(var n,o,i=t._result,s=0;s<r.length;s+=3)n=r[s],o=r[s+e],n?v(e,n,o,i):o(i);t._subscribers.length=0}}function v(t,r,e,n){var o="function"==typeof e,i=void 0,s=void 0,c=void 0,l=void 0;if(o){try{i=e(n)}catch(t){q.error=t,i=q}if(i===q?(l=!0,s=i.error,i.error=null):c=!0,r===i)return void f(r,new TypeError("Cannot return same promise"))}else i=n,c=!0;r._state===P&&(o&&c?u(r,i):l?f(r,s):t===x?a(r,i):t===F&&f(r,i))}function _(t){t[O]=U++,t._state=void 0,t._result=void 0,t._subscribers=[]}var p,d=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},y=0,w=void 0,m=void 0,g=function(t,e){C[y]=t,C[y+1]=e,2===(y+=2)&&(m?m(r):T())},b=(p="undefined"!=typeof window?window:void 0)||{},A=b.MutationObserver||b.WebKitMutationObserver;b="undefined"==typeof self;var E,S,M,j="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,C=Array(1e3),T=void 0;T=A?(E=0,S=new A(r),M=document.createTextNode(""),S.observe(M,{characterData:!0}),function(){M.data=E=++E%2}):j?function(){var t=new MessageChannel;return t.port1.onmessage=r,function(){return t.port2.postMessage(0)}}():void 0===p&&"function"==typeof require?function(){try{var e=Function("return this")().require("vertx");return void 0!==(w=e.runOnLoop||e.runOnContext)?function(){w(r)}:t()}catch(r){return t()}}():t();var O=Math.random().toString(36).substring(2),P=void 0,x=1,F=2,q={error:null},U=0,D=function(){function t(t,r){this._instanceConstructor=t,this.promise=new t(o),this.promise[O]||_(this.promise),d(r)?(this._remaining=this.length=r.length,this._result=Array(this.length),0===this.length?a(this.promise,this._result):(this.length=this.length||0,this._enumerate(r),0===this._remaining&&a(this.promise,this._result))):f(this.promise,Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var r=0;this._state===P&&r<t.length;r++)this._eachEntry(t[r],r)},t.prototype._eachEntry=function(t,r){var u=this._instanceConstructor,c=u.resolve;c===n?(c=i(t))===e&&t._state!==P?this._settledAt(t._state,r,t._result):"function"!=typeof c?(this._remaining--,this._result[r]=t):u===K?(s(u=new u(o),t,c),this._willSettleAt(u,r)):this._willSettleAt(new u(function(r){return r(t)}),r):this._willSettleAt(c(t),r)},t.prototype._settledAt=function(t,r,e){var n=this.promise;n._state===P&&(this._remaining--,t===F?f(n,e):this._result[r]=e),0===this._remaining&&a(n,this._result)},t.prototype._willSettleAt=function(t,r){var e=this;l(t,void 0,function(t){return e._settledAt(x,r,t)},function(t){return e._settledAt(F,r,t)})},t}(),K=function(){function t(r){if(this[O]=U++,this._result=this._state=void 0,this._subscribers=[],o!==r){if("function"!=typeof r)throw new TypeError("Must pass a resolver fn as 1st arg");if(!(this instanceof t))throw new TypeError("Failed to construct 'Promise': Use the 'new' operator.");!function(t,r){try{r(function(r){u(t,r)},function(r){f(t,r)})}catch(r){f(t,r)}}(this,r)}}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this.constructor;return this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})})},t}();return K.prototype.then=e,K.all=function(t){return new D(this,t).promise},K.race=function(t){var r=this;return d(t)?new r(function(e,n){for(var o=t.length,i=0;i<o;i++)r.resolve(t[i]).then(e,n)}):new r(function(t,r){return r(new TypeError("Must pass array to race"))})},K.resolve=n,K.reject=function(t){var r=new this(o);return f(r,t),r},K._setScheduler=function(t){m=t},K._setAsap=function(t){g=t},K._asap=g,K.polyfill=function(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw Error("polyfill failed")}var r=t.Promise;if(r){var e=null;try{e=Object.prototype.toString.call(r.resolve())}catch(t){}if("[object Promise]"===e&&!r.cast)return}t.Promise=K},K.Promise=K,K.polyfill(),K}()); | ||
@@ -12,0 +4,0 @@ var promises = []; |
@@ -9,3 +9,4 @@ { | ||
"es2015": "./index.es2017.mjs", | ||
"es2017": "./index.es2017.mjs" | ||
"es2017": "./index.es2017.mjs", | ||
"unpkg": "./cdn.js" | ||
} |
@@ -1,1 +0,1 @@ | ||
var t=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};var e={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},r="{",n="}",s={comments:/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},i="--",a="@media",o="@";function u(t,e,r){t.lastIndex=0;var n=e.substring(r).match(t);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var l=/\bvar\(/,c=/\B--[\w-]+\s*:/,p=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,f=/^[\t ]+\n/gm;function h(t,e,r){var n=function(t,e){var r=u(l,t,e);if(!r)return null;var n=function(t){for(var e=0,n=r.start;n<t.length;n++){var s=t[n];if("("===s)e++;else if(")"===s&&--e<=0)return n+1}return n}(t),s=t.substring(r.end,n-1).split(","),i=s[0],a=s.slice(1);return{start:r.start,end:n,propName:i.trim(),fallback:a.length>0?a.join(",").trim():void 0}}(t,r);if(!n)return e.push(t.substring(r,t.length)),t.length;var s=n.propName,i=null!=n.fallback?d(n.fallback):void 0;return e.push(t.substring(r,n.start),function(t){return function(e,r,n){return t[s]?t[s]:n?v(n,t):""}(0,0,i)}),n.end}function v(t,e){for(var r="",n=0;n<t.length;n++){var s=t[n];r+="string"==typeof s?s:s(e)}return r}function m(t,e){for(var r=!1,n=!1,s=e;s<t.length;s++){var i=t[s];if(r)n&&'"'===i&&(r=!1),n||"'"!==i||(r=!1);else if('"'===i)r=!0,n=!0;else if("'"===i)r=!0,n=!1;else{if(";"===i)return s+1;if("}"===i)return s}}return s}function d(t){var e=0;t=function(t){for(var e="",r=0;;){var n=u(c,t,r),s=n?n.start:t.length;if(e+=t.substring(r,s),!n)break;r=m(t,s)}return e}(t=t.replace(p,"")).replace(f,"");for(var r=[];e<t.length;)e=h(t,r,e);return r}function g(t){var e={};t.forEach(function(t){t.declarations.forEach(function(t){e[t.prop]=t.value})});for(var r={},n=Object.entries(e),s=function(){var t=!1;if(n.forEach(function(e){var n=e[0],s=v(e[1],r);s!==r[n]&&(r[n]=s,t=!0)}),!t)return"break"},i=0;i<10&&"break"!==s();i++);return r}function y(t,r){if(void 0===r&&(r=0),!t.rules)return[];var n=[];return t.rules.filter(function(t){return t.type===e.STYLE_RULE}).forEach(function(t){var e=function(t){for(var e,r=[];e=E.exec(t.trim());){var n=b(e[2]),s=n.value,i=n.important;r.push({prop:e[1].trim(),value:d(s),important:i})}return r}(t.cssText);e.length>0&&t.parsedSelector.split(",").forEach(function(t){t=t.trim(),n.push({selector:t,declarations:e,specificity:1,nu:r})}),r++}),n}var S="!important",E=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function b(t){var e=(t=t.replace(/\s+/gim," ").trim()).endsWith(S);return e&&(t=t.substr(0,t.length-S.length).trim()),{value:t,important:e}}function M(t){var e=[];return t.forEach(function(t){e.push.apply(e,t.selectors)}),e}function L(u){var l,c=function t(r,n){var u=n.substring(r.start,r.end-1);if(r.parsedCssText=r.cssText=u.trim(),r.parent){u=(u=(u=(u=n.substring(r.previous?r.previous.end:r.parent.start,r.start-1)).replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var t=arguments[1],e=6-t.length;e--;)t="0"+t;return"\\"+t})).replace(s.multipleSpaces," ")).substring(u.lastIndexOf(";")+1);var l=r.parsedSelector=r.selector=u.trim();r.atRule=0===l.indexOf(o),r.atRule?0===l.indexOf(a)?r.type=e.MEDIA_RULE:l.match(s.keyframesRule)&&(r.type=e.KEYFRAMES_RULE,r.keyframesName=r.selector.split(s.multipleSpaces).pop()):r.type=0===l.indexOf(i)?e.MIXIN_RULE:e.STYLE_RULE}var c=r.rules;if(c)for(var p=0,f=c.length,h=void 0;p<f&&(h=c[p]);p++)t(h,n);return r}(function(e){var s=new t;s.start=0,s.end=e.length;for(var i=s,a=0,o=e.length;a<o;a++)if(e[a]===r){i.rules||(i.rules=[]);var u=i,l=u.rules[u.rules.length-1]||null;(i=new t).start=a+1,i.parent=u,i.previous=l,u.rules.push(i)}else e[a]===n&&(i.end=a+1,i=i.parent||s);return s}(l=(l=u).replace(s.comments,"").replace(s.port,"")),l),p=d(u);return{original:u,template:p,selectors:y(c),usesCssVars:p.length>1}}function x(t,e){var r=L(e.innerHTML);r.styleEl=e,t.push(r)}function R(t,e,r){var n;return n="."+r,t.replace(new RegExp("\\."+e,"g"),n)}function T(t,e,r){var n=r.href;return fetch(n).then(function(t){return t.text()}).then(function(s){if(((a=s).indexOf("var(")>-1||w.test(a))&&r.parentNode){(function(t){return k.lastIndex=0,k.test(t)})(s)&&(s=function(t){var e=n.replace(/[^\/]*$/,"");return t.replace(k,function(t,r){return t.replace(r,e+r)})}(s));var i=t.createElement("style");i.setAttribute("data-styles",""),i.innerHTML=s,x(e,i),r.parentNode.insertBefore(i,r),r.remove()}var a}).catch(function(t){console.error(t)})}var w=/[\s;{]--[-a-zA-Z0-9]+\s*:/m,k=/url[\s]*\([\s]*['"]?(?![http|\/])([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim,_=function(){function t(t,e){this.win=t,this.doc=e,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map}return t.prototype.initShim=function(){var t=this;return new Promise(function(e){t.win.requestAnimationFrame(function(){var r,n;(r=t.doc,n=t.globalScopes,function(t,e){for(var r=t.querySelectorAll("style:not([data-styles])"),n=0;n<r.length;n++)x(e,r[n])}(r,n),function(t,e){for(var r=[],n=t.querySelectorAll('link[rel="stylesheet"][href]'),s=0;s<n.length;s++)r.push(T(t,e,n[s]));return Promise.all(r)}(r,n)).then(function(){return e()})})})},t.prototype.addLink=function(t){var e=this;return T(this.doc,this.globalScopes,t).then(function(){e.updateGlobal()})},t.prototype.addGlobalStyle=function(t){x(this.globalScopes,t),this.updateGlobal()},t.prototype.createHostStyle=function(t,e,r,n){if(this.hostScopeMap.has(t))throw new Error("host style already created");var s,i,a,o,u=this.registerHostTemplate(r,e,n),l=this.doc.createElement("style");return u.usesCssVars?n?(l["s-sc"]=e=u.scopeId+"-"+this.count,l.innerHTML="/*needs update*/",this.hostStyleMap.set(t,l),this.hostScopeMap.set(t,(i=e,a=(s=u).template.map(function(t){return"string"==typeof t?R(t,s.scopeId,i):t}),o=s.selectors.map(function(t){return Object.assign({},t,{selector:R(t.selector,s.scopeId,i)})}),Object.assign({},s,{template:a,selectors:o,scopeId:i}))),this.count++):(u.styleEl=l,u.usesCssVars||(l.innerHTML=v(u.template,{})),this.globalScopes.push(u),this.updateGlobal(),this.hostScopeMap.set(t,u)):l.innerHTML=r,l},t.prototype.removeHost=function(t){var e=this.hostStyleMap.get(t);e&&e.remove(),this.hostStyleMap.delete(t),this.hostScopeMap.delete(t)},t.prototype.updateHost=function(t){var e=this.hostScopeMap.get(t);if(e&&e.usesCssVars&&e.isScoped){var r=this.hostStyleMap.get(t);if(r){var n=g(function(t,e,r){var n;return(n=M(r.concat(function(t,e){for(var r=[];e;){var n=t.get(e);n&&r.push(n),e=e.parentElement}return r}(e,t))).filter(function(e){return function(e,r){return":root"===r||"html"===r||t.matches(r)}(0,e.selector)})).sort(function(t,e){return t.specificity===e.specificity?t.nu-e.nu:t.specificity-e.specificity}),n}(t,this.hostScopeMap,this.globalScopes));r.innerHTML=v(e.template,n)}}},t.prototype.updateGlobal=function(){var t,e;e=g(M(t=this.globalScopes)),t.forEach(function(t){t.usesCssVars&&(t.styleEl.innerHTML=v(t.template,e))})},t.prototype.registerHostTemplate=function(t,e,r){var n=this.scopesMap.get(e);return n||((n=L(t)).scopeId=e,n.isScoped=r,this.scopesMap.set(e,n)),n},t}(),I=window;I.__stencil_cssshim||I.CSS&&I.CSS.supports&&I.CSS.supports("color","var(--c)")||(I.__stencil_cssshim=new _(I,document)); | ||
var r=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};var n={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},t="{",i="}",e={comments:/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},u="--",o="@media",s="@";function a(r,n,t){r.lastIndex=0;var i=n.substring(t).match(r);if(i){var e=t+i.index;return{start:e,end:e+i[0].length}}return null}var f=/\bvar\(/,c=/\B--[\w-]+\s*:/,v=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,h=/^[\t ]+\n/gm;function l(r,n,t){var i=function(r,n){var t=a(f,r,n);if(!t)return null;var i=function(r){for(var n=0,i=t.start;i<r.length;i++){var e=r[i];if("("===e)n++;else if(")"===e&&--n<=0)return i+1}return i}(r),e=r.substring(t.end,i-1).split(","),u=e[0],o=e.slice(1);return{start:t.start,end:i,propName:u.trim(),fallback:o.length>0?o.join(",").trim():void 0}}(r,t);if(!i)return n.push(r.substring(t,r.length)),r.length;var e=i.propName,u=null!=i.fallback?g(i.fallback):void 0;return n.push(r.substring(t,i.start),function(r){return function(n,t,i){return r[e]?r[e]:i?m(i,r):""}(0,0,u)}),i.end}function m(r,n){for(var t="",i=0;i<r.length;i++){var e=r[i];t+="string"==typeof e?e:e(n)}return t}function p(r,n){for(var t=!1,i=!1,e=n;e<r.length;e++){var u=r[e];if(t)i&&'"'===u&&(t=!1),i||"'"!==u||(t=!1);else if('"'===u)t=!0,i=!0;else if("'"===u)t=!0,i=!1;else{if(";"===u)return e+1;if("}"===u)return e}}return e}function g(r){var n=0;r=function(r){for(var n="",t=0;;){var i=a(c,r,t),e=i?i.start:r.length;if(n+=r.substring(t,e),!i)break;t=p(r,e)}return n}(r=r.replace(v,"")).replace(h,"");for(var t=[];n<r.length;)n=l(r,t,n);return t}function d(r){var n={};r.forEach(function(r){r.declarations.forEach(function(r){n[r.prop]=r.value})});for(var t={},i=Object.entries(n),e=function(){var r=!1;if(i.forEach(function(n){var i=n[0],e=m(n[1],t);e!==t[i]&&(t[i]=e,r=!0)}),!r)return"break"},u=0;u<10&&"break"!==e();u++);return t}function y(r,t){if(void 0===t&&(t=0),!r.rules)return[];var i=[];return r.rules.filter(function(r){return r.type===n.STYLE_RULE}).forEach(function(r){var n=function(r){for(var n,t=[];n=E.exec(r.trim());){var i=k(n[2]),e=i.value,u=i.important;t.push({prop:n[1].trim(),value:g(e),important:u})}return t}(r.cssText);n.length>0&&r.parsedSelector.split(",").forEach(function(r){r=r.trim(),i.push({selector:r,declarations:n,specificity:1,nu:t})}),t++}),i}var w="!important",E=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function k(r){var n=(r=r.replace(/\s+/gim," ").trim()).endsWith(w);return n&&(r=r.substr(0,r.length-w.length).trim()),{value:r,important:n}}function b(r){var n=[];return r.forEach(function(r){n.push.apply(n,r.selectors)}),n}function R(a){var f,c=function r(t,i){var a=i.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=a.trim(),t.parent){a=(a=(a=(a=i.substring(t.previous?t.previous.end:t.parent.start,t.start-1)).replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var r=arguments[1],n=6-r.length;n--;)r="0"+r;return"\\"+r})).replace(e.multipleSpaces," ")).substring(a.lastIndexOf(";")+1);var f=t.parsedSelector=t.selector=a.trim();t.atRule=0===f.indexOf(s),t.atRule?0===f.indexOf(o)?t.type=n.MEDIA_RULE:f.match(e.keyframesRule)&&(t.type=n.KEYFRAMES_RULE,t.keyframesName=t.selector.split(e.multipleSpaces).pop()):t.type=0===f.indexOf(u)?n.MIXIN_RULE:n.STYLE_RULE}var c=t.rules;if(c)for(var v=0,h=c.length,l=void 0;v<h&&(l=c[v]);v++)r(l,i);return t}(function(n){var e=new r;e.start=0,e.end=n.length;for(var u=e,o=0,s=n.length;o<s;o++)if(n[o]===t){u.rules||(u.rules=[]);var a=u,f=a.rules[a.rules.length-1]||null;(u=new r).start=o+1,u.parent=a,u.previous=f,a.rules.push(u)}else n[o]===i&&(u.end=o+1,u=u.parent||e);return e}(f=(f=a).replace(e.comments,"").replace(e.port,"")),f),v=g(a);return{original:a,template:v,selectors:y(c),usesCssVars:v.length>1}}function M(r,n){var t=R(n.innerHTML);t.styleEl=n,r.push(t)}function $(r,n,t){var i;return i="."+t,r.replace(new RegExp("\\."+n,"g"),i)}function A(r,n,t){var i=t.href;return fetch(i).then(function(r){return r.text()}).then(function(e){if(((o=e).indexOf("var(")>-1||L.test(o))&&t.parentNode){(function(r){return I.lastIndex=0,I.test(r)})(e)&&(e=function(r){var n=i.replace(/[^\/]*$/,"");return r.replace(I,function(r,t){return r.replace(t,n+t)})}(e));var u=r.createElement("style");u.setAttribute("data-styles",""),u.innerHTML=e,M(n,u),t.parentNode.insertBefore(u,t),t.remove()}var o}).catch(function(r){console.error(r)})}var L=/[\s;{]--[-a-zA-Z0-9]+\s*:/m,I=/url[\s]*\([\s]*['"]?(?![http|\/])([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim,P=function(){function r(r,n){this.win=r,this.doc=n,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map}return r.prototype.initShim=function(){var r=this;return new Promise(function(n){r.win.requestAnimationFrame(function(){var t,i;(t=r.doc,i=r.globalScopes,function(r,n){for(var t=r.querySelectorAll("style:not([data-styles])"),i=0;i<t.length;i++)M(n,t[i])}(t,i),function(r,n){for(var t=[],i=r.querySelectorAll('link[rel="stylesheet"][href]'),e=0;e<i.length;e++)t.push(A(r,n,i[e]));return Promise.all(t)}(t,i)).then(function(){return n()})})})},r.prototype.addLink=function(r){var n=this;return A(this.doc,this.globalScopes,r).then(function(){n.updateGlobal()})},r.prototype.addGlobalStyle=function(r){M(this.globalScopes,r),this.updateGlobal()},r.prototype.createHostStyle=function(r,n,t,i){if(this.hostScopeMap.has(r))throw new Error("host style already created");var e,u,o,s,a=this.registerHostTemplate(t,n,i),f=this.doc.createElement("style");return a.usesCssVars?i?(f["s-sc"]=n=a.scopeId+"-"+this.count,f.innerHTML="/*needs update*/",this.hostStyleMap.set(r,f),this.hostScopeMap.set(r,(u=n,o=(e=a).template.map(function(r){return"string"==typeof r?$(r,e.scopeId,u):r}),s=e.selectors.map(function(r){return Object.assign({},r,{selector:$(r.selector,e.scopeId,u)})}),Object.assign({},e,{template:o,selectors:s,scopeId:u}))),this.count++):(a.styleEl=f,a.usesCssVars||(f.innerHTML=m(a.template,{})),this.globalScopes.push(a),this.updateGlobal(),this.hostScopeMap.set(r,a)):f.innerHTML=t,f},r.prototype.removeHost=function(r){var n=this.hostStyleMap.get(r);n&&n.remove(),this.hostStyleMap.delete(r),this.hostScopeMap.delete(r)},r.prototype.updateHost=function(r){var n=this.hostScopeMap.get(r);if(n&&n.usesCssVars&&n.isScoped){var t=this.hostStyleMap.get(r);if(t){var i=d(function(r,n,t){var i;return(i=b(t.concat(function(r,n){for(var t=[];n;){var i=r.get(n);i&&t.push(i),n=n.parentElement}return t}(n,r))).filter(function(n){return function(n,t){return":root"===t||"html"===t||r.matches(t)}(0,n.selector)})).sort(function(r,n){return r.specificity===n.specificity?r.nu-n.nu:r.specificity-n.specificity}),i}(r,this.hostScopeMap,this.globalScopes));t.innerHTML=m(n.template,i)}}},r.prototype.updateGlobal=function(){var r,n;n=d(b(r=this.globalScopes)),r.forEach(function(r){r.usesCssVars&&(r.styleEl.innerHTML=m(r.template,n))})},r.prototype.registerHostTemplate=function(r,n,t){var i=this.scopesMap.get(n);return i||((i=R(r)).scopeId=n,i.isScoped=t,this.scopesMap.set(n,i)),i},r}(),U=window;U.__stencil_cssshim||U.CSS&&U.CSS.supports&&U.CSS.supports("color","var(--c)")||(U.__stencil_cssshim=new P(U,document)); |
@@ -1,1 +0,1 @@ | ||
var t,e,n,o,i;(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function e(e){var n=t.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!n&&e}function n(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function o(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function i(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){if((r=a.import)instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)i(r,e,n);r=o(t,a);continue}if("template"===c){r=o(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,e,n)}r=r.firstChild?r.firstChild:o(t,r)}}function r(t,e,n){t[e]=n}function a(){this.a=new Map,this.g=new Map,this.c=[],this.f=[],this.b=!1}function c(t,e){t.b&&i(e,function(e){return l(t,e)})}function l(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e);for(n=0;n<t.f.length;n++)t.f[n](e)}}function s(t,e){var n=[];for(i(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var o=n[e];1===o.__CE_state?t.connectedCallback(o):h(t,o)}}function u(t,e){var n=[];for(i(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var o=n[e];1===o.__CE_state&&t.disconnectedCallback(o)}}function p(t,e,n){var o=(n=void 0===n?{}:n).u||new Set,r=n.i||function(e){return h(t,e)},a=[];if(i(e,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(o);i.delete(n),p(t,n,{u:i,i:r})}})}else a.push(e)},o),t.b)for(e=0;e<a.length;e++)l(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function h(t,e){if(void 0===e.__CE_state){var o=e.ownerDocument;if((o.defaultView||o.__CE_isImportDocument&&o.__CE_hasRegistry)&&(o=t.a.get(e.localName))){o.constructionStack.push(e);var i=o.constructorFunction;try{try{if(new i!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=o,o.attributeChangedCallback)for(o=o.observedAttributes,i=0;i<o.length;i++){var r=o[i],a=e.getAttribute(r);null!==a&&t.attributeChangedCallback(e,r,null,a,null)}n(e)&&t.connectedCallback(e)}}}function f(t){var e=document;this.c=t,this.a=e,this.b=void 0,p(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 d(t){t.b&&t.b.disconnect()}function m(){var t=this;this.b=this.a=void 0,this.c=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function b(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function y(t){this.c=!1,this.a=t,this.j=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.o=new f(t)}a.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},a.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},a.prototype.attributeChangedCallback=function(t,e,n,o,i){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,o,i)},f.prototype.f=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||d(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)p(this.c,n[o])},y.prototype.l=function(t,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!e(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var i=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=i("connectedCallback"),c=i("disconnectedCallback"),l=i("adoptedCallback"),s=i("attributeChangedCallback"),u=n.observedAttributes||[]}catch(t){return}finally{this.c=!1}(function(t,e,n){t.a.set(e,n),t.g.set(n.constructorFunction,n)})(this.a,t,n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:c,adoptedCallback:l,attributeChangedCallback:s,observedAttributes:u,constructionStack:[]}),this.g.push(n),this.b||(this.b=!0,this.f(function(){return function(t){if(!1!==t.b){t.b=!1;for(var e=t.g,n=[],o=new Map,i=0;i<e.length;i++)o.set(e[i].localName,[]);for(p(t.a,document,{i:function(e){if(void 0===e.__CE_state){var i=e.localName,r=o.get(i);r?r.push(e):t.a.a.get(i)&&n.push(e)}}}),i=0;i<n.length;i++)h(t.a,n[i]);for(;0<e.length;){var r=e.shift();i=r.localName,r=o.get(r.localName);for(var a=0;a<r.length;a++)h(t.a,r[a]);(i=t.j.get(i))&&b(i)}}}(o)}))},y.prototype.i=function(t){p(this.a,t)},y.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction},y.prototype.m=function(t){if(!e(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.j.get(t);return n?n.c:(n=new m,this.j.set(t,n),this.a.a.get(t)&&!this.g.some(function(e){return e.localName===t})&&b(n),n.c)},y.prototype.s=function(t){d(this.o);var e=this.f;this.f=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=y,y.prototype.define=y.prototype.l,y.prototype.upgrade=y.prototype.i,y.prototype.get=y.prototype.get,y.prototype.whenDefined=y.prototype.m,y.prototype.polyfillWrapFlushCallback=y.prototype.s;var g=window.Document.prototype.createElement,w=window.Document.prototype.createElementNS,v=window.Document.prototype.importNode,E=window.Document.prototype.prepend,_=window.Document.prototype.append,C=window.DocumentFragment.prototype.prepend,N=window.DocumentFragment.prototype.append,S=window.Node.prototype.cloneNode,D=window.Node.prototype.appendChild,T=window.Node.prototype.insertBefore,A=window.Node.prototype.removeChild,k=window.Node.prototype.replaceChild,O=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),j=window.Element.prototype.attachShadow,M=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),x=window.Element.prototype.getAttribute,L=window.Element.prototype.setAttribute,H=window.Element.prototype.removeAttribute,R=window.Element.prototype.getAttributeNS,F=window.Element.prototype.setAttributeNS,P=window.Element.prototype.removeAttributeNS,I=window.Element.prototype.insertAdjacentElement,z=window.Element.prototype.insertAdjacentHTML,U=window.Element.prototype.prepend,W=window.Element.prototype.append,q=window.Element.prototype.before,B=window.Element.prototype.after,$=window.Element.prototype.replaceWith,V=window.Element.prototype.remove,X=window.HTMLElement,G=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),J=window.HTMLElement.prototype.insertAdjacentElement,K=window.HTMLElement.prototype.insertAdjacentHTML,Q=new function(){};function Y(t,e,o){function i(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];if(l instanceof Element&&n(l)&&a.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,i),i=0;i<a.length;i++)u(t,a[i]);if(n(this))for(i=0;i<r.length;i++)(a=r[i])instanceof Element&&s(t,a)}}void 0!==o.h&&(e.prepend=i(o.h)),void 0!==o.append&&(e.append=i(o.append))}var Z,tt=window.customElements;if(!tt||tt.forcePolyfill||"function"!=typeof tt.define||"function"!=typeof tt.get){var et=new a;Z=et,window.HTMLElement=function(){function t(){var t=this.constructor,e=Z.g.get(t);if(!e)throw Error("The custom element being constructed was not registered with `customElements`.");var n=e.constructionStack;if(0===n.length)return n=g.call(document,e.localName),Object.setPrototypeOf(n,t.prototype),n.__CE_state=1,n.__CE_definition=e,l(Z,n),n;var o=n[e=n.length-1];if(o===Q)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[e]=Q,Object.setPrototypeOf(o,t.prototype),l(Z,o),o}return t.prototype=X.prototype,Object.defineProperty(t.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),t}(),function(){var t=et;r(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructorFunction}return e=g.call(this,e),l(t,e),e}),r(Document.prototype,"importNode",function(e,n){return e=v.call(this,e,!!n),this.__CE_hasRegistry?p(t,e):c(t,e),e}),r(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructorFunction}return e=w.call(this,e,n),l(t,e),e}),Y(t,Document.prototype,{h:E,append:_})}(),Y(et,DocumentFragment.prototype,{h:C,append:N}),function(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{var i=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&n(this)){i=Array(a);for(var c=0;c<a;c++)i[c]=r[c]}}if(o.set.call(this,t),i)for(t=0;t<i.length;t++)u(e,i[t])}}})}var e=et;r(Node.prototype,"insertBefore",function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);if(t=T.call(this,t,o),n(this))for(o=0;o<i.length;o++)s(e,i[o]);return t}return i=n(t),o=T.call(this,t,o),i&&u(e,t),n(this)&&s(e,t),o}),r(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=D.call(this,t),n(this))for(var i=0;i<o.length;i++)s(e,o[i]);return t}return o=n(t),i=D.call(this,t),o&&u(e,t),n(this)&&s(e,t),i}),r(Node.prototype,"cloneNode",function(t){return t=S.call(this,!!t),this.ownerDocument.__CE_hasRegistry?p(e,t):c(e,t),t}),r(Node.prototype,"removeChild",function(t){var o=n(t),i=A.call(this,t);return o&&u(e,t),i}),r(Node.prototype,"replaceChild",function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);if(t=k.call(this,t,o),n(this))for(u(e,o),o=0;o<i.length;o++)s(e,i[o]);return t}i=n(t);var r=k.call(this,t,o),a=n(this);return a&&u(e,o),i&&u(e,t),a&&s(e,t),r}),O&&O.get?t(Node.prototype,O):function(t,e){t.b=!0,t.c.push(e)}(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++){var n=this.childNodes[e];n.nodeType!==Node.COMMENT_NODE&&t.push(n.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)A.call(this,this.firstChild);null!=t&&""!==t&&D.call(this,document.createTextNode(t))}})})}(),function(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;if(n(this)&&(r=[],i(this,function(t){t!==o&&r.push(t)})),e.set.call(this,t),r)for(var l=0;l<r.length;l++){var s=r[l];1===s.__CE_state&&a.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?p(a,this):c(a,this),t}})}function e(t,e){r(t,"insertAdjacentElement",function(t,o){var i=n(o);return t=e.call(this,t,o),i&&u(a,o),n(t)&&s(a,o),t})}function o(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)p(a,n[e])}r(t,"insertAdjacentHTML",function(t,o){if("beforebegin"===(t=t.toLowerCase())){var i=this.previousSibling;e.call(this,t,o),n(i||this.parentNode.firstChild,this)}else if("afterbegin"===t)i=this.firstChild,e.call(this,t,o),n(this.firstChild,i);else if("beforeend"===t)i=this.lastChild,e.call(this,t,o),n(i||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");i=this.nextSibling,e.call(this,t,o),n(this.nextSibling,i)}})}var a=et;j&&r(Element.prototype,"attachShadow",function(t){t=j.call(this,t);var e=a;if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t)}return this.__CE_shadowRoot=t}),M&&M.get?t(Element.prototype,M):G&&G.get?t(HTMLElement.prototype,G):function(t,e){t.b=!0,t.f.push(e)}(a,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return S.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,o=w.call(document,this.namespaceURI,this.localName);for(o.innerHTML=t;0<n.childNodes.length;)A.call(n,n.childNodes[0]);for(t=e?o.content:o;0<t.childNodes.length;)D.call(n,t.childNodes[0])}})}),r(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return L.call(this,t,e);var n=x.call(this,t);L.call(this,t,e),e=x.call(this,t),a.attributeChangedCallback(this,t,n,e,null)}),r(Element.prototype,"setAttributeNS",function(t,e,n){if(1!==this.__CE_state)return F.call(this,t,e,n);var o=R.call(this,t,e);F.call(this,t,e,n),n=R.call(this,t,e),a.attributeChangedCallback(this,e,o,n,t)}),r(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return H.call(this,t);var e=x.call(this,t);H.call(this,t),null!==e&&a.attributeChangedCallback(this,t,e,null,null)}),r(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return P.call(this,t,e);var n=R.call(this,t,e);P.call(this,t,e);var o=R.call(this,t,e);n!==o&&a.attributeChangedCallback(this,e,n,o,t)}),J?e(HTMLElement.prototype,J):I?e(Element.prototype,I):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),K?o(HTMLElement.prototype,K):z?o(Element.prototype,z):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Y(a,Element.prototype,{h:U,append:W}),function(t){function e(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];if(l instanceof Element&&n(l)&&a.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}for(e.apply(this,i),i=0;i<a.length;i++)u(t,a[i]);if(n(this))for(i=0;i<r.length;i++)(a=r[i])instanceof Element&&s(t,a)}}var o=Element.prototype;void 0!==q&&(o.before=e(q)),void 0!==q&&(o.after=e(B)),void 0!==$&&r(o,"replaceWith",function(e){for(var o=[],i=0;i<arguments.length;++i)o[i]=arguments[i];i=[];for(var r=[],a=0;a<o.length;a++){var c=o[a];if(c instanceof Element&&n(c)&&r.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}for(a=n(this),$.apply(this,o),o=0;o<r.length;o++)u(t,r[o]);if(a)for(u(t,this),o=0;o<i.length;o++)(r=i[o])instanceof Element&&s(t,r)}),void 0!==V&&r(o,"remove",function(){var e=n(this);V.call(this),e&&u(t,this)})}(a)}(),document.__CE_hasRegistry=!0;var nt=new y(et);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:nt})}}).call(self),"string"!=typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t?t.href:document.URL}}),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),t=Event.prototype,e=document,n=window,t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(e,n),this.path}),"function"!=typeof(o=window.Element.prototype).matches&&(o.matches=o.msMatchesSelector||o.mozMatchesSelector||o.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var e=0;t[e]&&t[e]!==this;)++e;return!!t[e]}),"function"!=typeof o.closest&&(o.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null}),function(t){function e(t){return t.parentNode?e(t.parentNode):t}"function"!=typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?function t(n){return 11===(n=e(n)).nodeType?t(n.host):n}(this):e(this)})}(Element.prototype),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}),"classList"in(i=Element.prototype)||Object.defineProperty(i,"classList",{get:function(){var t=this,e=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){e.length>0?t.setAttribute("class",e.join(" ")):t.removeAttribute("class")}return""===e[0]&&e.splice(0,1),e.toggle=function(t,o){void 0!==o?o?e.add(t):e.remove(t):-1!==e.indexOf(t)?e.splice(e.indexOf(t),1):e.push(t),n()},e.add=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1===e.indexOf(t[o])&&e.push(t[o]);n()},e.remove=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1!==e.indexOf(t[o])&&e.splice(e.indexOf(t[o]),1);n()},e.item=function(t){return e[t]},e.contains=function(t){return-1!==e.indexOf(t)},e.replace=function(t,o){-1!==e.indexOf(t)&&e.splice(e.indexOf(t),1,o),n()},e.value=t.getAttribute("class")||"",e}}); | ||
var t,n,i,e,o;(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function n(n){var i=t.has(n);return n=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(n),!i&&n}function i(t){var n=t.isConnected;if(void 0!==n)return n;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function e(t,n){for(;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function o(t,n,i){i=void 0===i?new Set:i;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var f=r;n(f);var s=f.localName;if("link"===s&&"import"===f.getAttribute("rel")){if((r=f.import)instanceof Node&&!i.has(r))for(i.add(r),r=r.firstChild;r;r=r.nextSibling)o(r,n,i);r=e(t,f);continue}if("template"===s){r=e(t,f);continue}if(f=f.__CE_shadowRoot)for(f=f.firstChild;f;f=f.nextSibling)o(f,n,i)}r=r.firstChild?r.firstChild:e(t,r)}}function r(t,n,i){t[n]=i}function f(){this.a=new Map,this.g=new Map,this.c=[],this.f=[],this.b=!1}function s(t,n){t.b&&o(n,function(n){return u(t,n)})}function u(t,n){if(t.b&&!n.__CE_patched){n.__CE_patched=!0;for(var i=0;i<t.c.length;i++)t.c[i](n);for(i=0;i<t.f.length;i++)t.f[i](n)}}function c(t,n){var i=[];for(o(n,function(t){return i.push(t)}),n=0;n<i.length;n++){var e=i[n];1===e.__CE_state?t.connectedCallback(e):l(t,e)}}function a(t,n){var i=[];for(o(n,function(t){return i.push(t)}),n=0;n<i.length;n++){var e=i[n];1===e.__CE_state&&t.disconnectedCallback(e)}}function h(t,n,i){var e=(i=void 0===i?{}:i).u||new Set,r=i.i||function(n){return l(t,n)},f=[];if(o(n,function(n){if("link"===n.localName&&"import"===n.getAttribute("rel")){var i=n.import;i instanceof Node&&(i.__CE_isImportDocument=!0,i.__CE_hasRegistry=!0),i&&"complete"===i.readyState?i.__CE_documentLoadHandled=!0:n.addEventListener("load",function(){var i=n.import;if(!i.__CE_documentLoadHandled){i.__CE_documentLoadHandled=!0;var o=new Set(e);o.delete(i),h(t,i,{u:o,i:r})}})}else f.push(n)},e),t.b)for(n=0;n<f.length;n++)u(t,f[n]);for(n=0;n<f.length;n++)r(f[n])}function l(t,n){if(void 0===n.__CE_state){var e=n.ownerDocument;if((e.defaultView||e.__CE_isImportDocument&&e.__CE_hasRegistry)&&(e=t.a.get(n.localName))){e.constructionStack.push(n);var o=e.constructorFunction;try{try{if(new o!==n)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(t){throw n.__CE_state=2,t}if(n.__CE_state=1,n.__CE_definition=e,e.attributeChangedCallback)for(e=e.observedAttributes,o=0;o<e.length;o++){var r=e[o],f=n.getAttribute(r);null!==f&&t.attributeChangedCallback(n,r,null,f,null)}i(n)&&t.connectedCallback(n)}}}function d(t){var n=document;this.c=t,this.a=n,this.b=void 0,h(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(t){t.b&&t.b.disconnect()}function v(){var t=this;this.b=this.a=void 0,this.c=new Promise(function(n){t.b=n,t.a&&n(t.a)})}function m(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function b(t){this.c=!1,this.a=t,this.j=new Map,this.f=function(t){return t()},this.b=!1,this.g=[],this.o=new d(t)}f.prototype.connectedCallback=function(t){var n=t.__CE_definition;n.connectedCallback&&n.connectedCallback.call(t)},f.prototype.disconnectedCallback=function(t){var n=t.__CE_definition;n.disconnectedCallback&&n.disconnectedCallback.call(t)},f.prototype.attributeChangedCallback=function(t,n,i,e,o){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(n)&&r.attributeChangedCallback.call(t,n,i,e,o)},d.prototype.f=function(t){var n=this.a.readyState;for("interactive"!==n&&"complete"!==n||w(this),n=0;n<t.length;n++)for(var i=t[n].addedNodes,e=0;e<i.length;e++)h(this.c,i[e])},b.prototype.l=function(t,i){var e=this;if(!(i instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!n(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var n=r[t];if(void 0!==n&&!(n instanceof Function))throw Error("The '"+t+"' callback must be a function.");return n},r=i.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=o("connectedCallback"),s=o("disconnectedCallback"),u=o("adoptedCallback"),c=o("attributeChangedCallback"),a=i.observedAttributes||[]}catch(t){return}finally{this.c=!1}(function(t,n,i){t.a.set(n,i),t.g.set(i.constructorFunction,i)})(this.a,t,i={localName:t,constructorFunction:i,connectedCallback:f,disconnectedCallback:s,adoptedCallback:u,attributeChangedCallback:c,observedAttributes:a,constructionStack:[]}),this.g.push(i),this.b||(this.b=!0,this.f(function(){return function(t){if(!1!==t.b){t.b=!1;for(var n=t.g,i=[],e=new Map,o=0;o<n.length;o++)e.set(n[o].localName,[]);for(h(t.a,document,{i:function(n){if(void 0===n.__CE_state){var o=n.localName,r=e.get(o);r?r.push(n):t.a.a.get(o)&&i.push(n)}}}),o=0;o<i.length;o++)l(t.a,i[o]);for(;0<n.length;){var r=n.shift();o=r.localName,r=e.get(r.localName);for(var f=0;f<r.length;f++)l(t.a,r[f]);(o=t.j.get(o))&&m(o)}}}(e)}))},b.prototype.i=function(t){h(this.a,t)},b.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction},b.prototype.m=function(t){if(!n(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var i=this.j.get(t);return i?i.c:(i=new v,this.j.set(t,i),this.a.a.get(t)&&!this.g.some(function(n){return n.localName===t})&&m(i),i.c)},b.prototype.s=function(t){w(this.o);var n=this.f;this.f=function(i){return t(function(){return n(i)})}},window.CustomElementRegistry=b,b.prototype.define=b.prototype.l,b.prototype.upgrade=b.prototype.i,b.prototype.get=b.prototype.get,b.prototype.whenDefined=b.prototype.m,b.prototype.polyfillWrapFlushCallback=b.prototype.s;var E=window.Document.prototype.createElement,p=window.Document.prototype.createElementNS,g=window.Document.prototype.importNode,y=window.Document.prototype.prepend,C=window.Document.prototype.append,T=window.DocumentFragment.prototype.prepend,j=window.DocumentFragment.prototype.append,N=window.Node.prototype.cloneNode,A=window.Node.prototype.appendChild,D=window.Node.prototype.insertBefore,M=window.Node.prototype.removeChild,O=window.Node.prototype.replaceChild,S=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),k=window.Element.prototype.attachShadow,L=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),F=window.Element.prototype.getAttribute,H=window.Element.prototype.setAttribute,x=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,P=window.Element.prototype.setAttributeNS,R=window.Element.prototype.removeAttributeNS,$=window.Element.prototype.insertAdjacentElement,_=window.Element.prototype.insertAdjacentHTML,B=window.Element.prototype.prepend,I=window.Element.prototype.append,U=window.Element.prototype.before,W=window.Element.prototype.after,q=window.Element.prototype.replaceWith,G=window.Element.prototype.remove,J=window.HTMLElement,K=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Q=window.HTMLElement.prototype.insertAdjacentElement,V=window.HTMLElement.prototype.insertAdjacentHTML,X=new function(){};function Y(t,n,e){function o(n){return function(e){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var f=[],s=0;s<o.length;s++){var u=o[s];if(u instanceof Element&&i(u)&&f.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)r.push(u);else r.push(u)}for(n.apply(this,o),o=0;o<f.length;o++)a(t,f[o]);if(i(this))for(o=0;o<r.length;o++)(f=r[o])instanceof Element&&c(t,f)}}void 0!==e.h&&(n.prepend=o(e.h)),void 0!==e.append&&(n.append=o(e.append))}var Z,tt=window.customElements;if(!tt||tt.forcePolyfill||"function"!=typeof tt.define||"function"!=typeof tt.get){var nt=new f;Z=nt,window.HTMLElement=function(){function t(){var t=this.constructor,n=Z.g.get(t);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var i=n.constructionStack;if(0===i.length)return i=E.call(document,n.localName),Object.setPrototypeOf(i,t.prototype),i.__CE_state=1,i.__CE_definition=n,u(Z,i),i;var e=i[n=i.length-1];if(e===X)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return i[n]=X,Object.setPrototypeOf(e,t.prototype),u(Z,e),e}return t.prototype=J.prototype,Object.defineProperty(t.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),t}(),function(){var t=nt;r(Document.prototype,"createElement",function(n){if(this.__CE_hasRegistry){var i=t.a.get(n);if(i)return new i.constructorFunction}return n=E.call(this,n),u(t,n),n}),r(Document.prototype,"importNode",function(n,i){return n=g.call(this,n,!!i),this.__CE_hasRegistry?h(t,n):s(t,n),n}),r(Document.prototype,"createElementNS",function(n,i){if(this.__CE_hasRegistry&&(null===n||"http://www.w3.org/1999/xhtml"===n)){var e=t.a.get(i);if(e)return new e.constructorFunction}return n=p.call(this,n,i),u(t,n),n}),Y(t,Document.prototype,{h:y,append:C})}(),Y(nt,DocumentFragment.prototype,{h:T,append:j}),function(){function t(t,e){Object.defineProperty(t,"textContent",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)e.set.call(this,t);else{var o=void 0;if(this.firstChild){var r=this.childNodes,f=r.length;if(0<f&&i(this)){o=Array(f);for(var s=0;s<f;s++)o[s]=r[s]}}if(e.set.call(this,t),o)for(t=0;t<o.length;t++)a(n,o[t])}}})}var n=nt;r(Node.prototype,"insertBefore",function(t,e){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=D.call(this,t,e),i(this))for(e=0;e<o.length;e++)c(n,o[e]);return t}return o=i(t),e=D.call(this,t,e),o&&a(n,t),i(this)&&c(n,t),e}),r(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var e=Array.prototype.slice.apply(t.childNodes);if(t=A.call(this,t),i(this))for(var o=0;o<e.length;o++)c(n,e[o]);return t}return e=i(t),o=A.call(this,t),e&&a(n,t),i(this)&&c(n,t),o}),r(Node.prototype,"cloneNode",function(t){return t=N.call(this,!!t),this.ownerDocument.__CE_hasRegistry?h(n,t):s(n,t),t}),r(Node.prototype,"removeChild",function(t){var e=i(t),o=M.call(this,t);return e&&a(n,t),o}),r(Node.prototype,"replaceChild",function(t,e){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=O.call(this,t,e),i(this))for(a(n,e),e=0;e<o.length;e++)c(n,o[e]);return t}o=i(t);var r=O.call(this,t,e),f=i(this);return f&&a(n,e),o&&a(n,t),f&&c(n,t),r}),S&&S.get?t(Node.prototype,S):function(t,n){t.b=!0,t.c.push(n)}(n,function(n){t(n,{enumerable:!0,configurable:!0,get:function(){for(var t=[],n=0;n<this.childNodes.length;n++){var i=this.childNodes[n];i.nodeType!==Node.COMMENT_NODE&&t.push(i.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)M.call(this,this.firstChild);null!=t&&""!==t&&A.call(this,document.createTextNode(t))}})})}(),function(){function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var e=this,r=void 0;if(i(this)&&(r=[],o(this,function(t){t!==e&&r.push(t)})),n.set.call(this,t),r)for(var u=0;u<r.length;u++){var c=r[u];1===c.__CE_state&&f.disconnectedCallback(c)}return this.ownerDocument.__CE_hasRegistry?h(f,this):s(f,this),t}})}function n(t,n){r(t,"insertAdjacentElement",function(t,e){var o=i(e);return t=n.call(this,t,e),o&&a(f,e),i(t)&&c(f,e),t})}function e(t,n){function i(t,n){for(var i=[];t!==n;t=t.nextSibling)i.push(t);for(n=0;n<i.length;n++)h(f,i[n])}r(t,"insertAdjacentHTML",function(t,e){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;n.call(this,t,e),i(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,n.call(this,t,e),i(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,n.call(this,t,e),i(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,n.call(this,t,e),i(this.nextSibling,o)}})}var f=nt;k&&r(Element.prototype,"attachShadow",function(t){t=k.call(this,t);var n=f;if(n.b&&!t.__CE_patched){t.__CE_patched=!0;for(var i=0;i<n.c.length;i++)n.c[i](t)}return this.__CE_shadowRoot=t}),L&&L.get?t(Element.prototype,L):K&&K.get?t(HTMLElement.prototype,K):function(t,n){t.b=!0,t.f.push(n)}(f,function(n){t(n,{enumerable:!0,configurable:!0,get:function(){return N.call(this,!0).innerHTML},set:function(t){var n="template"===this.localName,i=n?this.content:this,e=p.call(document,this.namespaceURI,this.localName);for(e.innerHTML=t;0<i.childNodes.length;)M.call(i,i.childNodes[0]);for(t=n?e.content:e;0<t.childNodes.length;)A.call(i,t.childNodes[0])}})}),r(Element.prototype,"setAttribute",function(t,n){if(1!==this.__CE_state)return H.call(this,t,n);var i=F.call(this,t);H.call(this,t,n),n=F.call(this,t),f.attributeChangedCallback(this,t,i,n,null)}),r(Element.prototype,"setAttributeNS",function(t,n,i){if(1!==this.__CE_state)return P.call(this,t,n,i);var e=z.call(this,t,n);P.call(this,t,n,i),i=z.call(this,t,n),f.attributeChangedCallback(this,n,e,i,t)}),r(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return x.call(this,t);var n=F.call(this,t);x.call(this,t),null!==n&&f.attributeChangedCallback(this,t,n,null,null)}),r(Element.prototype,"removeAttributeNS",function(t,n){if(1!==this.__CE_state)return R.call(this,t,n);var i=z.call(this,t,n);R.call(this,t,n);var e=z.call(this,t,n);i!==e&&f.attributeChangedCallback(this,n,i,e,t)}),Q?n(HTMLElement.prototype,Q):$?n(Element.prototype,$):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),V?e(HTMLElement.prototype,V):_?e(Element.prototype,_):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Y(f,Element.prototype,{h:B,append:I}),function(t){function n(n){return function(e){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var f=[],s=0;s<o.length;s++){var u=o[s];if(u instanceof Element&&i(u)&&f.push(u),u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)r.push(u);else r.push(u)}for(n.apply(this,o),o=0;o<f.length;o++)a(t,f[o]);if(i(this))for(o=0;o<r.length;o++)(f=r[o])instanceof Element&&c(t,f)}}var e=Element.prototype;void 0!==U&&(e.before=n(U)),void 0!==U&&(e.after=n(W)),void 0!==q&&r(e,"replaceWith",function(n){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];o=[];for(var r=[],f=0;f<e.length;f++){var s=e[f];if(s instanceof Element&&i(s)&&r.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)o.push(s);else o.push(s)}for(f=i(this),q.apply(this,e),e=0;e<r.length;e++)a(t,r[e]);if(f)for(a(t,this),e=0;e<o.length;e++)(r=o[e])instanceof Element&&c(t,r)}),void 0!==G&&r(e,"remove",function(){var n=i(this);G.call(this),n&&a(t,this)})}(f)}(),document.__CE_hasRegistry=!0;var it=new b(nt);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:it})}}).call(self),"string"!=typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t?t.href:document.URL}}),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i},window.CustomEvent.prototype=window.Event.prototype),t=Event.prototype,n=document,i=window,t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;return this.path.push(n,i),this.path}),"function"!=typeof(e=window.Element.prototype).matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var n=0;t[n]&&t[n]!==this;)++n;return!!t[n]}),"function"!=typeof e.closest&&(e.closest=function(t){for(var n=this;n&&1===n.nodeType;){if(n.matches(t))return n;n=n.parentNode}return null}),function(t){function n(t){return t.parentNode?n(t.parentNode):t}"function"!=typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?function t(i){return 11===(i=n(i)).nodeType?t(i.host):i}(this):n(this)})}(Element.prototype),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}),"classList"in(o=Element.prototype)||Object.defineProperty(o,"classList",{get:function(){var t=this,n=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function i(){n.length>0?t.setAttribute("class",n.join(" ")):t.removeAttribute("class")}return""===n[0]&&n.splice(0,1),n.toggle=function(t,e){void 0!==e?e?n.add(t):n.remove(t):-1!==n.indexOf(t)?n.splice(n.indexOf(t),1):n.push(t),i()},n.add=function(){for(var t=[].slice.call(arguments),e=0,o=t.length;e<o;e++)-1===n.indexOf(t[e])&&n.push(t[e]);i()},n.remove=function(){for(var t=[].slice.call(arguments),e=0,o=t.length;e<o;e++)-1!==n.indexOf(t[e])&&n.splice(n.indexOf(t[e]),1);i()},n.item=function(t){return n[t]},n.contains=function(t){return-1!==n.indexOf(t)},n.replace=function(t,e){-1!==n.indexOf(t)&&n.splice(n.indexOf(t),1,e),i()},n.value=t.getAttribute("class")||"",n}}); |
@@ -1,1 +0,1 @@ | ||
import{p as o,b as r}from"./p-86289101.js";o().then(o=>r([["p-wcsdpoqj",[[0,"manifold-oauth",{oauthUrl:[1,"oauth-url"]}]]]],{resourcesUrl:o})); | ||
import{p as a,b as o}from"./p-67085701.js";a().then(a=>o([["p-up6tuvsq",[[0,"manifold-oauth",{oauthUrl:[1,"oauth-url"]}]]]],a)); |
@@ -9,4 +9,6 @@ /* tslint:disable */ | ||
import { HTMLStencilElement, JSXBase } from './stencil.core'; | ||
import { | ||
AuthToken, | ||
} from './interface'; | ||
export namespace Components { | ||
@@ -34,3 +36,3 @@ interface ManifoldOauth { | ||
'oauthUrl'?: string; | ||
'onReceiveManifoldToken'?: (event: CustomEvent<any>) => void; | ||
'onReceiveManifoldToken'?: (event: CustomEvent<AuthToken>) => void; | ||
} | ||
@@ -37,0 +39,0 @@ |
import { EventEmitter } from "../../stencil.core"; | ||
import { AuthToken } from "../../interface"; | ||
export declare class ManifoldOauth { | ||
oauthUrl?: string; | ||
receiveManifoldToken: EventEmitter; | ||
receiveManifoldToken: EventEmitter<AuthToken>; | ||
tokenListener: (ev: MessageEvent) => void; | ||
@@ -6,0 +7,0 @@ componentWillLoad(): void; |
@@ -8,10 +8,27 @@ { | ||
"es2017": "dist/esm/index.mjs", | ||
"types": "dist/types/index.d.ts", | ||
"types": "dist/types/interface.d.ts", | ||
"collection": "dist/collection/collection-manifest.json", | ||
"collection:main": "dist/collection/index.js", | ||
"unpkg": "dist/shadowcat/shadowcat.js", | ||
"bundlesize": [ | ||
{ | ||
"path": "./dist/esm/loader.mjs", | ||
"maxSize": "1 kB", | ||
"compression": "none" | ||
}, | ||
{ | ||
"path": "./dist/esm/manifold-!(mock)*.js", | ||
"maxSize": "1 kB", | ||
"compression": "none" | ||
}, | ||
{ | ||
"path": "./dist/esm/chunk-*.js", | ||
"maxSize": "40 kB", | ||
"compression": "none" | ||
} | ||
], | ||
"devDependencies": { | ||
"@stencil/core": "^1.1.6", | ||
"@types/jest": "24.0.15", | ||
"@types/puppeteer": "1.12.4", | ||
"@stencil/core": "^1.2.3", | ||
"@types/jest": "24.0.16", | ||
"@types/puppeteer": "1.19.0", | ||
"fs-extra": "^8.1.0", | ||
@@ -21,6 +38,6 @@ "jest": "24.8.0", | ||
"prettier": "^1.18.2", | ||
"puppeteer": "1.17.0" | ||
"puppeteer": "1.19.0" | ||
}, | ||
"license": "MIT", | ||
"version": "0.0.2" | ||
"version": "0.1.2-test.0" | ||
} |
@@ -53,4 +53,6 @@ # shadowcat | ||
[![Travis](https://img.shields.io/travis/manifoldco/shadowcat/master.svg)](https://travis-ci.org/manifoldco/shadowcat) | ||
[![Travis](https://img.shields.io/travis/manifoldco/shadowcat/master.svg)](https://travis-ci.com/manifoldco/shadowcat) | ||
[![version (scoped)](https://img.shields.io/npm/v/@manifoldco/shadowcat.svg)](https://www.npmjs.com/package/@manifoldco/shadowcat) | ||
[![License](https://img.shields.io/badge/license-BSD-blue.svg)](./LICENSE.md) |
Sorry, the diff of this file is not supported yet
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 too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
650010
59
9818
58