@angular/core 10.0.1 → 10.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/bundles/core-testing.umd.js +320 -271
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +11 -25
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +834 -1043
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +132 -286
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.d.ts +193 -183
  10. package/core.metadata.json +1 -1
  11. package/esm2015/core.js +11 -10
  12. package/esm2015/src/application_init.js +9 -5
  13. package/esm2015/src/application_tokens.js +16 -12
  14. package/esm2015/src/change_detection/change_detector_ref.js +6 -3
  15. package/esm2015/src/change_detection/constants.js +3 -1
  16. package/esm2015/src/core_render3_private_export.js +2 -2
  17. package/esm2015/src/di/injectable.js +1 -1
  18. package/esm2015/src/di/metadata.js +2 -2
  19. package/esm2015/src/interface/type.js +2 -2
  20. package/esm2015/src/linker/ng_module_factory.js +3 -5
  21. package/esm2015/src/linker/view_ref.js +3 -6
  22. package/esm2015/src/metadata/directives.js +1 -1
  23. package/esm2015/src/metadata/ng_module.js +1 -1
  24. package/esm2015/src/render3/definition.js +3 -11
  25. package/esm2015/src/render3/di.js +13 -5
  26. package/esm2015/src/render3/di_setup.js +5 -5
  27. package/esm2015/src/render3/features/inherit_definition_feature.js +1 -11
  28. package/esm2015/src/render3/features/ng_onchanges_feature.js +32 -22
  29. package/esm2015/src/render3/hooks.js +27 -23
  30. package/esm2015/src/render3/i18n.js +3 -3
  31. package/esm2015/src/render3/index.js +3 -3
  32. package/esm2015/src/render3/instructions/element.js +4 -4
  33. package/esm2015/src/render3/instructions/host_property.js +3 -3
  34. package/esm2015/src/render3/instructions/listener.js +3 -3
  35. package/esm2015/src/render3/instructions/shared.js +15 -26
  36. package/esm2015/src/render3/interfaces/definition.js +1 -1
  37. package/esm2015/src/render3/interfaces/node.js +1 -1
  38. package/esm2015/src/render3/jit/environment.js +3 -3
  39. package/esm2015/src/render3/util/discovery_utils.js +2 -2
  40. package/esm2015/src/render3/view_ref.js +3 -3
  41. package/esm2015/src/sanitization/html_sanitizer.js +3 -3
  42. package/esm2015/src/sanitization/inert_body.js +39 -82
  43. package/esm2015/src/util/ng_dev_mode.js +2 -2
  44. package/esm2015/src/version.js +1 -1
  45. package/esm2015/testing/src/fake_async_fallback.js +5 -1
  46. package/fesm2015/core.js +266 -309
  47. package/fesm2015/core.js.map +1 -1
  48. package/fesm2015/testing.js +5 -1
  49. package/fesm2015/testing.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/r3_symbols.d.ts +15 -17
  52. package/testing/testing.d.ts +1 -1
  53. package/testing.d.ts +1 -1
  54. package/esm2015/src/util/WrappedValue.js +0 -48
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v10.0.1
2
+ * @license Angular v10.0.5
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -374,6 +374,9 @@
374
374
  * @publicApi
375
375
  */
376
376
  function resetFakeAsyncZoneFallback() {
377
+ if (_fakeAsyncTestZoneSpec) {
378
+ _fakeAsyncTestZoneSpec.unlockDatePatch();
379
+ }
377
380
  _fakeAsyncTestZoneSpec = null;
378
381
  // in node.js testing we may not have ProxyZoneSpec in which case there is nothing to reset.
379
382
  ProxyZoneSpec && ProxyZoneSpec.assertPresent().resetDelegate();
@@ -420,6 +423,7 @@
420
423
  var res = void 0;
421
424
  var lastProxyZoneSpec = proxyZoneSpec.getDelegate();
422
425
  proxyZoneSpec.setDelegate(_fakeAsyncTestZoneSpec);
426
+ _fakeAsyncTestZoneSpec.lockDatePatch();
423
427
  try {
424
428
  res = fn.apply(this, args);
425
429
  flushMicrotasksFallback();
@@ -657,232 +661,305 @@
657
661
  }
658
662
  }
659
663
 
660
- /*! *****************************************************************************
661
- Copyright (c) Microsoft Corporation.
662
-
663
- Permission to use, copy, modify, and/or distribute this software for any
664
- purpose with or without fee is hereby granted.
665
-
666
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
667
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
668
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
669
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
670
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
671
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
672
- PERFORMANCE OF THIS SOFTWARE.
673
- ***************************************************************************** */
674
- /* global Reflect, Promise */
675
-
676
- var extendStatics = function(d, b) {
677
- extendStatics = Object.setPrototypeOf ||
678
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
679
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
680
- return extendStatics(d, b);
681
- };
682
-
683
- function __extends(d, b) {
684
- extendStatics(d, b);
685
- function __() { this.constructor = d; }
686
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
687
- }
688
-
689
- var __assign = function() {
690
- __assign = Object.assign || function __assign(t) {
691
- for (var s, i = 1, n = arguments.length; i < n; i++) {
692
- s = arguments[i];
693
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
694
- }
695
- return t;
696
- };
697
- return __assign.apply(this, arguments);
698
- };
699
-
700
- function __rest(s, e) {
701
- var t = {};
702
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
703
- t[p] = s[p];
704
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
705
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
706
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
707
- t[p[i]] = s[p[i]];
708
- }
709
- return t;
710
- }
711
-
712
- function __decorate(decorators, target, key, desc) {
713
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
714
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
715
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
716
- return c > 3 && r && Object.defineProperty(target, key, r), r;
717
- }
718
-
719
- function __param(paramIndex, decorator) {
720
- return function (target, key) { decorator(target, key, paramIndex); }
721
- }
722
-
723
- function __metadata(metadataKey, metadataValue) {
724
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
725
- }
726
-
727
- function __awaiter(thisArg, _arguments, P, generator) {
728
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
729
- return new (P || (P = Promise))(function (resolve, reject) {
730
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
731
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
732
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
733
- step((generator = generator.apply(thisArg, _arguments || [])).next());
734
- });
735
- }
736
-
737
- function __generator(thisArg, body) {
738
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
739
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
740
- function verb(n) { return function (v) { return step([n, v]); }; }
741
- function step(op) {
742
- if (f) throw new TypeError("Generator is already executing.");
743
- while (_) try {
744
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
745
- if (y = 0, t) op = [op[0] & 2, t.value];
746
- switch (op[0]) {
747
- case 0: case 1: t = op; break;
748
- case 4: _.label++; return { value: op[1], done: false };
749
- case 5: _.label++; y = op[1]; op = [0]; continue;
750
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
751
- default:
752
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
753
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
754
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
755
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
756
- if (t[2]) _.ops.pop();
757
- _.trys.pop(); continue;
758
- }
759
- op = body.call(thisArg, _);
760
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
761
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
762
- }
763
- }
764
-
765
- var __createBinding = Object.create ? (function(o, m, k, k2) {
766
- if (k2 === undefined) k2 = k;
767
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
768
- }) : (function(o, m, k, k2) {
769
- if (k2 === undefined) k2 = k;
770
- o[k2] = m[k];
771
- });
772
-
773
- function __exportStar(m, exports) {
774
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
775
- }
776
-
777
- function __values(o) {
778
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
779
- if (m) return m.call(o);
780
- if (o && typeof o.length === "number") return {
781
- next: function () {
782
- if (o && i >= o.length) o = void 0;
783
- return { value: o && o[i++], done: !o };
784
- }
785
- };
786
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
787
- }
788
-
789
- function __read(o, n) {
790
- var m = typeof Symbol === "function" && o[Symbol.iterator];
791
- if (!m) return o;
792
- var i = m.call(o), r, ar = [], e;
793
- try {
794
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
795
- }
796
- catch (error) { e = { error: error }; }
797
- finally {
798
- try {
799
- if (r && !r.done && (m = i["return"])) m.call(i);
800
- }
801
- finally { if (e) throw e.error; }
802
- }
803
- return ar;
804
- }
805
-
806
- function __spread() {
807
- for (var ar = [], i = 0; i < arguments.length; i++)
808
- ar = ar.concat(__read(arguments[i]));
809
- return ar;
810
- }
811
-
812
- function __spreadArrays() {
813
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
814
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
815
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
816
- r[k] = a[j];
817
- return r;
818
- };
819
-
820
- function __await(v) {
821
- return this instanceof __await ? (this.v = v, this) : new __await(v);
822
- }
823
-
824
- function __asyncGenerator(thisArg, _arguments, generator) {
825
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
826
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
827
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
828
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
829
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
830
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
831
- function fulfill(value) { resume("next", value); }
832
- function reject(value) { resume("throw", value); }
833
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
834
- }
835
-
836
- function __asyncDelegator(o) {
837
- var i, p;
838
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
839
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
840
- }
841
-
842
- function __asyncValues(o) {
843
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
844
- var m = o[Symbol.asyncIterator], i;
845
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
846
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
847
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
848
- }
849
-
850
- function __makeTemplateObject(cooked, raw) {
851
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
852
- return cooked;
853
- };
854
-
855
- var __setModuleDefault = Object.create ? (function(o, v) {
856
- Object.defineProperty(o, "default", { enumerable: true, value: v });
857
- }) : function(o, v) {
858
- o["default"] = v;
859
- };
860
-
861
- function __importStar(mod) {
862
- if (mod && mod.__esModule) return mod;
863
- var result = {};
864
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
865
- __setModuleDefault(result, mod);
866
- return result;
867
- }
868
-
869
- function __importDefault(mod) {
870
- return (mod && mod.__esModule) ? mod : { default: mod };
871
- }
872
-
873
- function __classPrivateFieldGet(receiver, privateMap) {
874
- if (!privateMap.has(receiver)) {
875
- throw new TypeError("attempted to get private field on non-instance");
876
- }
877
- return privateMap.get(receiver);
878
- }
879
-
880
- function __classPrivateFieldSet(receiver, privateMap, value) {
881
- if (!privateMap.has(receiver)) {
882
- throw new TypeError("attempted to set private field on non-instance");
883
- }
884
- privateMap.set(receiver, value);
885
- return value;
664
+ /*! *****************************************************************************
665
+ Copyright (c) Microsoft Corporation.
666
+
667
+ Permission to use, copy, modify, and/or distribute this software for any
668
+ purpose with or without fee is hereby granted.
669
+
670
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
671
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
672
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
673
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
674
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
675
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
676
+ PERFORMANCE OF THIS SOFTWARE.
677
+ ***************************************************************************** */
678
+ /* global Reflect, Promise */
679
+ var extendStatics = function (d, b) {
680
+ extendStatics = Object.setPrototypeOf ||
681
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
682
+ function (d, b) { for (var p in b)
683
+ if (b.hasOwnProperty(p))
684
+ d[p] = b[p]; };
685
+ return extendStatics(d, b);
686
+ };
687
+ function __extends(d, b) {
688
+ extendStatics(d, b);
689
+ function __() { this.constructor = d; }
690
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
691
+ }
692
+ var __assign = function () {
693
+ __assign = Object.assign || function __assign(t) {
694
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
695
+ s = arguments[i];
696
+ for (var p in s)
697
+ if (Object.prototype.hasOwnProperty.call(s, p))
698
+ t[p] = s[p];
699
+ }
700
+ return t;
701
+ };
702
+ return __assign.apply(this, arguments);
703
+ };
704
+ function __rest(s, e) {
705
+ var t = {};
706
+ for (var p in s)
707
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
708
+ t[p] = s[p];
709
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
710
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
711
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
712
+ t[p[i]] = s[p[i]];
713
+ }
714
+ return t;
715
+ }
716
+ function __decorate(decorators, target, key, desc) {
717
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
718
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
719
+ r = Reflect.decorate(decorators, target, key, desc);
720
+ else
721
+ for (var i = decorators.length - 1; i >= 0; i--)
722
+ if (d = decorators[i])
723
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
724
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
725
+ }
726
+ function __param(paramIndex, decorator) {
727
+ return function (target, key) { decorator(target, key, paramIndex); };
728
+ }
729
+ function __metadata(metadataKey, metadataValue) {
730
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
731
+ return Reflect.metadata(metadataKey, metadataValue);
732
+ }
733
+ function __awaiter(thisArg, _arguments, P, generator) {
734
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
735
+ return new (P || (P = Promise))(function (resolve, reject) {
736
+ function fulfilled(value) { try {
737
+ step(generator.next(value));
738
+ }
739
+ catch (e) {
740
+ reject(e);
741
+ } }
742
+ function rejected(value) { try {
743
+ step(generator["throw"](value));
744
+ }
745
+ catch (e) {
746
+ reject(e);
747
+ } }
748
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
749
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
750
+ });
751
+ }
752
+ function __generator(thisArg, body) {
753
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
754
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
755
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
756
+ function verb(n) { return function (v) { return step([n, v]); }; }
757
+ function step(op) {
758
+ if (f)
759
+ throw new TypeError("Generator is already executing.");
760
+ while (_)
761
+ try {
762
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
763
+ return t;
764
+ if (y = 0, t)
765
+ op = [op[0] & 2, t.value];
766
+ switch (op[0]) {
767
+ case 0:
768
+ case 1:
769
+ t = op;
770
+ break;
771
+ case 4:
772
+ _.label++;
773
+ return { value: op[1], done: false };
774
+ case 5:
775
+ _.label++;
776
+ y = op[1];
777
+ op = [0];
778
+ continue;
779
+ case 7:
780
+ op = _.ops.pop();
781
+ _.trys.pop();
782
+ continue;
783
+ default:
784
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
785
+ _ = 0;
786
+ continue;
787
+ }
788
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
789
+ _.label = op[1];
790
+ break;
791
+ }
792
+ if (op[0] === 6 && _.label < t[1]) {
793
+ _.label = t[1];
794
+ t = op;
795
+ break;
796
+ }
797
+ if (t && _.label < t[2]) {
798
+ _.label = t[2];
799
+ _.ops.push(op);
800
+ break;
801
+ }
802
+ if (t[2])
803
+ _.ops.pop();
804
+ _.trys.pop();
805
+ continue;
806
+ }
807
+ op = body.call(thisArg, _);
808
+ }
809
+ catch (e) {
810
+ op = [6, e];
811
+ y = 0;
812
+ }
813
+ finally {
814
+ f = t = 0;
815
+ }
816
+ if (op[0] & 5)
817
+ throw op[1];
818
+ return { value: op[0] ? op[1] : void 0, done: true };
819
+ }
820
+ }
821
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
822
+ if (k2 === undefined)
823
+ k2 = k;
824
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
825
+ }) : (function (o, m, k, k2) {
826
+ if (k2 === undefined)
827
+ k2 = k;
828
+ o[k2] = m[k];
829
+ });
830
+ function __exportStar(m, exports) {
831
+ for (var p in m)
832
+ if (p !== "default" && !exports.hasOwnProperty(p))
833
+ __createBinding(exports, m, p);
834
+ }
835
+ function __values(o) {
836
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
837
+ if (m)
838
+ return m.call(o);
839
+ if (o && typeof o.length === "number")
840
+ return {
841
+ next: function () {
842
+ if (o && i >= o.length)
843
+ o = void 0;
844
+ return { value: o && o[i++], done: !o };
845
+ }
846
+ };
847
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
848
+ }
849
+ function __read(o, n) {
850
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
851
+ if (!m)
852
+ return o;
853
+ var i = m.call(o), r, ar = [], e;
854
+ try {
855
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
856
+ ar.push(r.value);
857
+ }
858
+ catch (error) {
859
+ e = { error: error };
860
+ }
861
+ finally {
862
+ try {
863
+ if (r && !r.done && (m = i["return"]))
864
+ m.call(i);
865
+ }
866
+ finally {
867
+ if (e)
868
+ throw e.error;
869
+ }
870
+ }
871
+ return ar;
872
+ }
873
+ function __spread() {
874
+ for (var ar = [], i = 0; i < arguments.length; i++)
875
+ ar = ar.concat(__read(arguments[i]));
876
+ return ar;
877
+ }
878
+ function __spreadArrays() {
879
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
880
+ s += arguments[i].length;
881
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
882
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
883
+ r[k] = a[j];
884
+ return r;
885
+ }
886
+ ;
887
+ function __await(v) {
888
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
889
+ }
890
+ function __asyncGenerator(thisArg, _arguments, generator) {
891
+ if (!Symbol.asyncIterator)
892
+ throw new TypeError("Symbol.asyncIterator is not defined.");
893
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
894
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
895
+ function verb(n) { if (g[n])
896
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
897
+ function resume(n, v) { try {
898
+ step(g[n](v));
899
+ }
900
+ catch (e) {
901
+ settle(q[0][3], e);
902
+ } }
903
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
904
+ function fulfill(value) { resume("next", value); }
905
+ function reject(value) { resume("throw", value); }
906
+ function settle(f, v) { if (f(v), q.shift(), q.length)
907
+ resume(q[0][0], q[0][1]); }
908
+ }
909
+ function __asyncDelegator(o) {
910
+ var i, p;
911
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
912
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
913
+ }
914
+ function __asyncValues(o) {
915
+ if (!Symbol.asyncIterator)
916
+ throw new TypeError("Symbol.asyncIterator is not defined.");
917
+ var m = o[Symbol.asyncIterator], i;
918
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
919
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
920
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
921
+ }
922
+ function __makeTemplateObject(cooked, raw) {
923
+ if (Object.defineProperty) {
924
+ Object.defineProperty(cooked, "raw", { value: raw });
925
+ }
926
+ else {
927
+ cooked.raw = raw;
928
+ }
929
+ return cooked;
930
+ }
931
+ ;
932
+ var __setModuleDefault = Object.create ? (function (o, v) {
933
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
934
+ }) : function (o, v) {
935
+ o["default"] = v;
936
+ };
937
+ function __importStar(mod) {
938
+ if (mod && mod.__esModule)
939
+ return mod;
940
+ var result = {};
941
+ if (mod != null)
942
+ for (var k in mod)
943
+ if (Object.hasOwnProperty.call(mod, k))
944
+ __createBinding(result, mod, k);
945
+ __setModuleDefault(result, mod);
946
+ return result;
947
+ }
948
+ function __importDefault(mod) {
949
+ return (mod && mod.__esModule) ? mod : { default: mod };
950
+ }
951
+ function __classPrivateFieldGet(receiver, privateMap) {
952
+ if (!privateMap.has(receiver)) {
953
+ throw new TypeError("attempted to get private field on non-instance");
954
+ }
955
+ return privateMap.get(receiver);
956
+ }
957
+ function __classPrivateFieldSet(receiver, privateMap, value) {
958
+ if (!privateMap.has(receiver)) {
959
+ throw new TypeError("attempted to set private field on non-instance");
960
+ }
961
+ privateMap.set(receiver, value);
962
+ return value;
886
963
  }
887
964
 
888
965
  /**
@@ -1156,13 +1233,6 @@
1156
1233
  return props;
1157
1234
  }
1158
1235
 
1159
- /**
1160
- * @license
1161
- * Copyright Google LLC All Rights Reserved.
1162
- *
1163
- * Use of this source code is governed by an MIT-style license that can be
1164
- * found in the LICENSE file at https://angular.io/license
1165
- */
1166
1236
  var reflection = new core.ɵReflectionCapabilities();
1167
1237
  /**
1168
1238
  * Allows to override ivy metadata for tests (via the `TestBed`).
@@ -1280,13 +1350,6 @@
1280
1350
  return NgModuleResolver;
1281
1351
  }(OverrideResolver));
1282
1352
 
1283
- /**
1284
- * @license
1285
- * Copyright Google LLC All Rights Reserved.
1286
- *
1287
- * Use of this source code is governed by an MIT-style license that can be
1288
- * found in the LICENSE file at https://angular.io/license
1289
- */
1290
1353
  var TestingModuleOverride;
1291
1354
  (function (TestingModuleOverride) {
1292
1355
  TestingModuleOverride[TestingModuleOverride["DECLARATION"] = 0] = "DECLARATION";
@@ -2001,7 +2064,7 @@
2001
2064
  // Treat all overridden providers as `{multi: false}` (even if it's a multi-provider) to
2002
2065
  // make sure that provided override takes highest precedence and is not combined with
2003
2066
  // other instances of the same multi provider.
2004
- final.unshift(__assign(__assign({}, provider), { multi: false }));
2067
+ final.unshift(Object.assign(Object.assign({}, provider), { multi: false }));
2005
2068
  }
2006
2069
  }
2007
2070
  else {
@@ -2469,13 +2532,6 @@
2469
2532
  return testBed = testBed || new TestBedRender3();
2470
2533
  }
2471
2534
 
2472
- /**
2473
- * @license
2474
- * Copyright Google LLC All Rights Reserved.
2475
- *
2476
- * Use of this source code is governed by an MIT-style license that can be
2477
- * found in the LICENSE file at https://angular.io/license
2478
- */
2479
2535
  function unimplemented() {
2480
2536
  throw Error('unimplemented');
2481
2537
  }
@@ -2530,11 +2586,11 @@
2530
2586
  TestingCompiler.prototype.getComponentFromError = function (error) {
2531
2587
  throw unimplemented();
2532
2588
  };
2533
- TestingCompiler.decorators = [
2534
- { type: core.Injectable }
2535
- ];
2536
2589
  return TestingCompiler;
2537
2590
  }(core.Compiler));
2591
+ TestingCompiler.decorators = [
2592
+ { type: core.Injectable }
2593
+ ];
2538
2594
  /**
2539
2595
  * A factory for creating a Compiler
2540
2596
  *
@@ -2546,13 +2602,6 @@
2546
2602
  return TestingCompilerFactory;
2547
2603
  }());
2548
2604
 
2549
- /**
2550
- * @license
2551
- * Copyright Google LLC All Rights Reserved.
2552
- *
2553
- * Use of this source code is governed by an MIT-style license that can be
2554
- * found in the LICENSE file at https://angular.io/license
2555
- */
2556
2605
  var _nextRootElementId$1 = 0;
2557
2606
  /**
2558
2607
  * @description
@@ -2840,14 +2889,14 @@
2840
2889
  var RootScopeModule = /** @class */ (function () {
2841
2890
  function RootScopeModule() {
2842
2891
  }
2843
- RootScopeModule.decorators = [
2844
- { type: core.NgModule, args: [{
2845
- providers: __spread(rootProviderOverrides),
2846
- jit: true,
2847
- },] }
2848
- ];
2849
2892
  return RootScopeModule;
2850
2893
  }());
2894
+ RootScopeModule.decorators = [
2895
+ { type: core.NgModule, args: [{
2896
+ providers: __spread(rootProviderOverrides),
2897
+ jit: true,
2898
+ },] }
2899
+ ];
2851
2900
  rootScopeImports.push(RootScopeModule);
2852
2901
  }
2853
2902
  providers.push({ provide: core.ɵINJECTOR_SCOPE, useValue: this._isRoot ? 'root' : null });
@@ -2856,11 +2905,11 @@
2856
2905
  var DynamicTestModule = /** @class */ (function () {
2857
2906
  function DynamicTestModule() {
2858
2907
  }
2859
- DynamicTestModule.decorators = [
2860
- { type: core.NgModule, args: [{ providers: providers, declarations: declarations, imports: imports, schemas: schemas, jit: true },] }
2861
- ];
2862
2908
  return DynamicTestModule;
2863
2909
  }());
2910
+ DynamicTestModule.decorators = [
2911
+ { type: core.NgModule, args: [{ providers: providers, declarations: declarations, imports: imports, schemas: schemas, jit: true },] }
2912
+ ];
2864
2913
  var compilerFactory = this.platform.injector.get(TestingCompilerFactory);
2865
2914
  this._compiler = compilerFactory.createTestingCompiler(this._compilerOptions);
2866
2915
  try {
@@ -2980,11 +3029,11 @@
2980
3029
  var OverrideComponent = /** @class */ (function () {
2981
3030
  function OverrideComponent() {
2982
3031
  }
2983
- OverrideComponent.decorators = [
2984
- { type: core.Component, args: [{ selector: 'empty', template: template, jit: true },] }
2985
- ];
2986
3032
  return OverrideComponent;
2987
3033
  }());
3034
+ OverrideComponent.decorators = [
3035
+ { type: core.Component, args: [{ selector: 'empty', template: template, jit: true },] }
3036
+ ];
2988
3037
  this._templateOverrides.push({ component: component, templateOf: OverrideComponent });
2989
3038
  };
2990
3039
  TestBedViewEngine.prototype.createComponent = function (component) {