UNPKG

@codebakery/origami

Version:
16 lines (14 loc) 3.46 kB
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@codebakery/origami/util"),require("@angular/core")):"function"==typeof define&&define.amd?define("@codebakery/origami/polyfills",["exports","@codebakery/origami/util","@angular/core"],o):o(((e=e||self).codebakery=e.codebakery||{},e.codebakery.origami=e.codebakery.origami||{},e.codebakery.origami.polyfills={}),e.codebakery.origami.util,e.ng.core)}(this,(function(e,o,n){"use strict"; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var t;function r(e,o){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,r,i=n.call(e),c=[];try{for(;(void 0===o||o-- >0)&&!(t=i.next()).done;)c.push(t.value)}catch(e){r={error:e}}finally{try{t&&!t.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return c}function i(){return t||(t=new Promise((function(e){o.whenSet(window,"WebComponents",void 0,(function(o){o&&!o.ready?document.addEventListener("WebComponentsReady",(function o(){document.removeEventListener("WebComponentsReady",o),e()})):e()}))}))),t}function c(){if(!window.customElements){var e={},o={},n=[],t=function(){function t(){this.forcePolyfill=!0}return t.prototype.get=function(o){return e[o]&&e[o][0]},t.prototype.define=function(o,n,t){e[o]=[n,t]},t.prototype.whenDefined=function(e){return Array.isArray(o[e])||(o[e]=[],o[e][0]=new Promise((function(n){o[e][1]=n}))),o[e][0]},t.prototype.upgrade=function(e){n.push(e)},t}();window.customElements=new t,window.CustomElementRegistry=t,i().then((function(){Object.keys(o).forEach((function(e){window.customElements.whenDefined(e).then((function(){o[e][1]()}))})),Object.keys(e).forEach((function(o){var n=r(e[o],2),t=n[0],i=n[1];window.customElements.define(o,t,i)})),n.forEach((function(e){return window.customElements.upgrade(e)}))}))}}c(),function(){if("object"==typeof HTMLElement){var e=function(){};e.prototype=HTMLElement.prototype,window.HTMLElement=e}}();var u=i,f={provide:n.APP_INITIALIZER,multi:!0,useValue:u},a=function(){function e(){}return e=function(e,o,n,t){var r,i=arguments.length,c=i<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,n):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,o,n,t);else for(var u=e.length-1;u>=0;u--)(r=e[u])&&(c=(i<3?r(c):i>3?r(o,n,c):r(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c}([n.NgModule({providers:[f]})],e)}();e.WEBCOMPONENTS_READY_PROVIDER=f,e.WebComponentsReadyModule=a,e.resetWebcomponentsReady=function(){t=void 0},e.shimCustomElements=c,e.webcomponentsReady=i,e.ɵ0=u,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=origami-polyfills.umd.min.js.map