1. MPC response overview

As of 15 August 2023, a total of 699,316 persons or 138,588 families have been reached by MPC interventions.

A total of USD 22.4 million has been disbursed by 30 implementing agencies in 236 communities across 34 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.


699,000 people reached with MPC, USD 22.4 million disbursed, 15 August 2023

governorate

district

comm.

partners

households

beneficiaries

total_usd

%_BNF1

Aleppo

A'zaz

11

13

5,430

23,838

686,237

3.41

Aleppo

Afrin

107

19

37,272

161,823

5,621,280

23.14

Aleppo

Al Bab

5

6

12,090

64,925

1,820,898

9.28

Aleppo

Jarablus

1

3

670

2,170

107,372

0.31

Aleppo

Jebel Saman

18

11

11,378

64,353

1,637,865

9.20

Ar-Raqqa

Tell Abiad

2

1

102

399

19,912

0.06

Idleb

Ariha

2

2

236

1,150

35,100

0.16

Idleb

Harim

61

21

67,610

305,486

10,064,323

43.68

Idleb

Idleb

15

13

13,559

62,426

2,044,046

8.93

Idleb

Jisr-Ash-Shugur

14

5

2,955

12,746

399,447

1.82

Total

-

-

-

151,302

699,316

22,436,480

100.00

1As percentage of all MPC beneficiaries reached in NW Syria


In February 2023, 144,294 beneficiary frequencies were reached, and in March 2023 the number increased to 176,709. In April 2023 142,156 were reached. As of May 2023, 96,437 beneficiaries have been reached, followed by 87,011 in June, with 96,211 in July 2023 and 3,421 in August 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

102,006

14.59

village

257,257

36.79

NA

340,053

48.63




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 11.3%.






3.2 Planned activities

Whilst it is heartening to see new sub-districts, the majority of planned allocations have been accorded to areas that have already received relatively high levels of support.






4. Cash response actors and cash disbursed

USD 22.4 million has been distributed across 236 communities and 34 sub-districts in NW Syria.


Reach and footprint of cash response actors

implementing_partner1

beneficiary_freq

districts

communities

GOAL (GOAL)

175,716

4

96

Shafak Organization (SO)

140,286

7

29

International Rescue Committee (IRC)

94,708

3

22

Ihsan for Relief and Development (IRD)

51,098

6

32

Syria Relief (SR)

49,390

4

12

Norwegian Refugee Council (NRC)

29,370

2

4

Mercy-USA for Aid and Development (MUSA)

27,905

5

37

Ataa Humanitarian Relief Association (ATAA)

27,434

9

25

Violet Organization (VO)

27,400

3

24

Bahar Organization (BO)

17,500

2

7

Mercy Without Limits (MWL)

15,422

4

7

People in Need (PIN)

12,804

5

6

World Vision International (WVI)

12,048

1

4

Uluslararasi Insani Yardimlasma Dernegi (IYD)

11,449

4

16

CBRTWG-031

9,298

2

6

Solidarités International (SI)

7,058

1

5

International Humanitarian Relief (IHR)

6,654

3

9

Hand in Hand For Syria (HIHFS)

6,651

1

7

Hope Revival Organization

4,850

1

18

Welthungerhilfe (WHH)

4,830

4

4

Syrian Association for Relief and Development (SARD)

4,149

3

5

GMO -- Mercy Corps

3,957

1

1

Elaf for Relief and Development (ELAF)

3,800

3

3

Social Development International (SDI)

3,332

2

3

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

Takaful Al Sham (TAS)

1,458

1

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)

5,485,500

36,570

150.00

24.45

Shafak Organization (SO)

4,105,950

27,235

150.76

18.30

International Rescue Committee (IRC)

2,515,050

16,767

150.00

11.21

Syria Relief (SR)

1,552,158

9,796

158.45

6.92

Ihsan for Relief and Development (IRD)

1,484,550

9,897

150.00

6.62

Ataa Humanitarian Relief Association (ATAA)

1,154,929

6,323

182.66

5.15

Violet Organization (VO)

868,350

5,789

150.00

3.87

Norwegian Refugee Council (NRC)

754,800

5,427

139.08

3.36

Mercy-USA for Aid and Development (MUSA)

561,900

5,718

98.27

2.50

People in Need (PIN)

411,450

2,743

150.00

1.83

Mercy Without Limits (MWL)

399,731

2,877

138.94

1.78

Uluslararasi Insani Yardimlasma Dernegi (IYD)

375,000

2,500

150.00

1.67

Bahar Organization (BO)

360,000

3,500

102.86

1.60

Welthungerhilfe (WHH)

344,400

2,296

150.00

1.54

World Vision International (WVI)

301,200

2,008

150.00

1.34

Solidarités International (SI)

218,250

1,455

150.00

0.97

Hand in Hand For Syria (HIHFS)

210,079

1,400

150.06

0.94

CBRTWG-031

196,970

1,585

124.27

0.88

International Humanitarian Relief (IHR)

179,250

1,195

150.00

0.80

Elaf for Relief and Development (ELAF)

170,000

700

242.86

0.76

Syrian Association for Relief and Development (SARD)

122,948

841

146.19

0.55

Hope Revival Organization

121,250

970

125.00

0.54

Bonyan Organization (BO)

119,964

575

208.63

0.53

Ghiras Al Nahda (GAN)

91,500

610

150.00

0.41

Social Development International (SDI)

82,650

551

150.00

0.37

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

81,000

540

150.00

0.36

GMO -- Mercy Corps

67,300

673

100.00

0.30

Takaful Al Sham (TAS)

48,000

320

150.00

0.21

Al-Sham Humanitarian Foundation (AHF)

41,250

330

125.00

0.18

Seeds Of Hope Relief and Development (SOH)

11,100

111

100.00

0.05


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 93.82% of cash disbursed was in USD.


Proportion of cash disbursed by currency

currency

total_usd

%_of_total

TRY

1,386,414

6.18

USD

21,050,064

93.82

Total

22,436,478

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 7 partners reported their achievements, In March 9 partners have reported their achievements, with 16 partners having reported in April, in May 16 partners have reported. 9 partners have reported in June, with 9 partners have reported in July, and 6 reported in August. If no MPC activities were implemented, please inform the CWG as well.

  2. For this reporting period, activities pertaining to 8,921 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 calculate to the number of unique individuals reached.

LS0tDQp0aXRsZTogIk5vcnRod2VzdCBTeXJpYSBDYXNoIFdvcmtpbmcgR3JvdXAgRWFydGhxdWFrZSBSZXNwb25zZSBCdWxsZXRpbiINCmRhdGU6ICJgciBmb3JtYXQoU3lzLnRpbWUoKSwgJyVkICVCLCAlWScpYCINCm91dHB1dDoNCiAgaHRtbF9kb2N1bWVudDoNCiAgICBjb2RlX2Rvd25sb2FkOiB5ZXMNCiAgICB0aGVtZTogcmVhZGFibGUNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogNA0KICAgIHRvY19mbG9hdDogeWVzDQogICAgbnVtYmVyX3NlY3Rpb25zOiBubw0KICAgIGNvbGxhcHNlZDogbm8NCiAgd29yZF9kb2N1bWVudDoNCiAgICB0b2M6IHllcw0KICAgIHRvY19kZXB0aDogJzQnDQphbHdheXNfYWxsb3dfaHRtbDogeWVzDQotLS0NCg0KYGBge2NzcywgZWNobz1GQUxTRX0NCg0KI1RPQzo6YmVmb3JlIHsNCiAgY29udGVudDogIiI7DQogIGRpc3BsYXk6IGJsb2NrOw0KICBoZWlnaHQ6IDcwcHg7DQogIG1hcmdpbjogMmVtIDIwcHggNDBweCAyMHB4Ow0KICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoImh0dHBzOi8vZ2l0aHViLmNvbS9ub3J0aHdlc3Qtc3lyaWEtY2FzaC13b3JraW5nLWdyb3VwL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ANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhbGVwcG8iID0gIkFsZXBwbyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFMRVBQTyIgPSAiQWxlcHBvIiksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXN0cmljdCA9IHJlY29kZShkaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJKYWJhbCBTYW1tYW4iID0gIkplYmVsIFNhbWFuIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJhemF6IiA9ICJBJ3pheiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiamFyYWJsdXMiID0gIkphcmFibHVzIiksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImF6YXoiID0gIkEnemF6IiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJqYXJhYmx1cyIgPSAiSmFyYWJsdXMiKSwgDQogICMgRG9pbmcgdGhpcyBiZWNhdXNlIEFyLVJhcXFhIGhhcyBuZXZlciBhcHBlYXJlZCBiZWZvcmUNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9IGlmZWxzZShhZG1pbjFwY29kZSAlaW4lIGMoIlNZMTEiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJObyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZml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gID0gY29tbXVuaXRpZXMsIHBhcnRuZXJzLCANCiAgICAgICAgICAgICAgICBob3VzZWhvbGRzLCBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIGAlX0JORmApICU+JSANCiAgICAgICAgICAgICAgICAgIGZsZXh0YWJsZSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgc2V0X2NhcHRpb24ocGFzdGUwKA0KICAgICAgICAgICAgICAgICAgICAgIHJvdW5kKHN1bV9zdGF0cyRiZW5lZmljaWFyaWVzLCBkaWdpdHMgPSAtMykgJT4lIGZvcm1hdChiaWcubWFyayA9ICIsIiksDQogICAgICAgICAgICAgICAgICAgICAgIiBwZW9wbGUgcmVhY2hlZCB3aXRoIE1QQywgVVNEICIsDQogICAgICAgICAgICAgICAgICAgICAgcGFzdGUoZm9ybWF0KHJvdW5kKChzdW1fc3RhdHMgJT4lIHB1bGwodG90YWxfdXNkKSkgLyAxMDAwMDAwLCAxKSwgdHJpbSA9IFRSVUUpLCAibWlsbGlvbiIpLCANCiAgICAgICAgICAgICAgICAgICAgICAiIGRpc2J1cnNlZCwgIiwgDQogICAgICAgICAgICAgICAgICAgICAgcmVwb3J0X2RhdGUpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICB0aGVtZV96ZWJyYSgpICU+JSANCiAgIyAgZm9vdG5vdGUoaSA9IDEsIGogPSA2LCBwYXJ0ID0gImhlYWRlciIsIHJlZl9zeW1ib2xzID0gImEiLA0KICAjICAgICAgICAgICBhc19wYXJhZ3JhcGgoIkJlbmVmaWNpYXJ5IGZpZ3VyZXMgaW5jbHVkZSBvbmx5IHJlcG9ydGVkIE1QQyB3aXRoIGEgbWluaW11bSB0cmFuc2ZlciB2YWx1ZSAjb2YgVVNEIDEwMCIpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGZvb3Rub3RlKGkgPSAxLCBqID0gOCwgcGFydCA9ICJoZWFkZXIiLCByZWZfc3ltYm9scyA9ICIxIiwgIA0KICAgICAgIC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KHRvdGFsX3VzZCkpICU+JQ0KICAgICAgICAgICAgYWRvcm5fdG90YWxzKCJyb3ciLCwsLCBob3VzZWhvbGRzLCBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIGAlX0JORmApICU+JSANCiAgICAgICAgICAgICAgbXV0YXRlKGAlX0JORmAgPSBpZmVsc2UoYCVfQk5GYCA+IDk5Ljk4LCAxMDAsIGAlX0JORmApKSAlPiUgDQogICAgICAgICAgICAgICAgc2VsZWN0KGdvdmVybm9yYXRlLCBkaXN0cmljdCwgYGNvbW0uYCA9IGNvbW11bml0aWVzLCBwYXJ0bmVycywgDQogICAgICAgICAgICAgICAgaG91c2Vob2xkcywgYmVuZWZpY2lhcmllcywgdG90YWxfdXNkLCBgJV9CTkZgKSAlPiUgDQogICAgICAgICAgICAgICAgICBmbGV4dGFibGUoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgIHNldF9jYXB0aW9uKHBhc3RlMCgNCiAgICAgICAgICAgICAgICAgICAgcm91bmQoc3VtX3N0YXRzJGJlbmVmaWNpYXJpZXMsIGRpZ2l0cyA9IC0zKSAlPiUgZm9ybWF0KGJpZy5tYXJrID0gIiwiKSwNCiAgICAgICAgICAgICAgICAgICAgIiBwZW9wbGUgcmVhY2hlZCB3aXRoIE1QQywgVVNEICIsDQogICAgICAgICAgICAgICAgICAgIHBhc3RlKGZvcm1hdChyb3VuZCgoc3VtX3N0YXRzICU+JSBwdWxsKHRvdGFsX3VzZCkpIC8gMTAwMDAwMCwgMSksIHRyaW0gPSBUUlVFKSwgIm1pbGxpb24iKSwgDQogICAgICAgICAgICAgICAgICAgICIgZGlzYnVyc2VkLCAiLCANCiAgICAgICAgICAgICAgICAgICAgcmVwb3J0X2RhdGUpKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgdGhlbWVfemVicmEoKSAlPiUgDQogICMgIGZvb3Rub3RlKGkgPSAxLCBqID0gNiwgcGFydCA9ICJoZWFkZXIiLCByZWZfc3ltYm9scyA9ICJhI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KICAgICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcykpICU+JQ0KICAgICAgICAgICAgICBhcnJhbmdlKGVuZF9kYXRlKSAlPiUgDQogICAgICAgICAgICAgICAgZmlsdGVyKGVuZF9kYXRlICA+ICIyMDIyLTEyLTMwIiAmIGVuZF9kYXRlIDwgcHJvZ3Jlc3NfbWF4X2RhdGUpICU+JSAgDQogICMgUnVuIGNodW5rIHVwIHRvIGhlcmUgdG8gY2hlY2sgd2hlbiB0aGUgbGFzdCBkaXN0cmlidXRpb24gd2FzIGluIHRoZSBkYXRhIHNldCANCiAgICAgICAgICAgICAgICAgIG11dGF0ZShjdW1fYmVuID0gY3Vtc3VtKGJlbmVmaWNpYXJpZXMpKSAlPiUgDQogICMgU3BhY2VkIGF0IHJvdWdobHkgZXZlcnkgMTUgZGF5cywgQWx0aG91Z2ggc29tZSBkYXlzIGRvIG5vdCBoYXZlIGRpc3RyaWJ1dGlvbnMgDQogICAgICAgICAgICAgICAgICAgIG11dGF0ZShjdW1fbGFiZWwgPSBpZmVsc2UoZW5kX2RhdGUgPT0gIjIwMjMtMDItMTAifCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wMy0wMSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDMtMTUifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTAzLTMwInwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNC0xNSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDQtMzAifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA1LTI0InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNi0xMSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDYtMzAifA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVuZF9kYXRlID09ICIyMDIzLTA3LTE3InwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9PSAiMjAyMy0wNy0zMSJ8DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZW5kX2RhdGUgPT0gIjIwMjMtMDgtMTUiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1bV9iZW4sICIiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3VtX2xhYmVsID0gYXMubnVtZXJpYyhjdW1fbGFiZWwpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRfZGF0ZSA9IGFueWRhdGUoZW5kX2RhdGUpKSANCg0KcHJvZ3Jlc3NfbGluZSAlPiUgDQogIGdncGxvdChhZXMoeCA9IGVuZF9kYXRlLCB5ID0gY3VtX2JlbikpICsgDQogIGdlb21fbGluZShjb2xvdXIgPSAiYmx1ZSIpICsgDQogIGdlb21fdGV4dChhZXMobGFiZWwgPSBzY2FsZXM6OmNvbW1hKGN1bV9sYWJlbCkpLCB2anVzdCA9IC0xLCANCiAgICAgICAgICAgIHNpemUgPSA0KSArIA0KICAjIFNjYWxlIHRoaXMgZG93biB0byAiMSBtb250aCIgd2hlbiB0aGUgYXhpcy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b2luZyIgPSAiQ29tcGxldGVkIikpICU+JSANCiAgICByaWdodF9qb2luKHBjb2RlM19zaGFwZSwgDQogICAgYnkgPSBjKCJhZG1pbjNwY29kZSIgPSAiQURNM19QQ09ERSIpKSAlPiUgDQogICAgICBmaWx0ZXIoQURNMV9QQ09ERSAlaW4lIGMoIlNZMDIiLCAiU1kwNyIsICJTWTExIikgJiAhaXMubmEoYmVuZWZpY2lhcmllcykpICU+JSANCiAgICAgICAgc3RfYXNfc2YoKSAlPiUNCiAgICAgICAgICBnZ3Bsb3QoKSArIA0KICAgICAgICAgIGdlb21fc2Yoc2l6ZSA9IC4xLCBjb2xvdXIgPSAiZ3JleTcwIikgKyANCiAgICAgICAgICBnZW9tX3BvaW50KGFlcyhzaXplID0gYmVuZWZpY2lhcmllcywNCiAgICAgICAgICAgICAgICAgY29sb3VyID0gcHJvamVjdF9zdGF0dXMsIA0KICAgICAgICAgICAgICAgICB4ID0gbG9uZ2l0dWRlX3gsIHkgPSBsYXRpdHVkZV95LCANCiAgICAgICAgICAgICAgICAgdGV4dCA9IHBhc3RlMCgic3ViX2Rpc3RyaWN0OiAiLCBzdWJfZGlzdHJpY3QsICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImNvbW11bml0eTogIiwgY29tbXVuaXR5LCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJsb2NhdGlvbl90eXBlOiAiLCB2aWxsYWdlX2NhbXBzLCAiXG4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJiZW5lZmljaWFyaWVzOiIsIGZvcm1hdChiZW5lZmljaWFyaWVzLCBiaWcubWFyayA9ICIsIiksICJcbiIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInBhcnRuZXI6ICIsIGFiYnJldmlhdGlvbiwgIlxuIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImxvbl94OiAiLCBsb25naXR1ZGVfeCwgIlxuIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAibGF0X3k6ICIsIGxhdGl0dWRlX3kpKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNoYXBlID0gMjEsIHN0cm9rZSA9IC4zNSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFscGhhID0gLjUpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNjYWxlX3NpemVfY29udGludW91cyhsYWJlbHMgPSBjb21tYSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NhbGVfY29sb3VyX3ZpcmlkaXNfZChuYS50cmFuc2xhdGUgPSBGQUxTRSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlbWVfdm9pZCgpICsgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lKHBsb3QuYmFja2dyb3VuZCA9IGVsZW1lbnRfcmVjdChmaWxsID0gIndoaXRlIiwgY29sb3VyID0gTkEpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGxvdC5jYXB0aW9uID0gZWxlbWVudF90ZXh0KGhqdXN0ID0gMC41KSwpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJDb21tdW5pdGllcyByZWFjaGVkIGFuZCBwbGFubmVkIC0tIENXRyBwYXJ0bmVycyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9ICJQbGFubmVkIGluIHllbGxvdywgY29tcGxldGVkIGluIHB1cnBsZSwgc2l6ZSBzaG93cyBudW1iZXIgb2YgcGVyc29ucyIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xvdXIgPSAiU3RhdHVzIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBndWlkZXMoc2l6ZSA9ICJub25lIikNCg0KICANCmdncGxvdGx5KHBsYW5uZWRfaW1wbGVtZW50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3VzbHlfYXNzaXN0ZWQgPT0gIk5vIikgJT4lIA0KICAgICAgICAgIGdyb3VwX2J5KGdvdmVybm9yYXRlLCBkaXN0cmljdCkgJT4lIA0KICAgICAgICAgICAgc3VtbWFyaXNlKGJlbmVmaWNpYXJpZXMgPSBzdW0oYmVuZWZpY2lhcmllcywgbmEucm0gPSBUUlVFKSkgJT4lIA0KICAgICAgICAgICAgICBtdXRhdGUoZGlzdHJpY3QgPSBmY3RfcmVvcmRlcihkaXN0cmljdCwgYmVuZWZpY2lhcmllcyksDQogICAgICAgICAgICAgIGdvdmVybm9yYXRlID0gZmN0X3JlbGV2ZWwoZ292ZXJub3JhdGUsIA0KICAgICAgICAgICAgICBjKCJJZGxlYiIsICJBci1SYXFxYSIsICJBbGVwcG8iKSkNCiAgICAgICAgICAgICAgICkgJT4lIA0KICAgICAgICAgICAgICAgIGdncGxvdChhZXMoeCA9IGJlbmVmaWNpYXJpZXMsIHkgPSBkaXN0cmljdCkpICsgDQogICAgICAgICAgICAgICAgZ2VvbV9jb2woYWVzKGZpbGwgPSBnb3Zlcm5vcmF0ZSkpICsgDQogICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKGJlbmVmaWNpYXJpZXMpKSwgDQogICAgICAgICAgICAgICAgaGp1c3QgPSAiaW53YXJkIikgKyANCiAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgIGxhYnModGl0bGUgPSAiTVBDIGJlbmVmaWNpYXJpZXMgYnkgZGlzdHJpY3QiLCANCiAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9IHBhc3RlMCgiYXMgb2YgIiwgcmVwb3J0X2RhdGUpLCANCiAgICAgICAgICAgICAgICB5ID0gIiIpICsgDQogICAgICAgICAgICAgICAgc2NhbGVfeF9jb250aW51b3VzKGxhYmVscyA9IHVuaXRfZm9ybWF0KHVuaXQgPSAiSyIsIHNjYWxlID0gMWUtMywgYWNjdXJhY3kgPSAxKSkgKyANCiAgICAgICAgICAgICAgICBobm8gJT4lIA0KICAgICAgICAgICAgICAgICAgZmlsdGVyKGFkbWluMm5hbWVfZW4gJWluJSBjKCJIYXJpbSIsICJJZGxlYiIsICJKaXNyLUFzaC1TaHVndXIiLCAiQXJpaGEiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdyb3VwX2J5KGdvdmVybm9yYXRlID0gYWRtaW4xbmFtZV9lbiwgZGlzdHJpY3QgPSBhZG1pbjJuYW1lX2VuKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZSh0b3RhbF9wb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGVmdF9qb2luKA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNiciAlPiUNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIiAmICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iKSAlPiUgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdyb3VwX2J5KGRpc3RyaWN0KSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpKSAsICANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnkgPSAiZGlzdHJpY3QiKSAlPiUgDQogICMgS2luZCBvZiBpcnJpdGF0aW5nIHRoYXQgeW91J3JlIGRvaW5nIHRoaXMgbWFudWFsbHkgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbXV0YXRlKGRpc3RyaWN0ID0gZmN0X3JlbGV2ZWwoZGlzdHJpY3QsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJBbCBCYWIiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmFyYWJsdXMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQSd6YXoiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiSmViZWwgU2FtYW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkppc3ItQXNoLVNodWd1ciIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJJZGxlYiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJIYXJpbSIpLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBjX3JlYWNoZWQgPSByb3VuZChiZW5lZmljaWFyaWVzIC8gdG90YWxfcG9wdWxhdGlvbiAqIDEwMCwgZGlnaXRzID0gMSkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdncGxvdChhZXMoeCA9IHBjX3JlYWNoZWQsIHkgPSBkaXN0cmljdCkpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdlb21fY29sKGFlcyhmaWxsID0gZ292ZXJub3JhdGUpKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKHBjX3JlYWNoZWQpKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoanVzdCA9ICJpbndhcmQiKSArDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2FsZV9maWxsX3ZpcmlkaXNfZChiZWdpbiA9IC4zKSArIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJQZXJjZW50IG9mIHBvcHVsYXRpb24gcmVhY2hlZCIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB5ID0gIiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeCA9ICIlIG9mIHBvcHVsYXRpb24gcmVhY2hlZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBsb3RfbGF5b3V0KGd1aWRlcyA9ICJjb2xsZWN0IikgJiANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoZW1lKGxlZ2VuZC5wb3NpdGlvbiA9ICJib3R0b20iKQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGdnc2F2ZSgiLi9pbWcvbXBjX2J5X2Rpc3RyaWN0LnBuZyIsIGRwaSA9IDMwMCwgaGVpZ2h0ID0gOC4yNywgd2lkdGggPSAxMS42OSwgdW5pdHMgPSAiaW4iKSAgDQoNCmBgYA0KDQo8YnI+DQoNCmBgYHtyIHRhYmxlLWVxLWRhbWFnZX0NCmVxICU+JSANCiAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgc2VsZWN0KGdvdmVybm9yYXRlID0gYWRtaW4xbmFtZV9lbiwgDQogICAgZGlzdHJpY3QgPSBhZG1pbjJuYW1lX2VuLCANCiAgICBzdWJfZGlzdHJpY3QgPSBhZG1pbjNuYW1lX2VuLCANCiAgICBhZG1pbjNwY29kZSksIA0KICAgIGJ5ID0gImFkbWluM3Bjb2RlIikgJT4lIA0KICAgICAgZmlsdGVyKGFkbWluM3Bjb2RlICVpbiUgbndfcGNvZGUzICYgDQogICAgICBkaXN0cmljdCAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsIA0KICAgICAgICAgICAgICAgICAgICAgICJUZWxsIEFiaWFkIiwgIA0KICAgICAgICAgICAgICAgICAgICAgICJBZnJpbiIsICJKZWJlbCBTYW1hbiIsICJBJ3pheiIsICJKYXJhYmx1cyIsICJBbCBCYWIiKSkgJT4lIA0KICAgICAgICBncm91cF9ieShnb3Zlcm5vcmF0ZSwgZGlzdHJpY3QpICU+JSANCiAgICAgICAgICBzdW1tYXJpc2Uod291bmRlZF9kZWFkID0gc3VtKHdvdW5kZWRfZGVhZCwgbmEucm0gPSBUUlVFKSwgDQogICAgICAgICAgZGFtYWdlZF9ob3VzZXMgPSBzdW0oZGFtYWdlZF9ob3VzZXMsIG5hLnJtID0gVFJVRSkpICU+JSANCiAgIyBXaGVyZSBpcyBBcmloYSwgYW5kIHdoeSBpcyBpdCBzaG93aW5nIHVwIGhlcmUNCiAgICAgICAgICAgIGZpbHRlcihkaXN0cmljdCAhPSAiQXJpaGEiKSAlPiUgDQogICAgICAgICAgICAgIGxlZnRfam9pbihobm8gJT4lIA0KICAgICAgICAgICAgICAgIGZpbHRlcihhZG1pbjNwY29kZSAlaW4lIG53X3Bjb2RlMyAmDQogICAgICAgICAgICAgICAgYWRtaW4ybmFtZV9lbiAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUNCiAgICAgICAgICAgICAgICAgIGdyb3VwX2J5KGRpc3RyaWN0ID0gYWRtaW4ybmFtZV9lbikgJT4lDQogICAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZShwb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSkpLCBieSA9ICJkaXN0cmljdCIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUod291bmRlZF9kZWFkXzEwMGsgPSByb3VuZCh3b3VuZGVkX2RlYWQgLyBwb3B1bGF0aW9uICogMTAwMDAwLCBkaWdpdHMgPSAyKSwgDQogICAgICAgICAgICAgICAgICAgICAgICBkYW1hZ2VkX2hvdXNlc18xMDBrID0gcm91bmQoZGFtYWdlZF9ob3VzZXMgLyBwb3B1bGF0aW9uICogMTAwMDAwLCBkaWdpdHMgPSAyKSkgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3QoZ292ZXJub3JhdGUsIGRpc3RyaWN0LCB3b3VuZGVkX2RlYWQsIHdvdW5kZWRfZGVhZF8xMDBrLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgZGFtYWdlZF9ob3VzZXMsIGRhbWFnZWRfaG91c2VzXzEwMGspICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmbGV4dGFibGUoKSAlPiUgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGVtZV96ZWJyYSgpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0X3RhYmxlX3Byb3BlcnRpZXMobGF5b3V0ID0gImF1dG9maXQiLCB3aWR0aCA9IC45OSkgJT4lIA0KICAgICAgICAgICAgICAgICAg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AlPiUgDQogICAgICBncm91cF9ieSh2aWxsYWdlX2NhbXBzKSAlPiUgDQogICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMpKSAlPiUgDQogICAgICAgICAgcmVwbGFjZV9uYShsaXN0KHZpbGxhZ2VfY2FtcHMgPSAiTkEiKSkgJT4lIA0KICAgICAgICAgICAgbXV0YXRlKGAlX2JlbmVmaWNpYXJpZXNgID0gcm91bmQoYmVuZWZpY2lhcmllcyAvIHN1bShiZW5lZmljaWFyaWVzKSAqIDEwMCwgZGlnaXRzID0gMikpICU+JSANCiAgICAgICAgICAgICAgZmxleHRhYmxlKCkgJT4lIA0KICAgICAgICAgICAgICAgIHNldF9jYXB0aW9uKCJNb3JlIHRoYW4gdHdpY2UgYXMgbWFueSBiZW5lZmljaWFyaWVzIGZyb20gdmlsbGFnZXMgYXMgZnJvbSBjYW1wcyIpICU+JSANCiAgICAgICAgICAgICAgICAgIHRoZW1lX3plYnJhKCkgJT4lDQogICAgICAgICAgICAgICAgICAgIHNldF90YWJsZV9wcm9wZXJ0aWVzKGxheW91dCA9ICJhdXRvZml0Iiwgd2lkdGggPSAuNikNCiAgDQpgYGANCg0KDQo8YnI+PGJyPjxicj4NCg0KIyMjIDMuMSBCeSBzdWItZGlzdHJpY3QNCg0KYGBge3IgZGYtcGMtcmVhY2hlZH0NCmF2Z19wY19yZWFjaGVkIDwtIGNiciAlPiUgDQogIG11dGF0ZShzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAic2FscWluIiA9ICJTYWxxaW4iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYWZyaW4iID0gIkFmcmluIikpICU+JQ0KICAgIGZpbHRlcihwcm9qZWN0X3N0YXR1cyA9PSAiQ29tcGxldGVkIiAmIA0KICAgICAgICAgICBwcmV2aW91c2x5X2Fzc2lzdGVkID09ICJObyIpICU+JQ0KICAgICAgZmlsdGVyKCFpcy5uYShhZG1pbjNwY29kZSkpICU+JSANCiAgICAgICAgZ3JvdXBfYnkoc3ViX2Rpc3RyaWN0LCBhZG1pbjNwY29kZSwgZ292ZXJub3JhdGUpICU+JQ0KICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgLmdyb3VwcyA9ICJkcm9wIikgJT4lIA0KICAgICAgICAgICAgbGVmdF9qb2luKGhubyAlPiUgDQogICAgICAgICAgICAgIGZpbHRlcihhZG1pbjJuYW1lX2VuICVpbiUgYygiSGFyaW0iLCAiSWRsZWIiLCAiSmlzci1Bc2gtU2h1Z3VyIiwgIkFyaWhhIiwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVGVsbCBBYmlhZCIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkFmcmluIiwgIkplYmVsIFNhbWFuIiwgIkEnemF6IiwgIkphcmFibHVzIiwgIkFsIEJhYiIpKSAlPiUNCiAgICAgICAgICAgICAgICBncm91cF9ieShhZG1pbjFuYW1lX2VuLCBhZG1pbjNwY29kZSkgJT4lDQogICAgICAgICAgICAgICAgICBzdW1tYXJpc2UodG90YWxfcG9wdWxhdGlvbiA9IHN1bSh0b3RhbF9wb3B1bGF0aW9uLCBuYS5ybSA9IFRSVUUpLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBieSA9ICJhZG1pbjNwY29kZSIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZSh0b3RhbF9wb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmVuZWZpY2l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QgPT0gIk5vIikgJT4lIA0KICAgIGZpbHRlcighaXMubmEoYWRtaW4zcGNvZGUpKSAlPiUgDQogICAgICBtdXRhdGUoc3ViX2Rpc3RyaWN0ID0gcmVjb2RlKHN1Yl9kaXN0cmljdCwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJzYWxxaW4iID0gIlNhbHFpbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYWZyaW4iID0gIkFmcmluIikpICU+JSANCiAgICAgICAgZ3JvdXBfYnkoZ292ZXJub3JhdGUsIHN1Yl9kaXN0cmljdCkgJT4lIA0KICAgICAgICAgIHN1bW1hcmlzZShiZW5lZmljaWFyaWVzID0gc3VtKGJlbmVmaWNpYXJpZXMsIG5hLnJtID0gVFJVRSksIA0KICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSAlPiUgDQogICAgICAgICAgICB1bmdyb3VwKCkgJT4lIA0KICAgICAgICAgICAgICBtdXRhdGUoc3ViX2Rpc3RyaWN0ID0gZmFjdG9yKHN1Yl9kaXN0cmljdCwgIHN1Yl9kaXN0cmljdF9vcmRlciksIA0KICAgICAgICAgICAgICBzdWJfZGlzdHJpY3QgPSBmY3RfcmV2KHN1Yl9kaXN0cmljdCkpICU+JSANCiAgICAgICAgICAgICAgICBhcnJhbmdlKHN1Yl9kaXN0cmljdCkgJT4lIA0KICAgICAgICAgICAgICAgICAgZ2dwbG90KGFlcyh4ID0gYmVuZWZpY2lhcmllcywgeSA9IHN1Yl9kaXN0cmljdCkpICsgDQogICAgICAgICAgICAgICAgICBnZW9tX2NvbChhZXMoZmlsbCA9IGdvdmVybm9yYXRlKSkgKyANCiAgICAgICAgICAgICAgICAgIGdlb21fdGV4dChhZXMobGFiZWwgPSBjb21tYShiZW5lZmljaWFyaWVzKSksIA0KICAgICAgICAgICAgICAgICAgaGp1c3QgPSAiaW53YXJkIikgKyANCiAgICAgICAgICAgICAgICAgIHNjYWxlX2ZpbGxfdmlyaWRpc19kKGJlZ2luID0gLjMpICsgDQogICAgICAgICAgICAgICAgICBsYWJzKHRpdGxlID0gIk1QQyBiZW5lZmljaWFyaWVzIGJ5IHN1Yi1kaXN0cmljdCIsIA0KICAgICAgICAgICAgICAgICAgc3VidGl0bGUgPSBwYXN0ZTAoImFzIG9mICIsIHJlcG9ydF9kYXRlKSwgDQogICAgICAgICAgICAgICAgICB5ID0gIiIpICsgDQogICAgICAgICAgICAgICAgICBzY2FsZV94X2NvbnRpbnVvdXMobGFiZWxzID0gY29tbWEpICsgDQogICAgICAgICAgICAgICAgICANCmNiciAlPiUgDQogIG11dGF0ZShzdWJfZGlzdHJpY3QgPSByZWNvZGUoc3ViX2Rpc3RyaWN0LCANCiAgICAgICAgICJzYWxxaW4iID0gIlNhbHFpbiIsIA0KICAgICAgICAgImFmcmluIiA9ICJBZnJpbiIpKSAlPiUNCiAgICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIgJiAgDQogICAgcHJldmlvdXNseV9hc3Npc3RlZCA9PSAiTm8iKSAlPiUNCiAgICAgIGZpbHRlcighaXMubmEoYWRtaW4zcGNvZGUpKSAlPiUgDQogICAgICAgIGdyb3VwX2J5KHN1Yl9kaXN0cmljdCwgYWRtaW4zcGNvZGUsIGdvdmVybm9yYXRlKSAlPiUNCiAgICAgICAgICBzdW1tYXJpc2UoYmVuZWZpY2lhcmllcyA9IHN1bShiZW5lZmljaWFyaWVzLCBuYS5ybSA9IFRSVUUpLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5ncm91cHMgPSAiZHJvcCIpICU+JSANCiAgICAgICAgICAgIGxlZnRfam9pbihobm8gJT4lIA0KICAgICAgICAgICAgICBmaWx0ZXIoYWRtaW4ybmFtZV9lbiAlaW4lIGMoIkhhcmltIiwgIklkbGViIiwgIkppc3ItQXNoLVNodWd1ciIsICJBcmloYSIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlRlbGwgQWJpYWQiLCAgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiQWZyaW4iLCAiSmViZWwgU2FtYW4iLCAiQSd6YXoiLCAiSmFyYWJsdXMiLCAiQWwgQmFiIikpICU+JQ0KICAgICAgICAgICAgICAgIGdyb3VwX2J5KGFkbWluMW5hbWVfZW4sIGFkbWluM3Bjb2RlKSAlPiUNCiAgICAgICAgICAgICAgICAgIHN1bW1hcmlzZSh0b3RhbF9wb3B1bGF0aW9uID0gc3VtKHRvdGFsX3BvcHVsYXRpb24sIG5hLnJtID0gVFJVRSksDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZ3JvdXBzID0gImRyb3AiKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBieSA9ICJhZG1pbjNwY29kZSIpICU+JSANCiAgICAgICAgICAgICAgICAgICAgbXV0YXRlKHBjX3JlYWNoZWQgPSByb3VuZChiZW5lZmljaWFyaWVzIC8gdG90YWxfcG9wdWxhdGlvbiAqIDEwMCwgZGlnaXRzID0gMSkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICBtdXRhdGUoc3ViX2Rpc3RyaWN0ID0gZmFjdG9yKHN1Yl9kaXN0cmljdCwgIHN1Yl9kaXN0cmljdF9vcmRlciksIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJfZGlzdHJpY3QgPSBmY3RfcmV2KHN1Yl9kaXN0cmljdCkpICU+JSANCiAgICAgICAgICAgICAgICAgICAgICAgIGFycmFuZ2Uoc3ViX2Rpc3RyaWN0KSAlPiUgIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBnZ3Bsb3QoYWVzKHggPSBwY19yZWFjaGVkLCB5ID0gc3ViX2Rpc3RyaWN0KSkgKw0KICAgICAgICAgICAgICAgICAgICAgICAgICBnZW9tX2NvbChhZXMoZmlsbCA9IGdvdmVybm9yYXRlKSkgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV90ZXh0KGFlcyhsYWJlbCA9IGNvbW1hKHBjX3JlYWNoZWQpKSwgDQogICAgICAgICAgICAgICAgICAgICAgICAgIGhqdXN0ID0gImlud2FyZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgc2NhbGVfZmlsbF92aXJpZGlzX2QoYmVnaW4gPSAuMykgKyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgbGFicyh0aXRsZSA9ICJQZXJjZW50IG9mIHBvcHVsYXRpb24gcmVhY2hlZCIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZSA9IHBhc3RlMCgiYXMgb2YgIiwgcmVwb3J0X2RhdGUpLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgeSA9ICIiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgeCA9ICIlIG9mIHBvcHVsYXRpb24gcmVhY2hlZCIpICsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgcGxvdF9sYXlvdXQoZ3VpZGVzID0gImNvbGxlY3QiKSAmIA0KICAgICAgICAgICAgICAgICAgICAgICAgICB0aGVtZShsZWdlbmQucG9zaXRpb24gPSAiYm90dG9tIikNCg0KZ2dzYXZlKCIuL2ltZy9tcGNfYnlfc3ViX2Rpc3RyaWN0LnBuZyIsIGRwaSA9IDMwMCwgaGVpZ2h0ID0gOC4yNywgd2lkdGggPSAxMS42OSwgdW5pdHMgPSAiaW4iKSAgDQpgYGANCg0KPGJyPjxicj4NCg0KDQoNCjxicj48YnI+DQoNCg0KIyMjIDMuMiBQbGFubmVkIGFjdGl2aXRpZXMgDQoNCldoaWxzdCBpdCBpcyBoZWFydGVuaW5nIHRvIHNlZSBuZXcgc3ViLWRpc3RyaWN0cywgdGhlIG1ham9yaXR5IG9mIHBsYW5uZWQgYWxsb2NhdGlvbnMgaGF2ZSBiZWVuIGFjY29yZGVkIHRvIGFyZWFzIHRo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2l6ZSA9IDYpKSkpICU+JSANCiAgICBwbG90bHk6OnN0eWxlKGhvdmVyb24gPSAicG9pbnQiKSAlPiUgDQogICAgICBsYXlvdXQodGl0bGUgPSBsaXN0KHRleHQgPSBwYXN0ZTAoIkJlbmVmaWNpYXJpZXMgYW5kIGNvbW11bml0aWVzIHJlYWNoZWQiLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICI8YnI+IiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiPHN1cD4iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJDYXNoIHJlc3BvbnNlIGltcGxlbWVudGluZyBwYXJ0bmVyczsgbW91c2Ugb3ZlciBmb3IgZGV0YWlscyIsIjwvc3VwPiIpKSkNCg0KDQpgYGANCg0KDQoNCjxicj48YnI+PGJyPg0KDQojIyMgNC4xIENhc2ggZGlzYnVyc2VkIHBlciBwYXJ0bmVyDQoNCjxicj4NCg0KYGBge3IgdGFibGUtY2FzaC1kaXNidXJzZWR9DQpjYnIgJT4lIA0KICBmaWx0ZXIocHJvamVjdF9zdGF0dXMgPT0gIkNvbXBsZXRlZCIpICU+JSANCiAgICBncm91cF9ieShpbXBsZW1lbnRpbmdfcGFydG5lcikgJT4lIA0KICAgICAgc3VtbWFyaXNlKHRvdGFsX3VzZCA9IHN1bSh0b3RhbF91c2QsIG5hLnJtID0gVFJVRSksIA0KICAgICAgZmFtaWxpZXMgPSBzdW0oZmFtaWxpZXMsIG5hLnJtID0gVFJVRSkpICU+JSANCiAgICAgICAgbXV0YXRlKHVzZF9wZXJfZmFtID0gcm91bmQodG90YWxfdXNkIC8gZmFtaWxpZXMsIGRpZ2l0cyA9IDIpLCANCiAgICAgICAgYCVfdXNkX3RvdGFsYCA9IHJvdW5kKHRvdGFsX3VzZCAvIHN1bSh0b3RhbF91c2QpICogMTAwLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpZ2l0cy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3QsIA0KICAgICAgICAgICAgICAgICAgICAgdG90YWxfcG9wdWxhdGlvbiwgDQogICAgICAgICAgICAgICAgICAgICBiZW5lZmljaWFyaWVzLCB0b3RhbF91c2QsIA0KICAgICAgICAgICAgICAgICAgICAgd291bmRlZF9kZWFkLCB3b3VuZGVkX2RlYWRfMTAwaywgDQogICAgICAgICAgICAgICAgICAgICBkYW1hZ2VkX2hvdXNlcywgZGFtYWdlZF9ob3VzZXNfMTAwaywgDQogICAgICAgICAgICAgICAgICAgICBhZG1pbjNwY29kZSkgJT4lIA0KICAgICAgICAgICAgICAgIGRhdGF0YWJsZShvcHRpb25zID0gbGlzdChwYWdlTGVuZ3RoID0gMTAsIHNjcm9sbFggPSBUUlVFKSwgDQogICAgICAgICAgICAgICAgZmlsdGVyID0gbGlzdChwb3NpdGlvbiA9ICJ0b3AiLCBjbGVhciA9IEZBTFNFKSwNCiAgICAgICAgICAgICAgICBjYXB0aW9uID0gaHRtbHRvb2xzOjp0YWdzJGNhcHRpb24oc3R5bGUgPSAnY2FwdGlvbi1zaWRlOiB0b3A7IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7IGZvbnQtc2l6ZToxMjAlIDsnLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiUmVmZXJlbmNlIHRhYmxlIC0tIEVhcnRocXVha2UgaW1wYWN0cywgZnJvbSBBQ1UsIGV4dHJhY3RlZCAyMDIzMDMyOCIpKSAlPiUgDQogICAgICAgICAgICAgICAgICBmb3JtYXRTdHlsZSgwLCB0YXJnZXQgPSAicm93IiwgbGluZUhlaWdodCA9ICI4MCUiLCBmb250U2l6ZSA9ICI4MCUiKSAlPiUgDQogICAgICAgICAgICAgICAgICAgIGZvcm1hdFJvdW5kKGMoIndvdW5kZWRfZGVhZF8xMDBrIiwgImRhbWFnZWRfaG91c2VzXzEwMGsiKSwgZGlnaXRzID0gMikgJT4lIA0KICAgICAgICAgICAgICAgICAgICAgIGZvcm1hdEN1cnJlbmN5KGMoInRvdGFsX3BvcHVsYXRpb24iLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJ3b3VuZGVkX2RlYWQiLCAiZGFtYWdlZF9ob3VzZXMiLCANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJiZW5lZmljaWFyaWVzIiwgInRvdGFsX3VzZCIpLCANCiAgICAgICAgICAgICAgICAgICAgICBjdXJyZW5jeSA9ICIiLCBpbnRlcnZhbCA9IDMsIG1hcmsgPSAiLCIpICU+JQ0KICAgICAgICAgICAgICAgICAgICAgICAgZm9ybWF0Um91bmQoYygidG90YWxfcG9wdWxhdGlvbiIsIA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAid291bmRlZF9kZWFkIiwgImRhbWFnZWRfaG91c2VzIiwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImJlbmVmaWNpYXJpZXMiLCAidG90YWxfdXNkIiksIGRpZ2l0cyA9IDApDQogIA0KYGBgDQoNCjxicj48YnI+DQoNCiMjIyA1LjIgUmVwb3J0aW5nIHF1YWxpdHkNCg0KYGBge3J9DQptb250aF9yZXBvcnRpbmcgPC0gY2JyICU+JSANCiAgZ3JvdXBfYnkobW9udGggPSBtb250aChlbmRfZGF0ZSkpICU+JSANCiAgICBzdW1tYXJpc2UocGFydG5lcnMgPSBuX2Rpc3RpbmN0KGltcGxlbWVudGluZ19wYXJ0bmVyKSkNCmBgYA0KDQoNClRoaXMgc2VjdGlvbiBkb2N1bWVudHMgaXNzdWVzIGVuY291bnRlcmVkIGluIHRoZSBjbGVhbmluZyBvZiA0VyBhbmQgRlNMIGRhdGEgYW5kIHRoZWlyIGltcGFjdHMgb24gdGhlIHF1YWxpdHkgb2YgcmVwb3J0aW5nIHRoZSBDV0cgY2FuIHByb3ZpZGUuIFRoZSByZWNv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