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AgICAgICAgICAgICAgIApzdWIgc2V0UCB7CiAgICBteSAoJHBhcmFncmFwaCkgPSBAXzsKICAgIAogICAgJHBhcmFncmFwaC0+c2V0X2dpKCdwJyk7CiAgICAKICAgICMgPHBhcmFncmFwaCBpZD0icC1iY2QwZjNmYS1iYmQzZGFjNC04MTVlYWQ3YSIgc3VtX2xhbmc9InxmaW46MXwiPgogICAgIyBhdHRzIG9mIDxwYXJhZ3JhcGg+OgogICAgIyAgICBAaWQgICAgICAgIFVTRQogICAgIyAgICBAc3VtX2xhbmcgIFVTRTogcHV0IGluIHhtbDpsYW5nIGFuZCBwcmVmaXggdGhlIHZhbHVlIHdpdGggIngtIiBmb3IgcHJpdmF0ZSB2YWx1ZQogICAgCiAgICAkcGFyYWdyYXBoLT5zZXRfYXR0KCJ4bWw6bGFuZyIsICJ4LSIgLiAkcGFyYWdyYXBoLT5hdHQoInN1bV9sYW5nIikpOwogICAgJHBhcmFncmFwaC0+ZGVsX2F0dCgic3VtX2xhbmciKTsKICAgICRwYXJhZ3JhcGgtPmNoYW5nZV9hdHRfbmFtZSgnaWQnLCAneG1sOmlkJyk7Cn0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKc3ViIHNldFMgewogICAgbXkgKCRzZW50ZW5jZSkgPSBAXzsKICAgIAogICAgJHNlbnRlbmNlLT5zZXRfZ2koJ3MnKTsKCSAgICAKICAgICMgdGhlIGF0dHMgb2YgPHNlbnRlbmNlPjoKICAgICMgICAgVVNFICAgMSBAaWQ9InMtYmNkMGYzZmEtYmJkM2RhYzQtZjc0MjkwOTAiCiAgICAjICAgIFVTRSAgIDIgQGxhbmc9ImZpbiIgLT4geG1sOmxhbmcgCiAgICAj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