1. MPC response overview

As of 15 November 2023, a total of 987,840 persons or 196,203 families have been reached by MPC interventions.

A total of USD 32 million has been disbursed by 30 implementing agencies in 345 communities across 35 sub-districts.

Only beneficiaries who have received at least USD 100/family/month have been included; excludes sector-based activities such as non-MPC cash-for-food.


988,000 people reached with MPC, USD 32 million disbursed, 15 November 2023

governorate

district

comm.

partners

households

beneficiaries

total_usd

%_BNF1

Aleppo

A'zaz

36

14

9,791

46,186

1,440,297

4.68

Aleppo

Afrin

145

21

56,397

251,042

8,620,160

25.41

Aleppo

Al Bab

5

7

8,154

43,283

1,229,848

4.38

Aleppo

Jarablus

1

3

670

2,170

107,372

0.22

Aleppo

Jebel Saman

18

12

14,691

73,537

2,062,245

7.44

Ar-Raqqa

Tell Abiad

2

1

102

399

19,912

0.04

Idleb

Ariha

7

5

2,342

12,085

359,700

1.22

Idleb

Harim

76

22

89,876

402,186

13,299,553

40.71

Idleb

Idleb

29

16

27,035

128,197

4,059,686

12.98

Idleb

Jisr-Ash-Shugur

29

8

6,130

28,755

815,347

2.91

Total

-

-

-

215,188

987,840

32,014,120

100.00

1As percentage of all MPC beneficiaries reached in NW Syria


In February 2023, 164,822 beneficiary frequencies were reached, and in March 2023 the number increased to 169,067. In April 2023 155,679 were reached. As of May 2023, 93,816 beneficiaries have been reached, followed by 67,458 in June, with 129,063 in July 2023 with 135,997 in August 2023, with 83,246 in September 2023, while in October 2023 38,190, and 13,629 in November 2023.

This document distinguishes between beneficiaries, or unique individuals reached, and beneficiary frequencies, or the number of times people have been reached, inclusive of double counting.



1.1 Progress by date


The small number of beneficiaries reached earlier than February all pertained to the HRP, the only such beneficiaries reported so far. The CWG would like to encourage partners to report on their January achievements.



2. Map of activities





3. Geographic breakdown of beneficiaries

Coverage continues to be highest in Afrin and Harim districts, where the highest numbers of damaged houses and wounded people are located (though these areas do not necessarily have the highest proportions of damage).



Casualties and damaged houses, absolute figures and per 100,000 persons

governorate

district

wounded_dead1

wounded_dead_100k1

damaged_houses1

damaged_houses_100k1

Aleppo

A'zaz

356

57.87

276

44.86

Aleppo

Afrin

2,232

478.79

2,910

624.22

Aleppo

Al Bab

206

70.04

832

282.89

Aleppo

Jarablus

40

33.82

257

217.30

Aleppo

Jebel Saman

616

236.80

176

67.66

Idleb

Harim

8,449

507.65

3,230

194.07

Idleb

Idleb

350

48.23

946

130.37

Idleb

Jisr-Ash-Shugur

595

183.68

1,915

591.18

1Data from the Assistance Coordination Unit, Syria 20230328;


Below is a breakdown of beneficiaries based on whether they originate from camps or villages. The majority of MPC beneficiaries are from villages.


More than twice as many beneficiaries from villages as from camps

village_camps

beneficiaries

%_beneficiaries

camp

126,846

12.84

village

276,391

27.98

NA

584,603

59.18




3.1 By sub-district

The plots below show the breakdown of beneficiaries by sub-district. Caution must be taken to ensure that allocations are fair across the affected areas: there are numerous sub-districts where a very large proportion of the total population has already been reached by multipurpose cash, in particular, Jandairis, Harim, Salqin and Sharan.

Response activities must be proportional with the magnitude and severity of earthquake damage. Over allocation deprives affected persons of the aid they are due.

The average percentage of the population reached, of all sub-districts, is 15.93%.






3.2 Planned activities

We find it encouraging that new sub-districts are being included in the planned allocations, although it’s noteworthy that some of the planned allocation is still being assigned to areas that have already benefited from relatively high levels of support.






4. Cash response actors and cash disbursed

USD 32 million has been distributed across 345 communities and 35 sub-districts in NW Syria.


Reach and footprint of cash response actors

implementing_partner1

beneficiary_freq

districts

communities

GOAL (GOAL)

229,271

5

150

Shafak Organization (SO)

147,134

8

44

International Rescue Committee (IRC)

136,582

4

32

Ihsan for Relief and Development (IRD)

95,269

6

41

Syria Relief (SR)

64,931

5

16

Takaful Al Sham (TAS)

48,823

4

57

Violet Organization (VO)

46,855

5

38

Bahar Organization (BO)

36,025

2

32

Norwegian Refugee Council (NRC)

32,291

3

7

Ataa Humanitarian Relief Association (ATAA)

27,434

9

25

Uluslararasi Insani Yardimlasma Dernegi (IYD)

27,086

8

22

CBRTWG-031

23,840

4

32

Solidarités International (SI)

22,998

1

6

Syrian Association for Relief and Development (SARD)

18,597

3

11

Sened Organization (SENED)

15,995

4

7

Mercy Without Limits (MWL)

15,422

4

7

Welthungerhilfe (WHH)

13,610

4

10

People in Need (PIN)

12,804

5

6

World Vision International (WVI)

12,048

1

4

GMO -- Mercy Corps

9,870

1

1

Elaf for Relief and Development (ELAF)

6,900

3

4

International Humanitarian Relief (IHR)

6,654

3

9

Hand in Hand For Syria (HIHFS)

6,651

1

7

Social Development International (SDI)

6,252

2

3

Hope Revival Organization (HRO)

4,850

1

18

Ghiras Al Nahda (GAN)

3,050

1

2

Bonyan Organization (BO)

2,951

1

4

The Syrian Est. for Human Care and Development (Massrat)

2,692

3

3

Al-Sham Humanitarian Foundation (AHF)

1,980

7

7

Seeds Of Hope Relief and Development (SOH)

481

1

1

1Only partners who provided more than USD 100/family/month;


In the scatter plot below, each point is a single cash working group partner. The x-axis indicates the number of beneficiary frequencies reached per agency and the y-axis indicates the number of communities (admin4) reached. Mouse over each point for more details.





4.1 Cash disbursed per partner


Cash disbursed and families reached by partner

implementing_partner

total_usd

families

usd_per_fam

%_usd_total

GOAL (GOAL)

7,092,150

47,281

150.00

22.15

Shafak Organization (SO)

4,476,400

29,671

150.87

13.98

International Rescue Committee (IRC)

3,720,300

24,802

150.00

11.62

Ihsan for Relief and Development (IRD)

2,582,700

18,270

141.36

8.07

Syria Relief (SR)

2,054,158

13,304

154.40

6.42

Violet Organization (VO)

1,421,250

9,680

146.82

4.44

Takaful Al Sham (TAS)

1,403,510

9,705

144.62

4.38

Ataa Humanitarian Relief Association (ATAA)

1,154,929

6,323

182.66

3.61

Bahar Organization (BO)

1,080,750

7,205

150.00

3.38

Norwegian Refugee Council (NRC)

827,600

5,971

138.60

2.59

Syrian Association for Relief and Development (SARD)

710,148

3,997

177.67

2.22

Uluslararasi Insani Yardimlasma Dernegi (IYD)

708,850

5,602

126.54

2.21

CBRTWG-031

659,100

4,394

150.00

2.06

Welthungerhilfe (WHH)

644,700

4,298

150.00

2.01

Solidarités International (SI)

508,350

4,356

116.70

1.59

People in Need (PIN)

411,450

2,743

150.00

1.29

Mercy Without Limits (MWL)

399,731

2,877

138.94

1.25

Sened Organization (SENED)

379,200

2,528

150.00

1.18

World Vision International (WVI)

301,200

2,008

150.00

0.94

Elaf for Relief and Development (ELAF)

252,500

1,250

202.00

0.79

GMO -- Mercy Corps

218,100

2,181

100.00

0.68

Hand in Hand For Syria (HIHFS)

210,079

1,400

150.06

0.66

International Humanitarian Relief (IHR)

179,250

1,195

150.00

0.56

Social Development International (SDI)

151,650

1,011

150.00

0.47

Hope Revival Organization (HRO)

121,250

970

125.00

0.38

Bonyan Organization (BO)

119,964

575

208.63

0.37

Ghiras Al Nahda (GAN)

91,500

610

150.00

0.29

The Syrian Est. for Human Care and Development (Massrat)

81,000

540

150.00

0.25

Al-Sham Humanitarian Foundation (AHF)

41,250

330

125.00

0.13

Seeds Of Hope Relief and Development (SOH)

11,100

111

100.00

0.03


The CWG is currently working with other Clusters to consolidate all cash-based activities and will soon be able to provide more comprehensive reporting.



4.2 Currency disbursed

A total of 96.44% of cash disbursed was in USD.


Proportion of cash disbursed by currency

currency

total_usd

%_of_total

TRY

1,138,914

3.56

USD

30,875,204

96.44

Total

32,014,118

100.00




5. Annexes


5.1 Interactive reference table at sub-district level

Columns include: governorate, district, sub-district, total population, beneficiaries, total usd disbursed, wounded and dead, wounded and dead per 100k, damaged houses, damaged houses per 100k, admin3pcode




5.2 Reporting quality

This section documents issues encountered in the cleaning of 4W and FSL data and their impacts on the quality of reporting the CWG can provide. The recommendations by the CWG are included to enhance reporting quality:

  1. The CWG has adopted a new 4Ws template for monthly reporting, aiming to improve the documentation of the earthquake response efforts. The reporting deadline is set on the 15th of each month. In February 9 partners reported their achievements, In March 9 partners have reported their achievements, with 17 partners having reported in April, in May 17 partners have reported. 11 partners have reported in June, with 11 partners have reported in July, while 16 reported in August, with 17 reported in September, with 11 reported in October, and 5 reported in November . If no MPC activities were implemented, please inform the CWG as well.

  2. For this reporting period, activities pertaining to 59,469 beneficiaries were missing their dates or had dates in unreadable formats. Please ensure that the start date and end date are entered in the format (mm/dd/yyyy) and select the month of reporting from the options in the drop down menu.

  3. For sex-and-age dis-aggregations, please do not back fill these columns using calculations based on the census or the MSNA. If no dis-aggregated data is available to your organisation, please leave these columns blank.

  4. The Cash Working Group is currently only collecting planned and implemented Multipurpose Cash achievements. Whilst the CWG welcomes additional inputs on other CVA activities, we also want to ensure that the reporting load is as low as possible for partners i.e. if an agency has implemented Cash-for-Work, this should be reported to the ERL Cluster. The CWG will work with all Clusters to develop a consolidated picture of response-wide CVA interventions.

  5. Please indicate in the previously_assisted column whether or not beneficiaries have been reached before. However, if the beneficiaries are being reported for the first time to the Cash Working Group, even if you have reached them before, please indicate No in this column. This column is used to calculate the number of unique individuals reached.

LS0tDQp0aXRsZTogIk5vcnRod2VzdCBTeXJpYSBDYXNoIFdvcmtpbmcgR3JvdXAgRWFydGhxdWFrZSBSZXNwb25zZSBCdWxsZXRpbiINCmRhdGU6ICJgciBmb3JtYXQoU3lzLnRpbWUoKSwgJyVkICVCLCAlWScpYCINCm91dHB1dDoNCiAgaHRtbF9kb2N1bWVudDoNCiAgICBjb2RlX2Rvd25sb2FkOiB5ZXMNCiAgICB0aGVtZTogcmVhZGFibGUNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogNA0KICAgIHRvY19mbG9hdDogeWVzDQogICAgbnVtYmVyX3NlY3Rpb25zOiBubw0KICAgIGNvbGxhcHNlZDogbm8NCiAgd29yZF9kb2N1bWVudDoNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogJzQnDQphbHdheXNfYWxsb3dfaHRtbDogeWVzDQotLS0NCg0KYGBge2NzcywgZWNobz1GQUxTRX0NCg0KI1RPQzo6YmVmb3JlIHsNCiAgY29udGVudDogIiI7DQogIGRpc3BsYXk6IGJsb2NrOw0KICBoZWlnaHQ6IDcwcHg7DQogIG1hcmdpbjogMmVtIDIwcHggNDBweCAyMHB4Ow0KICBiYWNrZ3JvdW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Y2VsKCIuL2RhdGEvc3lyaWEtZWFydGhxdWFrZS1pbXBhY3QtMjAtbWFyY2gtMjAyMy54bHN4IiwNCiAgICAgICAgICAgICAgICAgc2hlZXQgPSAiREFUQVNFVCIpICU+JSANCiAgc2V0TmFtZXMobmFtZXNfZXEpICU+JSANCiAgICBsZWZ0X2pvaW4obG9jYXRpb25zICU+JSBzZWxlY3QoYWRtaW40cGNvZGUsIGFkbWluM3Bjb2RlKSwgDQogICAgICAgICAgICBieSA9IGMoImFkbWluNHBjb2RlIiA9ICJhZG1pbjRwY29kZSIpKSAlPiUgDQogICAgICBtdXRhdGUod291bmRlZF9kZWFkID0gY2FzdWFsdGllcyArIGluanVyaWVzLA0KICAgICAgICAgICAgIGRhbWFnZWRfaG91c2VzID0gY29tcGxldGVseV9kZXN0cm95ZWRfaG91c2VzICsgZGFtYWdlZF91bmloYWJpdGFibGVfaG91c2VzKSAlPiUgDQogICAgICAgIGdyb3VwX2J5KGFkbWluM3Bjb2RlKSAlPiUgDQogICAgICAgICAgc3VtbWFyaXNlKHdvdW5kZWRfZGVhZCA9IHN1bSh3b3VuZGVkX2RlYWQsIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgIGRhbWFnZWRfaG91c2VzID0gc3VtKGRhbWFnZWRfaG91c2VzLCBuYS5ybSA9IFRSVUUpKSAlPiUgDQogICAgICAgICAgICBsZWZ0X2pvaW4ocmVhZF9leGNlbCgiLi9kYXRhLzIwMjNITk9fUGlOX1NldmVyaXR5X2RldGFpbGVkQW9JX0ZPUlNIQVJFIDE1MDMyMDIzLnhsc3giLCBza2lwID0gMSwgDQogICAgICAgICAgICBzaGVldCA9IDEpICU+JQ0KICAgICAgICAgICAgICBjbGVhbl9uYW1lcygpICU+JQ0KICAgICAgICAgICAgICAgIHNlbGVjdChhZG1pbjNwY29kZSwgdG90YWxfcG9wdWxhdGlvbiwgYW9jID0gYW9fYyksIA0KICAgICAgICAgICAgICAgIGJ5ID0gImFkbWluM3Bjb2RlIikg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zID0gMCkpICU+JSANCiAgICAgICAgICAgICAgbXV0YXRlKGdvdmVybm9yYXRlID0gcmVjb2RlKGdvdmVybm9yYXRlLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhbGVwcG8iID0gIkFsZXBwbyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFMRVBQTyIgPSAiQWxlcHBvIiksIA0KICAgICAgICAgICAgICBkaXN0cmljdCA9IHJlY29kZShkaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJKYWJhbCBTYW1tYW4iID0gIkplYmVsIFNhbWFuIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhemF6IiA9ICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiamFyYWJsdXMiID0gIkphcmFibHVzIiksIA0KICAgICAgICAgICAgICBzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhemF6IiA9ICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImphcmFibHVzIiA9ICJKYXJhYmx1cyIpLCANCiAgICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9IGlmZWxzZShhZG1pbjFwY29kZSAlaW4lIGMoIlNZMTEiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIk5vIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCkpICU+JSANCiAgICAgICAgICAgICAgICBmaWx0ZXIoYWRtaW4xcGNvZGUgIT0gIlNZMDkiKQ0KIA0KICANCg0KaG5vIDwtIHJlYWRfZXhjZWwoIi4vZGF0YS8yMDIzSE5PX1BpTl9TZXZlcml0eV9kZXRhaWx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zID0gbl9kaXN0aW5jdChhZG1pbjRwY29kZSksIA0KICAgICAgaG91c2Vob2xkcyA9IHN1bShmYW1pbGllcywgbmEucm0gPSBUUlVFKSwgDQogICAgICBiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXNbcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iXSwgbmEucm0gPSBUUlVFKSwgDQogICAgICB0b3RhbF91c2QgPSBzdW0odG90YWxfdXNkLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgdW5ncm91cCgpICU+JSANCiAgICAgICAgICBtdXRhdGUoYCVfQk5GYCA9IA0KICAgICAgICAgIHJvdW5kKGJlbmVmaWNpYXJpZXMgLyBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSAqIDEwMCwgZGlnaXRzID0gMiksIA0KICAgICAgICAgIHRvdGFsX3VzZCA9IHJvdW5kKHRvdGFsX3VzZCkpICU+JQ0KICAgICAgICAgICAgYWRvcm5fdG90YWxzKCJyb3ciLCwsLCBob3VzZWhvbGRzLCBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIGAlX0JORmApICU+JSANCiAgICAgICAgICAgICAgbXV0YXRlKGAlX0JORmAgPSBpZmVsc2UoYCVfQk5GYCA+IDk5Ljk4LCAxMDAsIGAlX0JORmApKSAlPiUgDQogICAgICAgICAgICAgICAgc2VsZWN0KGdvdmVybm9yYXRlLCBkaXN0cmljdCwgYGNvbW0uYCA9IGNvbW11bml0aWVzLCBwYXJ0bmVycywgDQogICAgICAgICAgICAgICAgaG91c2Vob2xkcywgYmVuZWZpY2lhcmllcywgdG90YWxfdXNkLCBgJV9CTkZgKSAlPiUgDQogICAgICAgICAgICAgICAgICBmbGV4dGFibGUoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgIHNldF9jYXB0aW9uKHBhc3RlMCgNCiAgICAgICAgICAgICAgICAgICAgICByb3VuZChzd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HBhc3RlMCgNCiAgICAgICAgICAgICAgICAgICAgcm91bmQoc3VtX3N0YXRzJGJlbmVmaWNpYXJpZXMsIGRpZ2l0cyA9IC0zKSAlPiUgZm9ybWF0KGJpZy5tYXJrID0gIiwiKSwNCiAgICAgICAgICAgICAgICAgICAgIiBwZW9wbGUgcmVhY2hlZCB3aXRoIE1QQywgVVNEICIsDQogICAgICAgICAgICAgICAgICAgIHBhc3RlKGZvcm1hdChyb3VuZCgoc3VtX3N0YXRzICU+JSBwdWxsKHRvdGFsX3VzZCkpIC8gMTAwMDAwMCwgMSksIHRyaW0gPSBUUlVFKSwgIm1pbGxpb24iKSwgDQogICAgICAgICAgICAgICAgICAgICIgZGlzYnVyc2VkLCAiLCANCiAgICAgICAgICAgICAgICAgICAgcmVwb3J0X2RhdGUpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgdGhlbWVfemVicmEoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgZm9vdG5vdGUoaSA9IDEsIGogPSA4LCBwYXJ0ID0gImhlYWRlciIsIHJlZl9zeW1ib2xzID0gIjEiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgYXNfcGFyYWdyYXBoKCJBcyBwZXJjZW50YWdlIG9mIGFsbCBNUEMgYmVuZWZpY2lhcmllcyByZWFjaGVkIGluIE5XIFN5cmlhIikpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0X3RhYmxlX3Byb3BlcnRpZXMobGF5b3V0ID0gImF1dG9maXQiLCB3aWR0aCA9IDEpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzYXZlX2FzX2ltYWdlKHBhdGggPSAiLi9pbWcvc3VtbWFyeV90YWJsZS5wbmciKQ0KYGBgDQoNCg0KDQo8YnI+DQoNCkluIEZlYnJ1YXJ5IDIwMjMsIGByIGZpbHRlcihjYnIsIG1vbnRoID09IDIgJiBwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIikgJT4lIHtzd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yMDIyLTEyLTMwIiAmIGVuZF9kYXRlIDwgcHJvZ3Jlc3NfbWF4X2RhdGUpICU+JSAgDQogICAgICAgICAgICAgICAgICAgIG11dGF0ZShjdW1fYmVuID0gY3Vtc3VtKGJlbmVmaWNpYXJpZXMpKSAlPiUgDQogICMgU3BhY2VkIGF0IHJvdWdobHkgZXZlcnkgMTUgZGF5cywgQWx0aG91Z2ggc29tZSBkYXlzIGRvIG5vdCBoYXZlIGRpc3RyaWJ1dGlvbnMgDQogICAgICAgICAgICAgICAgICAgICAgbXV0YXRlKGN1bV9sYWJlbCA9IGlmZWxzZShlbmRfZGF0ZSA9PSAiMjAyMy0wMi0xMCJ8IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDMtMDEifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDMtMTUifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDMtMzAifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDQtMTUifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDQtMzAifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDUtMjQifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDYtMTEifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDYtMzAifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDctMTcifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDctMzEifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDgtMTUifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDgtMzAifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDktMTQifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDktMzAifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMTAtMTQifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMTAtMzEifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMTEtMTQiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3VtX2JlbiwgIiIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1bV9sYWJlbCA9IGFzLm51bWVyaWMoY3VtX2xhYmVsKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9IGFueWRhdGUoZW5kX2RhdGUpKSANCg0KcHJvZ3Jlc3NfbGluZSAlPiUgDQogIGdnc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WlzLm5hKGJlbmVmaWNpYXJpZXMpKSAlPiUgDQogICAgICAgIHN0X2FzX3NmKCkgJT4lDQogICAgICAgICAgZ2dwbG90KCkgKyANCiAgICAgICAgICBnZW9tX3NmKHNpemUgPSAuMSwgY29sb3VyID0gImdyZXk3MCIpICsgDQogICAgICAgICAgZ2VvbV9wb2ludChhZXMoc2l6ZSA9IGJlbmVmaWNpYXJpZXMsDQogICAgICAgICAgICAgICAgIGNvbG91ciA9IHByb2plY3Rfc3RhdHVzLCANCiAgICAgICAgICAgICAgICAgeCA9IGxvbmdpdHVkZV94LCB5ID0gbGF0aXR1ZGVfeSwgDQogICAgICAgICAgICAgICAgIHRleHQgPSBwYXN0ZTAoInN1Yl9kaXN0cmljdDogIiwgc3ViX2Rpc3RyaWN0LCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJjb21tdW5pdHk6ICIsIGNvbW11bml0eSwgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibG9jYXRpb25fdHlwZTogIiwgdmlsbGFnZV9jYW1wcywgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYmVuZWZpY2lhcmllczoiLCBmb3JtYXQoYmVuZWZpY2lhcmllcywgYmlnLm1hcmsgPSAiLCIpLCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJwYXJ0bmVyOiAiLCBhYmJyZXZpYXRpb24sICJcbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJsb25feDogIiwgbG9uZ2l0dWRlX3gsICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImxhdF95OiAiLCBsYXRpdHVkZV95KSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaGFwZSA9IDIxLCBzdHJva2UgPSAuMzUsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbHBoYSA9IC41KSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9zaXplX2NvbnRpbnVvdXMobGFiZWxzID0gY29tbWEpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlX2NvbG91cl92aXJpZGlzX2QobmEudHJhbnNsYXRlID0gRkFMU0UpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lX3ZvaWQoKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGVtZShwbG90LmJhY2tncm91bmQgPSBlbGVtZW50X3JlY3QoZmlsbCA9ICJ3aGl0ZSIsIGNvbG91ciA9IE5BKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsb3QuY2FwdGlvbiA9IGVsZW1lbnRfdGV4dChoanVzdCA9IDAuNSksKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxhYnModGl0bGUgPSAiQ29tbXVuaXRpZXMgcmVhY2hlZCBhbmQgcGxhbm5lZCAtLSBDV0cgcGFydG5lcnMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VidGl0bGUgPSAiUGxhbm5lZCBpbiB5ZWxsb3csIGNvbXBsZXRlZCBpbiBwdXJwbGUsIHNpemUgc2hvd3MgbnVtYmVyIG9mIHBlcnNvbnMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sb3VyID0gIlN0YXR1cyIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ3VpZGVzKHNpemUgPSAibm9uZSIpDQoNCiAgDQpnZ3Bsb3RseShwbGFubmVkX2ltcGxlbWVudGVkX21hcCwgdG9vbHRpcCA9IGMoInRleHQiKSkgJT4lIA0KICBwbG90bHk6OnN0eWxlKGhvdmVyb24gPSAicG9pbnQiKSAlPiUgDQogICAgbGF5b3V0KHRpdGxlID0gbGlzdCh0ZXh0ID0gcGFzdGUwKCJDb21tdW5pdGllcyByZWFjaGVkIGFuZCBwbGFubmVkIC0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JSANCiAgICAgICAgICAgICAgbXV0YXRlKGRpc3RyaWN0ID0gZmN0X3Jlb3JkZXIoZGlzdHJpY3QsIGJlbmVmaWNpYXJpZXMpLA0KICAgICAgICAgICAgICBnb3Zlcm5vcmF0ZSA9IGZjdF9yZWxldmVsKGdvdmVybm9yYXRlLCANCiAgICAgICAgICAgICAgYygiSWRsZWIiLCAiQXItUmFxcWEiLCAiQWxlcHBvIikpDQogICAgICAgICAgICAgICApICU+JSANCiAgICAgICAgICAgICAgICBnZ3Bsb3QoYWVzKHggPSBiZW5lZmljaWFyaWVzLCB5ID0gZGlzdHJpY3QpKSArIA0KICAgICAgICAgICAgICAgIGdlb21fY29sKGFlcyhmaWxsID0gZ292ZXJub3JhdGUpKSArIA0KICAgICAgICAgICAgICAgIGdlb21fdGV4dChhZXMobGFiZWwgPSBjb21tYShiZW5lZmljaWFyaWVzKSksIA0KICAgICAgICAgICAgICAgIGhqdXN0ID0gImlud2FyZCIpICsgDQogICAgICAgICAgICAgICAgc2NhbGVfZmlsbF92aXJpZGlzX2QoYmVnaW4gPSAuMykgKyANCiAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIk1QQyBiZW5lZmljaWFyaWVzIGJ5IGRpc3RyaWN0IiwgDQogICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgeSA9ICIiKSArIA0KICAgICAgICAgICAgICAgIHNjYWxlX3hfY29udGludW91cyhsYWJlbHMgPSB1bml0X2Zvcm1hdCh1bml0ID0gIksiLCBzY2FsZSA9IDFlLTMsIGFjY3VyYWN5ID0gMSkpICsgDQogICAgICAgICAgICAgICAgaG5vICU+JSANCiAgICAgICAgICAgICAgICAgIGZpbHRlcihhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBncm91cF9ieShnb3Zlcm5vcmF0ZSA9IGFkbWluMW5hbWVfZW4sIGRpc3RyaWN0ID0gYWRtaW4ybmFtZV9lbikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdW1tYXJpc2UodG90YWxfcG9wdWxhdGlvbiA9IHN1bSh0b3RhbF9wb3B1bGF0aW9uLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxlZnRfam9pbigNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYnIgJT4lDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIgJiAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByZXZpb3VzbHlfYXNzaXN0ZWQgPT0gIk5vIikgJT4lICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBncm91cF9ieShkaXN0cmljdCkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSkgLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ5ID0gImRpc3RyaWN0IikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUoZGlzdHJpY3QgPSBmY3RfcmVsZXZlbChkaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFsIEJhYiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJKYXJhYmx1cyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJKZWJlbCBTYW1hbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQXJpaGEiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmlzci1Bc2gtU2h1Z3VyIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIklkbGViIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkhhcmltIiksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGNfcmVhY2hlZCA9IHJvdW5kKGJlbmVmaWNpYXJpZXMgLyB0b3RhbF9wb3B1bGF0aW9uICogMTAwLCBkaWdpdHMgPSAxKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2dwbG90KGFlcyh4ID0gcGNfcmVhY2hlZCwgeSA9IGRpc3RyaWN0KSkgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV9jb2woYWVzKGZpbGwgPSBnb3Zlcm5vcmF0ZSkpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBnZW9tX3RleHQoYWVzKGxhYmVsID0gY29tbWEocGNfcmVhY2hlZCkpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhqdXN0ID0gImlud2FyZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlX2ZpbGxfdmlyaWRpc19kKGJlZ2luID0gLjMpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIlBlcmNlbnQgb2YgcG9wdWxhdGlvbiByZWFjaGVkIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9IHBhc3RlMCgiYXMgb2YgIiwgcmVwb3J0X2RhdGUpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHkgPSAiIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB4ID0gIiUgb2YgcG9wdWxhdGlvbiByZWFjaGVkIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxvdF9sYXlvdXQoZ3VpZGVzID0gImNvbGxlY3QiKSAmIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWUobGVnZW5kLnBvc2l0aW9uID0gImJvdHRvbSIpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2dzYXZlKCIuL2ltZy9tcGNfYnlfZGlzdHJpY3QucG5nIiwgZHBpID0gMzAwLCBoZWlnaHQgPSA4LjI3LCB3aWR0aCA9IDExLjY5LCB1bml0cyA9ICJpbiIpICANCg0KYGBgDQoNCjxicj4NCg0KYGBge3IgdGFibGUtZXEtZGFtYWdlfQ0KZXEgJT4lIA0KICBsZWZ0X2pvaW4oaG5vICU+JSANCiAgICBzZWxlY3QoZ292ZXJub3JhdGUgPSBhZG1pbjFuYW1lX2VuLCANCiAgICBkaXN0cmljdCA9IGFkbWluMm5hbWVfZW4sIA0KICAgIHN1Yl9kaXN0cmljdCA9IGFkbWluM25hbWVfZW4sIA0KICAgIGFkbWluM3Bjb2RlKSwgDQogICAgYnkgPSAiYWRtaW4zcGNvZGUiKSAlPiUgDQogICAgICBmaWx0ZXIoYWRtaW4zcGNvZGUgJWluJSBud19wY29kZTMgJiANCiAgICAgIGRpc3RyaWN0ICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUgDQogICAgICAgIGdyb3VwX2J5KGdvdmVybm9yYXRlLCBkaXN0cmljdCkgJT4lIA0KICAgICAgICAgIHN1bW1hcmlzZSh3b3VuZGVkX2RlYWQgPSBzdW0od291bmRlZF9kZWFkLCBuYS5ybSA9IFRSVUUpLCANCiAgICAgICAgICBkYW1hZ2VkX2hvdXNlcyA9IHN1bShkYW1hZ2VkX2hvdXNlcywgbmEucm0gPSBUUlVFKSkgJT4lIA0KICAgICAgICAgICAgZmlsdGVyKGRpc3RyaWN0ICE9ICJBcmloYSIpICU+JSANCiAgICAgICAgICAgICAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgICAgICAgICAgICAgZmlsdGVyKGFkbWluM3Bjb2RlICVpbiUgbndfcGNvZGUzICYNCiAgICAgICAgICAgICAgICBhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JQ0KICAgICAgICAgICAgICAgICAgZ3JvdXBfYnkoZGlzdHJpY3QgPSBhZG1pbjJuYW1lX2VuKSAlPiUNCiAgICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKHBvcHVsYXRpb24gPSBzdW0odG90YWxfcG9wdWxhdGlvbiwgbmEucm0gPSBUUlVFKSksIGJ5ID0gImRpc3RyaWN0IikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgIG11dGF0ZSh3b3VuZGVkX2RlYWRfMTAwayA9IHJvdW5kKHdvdW5kZWRfZGVhZCAvIHBvcHVsYXRpb24gKiAxMDAwMDAsIGRpZ2l0cyA9IDIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgIGRhbWFnZWRfaG91c2VzXzEwMGsgPSByb3VuZChkYW1hZ2VkX2hvdXNlcyAvIHBvcHVsYXRpb24gKiAxMDAwMDAsIGRpZ2l0cyA9IDIpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdChnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QsIHdvdW5kZWRfZGVhZCwgd291bmRlZF9kZWFkXzEwMGssIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBkYW1hZ2VkX2hvdXNlcywgZGFtYWdlZF9ob3VzZXNfMTAwaykgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZsZXh0YWJsZSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lX3plYnJhKCkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXRfdGFibGVfcHJvcGVydGllcyhsYXlvdXQgPSAiYXV0b2ZpdCIsIHdpZHRoID0gLjk5KSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0X2NhcHRpb24oIkNhc3VhbHRpZXMgYW5kIGRhbWFnZWQgaG91c2VzLCBhYnNvbHV0ZSBmaWd1cmVzIGFuZCBwZXIgMTAwLDAwMCBwZXJzb25zIikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9vdG5vdGUocGFydCA9ICJoZWFkZXIiLCBpID0gMSwgaiA9IDM6NiwgaW5saW5lID0gVFJVRSwgcmVmX3N5bWJvbHMgPSAiMSIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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vaW4oaG5vICU+JSANCiAgICAgICAgICAgICAgZmlsdGVyKGFkbWluMm5hbWVfZW4gJWluJSBjKCJIYXJpbSIsICJJZGxlYiIsICJKaXNyLUFzaC1TaHVndXIiLCAiQXJpaGEiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JQ0KICAgICAgICAgICAgICAgIGdyb3VwX2J5KGFkbWluMW5hbWVfZW4sIGFkbWluM3Bjb2RlKSAlPiUNCiAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZSh0b3RhbF9wb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIiksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ5ID0gImFkbWluM3Bjb2RlIikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKHRvdGFsX3BvcHVsYXRpb24gPSBzdW0odG90YWxfcG9wdWxhdGlvbiwgbmEucm0gPSBUUlVFKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSkpICU+JQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUoYXZnX3BjX3JlYWNoZWQgPSByb3VuZChiZW5lZmljaWFyaWVzIC8gdG90YWxfcG9wdWxhdGlvbiAqIDEwMCwgZGlnaXRzID0gMikpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwdWxsKGF2Z19wY19yZWFjaGVkKQ0KYGBgDQoNCg0KVGhlIHBsb3Rz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iUgDQogICAgICBtdXRhdGUoc3ViX2Rpc3RyaWN0ID0gcmVjb2RlKHN1Yl9kaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJzYWxxaW4iID0gIlNhbHFpbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYWZyaW4iID0gIkFmcmluIikpICU+JSANCiAgICAgICAgZ3JvdXBfYnkoZ292ZXJub3JhdGUsIHN1Yl9kaXN0cmljdCkgJT4lIA0KICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSAlPiUgDQogICAgICAgICAgICBhcnJhbmdlKGRlc2MoYmVuZWZpY2lhcmllcykpICU+JSANCiAgICAgICAgICAgICAgYXJyYW5nZShkZXNjKGdvdmVybm9yYXRlKSkgJT4lIA0KICAgICAgICAgICAgICAgIHB1bGwoc3ViX2Rpc3RyaWN0KQ0KYGBgDQoNCg0KDQpgYGB7ciBtcGMtYnktc3ViLWRpc3RyaWN0LCBmaWcuaGVpZ2h0PTh9DQoNCmNiciAlPiUgDQogIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIiAmIA0KICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iKSAlPiUgDQogICAgZmlsdGVyKCFpcy5uYShhZG1pbjNwY29kZSkpICU+JSANCiAgICAgIG11dGF0ZShzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInNhbHFpbiIgPSAiU2FscWluIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhZnJpbiIgPSAiQWZyaW4iKSkgJT4lIA0KICAgICAgICBncm91cF9ieShnb3Zlcm5vcmF0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PSBjb21tYSkgKyANCiAgICAgICAgICAgICAgICAgIA0KY2JyICU+JSANCiAgbXV0YXRlKHN1Yl9kaXN0cmljdCA9IHJlY29kZShzdWJfZGlzdHJpY3QsIA0KICAgICAgICAgInNhbHFpbiIgPSAiU2FscWluIiwgDQogICAgICAgICAiYWZyaW4iID0gIkFmcmluIikpICU+JQ0KICAgIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIiAmICANCiAgICBwcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyIpICU+JQ0KICAgICAgZmlsdGVyKCFpcy5uYShhZG1pbjNwY29kZSkpICU+JSANCiAgICAgICAgZ3JvdXBfYnkoc3ViX2Rpc3RyaWN0LCBhZG1pbjNwY29kZSwgZ292ZXJub3JhdGUpICU+JQ0KICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICAgICAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgICAgICAgICAgIGZpbHRlcihhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lDQogICAgICAgICAgICAgICAgZ3JvdXBfYnkoYWRtaW4xbmFtZV9lbiwgYWRtaW4zcGNvZGUpICU+JQ0KICAgICAgICAgICAgICAgICAgc3VtbWFyaXNlKHRvdGFsX3BvcHVsYXRpb24gPSBzdW0odG90YWxfcG9wdWxhdGlvbiwgbmEucm0gPSBUUlVFKSwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJ5ID0gImFkbWluM3Bjb2RlIikgJT4lIA0KICAgICAgICAgICAgICAgICAgICBtdXRhdGUocGNfcmVhY2hlZCA9IHJvdW5kKGJlbmVmaWNpYXJpZXMgLyB0b3RhbF9wb3B1bGF0aW9uICogMTAwLCBkaWdpdHMgPSAxKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgIG11dGF0ZShzdWJfZGlzdHJpY3QgPSBmYWN0b3Ioc3ViX2Rpc3RyaWN0LCAgc3ViX2Rpc3RyaWN0X29yZGVyKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1Yl9kaXN0cmljdCA9IGZjdF9yZXYoc3ViX2Rpc3RyaWN0KSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgYXJyYW5nZShzdWJfZGlzdHJpY3QpICU+JSAgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGdncGxvdChhZXMoeCA9IHBjX3JlYWNoZWQsIHkgPSBzdWJfZGlzdHJpY3QpKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgIGdlb21fY29sKGFlcyhmaWxsID0gZ292ZXJub3JhdGUpKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBnZW9tX3RleHQoYWVzKGxhYmVsID0gY29tbWEocGNfcmVhY2hlZCkpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgaGp1c3QgPSAiaW53YXJkIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIlBlcmNl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AgICAgICAgICAgICAgICAgICAgICI8YnI+IiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiPHN1cD4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJDYXNoIHJlc3BvbnNlIGltcGxlbWVudGluZyBwYXJ0bmVyczsgbW91c2Ugb3ZlciBmb3IgZGV0YWlscyIsIjwvc3VwPiIpKSkNCg0KDQpgYGANCg0KDQoNCjxicj48YnI+PGJyPg0KDQojIyMgNC4xIENhc2ggZGlzYnVyc2VkIHBlciBwYXJ0bmVyDQoNCjxicj4NCg0KYGBge3IgdGFibGUtY2FzaC1kaXNidXJzZWR9DQpjYnIgJT4lIA0KICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIpICU+JSANCiAgICBncm91cF9ieShpbXBsZW1lbnRpbmdfcGFydG5lcikgJT4lIA0KICAgICAgc3VtbWFyaXNlKHRvdGFsX3VzZCA9IHN1bSh0b3RhbF91c2QsIG5hLnJtID0gVFJVRSksIA0KICAgICAgZmFtaWxpZXMgPSBzdW0oZmFtaWxpZXMsIG5hLnJtID0gVFJVRSkpICU+JSANCiAgICAgICAgbXV0YXRlKHVzZF9wZXJfZmFtID0gcm91bmQodG90YWxfdXNkIC8gZmFtaWxpZXMsIGRpZ2l0cyA9IDIpLCANCiAgICAgICAgYCVfdXNkX3RvdGFsYCA9IHJvdW5kKHRvdGFsX3VzZCAvIHN1bSh0b3RhbF91c2QpICogMTAwLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpZ2l0cyA9IDIpLCANCiAgICAgICAgIHRvdGFsX3VzZCA9IHJvdW5kKHRvdGFsX3VzZCkpICU+JSANCiAgICAgICAgICBhcnJhbmdlKGRlc2ModG90YWxfdXNkKSkgJT4lIA0KICAgICAgICAgICAgZmxleHRhYmxlKCkgJT4lIA0KICAgICAgICAgICAgICBzZXRfY2FwdGlvbigiQ2FzaCBkaXNidXJzZW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IDEwMGtgLCANCmBhZG1pbjNwY29kZWANCg0KPGJyPg0KDQpgYGB7ciBEVC1hZG1pbjN9DQplcSAlPiUgDQogIGxlZnRfam9pbihsb2NhdGlvbnMgJT4lIA0KICAgIGRpc3RpbmN0KGFkbWluM3Bjb2RlLCANCiAgICBzdWJfZGlzdHJpY3QgPSBhZG1pbjNuYW1lX2VuLA0KICAgIGRpc3RyaWN0ID0gYWRtaW4ybmFtZV9lbiwNCiAgICBnb3Zlcm5vcmF0ZSA9IGFkbWluMW5hbWVfZW4pLCANCiAgICBieSA9ICJhZG1pbjNwY29kZSIpICU+JSANCiAgICAgIGxlZnRfam9pbihjYnIgJT4lIA0KICAgICAgICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIpICU+JSANCiAgICAgICAgICBncm91cF9ieShhZG1pbjNwY29kZSkgJT4lIA0KICAgICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllc1twcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyJdLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgICAgdG90YWxfdXNkID0gc3VtKHRvdGFsX3VzZCwgbmEucm0gPSBUUlVFKSksIA0KICAgICAgICAgICAgYnkgPSAiYWRtaW4zcGNvZGUiKSAlPiUgDQogICAgICAgICAgICAgIHNlbGVjdChnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QsIHN1Yl9kaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICB0b3RhbF9wb3B1bGF0aW9uLCANCiAgICAgICAgICAgICAgICAgICAgIGJlbmVmaWNpYXJpZXMsIHRvdGFsX3VzZCwgDQogICAgICAgICAgICAgICAgICAgICB3b3VuZGVkX2RlYWQsIHdvdW5kZWRfZGVhZF8xMDBrLCANCiAgICAgICAgICAgICAgICAgICAgIGRhbWFnZWRfaG91c2VzLCBkYW1hZ2VkX2hvdXNlc18xMDBrLCANCiAgICAgICAgICAgICAgICAgICAgIGFkbWluM3Bjb2RlKSAlPiUgDQogICAgICAgICAgICAgICAgZGF0YXRhYmxlKG9wdGlvbnMgPSBsaXN0KHBhZ2VMZW5ndGggPSAxMCwgc2Nyb2xsWCA9IFRSVUUpLCANCiAgICAgICAgICAgICAgICBmaWx0ZXIgPSBsaXN0KHBvc2l0aW9uID0gInRvcCIsIGNsZWFyID0gRkFMU0UpLA0KICAgICAgICAgICAgICAgIGNhcHRpb24gPSBodG1sdG9vbHM6OnRhZ3MkY2FwdGlvbihzdHlsZSA9ICdjYXB0aW9uLXNpZGU6IHRvcDsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjsgZm9udC1zaXplOjEyMCUgOycsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJSZWZlcmVuY2UgdGFibGUgLS0gRWFydGhxdWFrZSBpbXBhY3RzLCBmcm9tIEFDVSwgZXh0cmFjdGVkIDIwMjMwMzI4IikpICU+JSANCiAgICAgICAgICAgICAgICAgIGZvcm1hdFN0eWxlKDAsIHRhcmdldCA9ICJyb3ciLCBsaW5lSGVpZ2h0ID0gIjgwJSIsIGZvbnRTaXplID0gIjgwJSIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgZm9ybWF0Um91bmQoYygid291bmRlZF9kZWFkXzEwMGsiLCAiZGFtYWdlZF9ob3VzZXNfMTAwayIpLCBkaWdpdHMgPSAyKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgZm9ybWF0Q3VycmVuY3koYygidG90YWxfcG9wdWxhdGlvbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIndvdW5kZWRfZGVhZCIsICJkYW1hZ2VkX2hvdXNlcyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA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