@wavemaker/app-ng-runtime 12.0.0-next.45055 → 12.0.0-next.45057
Sign up to get free protection for your applications and to get access to all the features.
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +6 -2
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +8 -4
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -2
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +9 -5
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +8 -4
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
- app-ng-runtime/core/bundles/index.umd.js +3 -0
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/utils/utils.mjs +2 -1
- app-ng-runtime/core/fesm2022/index.mjs +3 -1
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/utils/utils.d.ts +1 -0
- app-ng-runtime/package.json +1 -1
@@ -44,6 +44,7 @@ const REGEX = {
|
|
44
44
|
const NUMBER_TYPES = ['int', DataType.INTEGER, DataType.FLOAT, DataType.DOUBLE, DataType.LONG, DataType.SHORT, DataType.BYTE, DataType.BIG_INTEGER, DataType.BIG_DECIMAL];
|
45
45
|
const now = new Date();
|
46
46
|
const CURRENT_DATE = 'CURRENT_DATE';
|
47
|
+
export const APP_NAV = 'app-nav';
|
47
48
|
export const isDefined = v => 'undefined' !== typeof v;
|
48
49
|
export const isObject = v => null !== v && 'object' === typeof v;
|
49
50
|
export const toBoolean = (val, identity) => ((val && val !== 'false') ? true : (identity ? val === identity : false));
|
@@ -1461,4 +1462,4 @@ export const findViewParent = (lView) => {
|
|
1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gICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgfVxuICAgIGlmIChmb3JtYXQgPT09ICd0aW1lc3RhbXAnKSB7XG4gICAgICAgIHJldHVybiBtb21lbnQoZGF0ZU9iaikudmFsdWVPZigpO1xuICAgIH1cblxuICAgIGlmIChmb3JtYXQgPT09ICdVVEMnKSB7XG4gICAgICAgIHJldHVybiBuZXcgRGF0ZShkYXRlT2JqKS50b0lTT1N0cmluZygpO1xuICAgIH1cblxuICAgIGlmICh0aW1lWm9uZSkge1xuICAgICAgICBjb25zdCBtb21lbnRGb3JtYXQgPSBmb3JtYXQucmVwbGFjZUFsbCgneScsICdZJykucmVwbGFjZUFsbCgnZCcsICdEJykucmVwbGFjZSgnYScsICdBJyk7XG4gICAgICAgIGlmIChpc0ludGVydmFsRGF0ZVRpbWUgKSB7IC8vIGRhdGVzIHdoaWNoIGFyZSBvZiB0eXBlIHRpbWUgd2lkZ2V0ICh2YWx1ZSBpcyBoaDptbTpzcykgYnV0IHJldHVybmVkIGFzIGRhdGUgc3RyaW5nIGZyb20gdGltZSBjb21wXG4gICAgICAgICAgICByZXR1cm4gbW9tZW50KGRhdGVPYmopLmZvcm1hdChtb21lbnRGb3JtYXQpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpc1RpbWVTdGFtcFR5cGUgPT09ICdkYXRldGltZXN0YW1wJykge1xuICAgICAgICAgICAgZGF0ZU9iaiA9IGdldE1vbWVudExvY2FsZU9iamVjdCh0aW1lWm9uZSwgZGF0ZU9iaik7XG4gICAgICAgICAgICByZXR1cm4gbW9tZW50KGRhdGVPYmopLmZvcm1hdChtb21lbnRGb3JtYXQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIGRhdGVQaXBlLnRyYW5zZm9ybShkYXRlT2JqLCBmb3JtYXQsIHRpbWVab25lLCBjb21wSW5zdGFuY2UpO1xufTtcblxuLyoqXG4gKiBUaGlzIG1ldGhvZCBpcyB1c2VkIHRvIGNoZWNrIGlmIH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dC9qYXZhc2NyaXB0JztcbiAgICAgICAgICAgIHNjcmlwdC5zcmMgPSBfdXJsO1xuICAgICAgICAgICAgc2NyaXB0LmFzeW5jID0gZmFsc2U7XG4gICAgICAgICAgICBpZiAoc2NyaXB0LnJlYWR5U3RhdGUpIHsgIC8vSUVcbiAgICAgICAgICAgICAgICBzY3JpcHQub25yZWFkeXN0YXRlY2hhbmdlID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoc2NyaXB0LnJlYWR5U3RhdGUgPT09IFwibG9hZGVkXCIgfHwgc2NyaXB0LnJlYWR5U3RhdGUgPT09IFwiY29tcGxldGVcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2NyaXB0Lm9ucmVhZHlzdGF0ZWNoYW5nZSA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHRydWUpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0gZWxzZSB7ICAvL090aGVyIGJyb3dzZXJzXG4gICAgICAgICAgICAgICAgc2NyaXB0Lm9ubG9hZCA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSh0cnVlKTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgc2NyaXB0Lm9uZXJyb3IgPSAoZXJyb3I6IGFueSkgPT4gcmVqZWN0KGVycm9yKTtcbiAgICAgICAgICAgIGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCdoZWFkJylbMF0uYXBwZW5kQ2hpbGQoc2NyaXB0KTtcbiAgICAgICAgfSk7XG4gICAgfSBlbHNlIGlmKGNhY2hlYWJsZSkge1xuICAgICAgICByZXR1cm4gJC5hamF4KHtcbiAgICAgICAgICAgIGRhdGFUeXBlOiAnc2NyaXB0JyxcbiAgICAgICAgICAgIGNhY2hlOiB0cnVlLFxuICAgICAgICAgICAgdXJsOiB1cmxcb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20gdGhlIGZpbGUgVVJMXG4gICAgICAgIHJlc29sdmVMb2NhbEZpbGVTeXN0ZW1VUkwoZmlsZXBhdGgsIGZ1bmN0aW9uIChmaWxlRW50cnkpIHtcbiAgICAgICAgICAgIGZpbGVFbnRyeS5maWxlKGZ1bmN0aW9uIChmaWxlKSB7XG4gICAgICAgICAgICAgICAgLy8gZmlsZSBoYXMgdGhlIGNvcmRvdmEgZmlsZSBzdHJ1Y3R1cmUuIFRvIHN1Ym1pdCB0byB0aGUgYmFja2VuZCwgY29udmVydCB0aGlzIGZpbGUgdG8gamF2YXNjcmlwdCBmaWxlXG4gICAgICAgICAgICAgICAgY29uc3QgcmVhZGVyID0gbmV3IEZpbGVSZWFkZXIoKTtcbiAgICAgICAgICAgICAgICByZWFkZXIub25sb2FkZW5kID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBpbWdCbG9iID0gbmV3IEJsb2IoW3JlYWRlci5yZXN1bHRdLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6IGZpbGUudHlwZVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSh7ICdibG9iJzogaW1nQmxvYiwgJ2ZpbGVwYXRoJzogZmlsZXBhdGggfSk7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICByZWFkZXIub25lcnJvciA9IHJlamVjdDtcbiAgICAgICAgICAgICAgICByZWFkZXIucmVhZEFzQXJyYXlCdWZmZXIoZmlsZSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSwgcmVqZWN0KTtcbiAgICB9KTtcbn07XG5cbmV4cG9ydCBjb25zdCBoYXNDb3Jkb3ZhID0gKCkgPT4ge1xuICAgIHJldHVybiAhIXdpbmRvd1snY29yZG92YSddO1xufTtcblxuZXhwb3J0IGNvbnN0IEFwcENvbnN0YW50cyA9IHtcbiAgICBJTlRfTUFYX1ZBTFVFOiAyMTQ3NDgzNjQ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B0b1Byb21pc2U8Ym9vbGVhbj4ob25CZWZvcmVSZXRyeSgpKS50aGVuKGZ1bmN0aW9uIChyZXRyeSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAocmV0cnkgIT09IGZhbHNlICYmICghbWF4UmV0cmllcyB8fCByZXRyeUNvdW50IDw9IG1heFJldHJpZXMpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0b1Byb21pc2UodHJ5Rm4oKSkudGhlbihyZXNvbHZlLCBlcnJvckZuKTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlamVjdChlcnJBcmdzKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sICgpID0+IHJlamVjdChlcnJBcmdzKSk7XG4gICAgICAgICAgICB9LCBpbnRlcnZhbCk7XG4gICAgICAgIH07XG4gICAgICAgIHRvUHJvbWlzZSh0cnlGbigpKS50aGVuKHJlc29sdmUsIGVycm9yRm4pO1xuICAgIH0pO1xufTtcblxuLyoqXG4gKiBQcm9taXNlIG9mIGEgZGVmZXIgY3JlYXRlZCB1c2luZyB0aGlzIGZ1bmN0aW9uLCBoYXMgYWJvcnQgZnVuY3Rpb24gdGhhdCB3aWxsIHJlamVjdCB0aGUgZGVmZXIgd2hlbiBjYWxsZWQuXG4gKiBAcmV0dXJucyB7Kn0gYW5ndWxhciBkZWZlciBvYmplY3RcbiAqL1xuZXhwb3J0IGNvbnN0IGdldEFib3J0YWJsZURlZmVyID0gKCkgPT4ge1xuICAgIGNvbnN0IF9kZWZlcjogYW55ID0ge1xuICAgICAgICBwcm9taXNlOiBudWxsLFxuICAgICAgICByZWplY3Q6IG51bGwsXG4gICAgICAgIHJlc29sdmU6IG51bGwsXG4gICAgICAgIG9uQWJvcnQ6ICgpID0+IHsgfSxcbiAgICAgICAgaXNBYm9ydGVkOiBmYWxzZVxuICAgIH07XG4gICAgX2RlZmVyLnByb21pc2UgPSBuZXcgUH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mluZGluZycpIHtcbiAgICAgICAgICAgICAgICAvLyByZW1vdmUgdGhlIGV4aXN0aW5nIGRhdGFiaW5kaW5nIGVsZW1lbnRcbiAgICAgICAgICAgICAgICBmaWx0ZXJFeHByZXNzaW9ucy5ydWxlcyA9IFtdO1xuICAgICAgICAgICAgICAgIC8vIG5vdyBhZGQgYWxsIHRoZSByZXR1cm5lZCB2YWx1ZXNcbiAgICAgICAgICAgICAgICBmb3JFYWNoKG5ld1ZhbCwgZnVuY3Rpb24gKHZhbHVlLCB0YXJnZXQpIHtcbiAgICAgICAgICAgICAgICAgICAgZmlsdGVyRXhwcmVzc2lvbnMucnVsZXMucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAndGFyZ2V0JzogdGFyZ2V0LFxuICAgICAgICAgICAgICAgICAgICAgICAgJ3ZhbHVlJzogdmFsdWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAnbWF0Y2hNb2RlJzogb2JqLm1hdGNoTW9kZSB8fCAnc3RhcnRpZ25vcmVjYXNlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICdyZXF1aXJlZCc6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAnJ1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgLy8gc2V0dGluZyB2YWx1ZSB0byB0aGUgcm9vdCBub2RlXG4gICAgICAgICAgICAgICAgb2JqW3RhcmdldE5vZGVLZXldID0gbmV3VmFsO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZmlsdGVyJC5uZXh0KHsgZmlsdGVyRXhwcmVzc2lvbnMsIG5ld1ZhbCB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChzdHJpbmdTdGFydHNXaXRoKG9ialt0YXJnZXROb2RlS2V5XSwgJ2JpbmQ6JykpIHtcbiAgICAgICAgICAgIC8vIFtUb2RvLUNTUF06IG5lZWRzIGEgY2hlY2ssIHdoZXJlIGlzIHRoaXMgdXNlZFxuICAgICAgICAgICAgZGVzdHJveUZuKFxuICAgICAgICAgICAgICAgICR3YXRjaChvYmpbdGFyZ2V0Tm9kZUtleV0ucmVwbGFjZSgnYmluZDonLCAnJyksIGNvbnRleHQsIHt9LCB2YXJpYWJsZSA/IHZhcmlhYmxlLmludm9rZU9uRmlsdGVydEV4cHJlc3Npb25DaGFuZ2UuYmluZCh2YXJpYWJsZSwgb2JqLCB0YXJnZXROb2RlS2V5KSA6IGxpc3RlbmVyLCB1bmRlZmluZWQsIGZhbHNlLCB7YXJyYXlUeXBlOiBpbmNsdWRlcyhbJ2luJywgJ25vdGluJ10sIG9iai5tYXRjaE1vZGUpfSlcbiAgICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICB9O1xuXG4gICAgY29uc3QgdHJhdmVyc2VGaWx0ZXJFeHByZXNzaW9ucyA9IGV4cHJlc3Npb25zID0+IHtcbiAgICAgICAgaWYgKGV4cHJlc3Npb25zLnJ1bGVzKSB7XG4gICAgICAgICAgICBmb3JFYWNoKGV4cHJlc3Npb25zLnJ1bGVzLCAoZmlsRXhwT2JqLCBpKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKGZpbEV4cE9iai5ydWxlcykge1xuICAgICAgICAgICAgICAgICAgICB0cmF2ZXJzZUZpbHRlckV4cHJlc3Npb25zKGZpbEV4cE9iaik7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGZpbEV4cE9iai5tYXRjaE1vZGUgPT09ICdiZXR3ZWVuJykge1xuICAgICAgICAgICAgICAgICAgICAgICAgYmluZEZpbEV4cE9iaihmaWxFeHBPYmosICdzZWNvbmR2YWx1ZScpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGJpbmRGaWxFeHBPYmooZmlsRXhwT2JqLCAndmFsdWUnKTtcbiAgICAgICAgICA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pbmcgd2l0aCBmaWxlOi8vLyBhbmRcbiAgICAgICAgKiBzdXBwb3J0IGZvciBiYXNlNjQgZm9ybWF0XG4gICAgICAgICogKi9cbiAgICAgICAgaWYgKHN0YXJ0c1dpdGgodXJsLCAnZmlsZTovLy8nKSB8fCBiYXNlNjRyZWdleC50ZXN0KHVybCkpIHtcbiAgICAgICAgICAgIHJldHVybiB1cmw7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHVybC5yZXBsYWNlKG5ldyBSZWdFeHAoJyhbXjpdXFwvKShcXC8pKycsICdnJyksICckMScpO1xuICAgIH1cbn07XG5cbiQuY2FjaGVkU2NyaXB0ID0gKCgpID0+IHtcbiAgICBjb25zdCBpblByb2dyZXNzID0gbmV3IE1hcCgpO1xuICAgIGNvbnN0IHJlc29sdmVkID0gbmV3IFNldCgpO1xuXG4gICAgY29uc3QgaXNJblByb2dyZXNzID0gdXJsID0+IGluUHJvZ3Jlc3MuaGFzKHVybCk7XG4gICAgY29uc3QgaXNSZXNvbHZlZCA9IHVybCA9PiByZXNvbHZlZC5oYXModXJsKTtcbiAgICBjb25zdCBvbkxvYWQgPSB1cmwgPT4ge1xuICAgICAgICByZXNvbHZlZC5hZGQodXJsKTtcbiAgICAgICAgaW5Qcm9ncmVzcy5nZXQodXJsKS5yZXNvbHZlKCk7XG4gICAgICAgIGluUHJvZ3Jlc3MuZGVsZXRlKHVybCk7XG4gICAgfTtcblxuICAgIGNvbnN0IHNldEluUHJvZ3Jlc3MgPSB1cmwgPT4ge1xuICAgICAgICBsZXQgcmVzRm47XG4gICAgICAgIGxldCByZWpGbjtcbiAgICAgICAgY29uc3QgcHJvbWlzZTogYW55ID0gbmV3IFByb21pc2UoKHJlcywgcmVqKSA9PiB7XG4gICAgICAgICAgICByZXNGbiA9IHJlcztcbiAgICAgICAgICAgIHJlakZuID0gcmVqO1xuICAgICAgICB9KTtcblxuICAgICAgICBwcm9taXNlLnJlc29sdmUgPSByZXNGbjtcbiAgICAgICAgc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XaWR0aCA9ICQod2luZG93KS53aWR0aCgpICsgd2luZG93LnNjcm9sbFg7XG4gICAgICAgIGNvbnN0IHBhcmVudERpbWVzaW9uID0gcGFyZW50RWxlbS5nZXRCb3VuZGluZ0NsaWVudFJlY3QoKTtcbiAgICAgICAgY29uc3QgcGFyZW50UmlnaHQgPSBwYXJlbnREaW1lc2lvbi5yaWdodCArIHdpbmRvdy5zY3JvbGxYO1xuICAgICAgICBsZXQgbmV3TGVmdDtcbiAgICAgICAgY29uc3Qgem9uZVJlZiA9IHJlZi5fbmdab25lIHx8IHJlZi5uZ1pvbmU7XG4gICAgICAgIHpvbmVSZWYub25TdGFibGUuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGNvbnRhaW5lckVsZVRyYW5zZm9ybWF0aW9ucyA9IGdldFdlYmtpdFRyYXNsYXRpb25NYXRyaXgoY29udGFpbmVyRWxlbSk7XG5cbiAgICAgICAgICAgIGlmICh2aWV3UG9ydFdpZHRoIC0gKHBhcmVudFJpZ2h0ICsgcGFyZW50RGltZXNpb24ud2lkdGgpIDwgY29udGFpbmVyV2lkdGgpIHtcbiAgICAgICAgICAgICAgICBuZXdMZWZ0ID0gcGFyZW50UmlnaHQgLSBjb250YWluZXJXaWR0aDtcbiAgICAgICAgICAgICAgICBpZiAobmV3TGVmdCA8IDApIHtcbiAgICAgICAgICAgICAgICAgICAgbmV3TGVmdCA9IDA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGNvbnRhaW5lckVsZVRyYW5zZm9ybWF0aW9ucy5tNDEgPSBuZXdMZWZ0O1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBzZXRUcmFuc2xhdGlvbjNkUG9zaXRpb24oY29udGFpbmVyRWxlbSwgY29udGFpbmVyRWxlVHJhbnNmb3JtYXRpb25zKTtcbiAgICAgICAgfSk7XG4gICB9O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FyYW1WYWx1ZSA9IHBhcmFtLnN1YnN0cihpICsgMSk7XG5cbiAgICAgICAgICAgICAgICAvLyBhZGQgdGhlID0gZm9yIHBhcmFtIG5hbWUgb25seSB3aGVuIHRoZSBwYXJhbSB2YWx1ZSBleGlzdHMgaW4gdGhlIGdpdmVuIHBhcmFtIG9yIGVtcHR5IHZhbHVlIGlzIGFzc2lnbmVkXG4gICAgICAgICAgICAgICAgaWYgKHBhcmFtVmFsdWUgfHwgaW5jbHVkZXMocGFyYW0sICc9JykpIHtcbiAgICAgICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRlY29kZWRQYXJhbVZhbHVlID0gZGVjb2RlVVJJQ29tcG9uZW50KHBhcmFtVmFsdWUpO1xuICAgICAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkZWNvZGVkUGFyYW1WYWx1ZSA9IHBhcmFtVmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZW5jb2RlZFBhcmFtcyArPSBwYXJhbU5hbWUgKyAnPScgKyBlbmNvZGVVUklDb21wb25lbnQoZGVjb2RlZFBhcmFtVmFsdWUpICsgJyYnO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGVuY29kZWRQYXJhbXMgKz0gcGFyYW1OYW1lICsgJyYnO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgZW5jb2RlZFBhcmFtcyA9IGVuY29kZWRQYXJhbXMuc2xpY2UoMCwgLTEpO1xuICAgICAgICAgICAgdXJsID0gdXJsLnJlcGxhY2UocXVlcnlQYXJhbXNTdHJpbmcsIGVuY29kZWRQYXJhbXMpO1xuICAgICAgICB9XG4gICAgfVxuICAgIHJldHVybiB1cmw7XG59O1xuXG4vKiBjYXBpdGFsaXplIHRoZSBmaXJzdC1sZXR0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gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfSBlbHNlIHsgIC8vT3RoZXIgYnJvd3NlcnNcbiAgICAgICAgICAgICAgICBzY3JpcHQub25sb2FkID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHRydWUpO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBzY3JpcHQub25lcnJvciA9IChlcnJvcjogYW55KSA9PiByZWplY3QoZXJyb3IpO1xuICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2hlYWQnKVswXS5hcHBlbmRDaGlsZChzY3JpcHQpO1xuICAgICAgICB9KTtcbiAgICB9IGVsc2UgaWYoY2FjaGVhYmxlKSB7XG4gICAgICAgIHJldHVybiAkLmFqYXgoe1xuICAgICAgICAgICAgZGF0YVR5cGU6ICdzY3JpcHQnLFxuICAgICAgICAgICAgY2FjaGU6IHRydWUsXG4gICAgICAgICAgICB1cmw6IHVybFxuICAgICAgICB9KS5kb25lKHJlc3BvbnNlID0+IHJlc3BvbnNlKVxuICAgICAgICAgICAgLmZhaWwocmVhc29uID0+IHJlYXNvbik7XG4gICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuICQuZ2V0U2NyaXB0KHVybClcbiAgICAgICAgICAgIC5kb25lKHJlc3BvbnNlID0+IHJlc3BvbnNlKVxuICAgICAgICAgICAgLmZhaWwocmVhc29uID0+IHJlYXNvbik7XG4gICAgfVxufTtcblxuZXhwb3J0IGNvbnN0IGxvYWRTY3JpcHRzID0gYXN5bmMgKHVybHMgPSBbXSwgbG9hZFZpYVNjcmlwdFRhZyA9IHRydWUpID0+IHtcbiAgICBmb3IgKGNvbnN0IHVybCBvZiB1cmxzKSB7XG4gICAgICAgIGF3YWl0IGxvYWRTY3JpcHQodXJsLCBsb2FkVmlhU2NyaXB0VGFnKTtcbiAgICB9XG4gICAgcmV0dXJ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3VudCA9IDA7XG4gICAgY29uc3QgdHJ5Rm4gPSAoKSA9PiB7XG4gICAgICAgIHJldHJ5Q291bnQrKztcbiAgICAgICAgaWYgKGlzRnVuY3Rpb24oZm4pKSB7XG4gICAgICAgICAgICByZXR1cm4gZm4oKTtcbiAgICAgICAgfVxuICAgIH07XG4gICAgbWF4UmV0cmllcyA9IChpc051bWJlcihtYXhSZXRyaWVzKSAmJiBtYXhSZXRyaWVzID4gMCA/IG1heFJldHJpZXMgOiAwKTtcbiAgICBpbnRlcnZhbCA9IChpc051bWJlcihpbnRlcnZhbCkgJiYgaW50ZXJ2YWwgPiAwID8gaW50ZXJ2YWwgOiAwKTtcbiAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICBjb25zdCBlcnJvckZuID0gZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgY29uc3QgZXJyQXJncyA9IGFyZ3VtZW50cztcbiAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRvUHJvbWlzZTxib29sZWFuPihvbkJlZm9yZVJldHJ5KCkpLnRoZW4oZnVuY3Rpb24gKHJldHJ5KSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXRyeSAhPT0gZmFsc2UgJiYgKCFtYXhSZXRyaWVzIHx8IHJldHJ5Q291bnQgPD0gbWF4UmV0cmllcykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRvUHJvbWlzZSh0cnlGbigpKS50aGVuKHJlc29sdmUsIGVycm9yRm4pO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVqZWN0KGVyckFyZ3MpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSwgKCkgPT4gcmVqZWN0KGVyckFyZ3MpKTtcbiAgICAgICAgICAgIH0sIGludGVydmFsKTtcbiAgICAgICAgfTtcbiAgICA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hbCwgb2xkVmFsKSA9PiB7XG4gICAgICAgICAgIGlmICgobmV3VmFsID09PSBvbGRWYWwgJiYgaXNVbmRlZmluZWQobmV3VmFsKSkgfHwgKGlzVW5kZWZpbmVkKG5ld1ZhbCkgJiYgIWlzVW5kZWZpbmVkKG9sZFZhbCkpKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gU2tpcCBjbG9uaW5nIGZvciBibG9iIGNvbHVtblxuICAgICAgICAgICBpZiAoIWluY2x1ZGVzKFsnYmxvYicsICdmaWxlJ10sIG9iai50eXBlKSkge1xuICAgICAgICAgICAgICAgIG5ld1ZhbCA9IGdldENsb25lZE9iamVjdChuZXdWYWwpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gYmFja3dhcmQgY29tcGF0aWJpbGl0eTogd2hlcmUgd2UgYXJlIGFsbG93aW5nIHRoZSB1c2VyIHRvIGJpbmQgY29tcGxldGUgb2JqZWN0XG4gICAgICAgICAgICBpZiAob2JqLnRhcmdldCA9PT0gJ2RhdGFCaW5kaW5nJykge1xuICAgICAgICAgICAgICAgIC8vIHJlbW92ZSB0aGUgZXhpc3RpbmcgZGF0YWJpbmRpbmcgZWxlbWVudFxuICAgICAgICAgICAgICAgIGZpbHRlckV4cHJlc3Npb25zLnJ1bGVzID0gW107XG4gICAgICAgICAgICAgICAgLy8gbm93IGFkZCBhbGwgdGhlIHJldHVybmVkIHZhbHVlc1xuICAgICAgICAgICAgICAgIGZvckVhY2gobmV3VmFsLCBmdW5jdGlvbiAodmFsdWUsIHRhcmdldCkge1xuICAgICAgICAgICAgICAgICAgICBmaWx0ZXJFeHByZXNzaW9ucy5ydWxlcy5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICd0YXJnZXQnOiB0YXJnZXQsXG4gICAgICAgICAgICAgICAgICAgICAgICAndmFsdWUnOiB2YWx1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICdtYXRjaE1vZGUnOiBvYmoubWF0Y2hNb2RlIHx8ICdzdGFydGlnbm9yZWNhc2UnLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ3JlcXVpcmVkJzogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICcnXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAvLyBzZXR0aW5nIHZhbHVlIHRvIHRoZSByb290IG5vZGVcbiAgICAgICAgICAgICAgICBvYmpbdGFyZ2V0Tm9kZUtleV0gPSBuZXdWYWw7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBmaWx0ZXIkLm5leHQoeyBmaWx0ZXJFeHByZXNzaW9ucywgbmV3VmFsIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHN0cmluZ1N0YXJ0c1dpdGgob2JqW3RhcmdldE5vZGVLZXldLCAnYmluZDonKSkge1xuICAgICAgICAgICAgLy8gW1RvZG8tQ1NQXTogbmVlZHMgYSBjaGVjaywgd2hlcmUgaXMgdGhpcyB1c2VkXG4gICAgICAgICAgICBkZXN0cm95Rm4oXG4gICAgICAgICAgICAgICAgJHdhdGNoKG9ialt0YXJnZXROb2RlS2V5XS5yZXBsYWNlKCdiaW5kOicsICcnKSwgY29udGV4dCwge30sIHZhcmlhYmxlID8gdmFyaWFibGUuaW52b2tlT25GaWx0ZXJ0RXhwcmVzc2lvbkNoYW5nZS5iaW5kKHZhcmlhYmxlLCBvYmosIHRhcmdldE5vZGVLZXkpIDogbGlzdGVuZXIsIHVuZGVmaW5lZCwgZmFsc2UsIHthcnJheVR5cGU6IGluY2x1ZGVzKFsnaW4nLCAnbm90aW4nXSwgb2JqLm1hdGNoTW9kZSl9KVxuICAgICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgIH07XG5cbiAgICBjb25zdCB0cmF2ZXJzZUZpbHRlckV4cHJlc3Npb25zID0gZXhwcmVzc2lvbnMgPT4ge1xuICAgICAgICBpZiAoZXhwcmVzc2lvbnMucnVsZXMpIHtcbiAgICAgICAgICAgIGZvckVhY2goZXhwcmVzc2lvbnMucnVsZXMsIChmaWxFeHBPYmosIGkpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZmlsRXhwT2JqLnJ1bGVzKSB7XG4gICAgICAgICAgICAgICAgICAgIHRyYXZlcnNlRmlsdGVyRXhwcmVzc2lvbnMoZmlsRXhwT2JqKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZmlsRXhwT2JqLm1hdGNoTW9kZSA9PT0gJ2JldHdlZW4nKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBiaW5kRmlsRXhwT2JqKGZpbEV4cE9iaiwgJ3NlY29uZHZhbHVlJyk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgYmluZEZpbEV4cE9iaihmaWxFeHBPYmosICd2YWx1ZScpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfTtcbiAgICB0cmF2ZXJzZUZpbHRlckV4cHJlc3Npb25zKGZpbHRlckV4cHJlc3Npb25zKTtcblxuICAgIHJldHVybiBmaWx0ZXIkO1xufTtcblxuLy8gVGhpcyBtZXRob2Qgd2lsbCBzZXQgdGhlIGdpdmVuIHByb3RvIG9uIHRoZSB0YXJnZXRcbmV4cG9ydCBjb25zdCBleHRlbmRQcm90byA9ICh0YXJnZXQsIHByb3RvKSA9PiB7XG4gICAgbGV0IF9wcm90byA9IE9iamVjdC5nZXRQcm90b3R5cGVPZih0YXJnZXQpO1xuICAgIHdoaWxlIChPYmplY3QuZ2V0UHJvdG90eXBlT2YoX3Byb3RvKS5jb25zdHJ1Y3RvciAhPT0gT2JqZWN0KSB7XG4gICAgICAgIF9wcm90byA9IE9iamVjdC5nZXRQcm90b3R5cGVPZihfcH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mwgPT4gaW5Qcm9ncmVzcy5oYXModXJsKTtcbiAgICBjb25zdCBpc1Jlc29sdmVkID0gdXJsID0+IHJlc29sdmVkLmhhcyh1cmwpO1xuICAgIGNvbnN0IG9uTG9hZCA9IHVybCA9PiB7XG4gICAgICAgIHJlc29sdmVkLmFkZCh1cmwpO1xuICAgICAgICBpblByb2dyZXNzLmdldCh1cmwpLnJlc29sdmUoKTtcbiAgICAgICAgaW5Qcm9ncmVzcy5kZWxldGUodXJsKTtcbiAgICB9O1xuXG4gICAgY29uc3Qgc2V0SW5Qcm9ncmVzcyA9IHVybCA9PiB7XG4gICAgICAgIGxldCByZXNGbjtcbiAgICAgICAgbGV0IHJlakZuO1xuICAgICAgICBjb25zdCBwcm9taXNlOiBhbnkgPSBuZXcgUHJvbWlzZSgocmVzLCByZWopID0+IHtcbiAgICAgICAgICAgIHJlc0ZuID0gcmVzO1xuICAgICAgICAgICAgcmVqRm4gPSByZWo7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHByb21pc2UucmVzb2x2ZSA9IHJlc0ZuO1xuICAgICAgICBwcm9taXNlLnJlamVjdCA9IHJlakZuO1xuXG4gICAgICAgIGluUHJvZ3Jlc3Muc2V0KHVybCwgcHJvbWlzZSk7XG4gICAgfTtcblxuICAgIHJldHVybiBmdW5jdGlvbiAodXJsKSB7XG4gICAgICAgIGlmIChpc1Jlc29sdmVkKHVybCkpIHtcbiAgICAgICAgICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChpc0luUHJvZ3Jlc3ModXJsKSkge1xuICAgICAgICAgICAgcmV0dXJuIGluUHJvZ3Jlc3MuZ2V0KHVybCk7XG4gICAgICAgIH1cblxuICAgICAgICBzZXRJblByb2dyZXNzKHVybCk7XG5cbiAgICAgICAgY29uc3Qgb3B0aW9ucyA9IHtcbiAgICAgICAgICAgIGRhdGFUeXBlOiAnc2NyaXB0JyxcbiAgICAgICAgICAgIGNhY2hl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0VHJhc2xhdGlvbk1hdHJpeChjb250YWluZXJFbGVtKTtcblxuICAgICAgICAgICAgaWYgKHZpZXdQb3J0V2lkdGggLSAocGFyZW50UmlnaHQgKyBwYXJlbnREaW1lc2lvbi53aWR0aCkgPCBjb250YWluZXJXaWR0aCkge1xuICAgICAgICAgICAgICAgIG5ld0xlZnQgPSBwYXJlbnRSaWdodCAtIGNvbnRhaW5lcldpZHRoO1xuICAgICAgICAgICAgICAgIGlmIChuZXdMZWZ0IDwgMCkge1xuICAgICAgICAgICAgICAgICAgICBuZXdMZWZ0ID0gMDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgY29udGFpbmVyRWxlVHJhbnNmb3JtYXRpb25zLm00MSA9IG5ld0xlZnQ7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHNldFRyYW5zbGF0aW9uM2RQb3NpdGlvbihjb250YWluZXJFbGVtLCBjb250YWluZXJFbGVUcmFuc2Zvcm1hdGlvbnMpO1xuICAgICAgICB9KTtcbiAgIH07XG5cbiAgLyoqXG4gICAqIEZvciBnaXZlbiBlbGVtZW50IHNldCB0aGUgdHJhc2xhdGlvblxuICAgKiBAcGFyYW0gY29udGFpbmVyRWxlbSB0YW5zbGF0ZWQgZWxlbWVudFxuICAgKlxuICAgKiBAcGFyYW0gY29udGFpbmVyRWxlVHJhbnNmb3JtYXRpb25zIHRyYW5zbGF0ZSBtYXRyaXggcG9zaXRpb25zXG4gICAqL1xuICAgZXhwb3J0IGNvbnN0IHNldFRyYW5zbGF0aW9uM2RQb3NpdGlvbiA9IChjb250YWluZXJFbGVtLCBjb250YWluZXJFbGVUcmFuc2Zvcm1hdGlvbnMpID0+IHtcbiAgICAgICAgY29uc3QgdHJhbnNsYXRlUG9zaXRpb24gPSAndHJhbnNsYXRlM2QoJyArIGNvbnRhaW5lckVsZVRyYW5zZm9ybWF0aW9ucy5t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9mIGxWaWV3WzFdID09PSBcImJvb2xlYW5cIikge1xuICAgICAgICByZXR1cm4gZmluZFZpZXdQYXJlbnQocGFyZW50bFZpZXcpO1xuICAgIH1cbiAgICBsZXQgY29tcG9uZW50VHlwZSA9IGxWaWV3WzFdW1widHlwZVwiXTtcbiAgICBpZihjb21wb25lbnRUeXBlID09PSAwIHx8IGNvbXBvbmVudFR5cGUgPT09IDEpIHtcbiAgICAgICAgbGV0IHAgPSBsVmlld1s4XTtcbiAgICAgICAgLy8gdHMtaWdub3JlXG4gICAgICAgIGlmKHAuaGFzT3duUHJvcGVydHkoXCJpc0RpYWxvZ0NvbXBvbmVudFwiKSB8fCBwLmhhc093blByb3BlcnR5KFwiaXNDb250YWluZXJEaXJlY3RpdmVcIikpIHtcbiAgICAgICAgICAgIHJldHVybiBmaW5kVmlld1BhcmVudChwYXJlbnRsVmlldyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICByZXR1cm4gcDtcbiAgICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBmaW5kVmlld1BhcmVudChwYXJlbnRsVmlldyk7XG4gICAgfSovXG59XG5cbi8qZXhwb3J0IGNvbnN0IGdldFBhcmVudCA9IChwYXJlbnQ6IGFueSkgPT4ge1xuICAgIGlmKHBhcmVudC5oYXNPd25Qcm9wZXJ0eShcImlzRHluYW1pY0NvbXBvbmVudFwiKSB8fCBwYXJlbnQuaGFzT3duUHJvcGVydHkoXCJpc1BhZ2VDb21wb25lbnRcIikpIHtcbiAgICAgICAgcmV0dXJuIHBhcmVudFxuICAgIH0gZWxzZXtcbiAgICAgICAgcmV0dXJuIHBhcmVudC52aWV3UGFyZW50ID8gZ2V0UGFyZW50KHBhcmVudC52aWV3UGFyZW50KSA6IHBhcmVudDtcbiAgICB9XG5cbn0qL1xuIl19
|