primeng 18.0.0-beta.4 → 18.0.0-beta.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 (123) hide show
  1. package/accordion/accordion.d.ts +4 -4
  2. package/api/public_api.d.ts +0 -4
  3. package/autocomplete/autocomplete.d.ts +1 -0
  4. package/base/style/basestyle.d.ts +1 -1
  5. package/basecomponent/basecomponent.d.ts +3 -2
  6. package/config/index.d.ts +5 -0
  7. package/{api → config}/primeng.d.ts +3 -3
  8. package/{api/provideprimengconfig.d.ts → config/provideprimeng.d.ts} +3 -3
  9. package/config/public_api.d.ts +3 -0
  10. package/{api → config}/themeprovider.d.ts +1 -1
  11. package/confirmpopup/confirmpopup.d.ts +2 -3
  12. package/dialog/dialog.d.ts +1 -0
  13. package/editor/editor.d.ts +5 -2
  14. package/esm2022/accordion/accordion.mjs +9 -9
  15. package/esm2022/api/public_api.mjs +1 -5
  16. package/esm2022/autocomplete/autocomplete.mjs +4 -2
  17. package/esm2022/autofocus/autofocus.mjs +2 -2
  18. package/esm2022/base/style/basestyle.mjs +3 -3
  19. package/esm2022/basecomponent/basecomponent.mjs +9 -7
  20. package/esm2022/cascadeselect/cascadeselect.mjs +2 -2
  21. package/esm2022/checkbox/checkbox.mjs +2 -2
  22. package/esm2022/config/primeng-config.mjs +5 -0
  23. package/esm2022/config/primeng.mjs +189 -0
  24. package/esm2022/config/provideprimeng.mjs +11 -0
  25. package/esm2022/config/public_api.mjs +4 -0
  26. package/esm2022/config/themeprovider.mjs +74 -0
  27. package/esm2022/confirmpopup/confirmpopup.mjs +4 -6
  28. package/esm2022/dialog/dialog.mjs +23 -3
  29. package/esm2022/dropdown/dropdown.mjs +2 -2
  30. package/esm2022/editor/editor.mjs +15 -14
  31. package/esm2022/fileupload/style/fileuploadstyle.mjs +2 -2
  32. package/esm2022/galleria/galleria.mjs +16 -20
  33. package/esm2022/iconfield/iconfield.mjs +3 -5
  34. package/esm2022/inputnumber/inputnumber.mjs +3 -3
  35. package/esm2022/inputtext/inputtext.mjs +3 -3
  36. package/esm2022/inputtextarea/inputtextarea.mjs +3 -3
  37. package/esm2022/listbox/listbox.mjs +5 -5
  38. package/esm2022/megamenu/megamenu.mjs +4 -7
  39. package/esm2022/menubar/menubar.mjs +4 -7
  40. package/esm2022/multiselect/multiselect.mjs +86 -83
  41. package/esm2022/overlay/overlay.mjs +2 -2
  42. package/esm2022/password/password.mjs +4 -4
  43. package/esm2022/radiobutton/radiobutton.mjs +3 -3
  44. package/esm2022/scrolltop/scrolltop.mjs +22 -16
  45. package/esm2022/select/select.mjs +2 -2
  46. package/esm2022/textarea/textarea.mjs +3 -3
  47. package/esm2022/tree/tree.mjs +12 -8
  48. package/esm2022/treetable/treetable.mjs +7 -8
  49. package/fesm2022/primeng-accordion.mjs +8 -8
  50. package/fesm2022/primeng-accordion.mjs.map +1 -1
  51. package/fesm2022/primeng-api.mjs +3 -276
  52. package/fesm2022/primeng-api.mjs.map +1 -1
  53. package/fesm2022/primeng-autocomplete.mjs +4 -2
  54. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  55. package/fesm2022/primeng-autofocus.mjs +1 -1
  56. package/fesm2022/primeng-autofocus.mjs.map +1 -1
  57. package/fesm2022/primeng-base.mjs +2 -2
  58. package/fesm2022/primeng-base.mjs.map +1 -1
  59. package/fesm2022/primeng-basecomponent.mjs +8 -6
  60. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  61. package/fesm2022/primeng-cascadeselect.mjs +1 -1
  62. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  63. package/fesm2022/primeng-checkbox.mjs +1 -1
  64. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  65. package/fesm2022/primeng-config.mjs +275 -0
  66. package/fesm2022/primeng-config.mjs.map +1 -0
  67. package/fesm2022/primeng-confirmpopup.mjs +3 -5
  68. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  69. package/fesm2022/primeng-dialog.mjs +22 -2
  70. package/fesm2022/primeng-dialog.mjs.map +1 -1
  71. package/fesm2022/primeng-dropdown.mjs +1 -1
  72. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  73. package/fesm2022/primeng-editor.mjs +14 -13
  74. package/fesm2022/primeng-editor.mjs.map +1 -1
  75. package/fesm2022/primeng-fileupload.mjs +1 -1
  76. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  77. package/fesm2022/primeng-galleria.mjs +15 -19
  78. package/fesm2022/primeng-galleria.mjs.map +1 -1
  79. package/fesm2022/primeng-iconfield.mjs +2 -4
  80. package/fesm2022/primeng-iconfield.mjs.map +1 -1
  81. package/fesm2022/primeng-inputnumber.mjs +2 -2
  82. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  83. package/fesm2022/primeng-inputtext.mjs +2 -2
  84. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  85. package/fesm2022/primeng-inputtextarea.mjs +2 -2
  86. package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
  87. package/fesm2022/primeng-listbox.mjs +4 -4
  88. package/fesm2022/primeng-listbox.mjs.map +1 -1
  89. package/fesm2022/primeng-megamenu.mjs +3 -6
  90. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  91. package/fesm2022/primeng-menubar.mjs +3 -6
  92. package/fesm2022/primeng-menubar.mjs.map +1 -1
  93. package/fesm2022/primeng-multiselect.mjs +85 -82
  94. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  95. package/fesm2022/primeng-overlay.mjs +1 -1
  96. package/fesm2022/primeng-overlay.mjs.map +1 -1
  97. package/fesm2022/primeng-password.mjs +3 -3
  98. package/fesm2022/primeng-password.mjs.map +1 -1
  99. package/fesm2022/primeng-radiobutton.mjs +2 -2
  100. package/fesm2022/primeng-radiobutton.mjs.map +1 -1
  101. package/fesm2022/primeng-scrolltop.mjs +21 -15
  102. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  103. package/fesm2022/primeng-select.mjs +1 -1
  104. package/fesm2022/primeng-select.mjs.map +1 -1
  105. package/fesm2022/primeng-textarea.mjs +2 -2
  106. package/fesm2022/primeng-textarea.mjs.map +1 -1
  107. package/fesm2022/primeng-tree.mjs +11 -7
  108. package/fesm2022/primeng-tree.mjs.map +1 -1
  109. package/fesm2022/primeng-treetable.mjs +6 -7
  110. package/fesm2022/primeng-treetable.mjs.map +1 -1
  111. package/galleria/galleria.d.ts +4 -6
  112. package/megamenu/megamenu.d.ts +2 -3
  113. package/menubar/menubar.d.ts +2 -3
  114. package/multiselect/multiselect.d.ts +4 -4
  115. package/overlay/overlay.d.ts +1 -1
  116. package/package.json +145 -139
  117. package/scrolltop/scrolltop.d.ts +3 -1
  118. package/treetable/treetable.d.ts +3 -4
  119. package/api/primengconfig.d.ts +0 -9
  120. package/esm2022/api/primeng.mjs +0 -188
  121. package/esm2022/api/primengconfig.mjs +0 -15
  122. package/esm2022/api/provideprimengconfig.mjs +0 -11
  123. package/esm2022/api/themeprovider.mjs +0 -73
@@ -51,7 +51,7 @@ function Overlay_div_0_Template(rf, ctx) { if (rf & 1) {
51
51
  const showOverlayContentAnimation = animation([style({ transform: '{{transform}}', opacity: 0 }), animate('{{showTransitionParams}}')]);
52
52
  const hideOverlayContentAnimation = animation([animate('{{hideTransitionParams}}', style({ transform: '{{transform}}', opacity: 0 }))]);
53
53
  /**
54
- * This API allows overlay components to be controlled from the PrimeNGConfig. In this way, all overlay components in the application can have the same behavior.
54
+ * This API allows overlay components to be controlled from the PrimeNG. In this way, all overlay components in the application can have the same behavior.
55
55
  * @group Components
56
56
  */
57
57
  export class Overlay extends BaseComponent {
@@ -665,4 +665,4 @@ export class OverlayModule {
665
665
  }]
666
666
  }], null, null); })();
667
667
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(OverlayModule, { imports: [Overlay, SharedModule], exports: [Overlay, SharedModule] }); })();
668
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS5qcyI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AmJiBvdmVybGF5UmVzcG9uc2l2ZURpcmVjdGlvbiA9PT0gJ3JpZ2h0LWVuZCdcbiAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uT3ZlcmxheUNsaWNrKClcIlxuICAgICAgICA+XG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgKm5nSWY9XCJ2aXNpYmxlXCJcbiAgICAgICAgICAgICAgICAjY29udGVudFxuICAgICAgICAgICAgICAgIFtuZ1N0eWxlXT1cImNvbnRlbnRTdHlsZVwiXG4gICAgICAgICAgICAgICAgW2NsYXNzXT1cImNvbnRlbnRTdHlsZUNsYXNzXCJcbiAgICAgICAgICAgICAgICBbbmdDbGFzc109XCIncC1vdmVybGF5LWNvbnRlbnQnXCJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25PdmVybGF5Q29udGVudENsaWNrKCRldmVudClcIlxuICAgICAgICAgICAgICAgIFtAb3ZlcmxheUNvbnRlbnRBbmltYXRpb25dPVwie1xuICAgICAgICAgICAgICAgICAgICB2YWx1ZTogJ3Zpc2libGUnLFxuICAgICAgICAgICAgICAgICAgICBwYXJhbXM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3dUcmFuc2l0aW9uUGFyYW1zOiBzaG93VHJhbnNpdGlvbk9wdGlvbnMsXG4gICAgICAgICAgICAgICAgICAgICAgICBoaWRlVHJhbnNpdGlvblBhcmFtczogaGlkZVRyYW5zaXRpb25PcHRpb25zLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2Zvcm1PcHRpb25zW21vZGFsID8gb3ZlcmxheVJlc3BvbnNpdmVEaXJlY3Rpb24gOiAnZGVmYXVsdCddXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XCJcbiAgICAgICAgICAgICAgICAoQG92ZXJsYXlDb250ZW50QW5pbWF0aW9uLnN0YXJ0KT1cIm9uT3ZlcmxheUNvbnRlbn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O1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5oYW5kbGVFdmVudHMoJ29uQW5pbWF0aW9uU3RhcnQnLCBldmVudCk7XG4gICAgfVxuXG4gICAgb25PdmVybGF5Q29udGVudEFuaW1hdGlvbkRvbmUoZXZlbnQ6IEFuaW1hdGlvbkV2ZW50KSB7XG4gICAgICAgIGNvbnN0IGNvbnRhaW5lciA9IHRoaXMub3ZlcmxheUVsIHx8IGV2ZW50LmVsZW1lbnQucGFyZW50RWxlbWVudDtcblxuICAgICAgICBzd2l0Y2ggKGV2ZW50LnRvU3RhdGUpIHtcbiAgICAgICAgICAgIGNhc2UgJ3Zpc2libGUnOlxuICAgICAgICAgICAgICAgIHRoaXMuc2hvdyhjb250YWluZXIsIHRydWUpO1xuICAgICAgICAgICAgICAgIHRoaXMuYmluZExpc3RlbmVycygpO1xuXG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ3ZvaWQnOlxuICAgICAgICAgICAgICAgIHRoaXMuaGlkZShjb250YWluZXIsIHRydWUpO1xuICAgICAgICAgICAgICAgIHRoaXMudW5iaW5kTGlzdGVuZXJzKCk7XG5cbiAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmFwcGVuZE92ZXJsYXkodGhpcy5vdmVybGF5RWwsIHRoaXMudGFyZ2V0RWwsIHRoaXMuYXBwZW5kVG8pO1xuICAgICAgICAgICAgICAgIFpJbmRleFV0aWxzLmNsZWFyKGNvbnRhaW5lcik7XG4gICAgICAgICAgICAgICAgdGhpcy5tb2RhbFZpc2libGUgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICB0aGlzLmNkLm1hcmtGb3JDaGVjaygpO1xuXG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmhhbmRsZUV2ZW50cygnb25BbmltYXRpb25Eb25lJywgZXZlbnQpO1xuICAgIH1cblxuICAgIGhhbmRsZUV2ZW50cyhuYW1lOiBzd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AgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGNvbnN0IHZhbGlkID0gdGhpcy5saXN0ZW5lciA/IHRoaXMubGlzdGVuZXIoZXZlbnQsIHsgdHlwZTogJ2tleWRvd24nLCBtb2RlOiB0aGlzLm92ZXJsYXlNb2RlLCB2YWxpZDogIWlzVG91Y2hEZXZpY2UoKSB9KSA6ICFpc1RvdWNoRGV2aWNlKCk7XG5cbiAgICAgICAgICAgICAgICBpZiAodmFsaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy56b25lLnJ1bigoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoZXZlbnQsIHRydWUpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgdW5iaW5kRG9jdW1lbnRLZXlib2FyZExpc3RlbmVyKCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy5kb2N1bWVudEtleWJvYXJkTGlzdGVuZXIpIHtcbiAgICAgICAgICAgIHRoaXMuZG9jdW1lbnRLZXlib2FyZExpc3RlbmVyKCk7XG4gICAgICAgICAgICB0aGlzLmRvY3VtZW50S2V5Ym9hcmRMaXN0ZW5lciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpIHtcbiAgICAgICAgdGhpcy5oaWRlKHRoaXMub3ZlcmxheUVsLCB0cnVlKTtcblxuICAgICAgICBpZiAodGhpcy5vdmVybGF5RWwpIHtcbiAgICAgICAgICAgIERvbUhhbmRsZXIuYXBwZW5kT3ZlcmxheSh0aGlzLm92ZXJsYXlFbCwgdGhpcy50YXJnZXRFbCwgdGhpcy5hcHBlbmRUbyk7XG4gICAgICAgICAgICBaSW5kZXhVdGlscy5jbGVhcih0aGlzLm92ZXJsYXlFbCk7XG4gICAgICAgIH1cblxuIC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zdGFydCc6IG1vZGFsICYmIG92ZXJsYXlSZXNwb25zaXZlRGlyZWN0aW9uID09PSAnbGVmdC1zdGFydCcsXG4gICAgICAgICAgICAgICAgJ3Atb3ZlcmxheS1sZWZ0LWVuZCc6IG1vZGFsICYmIG92ZXJsYXlSZXNwb25zaXZlRGlyZWN0aW9uID09PSAnbGVmdC1lbmQnLFxuICAgICAgICAgICAgICAgICdwLW92ZXJsYXktcmlnaHQnOiBtb2RhbCAmJiBvdmVybGF5UmVzcG9uc2l2ZURpcmVjdGlvbiA9PT0gJ3JpZ2h0JyxcbiAgICAgICAgICAgICAgICAncC1vdmVybGF5LXJpZ2h0LXN0YXJ0JzogbW9kYWwgJiYgb3ZlcmxheVJlc3BvbnNpdmVEaXJlY3Rpb24gPT09ICdyaWdodC1zdGFydCcsXG4gICAgICAgICAgICAgICAgJ3Atb3ZlcmxheS1yaWdodC1lbmQnOiBtb2RhbCAmJiBvdmVybGF5UmVzcG9uc2l2ZURpcmVjdGlvbiA9PT0gJ3JpZ2h0LWVuZCdcbiAgICAgICAgICAgIH1cIlxuICAgICAgICAgICAgKGNsaWNrKT1cIm9uT3ZlcmxheUNsaWNrKClcIlxuICAgICAgICA+XG4gICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgKm5nSWY9XCJ2aXNpYmxlXCJcbiAgICAgICAgICAgICAgICAjY29udGVudFxuICAgICAgICAgICAgICAgIFtuZ1N0eWxlXT1cImNvbnRlbnRTdHlsZVwiXG4gICAgICAgICAgICAgICAgW2NsYXNzXT1cImNvbnRlbnRTdHlsZUNsYXNzXCJcbiAgICAgICAgICAgICAgICBbbmdDbGFzc109XCIncC1vdmVybGF5LWNvbnRlbnQnXCJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25PdmVybGF5Q29udGVudENsaWNrKCRldmVudClcIlxuICAgICAgICAgICAgICAgIFtAb3ZlcmxheUNvbnRlbnRBbmltYXRpb25dPVwie1xuICAgICAgICAgICAgICAgICAgICB2YWx1ZTogJ3Zpc2libGUnLFxuICAgICAgICAgICAgICAgICAgICBwYXJhbXM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3dUcmFuc2l0aW9uUGFyYW1zOiBzaG93VHJhbnNpdGlvbk9wdGlvbnMsXG4gICAgICAgICAgICAgICAgICAgICAgICBoaWRlVHJhbnNpdGlvblBhcmFtczogaGlkZVRyYW5zaXRpb25PcHRpb25zLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2Zvcm1PcHRpb25zW21vZGFsID8gb3ZlcmxheVJlc3BvbnNpdmVEaXJlY3Rpb24gOiAnZGVmYXVsdCddXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XCJcbiAgICAgICAgICAgICAgICAoQG92ZXJsYXlDb250ZW50QW5pbWF0aW9uLnN0YXJ0KT1cIm9uT3ZlcmxheUNvbnRlbnRBbmltYXRpb25TdGFydCgkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAoQG92ZXJsYXlDb250ZW50QW5pbWF0aW9uLmRvbmUpPVwib25PdmVybGF5Q29udGVudEFuaW1hdGlvbkRvbmUoJGV2ZW50KVwiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjb250ZW50VGVtcGxhdGU7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiB7IG1vZGU6IG92ZXJsYXlNb2RlIH0gfVwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgIGAsXG4gICAgYW5pbWF0aW9uczogW3RyaWdnZXIoJ292ZXJsYXlDb250ZW50QW5pbWF0aW9uJywgW3RyYW5zaXRpb24oJzplbnRlcicsIFt1c2VBbmltYXRpb24oc2hvd092ZXJsYXlDb250ZW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VtZW50S2V5Ym9hcmRMaXN0ZW5lcigpOiB2b2lkIHtcbiAgICAgICAgaWYgKHRoaXMuZG9jdW1lbnRLZXlib2FyZExpc3RlbmVyKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnpvbmUucnVuT3V0c2lkZUFuZ3VsYXIoKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5kb2N1bWVudEtleWJvYXJkTGlzdGVuZXIgPSB0aGlzLnJlbmRlcmVyLmxpc3Rlbih0aGlzLmRvY3VtZW50LmRlZmF1bHRWaWV3LCAna2V5ZG93bicsIChldmVudCkgPT4ge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLm92ZXJsYXlPcHRpb25zLmhpZGVPbkVzY2FwZSA9PT0gZmFsc2UgfHwgZXZlbnQuY29kZSAhPT0gJ0VzY2FwZScpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGNvbnN0IHZhbGlkID0gdGhpcy5saXN0ZW5lciA/IHRoaXMubGlzdGVuZXIoZXZlbnQsIHsgdHlwZTogJ2tleWRvd24nLCBtb2RlOiB0aGlzLm92ZXJsYXlNb2RlLCB2YWxpZDogIWlzVG91Y2hEZXZpY2UoKSB9KSA6ICFpc1RvdWNoRGV2aWNlKCk7XG5cbiAgICAgICAgICAgICAgICBpZiAodmFsaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy56b25lLnJ1bigoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoZXZlbnQsIHRydWUpO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgdW5iaW5kRG9jdW1lbnRLZXlib2FyZExpc3RlbmVyKCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy5kb2N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